/* merknt.ru — редакция 2 (Designer, 02.12.2026).
   Тёмная тема по умолчанию (UI-1 v5), светлая и «Как в системе» — по выбору.
   Без inline-стилей и inline-скриптов: совместимо с CSP style-src 'self'. */

@font-face {
  font-family: "Manrope";
  src: url("manrope-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* Метрики запасного шрифта близки к Manrope: меньше скачок при подмене. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 102%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  --font: "Manrope", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Тёмная тема — по умолчанию */
  --bg: #07070a;
  --bg-2: #0d0d12;
  --card: #121218;
  --card-2: #191920;
  --ink: #f5f5f7;
  --ink-2: #a8a8b3;
  --ink-3: #8c8c97;
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .16);
  --glass: rgba(10, 10, 14, .72);
  --accent: #8a7fff;        /* текст и линии на тёмном */
  --accent-fill: #4a3af0;   /* заливка под белым текстом */
  --accent-fill-2: #3324d6;
  --on-accent: #ffffff;
  --rob: #5fd4b0;
  --fin: #e3b866;
  --soft: #23232c;
  --glow: rgba(90, 75, 255, .42);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -30px rgba(0, 0, 0, .8);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --r-xl: clamp(22px, 2.2vw, 30px);
  --r-lg: 20px;
  --r-md: 14px;
  --header-h: 56px;

  --t-caption: .8125rem;   /* 13 */
  --t-small: .9375rem;     /* 15 */
  --t-body: 1.0625rem;     /* 17 */
  --t-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --t-h3: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem);
  --t-h2: min(clamp(2rem, 1.35rem + 2.8vw, 3.75rem), 10.5vw);
  --t-tile: min(clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem), 9vw);
  --t-hero: min(clamp(2.5rem, 1.05rem + 6.6vw, 5.5rem), 13.2vw);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ececf0;
  --card: #ffffff;
  --card-2: #f0f0f4;
  --ink: #1d1d1f;
  --ink-2: #4f4f57;
  --ink-3: #66666e;
  --hair: rgba(0, 0, 0, .08);
  --hair-2: rgba(0, 0, 0, .14);
  --glass: rgba(245, 245, 247, .76);
  --accent: #4030e8;
  --accent-fill: #4636ee;
  --accent-fill-2: #3324d6;
  --rob: #006b55;
  --fin: #8a5a00;
  --soft: #e6e6ec;
  --glow: rgba(70, 54, 238, .22);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 50px -28px rgba(20, 20, 40, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  min-height: 100vh;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; overflow-wrap: break-word; }
