/* ---------- self-hosted fonts (GDPR: no Google CDN) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-tight-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-tight-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-tight-700.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/josefin-sans-300.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/josefin-sans-400.woff2") format("woff2");
}

/* ==========================================================================
   Popcornmates — design system v3 "Paper & Ink"
   Monochrome. Light + dark. Minimal. Motion only where it means something.
   Display: Inter Tight · Body: Inter · Wordmark: Josefin Sans (the logo's own face)
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* light theme (default) */
  --bg: #ffffff;
  --bg-raise: #f5f5f7;
  --bg-sunk: #fafafa;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-faint: #aeaeb2;
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: rgba(0, 0, 0, 0.24);
  --btn-ink: #ffffff;
  --focus: #0071e3;
  --art-bg: #ffffff; /* pure white behind the two-tone artwork, so invert(1) stays clean */

  --font-display: "Inter Tight", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Josefin Sans", var(--font-display);

  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-raise: #1d1d1f;
    --bg-sunk: #0a0a0a;
    --ink: #f5f5f7;
    --ink-muted: #86868b;
    --ink-faint: #48484a;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.3);
    --btn-ink: #000000;
    --focus: #2997ff;
    --art-bg: #000000;
  }
}

/* the toggle wins over the media query, in both directions */
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-raise: #1d1d1f;
  --bg-sunk: #0a0a0a;
  --ink: #f5f5f7;
  --ink-muted: #86868b;
  --ink-faint: #48484a;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --btn-ink: #000000;
  --focus: #2997ff;
  --art-bg: #000000;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-raise: #f5f5f7;
  --bg-sunk: #fafafa;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-faint: #aeaeb2;
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: rgba(0, 0, 0, 0.24);
  --btn-ink: #ffffff;
  --focus: #0071e3;
  --art-bg: #ffffff;
}

/* the two-tone artwork flips with the theme by plain inversion */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art-invert { filter: invert(1); }
}
:root[data-theme="dark"] .art-invert { filter: invert(1); }
:root[data-theme="light"] .art-invert { filter: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
/* native smooth scrolling breaks ScrollTrigger's pin measurements —
   turn it off whenever JS-driven scrolling is active */
html.lenis, html.gsap { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--ink); color: var(--bg); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }
/* keep the fixed nav from covering a section heading when jumped to by anchor
   (works even for native hash-jumps from another page, before JS runs) */
section[id] { scroll-margin-top: 90px; }
/* Team sits low in its section behind a lot of top padding — land the jump a
   little higher so the heading reads as centred rather than jammed up. */
#team { scroll-margin-top: 160px; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* premium label: uppercase, tracked-out, with a short rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-muted);
  flex: none;
}

/* the homepage hero eyebrow drops the rule dash and carries a tiny stylized
   Liechtenstein silhouette instead — low-poly like the brand triangles,
   ink-on-paper in both themes, with a knocked-out dot marking Vaduz */
.hero .eyebrow::before { content: none; }
.hero .eyebrow { flex-wrap: wrap; row-gap: 0.35rem; }
/* map + place name travel as one unit so the mark never orphans at a wrap */
.eyebrow-loc { display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap; }
.li-mark { height: 2.7em; width: auto; flex: none; }
.li-mark path { fill: currentColor; }

