/* ============================================================
   BRANDOMIX — main stylesheet
   Structure mirrors the Elementor build:
   1. Design tokens (→ Elementor Site Settings → Global Colors/Fonts)
   2. Base & typography
   3. Components (buttons, cards, forms)
   4. Sections (header → footer)
   5. Motion (→ Elementor Motion Effects / custom CSS)
   6. Responsive
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   Copy these values into Elementor Site Settings.
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --ink:        #000000;   /* theme base — pure black */
  --ink-soft:   #9B9BA4;   /* soft gray — secondary text on black */
  --paper:      #F7F4EE;   /* primary light text / light surfaces */
  --white:      #FFFFFF;
  --surface:    #0D0D0D;   /* elevated cards on black */
  --accent:     #D9FF4B;   /* acid lime — micro highlights only */
  --accent-2:   #4ADE8B;   /* green — pairs with hero imagery */
  --lime:       #D9FF4B;   /* highlight */
  --line:       rgba(255, 255, 255, 0.10);
  --line-light: rgba(247, 244, 238, 0.16);
  --line-strong: rgba(255, 255, 255, 0.20);   /* grid rules, outline buttons, tags */

  /* Typography — Geist (display) · Inter (body) · Geist Mono (data/labels)
     Modular scale + rhythm per typography.js; see docs/design-system.md */
  --font-display: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --font-accent: 'Unbounded', var(--font-display);   /* display tickers (bmix--marquee) */
  --font-heading: 'Bricolage Grotesque', var(--font-display);   /* every heading (h1–h4, bmix--heading) */
  --font-serif: 'Instrument Serif', Georgia, serif;   /* italic accent words inside headings (bmix--serif) */

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* expo-out — GSAP showcase standard */
  --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);   /* hero signature curve (motion.js SNAP) */
  --fast: 0.25s;
  --med: 0.45s;
}

/* ------------------------------------------------------------
   2. BASE & TYPOGRAPHY
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.has-gsap { scroll-behavior: auto; }   /* GSAP drives scroll (pins, snap, scroll tweens) */

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--paper);
  background: var(--ink);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

p { text-wrap: pretty; }

/* Tabular figures for data readouts (Inter/Geist best practice) */
.ov-stat strong,
.ov-pill strong,
.ov-big,
.ov-big-row strong,
.ov-trend strong,
.hero__reel-time {
  font-variant-numeric: tabular-nums;
}

/* Subtle grain overlay (bold-studio texture) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Masked title lines (GSAP line reveal; visible without JS) */
.title-line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}
.title-line > span {
  display: block;
}

/* ============================================================
   @snippet bmix-ui: start — BRANDOMIX GLOBAL UI CLASSES
   Single source of truth for every repeated pattern:
   containers, headings (+ highlights), buttons, labels.
   Use these everywhere; never hand-style a container,
   heading, button or label per section again — extend
   this block instead.
   ============================================================ */

/* bmix--container — every inner area: equal width + padding */
.bmix--container {
  width: 100%;
  max-width: 1700px;                 /* client spec */
  margin-inline: auto;
  padding-inline: var(--gutter);     /* clamp(1.25rem, 4vw, 2.5rem) */
}

/* bmix--heading — section headings (Geist display).
   Highlight words with .bmix--hl (lime) and glyph accents with
   .bmix--hl--star (✦) / .bmix--hl--arrow (→). */
.bmix--heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}
.bmix--heading--sm {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}
.bmix--heading--xs {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.bmix--hl { color: var(--lime); }
.bmix--hl--star {
  font-size: 0.5em;
  color: var(--lime);
  transform: translateY(-1.15em);
}
.bmix--hl--arrow {
  font-weight: 400;
  margin-left: 0.15em;
}
/* bmix--hl--marker — hand-drawn highlighter stroke behind the word, white text.
   Stroke shape = SVG mask; colour = --hl-marker; draw-in = --hl-p (0→1, motion.js). */
.bmix--hl--marker {
  --hl-marker: #3F9A1C;
  position: relative;
  z-index: 0;
  color: var(--white);
  padding-inline: 0.06em;
}
.bmix--hl--marker::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.1em -0.02em;
  z-index: -1;
  background: var(--hl-marker);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 10C40 4 92 8 131 5s54-2 65 3c3 8-1 17 2 25-47 5-97 1-137 3S11 37 2 33c3-8-1-15 2-23Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 10C40 4 92 8 131 5s54-2 65 3c3 8-1 17 2 25-47 5-97 1-137 3S11 37 2 33c3-8-1-15 2-23Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
  clip-path: inset(0 calc((1 - var(--hl-p, 1)) * 100%) 0 0);
}

/* bmix--label — uppercase mono micro-label (eyebrows, captions) */
.bmix--label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* bmix--btn — brand button family (pill; hover lifts + tints) */
.bmix--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--fast) var(--ease), background var(--fast), color var(--fast), border-color var(--fast), box-shadow var(--fast);
  white-space: nowrap;
}
.bmix--btn:hover { translate: 0 -3px; }
.bmix--btn:active { translate: 0 0; }
.bmix--btn--lg { padding: 1.05rem 2.1rem; font-size: 1.0625rem; }
.bmix--btn--primary { background: var(--white); color: var(--ink); }
.bmix--btn--primary:hover { background: var(--lime); color: var(--ink); }
.bmix--btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.bmix--btn--ghost:hover { background: var(--paper); color: var(--ink); }
.bmix--btn--dark { background: var(--ink); color: var(--white); }
.bmix--btn--dark:hover { background: var(--white); color: var(--ink); }
.bmix--btn--light { background: var(--paper); color: var(--ink); }
.bmix--btn--light:hover { background: var(--lime); color: var(--ink); }

/* Rolling label inside any button (uses .roll-text from the header block) */
.bmix--btn .roll-text,
.bmix--btn .roll-text > span { height: 1.3em; line-height: 1.3em; }
.bmix--btn .roll-text > span { transition: transform 0.5s var(--ease-snap); }
.bmix--btn:hover .roll-text > span { transform: translateY(-100%); }
.bmix--btn__icon { width: 0.8em; height: 0.8em; flex-shrink: 0; }
.bmix--btn--accent { background: var(--lime); color: var(--ink); }
.bmix--btn--accent:hover { background: var(--white); color: var(--ink); }
.bmix--btn--outline { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.bmix--btn--outline:hover { color: var(--lime); border-color: var(--lime); }
.bmix--btn--secondary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--white); }
.bmix--btn--secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }

/* bmix--center — centered CTA row */
.bmix--center { display: flex; justify-content: center; }

/* bmix--tag — outlined pill tag (eyebrows, status chips); pair with .bmix--dot */
.bmix--tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* bmix--dot — live/status dot with a pulsing ring */
.bmix--dot {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.bmix--dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: bmix-pulse-ring 2s ease-out infinite;
}
@keyframes bmix-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* bmix--heading--xl — oversized uppercase display heading in the global
   heading font (pair with bmix--heading; lines as .title-line + data-reveal-lines) */
.bmix--heading--xl {
  font-size: clamp(2.4rem, 7.2vw, 6.8rem);
  line-height: 1.02;
  text-transform: uppercase;
}
/* bmix--serif — italic serif accent word(s) inside a heading: breaks the
   grotesque with Instrument Serif in sentence case (add bmix--hl for lime) */
