/* davidcgi.com — styles v3 (24.11.2026): audit fixes + redesign. */

/* SF Pro Display, self-hosted at David's decision (24.11.2026) despite Apple's license limits — see README. */
@font-face {
  font-family: "SF Pro Site";
  src: url("/assets/fonts/sf-pro-display-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: #222222;
  --line-2: #3a3a3a;
  --text: #f4f4f1;
  --muted: #a3a39e;
  --dim: #6f6f6b;
  /* Lime on black. It was cream (#e8e2d4) — a monochrome site, which read as restrained but also
     as flat. --accent-on is what gets written on top of the accent: on a colour this bright that
     has to be the dark background, never white. */
  --accent: #b4d44a;
  --accent-on: #0a0a0a;
  --ok: #3ddc84;
  --bad: #ff8a73;       /* сообщение «не отправилось» под формой: мягкий коралл, 8.4:1 на чёрном */
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(48px, 6vw, 88px);
  /* One curve for everything was the old setup, and it was too weak to read as deliberate.
     Three now, picked by what the motion is doing:
       --ease-out    things entering or leaving the screen (starts fast, so it feels responsive)
       --ease-in-out things moving or morphing while already on screen
       --ease        hover and colour changes only
     Never ease-in on interface motion: it starts slow, exactly when the eye is watching. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Horizontal rules fade out towards both edges instead of running edge to edge at one flat value.
     A hard 1px line across the full width is the giveaway of a template; a rule that dissolves at the
     ends reads as drawn, not generated. Used as a background-image, so one declaration covers both
     the top and the bottom edge of a block. var(--line) resolves per theme at the point of use. */
  --rule: linear-gradient(90deg, transparent 0%, var(--line) 14%, var(--line) 86%, transparent 100%);
  --rule-2: linear-gradient(90deg, transparent 0%, var(--line-2) 14%, var(--line-2) 86%, transparent 100%);
  --font: "SF Pro Site", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* -webkit-tap-highlight-color: the grey box iOS and Android paint over anything tapped. It is the
   loudest "this is a website" signal on a phone and it fights the :active feedback below, which is
   what replaces it. -webkit-text-size-adjust stops the font inflating in landscape. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* touch-action: manipulation tells the browser these elements never double-tap-zoom, so it fires
   the tap at once instead of waiting ~300ms to see whether a second tap is coming.
   user-select: none stops a long press from selecting a button's label — content stays selectable. */
button, a, [role="button"], summary { touch-action: manipulation; }
button, [role="button"], .btn, .chip, .nav-cta { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* inputs are bumped to 16px for touch at the very end of this file, where they can win the cascade */
/* Lenis smooth scroll (loaded in anim.js, pointer devices only). These four rules are the library's
   own stylesheet, inlined: without the first one the native smooth-scroll fights Lenis and anchor
   jumps land in the wrong place. The classes only exist while Lenis is running, so nothing here
   touches a phone or a browser where the script never loaded. */
html.lenis, html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto; }
html.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis-stopped { overflow: hidden; }
body {
  /* Not a gradient in the usual sense — a light source. Two very wide, almost colourless pools
     (5% and 3% of the warm accent) fixed to the viewport, so the page reads as lit from the top left
     instead of as flat black. A visible colour gradient would cheapen a luxury portfolio; this is
     below the threshold where you read it as "a gradient". Delete these two lines to go back to flat. */
  background:
    radial-gradient(1100px 700px at 12% -12%, rgba(232, 226, 212, .055), transparent 68%),
    radial-gradient(900px 620px at 102% -4%, rgba(232, 226, 212, .032), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
@media (pointer: fine) { html { overscroll-behavior: none; } }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[id] { scroll-margin-top: 96px; }

/* focus — visible for keyboard, not on click */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .filters button:focus-visible { outline-offset: 4px; border-radius: 99px; }

/* skip link */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus-visible { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Форма не ушла. Текст остаётся в полях, человек видит почему и куда писать вручную.
   Два класса в селекторе не для красоты: сообщение носит и .note, который объявлен ниже
   по файлу и с одним классом перекрыл бы цвет. */
.note.form-error, .form-error { color: var(--bad); }
.form-error a { color: inherit; }

/* ---------- nav: floating island (Vertex-style) ---------- */
.nav { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40; width: min(1040px, calc(100% - 24px)); background: rgba(24,24,24,.78); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.nav .bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; height: 60px; padding: 0 8px 0 20px; }
.logo { font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; }
/* light sweep across the mark every few seconds. The highlight is masked by the logo file itself,
   so it only ever travels inside the shape — nothing leaks into the bar around it. The mask box
   hugs the image (line-height 0 kills the baseline gap), so mask and image always line up. */
/* the mark sits at 86%, not full white: a white sweep over pure white is invisible, so the base is
   held just below and the sweep brings it to 100% with a glow. That gap is the whole effect. */
.logo-mark { position: relative; display: inline-block; line-height: 0; }
.nav .logo img { opacity: .86; }
.logo-mark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* cool on the leading edge, warm on the trailing one — reads as light moving across metal
     rather than a plain white bar */
  background: linear-gradient(105deg, transparent 36%, rgba(188,214,255,.55) 45%, #fff 50%, rgba(255,232,198,.55) 55%, transparent 64%);
  filter: drop-shadow(0 0 7px rgba(255,255,255,.5));
  background-size: 300% 100%; background-repeat: no-repeat;
  -webkit-mask-image: url(/assets/brand/logo-light@nav.png); mask-image: url(/assets/brand/logo-light@nav.png);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: logo-sweep 5s linear infinite;
}
/* the sweep crosses in the first fifth of the cycle, then waits — a constant shimmer reads as a
   loading state, a rare one reads as a material */
@keyframes logo-sweep {
  0%   { background-position: 200% 0; }
  18%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) { .logo-mark::after { animation: none; display: none; } }
/* on the light pages the mark is painted black, so a white sweep would read as damage */
:root[data-theme="light"] .logo-mark::after { display: none; }

/* proof strip under the hero */
/* Four equal columns left the last figure stranded in the middle of its cell, so the row looked
   narrower than the logo wall under it. Spread instead: first block flush to the left end of the
   rule, last block flush to the right end, the gaps between them doing the balancing. */
.proof { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(20px, 2.5vw, 44px); margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; background-image: var(--rule); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; }
.proof div { display: flex; flex-direction: column; gap: 6px; flex: 0 1 auto; }
.proof div:last-child { text-align: right; align-items: flex-end; }
.proof b { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: 14px; line-height: 1.35; max-width: 230px; }
@media (max-width: 820px) {
  .proof { display: grid; grid-template-columns: repeat(2, 1fr); }
  .proof div:last-child { text-align: left; align-items: flex-start; }
}

/* services accordion (one open at a time) */
.acc { display: grid; gap: 10px; }
/* the accordion was 450–500ms throughout. An expanding panel is a dropdown, not a drawer: under
   300ms it reads as responsive, over it as sluggish. Height is one of the two documented exceptions
   to transform-and-opacity-only — a measured accordion height cannot be faked with a transform. */
.acc-item { background: var(--bg-2); border: 1px solid transparent; border-radius: 16px; overflow: hidden; transition: border-color .28s var(--ease), background-color .28s var(--ease); }
.acc-panel { overflow: hidden; transition: height .32s var(--ease-in-out); }
.acc-panel > .acc-inner { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease-out) .05s, transform .3s var(--ease-out) .05s; }
.acc-item.open .acc-panel > .acc-inner { opacity: 1; transform: none; }
.acc-item.open { background: var(--bg-3); border-color: var(--line-2); }
.acc-h { margin: 0; font-size: inherit; font-weight: inherit; }
.acc-head { width: 100%; display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 12px; padding: 22px 22px 22px 24px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 72px; }
.acc-n { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.acc-title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.acc-plus { position: relative; width: 40px; height: 40px; justify-self: end; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); transition: transform .28s var(--ease-out), background-color .25s var(--ease); }
.acc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-plus::before { transform: translate(-50%, -50%) rotate(180deg); }
.acc-item.open .acc-plus::after { transform: translate(-50%, -50%) rotate(180deg); }
.acc-item.open .acc-plus::before, .acc-item.open .acc-plus::after { background: var(--text); }
.acc-title { transition: color .3s var(--ease); }
.acc-inner { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(20px, 3vw, 40px); padding: 0 24px 28px 92px; align-items: start; }
.acc-inner img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.acc-text { font-size: 17px; color: var(--text); max-width: 640px; }
.acc-meta { color: var(--muted); margin-top: 14px; font-size: 15px; line-height: 1.6; }
.acc-meta b { color: var(--text); font-weight: 600; }
.acc-inner .tags { margin-top: 16px; }
.acc-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.acc-link { font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s var(--ease); }
@media (max-width: 820px) {
  .acc-head { grid-template-columns: 36px 1fr 32px; padding: 18px 16px; }
  .acc-inner { grid-template-columns: 1fr; padding: 0 16px 22px 16px; }
  .acc-inner img { max-height: 220px; }
}

/* consult sections */
.consult-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.consult-block .panel { position: static; }
.consult-block .btn { margin-top: 28px; }
@media (max-width: 1020px) { .consult-block { grid-template-columns: 1fr; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); }
.modal[open], .modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,5,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-in .modal-backdrop { opacity: 1; }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100dvh - clamp(24px, 6vw, 64px)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 3vw, 34px); opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.modal.is-in .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.modal-box h3 { font-size: 26px; letter-spacing: -.02em; padding-right: 44px; }
.modal-box label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 16px; }
.modal-box .field { width: 100%; min-height: 52px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background-color: var(--bg); color: var(--text); font: inherit; font-size: 15px; margin-top: 6px; transition: border-color .2s var(--ease); }
.modal-box .field:focus-visible { outline: none; border-color: var(--accent); }
.modal-box textarea.field { min-height: 110px; resize: vertical; }
.modal-box select.field { appearance: none; background-color: var(--bg); color: var(--text); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.modal-box select.field option { background: var(--bg); color: var(--text); }
.modal-box .btn { width: 100%; margin-top: 22px; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-box { transition: none; } }

/* three plain columns, no cards */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.cols h3 { font-size: 22px; margin-bottom: 10px; }
.cols p { color: var(--muted); }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule-2); transform: scaleX(var(--line-grow, 1)); transform-origin: left center; }
.timeline div { position: relative; padding: 32px 24px 0 0; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); box-sizing: border-box; }
.timeline div:first-child .dot { background: var(--text); }
.timeline small { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.timeline h3 { font-size: 20px; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* slim strip */
.strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 0; background-image: var(--rule), var(--rule); background-size: 100% 1px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
.strip p { color: var(--muted); }
.strip p b { color: var(--text); font-weight: 600; }

@media (max-width: 820px) {
  .cols, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline div { padding: 0 0 0 28px; margin-bottom: 28px; }
  .timeline .dot { top: 4px; }
}
.footer-logo { width: 160px; height: auto; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s var(--ease); }
/* the current page stays marked on touch too, so this one is NOT behind the hover query */
.nav-links a.active { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 650; text-decoration: none; transition: background-color .2s var(--ease); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
/* ---------- the phone menu ----------
   The top row never moves. Logo, the Menu/Close button and Let's talk keep the exact places they
   hold when the menu is shut; the list grows underneath them. Earlier the button and the CTA
   travelled down into a second row on open, so Let's talk jumped every time.
   Row 1 is pinned to 60px — the closed bar's height — so the logo sits at the same y in both
   states. Row 2 is the list, and the padding that gives it air lives INSIDE it, so it collapses
   with the list instead of adding 16px to the shut bar. */
@media (max-width: 1020px) {
  .nav .bar { grid-template-columns: 1fr auto auto; grid-template-rows: 60px auto; height: auto; padding: 0 8px 0 16px; gap: 0 6px; }
  .nav .logo, .nav-toggle, .nav-cta { grid-row: 1; }
  /* "Menu" and "Close" are different widths; without a floor the button resizes and pushes the CTA */
  .nav-toggle { display: inline-block; min-width: 78px; text-align: center; }

  /* The open/close itself: max-height plus opacity. The 0fr→1fr grid trick is the tidier one, but
     this list is a grid item inside .bar whose own row is auto-sized, and a 1fr track inside an
     auto-sized track does not resolve — the panel simply never opened. max-height has one flaw,
     that the curve is not the list's real height, and with six items the difference is invisible.
     visibility switches on a delay so the links are unreachable by keyboard while the menu is shut
     and reachable the moment it opens. */
  .nav .nav-links {
    grid-row: 2; grid-column: 1 / -1;
    display: block; max-height: 0; overflow: hidden;
    font-size: 26px; font-weight: 700; letter-spacing: -.02em;
    opacity: 0; visibility: hidden;
    transition: max-height .3s var(--ease-out), opacity .18s var(--ease-out), visibility 0s linear .3s;
  }
  .nav .nav-links-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 4px 16px; }
  .nav .nav-links a { color: var(--text); padding: 6px 0; opacity: 0; transform: translateY(10px); transition: opacity .26s var(--ease-out), transform .26s var(--ease-out), color .2s var(--ease); }

  body.nav-open .nav .nav-links { max-height: 460px; opacity: 1; visibility: visible; transition: max-height .34s var(--ease-out), opacity .24s var(--ease-out), visibility 0s; }
  body.nav-open .nav .nav-links a { opacity: 1; transform: none; }
  /* 35ms apart: enough that the list reads as one motion with a direction, short enough that the
     last item is not still arriving while the thumb is already moving towards it */
  body.nav-open .nav .nav-links a:nth-child(1) { transition-delay: .05s; }
  body.nav-open .nav .nav-links a:nth-child(2) { transition-delay: .085s; }
  body.nav-open .nav .nav-links a:nth-child(3) { transition-delay: .12s; }
  body.nav-open .nav .nav-links a:nth-child(4) { transition-delay: .155s; }
  body.nav-open .nav .nav-links a:nth-child(5) { transition-delay: .19s; }
  body.nav-open .nav .nav-links a:nth-child(6) { transition-delay: .225s; }
}
/* desktop: the inner box disappears from the layout so the links stay direct flex children */
@media (min-width: 1021px) { .nav-links-inner { display: contents; } }
@media (prefers-reduced-motion: reduce) {
  .nav .nav-links, .nav .nav-links a, body.nav-open .nav .nav-links, body.nav-open .nav .nav-links a { transition: none; transition-delay: 0s; }
}

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(44px, 7.4vw, 108px); line-height: .98; letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); max-width: 640px; }
.note { font-size: 14px; color: var(--muted); }
.accent { font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.03em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex: none; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,132,.15); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
section { padding: var(--section) 0; }
.stack > * + * { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head .stack { max-width: 760px; }
.divider { /* seamless: no lines between blocks */ }

/* ---------- hero ---------- */
.hero { padding: clamp(130px, 13vw, 180px) 0 clamp(40px, 5vw, 72px); }
.hero h1 { max-width: 1100px; margin: 22px 0 26px; }
.reel { margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: relative; }
.reel img, .reel video, .reel iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.placeholder-tag { position: absolute; left: 16px; bottom: 16px; font-size: 12px; padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.6); color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 99px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease-out); }
/* ---------- press feedback ----------
   A native control answers the instant the finger lands; a web control that only changes on click
   answers when the finger LEAVES, which reads as lag even at 0ms. :active fires on press and works
   on every input type, so it is also what replaces hover on a phone. 120–160ms, ease-out, and the
   scale stays between .96 and .99 — anything deeper reads as a bug rather than a press. */
