/* ==========================================================================
   WebGrow — components
   Reusable on every page. Page composition lives in home.css.
   --------------------------------------------------------------------------
   .eyebrow                Tracked caps label with a short rule. Lime on dark,
                           muted inside .on-paper.
   .headline               Serif display heading (Instrument Serif).
     --hero | --h2 | --display   Size steps.
     .hl                   Key word. Lime on dark; lime marker under ink on paper.
     .hl--wipe             Key word painted lime by a sweeping divider (on .is-in).
   .btn                    Pill button.
     --primary             Lime conversion CTA. Light follows the pointer
                           (--mx/--my from scripts/ui/buttons.js).
     --ghost               Outline pill.   --lg | --sm | --xs  sizes.
     .btn__arrow           Arrow that nudges on hover.
   .link-arrow             Text link with trailing arrow.
   .device--browser        Browser frame: .device__bar (.device__dots, .device__url)
                           + .device__screen (16:10). Tune with --bar, --dev-r.
   .device--phone          Phone frame: .device__screen (390:844). --bezel, --dev-r.
   .ba                     Before/after comparator — scripts/components/compare.js
     .ba__stage            Geometry box (cqw units, .ba is the container)
     .ba__browser .ba__phone   Devices; each screen carries [data-screen]
     .ba__screen .ba__after    Screen + clipped "after" layer, driven by --p (0–1)
     .ba__tag--before/--after  Labels that ride the divider
     .ba__handle           role="slider" knob — mouse, touch, keyboard
     .ba--compact          Browser only (cards)
   .annot                  Annotated capture — scripts/scenes/impression.js
     .annot__device .annot__viewport .annot__screen .annot__spot .annot__layer
     .annot__item          Coordinates in % of the screen:
                           --x --y --w --h (desktop), --mx --my --mw --mh (phone)
       .annot__ring .annot__leader .annot__pin .annot__chip
   .annot-legend           Numbered legend; items get .is-active / .is-past
   .case-card              Work card: __media, __device, __body, __meta, __title, __text
   .faq                    Exclusive <details name> accordion: .faq__item __q __icon __a
   .cta-bar                Closing bar: __line, __action, __sign
   .site-header .site-nav .mobile-menu .site-footer .consent
   ========================================================================== */


/* Eyebrow ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 var(--fs-label) / 1.2 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.on-paper .eyebrow { color: var(--paper-muted); }


/* Headline ----------------------------------------------------------------- */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--text);
}
.headline--hero { font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.018em; }
.headline--h2 { font-size: var(--fs-h2); }
.headline--display { font-size: var(--fs-display); line-height: 0.86; letter-spacing: -0.022em; }

.hl { color: var(--accent); font-style: inherit; }