.bmix--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* bmix--section-head — mono label row over a hairline (index left, note right;
   extra spans hide on phones) */
.bmix--section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.4);
}
@media (max-width: 640px) {
  .bmix--section-head > :nth-child(n+2) { display: none; }
}

/* bmix--ghost — huge faint background word (position it per section) */
.bmix--ghost {
  position: absolute;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-accent);
  font-weight: 200;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.03);
}

/* bmix--lead — intro paragraph under a display heading */
.bmix--lead {
  max-width: 36rem;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* bmix--stats — ruled row of big numbers + bmix--label captions */
.bmix--stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.bmix--stats__num {
  font-family: var(--font-accent);
  font-weight: 200;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.bmix--stats .bmix--label { margin-top: 0.5rem; }

/* [data-word-fill] — words start faint and fill in as you scroll past
   (motion.js §1 splits them into .bmix--word) */
.bmix--word { display: inline; opacity: 1; }

/* bmix--marquee — two-bar display ticker (Unbounded 200).
   __track--big: solid words, lime outlined diamonds.
   __track--small: outlined words, plus marks (pair with data-reverse).
   Fill each track with data-marquee="A|B|C" (+ optional data-duration
   in seconds, data-reverse); motion.js builds + loops them. */
.bmix--marquee {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.bmix--marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.bmix--marquee__item {
  font-family: var(--font-accent);
  font-weight: 200;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.bmix--marquee__sep { position: relative; flex-shrink: 0; }

.bmix--marquee__track--big .bmix--marquee__item {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  color: rgba(247, 244, 238, 0.9);
}
.bmix--marquee__track--big .bmix--marquee__sep {
  width: 20px;
  height: 20px;
  margin-inline: clamp(2rem, 3.5vw, 3.5rem);
  border: 1.5px solid rgba(217, 255, 75, 0.7);
  transform: rotate(45deg);
}

.bmix--marquee__track--small .bmix--marquee__item {
  font-size: clamp(1.2rem, 3vw, 2.6rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 238, 0.22);
}
.bmix--marquee__track--small .bmix--marquee__sep {
  width: 16px;
  height: 16px;
  margin-inline: clamp(2rem, 3vw, 3rem);
}
.bmix--marquee__track--small .bmix--marquee__sep::before,
.bmix--marquee__track--small .bmix--marquee__sep::after {
  content: "";
  position: absolute;
  background: rgba(247, 244, 238, 0.3);
}
.bmix--marquee__track--small .bmix--marquee__sep::before { left: 0; top: calc(50% - 0.75px); width: 100%; height: 1.5px; }
.bmix--marquee__track--small .bmix--marquee__sep::after  { top: 0; left: calc(50% - 0.75px); height: 100%; width: 1.5px; }

@media (prefers-reduced-motion: reduce) {
  .bmix--dot::after { animation: none; }
}
/* @snippet bmix-ui: end */

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 96px;
}

/* Section headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}
.eyebrow--light { color: var(--lime); }
.eyebrow--light::before { background: var(--lime); }

.section__head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); max-width: 46rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
}

.section__title {
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  text-transform: uppercase;
}
.section__title--sm { font-size: clamp(1.9rem, 4vw, 3rem); }

.section__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.text-accent { color: var(--accent); }
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   3. COMPONENTS
   ------------------------------------------------------------ */


/* Logo */
.logo {
  display: block;
  z-index: 100;
}
.logo img {
  display: block;
  height: 30px;
  width: auto;
}
.menu__logo img { height: 27px; }
.logo--light img { opacity: 0.94; }

/* Chips */
.chip {
  display: inline-flex;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
}

/* Checklist */
.checklist { display: grid; gap: 0.85rem; margin-block: 1.75rem; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-weight: 500;
  color: var(--paper);
}
.checklist__item::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   4. SECTIONS
   ------------------------------------------------------------ */

/* ---------- Header (absolute over hero, scrolls away) ---------- */
/* @snippet header-menu: start — paste into WPCode / Elementor Custom CSS (see docs/wordpress-plugins.md) */
/* One header grid: logo, nav pill and the fixed action cluster all centre
   on the same row, and the cluster's right edge = the container's content edge. */
:root {
  --header-top: 15px;   /* row offset from the top */
  --header-row: 56px;   /* row height (= nav pill height) */
  --header-edge: max(var(--gutter), calc((100% - 1700px) / 2 + var(--gutter)));   /* fixed-position content edge */
}
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding-top: var(--header-top);
}
.header__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-row);
}
.topbar__logo,
.menu__status,
.menu__cta,
.menu__marquee { display: none; }   /* phone-only extras (see the 760px block) */
.site-header .logo {
  width: 240px;
  flex-shrink: 0;
}
.header__spacer {
  width: 240px;
  flex-shrink: 0;
}

/* Pill nav (awsmd: white capsule, centered, rolling labels) */
.nav-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  padding-inline: 36px;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.5);
}
.nav-pill__item {
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
  color: var(--paper);
}

/* Rolling text (two stacked labels, slide up on hover) */
.roll-text {
  display: flex;
  flex-direction: column;
  height: 1.1em;
  overflow: hidden;
}
.roll-text > span {
  height: 1.1em;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}
.nav-pill__item:hover .roll-text > span {
  transform: translateY(-100%);
}

/* ---------- Fixed action cluster (awsmd hero-sticky) ---------- */
.topbar {
  position: fixed;
  top: var(--header-top);
  right: var(--header-edge);
  height: var(--header-row);
  z-index: 301;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-pill {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 21px;
  background: var(--white);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.1;
  box-shadow: 0 16px 40px -18px rgba(17, 17, 20, 0.18);
  transition: color 0.25s ease-in-out, opacity 0.3s ease, transform 0.3s ease;
}
.cta-pill__icon {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.cta-pill .roll-text {
  position: relative;
  z-index: 2;
}
.cta-pill .roll-text > span {
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
.cta-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  border-radius: 35px;
  transform: translateX(-105%);
  transform-origin: left center;
  transition: transform 0.3s ease-in-out;
}
.cta-pill:hover::before {
  transform: translateX(0);
}
.cta-pill:hover {
  color: var(--white);
}
.cta-pill:hover .roll-text > span {
  transform: translateY(-100%);
  color: var(--white);
}

/* Burger (staggered bars → X, awsmd menu-button) */
.menu-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -18px rgba(17, 17, 20, 0.25);
  transition: background 0.25s ease-in-out, color 0.25s ease-in-out;
}
.menu-btn__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.menu-btn__bars span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: 0.4s ease-in-out 0.25s;
  transition-property: width, left, top, transform;
}
.menu-btn__bars span:nth-child(1) { width: 10px; left: 8px; }
.menu-btn__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn__bars span:nth-child(3) { width: 10px; top: 100%; transform: translateY(-100%); }

