/* fonts.css */
/* Self-hosted webfonts. Generated by download-fonts.mjs - no Google calls at runtime. */

/* ====== Montserrat ====== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-300.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ====== IBM Plex Mono ====== */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ====== Raleway ====== */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* tokens.css */
/* Design tokens — see docs/DESIGN.md */
:root {
  /* Primitives */
  --render-blue: #0066ff;
  --accent-bright: #0077ff;
  --comp-cyan: #00e5ff;
  --marker-red: #ff2d55;
  --workspace-black: #0a0a0a;
  --layer-black: #1a1a1a;
  --spec-white: #ffffff;
  --metadata-gray: #a7a7a7;
  --keyframe-gray: #6d6d6d;
  --frame-line: rgba(255, 255, 255, 0.16);

  /* Semantic aliases */
  --bg: var(--workspace-black);
  --text: var(--spec-white);
  --text-secondary: var(--metadata-gray);
  --accent: var(--render-blue);
  --accent-alt: var(--comp-cyan);
  --impact: var(--marker-red);
  --border: var(--frame-line);
  --border-hover: rgba(0, 102, 255, 0.72);
  --cyan: var(--accent-alt);
  --muted: var(--text-secondary);
  --line: var(--border);
  --soft: var(--keyframe-gray);

  /* Surfaces */
  --panel-strong: rgba(4, 4, 4, 0.94);

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-ui: var(--radius-sm);
  --radius-ui-box: var(--radius-lg);

  /* Typography roles */
  --type-display-size: clamp(1.75rem, 4.2vw, 3.5rem);
  --type-display-weight: 800;
  --type-display-leading: 1.02;
  --type-display-tracking: -0.022em;

  --type-headline-weight: 800;
  --type-headline-leading: 1.12;
  --type-headline-tracking: -0.02em;

  --type-body-size: clamp(0.98rem, 1.3vw, 1.1rem);
  --type-body-weight: 400;
  --type-body-leading: 1.7;
  --type-body-tracking: 0.005em;

  --type-label-size: 0.76rem;
  --type-label-weight: 600;
  --type-label-leading: 1;
  --type-label-tracking: 0.06em;

  --type-title-weight: 700;
  --type-eyebrow-tracking: 0.08em;

  /* Components */
  --btn-height: 46px;
  --btn-padding-x: 18px;
  --btn-ghost-bg: rgba(0, 0, 0, 0.18);
  --btn-ghost-bg-hover: rgba(0, 80, 180, 0.06);
  --lang-switch-height: 36px;
  --lang-switch-padding: 2px;
  --lang-switch-gap: 2px;
  --lang-switch-border: var(--border);
  --lang-switch-border-hover: color-mix(in srgb, var(--text) 24%, transparent);
  --lang-switch-indicator-bg: rgba(255, 255, 255, 0.08);

  --btn-primary-border: color-mix(in srgb, var(--accent-alt) 20%, transparent);
  --btn-primary-bg: linear-gradient(90deg, var(--accent), #0052cc);
  --btn-primary-shadow: 0 0 28px rgba(0, 102, 255, 0.32);
  --btn-primary-bg-hover: linear-gradient(90deg, #0077ff, var(--accent-alt));
  --btn-primary-shadow-hover: 0 0 38px rgba(0, 102, 255, 0.45);

  /* Typography stacks */
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Motion */
  --ease-flow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: var(--ease-flow);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-morph-height: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-morph-height: 700ms;

  --duration-ui-fast: 220ms;
  --duration-ui-shadow: 280ms;
  --duration-ui-transform: 320ms;
  --duration-ui-card: 260ms;
  --duration-ui-cta: 240ms;
  --duration-case-border: 420ms;
  --count-up-duration: 3200ms;
  --lift-hover-sm: -2px;

  /* Scrollbar */
  --scrollbar-size: 6px;
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: var(--accent);
  --scrollbar-thumb-hover: var(--accent-bright);
  --scrollbar-glow: 0 0 14px rgba(0, 102, 255, 0.55);
  --scrollbar-glow-hover: 0 0 18px rgba(0, 102, 255, 0.45);
  --scrollbar-track-border: color-mix(in srgb, var(--spec-white) 6%, transparent);
  --scrollbar-thumb-border: color-mix(in srgb, var(--accent) 35%, transparent);

  /* Public header */
  --touch-min: 44px;
  --public-header-height-desktop: 74px;
  --public-header-padding-y: 14px;
  --public-header-padding-x: clamp(32px, 6vw, 88px);
  --public-header-padding-mobile-y: 10px;
  --public-header-padding-mobile-x: 16px;
  --public-header-padding-mobile-x-small: 12px;
  /* Mobile block = vertical padding + 44px control row (landing menu-toggle) */
  --public-header-height-mobile: calc(var(--public-header-padding-mobile-y) * 2 + var(--touch-min));
  --public-header-bg: rgba(5, 5, 5, 0.72);
  --public-header-bg-mobile: rgba(5, 5, 5, 0.96);

  /* Safe area (viewport-fit=cover) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Brand lockup */
  --brand-gap: 12px;
  --brand-gap-mobile: 10px;
  --brand-logo-size: 42px;
  --brand-logo-size-mobile: 38px;
  --brand-name-width: 132px;
  --brand-name-width-mobile: min(108px, 32vw);
  --brand-name-width-small: min(96px, 28vw);

  /* Layout */
  --content-max-width: 1120px;

  /* Breakpoints (px) — 768/1024 synced with mobile-perf.js */
  --bp-mobile: 768;
  --bp-nav-compact: 860;
  --bp-nav-tablet: 1024; /* header drawer nav through this width */
  --bp-desktop-narrow: 1080;

  /* Forms / questionnaire */
  --font-display: "Raleway", var(--font-sans);
  --text-placeholder: color-mix(in srgb, var(--metadata-gray) 42%, transparent);
  --surface-input: color-mix(in srgb, var(--workspace-black) 90%, transparent);
  --surface-choice: color-mix(in srgb, var(--workspace-black) 82%, transparent);
  --surface-question: color-mix(in srgb, var(--panel-strong) 77%, transparent);
  --surface-muted: color-mix(in srgb, var(--public-header-bg) 100%, var(--workspace-black) 6%);

  --shadow-blue: 0 0 20px color-mix(in srgb, var(--accent) 80%, transparent);
  --shadow-brand-logo: 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow-choice-selected:
    0 0 24px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--spec-white) 6%, transparent);
  --shadow-input-focus: 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent);
  --shadow-intro-inset: inset 0 1px 0 color-mix(in srgb, var(--spec-white) 4%, transparent);

  --border-white-soft: color-mix(in srgb, var(--spec-white) 20%, transparent);
  --border-impact-soft: color-mix(in srgb, var(--impact) 42%, transparent);
  --border-impact-strong: color-mix(in srgb, var(--impact) 72%, transparent);
  --shadow-impact-ring: 0 0 0 1px color-mix(in srgb, var(--impact) 35%, transparent);
  --fill-white-hover: color-mix(in srgb, var(--spec-white) 4%, transparent);
  --fill-accent-hover: color-mix(in srgb, var(--accent) 7%, transparent);
  --fill-intro-glow: color-mix(in srgb, var(--accent) 18%, transparent);

  --selection-bg: color-mix(in srgb, var(--accent) 30%, transparent);

  --bg-questionnaire-body:
    radial-gradient(circle at 50% 100%, var(--fill-intro-glow), transparent 28rem),
    var(--bg);
  --bg-questionnaire-overlay:
    linear-gradient(90deg, transparent 0, var(--fill-intro-glow) 50%, transparent 100%) 50% 100% /
      22rem 1px no-repeat,
    radial-gradient(
      circle at 50% 100%,
      color-mix(in srgb, var(--accent) 35%, transparent),
      transparent 9rem
    );
  --bg-question-panel:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    var(--surface-question);
  --bg-intro-card:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
    radial-gradient(
      circle at 100% 0%,
      color-mix(in srgb, var(--accent-alt) 8%, transparent),
      transparent 60%
    ),
    var(--surface-muted);
  --bg-choice-selected: linear-gradient(
    90deg,
    var(--fill-intro-glow),
    color-mix(in srgb, var(--accent-alt) 4%, transparent)
  );
  --bg-success-page:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--accent) 20%, transparent),
      transparent 24rem
    ),
    var(--bg);

  /* Case study — typography */
  --type-case-section-size: clamp(1.5rem, 3vw, 2.4rem);
  --type-case-step-size: clamp(1.2rem, 2vw, 1.6rem);
  --type-case-performance-metric-size: clamp(3rem, 9vw, 5.5rem);

  /* Case study — text on dark surfaces */
  --text-on-dark-82: color-mix(in srgb, var(--text) 82%, transparent);
  --text-on-dark-72: color-mix(in srgb, var(--text) 72%, transparent);
  --text-on-dark-62: color-mix(in srgb, var(--text) 62%, transparent);
  --text-on-dark-55: color-mix(in srgb, var(--text) 55%, transparent);

  /* Case study — borders on dark */
  --border-white-10: color-mix(in srgb, var(--text) 10%, transparent);
  --border-white-12: color-mix(in srgb, var(--text) 12%, transparent);
  --border-white-14: color-mix(in srgb, var(--text) 14%, transparent);

  /* Case study — surfaces */
  --surface-case-deep: color-mix(in srgb, var(--workspace-black) 50%, black);
  --surface-case-panel: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  --surface-case-card-soft: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  --surface-case-inset: color-mix(in srgb, var(--workspace-black) 35%, transparent);
  --bg-case-step-figure:
    radial-gradient(
      120% 90% at 88% 12%,
      color-mix(in srgb, var(--accent-alt) 9%, transparent),
      transparent 58%
    ),
    var(--surface-case-inset);
  --bg-case-highlight:
    radial-gradient(ellipse 55% 65% at 0% 30%, var(--fill-accent-5), transparent 72%),
    color-mix(in srgb, var(--text) 1.5%, transparent);

  /* Case study — accent fills & borders */
  --border-accent-55: color-mix(in srgb, var(--accent) 55%, transparent);
  --border-accent-alt-42: color-mix(in srgb, var(--accent-alt) 42%, transparent);
  --fill-accent-8: color-mix(in srgb, var(--accent) 8%, transparent);
  --fill-accent-5: color-mix(in srgb, var(--accent) 5%, transparent);
  --fill-accent-alt-12: color-mix(in srgb, var(--accent-alt) 12%, transparent);

  /* Case study — shadows */
  --shadow-case-related-hover: 0 20px 48px color-mix(in srgb, var(--workspace-black) 40%, transparent);

  /* Scroll/load reveals */
  --reveal-duration: 1300ms;
  --reveal-distance: 46px;
  --reveal-scale: 0.975;
  --reveal-stagger: 220ms;

  /* GSAP entrance — read by gsap-bounce.js / page-entry-motion.js (seconds where noted) */
  --enter-amplitude: 22;
  --enter-frequency: 1.15;
  --enter-decay: 5;
  --enter-start-y: 52;
  --enter-text-start-y: 22;
  --enter-duration: 1.5;
  --enter-text-duration: 1.1;
  --enter-stagger: 0.08;
}