.on-paper .headline { color: var(--paper-ink); }
.on-paper .hl {
  color: var(--paper-ink);
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  background: linear-gradient(transparent 56%, var(--accent) 56%, var(--accent) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Sweeping lime paint + divider — echoes the comparator line */
.hl--wipe {
  position: relative;
  display: inline-block;
  /* extend the paint box so ascenders/descenders keep their fill */
  padding-block: 0.14em 0.2em;
  margin-block: -0.14em -0.2em;
  color: transparent;
  background: linear-gradient(90deg, var(--accent) var(--wipe), var(--text) var(--wipe));
  -webkit-background-clip: text;
  background-clip: text;
  --wipe: 100%;
}
.hl--wipe::after {
  content: "";
  position: absolute;
  top: 0.22em;
  bottom: 0.14em;
  left: var(--wipe);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  opacity: 0;
}
.js-motion .hl--wipe { --wipe: 0%; }
.js-motion .is-in .hl--wipe,
.js-motion .hl--wipe.is-in {
  animation: wipe-paint 1.6s var(--ease-inout) 0.45s both;
}
.js-motion .is-in .hl--wipe::after,
.js-motion .hl--wipe.is-in::after {
  animation: wipe-line 1.6s var(--ease-inout) 0.45s both;
}
@keyframes wipe-paint { from { --wipe: 0%; } to { --wipe: 100%; } }
@keyframes wipe-line {
  0% { opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; }
}


/* Buttons ------------------------------------------------------------------ */
.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem / 1 var(--font-ui);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -16px rgba(213, 245, 154, 0.55);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.7), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.btn--primary:hover { background: var(--accent-hi); box-shadow: 0 18px 44px -14px rgba(213, 245, 154, 0.7); }
.btn--primary:hover::before { opacity: 0.55; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { min-height: 64px; padding: 0 34px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--xs { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

.btn__arrow { display: inline-block; transition: transform var(--dur) var(--ease-emph); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: var(--line-strong);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform var(--dur) var(--ease-emph);
}
.link-arrow:hover { color: var(--accent); text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }
.on-paper .link-arrow { color: var(--paper-ink); text-decoration-color: rgba(22, 23, 27, 0.25); }


/* Devices ------------------------------------------------------------------ */
.device { position: relative; }

.device--browser {
  --bar: 34px;
  --dev-r: 12px;
  border-radius: var(--dev-r);
  background: var(--device-bar);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.075), var(--shadow-device);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar);
  padding-inline: calc(var(--bar) * 0.42);
  border-radius: var(--dev-r) var(--dev-r) 0 0;
}
.device__dots { display: flex; gap: calc(var(--bar) * 0.17); flex: 0 0 auto; }
.device__dots i {
  width: calc(var(--bar) * 0.25);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #34353e;
}
.device__url {
  flex: 0 1 34%;
  height: calc(var(--bar) * 0.46);
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(calc(var(--bar) * -0.6));
}
.device__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0 0 var(--dev-r) var(--dev-r);
  background: #07080a;
}
.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device--phone {
  --bezel: 7px;
  --dev-r: 36px;
  padding: var(--bezel);
  border-radius: var(--dev-r);
  background: var(--device-bezel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-device);
}
.device--phone .device__screen {
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--dev-r) - var(--bezel));
}
.device--phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--bezel) + 1.4%);
  left: 50%;
  width: 30%;
  height: 2.4%;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}