.btn:active { transform: scale(.97); }
.nav-cta, .filters button, .f-toggle, .f-row .chip, .f-view button, .modal-close, .acc-head, .wa-float {
  transition: transform .15s var(--ease-out), color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-cta:active, .filters button:active, .f-toggle:active, .f-row .chip:active, .f-view button:active, .modal-close:active { transform: scale(.96); }
.acc-head:active { transform: scale(.995); }   /* a full-width row needs far less travel to read */
.wa-float:active { transform: scale(.94); }
a.card:active, .tile:active { transform: scale(.985); }
/* the list row slides instead of scaling: it is full width, so a scale would look like a glitch */
.prow:active > * { transform: translateX(6px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease-out); }
.card .media { aspect-ratio: 16/10; background: #000; overflow: hidden; position: relative; }
/* 600–700ms on a hover zoom is a hover state held for most of a second. Hover is hit dozens of
   times a session, so it gets the shortest motion that still reads as deliberate. */
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.card .body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .body p { color: var(--muted); font-size: 15px; }
.card .price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: auto; font-variant-numeric: tabular-nums; }
.card .price s { color: var(--dim); font-weight: 400; font-size: 18px; margin-right: 8px; }
/* money and duration are two different facts — one is the decision, the other is a detail.
   Stacked inside one pill they read as a single odd string ("$100 · 60 min"). */
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.price-row .price { margin-top: 0; }
.price-meta { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.price-note { font-size: 13px; color: var(--dim); }
/* the quiet second action under a button: "try the free version" */
/* the action line at the foot of a whole-card link. margin-top: auto pins it to the bottom, so
   three cards with different text lengths still line their actions up. */
.card .go { margin-top: auto; padding-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .2s var(--ease); }
.card .go .arrow { transition: transform .25s var(--ease-out); }
.card .btn + .sub-action { margin-top: 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); align-self: flex-start; padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease); }
/* Pricing tiers: the price is what the three cards are compared on, so it has to sit on one line
   across all of them. The description absorbs the slack instead of the price being bottom-anchored. */