/* scrollbar.css */
/* Unified scrollbar — solid brand blue (homepage style). */

/* Firefox: each scrollport needs its own rule (nested scrollers ignore html). */
.app,
body.case-study-body > .case-study-root,
.vp-controls-extra .vp-menu-list {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--scrollbar-track);
}

/* WebKit / Chromium */
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid var(--scrollbar-track-border);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 1px solid var(--scrollbar-thumb-border);
  box-shadow: var(--scrollbar-glow);
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  box-shadow: var(--scrollbar-glow-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--bg);
}


/* reveal.css */
/* Shared scroll/load reveal keyframes — values from :root --reveal-* in tokens.css */
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance), 0) scale(var(--reveal-scale));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes revealIn {
    from,
    to {
      opacity: 1;
      transform: none;
    }
  }
}


/* motion.css */
.enter-container-fade:not(.is-revealed) {
  opacity: 0;
}

.enter-container-fade.is-revealed {
  opacity: 1;
  transition: opacity var(--enter-text-duration, 1.1s) var(--ease-flow);
}

@media (prefers-reduced-motion: reduce) {
  .enter-container-fade {
    transition: none;
  }
}

/* Shared GSAP enter-item lifecycle (homepage, case study, questionnaire) */
/* Homepage FOUC guard: critical rules inline in index.html before bundles load */
body.case-motion-gsap .case-enter-item,
body.questionnaire-motion-gsap .questionnaire-enter-item {
  transform: none;
  backface-visibility: hidden;
}