/* Before / after comparator ------------------------------------------------ */
.ba {
  --x: 50;
  position: relative;
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ba__stage {
  /* geometry in cqw of .ba — browser + overlapping phone, like the posts */
  --bw: 86cqw;
  --pw: 23cqw;
  --pt: 18cqw;
  --bz: 0.85cqw;
  --bar: max(20px, 2.7cqw);
  --sh: calc(var(--bw) * 0.625);
  --ph: calc((var(--pw) - 2 * var(--bz)) * 2.1641 + 2 * var(--bz));
  position: relative;
  height: max(calc(var(--bar) + var(--sh)), calc(var(--pt) + var(--ph)));
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba__browser {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bw);
  --dev-r: max(8px, 0.95cqw);
}
.ba__phone {
  position: absolute;
  z-index: 2;
  top: var(--pt);
  right: 0;
  width: var(--pw);
  --bezel: var(--bz);
  --dev-r: 3.3cqw;
}
.ba__screen { cursor: inherit; }
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 calc(var(--p) * 100%));
}
/* the divider, drawn per screen so browser + phone read as one straight line */
.ba__screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(var(--p) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.ba__screen.is-split::after { opacity: 1; }

.ba.is-easing { transition: --x 0.55s var(--ease-emph); }
.ba.is-easing .ba__screen { transition: --p 0.55s var(--ease-emph); }
.ba.is-easing .ba__tag { transition: opacity 0.3s var(--ease), left 0.55s var(--ease-emph); }

.ba__tag {
  position: absolute;
  z-index: 4;
  top: calc(var(--bar) + 2.1cqw);
  /* --tx = divider clamped to the main screen, so labels never float off-device */
  left: calc(var(--tx, var(--x)) * 1%);
  padding: 7px 13px 7px 12px;
  border-radius: 999px;
  font: 600 0.8125rem / 1 var(--font-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.ba__tag--before {
  translate: calc(-100% - 14px) 0;
  background: var(--paper);
  color: var(--paper-ink);
}
.ba__tag--after {
  translate: 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(213, 245, 154, 0.55);
}
.ba__tag--after::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ba.show-before .ba__tag--before,
.ba.show-after .ba__tag--after { opacity: 1; }

.ba__handle {
  position: absolute;
  z-index: 5;
  top: calc(var(--bar) + var(--sh) / 2);
  left: calc(var(--x) * 1%);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(213, 245, 154, 0.2);
  cursor: ew-resize;
  touch-action: none;
  transition: scale 0.25s var(--ease-emph), box-shadow 0.25s var(--ease), opacity 0.3s var(--ease);
}
/* when a scene parks the line at an edge, the knob steps aside */
.ba.is-edge:not(.is-dragging) .ba__handle:not(:focus-visible) { opacity: 0; scale: 0.6; }
.ba__handle:hover,
.ba.is-dragging .ba__handle { scale: 1.08; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 9px rgba(213, 245, 154, 0.28); }
.ba__handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 50%; }
.ba__handle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba--compact .ba__stage {
  --bw: 100cqw;
  --pw: 0px;
  --pt: 0px;
  --bz: 0px;
  --bar: 22px;
  --ph: 0px;
}
.ba--compact .ba__browser { --dev-r: 10px; }
.ba--compact .ba__tag { top: calc(var(--bar) + 10px); padding: 5px 10px; font-size: 0.75rem; }
.ba--compact .ba__tag--before { translate: calc(-100% - 10px) 0; }
.ba--compact .ba__tag--after { translate: 10px 0; }
.ba--compact .ba__handle { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.ba--compact .ba__handle svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .ba:not(.ba--compact) .ba__stage {
    --bw: 90cqw;
    --pw: 32cqw;
    --pt: 30cqw;
    --bz: 1.3cqw;
    --bar: 20px;
  }
  .ba:not(.ba--compact) .ba__phone { --dev-r: 5cqw; }
  .ba__tag { font-size: 0.75rem; padding: 6px 10px; }
  .ba__handle { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}


/* Annotated capture -------------------------------------------------------- */
.annot { --pin-off: 46px; position: relative; }
.annot__viewport { position: relative; }
.annot__screen picture,
.annot__screen img { width: 100%; height: 100%; }

.annot__layer { position: absolute; inset: 0; pointer-events: none; }
.annot__item,
.annot__spot {
  --rx: var(--x);
  --ry: var(--y);
  --rw: var(--w);
  --rh: var(--h);
}
.annot__item { position: absolute; inset: 0; }

.annot__ring {
  position: absolute;
  left: calc(var(--rx) * 1%);
  top: calc(var(--ry) * 1%);
  width: calc(var(--rw) * 1%);
  height: calc(var(--rh) * 1%);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: rgba(213, 245, 154, 0.05);
  box-shadow: 0 0 0 4px rgba(213, 245, 154, 0.08), 0 0 28px rgba(213, 245, 154, 0.14);
}
.annot__leader {
  position: absolute;
  top: calc((var(--ry) + var(--rh) / 2) * 1%);
  left: calc(-1 * var(--pin-off));
  width: calc(var(--pin-off) + var(--rx) * 1%);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(213, 245, 154, 0.55));
  transform-origin: left center;
}
.annot__pin {
  position: absolute;
  top: calc((var(--ry) + var(--rh) / 2) * 1%);
  left: calc(-1 * var(--pin-off));
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.8125rem / 1 var(--font-ui);
  box-shadow: 0 0 0 5px var(--ink);
}
.annot__chip { display: none; }

.annot__spot {
  position: absolute;
  z-index: 1;
  left: calc(var(--rx) * 1%);
  top: calc(var(--ry) * 1%);
  width: calc(var(--rw) * 1%);
  height: calc(var(--rh) * 1%);
  border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(9, 10, 13, 0.6);
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.8s var(--ease-emph),
    top 0.8s var(--ease-emph),
    width 0.8s var(--ease-emph),
    height 0.8s var(--ease-emph),
    opacity 0.6s var(--ease);
}

/* scroll-driven states (impression.js sets .is-active / .is-past) */
.js-motion .annot__ring { opacity: 0; scale: 1.05; transition: opacity 0.5s var(--ease), scale 0.8s var(--ease-emph); }
.js-motion .annot__leader { scale: 0 1; transition: scale 0.8s var(--ease-emph), opacity 0.5s var(--ease); }
.js-motion .annot__pin {
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.4s var(--ease), scale 0.6s var(--ease-emph), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.js-motion .annot__item.is-active .annot__ring,
.js-motion .annot__item.is-past .annot__ring { opacity: 1; scale: 1; }
.js-motion .annot__item.is-active .annot__leader,
.js-motion .annot__item.is-past .annot__leader { scale: 1 1; }
.js-motion .annot__item.is-active .annot__pin,
.js-motion .annot__item.is-past .annot__pin { opacity: 1; scale: 1; }
.js-motion .annot__item.is-past .annot__ring { opacity: 0.4; }
.js-motion .annot__item.is-past .annot__leader { opacity: 0.4; }
.js-motion .annot__item.is-past .annot__pin {
  background: var(--ink);
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--ink), inset 0 0 0 1.5px var(--accent);
}
.js-motion .annot[data-step="5"] .annot__item.is-past .annot__ring,
.js-motion .annot[data-step="5"] .annot__item.is-past .annot__leader { opacity: 1; }
.js-motion .annot[data-step="5"] .annot__item.is-past .annot__pin { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--ink); }
.js-motion .annot__spot.is-on { opacity: 1; }

.annot__caption {
  margin-top: 14px;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Legend */
.annot-legend__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.5s var(--ease);
}
.annot-legend__item:last-child { border-bottom: 1px solid var(--line); }
.annot-legend__num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font: 700 0.8125rem / 1 var(--font-ui);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.annot-legend__title {
  padding-top: 3px;
  font: 600 1.125rem / 1.35 var(--font-ui);
  color: var(--text);
  letter-spacing: -0.005em;
}
.annot-legend__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease-emph); }
.annot-legend__more > p { min-height: 0; overflow: hidden; }
.annot-legend__text { padding-top: 6px; color: var(--muted); line-height: 1.5; }