.menu-btn.is-active .menu-btn__bars span:nth-child(1) {
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}
.menu-btn.is-active .menu-btn__bars span:nth-child(2) {
  width: 0;
}
.menu-btn.is-active .menu-btn__bars span:nth-child(3) {
  width: 100%;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

/* Cluster tone — site is monochrome; the white pill works over everything */

/* While the menu is open, the "+ Start a Project" pill STAYS VISIBLE
   over the accent panel (white pill, ink hover fill) — only the burger
   tone changes so it reads clearly on the orange */
body.menu-open .topbar .cta-pill {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
body.menu-open .topbar .cta-pill::before {
  background: var(--ink);
}
body.menu-open .topbar .cta-pill:hover,
body.menu-open .topbar .cta-pill:hover .roll-text > span {
  color: var(--white);
}
body.menu-open .topbar .menu-btn {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* ---------- Fullscreen split-panel menu (awsmd menu_menu) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 1.15s;
}
.menu.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.menu__left,
.menu__right {
  position: relative;
  display: flex;
  flex-direction: column;
}
.menu__left {
  max-width: 354px;
  width: 100%;
  padding: 40px 40px 50px;
  flex-shrink: 0;
}
.menu__right {
  flex-grow: 1;
  padding: 40px 30px 40px 45px;
  min-width: 0;
}

/* Panels are ::before layers so content can fade independently
   (left grows from top, right grows from bottom — awsmd enter anim) */
.menu__left::before,
.menu__right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(1, 0, 0.46, 0.85) 0.4s;
}
.menu__left::before {
  background: var(--ink);
  transform-origin: center top;
}
.menu__right::before {
  background: #0F1411;
  transform-origin: center bottom;
}
.menu.is-open .menu__left::before,
.menu.is-open .menu__right::before {
  transform: scaleY(1);
  transition-delay: 0s;
}

/* Staggered content (open: delayed fade/rise · close: quick fade) */
.menu__logo,
.menu__left-bottom,
.menu__links,
.menu__info,
.menu__header,
.menu__row {
  opacity: 0;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.menu__left-bottom { transform: translateY(-30px); }
.menu__header { transform: translateY(50px); }

.menu.is-open .menu__logo {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(1, 0, 0.46, 0.85) 0.05s;
}
.menu.is-open .menu__left-bottom {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out 0.5s, transform 0.4s ease-out 0.5s;
}
.menu.is-open .menu__links {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(1, 0, 0.46, 0.85) 0.3s;
}
.menu.is-open .menu__header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease-out 0.5s, transform 0.35s ease-out 0.5s;
}
.menu.is-open .menu__info {
  opacity: 1;
  transition: opacity 0.3s ease-out 0.55s;
}
.menu.is-open .menu__row {
  opacity: 1;
  transition: opacity 0.2s ease-out 0.7s;
}

/* Left panel content */
.menu__logo {
  align-self: flex-start;
}
.menu__left-bottom {
  margin-top: auto;
}
.menu__text {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 14.6em;
}
.menu__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
}

/* Right panel header */
.menu__header {
  display: flex;
  align-items: center;
  padding-right: 76px;
}
.menu__header-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
}
/* Huge menu links + hover bar (awsmd menu_content_link) */
.menu__content {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}
.menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.menu__link {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 6vh, 4.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--white);
}
.menu__link span {
  display: inline-block;
  transition: transform 0.4s ease-in-out;
}
.menu__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2em;
  height: 0.085em;
  background: var(--white);
  transform: scaleX(0) translateY(-50%);
  transform-origin: left center;
  opacity: 0;
  transition: 0.4s ease-in-out;
  transition-property: transform, opacity;
}
.menu__link:hover span {
  transform: translateX(1.3em);
}
.menu__link:hover::before {
  opacity: 1;
  transform: scaleX(1) translateY(-50%);
}

/* Right column: socials + email */
.menu__info {
  max-width: 280px;
  width: 100%;
  flex-shrink: 0;
}
.menu__socials {
  display: flex;
  flex-direction: column;
}
.menu__socials-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vh, 2.3rem);
  line-height: 1.2;
  color: var(--white);
  transition: opacity 0.2s ease;
}
.menu__socials-link + .menu__socials-link {
  margin-top: 3px;
}
.menu__socials-link:hover {
  opacity: 0.75;
}
.menu__email {
  margin-top: 10px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}
.menu__email a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.menu__email a:hover {
  color: var(--white);
}
.menu__copy-btn {
  margin-left: 6px;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  transition: background 0.15s ease-in-out;
}
.menu__copy-btn:hover {
  background: rgba(255, 255, 255, 0.75);
}
.menu__copy-btn svg {
  width: 0.55em;
  height: 0.55em;
  color: var(--white);
}
.menu__copy-btn.is-copied {
  background: var(--ink);
}

/* Bottom row: copy + round social chips */
.menu__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 28px;
}
.menu__copy {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
}
.menu__copy-copyright {
  display: block;
  margin-top: 7px;
  opacity: 0.5;
}
.menu__extras {
  display: flex;
  gap: 11px;
}
.menu__extra {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  transition: background 0.15s ease-in-out;
}
.menu__extra:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Pill nav collides with the logo / action cluster below ~1140px:
   hide it there — the burger menu carries the same links. */
@media (max-width: 1140px) {
  .nav-pill { display: none; }
}

/* Responsive — menu becomes a right-hand drawer (tablet: 480px over a
   dimmed page · phone: full width). One #0F1411 panel, logo in its top
   row; the split ::before panels are switched off. */
@media (max-width: 1080px) {
.menu {
    left: auto;
    width: min(480px, 100%);
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0F1411;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-snap), box-shadow 0.6s ease, visibility 0s linear 0.6s;
  }
.menu.is-open {
    transform: none;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
    transition: transform 0.6s var(--ease-snap), box-shadow 0.6s ease, visibility 0s;
  }
.menu__left::before,
.menu__right::before { display: none; }
.menu__left {
    flex-direction: row;
    align-items: center;
    max-width: none;
    width: 100%;
    min-height: 86px;
    padding: 0 28px;
    flex-shrink: 0;
  }