.learn-tiers .card .body > p:not(.eyebrow):not(.price-note) { flex: 1; }
.learn-tiers .price-row { margin-top: 0; }
.learn-tiers .card .btn { margin-top: 4px; }

/* the one card you want picked */
.card.featured-pick { border-color: var(--accent); }
.card .tag-pick { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; background: var(--accent); color: var(--accent-on); }
.card { position: relative; }
.card .btn { margin-top: 8px; align-self: flex-start; }
a.card { text-decoration: none; }

/* project cards — caption under a big frame */
.pcard { background: transparent; border: 0; border-radius: 0; }
.pcard .media { border-radius: var(--radius); aspect-ratio: 4/3; }
.pcard .body { padding: 16px 2px 4px; gap: 4px; }
.pcard .body .eyebrow { font-size: 12px; color: var(--muted); }
.pcard .body .eyebrow::before { display: none; }
.pcard .body h3 { font-size: 22px; }
.pcard .body p { font-size: 14px; }
.grid.featured { grid-template-columns: repeat(2, 1fr); row-gap: clamp(28px, 4vw, 48px); }
.grid.featured .pcard .media { aspect-ratio: 16/10; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 20% 0%, #2b2b2b 0%, #0f0f0f 70%); }
.ph span { font-size: 22px; font-weight: 700; color: #8b8b86; letter-spacing: -.01em; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); color: var(--text); font-variant-numeric: tabular-nums; }

/* filters — chip row + disclosure panel (Vertex-style groups, phantom-style mono micro-type) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.filters button[aria-pressed="true"], .filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button sup { font-size: 10px; margin-left: 5px; opacity: .65; font-variant-numeric: tabular-nums; vertical-align: super; line-height: 0; }

.filterbar { position: relative; margin: 32px 0 0; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; flex: none; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.f-toggle[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.f-toggle svg { width: 18px; height: 18px; }
.f-row .chip { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.f-row .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip sup { font-size: 10px; margin-left: 5px; opacity: .65; font-variant-numeric: tabular-nums; vertical-align: super; line-height: 0; }
.f-row .chip.extra { border-style: dashed; }

/* panel */
.f-panel { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; width: min(880px, 100%); padding: clamp(18px, 2vw, 26px); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.f-panel[hidden] { display: none; }
.f-group + .f-group { margin-top: 22px; }
.f-group > h2, .f-group > h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.f-group .f-items { display: flex; flex-wrap: wrap; gap: 8px; }
.f-group .chip { padding: 8px 14px; min-height: 36px; font-size: 13px; }
.f-count { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); margin: 18px 0 26px; font-variant-numeric: tabular-nums; }
.f-count b { color: var(--text); font-weight: 500; }
.f-clear { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: none; border: 0; padding: 0 0 0 14px; color: var(--dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-empty { padding: 60px 0; color: var(--muted); }
.f-view { display: inline-flex; margin-left: auto; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; gap: 2px; }
.f-view button { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; min-height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--dim); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.f-view button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 620px) { .f-view { margin-left: 0; } }

/* ---- list view (phantom.land-style rows) ---- */
.plist { background-image: var(--rule); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; }
.yeargroup + .yeargroup { margin-top: 10px; }
.yeargroup > h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--dim); padding: 22px 0 10px; position: sticky; top: 84px; background: var(--bg); z-index: 2; }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1.2fr) 86px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 10px; background-image: var(--rule); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; text-decoration: none; color: var(--text); transition: background-color .3s var(--ease); }
/* the row used to animate padding-left, which is layout → paint → composite on every frame.
   Moving the cells with a transform does the same thing on the GPU and leaves the row's own
   background and its hairline where they are, so no gap opens at the left edge. */