/* desktop: the legend follows the scroll, one entry open at a time */
@media (min-width: 900px) {
  .js-motion .annot-legend__item { opacity: 0.5; }
  .js-motion .annot-legend__item.is-past { opacity: 0.8; }
  .js-motion .annot-legend__item.is-active,
  .js-motion .annot-legend[data-step="5"] .annot-legend__item { opacity: 1; }
  .js-motion .annot-legend__more { grid-template-rows: 0fr; }
  .js-motion .annot-legend__item.is-active .annot-legend__more { grid-template-rows: 1fr; }
  .js-motion .annot-legend__item.is-active .annot-legend__num,
  .js-motion .annot-legend[data-step="5"] .annot-legend__num { background: var(--accent); color: var(--accent-ink); }
}

/* phone: the capture switches to the mobile screenshot and its coordinates */
@media (max-width: 899px) {
  .annot__item,
  .annot__spot {
    --rx: var(--mx);
    --ry: var(--my);
    --rw: var(--mw);
    --rh: var(--mh);
  }
  .js-motion .annot__chip {
    display: block;
    position: absolute;
    z-index: 2;
    left: calc(var(--rx) * 1%);
    top: calc(var(--ry) * 1%);
    translate: 0 calc(-100% - 8px);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font: 600 var(--fs-label) / 1 var(--font-ui);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
  }
  .js-motion .annot__item.is-active .annot__chip { opacity: 1; }
}