body.case-motion-gsap .case-enter-item.is-gsap-enter-done,
body.questionnaire-motion-gsap .questionnaire-enter-item.is-gsap-enter-done {
  opacity: 1;
  transform: none;
  visibility: inherit;
  will-change: auto;
}

body.case-motion-gsap .case-enter-item:not(.is-gsap-enter-done),
body.questionnaire-motion-gsap .questionnaire-enter-item:not(.is-gsap-enter-done) {
  opacity: 0;
  visibility: hidden;
}

body.case-motion-gsap .case-enter-item.is-revealed:not(.is-gsap-enter-done),
body.questionnaire-motion-gsap .questionnaire-enter-item.is-revealed:not(.is-gsap-enter-done) {
  will-change: transform, opacity;
}

body.case-motion-gsap .site-header .header-enter-item:not(.is-gsap-enter-done),
body.case-study-body .case-study-header .header-enter-item:not(.is-gsap-enter-done) {
  opacity: 0;
  visibility: hidden;
}

body.case-motion-gsap .site-header .header-enter-item.is-gsap-enter-done,
body.case-motion-gsap .case-study-header .header-enter-item.is-gsap-enter-done {
  opacity: 1;
  visibility: inherit;
}

body.case-motion-gsap .primary-btn,
body.case-motion-gsap .ghost-btn,
body.case-motion-gsap .nav-cta,
body.case-motion-gsap .contact-cta-btn {
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 280ms var(--ease-flow);
}

body.case-motion-gsap .work-card {
  transition: border-color 220ms ease;
}

body.case-motion-gsap .primary-btn:hover,
body.case-motion-gsap .ghost-btn:hover,
body.case-motion-gsap .nav-cta:hover,
body.case-motion-gsap .contact-cta-btn:hover,
body.case-motion-gsap .work-card:hover,
body.case-motion-gsap .menu-toggle:hover,
body.case-motion-gsap .primary-btn:active,
body.case-motion-gsap .ghost-btn:active,
body.case-motion-gsap .nav-cta:active,
body.case-motion-gsap .contact-cta-btn:active,
body.case-motion-gsap .work-card:active,
body.case-motion-gsap .menu-toggle:active {
  transform: none;
}