.menu__logo { align-self: center; }
.menu__text,
.menu__badge,
.menu__left-bottom,
.menu__header { display: none; }
.menu__right { padding: 8px 28px 26px; }
.menu__content {
    margin-top: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
.menu__link { font-size: clamp(2.15rem, 7.5vw, 3.4rem); }
.menu__link + .menu__link { margin-top: 0.1em; }
.menu__info {
    max-width: 100%;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
.menu__socials { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.menu__socials-link { font-size: 1.15rem; }
.menu__socials-link + .menu__socials-link { margin-top: 0; }
.menu__email { margin-top: 0; font-size: 15px; }
.menu__copy { font-size: 15px; }
.menu__row { margin-top: auto; padding-top: 22px; }
}

@media (max-width: 900px) {
.site-header .logo { width: auto; }
}

/* ---------- Phone (≤760px): a fixed glass bar on top (logo + menu button)
   that slips away while you scroll down and returns on scroll up; the menu
   opens full screen as a circle growing out of the menu button. ---------- */
@media (max-width: 760px) {
  .site-header { display: none; }   /* the bar carries the logo on phones */

  /* top bar */
  .topbar {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    height: auto;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    background: rgba(13, 13, 13, 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s var(--ease-snap), background 0.3s ease, border-color 0.3s ease;
  }
  body.nav-hidden:not(.menu-open) .topbar { transform: translateY(calc(-100% - 24px)); }
  body.menu-open .topbar { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar__logo { display: block; }
  .topbar__logo img { display: block; height: 22px; width: auto; }
  .cta-pill,
  body.menu-open .topbar .cta-pill { display: none; }   /* the CTA lives in the menu on phones */
  .menu-btn,
  body.menu-open .topbar .menu-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--lime);
    color: var(--ink);
    box-shadow: none;
  }
  body.menu-open .topbar .menu-btn { background: var(--paper); }

  /* full-screen menu, revealed as a circle from the bar's menu button */
  .menu,
  .menu.is-open { left: 0; width: auto; transform: none; box-shadow: none; }
  .menu {
    background: var(--ink);
    clip-path: circle(0 at calc(100% - 41px) 41px);
    transition: clip-path 0.7s var(--ease-snap), visibility 0s linear 0.7s;
  }
  .menu.is-open {
    clip-path: circle(150vmax at calc(100% - 41px) 41px);
    transition: clip-path 0.85s var(--ease-snap), visibility 0s;
  }
  .menu::before,
  .menu::after { content: ""; position: absolute; pointer-events: none; }
  .menu::before {   /* lime light where the circle opens */
    top: 0;
    right: 0;
    width: 100%;
    height: 55%;
    background: radial-gradient(70% 70% at 100% 0%, rgba(217, 255, 75, 0.16) 0%, transparent 70%);
  }
  .menu::after {    /* green depth from the opposite corner */
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: radial-gradient(80% 70% at 0% 100%, rgba(74, 222, 139, 0.12) 0%, transparent 70%);
  }
  .menu__left,
  .menu__right { z-index: 1; }
  .menu__left { min-height: 0; padding: calc(max(12px, env(safe-area-inset-top)) + 76px) 20px 0; }
  .menu__logo { display: none; }   /* the bar's logo stays visible over the menu */
  .menu__status { display: inline-flex; padding: 0.4rem 0.75rem 0.4rem 0.65rem; font-size: 0.625rem; white-space: nowrap; }
  .menu__status-more { margin-left: -0.3rem; }   /* flex item: tag gap → word space */
  .menu__right { flex: 1; padding: 14px 20px 0; }
  .menu__content { flex: 1; margin-top: 0; }
  .menu__links { width: 100%; }

  .menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.16em 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  }
  .menu__link + .menu__link { margin-top: 0; }
  .menu__link::before { display: none; }
  .menu__link::after {
    content: "";
    width: 0.42em;
    height: 0.42em;
    background: currentColor;
    opacity: 0.35;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.4s var(--ease-snap), opacity 0.2s ease;
  }
  .menu__link:hover span,
  .menu__link:active span { transform: none; }
  .menu__link:active { color: var(--lime); }
  .menu__link:active::after { opacity: 1; transform: rotate(45deg); }
  .menu.is-open .menu__link {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.8s var(--ease-snap), color 0.2s ease;
  }
  .menu.is-open .menu__link:nth-child(1) { transition-delay: 0.22s; }
  .menu.is-open .menu__link:nth-child(2) { transition-delay: 0.28s; }
  .menu.is-open .menu__link:nth-child(3) { transition-delay: 0.34s; }
  .menu.is-open .menu__link:nth-child(4) { transition-delay: 0.40s; }
  .menu.is-open .menu__link:nth-child(5) { transition-delay: 0.46s; }
  .menu.is-open .menu__link:nth-child(6) { transition-delay: 0.52s; }

  .menu__info { margin-top: auto; padding-top: 22px; gap: 12px; }   /* pinned to the bottom */
  .menu__socials { gap: 6px; }
  .menu__socials-link {
    padding: 0.55rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
  }
  .menu__email { font-size: 14px; }
  .menu__row { display: none; }   /* copyright lives in the footer; the menu stays one screen tall */

  .menu__cta {
    display: flex;
    width: 100%;
    margin-top: 18px;
    padding: 1rem 1.5rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease, background var(--fast);
  }
  .menu.is-open .menu__cta { opacity: 1; transform: none; transition: opacity 0.5s ease 0.55s, transform 0.8s var(--ease-snap) 0.55s, background var(--fast); }
  .menu__cta:hover { translate: none; }

  .menu__marquee {
    display: grid;
    margin: 18px -20px 0;
    padding-block: 12px max(12px, env(safe-area-inset-bottom));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .menu.is-open .menu__marquee { opacity: 1; transition: opacity 0.6s ease 0.6s; }
  .menu__marquee .bmix--marquee__item { font-size: 1.5rem; }

  @media (max-height: 700px) {   /* short phones: everything still fits one screen */
    .menu__left { padding-top: calc(max(12px, env(safe-area-inset-top)) + 66px); }
    .menu__link { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .menu__info { padding-top: 14px; }
    .menu__cta { margin-top: 12px; padding-block: 0.85rem; }
    .menu__marquee { margin-top: 12px; padding-top: 10px; }
  }
}

@media (max-width: 900px) and (max-height: 560px) {
.menu__left { padding-top: 12px; }
.menu__logo img { height: 22px; }
.menu__right { padding-bottom: 18px; }
.menu__link { font-size: clamp(1.45rem, 4.6vh, 1.95rem); }
.menu__info { margin-top: 14px; gap: 10px; }
.menu__socials-link { font-size: 1rem; }
.menu__email { font-size: 13px; }
.menu__row { padding-top: 14px; }
.menu__extras .menu__extra { width: 32px; height: 32px; }
}
/* @snippet header-menu: end */

/* ---------- Hero (top copy band over WebGL + marquee · media band with service grid) ----------
   Band split is unchanged from the previous hero: top = min 30dvh with header
   clearance, media = 72dvh (min 480px). Shared UI (container, buttons, tag,
   dot, marquee, label, highlight) comes from the bmix-ui block. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  /* WebGL poster / no-WebGL fallback (js/hero-gl.js adds .no-gl) */
  background: #040603 url("../images/hero-fluid.jpg") center / cover no-repeat;
}

/* Intro curtain — only rendered while <html class="is-intro"> (set in <head>) */
.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  background: var(--lime);
  pointer-events: none;
}
html.is-intro .hero__curtain { display: block; }

/* ---------- Top band ---------- */
.hero__band--top {
  position: relative;
  overflow: hidden;
  min-height: max(30dvh, 26.5rem);   /* ≈ previous hero's top band on desktop */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(7.5rem, 14vh, 10rem);
}
#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__grade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(217, 255, 75, 0.08) 0%, rgba(0, 0, 0, 0.8) 75%);
  pointer-events: none;
  z-index: 1;
}
.hero__top-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__eyebrow { margin-bottom: 0.9rem; }