.h-xl { font-size: clamp(2.75rem, 7vw, 5rem); }
.h-lg { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-md { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 46ch;
  letter-spacing: -0.014em;
}

/* the second line of a headline, one tone quieter — the Apple two-tone move */
.accent-text { color: var(--ink-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 980px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.82; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mark);
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  color: var(--ink);
}
/* the mark inherits colour — black on light, white on dark, for free */
/* flex: none — as a flex child the mark would otherwise be shrunk below its
   34px (all the way to 0 on a crowded phone nav) and the triangles vanish */
.brand .mark { width: 34px; height: 20px; color: var(--ink); flex: none; }
.brand .mark .tri { fill: currentColor; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
/* Contact lives in the CTA button on desktop; this link is the mobile-menu copy */
.nav-links .nav-contact { display: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover { color: var(--ink); border-color: var(--line-strong); }

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

.nav .btn { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
/* an <img>/<video> child must never force the grid wider than the viewport */
.hero-grid > * { min-width: 0; }
/* premium slogan treatment: bigger, tighter, calmer */
.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.042em;
  margin-bottom: 1.5rem;
}
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.04em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-art { color: var(--ink); position: relative; overflow: hidden; }
/* In dark mode the art flips via filter: invert(1), which promotes it to its
   own compositing layer. At fractional device-pixel ratios (e.g. 125% display
   scaling or browser zoom) that layer's edge leaves a faint 1px seam — a thin
   border around the gif. Bleed the art 1px past the clipped .hero-art box so
   the seam is cropped and the artwork has no visible outside border. */
.hero-video, .hero-still { width: calc(100% + 2px); height: auto; display: block; margin: -1px; }
.hero-still { display: none; }
/* (pointer-gaze layer removed 2026-07-16 — the hero is a plain themed loop) */
/* the hero mascot loops on every device; only reduced-motion gets the still */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-still { display: block; }
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@media (max-height: 780px) { .scroll-hint { display: none; } }
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--bg-raise);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee span::after { content: "·"; color: var(--ink-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */

.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.statement .word { opacity: 0.2; display: inline-block; }

/* ==========================================================================
   THE STORY — a 10-second generated film scrubbed by scroll position.
   The stage pins full-viewport on desktop; phones / reduced motion / no-JS
   get the three approved stills in a strip instead.
   ========================================================================== */

/* the film: a fixed canvas behind the whole page, revealed only while
   the chapter blocks are in view, scrubbed by scroll position */
.story-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  opacity: 0;
  pointer-events: none;
}
.story-canvas { width: 100%; height: 100%; display: block; }

.story-chapters { display: none; }
.story-chapter {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--pad);
}
.story-chapter .wrap { width: 100%; }
.chapter-card {
  max-width: 440px;
  margin-left: clamp(1rem, 7vw, 6.5rem);
  text-align: left;
  padding: 1.7rem 2rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.chapter-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.45rem; }
.chapter-card p { color: var(--ink-muted); font-size: 1rem; }

@media (min-width: 768px) {
  html.gsap .story-bg { display: block; }
  html.gsap .story-chapters { display: block; }
  html.gsap .story-fallback { display: none; }
}

/* phones: the hero mascot carries the artwork alone, so the story keeps
   its three captions but drops the pictures. Needs to out-specify
   `.beat .frame { display: grid }` below, hence the #story prefix.
   2026-07-16: mobile now gets small ANIMATED chapter loops (premium pass),
   so the frames are visible again on every viewport. */

/* fallback strip (also the layout for phones) */
.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3.5rem;
}

.beat {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.beat .frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--art-bg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.beat .frame img { width: 100%; height: 100%; object-fit: contain; }
.beat h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.beat p { color: var(--ink-muted); font-size: 0.97rem; }
.beat-step {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: block;
}

/* ---------- stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stat { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--ink-muted); font-size: 0.92rem; margin-top: 0.7rem; max-width: 24ch; }

/* ---------- services ---------- */

.service-list { margin-top: 3rem; border-bottom: 1px solid var(--line); }
.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.service-card:hover { padding-left: 0.9rem; }
.service-card h3 {
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--ink-muted); max-width: 62ch; }
.service-card .go {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.service-card:hover .go {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateX(3px);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
  counter-reset: step;
}
.step { border-top: 1px solid var(--line); padding-top: 1.5rem; counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.step p { color: var(--ink-muted); font-size: 0.97rem; }

/* ---------- projects ---------- */

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.project-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 0.28rem 0.7rem;
}
.project-card h3 { font-size: 1.3rem; font-weight: 600; }
.project-card p { color: var(--ink-muted); font-size: 0.95rem; flex: 1; }
.project-card .metric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.case-list { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-block: clamp(1.7rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.case .year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.case h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; }
.case p { color: var(--ink-muted); }

/* ---------- testimonials ---------- */

.quotes { position: relative; min-height: 300px; }
.quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.quote.active { opacity: 1; visibility: visible; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.9vw, 2.1rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.028em;
  max-width: 30ch;
  margin-bottom: 1.6rem;
}
.quote cite { font-style: normal; color: var(--ink-muted); font-size: 0.9rem; }
.quote-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2rem; }
.quote-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.3s ease;
}
.quote-dots button.active { background: var(--ink); }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
/* same card surface as the project teasers — an opaque panel the
   background film can never bleed through */
.member {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.member:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.member .avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
/* photo avatars: cover the circle, keep the hairline ring */
img.avatar { object-fit: cover; display: block; }
.member h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.member .role { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 0.9rem; }
.member p { color: var(--ink-muted); font-size: 0.93rem; }

/* ---------- Junior showcase ---------- */

.demo-frame {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  background: #0d2b2b; /* the video's own stage color, so letterboxing never flashes */
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.35);
}
.demo-frame video { width: 100%; height: auto; display: block; }
.demo-note {
  margin-top: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* a featured teaser card that leads to the Junior page */
.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--bg-raise);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  transition: border-color 0.3s ease;
}
.feature-card:hover { border-color: var(--line-strong); }
.feature-card .shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card .shot img { width: 100%; height: auto; display: block; }
.feature-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.7rem; }
.feature-card p { color: var(--ink-muted); margin-bottom: 1.5rem; max-width: 52ch; }
@media (max-width: 767px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .shot { order: -1; }
}