@keyframes compositedSweep {
  0%, 100% {
    transform: translate3d(-35%, 0, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(35%, 0, 0);
    opacity: 0.9;
  }
}

/* Promote inline video shells to their own compositor layer during scroll. */
.case-hero-media--hls-host .vp-root,
.case-hero-media video,
.case-bts-media .case-bts-preview,
.case-tool-media .case-bts-preview {
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body::before,
  .noise,
  .hero-fallback::before,
  .hero-fallback::after,
  .hero::before,
  .contact-cta::before,
  .section.hero .metrics span::before,
  .section.hero .metrics span::after {
    animation: none !important;
  }

  body.case-motion-gsap .case-enter-item,
  body.questionnaire-motion-gsap .questionnaire-enter-item {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto;
  }

  body.case-motion-gsap .site-header .header-enter-item,
  body.case-study-body .case-study-header .header-enter-item {
    opacity: 1 !important;
    visibility: visible !important;
  }
}


/* questionnaire.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-questionnaire-body);
    color: var(--text);
    height: 100%;
    min-height: 100%;
    line-height: 1.65;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    touch-action: manipulation;
}

button,
a,
input,
select,
textarea,
summary,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-appearance: none;
    appearance: none;
}

:focus,
:focus-visible {
    outline: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--bg-questionnaire-overlay);
    opacity: 0.9;
    z-index: 0;
}

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

.app {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    touch-action: pan-y;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    width: 100%;
    background: var(--public-header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 769px) {
    .header {
        min-height: var(--public-header-height-desktop, 74px);
        height: var(--public-header-height-desktop, 74px);
        padding: var(--public-header-padding-y) var(--public-header-padding-x);
    }

    .brand {
        min-height: var(--btn-height);
    }

    .progress-group {
        min-height: var(--btn-height);
    }
}

.header-inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: var(--brand-gap);
    grid-column: 1;
    justify-self: start;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    width: var(--brand-logo-size);
    height: var(--brand-logo-size);
    background: var(--bg);
    border-radius: 0;
    border: 1px solid var(--border-white-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand-logo);
    flex-shrink: 0;
    overflow: hidden;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-name {
    width: var(--brand-name-width);
    height: auto;
    display: block;
    flex-shrink: 0;
    align-self: center;
    object-fit: contain;
    object-position: left center;
}

.is-embedded .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.is-embedded .brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

.is-embedded .progress-group {
    grid-column: 3;
    justify-self: end;
}

.is-embedded .main {
    padding-top: 0.75rem;
}

.progress-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-column: 3;
    justify-self: end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), visibility 0s linear 0.7s;
}
.progress-group.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), visibility 0s;
}
.progress-info {
    min-width: 9rem;
    text-align: right;
}
.progress-section {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 2px;
}
.progress-label {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.progress-track {
    width: 6.25rem;
    height: 2px;
    background: var(--border);
    border-radius: 0;
    overflow: hidden;
}
.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 0;
    box-shadow: var(--shadow-blue);
    transform: scaleX(var(--progress-scale, 0));
    transform-origin: left center;
    transition: transform 0.7s var(--ease-out-expo);
}
@media (min-width: 640px) {
    .progress-section {
        letter-spacing: var(--type-eyebrow-tracking);
    }
    .progress-track {
        width: 8rem;
    }
}
@media (max-width: 420px) {
    .brand {
        gap: var(--brand-gap-mobile);
    }
    .brand-logo {
        width: var(--brand-logo-size-mobile);
        height: var(--brand-logo-size-mobile);
    }
    .brand-name {
        width: var(--brand-name-width-small);
        height: auto;
    }
    .progress-group {
        gap: 0.55rem;
    }
    .progress-info {
        min-width: 6.4rem;
    }
    .progress-section {
        font-size: 0.52rem;
        letter-spacing: 0.02em;
    }
    .progress-label {
        font-size: 0.62rem;
    }
    .progress-track {
        width: 4.5rem;
    }
}

.main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .main {
        padding: 1.25rem 2rem 2.5rem;
    }
}
@media (min-width: 1024px) {
    .main {
        padding: 1.5rem 6rem 3rem;
    }
}

.question-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    background: var(--bg-question-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-ui-box);
    position: relative;
    overflow: hidden;
}
.question-wrapper.is-resizing {
    transition: height var(--duration-morph-height) var(--ease-morph-height) !important;
}
.question-wrapper.is-resizing .question-stage {
    pointer-events: none;
}
.question-wrapper.is-resizing .section-badge,
.question-wrapper.is-resizing .question-title,
.question-wrapper.is-resizing .question-helper,
.question-wrapper.is-resizing .question-body,
.question-wrapper.is-resizing .choices-grid,
.question-wrapper.is-resizing .fields-wrap,
.question-wrapper.is-resizing .textarea-wrap,
.question-wrapper.is-resizing .intro-card,
.question-wrapper.is-resizing .nav-footer,
.question-wrapper--stepped .section-badge,
.question-wrapper--stepped .question-title,
.question-wrapper--stepped .question-helper,
.question-wrapper--stepped .question-body,
.question-wrapper--stepped .choices-grid,
.question-wrapper--stepped .fields-wrap,
.question-wrapper--stepped .textarea-wrap,
.question-wrapper--stepped .intro-card,
.question-wrapper--stepped .nav-footer {
    animation: none !important;
}
.nav-footer.is-footer-sliding {
    will-change: transform;
    transition: transform var(--duration-morph-height) var(--ease-morph-height);
}
.question-wrapper.exiting {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
}
.question-wrapper.is-nav-forward.exiting {
    transform: translateX(-28px);
}
.question-wrapper.is-nav-backward.exiting {
    transform: translateX(28px);
}
.question-wrapper.exiting .question-stage {
    pointer-events: none;
}
.question-wrapper.entering {
    opacity: 0;
}
.question-wrapper.is-nav-forward.entering {
    transform: translateX(28px);
}
.question-wrapper.is-nav-backward.entering {
    transform: translateX(-28px);
}
.question-wrapper.visible {
    opacity: 1;
    transform: none;
}
.question-wrapper.visible:not(.is-resizing) {
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* GSAP enter — questionnaire-motion.js + gsap-bounce.js */
.questionnaire-enter-item {
    opacity: 0;
    animation: none !important;
}

body.questionnaire-motion-gsap .choices-grid,
body.questionnaire-motion-gsap .nav-footer {
    animation: none !important;
}

body.questionnaire-motion-gsap .btn-next:not(:disabled),
body.questionnaire-motion-gsap .btn-back:not(:disabled),
body.questionnaire-motion-gsap .choice-btn,
body.questionnaire-motion-gsap .upload-file-remove:not(:disabled),
body.questionnaire-motion-gsap .upload-dropzone,
body.questionnaire-motion-gsap .success-cta {
    transition:
        border-color 0.25s var(--ease-smooth),
        background 0.25s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth);
}