.hero__title {
  font-size: clamp(1.75rem, 3.4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: initial;
}
.hero__word { display: inline-block; }

/* Inline image pill in the headline (sized in em so it tracks the title) */
.hero__pill {
  position: relative;
  display: inline-flex;
  width: 2.7em;
  height: 0.7em;
  margin-left: 0.2em;
  overflow: hidden;
  background: var(--surface) url("../images/hero-fluid.jpg") 0% 50% / 130% auto no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
}
.hero__pill-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: hero-sheen 3.4s ease-in-out infinite;
}
@keyframes hero-sheen {
  0%        { transform: translateX(-130%) skewX(-20deg); }
  55%, 100% { transform: translateX(260%) skewX(-20deg); }
}
.hero__spark {
  display: inline-block;
  width: 0.58em;
  height: 0.58em;
  margin-left: 0.2em;
  color: var(--lime);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* Showreel card — wide screens only */
.hero__reel {
  display: none;
  flex: none;
  width: 250px;
  margin: 0 auto;
}
.hero__reel-screen {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.hero__reel-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0f3d12, var(--accent-2), var(--lime), #1f6b14, #0f3d12);
  filter: blur(28px);
  opacity: 0.9;
}
.hero__reel-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 4px);
}
.hero__reel-rec {
  position: absolute;
  left: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}
.hero__reel-rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: hero-blink 1.2s steps(2) infinite;
}
@keyframes hero-blink { 50% { opacity: 0.15; } }
.hero__reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding-left: 2px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
}
.hero__reel-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.hero__reel-time { color: var(--paper); }
.hero__reel-bar {
  height: 2px;
  margin-top: 8px;
  background: var(--line-strong);
}
.hero__reel-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
}

.hero__info {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  padding-left: 36px;
  border-left: 1px solid var(--line-strong);
}
.hero__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__text strong {
  font-weight: 400;
  color: var(--paper);
}

/* Rotating "Open for projects" badge */
.hero__badge {
  position: relative;
  flex: none;
  width: 120px;
  height: 120px;
}
.hero__ring {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__ring text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--paper);
}
.hero__badge-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}

.hero__top-inner { margin-bottom: clamp(1.75rem, 4vh, 3rem); }
.hero__marquee {
  position: relative;
  z-index: 2;
}

/* ---------- Media band ---------- */
.hero__band--media {
  position: relative;
  height: 72dvh;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Drifting colour field over the photo (theme greens + lime) */
.hero__blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__blob--1 { left: -6%; top: -20%;   background: #1f6b14;           opacity: 0.55; }
.hero__blob--2 { right: 8%; top: -30%;   background: var(--accent-2);   opacity: 0.3; }
.hero__blob--3 { left: 38%; bottom: -40%; background: var(--lime);      opacity: 0.22; width: 420px; height: 420px; }
.hero__blob--4 { left: 8%;  bottom: -45%; background: #0f3d12;          opacity: 0.6;  width: 440px; height: 440px; }
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.09) 50%, transparent 58%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.hero__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 1.4vw, 1.625rem);
  overflow: hidden;
  text-align: left;
  color: var(--paper);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.hero__cell:nth-child(4n) { border-right: 0; }
.hero__cell:nth-child(n+5) { border-bottom: 0; }

.hero__cell-num {
  position: relative;
  z-index: 1;
  color: rgba(247, 244, 238, 0.7);
  transition: color 0.3s ease;
}
.hero__cell-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.125rem, 2.1vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  transition: color 0.3s ease;
}