/* ---------- Junior booking playground ---------- */

.jcalc { margin-top: 2.8rem; }
.jcalc-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.9rem; }
.jcalc-tabs button {
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.jcalc-tabs button:hover { color: var(--ink); }
.jcalc-tabs button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.jcalc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
  align-items: end;
  max-width: 820px;
  margin-bottom: 2.1rem;
}
.jcalc-fields .field { min-width: 0; }
/* number inputs default to their own intrinsic width and won't fill the grid
   cell on their own — force both controls to the column width so they align */
.jcalc-fields .field input,
.jcalc-fields .field select {
  width: 100%;
  min-width: 0;
  height: 3.4rem; /* one explicit height — inputs and selects compute different intrinsic heights */
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 1rem;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s ease;
}
.jcalc-fields .field input:focus,
.jcalc-fields .field select:focus { outline: none; border-color: var(--focus); }
.jcalc-fields .jc-check { align-self: center; }
.jcalc-fields .jc-check label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.88rem; color: var(--ink-muted); cursor: pointer;
}
.jcalc-fields .jc-check input { accent-color: var(--ink); width: 16px; height: 16px; }

.jcalc-journal { display: grid; gap: 0.7rem; margin-bottom: 2.3rem; }
.jcalc-journal .je {
  border-left: 2px solid var(--line-strong);
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.jcalc-journal .je b { color: var(--ink); font-weight: 600; }

.jcalc-taccs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
}
.tacc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 1.05rem 1.15rem 0.9rem;
  animation: tacc-in 0.35s var(--ease) backwards;
}
@keyframes tacc-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}
.tacc h4 {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
}
.tacc-t { display: grid; grid-template-columns: 1fr 1fr; min-height: 74px; }
.tacc-t .side { padding: 0.45rem 0.5rem 0.6rem; }
.tacc-t .side.dr { border-right: 2px solid var(--ink); }
.tacc-t .sh {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.tacc-t .side.cr .sh { text-align: right; }
.tacc-row {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0;
}
.tacc-row .n { color: var(--ink-faint); font-size: 0.7rem; }
.tacc-bal {
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* the impact panels: label | diverging bar around zero | signed value.
   Identity lives in the text labels; ink fill = positive, outline = negative,
   and every bar carries its signed value as text — never color alone. */
.jcalc-fs-title { font-size: 1.15rem; font-weight: 600; margin: 2.6rem 0 1.2rem; }
.jcalc-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.fs-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 1.1rem 1.2rem 1.2rem;
}
.fs-panel h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.9rem; }
.fs-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr minmax(64px, auto);
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0;
}
.fs-lbl { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-bar {
  position: relative;
  height: 10px;
  /* recessive zero line the bars diverge from */
  background: linear-gradient(to right, transparent calc(50% - 0.5px), var(--line-strong) calc(50% - 0.5px), var(--line-strong) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.fs-fill { position: absolute; top: 0; bottom: 0; transition: width 0.3s var(--ease); }
.fs-fill.pos { background: var(--ink); border-radius: 0 4px 4px 0; }
.fs-fill.neg { border: 1.5px solid var(--ink-muted); border-right: 0; border-radius: 4px 0 0 4px; }
.fs-val {
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* the playground sits in a product-like frame — a nod to the real app */
.app-frame {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--bg);
  overflow: hidden;
  margin-top: 2.6rem;
}
.app-frame .app-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  font-family: var(--font-mark);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}
.app-frame .app-bar .mark { width: 22px; height: 13px; color: var(--ink-muted); }
.app-frame .app-bar .mark .tri { fill: currentColor; }
.app-frame .app-body { padding: clamp(1.2rem, 2.5vw, 2rem); }
.app-frame .jcalc { margin-top: 0; }

/* module chips — the real product lineup */
.module-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.module-grid span {
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-raise);
}

/* ---------- Junior: the idea (automate + visibility) ---------- */
.idea-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 3rem;
}
.idea-point { border-top: 1px solid var(--line-strong); padding-top: 1.3rem; }
.idea-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}
.idea-point p { color: var(--ink-muted); font-size: 0.97rem; line-height: 1.55; }
.idea-point strong { color: var(--ink); font-weight: 600; }