body.questionnaire-motion-gsap .btn-next:not(:disabled):hover,
body.questionnaire-motion-gsap .btn-back:not(:disabled):hover,
body.questionnaire-motion-gsap .choice-btn:hover,
body.questionnaire-motion-gsap .upload-file-remove:not(:disabled):hover,
body.questionnaire-motion-gsap .upload-dropzone:hover,
body.questionnaire-motion-gsap .success-cta:hover,
body.questionnaire-motion-gsap .btn-next:not(:disabled):active,
body.questionnaire-motion-gsap .btn-back:not(:disabled):active,
body.questionnaire-motion-gsap .choice-btn:active,
body.questionnaire-motion-gsap .upload-file-remove:not(:disabled):active,
body.questionnaire-motion-gsap .upload-dropzone:active,
body.questionnaire-motion-gsap .success-cta:active {
    transform: none;
}

body.questionnaire-motion-gsap .section-badge,
body.questionnaire-motion-gsap .question-title,
body.questionnaire-motion-gsap .question-helper,
body.questionnaire-motion-gsap .choices-grid,
body.questionnaire-motion-gsap .textarea-wrap,
body.questionnaire-motion-gsap .fields-wrap,
body.questionnaire-motion-gsap .intro-card,
body.questionnaire-motion-gsap .nav-footer {
    animation: none;
}

body.questionnaire-motion-gsap #app .main.is-page-enter {
    animation: none !important;
}

.section-badge {
    display: inline-block;
    padding: 0 0 0.45rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--type-eyebrow-tracking);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.question-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
    line-height: var(--type-display-leading);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .question-title {
        font-size: 3.25rem;
    }
}
@media (min-width: 1024px) {
    .question-title {
        font-size: 3.8rem;
    }
}
.question-helper {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.question-body {
    margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .question-helper {
        font-size: 1.08rem;
    }
}

.choices-grid {
    display: grid;
    gap: 0.65rem;
}
.choice-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 3.25rem 1rem 1.25rem;
    background: var(--surface-choice);
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.25s var(--ease-smooth),
        background 0.25s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth),
        transform 0.25s var(--ease-smooth);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.choice-btn:hover {
    border-color: var(--border-hover);
    background: var(--fill-accent-hover);
    transform: translateY(-1px);
}
.choice-btn.selected {
    background: var(--bg-choice-selected);
    border-color: var(--accent);
    box-shadow: var(--shadow-choice-selected);
}
.choices-grid.has-validation-error .choice-btn {
    border-color: var(--border-impact-soft);
}
.choice-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
.choice-num {
    min-width: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-right: 0.85rem;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.72;
    transition:
        color 0.25s var(--ease-smooth),
        opacity 0.25s var(--ease-smooth);
}
.choice-btn:hover .choice-num {
    color: var(--accent-alt);
    opacity: 1;
}
.choice-btn.selected .choice-num {
    color: var(--text);
    opacity: 1;
}
.choice-arrow {
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s var(--ease-out-expo);
    color: var(--accent-alt);
    display: flex;
    align-items: center;
}
.choice-btn.selected .choice-arrow {
    opacity: 1;
    transform: translateX(0);
}