/* Service cells: frosted glass; lime fill wipes in from the entry edge */
.hero__cell--svc {
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__cell--svc.is-hot .hero__cell-num,
.hero__cell--svc.is-hot .hero__cell-title { color: var(--ink); }
.hero__cell-fill {
  position: absolute;
  inset: 0;
  background: var(--lime);
  clip-path: inset(0% 100% 0% 0%);
}

.hero__cell--lead { background: var(--ink); }
.hero__cell-lead {
  font-size: clamp(1.375rem, 2.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Scroll arrow cell */
.hero__cell--go {
  background: var(--lime);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}
.hero__cell--go:hover { background: var(--ink); color: var(--lime); }
.hero__cell--go:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.hero__go-lbl {
  position: relative;
  display: block;
  height: 1.4em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__go-lbl-a,
.hero__go-lbl-b {
  display: block;
  height: 1.4em;
  line-height: 1.4em;
}
.hero__go-lbl-b {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
}
.hero__go-arrow {
  position: absolute;
  right: clamp(1.25rem, 2vw, 2.25rem);
  top: 50%;
  height: 50%;
  transform: translateY(-50%);
}
.hero__go-arrow svg {
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  overflow: visible;
}
.hero__go-shaft,
.hero__go-head {
  fill: none;
  stroke: var(--ink);
  stroke-width: 34;
  stroke-linecap: butt;      /* sharp, square-cut ends */
  stroke-linejoin: miter;
  stroke-miterlimit: 10;
  transition: stroke 0.3s ease;
}
.hero__cell--go:hover .hero__go-shaft,
.hero__cell--go:hover .hero__go-head { stroke: var(--lime); }

/* ---------- Hero responsive ---------- */
@media (min-width: 1700px) {
  .hero__reel { display: block; }
}
@media (max-width: 1100px) {
  .hero__info { display: none; }
}
@media (max-width: 900px) {
  .hero__badge { width: 96px; height: 96px; }
}
@media (max-width: 760px) {
  .hero__badge { display: none; }
  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  .hero__cell:nth-child(n) { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
  .hero__cell:nth-child(2n) { border-right: 0; }
  .hero__cell:nth-child(n+7) { border-bottom: 0; }
}
@media (max-height: 780px) {
  .hero__reel { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__pill-sheen,
  .hero__reel-rec i { animation: none; }
}

/* ---------- About (intro) — perspective plane that tilts flat as it scrolls in
   (js/motion.js §4), drifting ghost word behind ---------- */
.about {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 18vh, 12rem);
}
.about__ghost {
  left: 0;
  top: 50%;
  margin-top: -0.5em;
  font-size: 26vw;
}
.about__persp { perspective: 1200px; }
.about__plane {
  position: relative;
  transform-origin: 50% 100%;
  will-change: transform;
}
.about__plane .bmix--section-head { margin-bottom: clamp(2rem, 4vw, 2.5rem); }
.about__copy { margin-top: clamp(2rem, 4vw, 2.5rem); }
.about__stats { margin-top: clamp(3rem, 6vw, 4rem); }

/* ---------- Services — pinned blueprint stage (js/motion.js §5) ----------
   Card = --cw × --ch, centred in a 100vh stage; frame lines run along
   its edges. The base face shows the current service; the next
   one breaks in through square tiles (.services__cube), each holding a
   clipped clone of the full face. */
.services {
  --cw: min(75%, 1500px);                              /* card width (capped) */
  --ch: 60%;
  --shift: 4%;                                         /* card sits a bit low: room for the heading */
  --top: calc((100% - var(--ch)) / 2 + var(--shift));  /* card top edge */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.services__stage {
  position: relative;
  height: 100vh;
  min-height: 560px;
}

/* blueprint frame */
.services__line {
  position: absolute;
  z-index: 1;
  background: var(--line-strong);
}
.services__line--h1,
.services__line--h2 { left: 0; right: 0; height: 1px; }
.services__line--h1 { top: var(--top); }
.services__line--h2 { top: calc(var(--top) + var(--ch)); }
.services__line--v1,
.services__line--v2 { top: 0; bottom: 0; width: 1px; }
.services__line--v1 { left: calc((100% - var(--cw)) / 2); }
.services__line--v2 { left: calc((100% + var(--cw)) / 2); }

/* centred heading above the card · counter below it, inset from the frame */
.services__head {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(100% - var(--top) + clamp(1.25rem, 3vh, 2.25rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-inline: var(--gutter);
  text-align: center;
}
.services__title-main { font-size: clamp(1.75rem, 3.4vw, 3.25rem); }
.services__ui {
  position: absolute;
  z-index: 3;
  left: calc((100% - var(--cw)) / 2);
  width: var(--cw);
  top: calc(var(--top) + var(--ch) + clamp(1rem, 2.4vh, 1.5rem));
  display: flex;
  justify-content: flex-end;
  padding-inline: clamp(1rem, 1.6vw, 1.5rem);
}
.services__counter b { font-weight: 500; color: var(--paper); }

/* the card */
.services__card {
  position: absolute;
  z-index: 5;
  left: calc((100% - var(--cw)) / 2);
  top: var(--top);
  width: var(--cw);
  height: var(--ch);
  overflow: hidden;
  outline: 1px solid var(--line-strong);
}
.services__card.is-pre { background: var(--ink); }
.services__base { position: absolute; inset: 0; z-index: 1; }
.services__overlays { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.services__overlay { position: absolute; inset: 0; display: none; }
.services__overlay.is-active { display: block; }
.services__cube { position: absolute; overflow: hidden; opacity: 0; }
.services__cube.is-on { opacity: 1; }
.services__cube-in { position: absolute; top: 0; left: 0; }
.services__cube-flash { position: absolute; inset: 0; background: var(--paper); opacity: 0; }

/* card face (also cloned into every tile) */
.services__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.375rem, 3.6vw, 3.25rem);
  overflow: hidden;
}
.services__face--ink  { background: var(--ink);  color: var(--paper); }
.services__face--lime { background: var(--lime); color: var(--ink); }

.services__art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: center / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  opacity: 0.55;
}
.services__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0.15) 100%);
}
.services__face--lime .services__art {
  filter: grayscale(1) contrast(1.2) brightness(1.1);
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.services__face--lime .services__art::after {
  background: linear-gradient(90deg, var(--lime) 0%, rgba(217, 255, 75, 0.55) 42%, rgba(217, 255, 75, 0) 100%);
}

.services__face-head,
.services__title,
.services__face-foot {
  position: relative;
  z-index: 1;
  max-width: 64%;
}
.services__face-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.services__count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}
.services__count-num {
  font-family: var(--font-accent);
  font-weight: 200;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--lime);
}
.services__face--lime .services__count-num { color: var(--ink); }
.services__count-total { color: inherit; opacity: 0.65; }
.services__rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.services__face .bmix--label { color: inherit; opacity: 0.7; }

.services__title {
  margin-block: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.services__title-a,
.services__title-b { display: block; }
.services__title-b {
  margin-top: 0.04em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.96em;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--lime);
}
.services__face--lime .services__title-b { color: var(--ink); }

.services__desc {
  max-width: 430px;
  margin-bottom: 1.25rem;
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  line-height: 1.6;
  opacity: 0.75;
}
.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.services__face .bmix--tag { padding: 0.45rem 0.85rem; color: inherit; }
.services__face--lime .bmix--tag { border-color: rgba(0, 0, 0, 0.35); }

@media (max-width: 1280px) {
  .services { --cw: min(80%, 1500px); --ch: 64%; }
}
@media (max-width: 1024px) {
  .services__face-head,
  .services__title,
  .services__face-foot { max-width: 68%; }
}
@media (max-width: 760px) {
  .services { --cw: 92%; --ch: 64%; }
  .services__face-head,
  .services__title,
  .services__face-foot { max-width: 100%; }
  .services__face-head .bmix--label { display: none; }
  .services__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .services__tags li:nth-child(n+4) { display: none; }
  .services__face .bmix--tag { padding: 0.35rem 0.65rem; font-size: 0.625rem; }
  .services__art { width: 100%; opacity: 0.3; }
  .services__art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, var(--ink) 78%); }
  .services__face--lime .services__art::after { background: linear-gradient(180deg, rgba(217, 255, 75, 0.5) 0%, var(--lime) 78%); }
}
@media (max-width: 420px) {
  .services__desc { -webkit-line-clamp: 2; }
}
@media (max-height: 740px) and (min-width: 761px) {
  .services { --ch: 66%; --shift: 5%; }
  .services__title-main { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
  .services__face { padding: 1.875rem 2.5rem; }
  .services__title { font-size: clamp(2.25rem, 5vw, 4rem); }
}

/* ---------- Approach — un-pinned breather between Services and Work ---------- */
.interlude {
  position: relative;
  padding-block: clamp(7rem, 22vh, 14rem);
}
.interlude__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.interlude__text {
  max-width: 22ch;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.interlude__text .bmix--serif { font-size: 1.1em; }
.interlude__signed {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.interlude__rule { width: 64px; height: 1px; background: var(--line-strong); }

/* ---------- Selected work — pinned horizontal gallery (js/motion.js §6) ---------- */
.work {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1080px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.work__glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 255, 75, 0.08) 0%, rgba(217, 255, 75, 0) 62%);
  pointer-events: none;
}
.work__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 240px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}

/* HUD */
.work__hud {   /* + bmix--container: same width/edges as every other section */
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
}
.work__hud--top { top: 32px; gap: 2rem; }   /* left-aligned: the fixed CTA + burger own the top right */
.work__label,
.work__hint { display: flex; align-items: center; gap: 0.6rem; }
.work__hud--bot {
  bottom: 28px;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.work__count { display: flex; align-items: center; gap: 0.5rem; }
.work__roll { height: 22px; overflow: hidden; line-height: 22px; }
.work__roll span { display: block; height: 22px; }
.work__roll--num { width: 26px; font-variant-numeric: tabular-nums; }
.work__roll--name { width: 200px; text-align: right; }
.work__total { color: var(--ink-soft); }
.work__bar { flex: 1; height: 1px; background: var(--line-strong); }
.work__bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
}

/* stage + track */
.work__stage { position: absolute; top: 84px; bottom: 84px; left: 0; right: 0; }
.work__track {
  display: flex;
  align-items: stretch;
  gap: 36px;
  width: max-content;
  height: 100%;
  padding-inline: var(--header-edge);   /* first/last panel line up with the container edge */
  will-change: transform;
}

/* intro panel */
.work__intro {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(60vw, 920px);
}
.work__title {
  font-size: min(14vw, 27vh);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: initial;
  will-change: transform;
}
.work__title .bmix--serif { font-size: 1.08em; letter-spacing: -0.02em; }
.work__lede { max-width: 380px; margin-top: 1.75rem; }