.prow > * { transition: transform .3s var(--ease-out); }
/* background-color, not the shorthand — the shorthand would wipe the fading rule set as background-image */
.prow .pr-n { font-size: 12px; font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums; }
.prow .pr-title { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.prow .pr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prow .tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 11px; white-space: nowrap; }
.prow .pr-fmt { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.prow .pr-right { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 900px) {
  .prow { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 16px 8px; }
  .prow .pr-fmt, .prow .pr-right { display: none; }
  .prow .pr-tags { grid-column: 2 / -1; }
  .yeargroup > h2 { top: 72px; }
}

/* frame that follows the cursor over the list */
.hover-preview { position: fixed; z-index: 30; top: 0; left: 0; width: clamp(220px, 20vw, 320px); aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line-2); pointer-events: none; opacity: 0; transform: translate3d(-9999px, -9999px, 0) scale(.94); transition: opacity .25s var(--ease), scale .35s var(--ease); will-change: transform; }
.hover-preview.on { opacity: 1; scale: 1; }
.hover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hover-preview .hp-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: #5f5f5b; padding: 0 14px; text-align: center; }
@media (hover: none), (max-width: 900px) { .hover-preview { display: none; } }
@media (max-width: 620px) {
  .f-panel { position: static; width: auto; margin-top: 12px; box-shadow: none; }
  .f-row { gap: 6px; }
  .f-row .chip { font-size: 13px; padding: 8px 14px; min-height: 38px; }
}

