/* ==========================================================================
   mihaibloj.com — one stylesheet, no build step. Tokens first.
   ========================================================================== */
:root {
  --ink: #0B0B0C;
  --ink-2: #131315;
  --ink-3: #1B1B1E;
  --fg: #F4F4F2;
  --fg-2: #A3A3AC;
  --fg-3: #5D5D64;
  --line: rgba(255, 255, 255, 0.08);
  --orange: #FF6B2C;
  --orange-2: #FF8A57;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r: 18px;
  /* every card on the site shares these */
  --card-bg: #131315;
  --card-line: rgba(255, 255, 255, 0.08);
  --card-r: 24px;
  --section: clamp(84px, 9vw, 124px);    /* the one vertical gap between every section */

  /* Type scale. Two weights only: 700 for display, 400 for reading (600 for small UI titles) */
  --t-body: 17px;                          /* line-height 1.6 */
  --t-sub: 19px;                           /* muted lines under section titles */
  --t-lead: clamp(21px, 1.8vw, 26px);      /* lead paragraphs and quotes */
  --t-h3: clamp(21px, 1.8vw, 26px);        /* card and pillar titles */
  --t-h2: clamp(38px, 5.2vw, 75px);        /* section titles */
  --t-h1: clamp(42px, 6vw, 108px);         /* hero */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h3 { margin: 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
p, figure { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--orange); }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; background: none; cursor: pointer; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.btn svg { width: 10px; height: 10px; fill: currentColor; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange { --roll: #0B0B0C; }
/* Fill: a soft-edged wave rises from the bottom on every button, same direction everywhere */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-orange::before, .btn-line::before { content: ""; position: absolute; z-index: -1; left: -15%; right: -15%; top: -30%; height: 160%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; transform: translateY(88%); transition: transform .42s cubic-bezier(0.65, 0, 0.35, 1); }
.btn-orange::before { background: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-orange:is(:hover, :focus-visible) { background-color: #fff; transition: background-color .15s linear .3s; } }
.btn-line::before { background: var(--orange); }
@media (hover: hover) and (pointer: fine) { .btn-orange:is(:hover, :focus-visible)::before, .btn-line:is(:hover, :focus-visible)::before { transform: translateY(0); } }
.btn > svg { transition: color .3s var(--ease) .08s; }
@media (hover: hover) and (pointer: fine) { .btn:is(:hover, :focus-visible) > svg { color: var(--roll); } }
.btn-line { border-color: rgba(255,255,255,0.2); }
.btn-line { --roll: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: var(--orange); } }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255,255,255,0.2); background: none; cursor: pointer; transition: border-color .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: rgba(255,255,255,0.5); } }
.link-arrow { display: inline-flex; gap: 8px; color: var(--fg-2); font-size: 15px; transition: color .4s var(--ease); }

.link-arrow span { transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(4px); } }