.custom-choice-field {
    display: none;
    margin-top: 0.9rem;
}
.custom-choice-field.visible {
    display: block;
}
.textarea-input {
    width: 100%;
    min-height: 140px;
    padding: 1.25rem 1.35rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    color: var(--text);
    font-size: 1rem;
    font-weight: 300;
    font-family: var(--font-sans);
    resize: vertical;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    line-height: 1.6;
}
.textarea-input::placeholder {
    color: var(--text-placeholder);
}
.textarea-input:focus,
.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-input-focus);
}

.refs-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}
.refs-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.refs-section-label {
    margin: 0;
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    color: var(--accent);
    padding-left: 0.25rem;
}
.refs-upload-hint {
    margin: 0;
    font-size: var(--type-body-size);
    line-height: var(--type-body-leading);
    color: var(--text-secondary);
}
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 148px;
    padding: 1.25rem 1.35rem;
    border: 1px dashed var(--border-white-soft);
    border-radius: var(--radius-ui);
    background: var(--surface-input);
    color: var(--text);
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color var(--duration-ui-fast) var(--ease-smooth),
        background var(--duration-ui-fast) var(--ease-smooth),
        box-shadow var(--duration-ui-shadow) var(--ease-smooth),
        transform var(--duration-ui-fast) var(--ease-smooth);
}
.upload-dropzone:hover {
    border-color: var(--border-hover);
    background: var(--fill-accent-hover);
    transform: translateY(var(--lift-hover-sm));
}
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
    border-style: solid;
    border-color: var(--accent);
    background: var(--fill-accent-hover);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-input-focus);
}
.upload-drop-label {
    font-size: var(--type-body-size);
    font-weight: 500;
    line-height: var(--type-body-leading);
    text-align: center;
}
.upload-drop-action {
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-eyebrow-tracking);
    color: var(--accent);
}
.upload-file-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    background: var(--surface-choice);
    transition:
        border-color var(--duration-ui-fast) var(--ease-smooth),
        background var(--duration-ui-fast) var(--ease-smooth);
}
.upload-file-item.is-ready {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.upload-file-item.is-error {
    border-color: var(--border-impact-soft);
}
.upload-file-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.upload-file-name {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upload-file-size,
.upload-file-status {
    font-size: var(--type-label-size);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.upload-file-remove {
    flex-shrink: 0;
    min-height: var(--touch-min);
    padding: 0 0.85rem;
    border-radius: var(--radius-ui);
    border: 1px solid var(--border);
    background: var(--btn-ghost-bg);
    color: var(--text-secondary);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color var(--duration-ui-fast) var(--ease-smooth),
        background var(--duration-ui-fast) var(--ease-smooth),
        color var(--duration-ui-fast) var(--ease-smooth);
}
.upload-file-remove:hover,
.upload-file-remove:focus-visible {
    border-color: var(--border-hover);
    background: var(--btn-ghost-bg-hover);
    color: var(--text);
    outline: none;
}
.upload-file-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.upload-file-item.is-ready .upload-file-status {
    color: var(--accent);
}
.upload-file-item.is-error .upload-file-status {
    color: var(--impact);
}
.refs-upload-summary {
    margin: 0.35rem 0 0;
    font-size: var(--type-label-size);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--accent);
}
.refs-upload-summary[hidden] {
    display: none;
}

.contact-upload-progress {
    margin-top: 1.1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    background: var(--surface-choice);
}
.contact-upload-progress.is-complete {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: var(--shadow-choice-selected);
}
.contact-upload-progress-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.contact-upload-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.contact-upload-ring-svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}
.contact-upload-ring-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}
.contact-upload-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset var(--duration-ui-shadow) var(--ease-smooth);
}
.contact-upload-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text);
}
.contact-upload-copy {
    min-width: 0;
}
.contact-upload-title {
    margin: 0;
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    color: var(--accent);
}
.contact-upload-label {
    margin: 0.2rem 0 0;
    font-size: var(--type-body-size);
    line-height: var(--type-body-leading);
    color: var(--text-secondary);
}

.field-input.is-invalid {
    border-color: var(--border-impact-strong);
    box-shadow: var(--shadow-impact-ring);
}

.fields-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.field-label {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    color: var(--accent);
    padding-left: 0.25rem;
}
.field-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.field-input::placeholder {
    color: var(--text-placeholder);
}