/* project cards */
.work__card {
  flex: none;
  width: min(56vw, 900px);
  height: 100%;
  will-change: transform;
}
.work__link {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  color: inherit;
  will-change: transform;
}
.work__link:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: var(--radius); }
.work__media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg, var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.work__art { position: absolute; left: -12%; right: -12%; top: 0; bottom: 0; will-change: transform; }
.work__zoom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.9s var(--ease-snap);
}
.work__link:hover .work__zoom { transform: scale(1.05); }
.work__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.work__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.work__name {
  margin-top: 4px;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.work__desc { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.work__go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.work__go svg { transition: transform 0.6s var(--ease-snap); }
.work__link:hover .work__go { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.work__link:hover .work__go svg { transform: rotate(45deg); }

/* outro */
.work__outro {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(34vw, 520px);
  text-align: center;
}
.work__all {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  transition: transform 0.7s var(--ease-snap);
}
.work__all:hover { transform: scale(1.08); }
.work__all:focus-visible { outline: 3px solid var(--white); outline-offset: 6px; }
.work__ring { position: absolute; inset: -26px; width: calc(100% + 52px); height: calc(100% + 52px); overflow: visible; }
.work__ring text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--paper);
}
.work__all-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work__outro-text {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* "View" cursor */
.work__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
}

/* project previews (CSS-drawn — swap for real screenshots) */
.work__mk-browser {
  display: flex;
  flex-direction: column;
  width: 460px;
  max-width: 74%;
  height: 80%;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.work__mk-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.work__mk-bar i { width: 9px; height: 9px; background: #2b2b2b; border-radius: 50%; }
.work__mk-url { flex: 1; height: 16px; margin-left: 12px; background: rgba(255, 255, 255, 0.07); border-radius: 8px; }
.work__mk-view { flex: 1; overflow: hidden; }
.work__mk-page { display: flex; flex-direction: column; gap: 22px; padding: 22px; }
.work__mk-nav { display: flex; align-items: center; gap: 10px; }
.work__mk-nav b { width: 26px; height: 26px; margin-right: auto; background: var(--lime); border-radius: 50%; }
.work__mk-nav span { width: 40px; height: 8px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.work__mk-h1 { width: 86%; height: 34px; margin-bottom: 8px; background: var(--paper); border-radius: 6px; }
.work__mk-h1--s { width: 58%; background: var(--lime); }
.work__mk-p { width: 70%; height: 10px; background: rgba(255, 255, 255, 0.18); border-radius: 5px; }
.work__mk-btn { width: 110px; height: 34px; margin-top: 16px; background: var(--lime); border-radius: 999px; }
.work__mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work__mk-cards i { height: 90px; background: linear-gradient(135deg, #1d1d1d, #0f0f0f); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.work__mk-block { height: 140px; background: linear-gradient(120deg, var(--lime), #24300a); border-radius: 10px; }
.work__mk-chip {
  position: absolute;
  right: 16%;
  bottom: 12%;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.work__lg-svg { display: block; width: 420px; max-width: 78%; overflow: visible; }
.work__lg-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
}

.work__ph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 290px;
  margin: -145px 0 0 -75px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--paper), #0b0b0b 70%);
  border: 6px solid #1b1b1b;
  border-radius: 30px;
}
.work__ph--l { transform: translateX(-130px) rotate(-8deg) scale(0.88); }
.work__ph--r { transform: translateX(130px) rotate(8deg) scale(0.88); background: linear-gradient(200deg, var(--ink-soft), #0b0b0b 70%); }
.work__ph--c { z-index: 2; background: linear-gradient(160deg, var(--lime), #3a4a0c 55%, #0b0b0b); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.work__ph-play {
  position: absolute;
  left: 50%;
  top: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding-left: 3px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  animation: work-ph-pulse 2.4s ease-in-out infinite;
}
.work__ph-cap { position: absolute; left: 14px; bottom: 40px; width: 70%; height: 8px; background: rgba(255, 255, 255, 0.75); border-radius: 4px; }
.work__ph-cap--s { bottom: 26px; width: 44%; background: rgba(255, 255, 255, 0.4); }
.work__ph-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; }
.work__ph-bar b {
  display: block;
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  transform-origin: left center;
  animation: work-ph-fill 4s linear infinite;
}
@keyframes work-ph-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes work-ph-pulse { 50% { transform: scale(1.14); } }

.work__ob-svg { display: block; width: 440px; max-width: 80%; overflow: visible; }

.work__ed { display: flex; flex-direction: column; gap: 16px; width: 560px; max-width: 74%; }
.work__ed-prev { position: relative; height: 190px; overflow: hidden; background: var(--ink); border-radius: 12px; }
.work__ed-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  background: var(--lime);
  border-radius: 50%;
}
.work__ed-shape--b { width: 220px; height: 220px; margin: -110px 0 0 -110px; background: none; border: 1px solid rgba(255, 255, 255, 0.25); }
.work__ed-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding-left: 3px;
  color: var(--lime);
  background: var(--ink);
  border-radius: 50%;
}
.work__ed-tl { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #DCD8CF; border-radius: 12px; }
.work__ed-track { position: relative; height: 26px; }
.work__ed-track span { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); background: var(--c, var(--ink)); border-radius: 6px; }
.work__ed-head { position: absolute; top: 0; bottom: 0; left: 12px; width: 2px; background: var(--ink); }
.work__ed-head::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.work__sc-svg { display: block; width: 460px; max-width: 80%; overflow: visible; }
.work__sc-badge {
  position: absolute;
  right: 18%;
  top: 18%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
}
.work__sc-badge b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1; }

@media (hover: none) {
  .work__cursor { display: none; }
}
@media (max-height: 780px) {
  .work__stage { top: 72px; bottom: 72px; }
  .work__name { font-size: 1.875rem; }
  .work__meta { gap: 12px; }
}
@media (max-width: 760px) {
  .work__hud--top .work__hint { display: none; }
  .work__roll--name { display: none; }
  .work__intro { width: 78vw; }
  .work__title { font-size: min(24vw, 22vh); }
  .work__card { width: 82vw; }
  .work__name { font-size: 1.625rem; }
  .work__desc { display: none; }
  .work__go { width: 46px; height: 46px; }
  .work__outro { width: 80vw; }
}
@media (min-width: 1900px) {
  .work__card { width: min(56vw, 1100px); }
  .work__name { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work * { animation: none !important; }
}
/* reduced motion: plain sideways scroll, no pin */
.work.is-reduced { height: auto; min-height: 0; max-height: none; }
.work.is-reduced .work__stage { position: relative; top: auto; bottom: auto; height: 640px; margin: 84px 0; overflow-x: auto; }
.work.is-reduced .work__cursor,
.work.is-reduced .work__hud--bot,
.work.is-reduced .work__hint { display: none; }

/* ---------- Project CTA — pinned title → brief form (js/motion.js §7) ---------- */
.cta {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 255, 75, 0.1) 0%, rgba(217, 255, 75, 0) 62%);
  pointer-events: none;
}
.cta__title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 900px;
  max-width: 92%;
  text-align: center;
  font-size: min(6rem, 7.4vw);   /* no-JS fallback; motion.js §7 fits it to the box exactly */
  line-height: 1.04;
  letter-spacing: -0.03em;
  white-space: nowrap;           /* safety net only — the fit keeps it inside the box */
  color: var(--ink-soft);        /* muted until the shine sweeps it, then motion.js lights it to paper */
}
.cta__title .bmix--serif { font-size: 1.08em; }
.cta__word { display: inline-block; will-change: transform, opacity, filter; }
.cta__shine {
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 1) 50%, transparent 58%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.cta__shine * { color: transparent !important; }

.cta__form-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 15px);
  width: 560px;
  max-width: 90%;
  visibility: hidden;
}
.cta__form-title {
  margin-bottom: 14px;
  text-align: center;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  letter-spacing: -0.02em;
  color: var(--white);
}
.cta__dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.cta__dot { width: 24px; height: 3px; background: var(--line-strong); transition: background 0.3s ease; }
.cta__dot.is-active { background: var(--lime); }
.cta__panels { position: relative; height: 220px; }
.cta__panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; }