/* ---------- Junior: source → decision flow ---------- */
.flow-examples { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.6rem; }
.flow-chip {
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.flow-chip:hover { color: var(--ink); border-color: var(--ink); }
.flow-chip.is-active { color: var(--btn-ink); background: var(--ink); border-color: var(--ink); }

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: stretch;
  margin-top: 2rem;
}
.flow-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.flow-engine { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line); }
.flow-col-head { margin-bottom: 1rem; }
.flow-kicker {
  display: block;
  font-family: var(--font-mark);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.flow-owner { display: block; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.45; }
.flow-list { list-style: none; display: grid; gap: 0.55rem; }
.flow-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.flow-engine .flow-item { border-color: var(--line-strong); font-weight: 500; }
.flow-steer { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; min-width: 2.4rem; color: var(--ink-faint); }
.flow-arrow::before { content: "\2192"; font-size: 1.5rem; line-height: 1; }

.flow-lane {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2.2rem;
}
.flow-role { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.flow-role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.flow-role p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.5; }

/* --- interactive "trace it" states --- */
.flow-item { transition: opacity 0.35s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.flow-src {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: block;
}
.flow-src::after { content: "\2192"; float: right; color: var(--ink-faint); opacity: 0; transition: opacity 0.2s ease; }
.flow-src:hover, .flow-src:focus-visible { border-color: var(--ink); outline: none; }
.flow-src:hover::after, .flow-src:focus-visible::after { opacity: 1; }
.flow-item.dim { opacity: 0.3; }
.flow-item.is-active { border-color: var(--ink); background: var(--ink); color: var(--btn-ink); }
.flow-item.is-active::after { color: var(--btn-ink); opacity: 1; }
.flow-item.is-target { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.flow-engine { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.flow-engine.lit { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.flow-arrow { transition: color 0.3s ease; }
.flow-arrow.lit { color: var(--ink); }
.flow-arrow.lit::before { animation: flow-pulse 1.1s var(--ease) infinite; }
@keyframes flow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(3px); }
}
@keyframes flow-pulse-v {
  0%, 100% { opacity: 0.5; transform: translateY(-2px); }
  50% { opacity: 1; transform: translateY(3px); }
}
.flow-trace {
  margin-top: 1.5rem;
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.flow-trace strong { color: var(--ink); font-weight: 600; }

@media (max-width: 880px) {
  .idea-points { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow.lit::before { animation-name: flow-pulse-v; }
  .flow-arrow { min-height: 2.2rem; min-width: 0; }
  .flow-arrow::before { content: "\2193"; }
  .flow-lane { grid-template-columns: 1fr; }
}

/* ---------- mobile: switch to the desktop layout ---------- */

.view-toggle {
  display: none;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.view-toggle.show { display: inline; }
.view-toggle:hover { color: var(--ink); }

/* ---------- page loader ---------- */
/* The three brand triangles pop in sequence while the page loads. Gated
   behind html.js so a no-JS visit is never stuck behind the overlay; main.js
   fades it out on window load, with a 3s hard cap. Theme-aware via --bg/--ink. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.8s ease;
}
html.js .loader { display: flex; }
html.loaded .loader { opacity: 0; pointer-events: none; }
.loader .mark { width: clamp(72px, 10vw, 104px); height: auto; color: var(--ink); overflow: visible; }
/* each triangle breathes slowly from faint grey to full ink and back,
   staggered — pure greyscale via currentColor + opacity, no movement,
   so nothing ever clips at the svg edges */
.loader .tri {
  fill: currentColor;
  opacity: 0.15;
  animation: loader-fade 1.8s ease-in-out infinite;
}
.loader .tri:nth-child(2) { animation-delay: 0.3s; }
.loader .tri:nth-child(3) { animation-delay: 0.6s; }
@keyframes loader-fade {
  0%, 100% { opacity: 0.15; }
  40% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .loader .tri { animation: none; opacity: 1; }
}

/* mobile ⇄ desktop switch pill — global (not inside a media query): in
   desktop-on mode the phone renders the desktop layout, and the pill must
   stay styled there too */
.view-switch {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0.5rem 1.3rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.view-switch:hover, .view-switch:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }
/* the always-on-top copy in the nav bar: compact so it fits a 390px nav */
.nav-switch { font-size: 0.78rem; padding: 0.42rem 0.9rem; white-space: nowrap; }

/* phones travel light: heavy film assets are removed by JS before they load;
   this rule is the no-JS safety net so they at least never display */
@media (max-width: 767px) {
  [data-phone-drop] { display: none !important; }
}

/* phones: the homepage hero loses the location eyebrow (incl. the country
   mark), centers slogan, lead and CTA buttons, keeps both buttons on ONE
   line (compact pills), and gives up the full-viewport height so the grey
   marquee strip is reachable right below the content */
@media (max-width: 767px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.4rem); padding-bottom: 2.6rem; }
  .hero .scroll-hint { display: none; }
  .hero .eyebrow { display: none; }
  .hero .hero-copy { text-align: center; }
  .hero .hero-copy .lead { margin-inline: auto; }
  .hero .hero-ctas { justify-content: center; flex-wrap: nowrap; gap: 0.55rem; }
  .hero .hero-ctas .btn { padding: 0.72rem 1rem; font-size: 0.88rem; white-space: nowrap; }
}

/* small phones: the nav row carries brand + view pill + theme + burger.
   Tighten tracking and gaps so the row fits a 360px screen — otherwise the
   burger is pushed past the viewport edge */
@media (max-width: 480px) {
  .nav-inner { gap: 0.8rem; }
  .brand { letter-spacing: 0.14em; font-size: 0.84rem; gap: 0.55rem; }
  .nav-cta { gap: 0.55rem; }
  .nav-switch { font-size: 0.72rem; padding: 0.38rem 0.66rem; }
}
/* tiniest screens (≤384px): even tightened, the full wordmark can't share the
   row with the pill — the triangle mark carries the brand alone */
@media (max-width: 384px) {
  .nav .brand { font-size: 0; letter-spacing: 0; gap: 0; }
}

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 3rem; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.8rem, 3.2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price-card h3 { font-size: 1.5rem; font-weight: 600; }
.price-card p { color: var(--ink-muted); }
.price-card ul { list-style: none; display: grid; gap: 0.5rem; color: var(--ink-muted); font-size: 0.95rem; }
.price-card li { padding-left: 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 0.15em; color: var(--ink); font-size: 0.85em; }
/* lists sit right under the description; the CTA is pushed to the card bottom
   so buttons stay aligned across cards of unequal text length */
.price-card .btn { align-self: flex-start; margin-top: 0.6rem; }
.price-card > .btn, .price-card > .card-ctas { margin-top: auto; }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: calc(var(--radius) * 1.5);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.cta-band p { color: var(--ink-muted); margin: 0 auto 2.2rem; max-width: 52ch; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; }
.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info h3 { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 0.4rem; }
.contact-info a:hover { color: var(--ink-muted); }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--ink-muted); }
.field input, .field textarea {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); }
.form-note a { text-decoration: underline; }
.form-status { font-size: 0.94rem; min-height: 1.4em; }
.form-status.ok { color: #1d8a34; }
.form-status.err { color: #c8102e; }
:root[data-theme="dark"] .form-status.ok { color: #6ee787; }
:root[data-theme="dark"] .form-status.err { color: #ff8a80; }

/* ---------- subpage hero ---------- */

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .lead { margin-top: 1.3rem; }

/* ---------- legal ---------- */

.legal { max-width: 720px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 2.4rem 0 0.7rem; }
.legal p, .legal li { color: var(--ink-muted); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { text-decoration: underline; }

/* a section surface the background film can ghost through */
.band-glass {
  background: color-mix(in srgb, var(--bg-raise) 55%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-block: 1px solid var(--line);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.2rem;
  background: color-mix(in srgb, var(--bg-sunk) 72%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.8rem; }
.footer .brand { margin-bottom: 1rem; }
.footer p, .footer a { color: var(--ink-muted); font-size: 0.92rem; }
.footer a:hover { color: var(--ink); }
.footer h4 { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- reveal ---------- */

/* hidden-by-default only when JS is present to reveal it again */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
html.gsap .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: min(420px, 100%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .project-grid, .team-grid, .steps { grid-template-columns: 1fr 1fr; }
  .story-strip { grid-template-columns: 1fr; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Size against the viewport (not `inset: 0`) so the overlay stays full-height
     even when `.nav.scrolled`'s backdrop-filter (or `.nav.hidden`'s transform)
     turns .nav into the containing block for this fixed child. Otherwise the
     menu shrinks to the 76px nav box and its items spill over the page. */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 105;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; }
  .nav-links .nav-contact { display: block; }
  .nav-view-toggle { margin-top: 0.4rem; }
  .nav-toggle { display: block; }
  .nav .btn-primary { display: none; }
  .service-card { grid-template-columns: 1fr; }
  .service-card .go { display: none; }
  .project-grid, .team-grid, .steps, .price-grid, .form-row { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- pricing: three equal cards, row-aligned via subgrid ---------- */
.price-grid.three { grid-template-columns: repeat(3, 1fr); }
.price-card .card-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; align-self: start; }
.price-card .card-ctas .btn { margin-top: 0; }

/* Each card owns the same four track heights (title / description / list / CTA),
   so those zones line up horizontally no matter how long each card's text is. */
@supports (grid-template-rows: subgrid) {
  .price-grid.three { grid-template-rows: auto auto auto auto; align-items: stretch; }
  .price-grid.three .price-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    align-content: start;
    gap: 1.1rem;
  }
  .price-grid.three .price-card > .btn,
  .price-grid.three .price-card > .card-ctas { margin-top: 0; align-self: start; }
}

@media (max-width: 880px) {
  .price-grid.three { grid-template-columns: 1fr; grid-template-rows: none; }
  .price-grid.three .price-card { display: flex; grid-row: auto; }
  .price-grid.three .price-card > .btn,
  .price-grid.three .price-card > .card-ctas { margin-top: auto; }
}

/* ---------- premium pass: sub-page hero art, watch strip, contact booth ---------- */
/* sub-page heroes (Junior, Pricing) reuse .hero-grid but with page-hero rhythm */
.page-hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.page-hero-grid .hero-art { max-width: 560px; justify-self: end; }
@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .hero-art { justify-self: start; max-width: min(440px, 100%); }
}

/* the conveyor accent above the journey — deliberately small and quiet.
   The film sits in a generous white mat so the glass band never borders it directly;
   the literal #fff (not var(--bg)) is intentional: art-invert flips it to black,
   matching the inverted footage in dark mode. */
.watch-strip {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto 1.8rem;
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.6rem, 4vw, 3rem);
  background: #fff;
  border-radius: var(--radius);
}

/* the phone-booth loop beside the contact hero heading */
.contact-art {
  width: min(300px, 100%);
  border-radius: var(--radius);
}
.page-hero-grid .contact-art { width: min(430px, 100%); }

/* ---------- Junior: hero rotator ---------- */
.hero-rotline {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}
.jr-rotate {
  display: inline-block;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.1em;
  will-change: transform, opacity;
}

/* ---------- Junior: the invoice journey ---------- */
.journey { margin-top: 2.4rem; }
.journey .j-modes { margin-top: 0; margin-bottom: 1.6rem; }
.j-stage {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  gap: 0.6rem;
  align-items: stretch;
}
.j-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.4s ease;
}
.j-panel.is-live { border-color: var(--line-strong); }
.j-panel-engine { box-shadow: inset 0 0 0 1px var(--line); }
.j-panel-engine.is-live { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.j-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.j-kicker {
  font-family: var(--font-mark);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.j-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border-radius: 980px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}
.j-time {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.j-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.j-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: j-blink 1.6s ease-in-out infinite;
}
@keyframes j-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.j-invoice {
  position: relative;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) * 0.7);
  padding: 0.9rem 1rem;
  background: var(--bg-raise);
}
.j-invoice svg { width: 26px; height: 32px; flex: none; color: var(--ink-muted); margin-top: 0.1rem; }
.j-inv-meta { display: grid; gap: 0.15rem; font-size: 0.85rem; color: var(--ink-muted); min-width: 0; }
.j-inv-meta strong { color: var(--ink); font-weight: 600; }
.j-inv-amt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.j-check {
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.j-note { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.5; margin-top: auto; }

.j-entry { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.j-entry th {
  font-family: var(--font-mark);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  text-align: right;
  padding: 0 0 0.45rem;
}
.j-entry th:first-child { text-align: left; }
.j-entry td {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.j-entry td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 0.8rem;
}
.j-entry td:first-child { color: var(--ink-muted); }
.j-stamp {
  align-self: flex-start;
  font-family: var(--font-mark);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  transform: rotate(-4deg);
}

.j-mini-chart svg { width: 100%; height: auto; display: block; color: var(--ink); }
.j-mini-chart .jm-bar { fill: currentColor; opacity: 0.32; }
.j-mini-chart .jm-bar.jm-now { opacity: 1; }
.j-mini-chart .jm-base { stroke: var(--line-strong); stroke-width: 1; }
.j-kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.j-kpi span { font-size: 0.82rem; color: var(--ink-muted); }
.j-kpi strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.j-cfo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0.45rem 0.9rem;
  align-self: flex-start;
  background: var(--bg-raise);
}
.j-cfo svg { width: 18px; height: 18px; flex: none; }

.j-arrow { display: grid; place-items: center; min-width: 1.6rem; color: var(--ink-faint); transition: color 0.3s ease; }
.j-arrow::before { content: "\2192"; font-size: 1.4rem; line-height: 1; }
.j-arrow.lit { color: var(--ink); }
.j-arrow.lit::before { animation: flow-pulse 1.1s var(--ease) infinite; }

.j-caption {
  margin-top: 1.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  min-height: 1.6em;
}
.j-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.j-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.3s ease, transform 0.3s ease;
}
.j-dots span.is-on { background: var(--ink); transform: scale(1.35); }

/* ---------- Junior: the live dashboard ---------- */
.jdash { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.jdash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.jd-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--bg-sunk);
  display: grid;
  gap: 0.25rem;
  align-content: start;
}
.jd-kpi span { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.01em; }
.jd-kpi strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.jd-kpi em { font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }

.jdash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.jd-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunk);
  padding: 1.1rem 1.1rem 0.8rem;
  min-width: 0;
}
.jd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.jd-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.jd-legend { display: flex; gap: 1rem; font-size: 0.76rem; color: var(--ink-muted); }
.jd-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}
.jd-legend .lg-solid i { background: var(--ink); }
.jd-legend .lg-outline i { background: var(--bg); border: 1.5px solid var(--ink-muted); }
.jd-card svg { width: 100%; height: auto; display: block; overflow: visible; }

