/* Grafyo Studio · dark-first, built like a timeline: the whole page has a timecode. */
  :root {
    --ink: #0F1115; --ink-2: #0B0D12; --surface: #171A20; --surface-2: #1E222A; --line: #272B34;
    --line-strong: #636A7A; /* borders of interactive controls: 3.5:1 on ink (WCAG 1.4.11) */
    --text: #E9EBEF; --muted: #9097A6; --accent: #2F5BFF; --accent-soft: #6F8BFF; --tape: #FFE15C; --tape-ink: #111318;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --gutter: max(16px, env(safe-area-inset-left, 0px));
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
  img, video, canvas { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
  p { margin: 0; }
  :focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
  .wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-soft); }
  .mark-hl { background: var(--tape); color: var(--tape-ink); padding: 0 0.12em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

  /* split words (JS wraps them) */
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .wi { display: inline-block; will-change: transform; }

  .btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; will-change: transform; }
  .btn:hover { background: #2549E6; } /* darker on hover keeps white text at 6.6:1 */
  .btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
  .btn.ghost:hover { border-color: var(--text); background: transparent; }

  /* accessibility helpers */
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--tape); color: var(--tape-ink); font-weight: 600; padding: 12px 18px; border-radius: 10px; text-decoration: none; transition: top 0.2s; }
  .skip:focus { top: 12px; }
  .motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-family: var(--mono); font-size: 12px; cursor: pointer; }
  .motion-toggle:hover { border-color: var(--text); }
  .motion-toggle .ic { width: 10px; height: 10px; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
  .motion-toggle[aria-pressed="true"] .ic { border: 0; width: 0; height: 0; border-left: 9px solid var(--tape); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  .btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tape); }

  /* Header */
  header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-block: 16px; transition: background 0.3s, backdrop-filter 0.3s; }
  header.scrolled { background: rgba(15, 17, 21, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .who strong { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
  .mark { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; padding-bottom: 3px; flex-shrink: 0; }
  .mark::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--tape); }
  .nav { display: flex; align-items: center; gap: 10px; }
  .nav .links { display: flex; gap: 22px; margin-right: 10px; }
  .nav .links a { text-decoration: none; color: var(--muted); font-size: 15px; display: inline-block; padding: 12px 2px; }
  .nav .links a:hover { color: var(--text); }
  .lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
  .lang button { background: transparent; color: var(--muted); border: 0; font-family: var(--mono); font-size: 12px; padding: 0 12px; min-height: 40px; min-width: 42px; cursor: pointer; }
  .lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

  /* Hero with live 3D */
  .hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
  #gl { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
  .hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 72px; pointer-events: none; }
  .hero .wrap a, .hero .wrap button { pointer-events: auto; }
  .hero h1 { font-size: clamp(46px, 9vw, 132px); line-height: 0.95; font-weight: 800; max-width: 11ch; letter-spacing: -0.045em; }
  .hero .lede { margin-top: 26px; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; }
  .hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
  .scrollhint { position: absolute; right: var(--gutter); bottom: 80px; z-index: 2; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

  /* Showreel: grows from a card to full screen while you scroll */
  .reel { position: relative; height: 240vh; }
  .reel .stick { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
  /* The whole 16:9 frame scales up (never cropped): JS sets its size and scale. */
  .reel .frame { position: absolute; left: 50%; top: 56%; width: 64vw; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); transform-origin: 50% 50%; border-radius: 24px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 120px rgba(0,0,0,0.5); will-change: transform; }
  .reel video { width: 100%; height: 100%; object-fit: cover; }
  .reel .label { position: absolute; left: var(--gutter); top: 96px; z-index: 2; }
  .reel .label h2 { font-size: clamp(30px, 4.6vw, 64px); font-weight: 800; margin-top: 10px; }
  .reel .sound { position: absolute; right: var(--gutter); bottom: 72px; z-index: 2; }
  .reel .tcbig { position: absolute; left: var(--gutter); bottom: 72px; z-index: 2; font-family: var(--mono); font-size: 13px; color: var(--muted); }

  /* Marquee */
  .marquee { padding-block: 64px; border-block: 1px solid var(--line); overflow: hidden; }
  .row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
  .row span { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.04em; line-height: 1.05; padding-right: 0.5em; }
  .row span.o { color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
  .row span.y { color: var(--tape); }

  section { padding-block: 110px; }
  .sec-head { display: grid; gap: 14px; margin-bottom: 48px; }
  .sec-head h2 { font-size: clamp(36px, 5.2vw, 72px); font-weight: 800; line-height: 1; max-width: 16ch; }
  .sec-head p { color: var(--muted); max-width: 56ch; font-size: 18px; }

  /* Work: horizontal track on desktop */
  .work { position: relative; }
  .work .stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; }
  .track { display: flex; gap: 28px; padding-left: var(--gutter); padding-right: 30vw; will-change: transform; }
  /* desktop cards are sized from the viewport height so they always fit the pinned screen */
  .card { flex: 0 0 auto; width: min(62vw, calc(42vh * 16 / 9)); display: grid; gap: 14px; align-content: start; }
  .card.v { width: calc(42vh * 9 / 16 * 1.15); }
  .card.v .media { height: calc(42vh * 1.15 * 1.02); }
  .card.v video { height: 100%; aspect-ratio: auto; }
  .card .media { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
  .card video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transform: scale(1.06); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .card.v video { aspect-ratio: 9 / 16; }
  .card:hover video { transform: scale(1); }
  .card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
  .card h3 { font-size: 28px; font-weight: 800; }
  .card p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
  .chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .chips span { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); }
  .unmute { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 12px; min-height: 36px; background: rgba(15,17,21,0.8); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; backdrop-filter: blur(6px); }
  .unmute[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
  .card.next .media { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(47,91,255,0.35), transparent 60%), var(--surface); }
  .card.next .media div { text-align: center; padding: 24px; }
  .card.next h3 { font-size: clamp(28px, 3.4vw, 48px); }
  .worknote { padding: 22px var(--gutter) 0; color: var(--muted); font-size: 13.5px; font-family: var(--mono); }

  /* Services */
  .svc { border-top: 1px solid var(--line); }
  .svc li { list-style: none; display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
  .svc ul { margin: 0; padding: 0; }
  .svc .n { font-family: var(--mono); color: var(--accent-soft); font-size: 13px; }
  .svc h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s; }
  .svc li:hover h3 { transform: translateX(14px); color: var(--tape); }
  .svc p { color: var(--muted); font-size: 15.5px; max-width: 38ch; text-align: right; }

  /* Process: a playhead runs down the steps */
  .process .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: start; }
  .process .left { position: sticky; top: 110px; }
  .steps { position: relative; padding-left: 38px; }
  .steps .rail { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
  .steps .fill { position: absolute; left: 8px; top: 8px; width: 2px; height: 0; background: var(--tape); box-shadow: 0 0 18px var(--tape); }
  .step { position: relative; padding-bottom: 64px; }
  .step::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line); transition: border-color 0.3s, background 0.3s; }
  .step.on::before { border-color: var(--tape); background: var(--tape); }
  .step .tc { font-family: var(--mono); font-size: 12px; color: var(--accent-soft); }
  .step h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-top: 6px; }
  .step p { color: var(--muted); margin-top: 8px; max-width: 46ch; }
  .free { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; background: var(--tape); color: var(--tape-ink); padding: 3px 8px; border-radius: 4px; }

  /* Stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
  .stat { padding: 40px 24px; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
  .stat b { display: block; font-family: var(--display); font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
  .stat > span { color: var(--muted); font-size: 15px; }

  /* Packages */
  .packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pack { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; display: grid; gap: 16px; align-content: start; transform-style: preserve-3d; transition: border-color 0.3s; }
  .pack:hover { border-color: var(--accent-soft); }
  .pack.main { border: 2px solid var(--accent); background: linear-gradient(180deg, rgba(47,91,255,0.12), var(--surface) 55%); }
  .pack .tag { position: absolute; top: -12px; right: 22px; font-family: var(--mono); font-size: 11px; background: var(--tape); color: var(--tape-ink); padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
  .pack h3 { font-size: 26px; font-weight: 800; }
  .price { font-family: var(--display); font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
  .price small { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; color: var(--muted); }
  .pack li { padding-left: 22px; position: relative; }
  .pack li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
  .note { margin-top: 22px; color: var(--muted); font-size: 14px; }

  /* FAQ */
  .faq { border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
  .faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--mono); color: var(--tape); transition: transform 0.3s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq p { color: var(--muted); margin-top: 12px; max-width: 70ch; }

  /* CTA + footer */
  .cta { text-align: center; padding-block: 140px 90px; position: relative; overflow: hidden; }
  .cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgba(47,91,255,0.28), transparent 55%); pointer-events: none; }
  .cta h2 { position: relative; font-size: clamp(48px, 10vw, 150px); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em; }
  .cta p { position: relative; color: var(--muted); max-width: 54ch; margin: 26px auto 0; font-size: 18px; }
  .cta .actions { position: relative; margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  footer { border-top: 1px solid var(--line); padding-block: 40px 120px; color: var(--muted); }
  footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
  .giant { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 22vw, 330px); letter-spacing: -0.06em; line-height: 0.8; color: var(--surface-2); text-align: center; margin-top: 40px; user-select: none; overflow: hidden; }

  /* Timeline HUD: the page is a 60-second edit */
  .hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(11,13,18,0.92) 40%); font-family: var(--mono); font-size: 11.5px; color: var(--muted); pointer-events: none; }
  .hud .bar { position: relative; flex: 1; height: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px); }
  .hud .bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; left: 0; background: var(--tape); box-shadow: 0 0 10px var(--tape); }
  .hud b { color: var(--text); font-weight: 600; }

  [data-reveal] { opacity: 0; transform: translateY(40px); }
  .no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

  @media (max-width: 960px) {
    .nav .links { display: none; }
    .work .stick { position: static; height: auto; display: block; }
    .track { flex-direction: column; padding-right: var(--gutter); transform: none !important; }
    .card, .card.v { width: 100%; }
    .card.v .media { max-width: 360px; height: auto; }
    .card.v video { aspect-ratio: 9 / 16; height: auto; }
    .work { height: auto !important; }
    .process .grid { grid-template-columns: 1fr; gap: 30px; }
    .process .left { position: static; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .packs { grid-template-columns: 1fr; }
    .svc li { grid-template-columns: 44px 1fr; }
    .svc p { grid-column: 2; text-align: left; }
    .scrollhint { display: none; }
    .reel { height: 170vh; }
  }
  @media (max-width: 560px) {
    section { padding-block: 80px; }
    .hud .lbl { display: none; }
    .who strong { font-size: 18px; white-space: nowrap; }
    .nav > .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
    .motion-toggle { padding: 8px 12px; }
    .motion-toggle [data-i18n="motionLbl"] { display: none; }
    .who strong { display: none; }
    .hero .actions .btn { width: 100%; justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .reel { height: auto; }
    .reel .stick { position: relative; height: 70vh; }
    .reel .frame { width: min(92vw, calc(70vh * 16 / 9)); }
    .card video { transform: none; transition: none; }
  }

/* moved from inline style attributes (CSP: no inline styles) */
.work .sec-head { margin-bottom: 32px; }
.card.next h3 { margin-top: 12px; }
.card.next .btn { margin-top: 22px; }
