/* ==========================================================
   Anurag Sharma — portfolio
   Paper (default) and Sparkle (dark) themes
   ========================================================== */

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

:root {
  --bg: #ECE7DE;
  --ink: #17140F;
  --ink-2: #3A342B;
  --muted: #81796C;
  --line: rgba(23, 20, 15, .15);
  --pill: #F6F2EA;
  --pill-shadow: 0 10px 30px rgba(60, 40, 20, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
  --accent: #E5461A;
  --on-accent: #FFF8EE;
  --pad: clamp(16px, 3.4vw, 52px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

html.night {
  --bg: #0B0D14;
  --ink: #EFE9DD;
  --ink-2: #C9C2B4;
  --muted: #8C8576;
  --line: rgba(239, 233, 221, .14);
  --pill: #151824;
  --pill-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  --accent: #FF6A2B;
  --on-accent: #0B0D14;
  color-scheme: dark;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-stretch: 104%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 30px; background: var(--ink); color: var(--bg);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.caps {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  font-stretch: 110%;
  line-height: 1.55;
}
.muted { color: var(--muted); }
.dash {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); vertical-align: middle; transform: rotate(45deg);
}
.ch { display: inline-block; white-space: pre; }
[data-line] { display: block; white-space: pre; }

/* ---------- FX canvas (smoke by day / embers by night) ---------- */
#fx {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: blur(9px);
}
html.night #fx { filter: none; }
html.no-motion:not(.night) #fx { display: none; }

/* ---------- Cursor: ink dot + lagging ember ring ---------- */
.cursor, .cursor-ring {
  position: fixed; left: 0; top: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.cursor { mix-blend-mode: difference; }
.cursor i {
  display: block;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  transition: transform .4s var(--ease-out);
}
.cursor-ring i {
  display: block;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1.2px solid var(--accent);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
}
.cursor.is-link i { transform: scale(0); }
.cursor-ring.is-link i { transform: scale(1.7); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cursor-ring.is-down i { transform: scale(.8); }
html.cursor-on .cursor, html.cursor-on .cursor-ring { opacity: 1; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 26px var(--pad);
}
.brand {
  display: block;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1.04;
  text-transform: uppercase;
  font-stretch: 112%;
  font-weight: 400;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 44px); padding-top: 6px; }
.nav a, .motion-toggle {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; font-stretch: 110%;
}
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* motion toggle: a tiny live meter instead of a switch */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: 30px; border: 1px solid var(--line);
  transition: border-color .3s;
}
.motion-toggle:hover { border-color: var(--ink); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i {
  display: block; width: 2px; height: 100%;
  background: var(--accent); transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.motion-toggle[aria-pressed="false"] .eq i { animation: none; transform: scaleY(.18); background: var(--muted); }
.m-state { min-width: 2.2em; color: var(--muted); }

/* ---------- Menu pill + overlay ---------- */
.menu-pill {
  position: fixed; top: 20px; right: var(--pad); z-index: 70;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 40px;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  opacity: 0; transform: translateY(-14px) scale(.96); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.menu-pill.show { opacity: 1; transform: none; pointer-events: auto; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger i:last-child { width: 60%; margin-left: auto; background: var(--accent); }
.menu-pill:hover .burger i:last-child { transform: scaleX(1.65); transform-origin: right; }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: 26px var(--pad);
  background: var(--bg);
  clip-path: circle(0px at calc(100% - var(--pad) - 56px) 46px);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.menu.open {
  clip-path: circle(150vmax at calc(100% - var(--pad) - 56px) 46px);
  visibility: visible;
  transition: clip-path .9s var(--ease), visibility 0s;
}
.menu-top { display: flex; justify-content: space-between; align-items: flex-start; }
.menu-close {
  padding: 13px 22px; border-radius: 40px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
}
.menu-links { margin: auto 0; display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 22px;
  padding: .06em 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(48px, 9vw, 140px); font-weight: 300; font-stretch: 112%;
  line-height: 1.02; text-transform: uppercase;
  transition: padding .5s var(--ease-out);
}
.menu-links a:hover { padding-left: 18px; }
.menu-links a .caps { font-size: 12px; color: var(--muted); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Night shift badge ---------- */
.night-wrap {
  position: fixed; right: var(--pad); bottom: 18px; z-index: 65;
  display: flex; align-items: center; gap: 12px;
}
.night-label {
  padding: 9px 15px; border-radius: 30px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  white-space: nowrap;
  opacity: 0; transform: translateX(14px); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.night-wrap:hover .night-label,
.night-wrap:focus-within .night-label { opacity: 1; transform: none; }
.night-btn {
  position: relative;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pill); border: 1px solid var(--line);
  box-shadow: var(--pill-shadow);
  transition: transform .6s var(--ease-out);
}
.night-btn:hover { transform: scale(1.07) rotate(-8deg); }
.night-btn .ring {
  position: absolute; inset: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  fill: var(--ink);
  animation: spin 20s linear infinite;
}
.night-btn .ring text {
  font-family: 'Archivo', sans-serif;
  font-size: 10px; font-weight: 600; font-stretch: 116%;
}
.core {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  transition: transform 1s var(--ease);
}
.core::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 50%;
  background: var(--ink);
}
.core::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--pill);
}
html.night .core { transform: rotate(180deg); }
html.night .night-btn { box-shadow: var(--pill-shadow), 0 0 26px -4px rgba(255, 106, 43, .45); }

/* theme curtain: ember band + new background, slanted */
.curtain { position: fixed; inset: 0; z-index: 9000; pointer-events: none; visibility: hidden; overflow: hidden; }
.curtain.on { visibility: visible; }
.curtain i { position: absolute; left: -5%; right: -5%; top: -25%; bottom: -25%; transform: translateY(115%) skewY(-6deg); }
.c-band { background: var(--accent); }
.c-fill { background: #0B0D14; }

/* ---------- Layout ---------- */
main { display: block; overflow-x: clip; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px;
}
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.trail-item {
  position: absolute; left: 0; top: 0;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .38);
  will-change: transform, opacity;
  opacity: 0;
  background: #222;
}
.trail-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.hero-title {
  position: absolute; left: var(--pad); right: var(--pad); top: 48%;
  transform: translateY(-50%);
  z-index: 2;
  mix-blend-mode: difference;
  color: #FFFBED;
  font-weight: 300; font-stretch: 114%;
  font-size: clamp(40px, 12.4vw, 216px);
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
  pointer-events: none; user-select: none;
}
.hero-title > span { display: block; white-space: pre; }
.hero-title .l2 { text-align: right; }

.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
}
.scroll-cue { display: inline-flex; gap: 10px; align-items: center; }
.scroll-cue span { display: inline-block; color: var(--accent); animation: bob 2.2s var(--ease) infinite; }
.live {
  display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(229, 70, 26, .5);
  animation: live 2s ease-out infinite;
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229, 70, 26, .5); } 100% { box-shadow: 0 0 0 9px rgba(229, 70, 26, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Intro statement ---------- */
.intro { position: relative; height: 230vh; }
.intro-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  padding: 0 var(--pad);
}
.intro-text {
  max-width: 940px;
  text-align: center; text-transform: uppercase;
  font-size: clamp(21px, 2.6vw, 40px);
  line-height: 1.17; font-weight: 400; font-stretch: 106%;
}
.intro-text .w { opacity: .14; transition: opacity .35s; }
.intro-text .w.on { opacity: 1; }
html.no-motion .intro-text .w { opacity: 1; }
.intro-bar {
  position: absolute; left: 50%; bottom: 13vh;
  width: 64px; height: 1px; transform: translateX(-50%);
  background: var(--line); overflow: hidden;
}
.intro-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Selected work ---------- */
.work { position: relative; height: 540vh; }
.work-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2vh;
  padding: 30px var(--pad) 26px;
}
.work-head { display: flex; align-items: center; gap: 22px; min-height: 46px; }
.work-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.work-all { margin-left: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.work-all span { color: var(--accent); }
.work-all:hover { border-color: var(--accent); }
.svc-more { margin-top: 5vh; }
@media (max-width: 760px) { .work-all { display: none; } }

.work-stage {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr);
  gap: 5vw; align-items: center; min-height: 0;
}
.work-copy { display: grid; align-items: center; }
.w-copy {
  grid-area: 1 / 1; max-width: 500px;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .8s;
}
.w-copy.is-on { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.w-copy > * {
  opacity: 0; filter: blur(14px); transform: translateY(14px);
  transition: opacity .6s var(--ease-out), filter .7s var(--ease-out), transform .8s var(--ease-out);
}
.w-copy.is-on > * { opacity: 1; filter: blur(0); transform: none; }
.w-copy.is-on > :nth-child(2) { transition-delay: .07s; }
.w-copy.is-on > :nth-child(3) { transition-delay: .13s; }
.w-copy.is-on > :nth-child(4) { transition-delay: .19s; }
.w-copy.is-on > :nth-child(5) { transition-delay: .25s; }

.w-title {
  font-size: clamp(40px, 5.6vw, 96px);
  font-weight: 300; font-stretch: 112%;
  line-height: .92; letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.w-meta { margin-top: 22px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.dotsep::before {
  content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin-right: 14px; vertical-align: middle; opacity: .55;
}
.w-desc { margin-top: 16px; font-size: clamp(15px, 1.22vw, 18.5px); line-height: 1.5; color: var(--ink-2); }
.w-desc b { color: var(--ink); font-weight: 600; }
.w-stats { margin-top: 22px; display: flex; gap: 30px; flex-wrap: wrap; }
.w-stats div { display: flex; flex-direction: column; }
.w-stats strong { font-size: clamp(22px, 2vw, 32px); font-weight: 400; font-stretch: 110%; line-height: 1; }
.w-stats span { margin-top: 7px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.w-link {
  margin-top: 26px; display: inline-flex; gap: 12px; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  transition: border-color .3s;
}
.w-link .arr { display: inline-block; color: var(--accent); transition: transform .4s var(--ease-out); }
.w-link:hover { border-color: var(--ink); }
.w-link:hover .arr { transform: translateX(5px); }

.work-visual { position: relative; display: grid; height: min(62vh, 44vw); min-height: 0; }
.w-vis {
  grid-area: 1 / 1; position: relative;
  border-radius: 6px; overflow: hidden;
  opacity: 0; filter: blur(26px) saturate(.5); transform: scale(1.05);
  visibility: hidden;
  transition: opacity .9s var(--ease-out), filter 1s var(--ease-out), transform 1.3s var(--ease-out), visibility 0s linear 1s;
}
.w-vis.is-on {
  opacity: 1; filter: none; transform: none; visibility: visible;
  transition: opacity .9s var(--ease-out), filter 1s var(--ease-out), transform 1.3s var(--ease-out), visibility 0s;
}

.work-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 32px); margin-right: 110px; }
.tab {
  position: relative; text-align: left;
  padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .4s;
}
.tab .n { margin-right: 10px; opacity: .7; }
.tab .bar {
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.tab.is-on, .tab:hover { color: var(--ink); }

/* project visuals */
.vis-kidley { background: radial-gradient(120% 100% at 85% 0%, #9A8BF5 0%, #4B3DB0 38%, #1B1747 78%, #120F30 100%); }
.phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phone {
  height: 80%; aspect-ratio: 738 / 1600; margin: 0 -2.4%;
  border-radius: clamp(12px, 1.7vw, 26px); overflow: hidden;
  border: clamp(3px, .35vw, 5px) solid #0D0C14;
  background: #000;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .55);
  transition: transform .9s var(--ease-out);
}
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ai-phones { z-index: 2; }
.ai-phones .phone { position: relative; border-color: #0E0E0E; }
.ai-phones .phone .ph-poster { position: absolute; inset: 0; }
.ai-phones .phone video { position: relative; }
.phone:nth-child(1) { transform: rotate(-8deg) translateY(6%); }
.phone:nth-child(2) { position: relative; z-index: 2; height: 87%; }
.phone:nth-child(3) { transform: rotate(8deg) translateY(6%); }
.vis-kidley:hover .phone:nth-child(1) { transform: rotate(-12deg) translate(-9%, 4%); }
.vis-kidley:hover .phone:nth-child(2) { transform: translateY(-3%); }
.vis-kidley:hover .phone:nth-child(3) { transform: rotate(12deg) translate(9%, 4%); }

.vis-meta { background: radial-gradient(120% 120% at 15% 0%, #2F5B45 0%, #173326 50%, #0C1C15 100%); }
.shot {
  position: absolute; border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, .6);
  transition: transform 1s var(--ease-out);
}
.shot img { width: 100%; height: auto; }
.shot.s1 { width: 56%; left: 7%; top: 30%; transform: rotate(-2.5deg); z-index: 2; }
.shot.s2 { width: 80%; right: 4%; top: 9%; transform: rotate(2.5deg); opacity: .92; }
.vis-meta:hover .s1 { transform: rotate(-1deg) translateY(-4%); }
.vis-meta:hover .s2 { transform: rotate(4.5deg) translate(3%, -2%); }
.roas-chip {
  position: absolute; right: 5%; bottom: 8%; z-index: 3;
  display: flex; flex-direction: column;
  padding: 14px 20px 12px; border-radius: 14px;
  background: #EEF0E6; color: #121212;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
}
.roas-chip strong { font-size: clamp(28px, 3.2vw, 54px); font-weight: 400; font-stretch: 112%; line-height: .9; }
.roas-chip span { margin-top: 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.vis-feed { background: #D5CEC0; }
html.night .vis-feed { background: #1E2130; }
.fan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fan .card {
  height: 66%; aspect-ratio: 676 / 1200; flex: 0 0 auto; margin: 0 -2.6%;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .42);
  transition: transform .9s var(--ease-out), margin .9s var(--ease-out);
}
.fan .card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan .card:nth-child(1) { transform: rotate(-9deg) translateY(6%); }
.fan .card:nth-child(2) { transform: rotate(-3deg); z-index: 1; }
.fan .card:nth-child(3) { transform: rotate(3deg); z-index: 2; }
.fan .card:nth-child(4) { transform: rotate(9deg) translateY(6%); z-index: 3; }
.vis-feed:hover .fan .card { margin: 0 .6%; transform: none; }

.vis-seo {
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 80% 100%, #3a3a36 0%, #1a1a18 55%, #101010 100%);
}
.seo-big {
  position: absolute; left: 4%; bottom: -8%;
  font-size: clamp(120px, 21vw, 360px); font-weight: 200; font-stretch: 120%; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
}
.serp {
  position: relative; width: min(80%, 450px);
  padding: 18px; border-radius: 14px;
  background: #F4F3EE; color: #151515;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .6);
}
.serp-q {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 30px; background: #E4E3DC;
  font-size: 13.5px; color: #3a3a36;
}
.mag { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.mag::after { content: ''; position: absolute; width: 5px; height: 1.5px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.serp-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.serp-row:last-child { border-bottom: 0; }
.serp-row .rank { font-size: 20px; font-stretch: 112%; color: #77766F; }
.serp-row.top .rank { color: #151515; }
.serp-name { font-weight: 600; font-size: 15px; }
.serp-sub { font-size: 13px; color: #555; }
.stars { color: #C98A1B; letter-spacing: 1px; }
.serp-tag {
  padding: 5px 10px; border-radius: 20px; background: #151515; color: #F4F3EE;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
}
.skel { display: block; height: 8px; border-radius: 5px; background: rgba(0, 0, 0, .1); }
.skel + .skel { margin-top: 8px; }

.vis-ai { display: grid; place-items: center; background: #0D0D0D; color: #fff; }
.vis-ai .glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, #2a2a2a, #7a6440, #1b1b1b, #3b4a5a, #2a2a2a);
  filter: blur(60px); opacity: .6;
  animation: spin 16s linear infinite;
}
.vis-ai .grain {
  position: absolute; inset: 0; opacity: .25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@keyframes spin { to { transform: rotate(1turn); } }
.play {
  position: relative; display: grid; place-items: center;
  width: clamp(72px, 7vw, 112px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
}
.play::after {
  content: ''; margin-left: 6px;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.play::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  animation: ring 2.4s var(--ease-out) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.ai-cap { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: rgba(255, 255, 255, .72); }

/* ---------- Brands marquee ---------- */
.brands { padding: 16vh 0 14vh; }
.label-row { display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); margin-bottom: 28px; }
.label-row .muted { margin-left: auto; }
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2.2vw 0;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.mq-group { display: flex; align-items: center; flex: 0 0 auto; }
.mq-group li {
  display: flex; align-items: center;
  font-size: clamp(38px, 6.2vw, 104px); font-weight: 300; font-stretch: 112%;
  line-height: 1.02; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em;
}
.mq-group li::after {
  content: ''; width: .13em; height: .13em; border-radius: .02em;
  background: var(--accent); margin: 0 .55em; transform: rotate(45deg);
}
.mq-group li > span { transition: opacity .35s; }
@media (hover: hover) {
  .marquee:hover li > span { opacity: .28; }
  .marquee li:hover > span { opacity: 1; }
}
html.no-motion .marquee { overflow-x: auto; }

/* logo strip: every logo is a single-colour silhouette (ink by day, cream by night, ember on hover) */
.marquee.logos { --lh: clamp(38px, 4.4vw, 74px); padding: clamp(26px, 3.4vw, 52px) 0; }
.marquee.logos .mq-group li { font-size: clamp(30px, 3.6vw, 60px); }
.marquee.logos .mq-group li::after { margin: 0 1.1em; }
.logo {
  display: block;
  height: calc(var(--lh) * var(--h, 1));
  aspect-ratio: var(--r, 2);
  background-color: var(--ink);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: background-color .35s, opacity .35s;
}

/* hover: the silhouette gives way to the real logo, on a small card in the colour it was designed for */
.logo-wrap { position: relative; display: block; }
.logo-wrap[data-tone="light"] { --chip: #17140F; }   /* white or gold logos sit on dark */
.logo-wrap[data-tone="dark"] { --chip: #FBF8F2; }    /* black logos sit on light */
html.night .logo-wrap[data-tone="light"] { --chip: #1C2030; }
.logo-wrap::before {
  content: ''; position: absolute; inset: -16px -22px; z-index: 0;
  border-radius: 14px; background: var(--chip);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.88);
  transition: opacity .35s, transform .55s var(--ease-out);
}
.logo-wrap .logo { position: relative; z-index: 1; }
.logo-color {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0;
  transition: opacity .35s, transform .6s var(--ease-out);
}
.marquee.logos li:hover .logo { opacity: 0; }
.marquee.logos li:hover .logo-color { opacity: 1; transform: scale(1.06); }
.marquee.logos li:hover .logo-wrap::before { opacity: 1; transform: scale(1); }

/* ---------- Services ---------- */
.services { padding: 12vh var(--pad) 10vh; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 6vh; flex-wrap: wrap; }
.sec-head .label { margin-bottom: 22px; }
.sec-title {
  font-size: clamp(40px, 6vw, 104px); font-weight: 300; font-stretch: 112%;
  line-height: .92; text-transform: uppercase; letter-spacing: -.01em;
}
.sec-sub { max-width: 380px; color: var(--ink-2); font-size: 15.5px; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 34%);
  gap: 20px; align-items: center;
  padding: clamp(16px, 2.1vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .45s;
}
.svc-n { color: var(--accent); }
.svc-name {
  font-size: clamp(30px, 4.6vw, 78px); font-weight: 300; font-stretch: 112%;
  line-height: .95; text-transform: uppercase; letter-spacing: -.01em;
  transition: transform .7s var(--ease-out);
}
.svc-desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (hover: hover) {
  .svc-list:hover .svc-row { opacity: .26; }
  .svc-list .svc-row:hover { opacity: 1; }
  .svc-row:hover .svc-name { transform: translateX(18px); }
}
.toolkit { margin-top: 6vh; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.toolkit p:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; max-width: 900px; }

.svc-preview { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; width: clamp(200px, 21vw, 320px); }
.svc-preview .inner {
  border-radius: 6px; overflow: hidden;
  transform: scale(.2); opacity: 0;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .45);
  transition: transform .55s var(--ease-out), opacity .3s;
}
.svc-preview.on .inner { transform: scale(1); opacity: 1; }
.svc-preview img { width: 100%; height: auto; max-height: 380px; object-fit: cover; object-position: top; }
@media (hover: none) { .svc-preview { display: none; } }

/* ---------- About ---------- */
.about { position: relative; padding: 16vh var(--pad) 12vh; }
.about-label { margin-bottom: 5vh; }
.about-hero { position: relative; height: clamp(440px, 58vw, 880px); }
.hi, .name-big {
  position: absolute;
  font-size: clamp(54px, 11.4vw, 200px); font-weight: 300; font-stretch: 112%;
  line-height: .86; text-transform: uppercase; letter-spacing: -.01em;
}
.hi { left: 0; top: 0; }
.name-big { right: 0; bottom: 25%; z-index: 2; mix-blend-mode: difference; color: #FFFBED; pointer-events: none; }
.portrait { position: absolute; left: 27%; top: 2%; width: clamp(220px, 34vw, 540px); aspect-ratio: .85; }
.portrait canvas { display: block; width: 100%; height: 100%; }
.portrait-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.about-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 8vw; margin-top: 8vh; padding: 0 6vw; }
.about-main { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.45; }
.about-side p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 40px; border: 1px solid var(--ink);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  transition: background .3s, color .3s;
}
.btn { padding: 11px 18px; }
.pill-btn { padding: 9px 16px; min-width: 88px; }
.btn:hover, .pill-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 26px var(--pad) 24px;
}
.lets {
  margin-top: 3vh;
  font-size: clamp(64px, 13.4vw, 236px); font-weight: 300; font-stretch: 112%;
  line-height: .86; text-transform: uppercase; letter-spacing: -.012em;
}
.lets .b { text-align: right; }
.c-rows { width: min(660px, 100%); margin: 5vh 0 0 auto; border-top: 1px solid var(--line); }
.c-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.c-row .v { font-size: 15.5px; overflow-wrap: anywhere; }
.c-foot {
  margin-top: auto; padding-top: 6vh; padding-right: 110px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
}
.c-mid { text-transform: none; letter-spacing: .02em; font-size: 14px; }
.c-foot .r { text-align: right; }
.c-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  background: rgba(10, 10, 10, .94); color: #EEECE6;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility 0s linear .4s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.lightbox .pill-btn { border-color: #EEECE6; }
.lightbox .pill-btn:hover { background: #EEECE6; color: #0A0A0A; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); }
.lb-track {
  flex: 1; min-height: 0;
  display: flex; gap: 28px; align-items: stretch;
  overflow-x: auto; overscroll-behavior: contain;
  padding: 0 var(--pad) 28px;
  scroll-snap-type: x mandatory;
}
.lb-track figure { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: center; height: 100%; }
.lb-track img { height: calc(100% - 34px); width: auto; max-width: 88vw; object-fit: contain; border-radius: 6px; background: #1a1a1a; }
.lb-track figcaption { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #A9A69E; max-width: 88vw; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Motion off ---------- */
html.no-motion *,
html.no-motion *::before,
html.no-motion *::after { animation: none !important; transition: none !important; }
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
html.no-motion .w-copy > *, html.no-motion .w-vis { filter: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 40%); }
  .about-cols { padding: 0; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .site-head { padding-top: 18px; }
  .menu-pill { opacity: 1; transform: none; pointer-events: auto; top: 16px; padding: 12px 16px; gap: 10px; }
  .menu { clip-path: circle(0px at calc(100% - var(--pad) - 44px) 38px); }
  .menu.open { clip-path: circle(150vmax at calc(100% - var(--pad) - 44px) 38px); }

  .hero-title { top: 46%; }
  .hero-foot { grid-template-columns: 1fr; bottom: 24px; padding-right: 96px; }
  .hero-foot .scroll-cue { display: none; }

  .intro { height: 200vh; }

  .work { height: 560vh; }
  .work-pin { gap: 12px; padding: 74px var(--pad) 18px; }
  .work-head { min-height: 0; }
  .work-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; align-content: center; }
  .work-visual { order: -1; height: 33vh; height: 33svh; }
  .w-title { font-size: 36px; }
  .w-meta { margin-top: 12px; }
  .w-desc { margin-top: 10px; font-size: 14.5px; }
  .w-stats { margin-top: 14px; gap: 20px; }
  .w-stats strong { font-size: 20px; }
  .w-link { margin-top: 16px; }
  .phone { border-radius: 12px; }
  .fan .card { height: 70%; margin: 0 -5%; }
  .shot.s1 { width: 50%; top: 20%; }
  .shot.s2 { width: 86%; }
  .work-tabs { gap: 8px; }
  .tab { font-size: 10px; letter-spacing: .1em; padding-top: 10px; }
  .tab .lbl { display: none; }

  .label-row .muted { display: none; }

  .svc-row { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 12px; }
  .svc-desc { grid-column: 2; font-size: 14px; }
  .toolkit { grid-template-columns: 1fr; gap: 8px; }

  .about-hero { height: 132vw; }
  .portrait { left: 13%; top: 11vw; width: 72vw; }
  .hi, .name-big { font-size: 16vw; }
  .name-big { bottom: 16%; }
  .about-cols { grid-template-columns: 1fr; gap: 30px; margin-top: 5vh; }

  .lets { font-size: 15vw; margin-top: 4vh; }
  .c-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .c-row .k { grid-column: 1 / -1; }
  .c-foot { grid-template-columns: 1fr; gap: 6px; padding-right: 96px; }
  .c-foot .r { text-align: left; }
}

@media (max-width: 760px) and (max-height: 760px) {
  .w-stats { display: none; }
}

/* ==========================================================
   Multi-page additions: transitions, sub-page layout,
   services, portfolio, contact
   ========================================================== */

/* page transition: arrive covered, then the curtain lifts */
html.pt-in .curtain { visibility: visible; }
html.pt-in .curtain i { transform: translateY(0) skewY(-6deg); }
html.pt-in .c-fill { background: var(--bg); }

/* form fields keep a normal text cursor */
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto !important; }

.nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-links a[aria-current="page"] { color: var(--accent); }

/* ---------- shared sub-page pieces ---------- */
.page-hero {
  position: relative;
  min-height: 86vh; min-height: 86svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--pad) 56px;
}
.page-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 3vh; }
.page-title {
  font-size: clamp(56px, 12.6vw, 218px); font-weight: 300; font-stretch: 114%;
  line-height: .86; letter-spacing: -.012em; text-transform: uppercase;
}
.page-title .r { text-align: right; }
.page-title .acc { color: var(--accent); }
.page-hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  margin-top: 6vh;
}
.page-lede { max-width: 600px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; color: var(--ink-2); }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6vh; border-top: 1px solid var(--line);
}
.fact { padding: 18px 20px 0 0; }
.fact .k { color: var(--muted); }
.fact .v { margin-top: 6px; font-size: 16px; }
.fact .v .live { margin-right: 8px; }

.sec { position: relative; padding: 13vh var(--pad); }
.sec-label { display: flex; align-items: center; gap: 14px; margin-bottom: 4vh; }
.sec-h {
  font-size: clamp(38px, 5.6vw, 96px); font-weight: 300; font-stretch: 112%;
  line-height: .92; letter-spacing: -.01em; text-transform: uppercase;
}
.sec-intro { max-width: 520px; margin-top: 22px; color: var(--ink-2); font-size: 16.5px; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 6vh; }

.btn-big {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px; border-radius: 60px;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; font-stretch: 110%;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  box-shadow: 0 14px 34px -14px rgba(229, 70, 26, .7);
}
.btn-big:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 40px -14px rgba(229, 70, 26, .8); }
.btn-big .arr { transition: transform .4s var(--ease-out); }
.btn-big:hover .arr { transform: translateX(5px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 19px 28px; border-radius: 60px; border: 1px solid var(--ink);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  transition: background .3s, color .3s;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* call-to-action band + footer bar */
.cta-band { position: relative; padding: 18vh var(--pad) 12vh; }
.cta-band .lets { margin-top: 0; }
.cta-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-top: 6vh; }
.cta-row p { max-width: 440px; color: var(--ink-2); font-size: 17px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 24px 110px 24px var(--pad);
  border-top: 1px solid var(--line);
}
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.foot nav a:hover, .foot .r a:hover { color: var(--accent); }
.foot .r { text-align: right; }

/* ---------- services page ---------- */
.svc-group {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2fr); gap: 5vw;
  padding: 9vh 0; border-top: 1px solid var(--line);
}
.svc-group-head { position: sticky; top: 110px; align-self: start; }
.svc-group-head .num { color: var(--accent); }
.svc-group-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 3.6vw, 58px); font-weight: 300; font-stretch: 112%;
  line-height: .95; text-transform: uppercase;
}
.svc-group-head p { margin-top: 16px; color: var(--ink-2); max-width: 300px; font-size: 15.5px; }
.svc-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4vw;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.svc-card:first-child { padding-top: 0; }
.svc-card:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-card h3 {
  font-size: clamp(28px, 3vw, 48px); font-weight: 300; font-stretch: 112%;
  line-height: .95; text-transform: uppercase;
  transition: transform .6s var(--ease-out);
}
.svc-card:hover h3 { transform: translateX(10px); }
.svc-card .one { margin-top: 14px; color: var(--ink-2); font-size: 16px; max-width: 460px; }
.proof {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 8px 14px; border-radius: 30px; border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
}
.proof b { color: var(--accent); font-weight: 600; }
.get { margin-top: 4px; }
.get li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2);
}
.get li::before {
  content: ''; flex: 0 0 auto; width: 6px; height: 6px; transform: rotate(45deg) translateY(-2px);
  background: var(--accent); border-radius: 1px;
}
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.svc-foot .tools { color: var(--muted); font-size: 12.5px; }
.svc-foot .w-link { margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.step::before {
  content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}
.step.in::before { transform: scaleX(1); }
.step .n { color: var(--accent); }
.step h3 { margin-top: 12px; font-size: 24px; font-weight: 400; font-stretch: 112%; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.js .steps .step:nth-child(2) { transition-delay: .08s; }
.js .steps .step:nth-child(3) { transition-delay: .16s; }
.js .steps .step:nth-child(4) { transition-delay: .24s; }
.js .steps .step:nth-child(5) { transition-delay: .32s; }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6vw; align-items: start; }
.pricing .sec-intro { max-width: 460px; }
.pricing .btn-big { margin-top: 30px; }
.factors { border-top: 1px solid var(--ink); }
.factor { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.factor .n { color: var(--accent); }
.factor h3 { font-size: 24px; font-weight: 400; font-stretch: 112%; text-transform: uppercase; }
.factor p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- portfolio page ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 var(--pad);
}
.stat { padding: 34px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(40px, 4.8vw, 80px); font-weight: 300; font-stretch: 112%; line-height: 1; letter-spacing: -.01em; }
.stat .lab { margin-top: 12px; }
.stat .sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3vh; }
.filter-chip, .chip-check span {
  display: inline-block; padding: 10px 16px; border-radius: 30px; border: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; font-stretch: 110%;
  transition: background .3s, color .3s, border-color .3s;
}
.filter-chip:hover, .chip-check span:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-count { margin-left: auto; color: var(--muted); }

.cases { border-top: 1px solid var(--ink); }
.case { border-bottom: 1px solid var(--line); animation: caseIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes caseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.case-head {
  width: 100%;
  display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) minmax(120px, auto) 44px;
  gap: 24px; align-items: center; padding: 30px 0; text-align: left;
}
.case-head .n { color: var(--accent); }
.case-title {
  display: block;
  font-size: clamp(26px, 3.1vw, 50px); font-weight: 300; font-stretch: 112%;
  line-height: .95; text-transform: uppercase;
  transition: transform .6s var(--ease-out);
}
.case-title small {
  display: block; margin-top: 10px;
  font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 500; font-stretch: 110%;
}
.case-head:hover .case-title { transform: translateX(12px); }
.case-tags { color: var(--muted); }
.case-key { font-size: clamp(22px, 2.3vw, 36px); font-weight: 400; font-stretch: 110%; line-height: 1; text-align: right; }
.case-key span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.case-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), background .3s, border-color .3s;
}
.case-toggle::before, .case-toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: currentColor;
}
.case-toggle::after { transform: rotate(90deg); }
.case-head:hover .case-toggle { border-color: var(--ink); }
.case.open .case-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.case-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.case.open .case-body { grid-template-rows: 1fr; }
.case-inner { overflow: hidden; min-height: 0; }
.case-content {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 5vw;
  padding: 6px 0 56px 88px;
}
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 30px; color: var(--muted); }
.case-meta b { color: var(--ink); font-weight: 500; }
.case-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.case-steps h4 { color: var(--accent); margin-bottom: 8px; }
.case-steps p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.case-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; align-self: start;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.res { background: var(--bg); padding: 22px 20px; }
.res b { display: block; font-size: clamp(26px, 2.4vw, 38px); font-weight: 400; font-stretch: 110%; line-height: 1; }
.res span { display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.case-aside .w-link { margin-top: 22px; }
.case-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease-out);
}
.index-row:hover { padding-left: 14px; }
.index-row .brand-n { font-size: clamp(20px, 2vw, 30px); font-stretch: 110%; }
.index-row .what { color: var(--muted); }
.index-row .sector { color: var(--ink-2); font-size: 14px; }

/* AI film grid */
.film-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.film {
  position: relative; display: block; padding: 0;
  aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: #111 center / cover no-repeat;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.film:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 44px 12px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #FBF8F2;
}
.film-cap b { font-size: 15px; font-weight: 500; font-stretch: 108%; }
.film-cap .caps { font-size: 10px; color: rgba(251, 248, 242, .78); }
.film-play {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
  transition: background .3s, transform .5s var(--ease-out);
}
.film-play::after {
  content: ''; margin-left: 3px;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.film:hover .film-play { background: var(--accent); transform: scale(1.1); }
.lb-track video { height: calc(100% - 34px); width: auto; max-width: 88vw; border-radius: 6px; background: #000; }
@media (max-width: 1024px) { .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .film-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .film { border-radius: 10px; } }

/* case covers + creative gallery */
.case-cover { margin: 0 0 16px; border-radius: 8px; overflow: hidden; background: #15132B; border: 1px solid var(--line); }
.case-cover img { width: 100%; height: auto; }
.cg-grid { columns: 4 240px; column-gap: 14px; }
.cg-item {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0;
  break-inside: avoid; border-radius: 10px; overflow: hidden;
  background: var(--pill); text-align: left;
  animation: caseIn .6s var(--ease-out) both;
}
.cg-item[hidden] { display: none; }
.cg-item img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out); }
.cg-item:hover img { transform: scale(1.05); }
.cg-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 48px 14px 13px;
  background: linear-gradient(transparent, rgba(12, 9, 6, .78));
  color: #FBF8F2;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.cg-item:hover .cg-cap, .cg-item:focus-visible .cg-cap { opacity: 1; transform: none; }
.cg-cap b { font-size: 15px; font-weight: 500; font-stretch: 108%; }
.cg-cap .caps { font-size: 10px; color: rgba(251, 248, 242, .78); }
@media (hover: none) { .cg-cap { opacity: 1; transform: none; } }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  min-height: 320px; padding: 34px 30px 28px;
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--pill) 55%, transparent);
  transition: transform .6s var(--ease-out), border-color .3s;
}
.quote:hover { transform: translateY(-6px); border-color: var(--accent); }
.quote::before { content: '“'; position: absolute; top: 4px; right: 22px; font-size: 96px; line-height: 1; color: var(--accent); font-stretch: 112%; }
.quote p { font-size: 18px; line-height: 1.5; padding-right: 26px; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; letter-spacing: .04em;
}

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 6vw; padding: 2vh var(--pad) 14vh; }
.direct .c-rows { width: 100%; margin: 0; }
.note-box { margin-top: 30px; padding: 24px; border-radius: 14px; border: 1px solid var(--line); }
.note-box p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.form-card { position: relative; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0 12px; outline: none;
  transition: border-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 8px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 2px center / 6px 6px no-repeat;
}
.field select option { color: #17140F; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #C9361A; }
.field .err { display: none; font-size: 12.5px; color: #C9361A; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form-actions button.btn-big { border: 0; cursor: pointer; }
.form-status { font-size: 14px; color: var(--ink-2); }
.form-status[data-kind="err"] { color: #C9361A; }
.form-status[data-kind="ok"] { color: var(--ink); }
.form-fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.form.sent { display: none; }
.sent-msg { padding: 40px; border-radius: 16px; border: 1px solid var(--accent); }
.sent-msg h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 300; font-stretch: 112%; text-transform: uppercase; }
.sent-msg p { margin-top: 12px; color: var(--ink-2); }

/* ---------- sub-page responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .case-head { grid-template-columns: 50px minmax(0, 1.4fr) minmax(110px, auto) 44px; }
  .case-tags { display: none; }
  .case-content { padding-left: 74px; }
}

@media (max-width: 760px) {
  .page-hero { min-height: 74svh; padding: 110px var(--pad) 40px; }
  .page-title { font-size: 15.5vw; }
  .page-hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-foot > a { justify-self: start; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .sec { padding: 10vh var(--pad); }

  .svc-group { grid-template-columns: 1fr; gap: 30px; padding: 7vh 0; }
  .svc-group-head { position: static; }
  .svc-card { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; gap: 40px; }

  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filter-count { width: 100%; margin-left: 0; }
  .case-head { grid-template-columns: minmax(0, 1fr) 40px; gap: 12px 16px; padding: 24px 0; }
  .case-head .n { grid-column: 1 / -1; }
  .case-key { grid-column: 1; grid-row: 3; text-align: left; }
  .case-toggle { grid-column: 2; grid-row: 2; width: 40px; height: 40px; }
  .case-content { grid-template-columns: 1fr; padding: 0 0 40px; gap: 30px; }
  .case-steps { grid-template-columns: 1fr; gap: 22px; }
  .index-row { grid-template-columns: 1fr auto; }
  .index-row .sector { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
  .cg-grid { columns: 2; column-gap: 10px; }
  .cg-item { margin-bottom: 10px; border-radius: 8px; }
  .cg-cap { padding: 36px 10px 9px; }
  .cg-cap b { font-size: 13px; }

  .contact-grid { grid-template-columns: 1fr; gap: 50px; padding-bottom: 10vh; }
  .form { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; text-align: left; padding-right: 96px; }
  .foot nav { justify-content: flex-start; }
  .foot .r { text-align: left; }
}