.intro-card {
    background: var(--bg-intro-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.intro-card::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: var(--fill-intro-glow);
    border-radius: 50%;
    filter: blur(54px);
}
.intro-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    height: calc(1.05rem * 1.25);
}
.intro-icon svg {
    display: block;
}
.intro-card h3,
.intro-card .intro-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}
.intro-card p {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}

.error-msg {
    color: var(--impact);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.25rem;
    margin-top: 0.9rem;
    animation: errorFadeIn 0.28s ease both;
}
.error-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--impact);
    flex-shrink: 0;
}

.nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}
.error-msg + .nav-footer {
    margin-top: 1rem;
    padding-top: 1.25rem;
}
.turnstile-wrap {
    min-height: 65px;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-ui);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.btn-back:hover,
.btn-back:focus-visible {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--fill-white-hover);
}
.btn-back:disabled {
    opacity: 0;
    pointer-events: none;
}
.btn-back:active {
    transform: scale(0.95);
}

.is-embedded .btn-close-embedded,
.btn-close-standalone {
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

#app .main.is-page-enter {
    animation: revealIn var(--reveal-duration) var(--ease-flow) both;
}

.nav-footer--intro-close {
    justify-content: space-between;
}

.btn-next {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-ui);
    border: 1px solid var(--btn-primary-border);
    background: var(--btn-primary-bg);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--btn-primary-shadow);
    outline: none;
    white-space: nowrap;
}
.btn-next:hover {
    background: var(--btn-primary-bg-hover);
    box-shadow: var(--btn-primary-shadow-hover);
    transform: translateY(-1px);
}
.btn-next:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}
.btn-next:disabled {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}
.loading-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: loadingPulse 0.9s ease-in-out infinite;
}
.loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}
.loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.success-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding:
        2rem
        calc(1.25rem + env(safe-area-inset-right, 0px))
        calc(2rem + env(safe-area-inset-bottom, 0px))
        calc(1.25rem + env(safe-area-inset-left, 0px));
    background: var(--bg-success-page);
}

.success-shell {
    position: relative;
    width: min(100%, 34rem);
}

.success-inner {
    position: relative;
    padding: clamp(2rem, 5vw, 2.85rem) clamp(1.35rem, 4vw, 2.35rem);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: var(--radius-ui-box);
    background: var(--bg-intro-card);
    box-shadow: none;
    text-align: center;
}

.success-inner > * {
    position: relative;
    z-index: 1;
    animation: successReveal 0.78s var(--ease-out-expo) both;
}

.success-icon-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.35rem;
    animation-delay: 0.04s;
}

.success-icon {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(145deg, var(--accent), var(--accent-alt));
    border-radius: var(--radius-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    animation: popIn 0.72s var(--ease-out-expo) both;
}

.success-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--type-eyebrow-tracking);
    color: var(--accent);
    animation-delay: 0.1s;
}

.success-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 5.2vw, 2.65rem);
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
    line-height: 1.06;
    text-transform: uppercase;
    text-wrap: balance;
    margin-bottom: 1rem;
    animation-delay: 0.16s;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 26rem;
    margin: 0 auto 1.15rem;
    text-wrap: pretty;
    animation-delay: 0.24s;
}

.success-name {
    font-weight: 600;
    color: var(--text);
}

.success-personal {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
    max-width: 26rem;
    margin: 0 auto 0.75rem;
    text-wrap: pretty;
    animation-delay: 0.28s;
}

.success-contact {
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    max-width: 26rem;
    margin: 0 auto 1rem;
    text-wrap: pretty;
    animation-delay: 0.32s;
}

.success-contact-value {
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.92em;
    letter-spacing: 0.02em;
}

.success-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 auto 1.35rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--type-label-tracking);
    color: color-mix(in srgb, var(--accent) 82%, var(--text));
    animation-delay: 0.36s;
}

.success-channel::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.success-actions {
    padding-top: 1rem;
    animation-delay: 0.4s;
}

.success-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: var(--btn-height);
    padding: 0.9rem 2rem;
    text-decoration: none;
    box-shadow: none;
}

.success-container .btn-next:hover,
.success-container .btn-next:focus-visible {
    box-shadow: none;
}

@keyframes successReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}
@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes loadingPulse {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    body.questionnaire-motion-gsap .questionnaire-enter-item,
    .questionnaire-enter-item {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto;
    }

    .success-icon {
        animation: popIn 0.01ms var(--ease-out-expo) both !important;
    }
}

@media (hover: none) {
    .choice-btn:hover,
    .btn-next:hover,
    .btn-back:hover:not(:disabled),
    .upload-file-remove:not(:disabled):hover,
    .upload-dropzone:hover,
    .success-cta:hover {
        transform: none;
    }
}