/* Letter roll: each letter slides up and out, its twin rises from below in --roll colour */
.roll { position: relative; display: inline-flex; overflow: hidden; line-height: 1.25; padding-bottom: 0.04em; vertical-align: middle; }
.roll-a, .roll-b { display: inline-flex; white-space: pre; }
.roll-b { position: absolute; left: 0; top: 0; }
.roll .ch { display: inline-block; transition: transform .42s cubic-bezier(0.65, 0, 0.35, 1); transition-delay: calc(var(--i) * 14ms); }
.roll-b .ch { transform: translateY(110%); color: var(--roll, currentColor); }
@media (hover: hover) and (pointer: fine) { :is(a, button):is(:hover, :focus-visible) > .roll .roll-a .ch { transform: translateY(-110%); } }
@media (hover: hover) and (pointer: fine) { :is(a, button):is(:hover, :focus-visible) > .roll .roll-b .ch { transform: none; } }
.nav-links a, .link-arrow { --roll: var(--fg); }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 60; left: 0; right: 0; top: calc(clamp(14px, 2vw, 26px) + env(safe-area-inset-top)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.nav { pointer-events: none; }
.nav-inner, .mobile-menu.is-open { pointer-events: auto; }
.nav-inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 12px 0 18px; border-radius: 999px; background: rgba(18,18,20,0.62); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
/* Logo: a bold geometric m whose legs are sliced into offset rows; on hover the rows slide home */
.brand-tile { width: 38px; height: 38px; border-radius: 11px; background: var(--orange); display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mb { width: auto; height: 19px; color: #fff; overflow: visible; }
.ms-band { transform: translate(var(--dx), 0); }
/* hover: a small zoom on the whole mark */
.brand-tile { transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-tile { transform: scale(1.08); } }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; font-size: 15px; color: var(--fg-2); }
.nav-links a { transition: color .3s var(--ease); }

.nav-cta { height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--fg); transition: transform .55s cubic-bezier(0.76, 0, 0.24, 1), top .55s cubic-bezier(0.76, 0, 0.24, 1); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
/* Mobile menu: the panel unrolls from the top, links rise in one after another */
.mobile-menu { display: none; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 8px auto 0; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--card-r); background: rgba(19,19,21,0.96); border: 1px solid var(--card-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  visibility: hidden; clip-path: inset(0 0 100% 0 round 28px); transition: clip-path .75s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s .75s; }
.mobile-menu.is-open { visibility: visible; clip-path: inset(0 0 0 0 round 28px); transition: clip-path .75s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s; }
.mobile-menu > * { opacity: 0; transform: translateY(26px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.mobile-menu.is-open > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(0.18s + var(--i) * 0.07s); }
.mobile-menu a:not(.btn) { padding: 12px 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.mobile-menu .btn { margin-top: 10px; height: 52px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; height: 100svh; min-height: 720px; max-height: 1240px; }
.hero-ascii { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 62% at 24% 58%, rgba(11,11,12,0.86) 0%, rgba(11,11,12,0.66) 50%, transparent 85%); }
.hero-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); grid-template-rows: minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: 92px; }
.hero-title { font-size: var(--t-h1); letter-spacing: -0.04em; line-height: 1.04; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-size: 1.04em; line-height: 1; letter-spacing: -0.015em; }
.hero-title .line:last-child { margin-top: 0.06em; }
.hero-lede { margin-top: clamp(22px, 2vw, 32px); max-width: 24em; font-size: clamp(18px, 1.3vw, 23px); line-height: 1.5; letter-spacing: -0.012em; color: #C8C8CE; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 2.6vw, 44px); }

.hero-reel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: stretch; min-height: 0; }
/* cards dissolve into solid ink at the edges, so the background animation never shows through them */
.hero-reel::before, .hero-reel::after { content: ""; position: absolute; z-index: 2; left: -1px; right: -1px; height: 16%; pointer-events: none; }
.hero-reel::before { top: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(11,11,12,0) 100%); }
.hero-reel::after { bottom: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(11,11,12,0) 100%); }
.reel-col { overflow: hidden; height: 100%; min-height: 0; }
.reel-track { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.reel-col[data-dir="up"] .reel-track { animation: reelUp 60s linear infinite; }
.reel-col[data-dir="down"] .reel-track { animation: reelDown 66s linear infinite; }
@media (hover: hover) and (pointer: fine) { .hero-reel:hover .reel-track { animation-play-state: paused; } }
@keyframes reelUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@keyframes reelDown { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }

/* ---------- Clip (autoplaying Vimeo with a poster) ---------- */
.clip { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--ink-2); cursor: pointer; isolation: isolate; -webkit-clip-path: inset(0 round var(--r)); clip-path: inset(0 round var(--r)); }
.clip iframe { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border: 0; pointer-events: none; transform: translate(-50%, -50%) scale(var(--cover, 1)); opacity: 0; transition: opacity 1.2s var(--ease); }
.clip.is-playing iframe { opacity: 1; }
.clip:not(.hero-card) { background: linear-gradient(110deg, #131315 30%, #1C1C1F 50%, #131315 70%) 0 0 / 300% 100%; animation: shimmer 2.4s var(--ease) infinite; }
.clip.is-playing { animation: none; background: var(--card-bg); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.clip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .8s var(--ease); }
.clip.is-playing > img { opacity: 0; }
.clip::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,0); transition: background-color .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .clip:hover::after { background: rgba(0,0,0,0.12); } }
.hero .clip { aspect-ratio: 0.875; }