/* numbered rows (services) */
.rows { background-image: var(--rule); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; }
.row { display: grid; grid-template-columns: 70px 1.1fr 1.4fr 1fr; gap: 24px; align-items: start; padding: clamp(24px, 3vw, 36px) 0; background-image: var(--rule); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; text-decoration: none; transition: background-color .3s var(--ease); }
.row .n { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 6px; }
.row h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; font-weight: 700; }
.row p { color: var(--muted); }
.row .tags { justify-content: flex-end; }

/* the text list of client names that used to sit on About is gone — that page now shows the same
   logo wall as the home page, so .clients had no markup left to style */

/* steps */
.steps { counter-reset: s; }
.steps .card .body::before { counter-increment: s; content: "0" counter(s); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* lists */
.list { list-style: none; display: grid; gap: 14px; }
.list li { padding-left: 22px; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.list li b { color: var(--text); font-weight: 600; }

/* forms */
.form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form input { flex: 1 1 260px; min-height: 52px; padding: 14px 20px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; }
.todo { border: 1px dashed #6b5d2e; color: #d8c27a; background: rgba(216,194,122,.06); border-radius: 10px; padding: 10px 14px; font-size: 13px; }

/* faq */
details { background-image: var(--rule); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; padding: 20px 0; }
details:last-of-type { background-image: var(--rule), var(--rule); background-size: 100% 1px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; max-width: 680px; }

/* quotes, meta, tags */
.quote { font-size: clamp(24px, 3vw, 40px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; max-width: 1000px; }
.quote-by { color: var(--muted); margin-top: 20px; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.person .face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--muted); border: 1px solid var(--line-2); }
.person b { display: block; font-size: 16px; }
.person span { color: var(--muted); font-size: 14px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; background-image: var(--rule), var(--rule); background-size: 100% 1px; background-position: 0 0, 0 100%; background-repeat: no-repeat; padding: 26px 0; margin: 36px 0; }
.meta div { font-size: 16px; }
.meta .eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.meta .eyebrow::before { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }

/* about strip, photo placeholders */
.about-strip { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.photo-ph { aspect-ratio: 4/5; border-radius: var(--radius); border: 1px dashed #444; display: flex; align-items: center; justify-content: center; color: #8b8b86; font-size: 14px; background: var(--bg-2); }

/* ticker */
.ticker { overflow: hidden; white-space: nowrap; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 64px; animation: tick 50s linear infinite; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* big CTA before footer */
.cta-big { padding: var(--section) 0 clamp(32px, 4vw, 56px); }
.cta-big h2 { font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -.045em; max-width: 1100px; }
.cta-big .btn-row { margin-top: 36px; }

/* footer */
footer { padding: 56px 0 40px; color: var(--muted); font-size: 14px; }

/* logo wall (hero) */
/* logo wall — Vertex-style: centered rows, no cells, grey logos */
.logo-wall { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.logo-wall .label { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: clamp(28px, 3vw, 40px); }
/* One box for every logo, Vertex-style. Each cell is the same size and the mark is fitted inside it
   with object-fit: contain, so nothing is sized per logo — no hand-set heights, no wide/narrow
   classes. 24 logos divide evenly: 6 columns × 4 rows on desktop, 4 × 6 on a phone.
   A 16:1 wordmark (Carolina Herrera) ends up thin because the box width binds it before its height.
   That is the trade for an even wall, and it is what the reference site does too.
   The files are already white ink on transparent, so no grayscale/brightness filter — that is what
   washed them out before. Nothing is ever shown above its native pixel size. */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: clamp(26px, 3vw, 42px) clamp(18px, 2.4vw, 32px); max-width: 1120px; margin: 0 auto; }
.logo-grid .cell { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; }
/* 92%, not 100%: a wordmark that touches both walls of its cell reads as cramped next to a square
   mark floating in the middle of its own */
.logo-grid img { max-height: 100%; max-width: 92%; width: auto; height: auto; object-fit: contain; opacity: .66; filter: brightness(0) invert(1); transition: opacity .3s var(--ease); }
.logo-wall .more { margin-top: clamp(24px, 3vw, 36px); font-size: 14px; color: var(--dim); }
@media (max-width: 1020px) { .logo-grid { grid-template-columns: repeat(4, 1fr); max-width: 680px; } }
@media (max-width: 620px) { .logo-grid { gap: 22px 14px; max-width: 400px; } .logo-grid .cell { height: 30px; } }

/* project tiles — WHY.CGI-style bento: equal row height, wide tiles for 16:9, narrow for 9:16,
   labels over the frame (category pill top-left, title bottom-left, format bottom-right) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 24vw, 340px); grid-auto-flow: dense; gap: clamp(12px, 1.4vw, 18px); }
.tile { position: relative; grid-column: span 2; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); text-decoration: none; isolation: isolate; transition: transform .15s var(--ease-out); }
.tile.v { grid-column: span 1; }
.tile .bg, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.tile .pill, .tile .t-title, .tile .t-meta, .tile .badge { position: absolute; z-index: 2; }
.tile .pill { top: 14px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }
.tile .badge { top: 14px; left: auto; right: 14px; }
.tile .t-title { left: 18px; bottom: 16px; right: 40%; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tile .t-meta { right: 18px; bottom: 19px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(244,244,241,.7); font-variant-numeric: tabular-nums; text-align: right; }
.tile .ph span { color: #5f5f5b; }
@media (max-width: 1020px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile, .tile.v { grid-column: span 1; } .tile:not(.v) { grid-column: span 2; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; grid-auto-rows: 240px; } .tile, .tile.v, .tile:not(.v) { grid-column: span 1; } .tile .t-meta { display: none; } .tile .t-title { right: 18px; } }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .eyebrow { color: var(--dim); margin-bottom: 4px; }
.footer-col .eyebrow::before { display: none; }
.footer-col a { text-decoration: none; color: var(--muted); transition: color .2s var(--ease); }

/* WhatsApp float */
.wa-float { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .25s var(--ease); }

/* contact switcher */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.switch .btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.switch .btn:not(.on) { background: transparent; color: var(--text); border-color: var(--line-2); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 2.5vw, 32px); position: sticky; top: 96px; }
.panel h3 { font-size: 28px; letter-spacing: -.02em; }
.panel label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 16px; }
.panel .field { width: 100%; min-height: 52px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background-color: var(--bg); color: var(--text); font: inherit; font-size: 15px; margin-top: 6px; transition: border-color .2s var(--ease); }
.panel .field:focus-visible { outline: none; border-color: var(--accent); }
.panel textarea.field { min-height: 130px; resize: vertical; }
.panel select.field { appearance: none; background-color: var(--bg); color: var(--text); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.panel select.field option { background: var(--bg); color: var(--text); }
.panel .btn { width: 100%; margin-top: 20px; }
.panel iframe { width: 100%; height: 620px; border: 0; border-radius: var(--radius-sm); margin-top: 16px; background: var(--bg); }
.brief-list { counter-reset: b; display: grid; margin-top: 24px; }
.brief-list li { list-style: none; counter-increment: b; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; background-image: var(--rule); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; }
.brief-list li::before { content: "0" counter(b); color: var(--dim); font-size: 14px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.brief-list b { display: block; font-size: 19px; margin-bottom: 4px; }
.brief-list span { color: var(--muted); }

/* links page */
.links-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.links-box { width: 100%; max-width: 440px; text-align: center; }
.links-box .avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 1px solid var(--line); }
.links-box .btn { width: 100%; margin-top: 12px; }

/* legal */
.legal { max-width: 760px; padding-top: 150px; padding-bottom: 104px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 8px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; }

/* animation helpers (GSAP adds .is-in; without JS everything stays visible) */
/* no standing will-change here: it was on every [data-reveal] on the page at all times, which keeps
   a compositor layer alive for each one long after its reveal has finished. GSAP sets and clears
   will-change around the animation itself, which is the whole point of the hint. */

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .contact-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .row { grid-template-columns: 48px 1fr; }
  .row p, .row .tags { grid-column: 2; }
  .row .tags { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .grid.two, .grid.three, .grid.featured { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- reduced motion ---------- */
/* ===========================================================================
   LIGHT THEME — the education side of the site (/learn/, /consult/).
   Same type, same layout, same components: only the tokens flip, plus the few
   places where a dark colour was written by hand. Set with <html data-theme="light">.
   The brand side (work for brands) stays dark; this makes the two doors obvious.
   =========================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f4;        /* warm off-white, not paper white — matches the cream accent of the dark side */
  --bg-2: #ffffff;
  --bg-3: #f2eee6;
  --line: #e9e4d9;
  --line-2: #cec8b9;
  --text: #16150f;
  --muted: #5d5a50;
  --dim: #918c7f;
  /* Lime, matched to the dark side but a shade deeper: on white a colour this bright needs help.
     Four tokens:
     --accent      the colour itself (borders, hovers, small marks, washes)
     --accent-ink  a dark version, for TEXT — lime as text on white is unreadable (1.6:1)
     --accent-tint the wash behind a price or a highlight
     --accent-on   what is written ON TOP of --accent. White on lime is 1.9:1, so here it is dark.
     Other accents stay below under data-accent, each with the same four values. */
  --accent: #a8cc3a;
  --accent-ink: #55691a;
  --accent-tint: rgba(168, 204, 58, .24);
  --accent-on: #16150f;
  --ok: #1f9d55;
  --bad: #b3321c;
  --radius: 22px;       /* softer corners read friendlier than the sharp dark side */
  --radius-sm: 14px;
}
/* kept as alternates — set data-accent on <html> to swap. Each needs all four tokens. */
:root[data-theme="light"][data-accent="blue"]  { --accent: #27509c; --accent-ink: #1d3c76; --accent-tint: rgba(39, 80, 156, .10); --accent-on: #ffffff; }
:root[data-theme="light"][data-accent="amber"] { --accent: #c9890f; --accent-ink: #825706; --accent-tint: rgba(201, 137, 15, .16); --accent-on: #ffffff; }
:root[data-theme="light"][data-accent="green"] { --accent: #2f7a56; --accent-ink: #1f5a3e; --accent-tint: rgba(47, 122, 86, .12); --accent-on: #ffffff; }
:root[data-theme="light"][data-accent="carmine"] { --accent: #c0233a; --accent-ink: #8f1628; --accent-tint: rgba(192, 35, 58, .10); --accent-on: #ffffff; }
:root[data-theme="light"] body {
  /* same idea as the dark side — a light source, not a gradient — just warmer and a touch stronger */
  background:
    radial-gradient(1100px 700px at 10% -14%, rgba(226, 88, 58, .10), transparent 66%),
    radial-gradient(900px 640px at 100% -6%, rgba(226, 88, 58, .05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="light"] .nav { background: rgba(255, 255, 255, .82); border-color: rgba(22, 21, 15, .08); box-shadow: 0 10px 40px rgba(60, 50, 35, .10); }
:root[data-theme="light"] .modal-backdrop { background: rgba(32, 29, 22, .42); }
:root[data-theme="light"] .modal-box { box-shadow: 0 30px 90px rgba(60, 50, 35, .22); }
:root[data-theme="light"] .card .media { background: var(--bg-3); }
:root[data-theme="light"] .ph { background: radial-gradient(120% 120% at 20% 0%, #ffffff 0%, var(--bg-3) 70%); }
:root[data-theme="light"] .ph span { color: var(--dim); }
:root[data-theme="light"] .photo-ph { border-color: var(--line-2); color: var(--dim); background: var(--bg-2); }
:root[data-theme="light"] .reel { background: var(--bg-3); }
/* the logo files are white ink; brightness(0) paints them black without needing a second set of files */
:root[data-theme="light"] .nav .logo img,
:root[data-theme="light"] .footer-logo { filter: brightness(0); }

/* playful details, light side only.
   The accent is deliberately rare: a dot on every bullet and every eyebrow turned the page into
   speckle and made it feel alarmed. It now marks only the price, the step numbers and hover states. */
:root[data-theme="light"] .eyebrow::before { background: var(--dim); }
:root[data-theme="light"] .list li::before { background: var(--line-2); }
:root[data-theme="light"] .card { box-shadow: 0 2px 10px rgba(60, 50, 35, .05); }
:root[data-theme="light"] .card .price {
  align-self: flex-start; padding: 7px 16px; border-radius: 99px; font-size: 22px;
  background: var(--accent-tint); color: var(--accent-ink);
}
:root[data-theme="light"] .card .price s { color: var(--dim); }
:root[data-theme="light"] .steps .card .body::before { color: var(--accent-ink); font-weight: 700; }
:root[data-theme="light"] .list li b { color: var(--text); }

/* cross-document page transitions: the browser cross-fades between pages on its own.
   Fade only — a transform on the root also moves everything fixed on top of it (the nav bar),
   which reads as a jump. The bar and the WhatsApp button are lifted out of the page snapshot
   by their own view-transition-name, so they hold their place while the content changes. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: var(--ease); }
.nav { view-transition-name: site-nav; }
.wa-float { view-transition-name: wa-float; }
/* the bar is translucent (blur + rgba background). Cross-fading two translucent snapshots over a
   page that is itself cross-fading dips the brightness — that is the blink. So: no cross-fade at all.
   The old snapshot is dropped outright and the new one paints at full opacity, which makes the bar
   look completely static while the content under it changes. */
::view-transition-group(site-nav), ::view-transition-group(wa-float) { animation: none; }
::view-transition-image-pair(site-nav), ::view-transition-image-pair(wa-float) { isolation: auto; }
::view-transition-old(site-nav), ::view-transition-old(wa-float) { animation: none; opacity: 0; mix-blend-mode: normal; display: none; }
::view-transition-new(site-nav), ::view-transition-new(wa-float) { animation: none; opacity: 1; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ticker-track { animation: none; }
  @view-transition { navigation: none; }
  .hover-preview { display: none; }
}

/* ---------- touch input sizing ----------
   iOS zooms the page when focus lands on an input under 16px, and it does not zoom back out on
   blur — the user is left on a cropped, drifted layout. The .field rules set 15px at the same
   specificity, so this block has to come last to win, and it has to name them: a bare
   `input, textarea, select` loses to `.modal-box .field` whatever the order. */
@media (pointer: coarse) {
  input, textarea, select,
  .field, .modal-box .field, .panel .field { font-size: 16px; }
}

/* ---------- hover, gated ---------- */
/* Touch devices have no hover, so they fake one: the first tap applies :hover and leaves it
   there until something else is tapped. An image left at scale(1.04), a row left indented, a
   card left lifted — that is the loudest "this is a website" tell on a phone. Every hover rule
   therefore lives behind this query: (hover: hover) means the primary input can hover,
   (pointer: fine) rules out coarse touchscreens that claim hover anyway.
   Touch users get their feedback from the :active rules instead. */
@media (hover: hover) and (pointer: fine) {
  .acc-item:not(.open):hover { background: var(--bg-3); }
  .acc-head:hover .acc-title { color: var(--accent); }
  .acc-head:hover .acc-plus::before, .acc-head:hover .acc-plus::after { background: var(--text); }
  .acc-link:hover { border-color: var(--text); }
  .modal-close:hover { color: var(--text); background: var(--bg-3); }
  .modal-box .field:hover { border-color: #555; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta:hover { background: var(--accent); }
  .btn:hover { background: var(--accent); border-color: var(--accent); }
  .btn.ghost:hover { border-color: var(--text); background: transparent; }
  .btn:hover .arrow { transform: translate(2px, -2px); }
  .card .btn + .sub-action:hover { color: var(--text); border-color: var(--text); }
  a.card:hover { border-color: var(--line-2); }
  a.card:hover .go { color: var(--text); }
  a.card:hover .go .arrow { transform: translate(2px, -2px); }
  a.card:hover .media img { transform: scale(1.04); }
  .filters button:hover { color: var(--text); border-color: var(--text); }
  .f-toggle:hover { color: var(--text); border-color: var(--text); }
  .f-row .chip:hover { color: var(--text); border-color: var(--text); }
  .f-clear:hover { color: var(--text); }
  .f-view button:hover { color: var(--text); }
  .prow:hover { background-color: var(--bg-2); }
  .prow:hover > * { transform: translateX(10px); }
  a.row:hover h3 { color: var(--accent); }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .logo-grid .cell:hover img { opacity: 1; }
  .tile:hover .bg, .tile:hover .ph { transform: scale(1.04); }
  .footer-col a:hover { color: var(--text); }
  .wa-float:hover { transform: scale(1.07); }
  .panel .field:hover { border-color: #555; }
  :root[data-theme="light"] .modal-box .field:hover, :root[data-theme="light"] .panel .field:hover { border-color: var(--text); }
  :root[data-theme="light"] .card:hover { border-color: var(--accent); box-shadow: 0 16px 40px rgba(60, 50, 35, .12); transform: translateY(-3px); }
  :root[data-theme="light"] .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
  :root[data-theme="light"] .btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: transparent; }
  :root[data-theme="light"] a[style*="underline"]:hover { color: var(--accent-ink); }
}