/* ── Mobile brief (≤768px) ── */
@media (max-width: 768px) {
    .app {
        position: relative;
        inset: auto;
        height: 100dvh;
        max-height: 100dvh;
    }

    .main {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* Match landing .site-header mobile shell (tokens.css + mobile.css) */
    .header {
        min-height: calc(var(--public-header-height-mobile, 56px) + var(--safe-top));
        height: auto;
        background: var(--public-header-bg-mobile);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding:
            calc(var(--public-header-padding-mobile-y) + var(--safe-top))
            calc(var(--public-header-padding-mobile-x) + var(--safe-right))
            var(--public-header-padding-mobile-y)
            calc(var(--public-header-padding-mobile-x) + var(--safe-left));
    }

    .header-inner {
        min-height: var(--touch-min);
        height: auto;
        align-items: center;
        gap: 12px;
    }

    .brand {
        gap: var(--brand-gap-mobile);
        min-width: 0;
        min-height: var(--touch-min);
        align-items: center;
    }

    .brand-logo {
        width: var(--brand-logo-size-mobile);
        height: var(--brand-logo-size-mobile);
    }

    .brand-name {
        width: var(--brand-name-width-mobile);
    }

    .progress-group {
        min-height: var(--touch-min);
        max-height: var(--touch-min);
        align-items: center;
        gap: 0.5rem;
    }

    .progress-info {
        min-width: 0;
        text-align: right;
    }

    .progress-section {
        margin-bottom: 0;
        font-size: 0.52rem;
        line-height: 1.1;
    }

    .progress-label {
        font-size: 0.58rem;
        line-height: 1.1;
    }

    .progress-track {
        width: 4.25rem;
    }

    .is-embedded .main {
        padding-top: 0.65rem;
    }

    .main {
        padding:
            0.5rem
            calc(0.75rem + env(safe-area-inset-right, 0px))
            calc(0.75rem + env(safe-area-inset-bottom, 0px))
            calc(0.75rem + env(safe-area-inset-left, 0px));
    }

    .question-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 1.1rem 1rem 0.7rem;
        border-radius: var(--radius-ui-box);
    }

    .question-body {
        margin-top: 1rem;
    }

    .nav-footer {
        margin-top: 0.85rem;
        padding-top: 0.75rem;
        padding-bottom: 0;
    }

    .question-wrapper:has(.intro-card) .nav-footer {
        margin-top: 0.7rem;
        padding-top: 0.65rem;
    }

    .section-badge {
        margin-bottom: 1rem;
        font-size: 0.62rem;
    }

    .question-title {
        font-size: clamp(1.45rem, 7.2vw, 2rem);
        line-height: 1.05;
        margin-bottom: 0.75rem;
        overflow-wrap: break-word;
    }

    .question-helper {
        max-width: none;
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .intro-card {
        padding: 1.35rem 1.2rem;
        background: var(--bg-intro-card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-intro-inset);
    }

    .intro-card::after {
        width: 7rem;
        height: 7rem;
        filter: blur(48px);
    }

    .intro-card-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .intro-icon {
        height: calc(1rem * 1.25);
    }

    .intro-card h3,
    .intro-card .intro-card-title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .intro-card p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .choice-btn {
        min-height: var(--touch-min);
        padding: 0.95rem 2.75rem 0.95rem 1rem;
        font-size: 0.9rem;
    }

    .choice-arrow {
        right: 1rem;
    }

    .textarea-input,
    .field-input {
        min-height: var(--touch-min);
        font-size: 16px;
    }

    .nav-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .error-msg + .nav-footer {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
    }

    .btn-back:disabled {
        display: none;
    }

    .nav-footer--intro-close {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-footer--intro-close .btn-close-embedded,
    .nav-footer--intro-close .btn-next {
        width: 100%;
        min-height: var(--touch-min);
        justify-content: center;
    }

    .btn-back:not(:disabled),
    .btn-next {
        width: 100%;
        min-height: var(--touch-min);
        justify-content: center;
    }

    .btn-next {
        padding: 0.95rem 1.25rem;
        font-size: 0.76rem;
    }

    .turnstile-wrap {
        margin-top: 1rem;
        transform: scale(0.92);
        transform-origin: center top;
    }

    .success-container {
        padding:
            1.25rem
            calc(0.85rem + env(safe-area-inset-right, 0px))
            calc(1.25rem + env(safe-area-inset-bottom, 0px))
            calc(0.85rem + env(safe-area-inset-left, 0px));
    }

    .success-inner {
        padding: 1.65rem 1.15rem 1.5rem;
    }

    .success-icon {
        width: 4rem;
        height: 4rem;
    }

    .success-cta {
        width: 100%;
        min-height: var(--touch-min);
    }

    .success-title {
        font-size: clamp(1.55rem, 7.5vw, 2.1rem);
    }

    .success-text {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding-left: calc(var(--public-header-padding-mobile-x-small) + var(--safe-left));
        padding-right: calc(var(--public-header-padding-mobile-x-small) + var(--safe-right));
    }

    .question-title {
        font-size: clamp(1.3rem, 8.5vw, 1.75rem);
    }

    .brand-name {
        width: var(--brand-name-width-small);
    }
}