.jd-grid { stroke: var(--line); stroke-width: 1; }
.jd-lab { fill: var(--ink-faint); font-size: 11px; }
.jd-endlab { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jd-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jd-area { fill: var(--ink); opacity: 0.06; }
.jd-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 2; transition: opacity 0.15s ease; }
.jd-cross { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; transition: opacity 0.15s ease; }
.jd-auto { fill: var(--ink); }
.jd-man { fill: var(--bg); stroke: var(--ink-muted); stroke-width: 1.5; }
.jd-bar { transition: opacity 0.2s ease; }
.jd-bar.is-dim { opacity: 0.3; }
.jd-hit { cursor: crosshair; }
.jd-tip {
  position: absolute;
  top: 0.6rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.jd-foot { margin-top: 0.8rem; font-size: 0.76rem; color: var(--ink-faint); }

@media (max-width: 880px) {
  .j-stage { grid-template-columns: 1fr; }
  .j-arrow { min-height: 1.8rem; min-width: 0; }
  .j-arrow::before { content: "\2193"; }
  .j-arrow.lit::before { animation-name: flow-pulse-v; }
  .jdash-kpis { grid-template-columns: 1fr 1fr; }
  .jdash-charts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .statement .word { opacity: 1; }
  .j-live i { animation: none; }
  .j-arrow.lit::before { animation: none; }
}