/* step 1: pills */
.cta__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cta__pill {
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta__pill:hover { border-color: var(--lime); color: var(--white); }
.cta__pill.is-on { background: rgba(217, 255, 75, 0.14); border-color: var(--lime); color: var(--lime); }
.cta__line { display: flex; align-items: flex-end; gap: 10px; }
.cta__chips {
  flex: 1;
  min-height: 52px;
  max-height: 84px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.cta__empty { padding: 4px; font-size: 0.9375rem; color: var(--ink-soft); }
.cta__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius-pill);
}
.cta__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.cta__chip-x:hover { background: rgba(0, 0, 0, 0.3); }

/* arrow + submit buttons */
.cta__next,
.cta__submit {
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: not-allowed;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cta__next {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.cta__submit {
  flex: 1;
  height: 48px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}
.cta__next.is-ready,
.cta__submit.is-ready { color: var(--ink); background: var(--lime); border-color: var(--lime); cursor: pointer; }
.cta__next.is-ready:hover,
.cta__submit.is-ready:hover { background: var(--white); border-color: var(--white); }

/* fields */
.cta__field {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta__field::placeholder { color: var(--ink-soft); }
.cta__field:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217, 255, 75, 0.2); }
.cta__line .cta__field { height: 52px; }
textarea.cta__field { height: 120px; resize: none; }
.cta__actions { display: flex; gap: 10px; }
.cta__back {
  align-self: flex-start;
  padding: 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cta__back:hover { color: var(--white); }
.cta__actions .cta__back { align-self: stretch; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); }

/* done */
.cta__done { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.cta__done strong { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.cta__done span { font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-height: 720px) {
  .cta__form-title { font-size: 1.5rem; margin-bottom: 8px; }
  .cta__dots { margin-bottom: 10px; }
  .cta__panels { height: 190px; }
  .cta__pill { padding: 7px 13px; }
  textarea.cta__field { height: 90px; }
}
/* Roomier form (~30% up) on desktop/tablet with enough height;
   phones and short screens keep the compact sizes above. */
@media (min-width: 761px) and (min-height: 721px) {
  .cta__form-wrap { width: 780px; }
  .cta__form-title { font-size: clamp(1.95rem, 2.9vw, 2.45rem); margin-bottom: 18px; }
  .cta__dots { gap: 10px; margin-bottom: 20px; }
  .cta__dot { width: 32px; }
  .cta__panels { height: 290px; }
  .cta__panel { gap: 16px; }
  .cta__pills { gap: 10px; }
  .cta__pill { padding: 12px 21px; font-size: 0.9375rem; }
  .cta__line { gap: 12px; }
  .cta__chips { min-height: 66px; max-height: 108px; gap: 8px; padding: 10px 14px; }
  .cta__empty { font-size: 1.125rem; }
  .cta__chip { padding: 8px 8px 8px 15px; font-size: 1.0625rem; }
  .cta__chip-x { width: 24px; height: 24px; }
  .cta__next { width: 66px; height: 66px; }
  .cta__next svg { width: 24px; height: 24px; }
  .cta__field { padding: 18px 20px; font-size: 1.25rem; }
  .cta__line .cta__field { height: 66px; }
  textarea.cta__field { height: 156px; }
  .cta__submit { height: 62px; font-size: 1.1875rem; }
  .cta__back { font-size: 0.875rem; }
  .cta__actions .cta__back { padding: 0 24px; }
  .cta__done strong { font-size: 2.25rem; }
  .cta__done span { font-size: 1.125rem; }
}
/* phones: the eight pills wrap to four rows — give step 1 the room */
@media (max-width: 760px) {
  .cta__panels { height: 262px; }
}
@media (max-width: 400px) {
  .cta__pills { gap: 6px; }
  .cta__pill { padding: 8px 11px; font-size: 0.6875rem; }
}
@media (max-width: 400px) and (max-height: 700px) {
  .cta__form-title { font-size: 1.25rem; margin-bottom: 6px; }
  .cta__dots { margin-bottom: 8px; }
  .cta__pill { padding: 6px 10px; }
  .cta__panels { height: 248px; }
}
/* 721–819px tall (e.g. 1366×768 laptops): same width, a touch shorter so it fits */
@media (min-width: 761px) and (min-height: 721px) and (max-height: 819px) {
  .cta__form-title { font-size: 2rem; margin-bottom: 12px; }
  .cta__dots { margin-bottom: 14px; }
  .cta__panels { height: 250px; }
  .cta__pill { padding: 10px 18px; }
  .cta__chips { min-height: 60px; }
  .cta__next,
  .cta__line .cta__field { height: 60px; }
  .cta__next { width: 60px; }
  textarea.cta__field { height: 124px; }
  .cta__submit { height: 56px; }
}

/* reduced motion: no pin — eyebrow title over the form, in flow */
.cta.is-reduced { height: auto; min-height: 100vh; }

/* ---------- Footer — email line, quiet columns, rising wordmark (js/motion.js §8) ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__mail {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 5.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--paper);
  white-space: nowrap;
}
.footer__mail .bmix--serif { font-size: 1.08em; }
.footer__mail::after {   /* underline draws in on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-snap);
}
.footer__mail:hover::after { transform: scaleX(1); }
.footer__totop {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.footer__totop svg { transition: transform 0.6s var(--ease-snap); }
.footer__totop:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.footer__totop:hover svg { transform: translateY(-3px); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer__col .bmix--label { display: block; margin-bottom: 1rem; }
.footer__text { max-width: 30ch; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.footer__list { display: grid; gap: 0.45rem; }
.footer__list a {
  font-size: 0.9375rem;
  color: var(--paper);
  transition: color 0.25s ease, padding-left 0.35s var(--ease-snap);
}
.footer__list a:hover { color: var(--lime); padding-left: 0.4rem; }
.footer__time {
  font-family: var(--font-accent);
  font-weight: 200;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.footer__status { margin-top: 1rem; }

/* giant wordmark, weighted like the logo (bold "Brand", light "omix"), clipped at its base */
.footer__word {
  height: 18.3vw;
  margin-top: clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  text-align: center;
}
.footer__word-in {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 23vw;
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--paper);
  will-change: transform;
}
.footer__word-in b { font-weight: 700; }

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer__top { flex-wrap: wrap; row-gap: 1.25rem; }
  .footer__mail { font-size: 8.2vw; }               /* one line, edge to edge */
  .footer__totop { margin-left: auto; }             /* own row, right edge */
  .footer__status { padding: 0.4rem 0.7rem 0.4rem 0.6rem; font-size: 0.625rem; }
  .footer__bar { flex-direction: column; gap: 0.35rem; }
}
