/* ============================================================
   Настя — AI-креатор. Каркас сайта.
   Палитра задана клиентом:
     #3d84a8 — фон, #e0aab9 — текст/акцент.
   Производные оттенки нужны для читаемости мелкого текста:
   #e0aab9 на #3d84a8 даёт контраст 2.1:1 — это работает
   только на крупном кегле. Мелкий текст живёт на --blue-deep.
   ============================================================ */

/* ── шрифты: только локально, без ссылки на fonts.googleapis.com ──
   Пути отсчитываются от css/style.css, поэтому "../public/...".
   Soledago — заголовки, Manrope — основной текст.
   Fraunces и Marck Script используются только для надписи в шапке. Manrope с Google Fonts отдаётся порезанным
   по subset'ам — одного файла на вес с латиницей и кириллицей там нет,
   отсюда unicode-range. */
@font-face {
  font-family: "Soledago";
  src: url("../public/fonts/Soledago.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../public/fonts/Manrope-Regular-cyrillic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../public/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../public/fonts/Manrope-SemiBold-cyrillic.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../public/fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Small local subsets contain only the lettering used in the logo. */
@font-face{
  font-family:"Fraunces"; src:url("../public/fonts/Fraunces-logo.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Marck Script"; src:url("../public/fonts/MarckScript-logo.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

:root{
  /* ── палитра дизайн-системы (СИСТЕМА.md) ── */
  --ground:      #0E2634;   /* фон страницы под карточками */
  --teal:        #184860;   /* тёмная карточка */
  --blue:        #286284;   /* светлая карточка: #3880A8 не давал контраста тексту */
  --ink:         #103040;   /* карточки цен и сметы */
  --cream:       #F7F1DF;
  --pink:        #E0A8B8;
  --gap:         28px;
  --radius:      32px;
  --col:         1240px;    /* ширина колонки контента внутри карточки */

  /* производные */
  --blue-deep:   #1E4E66;
  --blue-dark:   #123543;
  --blue-line:   #5A9BBB;
  --pink-soft:   #F0D3DB;
  --pink-deep:   #C98598;

  /* Основные шрифты: Soledago — только h1 и .section__title,
     Manrope — основной текст. У логотипа своя пара: Fraunces / Marck Script. */
  --f-display: "Manrope", system-ui, sans-serif;
  --f-body:    "Manrope", -apple-system, "Segoe UI", sans-serif;
  --f-script:  "Manrope", system-ui, sans-serif;
  --f-mono:    "Manrope", ui-monospace, monospace;

  --pad: 32px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Подложка: картинка уже размыта и затемнена в файле.
   filter: blur() на всю площадь экрана здесь не вешаем — дорого,
   а результат тот же. Путь от css/style.css идёт через ../public/. */
.page-bg{
  position:fixed; inset:0; z-index:-2;
  background:var(--ground) url("../public/img/bg.webp") center / cover no-repeat;
}
.page-bg::after{                      /* зерно */
  content:""; position:absolute; inset:0;
  background:url("../public/img/grain.png") repeat;
  opacity:.07; mix-blend-mode:overlay;
  pointer-events:none;
}
/* внешние поля страницы — чтобы подложки было видно больше */
.page{ padding: var(--gap) clamp(var(--gap), 3.2vw, 56px) }
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--f-body);
  font-weight:300;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,video{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}
ul,ol{margin:0; padding:0; list-style:none}

.shell,
.section__inner{width:min(var(--col), 100% - 96px); margin-inline:auto; padding:0}

/* ── типографика ───────────────────────────────── */
/* Заголовки секций — Soledago, кремовые. Розовый на заголовках давал
   контраст 2.17:1 на --blue при пороге 3:1; кремовый даёт 3.86:1. */
h1, .section__title{
  font-family:"Soledago", "Manrope", system-ui, sans-serif;
  color:var(--cream);
  line-height:.96;
  letter-spacing:0;
}
.section__title{ font-size:clamp(2.2rem, 4.2vw, 68px); margin:0; text-transform:uppercase }
.tag,
.section__label{
  display:inline-block; margin:0 0 18px;
  padding:6px 12px; border-radius:4px;
  background:var(--pink); color:var(--ink);
  font-family:"Manrope", system-ui, sans-serif;
  font-weight:600; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
}
.lead{max-width:44em; margin:22px 0 0}
h3{font-family:var(--f-display); font-weight:900; text-transform:uppercase; letter-spacing:-.02em; margin:0}

/* ── прогресс-полоса ───────────────────────────── */
.progress-track{position:fixed; inset:0 0 auto; height:4px; background:var(--ground); z-index:70; overflow:hidden; isolation:isolate; contain:paint; pointer-events:none; transform:translateZ(0)}
.progress{height:100%; width:100%; background:var(--pink); transform:scaleX(0); transform-origin:left; transition:transform .1s linear}

/* ── шапка ─────────────────────────────────────── */
/* ── верхнее меню: живёт ВНУТРИ карточки шапки ───────────────────
   Отдельной фиксированной полосой над карточкой оно разламывало
   подложку. Позиционирование абсолютное относительно .hero.
   Для логотипа — отдельная пара с засечками и рукописной строкой. */
.header{
  position:absolute; inset:0 0 auto 0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:32px 52px;
}
.header::before{                       /* мягкое затемнение, без резкой границы */
  content:""; position:absolute; inset:0 0 auto 0; height:150px;
  background:linear-gradient(180deg, rgba(6,32,48,.38), rgba(6,32,48,0));
  pointer-events:none;
}
/* тень несущая: под надписями проходит светлая ладонь. Не удалять. */
.header a, .header .logo{
  color:var(--cream); text-shadow:0 2px 12px rgba(4,26,40,.5);
}
.header .nav a::after{background:var(--cream)}
.header .burger span{background:var(--cream)}
.header .btn--sm{color:var(--blue-dark); text-shadow:none}
.logo{position:relative; display:block; flex-shrink:0; isolation:isolate}
.logo__art{display:block; width:240px; height:60px; overflow:visible}
.logo__art text{text-shadow:none}
.logo .logo__name{font-family:"Fraunces", Georgia, serif; font-weight:700; font-size:32px; letter-spacing:-.045em; fill:var(--cream)}
.logo .logo__role,.logo .logo__cutout{font-family:"Marck Script", cursive; font-weight:400; font-size:29px; letter-spacing:0}
.logo .logo__role{fill:var(--pink)}
.logo .logo__cutout{fill:black; stroke:black; stroke-width:5px; stroke-linejoin:round}
.nav{display:flex; gap:26px}   /* margin-left:auto убран: раскладку задаёт space-between у .header */
.nav a{
  font-size:14.5px; color:var(--cream); position:relative; padding:4px 0;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--pink); transition:width .3s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after{width:100%}

.btn{
  display:inline-block; background:var(--pink); color:var(--blue-dark);
  font-family:var(--f-display); font-weight:900; text-transform:uppercase;
  letter-spacing:.01em; font-size:14px; padding:14px 22px;
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover{background:var(--pink-soft); transform:translateY(-2px)}
.btn--sm{padding:10px 16px; font-size:12.5px}
/* кремовая, а не розовая: розовый текст на синей карточке давал 2.85:1 */
.btn--ghost{background:transparent; color:var(--cream); box-shadow:inset 0 0 0 1px rgba(247,241,223,.6)}
.btn--ghost:hover{background:rgba(247,241,223,.12); color:var(--cream); box-shadow:inset 0 0 0 1px var(--cream)}

.burger{display:none; width:34px; height:34px; flex-direction:column; justify-content:center; gap:6px}
.burger span{display:block; height:2px; background:var(--pink); transition:transform .3s var(--ease), opacity .3s}
.burger[aria-expanded="true"] span:first-child{transform:translateY(4px) rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{transform:translateY(-4px) rotate(-45deg)}

/* ── хиро: карточка на подложке ──────────────────────────────────
   Переменные заданы на .hero, а не на :root: в проекте свои
   --pink/--ink/--cream другого оттенка, глобальная подмена
   перекрасила бы остальные секции. --ground/--gap/--radius — новые
   имена, они на :root и коллизий не дают.
   Высота 88svh, а не 100: снизу должен выглядывать край следующей
   карточки — это подсказывает скролл и уменьшает шапку. */
.hero {
  --bg:    #3A80A8; /* Poster fallback; the decoded video color is matched on load. */
  --cream: #F7F1DF;
  --ink:   #0F1720;
  --pink:  #F4A9BE;
  position: relative;
  margin-bottom: var(--gap);
  height: calc(82svh - var(--gap));   /* было 88svh: персонаж занимал пол-экрана */
  min-height: 660px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* Кадр показывается ЦЕЛИКОМ и прижат к низу. Поля по бокам заполняет
   фон карточки — он совпадает с фоном видео, поэтому стык не виден.
   contain на cover не менять: cover режет верх и низ. */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transform: scale(1.004);        /* убирает волосок передискретизации по кромке */
  transform-origin: bottom center;
}

/* ── список направлений: без подложки, прижат к текстовой панели ── */
/* ПРАВКИ_1 п.4: колонка в потоке. padding-top отводит место под шапку,
   margin-top у панели даёт пустое поле между списком и заголовком.
   При любой высоте карточки список и панель не наложатся. */
.hero__content {
  position: absolute; inset: 0 60px 48px 60px; z-index: 3;
  display: flex; flex-direction: column;
  padding-top: clamp(104px, 12vh, 170px);   /* 15vh не оставляло места: на 1440x900 зазор до панели падал до 2px */
}
.hero__nav { margin: 0 }
.hero__nav a {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 1.9vw, 34px);
  line-height: 1.28;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(247,241,223,.82);
  text-decoration: none;
  /* тень несущая: под словами проходит светлая ладонь. Не удалять. */
  text-shadow: 0 2px 12px rgba(4,26,40,.5);
  transition: color .18s ease;
}
.hero__nav a:nth-child(-n+2) { color: var(--cream); }
.hero__nav a:hover           { color: var(--cream); }

/* ── стеклянная панель ───────────────────────────────────────────
   closest-side принципиально: при радиусе в процентах растушёвка
   уходит за пределы элемента, внутри маска остаётся сплошной,
   и край рисует border-radius — получается чёткая рамка.
   Ни border-radius, ни проценты сюда не возвращать. */
.hero__panel {
  position: relative;
  /* auto, а не фикс: на низкой карточке фиксированный отступ выталкивал
     панель за нижний край. Так зазор всегда положительный. */
  margin-top: auto;
  width: clamp(340px, 46vw, 730px);
  padding: clamp(24px, 2.4vw, 36px);
}
.hero__glass {
  position: absolute;
  inset: -22% -12%;              /* слой шире панели — растушёвка уходит наружу */
  border-radius: 0;              /* радиуса быть не должно: он и рисует контур */
  background: radial-gradient(closest-side,
      rgba(8,32,48,.62), rgba(8,32,48,.34) 55%, rgba(8,32,48,0) 100%);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.hero__copy { position: relative; }

@supports not (backdrop-filter: blur(1px)) {
  .hero__glass { background: radial-gradient(closest-side,
      rgba(8,32,48,.80), rgba(8,32,48,.50) 55%, rgba(8,32,48,0) 100%); }
}

/* ── типографика ─────────────────────────────────────────────────
   Soledago приходит из общего правила h1. */
.hero__title {
  /* Soledago приходит из общего правила h1 — отдельного объявления
     семейства здесь быть не должно (проверяется поиском по CSS) */
  font-size: clamp(2.1rem, 5.5vw, 92px);
  line-height: .96; letter-spacing: 0;
  color: var(--cream); margin: 0;
}
.hero__sub {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(.92rem, 1.15vw, 1.05rem);
  line-height: 1.5; color: rgba(247,241,223,.92); margin: 1em 0 0;
}
.hero__actions { display: flex; gap: 14px; margin-top: 1.7em; flex-wrap: wrap; }

/* кнопки скоуплены на .hero: глобальный .btn в проекте свой
   и нужен остальным секциям */
.hero .btn {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif; font-weight: 600;
  font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .95em 1.7em; border-radius: 8px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero .btn--primary { background: var(--pink); color: var(--ink); border: none; box-shadow: none; }
.hero .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,32,48,.34); }
.hero .btn--ghost { background: transparent; color: var(--cream);
              border: 1.5px solid rgba(247,241,223,.6); box-shadow: none; }
.hero .btn--ghost:hover { border-color: var(--cream); background: rgba(247,241,223,.12); }
.hero .btn:focus-visible, .hero__nav a:focus-visible {
  outline: 2px solid var(--cream); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero { background: var(--bg) url("../public/img/hero-poster.webp") center bottom / contain no-repeat; }
}

@media (max-width: 720px) {
  :root { --gap: 10px; --radius: 22px; }
  .hero { height: calc(88svh - var(--gap)); min-height: 720px; }
  .hero__video { object-fit: cover; object-position: 58% 18%; }
  .header { padding: 24px; gap: 16px; }
  .logo__art{width:190px; height:47.5px}
  .header .btn--sm { display: none; }
  /* на мобильном список возвращается наверх: кадр смещён, ладонь
     в эту зону не заходит, а места под панель внизу мало */
  .hero__content { left: 24px; right: 24px; bottom: 40px; padding-top: 104px; }
  .hero__nav a { font-size: 16px; line-height: 1.75; letter-spacing: .06em; }
  .hero__panel { width: auto; margin-top: 32px; padding: 20px; }
  .hero__title { font-size: clamp(1.65rem, 9.2vw, 3.2rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero .btn { text-align: center; }
}
/* счётчики цифр — используются в секции «числа», к хиро отношения не имеют */
.num{
  display:block; font-family:var(--f-display); font-weight:900;
  font-size:clamp(34px,4vw,54px); line-height:1; color:var(--ink);
  font-variant-numeric:tabular-nums; letter-spacing:-.03em;
}

/* ── плейсхолдеры под медиа ────────────────────── */
/* Пустые слоты под работы: сплошной --ink с надписью СКОРО.
   Штриховка читалась как недоделка. */
.ph{
  position:relative; display:flex; align-items:center; justify-content:center;
  background:var(--ink);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
  overflow:hidden;
}
.ph::before{
  content:"СКОРО";
  font-family:"Manrope", system-ui, sans-serif;
  font-weight:600; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(247,241,223,.55);
  border:1px solid rgba(247,241,223,.22);
  padding:6px 12px; border-radius:4px;
}
.ph span{display:none}   /* подпись слота остаётся в разметке как подсказка */
.ph--portrait{aspect-ratio:3/4}
.ph--wide{aspect-ratio:16/9}

/* ── бегущая строка ────────────────────────────── */
/* Следующая карточка на подложке: то же поле и то же скругление,
   но кремовая — задаёт ритм чередования. Её край выглядывает
   из-под шапки, потому что у .hero высота 88svh. */
.marquee{
  overflow:hidden; background:#F2ECDC; color:var(--blue-dark);
  margin:0 0 var(--gap);
  border-radius:var(--radius);
  padding:18px 0;
}
.marquee__track{display:flex; width:max-content; animation:marquee 26s linear infinite}
.marquee__group{display:flex; flex-shrink:0}
.marquee__track span{
  font-family:var(--f-display); font-weight:900; text-transform:uppercase;
  font-size:clamp(18px,2.4vw,30px); letter-spacing:-.02em; padding-right:14px; white-space:nowrap;
}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ── секции: каждая — отдельная карточка на подложке ──────────────
   Полос во всю ширину нет. Между карточками ровно --gap.
   Чередование teal → blue обязательно: две одинаковые подряд
   читаются как один длинный блок. --ink только цены и смета. */
.sec,
.section{
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  padding: clamp(48px,5vw,96px) 0;
  position: relative;
  overflow: hidden;
  color: var(--cream);
  backdrop-filter: blur(26px) saturate(110%);
  -webkit-backdrop-filter: blur(26px) saturate(110%);
}
/* волосковая линия по контуру — не украшение: когда цвет карточки
   близок к фону, без неё края теряются */
.sec::before,
.section::before{
  content:""; position:absolute; inset:0;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.13);
  pointer-events:none;
  z-index:1;
}
.section--teal{ background: rgba( 24, 72,  96, .66) }
.section--blue{ background: rgba( 40, 98, 132, .62) }
.section--ink { background: rgba( 16, 48,  64, .72) }

.sec p, .section p{color:var(--cream)}   /* .92 над светлым участком подложки давало 4.29:1 */   /* .80 давало 3.88:1 на синей карточке */

/* обо мне */
.about{display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(30px,5vw,80px); align-items:start}
.about__text p{margin:22px 0 0; max-width:38em}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:28px}
.chips li{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  padding:6px 11px; box-shadow:inset 0 0 0 1px var(--pink); color:var(--cream);   /* розовым остаётся обводка: розовый текст давал 3.52:1 */
}

/* направления: раскрывающиеся строки */
.dirs__head{display:flex; justify-content:space-between; align-items:flex-end; gap:30px; flex-wrap:wrap; margin-bottom:44px}
.dirs__tools{display:flex; gap:18px}
.linkbtn{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--cream); padding:6px 0; border-bottom:1px solid transparent; transition:border-color .25s var(--ease);
}
.linkbtn:hover{border-bottom-color:var(--cream)}

.dirs{border-top:1px solid rgba(224,170,185,.45)}
.drow{border-bottom:1px solid rgba(224,170,185,.45)}
.drow__bar{
  width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center; gap:clamp(14px,2.2vw,32px); text-align:left;
  padding:clamp(16px,2.1vw,26px) 0;
  transition:padding .35s var(--ease), background .35s var(--ease);
}
.drow__bar:hover{background:rgba(224,170,185,.07); padding-left:16px; padding-right:16px}
.drow__no{font-family:var(--f-mono); font-size:11px; letter-spacing:.16em; color:rgba(247,241,223,.94)}
.drow__name{
  font-family:var(--f-display); font-weight:900; text-transform:uppercase;
  font-size:clamp(24px,4.6vw,64px); line-height:1.15; letter-spacing:-.035em; color:var(--cream);
}
.drow__count{font-family:var(--f-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:rgba(247,241,223,.94); white-space:nowrap}
.drow__icon{position:relative; width:18px; height:18px; flex:0 0 18px}
.drow__icon::before,.drow__icon::after{content:""; position:absolute; background:var(--cream); transition:transform .35s var(--ease)}
.drow__icon::before{left:0; right:0; top:8px; height:2px}
.drow__icon::after{top:0; bottom:0; left:8px; width:2px}
.drow.is-open .drow__icon::after{transform:scaleY(0)}
.drow.is-open .drow__bar{background:rgba(224,170,185,.07); padding-left:16px; padding-right:16px}
.drow.is-open .drow__count{color:var(--cream)}

/* Панель больше не схлопывается в ноль: каждая рубрика по умолчанию
   показывает ленту работ. Клик по строке переключает ленту на сетку. */
.drow__panel{overflow:visible}
.drow__inner{display:flex; flex-direction:column; gap:24px; padding:6px 16px 42px}
.drow__desc{margin:0; max-width:46em}
.drow__empty{margin:0; color:rgba(247,241,223,.6); font-size:14px}
.drow__all{align-self:flex-start}

/* ── две раскладки работ внутри рубрики ──────────────────────────
   is-peek — лента в одну строку, прокручивается колесом, хвост уходит
   под полупрозрачную подложку. is-open — полная сетка-кладка. */
.dstrip{position:relative; min-width:0}
.dgrid{display:grid; gap:14px}

.drow.is-peek .dgrid{
  display:flex; align-items:flex-start;
  overflow-x:auto; overflow-y:hidden;
  scrollbar-width:none; padding-bottom:4px;
}
.drow.is-peek .dgrid::-webkit-scrollbar{display:none}
.drow.is-peek .work{
  flex:0 0 auto; height:clamp(210px, 23vw, 330px);
}
.drow.is-peek .work__btn{height:100%}
.drow.is-peek .work__img{height:100%; width:auto; max-width:none}
/* подложка на хвосте ленты: видно, что справа есть ещё */
.drow.is-peek .dstrip::after{
  content:""; position:absolute; inset:0 0 0 auto; width:clamp(60px,12%,140px);
  background:linear-gradient(90deg, rgba(24,72,96,0), rgba(16,52,72,.92));
  pointer-events:none; border-radius:0 14px 14px 0;
}
.drow.is-peek.is-end .dstrip::after{opacity:0; transition:opacity .25s var(--ease)}

/* Обычная сетка, без кладки на JS: прежний вариант считал высоту плиток
   после загрузки картинок, а при lazy-загрузке не успевал — плитки
   вылезали на соседние рубрики. Высоту строки задаёт самая высокая
   плитка, картинка внутри вписывается целиком и не кадрируется. */
.drow.is-open .dgrid{
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
  align-items:start;
}
.drow.is-open .work--wide{grid-column:span 2}
.drow.is-open .work__btn{height:100%}
.drow.is-open .work__img{width:100%; height:auto}
.drow.is-open .tile{animation:pop .5s var(--ease) both}
.drow.is-open .tile:nth-child(2){animation-delay:.07s}
.drow.is-open .tile:nth-child(3){animation-delay:.14s}
.drow.is-open .tile:nth-child(4){animation-delay:.21s}
.drow.is-open .tile:nth-child(5){animation-delay:.28s}
.drow.is-open .tile:nth-child(6){animation-delay:.35s}

/* работы: плитки внутри направлений */
.tile{position:relative}
.tile .ph{aspect-ratio:1}
.ph[data-ratio="3:4"]{aspect-ratio:3/4}
.ph[data-ratio="1:1"]{aspect-ratio:1}
.ph[data-ratio="16:9"]{aspect-ratio:16/9}
.ph[data-ratio="9:16"]{aspect-ratio:9/16}
.ph[data-ratio="21:9"]{aspect-ratio:21/9}
@keyframes pop{from{opacity:0; transform:translateY(14px)}to{opacity:1; transform:none}}
.tile__cap{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:11px 2px 0}
.tile__cap b{font-family:var(--f-display); font-weight:900; text-transform:uppercase; font-size:12.5px; letter-spacing:-.01em; color:var(--cream)}
.tile__cap small{font-family:var(--f-mono); font-size:10px; letter-spacing:.1em; color:rgba(247,241,223,.94); white-space:nowrap}
.tile:hover .ph{box-shadow:inset 0 0 0 2px rgba(247,241,223,.45)}

/* невозможное */
.imp{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(30px,5vw,72px); align-items:start}
.imp__text p{max-width:34em; margin:22px 0 0}
/* оба кадра теперь настоящие картинки, а не плейсхолдеры:
   пропорцию задаёт сам файл, поэтому aspect-ratio не нужен */
.imp__media{display:block; width:100%; height:auto; margin-top:34px; border-radius:16px}
.about__media{display:block; width:100%; height:auto; border-radius:16px}
.invoice{background:var(--blue-dark); color:var(--cream); padding:clamp(24px,3vw,40px)}
.invoice__row{
  display:flex; justify-content:space-between; gap:20px; align-items:baseline;
  padding:15px 0; border-bottom:1px solid rgba(251,246,241,.16); position:relative;
  font-size:15px;
}
.invoice__row b{font-family:var(--f-mono); font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap}
.invoice__row > span,.invoice__row > b{
  text-decoration-line:line-through;
  text-decoration-color:transparent;
  text-decoration-thickness:2px;
  transition:text-decoration-color .7s var(--ease);
  transition-delay:var(--strike-delay,0s);
}
.invoice.is-on .invoice__row > span,.invoice.is-on .invoice__row > b{text-decoration-color:rgba(247,241,223,.65)}
.invoice__row:nth-of-type(2){--strike-delay:.15s}
.invoice__row:nth-of-type(3){--strike-delay:.3s}
.invoice__row:nth-of-type(4){--strike-delay:.45s}
.invoice__row:nth-of-type(5){--strike-delay:.6s}
.invoice__row:nth-of-type(6){--strike-delay:.75s}
.invoice__total{display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding-top:22px}
.invoice__total span{font-family:var(--f-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(247,241,223,.72)}
.invoice__total b{font-family:var(--f-display); font-weight:900; text-transform:uppercase; font-size:clamp(20px,2.4vw,30px); color:var(--pink); letter-spacing:-.02em}

/* процесс */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(251,246,241,.2); margin-top:52px}
.step{background:var(--blue-deep); padding:28px 24px 32px}
.step__no{font-family:var(--f-mono); font-size:11px; letter-spacing:.16em; color:var(--cream)}   /* синяя карточка: розовый даёт 2.85:1 */
.step h3{font-size:clamp(20px,2.2vw,30px); color:var(--cream); margin:14px 0 10px}
.step p{margin:0; font-size:15px}

/* инструменты */
.tools{display:grid; grid-template-columns:repeat(4,1fr); gap:26px; margin-top:48px}
.tools__col h3{font-size:16px; color:var(--ink); padding-bottom:10px; border-bottom:2px solid var(--blue-dark)}
.tools__col li{padding:9px 0; border-bottom:1px solid rgba(11,31,41,.16); font-size:15px}

/* цифры */
.nums{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.nums__it{border-top:2px solid rgba(247,241,223,.35); padding-top:16px; text-align:center}
.nums__it .num{display:block; margin-bottom:12px; color:var(--cream); font-size:clamp(40px,5.4vw,76px)}
.nums__it small{font-family:var(--f-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:rgba(251,246,241,.7)}

/* цены */
.currency-switch{display:flex; flex-wrap:wrap; gap:8px; margin-top:30px}
.currency-switch__btn{padding:10px 18px; border:1px solid rgba(247,241,223,.5); background:transparent; color:var(--cream); font:inherit; font-size:14px; cursor:pointer; border-radius:0}
.currency-switch__btn[aria-pressed="true"]{background:var(--pink); border-color:var(--pink); color:var(--blue-dark)}
.currency-switch__btn:focus-visible{outline:2px solid var(--cream); outline-offset:4px}
.currency-status{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.plans{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:30px}
.plan{background:var(--blue-deep); color:var(--cream); padding:34px 28px 30px; display:flex; flex-direction:column; gap:22px; position:relative}
.plan--hl{background:var(--pink); color:var(--blue-dark)}
.plan h3{font-size:22px; line-height:1.3; min-height:2.6em; color:inherit}
.plan__price{font-family:var(--f-mono); font-size:clamp(23px,2.2vw,30px); margin:0; color:inherit; line-height:1.4}
.plan__price small{display:block; margin-top:5px; font-family:var(--f-body); font-size:14px; line-height:1.5}
.plan__description{border-top:1px solid currentColor; padding-top:22px; font-size:15px; line-height:1.7}
.plan p{color:inherit}
.plan__description p{margin:0 0 16px}
.plan__description p:last-child{margin-bottom:0}
.pricing-summary{margin-top:36px; padding-top:30px; border-top:1px solid rgba(247,241,223,.3); max-width:64em}
.pricing-summary h3{font-size:clamp(22px,3vw,30px); line-height:1.35}
.pricing-summary p{max-width:54em; margin:16px 0; line-height:1.7}
.pricing-summary .btn{margin-top:12px; max-width:100%; white-space:normal; text-align:center}

/* faq */
.faq{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(30px,5vw,80px); align-items:start}
.acc__it{border-bottom:1px solid rgba(251,246,241,.22)}
.acc__q{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:22px 0; text-align:left; font-size:17px; color:var(--cream);
  transition:color .25s var(--ease);
}
.acc__q:hover{color:var(--cream)}
.acc__q i{position:relative; width:14px; height:14px; flex:0 0 14px}
.acc__q i::before,.acc__q i::after{
  content:""; position:absolute; background:var(--pink); transition:transform .3s var(--ease);
}
.acc__q i::before{left:0; right:0; top:6px; height:2px}
.acc__q i::after{top:0; bottom:0; left:6px; width:2px}
.acc__it.is-open .acc__q i::after{transform:scaleY(0)}
.acc__a{max-height:0; overflow:hidden; transition:max-height .4s var(--ease)}
.acc__a p{margin:0 0 22px; max-width:44em}

/* cta */
.sec--cta{text-align:center}   /* фон задаёт класс карточки */
.cta__title{font-size:clamp(34px,7vw,110px)}
.cta p{max-width:34em; margin:26px auto 0; color:var(--cream)}
.cta__links{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:36px}

/* футер без фона: полос во всю ширину на подложке быть не должно */
.footer{color:rgba(247,241,223,.72); padding-top:8px}
.footer__in{display:flex; justify-content:space-between; gap:20px; padding-top:26px; padding-bottom:26px; font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase}
.footer a:hover{color:var(--pink)}

/* ── анимации появления ────────────────────────── */
.load{opacity:0; transform:translateY(28px)}
.load.is-in{opacity:1; transform:none; transition:opacity .8s var(--ease), transform .8s var(--ease)}
.reveal{opacity:0; transform:translateY(24px)}
.reveal.is-in{opacity:1; transform:none; transition:opacity .7s var(--ease), transform .7s var(--ease)}

:focus-visible{outline:2px solid var(--pink); outline-offset:3px}

/* ── адаптив ───────────────────────────────────── */
@media (max-width:1100px){
  .drow.is-open .dgrid{grid-template-columns:repeat(2,1fr)}
  .steps,.tools{grid-template-columns:repeat(2,1fr)}
  .plans{grid-template-columns:1fr}
  .plan h3{min-height:0}
}
@media (max-width:860px){
  :root{--pad:20px}
  .nav{display:none}
  .header .btn--sm{margin-left:auto}
  .burger{display:flex}
  .nav.is-open{
    display:flex; flex-direction:column; gap:0; position:fixed; inset:76px 0 auto;
    background:var(--blue-dark); padding:8px 20px 24px;
  }
  .nav.is-open a{padding:14px 0; border-bottom:1px solid rgba(251,246,241,.14)}
  .about,.imp,.faq{grid-template-columns:1fr; gap:34px}
}
@media (max-width:560px){
  .drow.is-open .dgrid{grid-template-columns:repeat(2,1fr); gap:10px}
  .steps,.tools,.nums{grid-template-columns:1fr}
  .drow__bar{grid-template-columns:auto minmax(0,1fr) auto; gap:12px}
  .drow__count{display:none}
  .drow__inner{padding-left:0; padding-right:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important; transition:none !important}
  .load,.reveal{opacity:1; transform:none}
}

/* ── скролл-вставка «хромовый цветок» ────────────────────────
   Не карточка: во всю ширину, без --gap и без скругления. Секция
   вынесена за .page, поэтому боковых полей у неё нет.
   Пути к постеру — относительно css/style.css, то есть ../public/. */
.giant{
  position: relative;
  height: 260vh;              /* длина проезда: больше — медленнее. Ниже 200vh не опускать */
  margin: 0;
  background: var(--ground);
}
.giant__stage{
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}
.giant__video{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce){
  .giant{ height: 100svh }
  .giant__video{ display: none }
  .giant__stage{
    background: url("../public/img/chrome-flower-poster.webp") center / cover no-repeat;
  }
}

/* ── превью работ: видно до раскрытия рубрик ────────────────────
   Пропорции обложек разные (9:16, 3:4, 16:9), поэтому кладка:
   горизонтальные занимают две колонки, высоту строки каждой плитке
   считает скрипт. Так ничего не кадрируется. */
.works{
  list-style:none; margin:0 0 22px; padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows:4px;              /* единица кладки; span считает JS */
  gap:14px;
}
.work{margin:0}
.work--wide{grid-column:span 2}
.work--extra{display:none}
.works.is-all .work--extra{display:block}
.work__btn{
  display:block; width:100%; padding:0; border:0; background:none;
  cursor:pointer; position:relative; border-radius:14px; overflow:hidden;
  color:inherit; text-align:left;
}
.work__img{
  display:block; width:100%; height:auto;
  transition:transform .4s var(--ease), filter .3s var(--ease);
}
.work__btn::after{                  /* затемнение снизу: только под подписью, по наведению */
  content:""; position:absolute; inset:auto 0 0 0; height:46%;
  background:linear-gradient(180deg, rgba(6,24,34,0), rgba(6,24,34,.78));
  opacity:0; transition:opacity .25s var(--ease); pointer-events:none;
}
.work__btn:hover::after, .work__btn:focus-visible::after{opacity:1}
/* значок видео — чтобы плитка читалась как кликабельная */
.work__play{
  position:absolute; top:10px; right:10px; z-index:2;
  width:26px; height:26px; border-radius:50%;
  background:rgba(6,20,30,.55); backdrop-filter:blur(4px);
  display:grid; place-items:center; pointer-events:none;
}
.work__play::before{
  content:""; width:0; height:0; margin-left:2px;
  border:5px solid transparent; border-left-color:var(--cream);
}
.work__cap{
  position:absolute; left:12px; right:12px; bottom:10px; z-index:2;
  display:flex; flex-direction:column; gap:1px;
  opacity:0; transform:translateY(6px);
  transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.work__btn:hover .work__cap, .work__btn:focus-visible .work__cap{opacity:1; transform:none}
/* бренды уже набраны на самих обложках — подписью их не дублируем */
.work__cap b{
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
}
.work__cap small{
  font-size:11px; letter-spacing:.06em; color:rgba(247,241,223,.82);
  text-shadow:0 2px 10px rgba(4,26,40,.6);
}
.work__btn:hover .work__img{transform:scale(1.04)}
.work__btn:focus-visible{outline:2px solid var(--cream); outline-offset:3px}
.works__more{margin:0 0 30px}

/* ── просмотр кейса ────────────────────────────────────────────── */
.lb[hidden]{display:none}
.lb{position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:3vmin}
.lb__backdrop{position:absolute; inset:0; background:rgba(6,20,30,.86); backdrop-filter:blur(8px)}
.lb__box{
  position:relative; z-index:1; display:grid; gap:0;
  grid-template-columns:minmax(0,auto) minmax(260px,330px);
  background:var(--teal); border-radius:20px; overflow:hidden;
  box-shadow:0 30px 80px rgba(2,12,20,.6); max-width:min(1100px, 94vw);
}
.lb__stage{background:#06141c; display:grid; place-items:center; min-width:0}
.lb__video,
.lb__img{display:block; max-width:100%; max-height:84vh; width:auto; height:auto}
.lb__video[hidden], .lb__img[hidden]{display:none}
.lb__info{padding:26px 24px; align-self:start}
.lb__brand{
  font-family:var(--f-body); font-weight:600; font-size:22px;
  letter-spacing:.04em; text-transform:uppercase; color:var(--cream); margin:0 0 8px;
}
.lb__tags{font-size:12.5px; letter-spacing:.04em; color:var(--pink); margin:0 0 14px}
.lb__close{
  position:absolute; top:8px; right:12px; z-index:3;
  width:38px; height:38px; font-size:26px; line-height:1;
  color:var(--cream); background:rgba(6,20,30,.5); border-radius:50%;
}
.lb__close:hover{background:rgba(6,20,30,.8)}
@media (max-width:860px){
  .lb__box{grid-template-columns:1fr; max-height:92vh; overflow:auto}
  .lb__video{max-height:58vh}
  .lb__info{padding:18px 18px 24px}
}
@media (max-width:560px){
  .works{grid-template-columns:repeat(2,1fr); gap:10px}
  .work--wide{grid-column:span 2}
}

/* размытие выключается у карточек за экраном — см. блок 13 в main.js */
.no-blur{backdrop-filter:none !important; -webkit-backdrop-filter:none !important}

/* ── стрелки у ленты ─────────────────────────────────────────────
   Колесо у страницы не отнимаем, поэтому мышью лента листается
   стрелками или перетаскиванием. Тачпад и палец работают нативно. */
.dnav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:40px; height:40px; border-radius:50%;
  background:rgba(8,32,48,.72); backdrop-filter:blur(6px);
  display:none; place-items:center;
  transition:opacity .2s var(--ease), background .2s var(--ease);
}
.dstrip.has-nav .dnav{display:grid}
.dnav:hover{background:rgba(8,32,48,.9)}
.dnav:disabled{opacity:0; pointer-events:none}
.dnav--prev{left:6px}
.dnav--next{right:6px}
.dnav::before{
  content:""; width:9px; height:9px;
  border-top:2px solid var(--cream); border-right:2px solid var(--cream);
}
.dnav--prev::before{transform:rotate(-135deg); margin-left:3px}
.dnav--next::before{transform:rotate(45deg); margin-right:3px}
.dnav:focus-visible{outline:2px solid var(--cream); outline-offset:2px}

/* перетаскивание мышью */
.drow.is-peek .dgrid{cursor:grab}
.drow.is-peek .dgrid.is-drag{cursor:grabbing; scroll-behavior:auto}
.drow.is-peek .dgrid.is-drag .work__btn{pointer-events:none}

/* Corner ornaments intentionally cross the rounded card edges. Each section
   reserves room for visible artwork; ornaments never receive pointer events. */
.page{overflow-x:clip}
.section--decor{overflow:visible; margin-bottom:clamp(44px,4vw,64px)}
.decor{position:absolute; z-index:2; display:block; width:var(--decor-size); height:auto; max-width:none; pointer-events:none; user-select:none}
.decor--flower{--decor-size:340px; right:calc(var(--decor-size) * -.188); bottom:calc(var(--decor-size) * -.218); transform:rotate(55deg)}
.decor--flytrap{--decor-size:290px; right:calc(var(--decor-size) * -.114); bottom:calc(var(--decor-size) * -.176); transform:rotate(-12deg)}
.decor--eye{--decor-size:190px; left:44%; top:calc(var(--decor-size) * -.142); transform:translateX(-50%) rotate(-18deg)}
.decor--tooth{--decor-size:230px; left:calc(var(--decor-size) * -.326); bottom:calc(var(--decor-size) * -.27); transform:rotate(24deg)}
.decor--star{--decor-size:300px; left:calc(var(--decor-size) * -.303); top:calc(var(--decor-size) * -.113); transform:rotate(-18deg)}
.decor--star-four{--decor-size:150px; right:-24px; bottom:-24px; transform:rotate(14deg)}
#process .decor-heading{padding-top:68px; padding-right:0}
#impossible.section--decor{padding-bottom:310px}
#faq.section--decor{padding-bottom:150px}
#contact.section--decor{padding-top:140px; padding-bottom:110px}
@media (max-width:860px){
  .decor--flower{--decor-size:250px}
  .decor--flytrap{--decor-size:230px}
  .decor--eye{--decor-size:150px}
  .decor--tooth{--decor-size:190px}
  .decor--star{--decor-size:240px}
  .decor--star-four{--decor-size:120px; right:-18px; bottom:-18px}
  #about.section--decor{padding-bottom:180px}
  #impossible.section--decor{padding-bottom:260px}
  #process .decor-heading{padding-top:70px; padding-right:0}
}
@media (max-width:560px){
  .decor--flower{--decor-size:210px; right:calc(var(--decor-size) * -.17)}
  .decor--flytrap{--decor-size:195px; right:calc(var(--decor-size) * -.09)}
  .decor--eye{--decor-size:120px; left:38%}
  .decor--tooth{--decor-size:170px; left:calc(var(--decor-size) * -.29)}
  .decor--star{--decor-size:210px; left:calc(var(--decor-size) * -.29)}
  .decor--star-four{--decor-size:100px; right:-14px; bottom:-16px}
  #about.section--decor{padding-bottom:155px}
  #impossible.section--decor{padding-bottom:230px}
  #process.section--decor{padding-top:112px}
  #process .decor-heading{padding-top:0; padding-right:0}
  #faq.section--decor{padding-bottom:140px}
  #contact.section--decor{padding-top:105px; padding-bottom:100px}
}

@media (min-width:721px) and (max-width:1100px){
  .logo__art{width:208px; height:52px}
  .header .nav{gap:18px}
}

/* Mobile scrub uses decoded frames instead of seeking a paused video. */
.giant__canvas{display:none}
@media (max-width:767px){
  .giant{height:190svh; background:transparent}
  .giant__stage{height:100svh; aspect-ratio:auto; background:transparent; display:grid; align-items:center}
  .giant__video{position:absolute; inset:auto 12px; top:50%; transform:translateY(-50%); width:calc(100% - 24px); height:auto; aspect-ratio:16 / 9; object-fit:contain; border-radius:22px}
}
.giant--sequence{height:190svh; background:transparent}
.giant--sequence .giant__stage{height:100svh; background:transparent; display:grid; align-items:center}
.giant--sequence .giant__video{position:absolute; inset:auto 12px; top:50%; transform:translateY(-50%); width:calc(100% - 24px); height:auto; aspect-ratio:16 / 9; object-fit:contain; border-radius:22px}
.giant--sequence .giant__canvas{display:block; visibility:hidden; width:min(calc(100% - 24px),calc(177.78svh - 85.33px)); height:auto; aspect-ratio:16 / 9; margin-inline:auto; border-radius:22px}
.giant--frame-ready .giant__video{display:none}
.giant--frame-ready .giant__canvas{visibility:visible}
@media (prefers-reduced-motion:reduce){
  .giant{height:100svh}
  .giant--sequence .giant__canvas{display:none}
  .giant__stage{height:100svh; background-image:url("../public/img/chrome-flower-poster.webp"); background-size:contain; background-position:center; background-repeat:no-repeat}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  .giant{height:auto; padding:12px}
  .giant__stage{height:auto; aspect-ratio:16 / 9; border-radius:22px; background-size:cover}
}

/* Content additions: legible estimates, benefits and responsive controls. */
.invoice__note{margin:0 0 6px; font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.invoice__budget{margin:20px 0 0; font-size:14px}
.invoice__budget strong{display:block; margin-top:6px; font-size:20px; color:var(--cream)}
.invoice__total{display:block; margin-top:20px; border-top:1px solid rgba(247,241,223,.22)}
.invoice__total span{display:block; margin-bottom:10px}
.invoice__total b{display:block; font-size:clamp(20px,2.2vw,28px); line-height:1.2}
.invoice__total p{margin:14px 0 0; font-size:15px; line-height:1.6}
.nums__it small{display:block; line-height:1.7}
.hero{min-height:760px}
@media (max-width:720px){.hero{min-height:850px}}
@media (max-width:560px){
  .invoice__row{display:grid; grid-template-columns:minmax(0,1fr); gap:8px}
  .invoice__row b{justify-self:start}
}

@media (max-width:560px){
  .currency-switch{flex-wrap:nowrap}
  .currency-switch__btn{flex:1; min-width:0; padding:10px 4px; font-size:12px}
}

/* Mobile navigation lives in the browser's top layer, outside hero clipping. */
.mobile-menu{position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:max(24px,env(safe-area-inset-top)) 24px max(32px,env(safe-area-inset-bottom)); border:0; color:var(--cream); background:linear-gradient(145deg,#254f65,#123642); overflow:auto}
.mobile-menu::backdrop{background:rgba(6,20,30,.7)}
.mobile-menu__header{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:24px; border-bottom:1px solid rgba(247,241,223,.3)}
.mobile-menu__header p{margin:0; font-family:Fraunces,serif; font-size:24px}
.mobile-menu__close{width:48px; height:48px; flex:none; font-size:38px; line-height:1; border:1px solid rgba(247,241,223,.4); border-radius:50%; color:var(--cream)}
.mobile-menu__nav{display:flex; flex-direction:column; gap:18px; padding:36px 0}
.mobile-menu__nav a{font-size:clamp(24px,5vw,40px); line-height:1.3; text-decoration:none}
.mobile-menu a:focus-visible,.mobile-menu button:focus-visible{outline:2px solid var(--pink); outline-offset:6px}
.mobile-menu .btn{max-width:100%; white-space:normal; text-align:center}
@media (max-width:1100px){
  .nav{display:none}
  .burger{display:flex}
  .header .btn--sm{display:none}
  .header{padding:24px; gap:16px}
  .burger{width:44px; height:44px; flex-shrink:0}
}
@media (max-width:1100px){
  .hero{height:auto; min-height:0; padding-top:104px}
  .hero__video{position:relative; inset:auto; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; object-position:85% 50%; transform:none; -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000 calc(100% - 18px),transparent); mask-image:linear-gradient(to bottom,transparent,#000 28px,#000 calc(100% - 18px),transparent)}
  .hero__content{position:static; inset:auto; padding:24px 24px 32px; display:block}
  .hero__nav{position:absolute; top:124px; left:24px; width:34%; max-width:300px; display:flex; flex-direction:column; gap:8px}
  .hero__nav a{font-size:clamp(11px,3vw,14px); line-height:1.5; letter-spacing:.02em; text-shadow:0 1px 3px rgba(6,32,48,.95),0 0 10px rgba(6,32,48,.8)}
  .hero__panel{width:auto; margin-top:0; padding:0}
  .hero__glass{display:none}
  .hero__title{font-size:clamp(1.5rem,8.5vw,3.2rem); line-height:1.1}
  .hero__sub{margin-top:16px}
  .hero__actions{margin-top:24px}
  .hero .btn{padding-inline:12px; white-space:normal}
  .drow__name{font-size:clamp(22px,6vw,38px); line-height:1.22; letter-spacing:-.02em; overflow-wrap:normal}
}
@media (max-width:1100px) and (prefers-reduced-motion:reduce){
  .hero{background-image:none}
  .hero__video{display:block}
}
@media (min-width:721px) and (max-width:1100px){
  .hero__video{aspect-ratio:16 / 9; object-fit:contain}
  .hero__nav a{font-size:15px}
  .hero__actions{flex-direction:row}
  .hero__content{padding-inline:36px}
}

/* Keep a real image visible until a non-black hero video frame is decoded. */
.hero__poster{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:50% 100%; transform:scale(1.004); transform-origin:bottom center; pointer-events:none}
.hero__video{opacity:0}
.hero--video-ready .hero__video{opacity:1}
@media(max-width:1100px){
  .hero__poster{position:relative; inset:auto; display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; object-position:85% 50%; transform:none; -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000 calc(100% - 18px),transparent); mask-image:linear-gradient(to bottom,transparent,#000 28px,#000 calc(100% - 18px),transparent)}
  .hero__video{position:absolute; top:104px; left:0; right:auto; bottom:auto}
}
@media(min-width:721px) and (max-width:1100px){.hero__poster{aspect-ratio:16 / 9; object-fit:contain}}

.hero__play{position:absolute; right:24px; z-index:4; padding:9px 14px; border:1px solid rgba(247,241,223,.7); border-radius:24px; background:rgba(18,53,67,.88); color:#f7f1df; font:inherit; font-size:13px; cursor:pointer}
.hero__play[hidden]{display:none}
/* A mobile flower follows normal document flow, without a full-screen runway. */
.giant--sequence{height:auto; padding:12px 0; margin:var(--gap) 0}
.giant--sequence .giant__stage{position:relative; top:auto; height:auto; aspect-ratio:16 / 9; margin-inline:12px; display:block; border-radius:22px}
.giant--sequence .giant__canvas{width:100%; height:100%; margin:0; border-radius:22px}
.giant--sequence .giant__video{inset:0; top:0; transform:none; width:100%; height:100%; border-radius:22px}

@media(max-width:1100px){
  .giant{height:auto; padding:12px 0; margin:var(--gap) 0}
  .giant__stage{position:relative; top:auto; height:auto; aspect-ratio:16 / 9; margin-inline:12px; display:block; border-radius:22px; background-color:transparent}
  .giant__video{inset:0; top:0; transform:none; width:100%; height:100%; border-radius:22px}
}

/* Keep the authored palette in automatic dark-mode WebViews. */
:root{color-scheme:dark}
@media(max-width:1100px), (pointer:coarse){
  .section,.sec{backdrop-filter:none; -webkit-backdrop-filter:none}
  .section--teal{background:#31576a; background-image:linear-gradient(135deg,#31576a,#285666)}
  .section--blue{background:#3b6480; background-image:linear-gradient(135deg,#3b6480,#32657c)}
  .section--ink{background:#244655; background-image:linear-gradient(135deg,#244655,#204b60)}
}