/* Hero cards */
.hero-card { --r: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.hero-card > img { transition: transform 1.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hero-card:hover > img { transform: scale(1.06); } }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); pointer-events: none; }
.hero-card::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%); }
@media (hover: hover) and (pointer: fine) { .hero-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.6) 100%); } }
.hc-bar { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(14,14,16,0.5); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.hc-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.hc-play { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; transition: transform .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease); }
.hc-play svg { width: 11px; height: 11px; fill: currentColor; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) { .hero-card:hover .hc-play { transform: scale(1.12); background: #fff; color: var(--orange); } }

/* ---------- Clients ---------- */
.clients { flex: none; padding-block: 28px; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); background: var(--ink); }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.logo-track img { width: auto; margin-right: clamp(48px, 6vw, 96px); opacity: 0.55; transition: opacity .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .logo-track img:hover { opacity: 1; } }

/* ---------- Showreel ---------- */
/* Showreel: content width at rest, full-bleed while centred on screen, back to content width as it leaves */
.showreel { padding-top: clamp(28px, 3.4vw, 48px); }
.clip-reel { width: 100%; height: min(56.25vw, 94svh); --r: 0px; transform-origin: 50% 50%; transform: scale(var(--s, 1)); will-change: transform; }
/* Showreel label: a small glass pill in the corner (kept at true size while the reel scales) */
.reel-bar { position: absolute; z-index: 5; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); display: flex; gap: 8px; align-items: center; transform: scale(calc(1 / var(--s, 1))); transform-origin: 0 100%; }
.reel-sound { position: absolute; z-index: 5; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); transform: scale(calc(1 / var(--s, 1))); transform-origin: 100% 100%; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(11,11,12,0.42); color: #fff; font: 500 14px var(--sans); cursor: pointer; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .reel-sound:hover { border-color: rgba(255,255,255,0.4); } }
.reel-sound.is-on { background: var(--orange); border-color: var(--orange); }
.reel-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound .rs-w { display: none; } .reel-sound.is-on .rs-w { display: inline; } .reel-sound.is-on .rs-x { display: none; }
.reel-pill { position: relative;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: rgba(11,11,12,0.42); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.rp-play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.rp-play svg { width: 10px; height: 10px; fill: currentColor; margin-left: 2px; }
.rp-text { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.rp-dur { font-size: 13px; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }

/* Desktop: the cursor turns into a "Play reel" disc that trails the pointer */
.reel-cursor { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; transform: translate(var(--cx, 50%), var(--cy, 50%)); }
.reel-cursor span { display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transform: scale(0); transition: transform .45s cubic-bezier(0.65, 0, 0.35, 1); }
@media (hover: hover) and (pointer: fine) {
  .clip-reel { cursor: none; }
  .clip-reel.cursor-on .reel-cursor span { transform: scale(calc(1 / var(--s, 1))); }
}

/* ---------- Sections ---------- */
.sec { padding-top: var(--section); }
.band { margin-top: var(--section); padding-block: var(--section); background: #151517; }
.band + .sec { padding-top: var(--section); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.sec-head h2 { font-size: var(--t-h2); }
.sec-sub { margin-top: 20px; max-width: 34em; font-size: var(--t-sub); line-height: 1.6; color: var(--fg-2); }

/* Work grid */
.grid-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
.work-item { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.work-item .clip { aspect-ratio: 16 / 9; }
.work-item h3 { font-size: var(--t-h3); }
.page-work .grid-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Why: four outcomes a marketing lead cares about */
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.outcome { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--card-line); }
/* Each outcome opens with a small looping motion piece instead of an icon */
.oc-art { height: 190px; margin-bottom: 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line);
  background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.2px) 0 0 / 14px 14px, #0E0E10; }
.oc-art svg { display: block; width: 100%; height: 100%; }
@keyframes aFlow { to { stroke-dashoffset: -24; } }
/* clarity: an ASCII mess gathers into a ring with a check (drawn by main.js) */
.a-ascii { display: block; width: 100%; height: 100%; }
/* one system: three formats, same language, floating out of phase */
.a-card { fill: #1B1B1F; stroke: rgba(255,255,255,0.12); }
.a-acc, .a-dotc { fill: var(--orange); }
.a-ln { fill: #3A3A42; }
.a-float { animation: aFloat 5s ease-in-out infinite; }
.a-f2 { animation-delay: -1.7s; } .a-f3 { animation-delay: -3.4s; }
@keyframes aFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
/* team: scattered people, the lead reaches out to each one, they fall into formation, the whole team keeps turning, then lets go */
.a-link { fill: none; stroke: #4A4A53; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: aLink 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; animation-delay: var(--d); }
.a-node { transform: translate(var(--dx), var(--dy)) scale(0.8); transform-box: fill-box; transform-origin: center; animation: aNode 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; animation-delay: var(--d); }
.a-sat { fill: #1B1B1F; stroke: #5C5C64; stroke-width: 2; }
.a-sat-dot { fill: var(--orange); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: aSatDot 6s cubic-bezier(0.16, 1, 0.3, 1) infinite; animation-delay: var(--d); }
.a-core { fill: var(--orange); transform-box: fill-box; transform-origin: center; animation: aCore 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.a-spin { transform-origin: 200px 85px; animation: aSpin 16s linear infinite; }
@keyframes aLink { 0%, 6% { stroke-dashoffset: 1; } 16%, 76% { stroke-dashoffset: 0; } 88%, 100% { stroke-dashoffset: -1; } }
@keyframes aNode { 0%, 12% { transform: translate(var(--dx), var(--dy)) scale(0.8); } 24%, 78% { transform: translate(0, 0) scale(1); } 92%, 100% { transform: translate(var(--dx), var(--dy)) scale(0.8); } }
@keyframes aSatDot { 0%, 20% { transform: scale(0); } 26%, 76% { transform: scale(1); } 84%, 100% { transform: scale(0); } }
@keyframes aCore { 0%, 10% { transform: scale(0.85); } 18%, 80% { transform: scale(1); } 92%, 100% { transform: scale(0.85); } }
@keyframes aSpin { to { transform: rotate(360deg); } }
/* results: campaign spikes fall back; the brand line keeps compounding */
.a-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1.5; }
.a-ads { fill: none; stroke: #45454D; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.a-brand { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.a-lbl { font: 500 13px var(--sans); letter-spacing: -0.01em; }
.a-lbl-brand { fill: var(--orange); } .a-lbl-ads { fill: #6E6E78; }
.a-head-ads { fill: #5A5A63; } .a-head-brand { fill: var(--orange); }
/* heads grow in at the start, ride the line, and shrink away where the line ends */
.a-head-ads, .a-head-brand { transform-box: fill-box; transform-origin: center; }
.a-lbl { transform-box: fill-box; transform: translateY(26px); }
/* the chart is animated from one clock in main.js (lines, heads, labels, ring) */
.a-pulse { fill: none; stroke: rgba(255,107,44,0.55); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transform: scale(0);  }
.outcome h3 { max-width: 18em; }
/* hover: just a small zoom on the card */
.js .outcome.rv-card.in { transition: transform .6s var(--ease), opacity 1.2s var(--ease) var(--d, 0ms); }
@media (hover: hover) and (pointer: fine) { .outcome:hover, .js .outcome.rv-card.in:hover { transform: scale(1.015); } }
.outcome { padding: 14px 14px clamp(26px, 3vw, 38px); }
.outcome h3, .outcome p { padding-inline: clamp(12px, 1.6vw, 22px); }
.outcome p { color: var(--fg-2); max-width: 30em; }

/* Production: the AI pipeline, stated plainly next to what it replaces */
.prod { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: var(--card-r); border: 1px solid var(--card-line); background: var(--card-bg); }
.prod-copy h2 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.035em; line-height: 1.04; }
.prod-copy > p { margin-top: 22px; font-size: var(--t-sub); line-height: 1.6; color: var(--fg-2); max-width: 30em; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.tools li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: var(--fg-2); }
.compare { border-radius: 18px; background: rgba(255,255,255,0.025); border: 1px solid var(--card-line); padding: 8px 24px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span:first-child { font-weight: 600; }
.cmp-row > span:nth-child(2) { color: var(--fg-3); }
.cmp-row > span:nth-child(3) { display: flex; gap: 10px; align-items: flex-start; }
.cmp-row > span:nth-child(3) svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-headrow { padding: 14px 0 10px; }
.cmp-headrow > span { font-size: 14px; color: var(--fg-3); font-weight: 400 !important; }
.cmp-headrow > span:nth-child(3) { color: var(--orange); }

/* About: its own panel so the section reads as a block */
.about { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(14px, 2.4vw, 32px); padding-right: clamp(20px, 4vw, 64px); border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--card-line); }
.portrait { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about-text { display: flex; flex-direction: column; gap: 20px; max-width: 34em; }
.about-text h2 { font-size: var(--t-h2); margin-bottom: 8px; }
.about-text p { font-size: var(--t-sub); line-height: 1.65; color: var(--fg-2); }
.about-text p:first-of-type { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -0.02em; color: var(--fg); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--card-line); }
.review blockquote { margin: 0; font-size: 21px; line-height: 1.45; letter-spacing: -0.015em; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-2); }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review figcaption b { display: block; color: var(--fg); font-weight: 600; }

/* Contact + footer: one full orange block that closes the page */
.contact { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--section); background: var(--ink); color: #fff;
  min-height: 100svh; display: flex; flex-direction: column; }
.contact-glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* keeps the text column calm: the glow lives on the right and at the bottom */
.contact-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,11,12,0.82) 0%, rgba(11,11,12,0.55) 38%, rgba(11,11,12,0) 66%), linear-gradient(180deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0) 40%); }
.contact-inner, .contact .footer { position: relative; }
.contact h2 { font-size: var(--t-h2); letter-spacing: -0.04em; color: #fff; }
.contact h2 em { font-size: 1.08em; color: var(--orange); }
.contact-inner > p { color: rgba(255,255,255,0.92); }
.email-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.email { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; user-select: all; }
.contact .chip { border-color: rgba(255,255,255,0.55); color: #fff; }
@media (hover: hover) and (pointer: fine) { .contact .chip:hover { border-color: #fff; background: rgba(255,255,255,0.12); } }
.contact-links { display: flex; gap: 32px; margin-top: 28px; font-size: 16px; font-weight: 500; color: #fff; flex-wrap: wrap; justify-content: center; }
.contact-links a { --roll: var(--ink); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: var(--fg-2); }
.footer a { --roll: var(--orange); }

/* Player */
.player { width: min(1180px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.player::backdrop { background: rgba(0,0,0,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player[open] { animation: fadeUp .7s var(--ease); }
.player-frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; right: 0; top: -52px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: none; color: #fff; cursor: pointer; }

/* Hover on a case-study card: the clip blurs, a quiet label fades in and the arrow slides through its circle */
.work-item.has-case { color: inherit; }
.cs-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(11,11,12,0); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); transition: background-color .7s var(--ease), backdrop-filter .7s var(--ease), -webkit-backdrop-filter .7s var(--ease); }
.cs-label { display: inline-flex; align-items: center; gap: 14px; }
.cs-text { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: #fff; opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .has-case:is(:hover, :focus-visible) .cs-text { opacity: 1; transform: none; transition-delay: .1s; } }
.cs-arrow { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--orange); color: #fff; transform: scale(0.4); opacity: 0; transition: transform .8s var(--ease) .12s, opacity .4s var(--ease) .12s; }
.cs-arrow svg { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(0.76, 0, 0.24, 1) .25s; }
.cs-arrow svg:last-child { transform: translateX(-40px); }
@media (hover: hover) and (pointer: fine) { .has-case:is(:hover, :focus-visible) .cs-overlay { background: rgba(11,11,12,0.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } }
@media (hover: hover) and (pointer: fine) { .has-case:is(:hover, :focus-visible) .cs-arrow { transform: none; opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .has-case:is(:hover, :focus-visible) .cs-arrow svg:first-child { transform: translateX(40px); } }
@media (hover: hover) and (pointer: fine) { .has-case:is(:hover, :focus-visible) .cs-arrow svg:last-child { transform: none; } }
.has-case h3 { transition: color .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .has-case:hover h3 { color: var(--orange); } }

/* Case-study page */
.case { padding-top: 150px; }
.case-back { margin-bottom: 40px; }
.case-head { max-width: 900px; }
.case-title { font-size: var(--t-h1); letter-spacing: -0.045em; line-height: 0.98; }
.case-line { margin-top: 24px; max-width: 32em; font-size: var(--t-lead); line-height: 1.4; letter-spacing: -0.02em; color: var(--fg-2); }
.case-video { position: relative; margin-top: 56px; aspect-ratio: 16 / 9; border-radius: var(--card-r); overflow: hidden; background: var(--card-bg); }
.case-video:fullscreen { border-radius: 0; aspect-ratio: auto; }
.cv-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.cv-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(11,11,12,0.5); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .cv-btn:hover { background: rgba(11,11,12,0.72); border-color: rgba(255,255,255,0.35); } }
.cv-btn.is-on { background: var(--orange); border-color: var(--orange); }
.cv-icon { width: 42px; padding: 0; justify-content: center; }
.cv-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Process: stills alternate with short notes */
.case-process { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); margin-top: var(--section); }
.cp-still { border-radius: var(--card-r); overflow: hidden; background: var(--card-bg); aspect-ratio: 16 / 9; }
.cp-still img { width: 100%; height: 100%; object-fit: cover; }
.cp-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 2vw, 28px); align-items: center; }
.cp-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.cp-note { font-size: var(--t-sub); line-height: 1.65; color: var(--fg-2); max-width: 30em; padding: clamp(8px, 2vw, 32px); }
.cp-take { margin: clamp(48px, 7vw, 96px) auto 0; max-width: 22em; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; color: var(--orange); }
.cp-lead { max-width: 30em; padding: 0 0 clamp(16px, 2vw, 28px); font-size: var(--t-lead); line-height: 1.4; letter-spacing: -0.02em; color: var(--fg); }

/* Portfolio page */
.page-head { padding-top: 170px; padding-bottom: 40px; }
.page-head h1 { font-size: var(--t-h1); letter-spacing: -0.045em; }

/* Intro + reveals (hidden states only when JS runs) */
.intro .hero-title .line > span { transform: translateY(105%); animation: lineIn 1.2s var(--ease) forwards; }
.intro .hero-title .line:nth-child(2) > span { animation-delay: .07s; }
.intro .hero-title .line:nth-child(3) > span { animation-delay: .14s; }
.intro .hero-lede, .intro .hero-actions { opacity: 0; transform: translateY(14px); animation: fadeUp 1.1s var(--ease) forwards; }
.intro .hero-lede { margin-top: clamp(22px, 2vw, 32px); max-width: 24em; font-size: clamp(18px, 1.3vw, 23px); line-height: 1.5; letter-spacing: -0.012em; color: #C8C8CE; text-wrap: balance; }
.intro .hero-actions { animation-delay: .4s; }
.intro .hero-reel { opacity: 0; animation: fadeIn 1.6s var(--ease) .2s forwards; }
@keyframes lineIn { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
/* Scroll reveals (hidden states exist only once JS runs) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease) var(--d, 0ms), transform 1.4s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* cards & media: one calm rise, staggered within a grid */
.js .rv-card { transform: translateY(56px); transition: opacity 1.2s var(--ease) var(--d, 0ms), transform 1.4s var(--ease) var(--d, 0ms); }
/* headings: words rise out of a mask one after another */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .22em .34em; margin: -.04em -.22em -.34em; }
.js .split .wi { display: inline-block; transform: translateY(160%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .split.in .wi { transform: none; }
.js .split.done .w { overflow: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: flex; }
  .hero { height: auto; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding-top: 140px; padding-bottom: 40px; gap: 48px; }
  .hero-shade { background: linear-gradient(180deg, rgba(11,11,12,0.25) 0%, rgba(11,11,12,0.6) 40%, rgba(11,11,12,0.2) 70%, var(--ink) 100%); }
  /* tablet & phone: one horizontal row of cards that drifts sideways, edge to edge */
  .hero-reel { display: block; height: auto; align-self: auto; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))); }
  .hero-reel::before, .hero-reel::after { display: none; }
  .reel-col { height: auto; }
  .reel-col[data-dir="down"] { display: none; }
  .reel-col[data-dir="up"] .reel-track { flex-direction: row; width: max-content; gap: 12px; animation: reelSide 55s linear infinite; }
  .hero .clip { width: min(46vw, 300px); aspect-ratio: 0.875; flex: none; }
  @keyframes reelSide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
  .about { grid-template-columns: 1fr; padding-right: clamp(14px, 2.4vw, 32px); }
  .cp-row, .cp-flip { grid-template-columns: 1fr; }
  .outcomes, .prod { grid-template-columns: 1fr; }
  .cp-row .cp-note { font-size: var(--t-sub); line-height: 1.65; color: var(--fg-2); max-width: 30em; padding: clamp(8px, 2vw, 32px); }
  .cp-note { font-size: var(--t-sub); line-height: 1.65; color: var(--fg-2); max-width: 30em; padding: clamp(8px, 2vw, 32px); }
  .case { padding-top: 130px; }
  .about-text { display: flex; flex-direction: column; gap: 20px; max-width: 34em; }
  .portrait { width: 100%; max-width: none; aspect-ratio: 5 / 6; }
  .page-work .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-work, .page-work .grid-work, .reviews { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .cmp-row > span:first-child { grid-column: 1 / -1; }
  .compare { padding: 2px 14px; }
  .prod { padding: 22px 18px 18px; }
  .cmp-row { font-size: 15px; gap: 6px 14px; }
  .cmp-headrow > span:first-child { display: none; }
  .hero-grid { padding-top: 120px; padding-bottom: 28px; gap: 32px; }
  .hero .clip { width: 68vw; }
  .reel-col[data-dir="up"] .reel-track { gap: 10px; animation-duration: 45s; }
  .review { padding: 22px; }
  .nav-cta { height: 42px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Intro: fluted glass, a warm glow rises in from below, then glass and glow lift away together ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.no-preload .preloader { display: none; }
.pl-strip { position: absolute; top: 0; bottom: 0; overflow: hidden; background: var(--ink);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1); transition-delay: var(--out, 0ms); }
.pl-strip::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 18%, rgba(255,255,255,0.05) 32%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%); }
.pl-scene { position: absolute; top: 0; bottom: 0; width: 100vw; transform: scaleX(1.12); transform-origin: var(--cx) 50%; }
.pl-glow { position: absolute; left: 50%; bottom: -55%; width: 150vw; height: 120%; margin-left: -75vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,190,110,0.95), rgba(255,107,44,0.8) 30%, rgba(200,40,15,0.45) 58%, rgba(90,15,8,0.15) 80%, transparent);
  transform: translateY(70%) scale(0.75); transition: transform 1.8s var(--ease) .1s; }
/* phases */
.preloader.p-in .pl-glow { transform: none; }
.preloader.p-out .pl-strip { transform: translateY(-101%); }
/* hold the hero's own entrance until the intro lifts */
.preloading .hero, .preloading .hero * { animation-play-state: paused !important; }

/* 404 */
.page-404 .page-head { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.page-404 .page-head .sec-sub { margin-top: 18px; }
.page-404 .page-head .hero-actions { margin-top: 34px; }

/* Work card title row: on touch screens a small "Case study →" link replaces the hover overlay */
.wi-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wi-cta { display: none; }
@media (hover: none), (pointer: coarse) {
  .cs-overlay { display: none; }
  .wi-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--orange); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
  .wi-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

/* Contact: the hero's glass returns to close the page. A short call to action on the left where the light is calmed,
   then a proper footer on ink below it (the glow settles right above it, like it does above the hero's logo strip). */
.contact { min-height: 0; }
.contact-stage { position: relative; isolation: isolate; }
.contact-inner { min-height: min(86svh, 920px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding-block: 140px 120px; }
.contact h2 { font-size: clamp(56px, 7.2vw, 116px); line-height: 0.98; letter-spacing: -0.045em; }
.contact h2 em { display: block; }
.contact-inner > p { margin-top: 24px; max-width: 26em; font-size: var(--t-sub); line-height: 1.55; color: #C8C8CE; text-wrap: balance; }
.contact-inner .hero-actions { margin-top: 40px; }

/* Footer: brand + one line + socials on the left, three short columns on the right, a quiet bottom bar */
.site-footer { position: relative; padding-top: clamp(64px, 7vw, 96px); }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: clamp(64px, 7vw, 96px); }
.sf-logo .brand-tile { width: 44px; height: 44px; border-radius: 12px; }
.sf-logo .brand-mb { height: 22px; }
.sf-logo .brand-name { font-size: 22px; letter-spacing: -0.03em; }
.sf-brand p { margin-top: 24px; max-width: 25em; font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.sf-social { display: flex; gap: 10px; margin-top: 28px; }
.sf-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #19191C; color: #fff; transition: background-color .4s var(--ease), transform .4s var(--ease); }
.sf-ic svg { width: 19px; height: 19px; fill: currentColor; }
.sf-ic svg.stroke, .sf-totop svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sf-col h3 { margin-bottom: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg-2); }
.sf-col a, .sf-col span { font-size: 17px; letter-spacing: -0.01em; color: #fff; transition: color .3s var(--ease); }
.sf-col .sf-note { color: var(--fg-2); }
.sf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 15px; color: var(--fg-2); }
.sf-totop { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; color: #fff; font-weight: 500; }
.sf-totop svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .sf-ic:hover { background: var(--orange); }
  .sf-col a:hover { color: var(--orange); }
  .sf-totop:hover svg { transform: translateY(-3px); }
}
@media (max-width: 960px) {
  .sf-top { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact-shade { background: linear-gradient(180deg, rgba(11,11,12,0.85) 0%, rgba(11,11,12,0.78) 62%, rgba(11,11,12,0.2) 100%); }
  .contact-inner { min-height: 86svh; justify-content: center; padding-block: 120px 200px; }
  .contact h2 { font-size: clamp(52px, 15vw, 64px); }
  .contact-inner > p { margin-top: 16px; font-size: 16px; }
  .contact-inner .hero-actions { margin-top: 32px; }
  .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
  .sf-col:last-child { grid-column: 1 / -1; }
  .sf-brand p { font-size: 16px; }
  .sf-col a, .sf-col span { font-size: 16px; }
  .sf-bottom { font-size: 13px; }
}







/* Tablet & phone hero: copy, then the client logos, then the drifting row of films (logos frame the work) */
@media (max-width: 960px) {
  .hero-grid { display: contents; }
  .hero-copy { order: 1; padding: 140px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
  .clients { order: 2; margin-top: 44px; }
  .hero-reel { order: 3; margin: 28px 0 44px; }
}
@media (max-width: 640px) {
  .hero-copy { padding-top: 120px; }
  .clients { margin-top: 36px; padding-block: 22px; }
  .hero-reel { margin: 24px 0 36px; }
}