p, li, span, a, button { overflow-wrap: break-word; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--accent-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Шапка: стекло, одна строка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; letter-spacing: -.04em; font-size: 21px; line-height: 1; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand--sm { font-size: 18px; gap: 8px; }
.brand--sm .mark { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--hair); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

/* ---------- Кнопки-пилюли ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-align: center;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.pill:active { transform: scale(.97); }
/* Видимая высота 36 px, область касания 44 px (UI-1) */
.pill--sm { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; border: 4px solid transparent; background-clip: padding-box; }
.pill--accent { background: var(--accent-fill); color: var(--on-accent); }
.pill--accent:hover { background: var(--accent-fill-2); }
.pill--ghost { background: var(--hair); color: var(--ink); }
.pill--ghost:hover { background: var(--hair-2); }
.pill--light { background: #ffffff; color: #111116; }
.pill--light:hover { background: #ececf2; }
.pill--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.pill--glass:hover { background: rgba(255, 255, 255, .16); }
.pill__icon { width: 16px; height: 16px; flex: none; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 104px) clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--hair); color: var(--ink-2);
  font-size: var(--t-caption); font-weight: 600; letter-spacing: .01em;
}
.chip__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero__title {
  margin-top: 22px;
  font-size: var(--t-hero); line-height: 1.02; letter-spacing: -.05em;
}
.hero__next { display: block; color: var(--ink-3); }
.hero__lead { margin-top: 24px; max-width: 34ch; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Знак как объект: та же сетка 2×2, что и в логотипе */
.frame { margin: 0; justify-self: center; width: min(100%, 460px); }
.frame__stage { position: relative; aspect-ratio: 1; perspective: 900px; }
.frame__glow {
  position: absolute; inset: 8%; border-radius: 40%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  filter: blur(28px); transform: translate(-14%, -14%);
}
.frame__body {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6%;
  padding: 6%;
  border-radius: 13%;
  border: 1.5px solid var(--hair-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease);
  will-change: transform;
}
[data-theme="light"] .frame__body { background: linear-gradient(160deg, #ffffff, #f1f1f5); }
.cell { border-radius: 22%; position: relative; }
.cell--fill {
  background: linear-gradient(145deg, #6a5cff 0%, var(--accent-fill) 48%, var(--accent-fill-2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 40px -16px var(--glow);
}
.cell--line { border: 2px solid var(--rob); }
.cell--hatch {
  border: 1.5px solid color-mix(in srgb, var(--fin) 70%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fin) 55%, transparent) 0 2px, transparent 2px 11px);
}
.cell--soft { background: var(--soft); }
.frame__caption {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px;
  font-size: var(--t-caption); color: var(--ink-3);
}
.frame__caption b { color: var(--ink-2); font-weight: 600; }

/* ---------- Разделы ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--hair); }
.eyebrow { font-size: var(--t-small); font-weight: 600; color: var(--accent); letter-spacing: -.005em; }
.h2 { margin-top: 14px; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.045em; }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.025em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .h2 { max-width: 14ch; }
.split__text { padding-top: 18px; max-width: 52ch; }
.split__text p + p { margin-top: 14px; color: var(--ink-2); }
.lead { font-size: var(--t-lead); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.split--head { align-items: end; }
.split__aside { max-width: 44ch; color: var(--ink-2); }

.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.principle { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.principle__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px; margin-bottom: auto;
  background: var(--hair); color: var(--ink-2); font-size: var(--t-caption); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.principle .h3 { margin-top: 28px; }
.principle p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; max-width: 34ch; }

/* ---------- Направления: сетка 2×2 повторяет знак ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px; padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-xl); border: 1px solid var(--hair);
  background: var(--card); box-shadow: var(--shadow);
}
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: auto; }
.status {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: var(--t-caption); font-weight: 600; background: var(--hair); color: var(--ink-2);
  text-align: center;
}
.tile__title { margin-top: 36px; font-size: var(--t-tile); line-height: 1.05; letter-spacing: -.045em; }
.tile p { font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.tile .tile__note { font-size: var(--t-caption); color: var(--ink-3); }

.tile--fill {
  border-color: transparent; color: var(--on-accent);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(150deg, #4e40f2 0%, var(--accent-fill) 40%, var(--accent-fill-2) 100%);
}
.tile--fill p { color: rgba(255, 255, 255, .94); }
.tile--fill .status { background: rgba(0, 0, 0, .2); color: #fff; }
.tile--line { border: 1.5px solid color-mix(in srgb, var(--rob) 70%, transparent); background: var(--bg); }
.tile--line .status { color: var(--rob); background: color-mix(in srgb, var(--rob) 13%, transparent); }
.tile--hatch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fin) 30%, transparent) 0 1.5px, transparent 1.5px 12px);
  -webkit-mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, .5) 28%, transparent 55%);
  mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, .5) 28%, transparent 55%);
}
.tile--hatch .status { color: var(--fin); background: color-mix(in srgb, var(--fin) 14%, transparent); }
.tile--soft { background: var(--card-2); }

.glyph { display: inline-block; width: 22px; height: 22px; border-radius: 6px; flex: none; }
.glyph--fill { background: var(--accent-fill); }
.tile--fill .glyph--fill { background: #fff; }
.glyph--line { border: 2px solid var(--rob); }
.glyph--hatch { border: 1.5px solid var(--fin); background: repeating-linear-gradient(135deg, var(--fin) 0 1.5px, transparent 1.5px 5px); }
.glyph--soft { background: var(--ink-3); opacity: .55; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: var(--t-caption); color: var(--ink-3); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend .glyph { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- Контакт ---------- */
.section--contact { border-top: 0; padding-top: 0; }
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 88px);
  border-radius: calc(var(--r-xl) + 6px);
  color: #fff;
  background: linear-gradient(155deg, #17142e 0%, #0e0d1a 55%, #0a0a10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
}
[data-theme="light"] .contact { background: linear-gradient(155deg, #2a1fb8 0%, #1d1590 55%, #140f63 100%); border-color: transparent; }
.contact__glow {
  position: absolute; z-index: -1; right: -12%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 96, 255, .55), transparent 70%); filter: blur(30px);
}
.eyebrow--on { color: #b9b2ff; }
.contact__title { color: #fff; max-width: 13ch; }
.contact__text { margin-top: 18px; max-width: 40ch; font-size: var(--t-lead); line-height: 1.45; color: rgba(255, 255, 255, .78); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.copy { gap: 14px; padding-right: 18px; }
.copy__label { overflow-wrap: anywhere; text-align: left; }
.copy__icon { width: 20px; height: 20px; flex: none; opacity: .78; }
.copy:hover .copy__icon { opacity: 1; }
.contact__mark {
  position: absolute; z-index: -1; right: clamp(32px, 6vw, 88px); top: 50%; width: min(30%, 300px); aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 6%; border-radius: 13%; border: 1.5px solid rgba(255, 255, 255, .12);
}
.contact__mark i { border-radius: 22%; border: 1.5px solid rgba(255, 255, 255, .14); }
.contact__mark i:first-child { border: 0; background: linear-gradient(145deg, rgba(122, 108, 255, .9), rgba(74, 58, 240, .75)); box-shadow: 0 20px 50px -14px rgba(110, 96, 255, .7); }
.contact__small { margin-top: 18px; font-size: var(--t-caption); color: rgba(255, 255, 255, .66); }

/* ---------- Подвал ---------- */
.footer { padding-block: 36px max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.footer__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer__meta { font-size: var(--t-caption); color: var(--ink-3); }
.footer__top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.footer__top:hover { color: var(--ink); }
.project-notice { margin-top: 20px; max-width: 78ch; font-size: var(--t-caption); line-height: 1.6; color: var(--ink-2); }

/* Сегментированный выбор темы, как в iOS */
.seg { border: 0; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(118, 118, 128, .24); margin-left: auto; }
[data-theme="light"] .seg { background: rgba(118, 118, 128, .12); }
.seg__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.seg__opt { position: relative; display: inline-flex; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 9px;
  font-size: var(--t-caption); font-weight: 600; color: var(--ink-2); text-align: center;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.seg__opt input:checked + span { background: #636366; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
[data-theme="light"] .seg__opt input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg + .footer__top { margin-left: 0; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: var(--t-small); font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}

/* Обновление PWA: появляется только когда новая версия готова */
.sw-update { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; }
.sw-update__btn {
  font: inherit; font-weight: 700; color: var(--ink); background: var(--bg);
  border: 0; border-radius: 999px; padding: 8px 14px; min-height: 36px; cursor: pointer;
}
.sw-update__btn:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }
.sw-update__btn:disabled { opacity: .6; cursor: default; }

/* Без JS: меню, тема и копирование не показываются, навигация остаётся ссылками */
.no-js .seg, .no-js .copy { display: none; }

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .frame { width: min(78%, 420px); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact__mark { display: none; }
  .principle { min-height: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 22px; }
  .principle__n { margin: 0; grid-row: span 2; }
  .principle .h3 { margin-top: 0; align-self: center; }
  .principle p { grid-column: 2; }
}

/* ---------- Телефон ---------- */
@media (max-width: 767px) {
  :root { --header-h: 52px; }
  .header__bar { gap: 8px; }
  .header__actions { margin-left: auto; }
  .brand { font-size: 19px; }
  .brand .mark { width: 24px; height: 24px; }
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; margin-right: -8px;
  }
  .menu-btn__icon, .menu-btn__icon::before {
    display: block; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor;
    transition: transform var(--fast) var(--ease);
  }
  .menu-btn__icon { position: relative; transform: translateY(-3.5px); }
  .menu-btn__icon::before { content: ""; position: absolute; left: 0; top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon { transform: translateY(0) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__icon::before { transform: translateY(-7px) rotate(-90deg); }

  .js .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px;
    border-radius: 20px; border: 1px solid var(--hair);
    background: var(--card); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav a {
    min-height: 50px; padding: 0 16px; border-radius: 14px; font-size: var(--t-body); color: var(--ink);
    justify-content: space-between;
  }
  .js .nav a::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3);
    transform: rotate(45deg); margin-right: 4px;
  }
  .js .nav a + a { box-shadow: 0 -1px 0 var(--hair); border-radius: 0 0 14px 14px; }
  .js .nav a:first-child { border-radius: 14px 14px 0 0; }
  .no-js .header__bar { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 4px; }
  .no-js .nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 0 4px; }
  .no-js .nav a { padding: 0 10px 0 0; font-size: 15px; }
  .no-js .header__actions { display: none; }

  .hero { padding-top: 28px; }
  .hero__title { margin-top: 18px; letter-spacing: -.045em; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .pill { flex: 1 1 auto; }
  .frame { width: min(80%, 340px); }
  .contact { padding: 28px 24px; }
  .contact__mark { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split__text { padding-top: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { min-height: 0; }
  .tile__title { margin-top: 28px; }
  .contact__actions .pill { width: 100%; }
  .copy { justify-content: space-between; }
  .footer__row { gap: 14px 16px; }
  .seg { order: 5; width: 100%; margin-left: 0; }
  .seg__opt { flex: 1; }
  .seg__opt span { width: 100%; justify-content: center; padding: 0 8px; }
  .footer__top, .seg + .footer__top { margin-left: auto; }
}

@media (max-width: 359px) {
  .header .pill--sm { padding: 0 12px; }
  .status { white-space: normal; text-align: right; }
}

@media (hover: hover) and (pointer: fine) {
  .tile { transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
  .tile:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .frame__body { transform: none !important; }
}

@media (forced-colors: active) {
  .cell, .glyph, .tile, .card, .pill { border: 1px solid CanvasText; }
}