/* Case card ---------------------------------------------------------------- */
.case-card { display: flex; flex-direction: column; gap: 26px; }
.case-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 0 8%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(213, 245, 154, 0.09), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
}
.case-card__media > * { width: 100%; }
.case-card__device { --bar: 22px; --dev-r: 10px; }
.case-card__body { display: grid; gap: 10px; padding-right: 8%; }
.case-card__meta {
  font: 600 var(--fs-label) / 1.4 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card__title { font: 400 var(--fs-h3) / 1.05 var(--font-display); letter-spacing: -0.01em; }
.case-card__text { color: var(--muted); }


/* FAQ ---------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
  font: 400 clamp(1.5rem, 1.15rem + 1vw, 2.125rem) / 1.15 var(--font-display);
  letter-spacing: -0.005em;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline-offset: -2px; border-radius: 4px; }
.faq__icon {
  position: relative;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), rotate var(--dur) var(--ease-emph);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: currentColor;
  transition: rotate var(--dur) var(--ease-emph), opacity var(--dur) var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq__item[open] .faq__icon::after { rotate: 0deg; opacity: 0; }
.faq__a p { max-width: 62ch; padding: 0 64px 32px 0; color: var(--muted); font-size: var(--fs-body); }
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.5s var(--ease-emph), content-visibility 0.5s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }


/* CTA bar — the posts' bottom strip, as a component ------------------------ */
.cta-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px 40px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--line-strong);
}
.cta-bar__line { font: 400 clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem) / 1.05 var(--font-display); letter-spacing: -0.01em; }
.cta-bar__sign { justify-self: end; display: grid; justify-items: end; gap: 10px; }
.cta-bar__sign img { height: 24px; width: auto; }
.cta-bar__sign span {
  font: 600 var(--fs-label) / 1 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 899px) {
  .cta-bar { grid-template-columns: 1fr; justify-items: start; }
  .cta-bar__sign { justify-self: start; justify-items: start; }
}


/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 15, 19, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.site-header__logo { flex: 0 0 auto; padding-block: 8px; }
.site-header__logo img { height: 26px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 34px; }
.site-nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.site-nav__list a:hover { color: var(--text); }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.site-header__lang {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  font: 600 0.8125rem / 1 var(--font-ui);
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.site-header__lang:hover { color: var(--accent); }
.site-header__contact:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.site-header__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.burger { position: relative; width: 16px; height: 8px; }
.burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: translate var(--dur) var(--ease-emph), rotate var(--dur) var(--ease-emph);
}
.burger i:first-child { top: 0; }
.burger i:last-child { bottom: 0; }
[aria-expanded="true"] .burger i:first-child { translate: 0 3.25px; rotate: 45deg; }
[aria-expanded="true"] .burger i:last-child { translate: 0 -3.25px; rotate: -45deg; }

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .js-motion .site-header__progress { animation: header-progress linear both; animation-timeline: scroll(root); }
}
@keyframes header-progress { to { transform: scaleX(1); } }

@media (max-width: 1099px) {
  .site-nav__list { gap: 24px; }
  .site-header__inner { gap: 24px; }
}
@media (max-width: 899px) {
  .site-nav,
  .site-header__contact { display: none; }
  .site-header__actions { margin-left: auto; gap: 8px; }
  .site-header__toggle { display: inline-flex; }
  .site-header__logo img { height: 22px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 400 2.5rem / 1.05 var(--font-display);
}
.mobile-menu__foot { display: grid; gap: 12px; justify-items: start; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--ink); }


/* Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer__nav a {
  display: inline-block;
  padding-block: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal { font-size: 0.875rem; color: var(--faint); }


/* Cookie notice — corner card (desktop) / bottom bar (phone) ---------------- */
.consent {
  position: fixed;
  z-index: 40;
  left: 20px;
  bottom: 20px;
  width: min(330px, calc(100vw - 40px));
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--ink-3);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.45s var(--ease), translate 0.6s var(--ease-emph);
}
.consent.is-in { opacity: 1; translate: 0 0; }
.consent p { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.consent__actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) {
  .consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 16px;
  }
  .consent p { flex: 1 1 200px; }
  .consent__actions { margin-top: 0; }
}
