/* ==========================================================================
   Mayank Soni - "Key Art"
   The site is a title sequence: cold open, the cut, the feed, the craft,
   the acts, post-credits. Basalt, moonlight and Mayank's brand blue.
   Archivo's width axis does the dramatic work so no imagery has to.
   ========================================================================== */

:root {
  --ink: #0b0c10;          /* basalt */
  --ink-2: #121419;
  --void: #050507;
  --bone: #e8eaf0;         /* moonlight */
  --bone-2: #a2a8b8;
  --mute: #8a91a2;         /* 6.0:1 on ink */
  --line: rgba(var(--bone-rgb), 0.12);
  --ink-rgb: 11, 12, 16;
  --bone-rgb: 232, 234, 240;
  --mute-inv: #4a5060;     /* muted text on bone surfaces (6.7:1) */
  --on-brand: #e8eaf0;     /* text on brand blue, both themes (8.5:1) */
  --live: #1fa95a;

  --brand: #0011e6;        /* fills: contact, hovered acts, wipe */
  --accent: #4888ef;       /* blue that must read on ink (5.6:1) */
  --accent-hot: #8fb4ff;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--nav-h); }
main, section { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
[data-light] :focus-visible { outline-color: currentColor; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 12px 16px; background: var(--bone); color: var(--ink);
}
.skip:focus { top: 16px; }

/* ---------- Preloader (short; skipped on return visits) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  background: var(--void);
  clip-path: inset(0 0 0 0);
}
.seen .loader { display: none; }
.loader__count {
  font-weight: 900; font-size: clamp(96px, 22vw, 320px);
  letter-spacing: -0.05em; line-height: 1;
  font-variation-settings: "wdth" 62;
  font-variant-numeric: tabular-nums;
}
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
}

/* Page-leave wipe for project links */
.wipe {
  position: fixed; inset: 0; z-index: 240; pointer-events: none;
  background: var(--brand); transform: scaleY(0); transform-origin: bottom;
}

/* ---------- Progress, grain, cursor, reel ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 210; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 230; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #e8eaf0; mix-blend-mode: difference; opacity: 0;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, opacity 0.3s;
  will-change: transform;
}
.cursor.is-active { opacity: 1; }
.cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-brand); opacity: 0; transition: opacity 0.2s; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--brand); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.reel {
  position: fixed; left: var(--gutter); bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 12px; color: var(--bone);
  mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.reel.is-on { opacity: 1; }
.reel__sep { width: 32px; height: 1px; background: currentColor; }
.reel__t { display: inline-block; }
@media (max-width: 1024px) { .reel { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone);
  transition: transform 0.6s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
/* a soft scrim once the page has moved, so the nav never sits on busy imagery unreadably */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0.85), rgba(var(--ink-rgb), 0));
  opacity: 0; transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.on-light::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-110%); }
.nav a { text-decoration: none; }
.nav__brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.nav__mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__brand:hover .nav__mark { background: var(--bone); color: var(--ink); }
.nav__links { display: flex; gap: 36px; }
.nav__links a { position: relative; padding: 14px 0; opacity: 0.7; transition: opacity 0.3s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 12px; }

.nav.on-light { color: var(--ink); }
.nav.on-light .pill { background: var(--ink); color: var(--bone); }
.nav.on-blue { color: var(--on-brand); }
.nav.on-blue .pill { background: var(--on-brand); color: var(--brand); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--bone); color: var(--ink); text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd576; box-shadow: 0 0 0 0 rgba(43, 213, 118, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(43, 213, 118, 0); } }
.pill--ink { background: var(--ink); color: var(--bone); min-height: 48px; padding: 0 24px; }
.pill--ink:hover { background: var(--brand); color: var(--on-brand); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 190;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--brand); color: var(--on-brand);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu li { overflow: hidden; border-bottom: 1px solid rgba(232, 234, 240, 0.25); }
.menu li a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none;
  font-weight: 900; font-size: clamp(48px, 14vw, 96px); line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase;
  font-variation-settings: "wdth" 75;
  transform: translateY(100%); transition: transform 0.8s var(--ease), font-variation-settings 0.6s var(--ease);
}
.menu.is-open li a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.menu li a:hover, .menu li a:focus-visible { font-variation-settings: "wdth" 125; }
.menu li a .mono { font-weight: 400; letter-spacing: 0.08em; }
.menu__foot { display: flex; flex-direction: column; gap: 12px; }
.menu__foot a { padding: 8px 0; }
.nav.menu-open { color: var(--on-brand); }
.nav.menu-open .pill { display: none; }
.nav.menu-open::before { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 120px var(--gutter) 40px;
}
.hero__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; color: var(--mute); }
.hero__title {
  margin: 4vh 0 0; font-weight: 900; line-height: 0.8; letter-spacing: -0.045em;
  text-transform: uppercase;
}
/* poster layering: MAYANK sits behind the figure, SONI in front of it */
.hero__line { display: block; position: relative; z-index: 1; font-size: clamp(56px, 17.5vw, 290px); white-space: nowrap; }
.hero__line--b { z-index: 4; }
.hero__line--a { font-variation-settings: "wdth" 62; }
.hero__line--b { font-variation-settings: "wdth" 125; text-align: right; color: var(--accent); }
.char { display: inline-block; will-change: transform; }
.char--sp { width: 0.22em; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }

.hero__me {
  position: absolute; z-index: 3; margin: 0; pointer-events: none;
  /* the cutout sits small in a wide transparent frame, so the frame is scaled
     well past the viewport to make the figure itself read at headline size */
  /* parked in the empty space under MAYANK, left of SONI, so nothing crosses the figure */
  left: 24%; top: 2vh; width: clamp(760px, 100vw, 1700px); transform: translateX(-52%);
}
.hero__me img { width: 100%; height: auto; filter: contrast(1.05) drop-shadow(0 30px 60px rgba(0, 17, 230, 0.25)); }

.hero__foot {
  margin-top: auto; padding-top: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px;
  position: relative; z-index: 4;
}
.hero__lede { margin: 0; max-width: 520px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dt { color: var(--mute); }
.stats dd { margin: 0; font-size: clamp(40px, 4vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  min-height: 44px; margin-top: 24px; color: var(--mute); text-decoration: none; position: relative; z-index: 4;
}
.hero__scroll:hover { color: var(--bone); }
.hero__scroll-line { width: 1px; height: 32px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--accent);
  animation: drip 1.8s var(--ease-io) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 28px 0; }
.ticker__track { display: flex; width: max-content; }
.ticker__set {
  display: flex; align-items: center; gap: 56px; padding-right: 56px;
  font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.02em; text-transform: uppercase;
  font-variation-settings: "wdth" 110; white-space: nowrap;
}
.ticker__set i { font-style: normal; color: var(--accent); font-size: 0.6em; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: 64px; }
.display {
  margin: 0; font-weight: 900; line-height: 0.84; letter-spacing: -0.045em; text-transform: uppercase;
  font-size: clamp(52px, 9vw, 150px);
}
.display--narrow { font-variation-settings: "wdth" 72; }
.display em { font-style: normal; color: var(--accent); }
.display--morph span { display: block; }
.display--morph span:first-child { font-variation-settings: "wdth" 62; }
.display--morph span:last-child { font-variation-settings: "wdth" 125; }
.sec-note { margin: 0; max-width: 340px; line-height: 1.7; color: var(--mute); }
.sec-note--body { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; text-transform: none; line-height: 1.5; color: var(--bone-2); max-width: 380px; }

/* ---------- Work index ---------- */
.work { padding: 160px var(--gutter) 120px; position: relative; }
.index { border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px 56px; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.index__thumb { display: none; }
.index__n, .index__tag { color: var(--mute); transition: color 0.4s; }
.index__go {
  justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 18px; transition: background 0.4s var(--ease), border-color 0.4s, transform 0.5s var(--ease);
}
.index__t {
  font-size: clamp(34px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-transform: uppercase;
  font-variation-settings: "wdth" 100;
  transition: font-variation-settings 0.7s var(--ease), color 0.4s, transform 0.7s var(--ease), opacity 0.4s;
}
.index a:focus-visible .index__t { color: var(--accent); }
@media (hover: hover) {
  .index a:hover .index__t { font-variation-settings: "wdth" 125; color: var(--accent); transform: translateX(16px); }
  .index a:hover .index__go { background: var(--brand); border-color: var(--brand); transform: rotate(-45deg); }
  .index a:hover .index__tag { color: var(--bone); }
  .index:hover a:not(:hover) .index__t { opacity: 0.3; }
}

.float {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(260px, 26vw, 440px); aspect-ratio: 16 / 10;
  margin: -8% 0 0 -13%;
}
/* GSAP owns .float's transform (pointer follow); the reveal lives on its children */
.float__inner {
  width: 100%; height: 100%; border-radius: 4px; overflow: hidden;
  background: var(--ink-2) center / contain no-repeat; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: scale(0.7) rotate(-6deg); clip-path: inset(0 0 100% 0);
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease), clip-path 0.6s var(--ease);
}
.float.is-on .float__inner { opacity: 1; transform: scale(1) rotate(-3deg); clip-path: inset(0 0 0 0); }
.float__n {
  position: absolute; left: -12px; top: -12px; padding: 6px 10px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  opacity: 0; transition: opacity 0.3s;
}
.float.is-on .float__n { opacity: 1; }

/* ---------- Contact sheet ---------- */
.sheet {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
  padding: 40px var(--gutter) 200px;
}
.sheet__f { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.sheet__f .cap { display: flex; justify-content: space-between; color: var(--mute); transition: color 0.3s; }
.sheet__f:hover .cap { color: var(--bone); }
/* one frame shape for every project thumbnail; the creative sits whole inside it, never cropped or stretched */
.clip { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; background: var(--ink-2); }
.clip img { width: 100%; height: 100%; object-fit: contain; }
.sheet__f--1 { grid-column: 1 / span 7; } 
.sheet__f--2 { grid-column: 8 / span 5; margin-top: 160px; }
.sheet__f--3 { grid-column: 2 / span 5; margin-top: -40px; }
.sheet__f--4 { grid-column: 7 / span 6; margin-top: 120px; }

/* ---------- Feed ---------- */
.feed { background: var(--bone); color: var(--ink); }
.feed__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 120px 0 48px; overflow: hidden; }
.feed__head {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end;
  padding: 0 var(--gutter);
}
.feed__head .display { font-size: clamp(52px, 8.5vw, 140px); }
.feed__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.feed__copy p { margin: 0; max-width: 460px; font-size: 22px; line-height: 1.35; }
.feed__rail { overflow: hidden; }
.feed__track { display: flex; gap: 20px; width: max-content; padding: 0 var(--gutter); }
.feed__track img {
  width: clamp(220px, 22vw, 340px); aspect-ratio: 1; object-fit: contain; border-radius: 4px;
  box-shadow: 0 20px 40px rgba(var(--ink-rgb), 0.15);
}
.feed__track img:nth-child(even) { margin-top: 48px; }
.feed__foot { display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); }
.feed__count b { font-weight: 500; }
.feed__progress { flex: 1; height: 2px; background: rgba(var(--ink-rgb), 0.12); }
.feed__progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.feed__hint { color: var(--mute-inv); }

/* ---------- Craft ---------- */
.craft { padding: 200px var(--gutter) 160px; }
.label { color: var(--mute); display: block; }
.craft > .label { margin: 0 0 48px; }
.statement {
  margin: 0; max-width: 1240px; font-size: clamp(32px, 4.8vw, 76px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em;
}
.statement em { font-style: normal; color: var(--accent); }
.statement .w { opacity: 0.22; }
.cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px;
  margin-top: 120px; padding-top: 40px; border-top: 1px solid var(--line);
}
.col ul { margin-top: 20px; }
.col li {
  display: flex; align-items: baseline; gap: 20px;
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.3s;
}
.col li .mono { color: var(--mute); }
@media (hover: hover) { .col li:hover { padding-left: 12px; color: var(--accent-hot); } }

/* ---------- Journey ---------- */
.journey { padding: 40px var(--gutter) 200px; }
.acts {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.acts__line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 2; pointer-events: none; }
.acts__line span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.act {
  display: flex; flex-direction: column; gap: 20px; padding: 32px 28px 40px; min-height: 480px; background: var(--ink);
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
.act__top { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); transition: color 0.6s; }
.act__yr { font-size: clamp(56px, 5vw, 80px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; font-variation-settings: "wdth" 66; transition: font-variation-settings 0.8s var(--ease); }
.act h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; display: flex; flex-direction: column; gap: 8px; }
.act h3 small { font-weight: 400; color: var(--mute); transition: color 0.6s; }
.act p { margin: auto 0 0; font-size: 15px; line-height: 1.55; color: var(--bone-2); transition: color 0.6s; }
.act--now { background: var(--bone); color: var(--ink); }
.act--now .act__top, .act--now h3 small, .act--now p { color: var(--mute-inv); }
.live { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--live); vertical-align: 1px; animation: pulse 2s infinite; }
@media (hover: hover) {
  .act:hover { background: var(--brand); color: var(--on-brand); }
  .act:hover .act__top, .act:hover h3 small, .act:hover p { color: var(--on-brand); }
  .act:hover .act__yr { font-variation-settings: "wdth" 125; }
}
.edu { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 40px; color: var(--mute); }

/* ---------- Contact: compact brief builder on bone ---------- */
.contact { background: var(--bone); color: var(--ink); padding: 120px var(--gutter) 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.contact__title { margin: 0; font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; font-size: clamp(36px, 4.2vw, 68px); }
.contact__title span { display: block; }
.contact__title span:first-child { font-variation-settings: "wdth" 70; }
.contact__title span:last-child { font-variation-settings: "wdth" 100; color: var(--brand); }
.contact__intro p { margin: 0; max-width: 380px; font-size: 18px; line-height: 1.45; }
.contact__time { color: var(--mute-inv); font-size: 12px !important; }
.brief { display: flex; flex-direction: column; gap: 24px; }
.brief fieldset { border: 0; margin: 0; padding: 0 0 20px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.12); }
.brief legend { padding: 0; margin-bottom: 12px; color: var(--mute-inv); }
.brief__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), 0.25);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); transform: translateY(-2px); }
.brief__preview {
  margin: 0; padding: 20px 24px; border-radius: 12px; background: var(--ink); color: var(--bone);
  font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -0.01em;
}
.brief__preview b { color: var(--accent-hot); font-weight: 600; }
.brief__preview .gap { color: var(--mute); border-bottom: 1px dashed var(--mute); }
.brief__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mailbtn {
  display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 32px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-size: 18px; font-weight: 600;
  transition: background 0.3s;
}
.mailbtn span { transition: transform 0.5s var(--ease); }
.mailbtn:hover { background: var(--ink); color: var(--bone); }
.mailbtn:hover span { transform: translateX(6px) rotate(-45deg); }
.copy { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), 0.25); }
.copy:hover { background: var(--ink); color: var(--bone); }
.copy__status { min-height: 1em; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 96px; padding-top: 16px; border-top: 1px solid rgba(var(--ink-rgb), 0.15);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot a { text-decoration: none; padding: 12px 0; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Logo ---------- */
.nav__logo { display: block; height: 40px; width: auto; transition: filter 0.4s, transform 0.5s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.05); }
.nav.on-light .nav__logo { filter: invert(1); }
.nav.menu-open .nav__logo { filter: none; }
.loader__logo { width: clamp(80px, 10vw, 120px); height: auto; }

/* ---------- Hero: name + services deck ---------- */
.hero__role { margin: 0; color: var(--mute); position: relative; z-index: 4; }
.hero__title { margin-top: 3vh; }
.deck {
  position: absolute; z-index: 3; left: var(--gutter); top: 40%;
  width: clamp(220px, 25vw, 400px); aspect-ratio: 16 / 10; perspective: 1200px; transform-style: preserve-3d;
}
.deck__card {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--bone-rgb), 0.08);
  transform: translate(calc(var(--d) * 22px), calc(var(--d) * -14px)) rotate(calc(var(--d) * 4deg - 3deg)) scale(calc(1 - var(--d) * 0.06));
  opacity: calc(1 - var(--d) * 0.22);
  transition: transform 0.8s var(--ease), opacity 0.6s;
}
.deck__card img { width: 100%; height: 100%; object-fit: contain; }
.deck.is-shuffle .deck__card.is-top { animation: deal 0.8s var(--ease); }
@keyframes deal { 0% { transform: translate(-40px, 60px) rotate(-14deg) scale(0.9); } }
.services { position: relative; z-index: 4; margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.services__lead { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.services__list { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 2vw, 32px); }
.svc {
  position: relative; padding: 6px 0 10px; min-height: 44px;
  font-weight: 800; font-size: clamp(22px, 2.5vw, 40px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1;
  font-variation-settings: "wdth" 75; color: var(--mute);
  transition: color 0.4s;
}
.svc:hover, .svc.is-on { color: var(--bone); }
.svc__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.svc.is-on .svc__bar { opacity: 1; }
.svc__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.svc.is-on .svc__bar::after { animation: fill var(--cycle, 2800ms) linear forwards; }
.services.is-paused .svc.is-on .svc__bar::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Games: rules panel + QA board ---------- */
.game__rules { gap: 20px; }
.game__title { font-weight: 900; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.04em; text-transform: uppercase; font-variation-settings: "wdth" 80; }
.game__steps { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 460px; }
.game__steps li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; line-height: 1.4; }
.game__steps b {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.game__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hot) !important; }
.qa__stage { height: clamp(380px, 60vh, 560px); }
.qa__board {
  --n: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px;
  width: min(92%, calc(100% - 40px), clamp(320px, 52vh, 500px)); aspect-ratio: 1;
}
.qa__tile { border-radius: 6px; transition: transform 0.2s var(--ease); }
.qa__tile:hover { transform: scale(0.94); }
.qa__tile.is-wrong { outline: 3px solid #ff6b5b; outline-offset: -3px; }
.qa__stage.is-low { box-shadow: inset 0 0 0 2px #ff6b5b; }
.play--qa { padding-top: 0; }

/* lines that stretch on the width axis stay on one line (sized by fitWide in main.js) */
.display--morph span, .index__t, .act__yr { white-space: nowrap; }
.act__yr { display: block; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 820px) {
  :root { --nav-h: 72px; }
  body { font-size: 17px; }
  .nav__name { display: none; }
  /* visually hidden, still the link's accessible name */
  .pill__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav .pill { padding: 0; width: 44px; justify-content: center; }
  .hero { padding-top: 100px; }
  .hero__meta span:nth-child(2) { display: none; }
  .deck { position: relative; left: auto; top: auto; width: 78%; margin: 40px auto 8px; }
  .services { padding-top: 40px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { position: static; }
  .hero__title { margin-top: 6vh; }
  .work { padding-top: 120px; }
  .index a { grid-template-columns: 72px minmax(0, 1fr) 24px; gap: 16px; padding: 16px 0; }
  .index__n, .index__tag { display: none; }
  .index__thumb { display: block; width: 72px; aspect-ratio: 16 / 10; object-fit: contain; background: var(--ink-2); border-radius: 4px; }
  .index__t { font-size: clamp(24px, 7vw, 34px); }
  .index__go { width: auto; height: auto; border: 0; }
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 120px; }
  .sheet__f { grid-column: auto !important; margin-top: 0 !important; }
  .feed__head, .cols, .contact__row { grid-template-columns: minmax(0, 1fr); }
  /* phones swipe the feed natively instead of being scroll-jacked */
  .feed__pin { min-height: 0; padding: 120px 0 80px; }
  .feed__rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feed__rail::-webkit-scrollbar { display: none; }
  .feed__track img { width: 70vw; scroll-snap-align: center; }
  .feed__track img:nth-child(even) { margin-top: 0; }
  .feed__hint { display: none; }
  .acts { grid-template-columns: minmax(0, 1fr); }
  .act { min-height: 0; }
  .act p { margin-top: 12px; }
  .craft { padding-top: 140px; }
  .col li { gap: 14px; }
  .mailbtn { min-height: 72px; padding: 0 24px; }
  .copy, .copy__status { align-self: flex-start; }
  .foot { margin-top: 96px; }
}

/* ---------- Reduced motion: a still, complete page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .loader, .grain { display: none; }
  .statement .w { opacity: 1; }
  .feed__pin { min-height: 0; }
  .feed__rail { overflow-x: auto; }
}

/* ---------- Safe Zone mini-game ---------- */
.play { padding: 40px var(--gutter) 200px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.game { display: flex; flex-direction: column; gap: 16px; }
.game__hud { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--mute); }
.game__hud b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }
.game__stage {
  position: relative; height: clamp(360px, 52vh, 520px); overflow: hidden; border-radius: 8px;
  display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--void);
  border: 1px solid var(--line);
}
.game__stage > * { grid-area: 1 / 1; }
.game__zone {
  width: clamp(120px, 18vw, 200px); aspect-ratio: 1; border: 2px dashed var(--accent); border-radius: 6px;
  position: relative; transition: border-color 0.3s, box-shadow 0.4s;
}
.game__zone span { position: absolute; left: 0; top: -26px; color: var(--accent); }
.game__zone.is-hit { border-style: solid; border-color: #2bd576; box-shadow: 0 0 0 8px rgba(43, 213, 118, 0.15), 0 0 80px rgba(43, 213, 118, 0.35); }
.game__zone.is-miss { border-color: #ff6b5b; }
.game__card {
  width: clamp(120px, 18vw, 200px); aspect-ratio: 1; border-radius: 6px; overflow: hidden; pointer-events: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--bone-rgb), 0.2); will-change: transform;
}
.game__card img { width: 100%; height: 100%; object-fit: contain; background: var(--ink-2); }
.game__card.is-locked { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--bone); }
.game__redline {
  position: absolute; left: 50%; top: 50%; height: 1px; background: #ff3d6e; transform-origin: 0 50%; pointer-events: none; z-index: 3;
}
.game__redline::before, .game__redline::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: #ff3d6e; }
.game__redline::before { left: 0; } .game__redline::after { right: 0; }
.game__redline span {
  position: absolute; left: 50%; top: -30px; margin-left: -28px; min-width: 56px; text-align: center;
  padding: 3px 8px; border-radius: 4px; background: #ff3d6e; color: #fff; letter-spacing: 0.02em;
}
.game__flash {
  margin: 0; z-index: 4; pointer-events: none; align-self: start; margin-top: 28px;
  font-weight: 900; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.03em; text-transform: uppercase;
  font-variation-settings: "wdth" 62; opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.5s var(--ease), font-variation-settings 0.6s var(--ease);
}
.game__flash.is-on { opacity: 1; transform: none; font-variation-settings: "wdth" 125; }
.game__flash.is-perfect { color: #2bd576; } .game__flash.is-good { color: var(--accent-hot); } .game__flash.is-bad { color: #ff6b5b; }
.game__panel {
  z-index: 5; align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(5, 5, 7, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; padding: 24px;
}
.game__panel[hidden] { display: none; }
.game__panel p { margin: 0; }
.game__panel .mono { color: var(--mute); }
.game__total { font-weight: 900; font-size: clamp(72px, 10vw, 140px); line-height: 0.9; letter-spacing: -0.05em; font-variation-settings: "wdth" 125; color: var(--accent); }
.game__rank { font-size: 20px; max-width: 420px; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.game__btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.game__btn:hover { transform: scale(1.05); background: #1a2bff; }
.game__btn--ghost { background: transparent; border: 1px solid var(--line); }
.game__btn--ghost:hover { background: var(--bone); color: var(--ink); }
[data-g="start"] { min-height: 64px; padding: 0 40px; font-size: 15px; animation: pulse-btn 1.8s infinite; }
@keyframes pulse-btn { 0% { box-shadow: 0 0 0 0 rgba(0, 17, 230, 0.7); } 70%, 100% { box-shadow: 0 0 0 18px rgba(0, 17, 230, 0); } }
.game__lock {
  align-self: center; min-height: 56px; min-width: 220px; padding: 0 28px; border-radius: 999px;
  background: var(--bone); color: var(--ink); transition: opacity 0.3s, transform 0.2s;
}
.game__lock:active { transform: scale(0.96); }
.game__lock:disabled { opacity: 0.3; cursor: default; }
.game__spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: #2bd576; z-index: 4; pointer-events: none; }
.game__spark:nth-child(3n) { background: var(--accent); } .game__spark:nth-child(3n+1) { background: var(--bone); }

/* ==========================================================================
   Audit pass: one work grid, plain section names, tabs for Play
   ========================================================================== */
.brands { border-block: 1px solid var(--line); }
.brands__label { margin: 0; padding: 20px var(--gutter) 0; color: var(--mute); }
.brands .ticker { border: 0; padding: 16px 0 28px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 40px); }
.grid li:nth-child(even) { margin-top: clamp(0px, 6vw, 96px); }
.tile { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.tile .clip { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tile__t { font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; transition: color 0.4s; }
.tile__tag { color: var(--mute); text-align: right; flex: none; }
@media (hover: hover) {
  .tile:hover .clip { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
  .tile:hover .tile__t { color: var(--accent); }
}
.tile:focus-visible .tile__t { color: var(--accent); }
.work { padding-bottom: clamp(120px, 14vw, 220px); }

.craft h2.label { margin: 0 0 48px; font-weight: 400; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.how li { display: flex; flex-direction: column; gap: 10px; }
.how b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.how span { color: var(--bone-2); font-size: 16px; line-height: 1.5; }

.act__yr { font-size: clamp(40px, 3.6vw, 60px); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; border: 1px solid var(--line); }
.tab {
  min-height: 44px; padding: 0 22px; border-radius: 999px; color: var(--mute);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.tab:hover { color: var(--bone); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.game[hidden] { display: none; }
.play { padding-top: 40px; }

.contact__alt { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__alt .copy, .brief__send .copy { display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; font-weight: 500; }

@media (max-width: 1024px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid li:nth-child(even) { margin-top: 0; }
  .how { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .tile__t { font-size: 24px; }
}
.word { display: inline-block; white-space: nowrap; }
@media (max-width: 820px) { .nav .pill { width: auto; padding: 0 18px; } }

/* ==========================================================================
   Hero v3: one sentence for services, a tiny index, a deck you can throw
   ========================================================================== */
.services {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 48px;
  padding-top: 40px; margin-top: auto;
}
.services__line {
  margin: 0; font-weight: 500; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--bone-2);
}
.svc-word { display: inline-block; color: var(--accent); font-weight: 700; }
.svc-word.is-in { animation: roll 0.7s var(--ease); }
@keyframes roll { 0% { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } }
.services__index { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 4px; max-width: 520px; }
.services__index .svc {
  position: relative; min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  font-variation-settings: normal; color: var(--mute); border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.services__index .svc:hover { color: var(--bone); border-color: var(--line); }
.services__index .svc.is-on { color: var(--bone); border-color: rgba(var(--bone-rgb), 0.35); }
.services__index .svc__bar { left: 12px; right: 12px; bottom: 6px; height: 1px; }

.deck { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.deck:active { cursor: grabbing; }
.deck__card.is-top {
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(-3deg + var(--rot, 0deg)));
}
.deck__card.is-dragging { transition: none !important; animation: none !important; }
.deck__card.is-thrown { opacity: 0; transition: transform 0.28s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.28s; }
.deck__card img { pointer-events: none; }
.deck__hint {
  position: absolute; left: 0; bottom: -32px; color: var(--mute); pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.deck__hint::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* tablet and phone: the deck leaves the name alone and stacks below it */
@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .deck { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: min(72%, 560px); margin: 56px auto 56px; }
  .deck__hint { left: 50%; transform: translateX(-50%); bottom: -36px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .services__index { justify-content: flex-start; margin-left: -12px; }
}
/* phone: everything stacks; the deck becomes the centrepiece */
@media (max-width: 820px) {
  .hero { min-height: auto; padding-bottom: 56px; }
  .deck { width: 82%; margin: 48px auto 48px; }
  .deck__hint { left: 50%; transform: translateX(-50%); bottom: -36px; }
  .services { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 16px; }
  .services__line { font-size: clamp(26px, 8vw, 36px); }
  .services__index { justify-content: flex-start; margin-left: -12px; }
}
@media (min-width: 1025px) { .services__index { flex-wrap: nowrap; max-width: none; } }

/* ===== Journey route: experience right under the hero, logos first ===== */
.route { padding: 120px var(--gutter) 96px; }
.route__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 56px; }
.route__head .label { margin: 0; }
.route__lede { margin: 0; max-width: 24ch; font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-align: right; }
.route__lede b { color: var(--accent); font-weight: inherit; }
.route__map { position: relative; --p: 0; }
.route__rail { position: absolute; left: 0; right: 0; top: 43px; height: 2px; background: var(--line); pointer-events: none; }
.route__rail span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.route__dot { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(72, 136, 239, 0.25); }
.route__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stop { position: relative; display: flex; flex-direction: column; gap: 14px; outline: none; }
.stop__logo { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 22px; background: var(--ink); border: 1px solid var(--line); color: var(--bone); transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.stop__logo svg { width: 52px; height: 52px; }
.stop--now .stop__logo svg { width: 66px; height: 66px; }
.stop__logo img { width: 46px; height: auto; }
.stop__type { font-weight: 800; font-size: 15px; letter-spacing: -0.03em; }
.stop__type b { color: var(--accent); font-size: 1.25em; }
.stop__yr { display: flex; align-items: center; gap: 8px; color: var(--mute); margin-top: 6px; }
.stop h3 { margin: 0; font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; display: flex; flex-direction: column; gap: 6px; }
.stop h3 small { font-weight: 400; font-size: 12px; color: var(--mute); }
.stop p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bone-2); max-width: 32ch; }
.stop--now .stop__logo { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.stop--now .stop__yr { color: var(--bone); }
@media (hover: hover) {
  .stop:hover .stop__logo, .stop:focus-visible .stop__logo { background: var(--brand); color: var(--on-brand); border-color: var(--brand); transform: translateY(-6px) rotate(-4deg); }
}
.stop:focus-visible .stop__logo { outline: 2px solid var(--accent); outline-offset: 4px; }
.route__edu { margin: 56px 0 0; color: var(--mute); }
@media (max-width: 900px) {
  .route { padding: 88px var(--gutter) 72px; }
  .route__lede { text-align: left; }
  .route__stops { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-left: 0; }
  .stop { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; row-gap: 8px; }
  .stop__logo { width: 72px; height: 72px; border-radius: 18px; grid-row: span 3; }
  .stop__logo svg { width: 42px; height: 42px; }
  .stop__logo img { width: 38px; }
  .stop__yr { margin: 0; }
  .route__rail { left: 35px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route__rail span { transform-origin: top; transform: scaleY(var(--p)); }
  .route__dot { top: calc(var(--p) * 100%); left: 50%; }
}
@media (prefers-reduced-motion: reduce) { .route__map { --p: 1; } }

/* ===== Hero layout grid: a design-tool column grid that re-flows with the viewport ===== */
.hero { --cols: 12; --row: calc((100vw - 2 * var(--gutter)) / var(--cols)); isolation: isolate; }
.hero__grid, .hero__grid i {
  position: absolute; inset: 0 var(--gutter); z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--c) 1px, transparent 1px), linear-gradient(to bottom, var(--c) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) var(--row);
  background-position: -0.5px -0.5px;
  box-shadow: inset -1px 0 0 var(--c);
}
.hero__grid { --c: rgba(var(--bone-rgb), 0.1); -webkit-mask: linear-gradient(to bottom, transparent, #000 15%, #000 70%, transparent); mask: linear-gradient(to bottom, transparent, #000 15%, #000 70%, transparent); animation: grid-in 1.6s var(--ease) both 0.2s; }
.hero__grid i { --c: rgba(72, 136, 239, 0.8); inset: 0; opacity: 0; transition: opacity 0.4s;
  -webkit-mask: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
  mask: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%); }
.hero:hover .hero__grid i { opacity: 1; }
@keyframes grid-in { from { opacity: 0; transform: scale(1.04); } }
@media (max-width: 1024px) { .hero { --cols: 6; } }
@media (max-width: 600px) { .hero { --cols: 4; } }
@media (prefers-reduced-motion: reduce) { .hero__grid { animation: none; } }

/* ===== Brands marquee: logos where they exist, employers first ===== */
.brand { display: inline-flex; align-items: center; gap: 0.32em; color: var(--bone); transition: color 0.3s; }
.brand svg { width: 0.9em; height: 0.9em; flex: none; }
@media (hover: hover) { .ticker .brand:hover { color: var(--accent-hot); } }
.brand--mark svg { width: 2.6em; height: 2.6em; margin: -0.8em 0; }

/* ===== Work grid, denser: 4 up on desktop, 2 up below, nothing poster-sized ===== */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.grid li:nth-child(even) { margin-top: 0; }
.grid li:nth-child(4n+2), .grid li:nth-child(4n+4) { margin-top: 48px; }
.tile { gap: 12px; }
.tile__meta { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 12px; }
.tile__t { font-size: clamp(18px, 1.5vw, 22px); }
.tile__tag { text-align: left; font-size: 11px; }
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .grid li:nth-child(4n+2), .grid li:nth-child(4n+4) { margin-top: 0; }
  .grid li:nth-child(even) { margin-top: 32px; }
}
@media (max-width: 600px) {
  .grid { gap: 28px 12px; }
  .grid li:nth-child(even) { margin-top: 24px; }
  .tile__t { font-size: 16px; }
  .tile__tag { font-size: 10px; }
}

/* ===== Nav: links sit on the true centre of the page, not between uneven neighbours ===== */
.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.nav__brand { justify-self: start; }
.nav__right { justify-self: end; grid-column: 3; }
.nav__links a { letter-spacing: 0.08em; margin-right: -0.08em; } /* cancel the trailing tracking so each word centres */
.route__edu { display: flex; flex-wrap: wrap; gap: 8px 40px; }

/* ===== One cursor: the custom one replaces the system arrow (only when JS has switched it on) ===== */
.has-cursor, .has-cursor * { cursor: none !important; }

/* ===== Logos at equal visual weight: each viewBox is cropped to its ink, then sized to the same area ===== */
.ticker .brand svg, .ticker .brand--mark svg { width: calc(var(--w) * 1em); height: calc(var(--h) * 1em); margin: 0; }
.brand { gap: 0.28em; }
.route { --s: 1; }
.stop__logo svg, .stop--now .stop__logo svg { width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); }
.stop__logo img { width: calc(41px * var(--s)); }
.stop__type { font-size: calc(16px * var(--s)); }
@media (max-width: 900px) { .route { --s: 0.82; } .stop__logo img { width: calc(41px * var(--s)); } .stop__logo svg { width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); } }

/* ===== Journey without the lede: label alone, tighter to the route; logos one step smaller ===== */
.route__head { margin-bottom: 40px; }
.stop__logo img { width: calc(33px * var(--s)); }
.stop__type { font-size: calc(13px * var(--s)); }
@media (max-width: 900px) { .stop__logo img { width: calc(33px * var(--s)); } }

/* ==========================================================================
   Light theme. Same system, tokens flipped: basalt becomes paper, moonlight
   becomes ink. Contrast (WCAG, on #f2f3f7): text 17.6:1, secondary 8.9:1,
   muted 6.0:1, blue 8.5:1. Bone-filled blocks (contact, "now") flip to dark.
   ========================================================================== */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f2f3f7; --ink-2: #e4e7ee; --void: #ffffff;
  --bone: #0b0c10; --bone-2: #3d4352; --mute: #555c6c; --mute-inv: #a2a8b8;
  --accent: #0011e6; --accent-hot: #1f3fd6;
  --ink-rgb: 242, 243, 247; --bone-rgb: 11, 12, 16;
  --live: #157a40;
}
/* the white logo reads as ink on paper, and flips back on dark blocks and blue */
[data-theme="light"] .nav__logo, [data-theme="light"] .stop__logo img { filter: invert(1); }
[data-theme="light"] .nav.on-light .nav__logo, [data-theme="light"] .nav.menu-open .nav__logo,
[data-theme="light"] .stop:hover .stop__logo img, [data-theme="light"] .stop:focus-visible .stop__logo img { filter: none; }
/* the games are a screen: they stay dark in both themes */
[data-theme="light"] .game__stage {
  --ink: #0b0c10; --ink-2: #121419; --void: #050507;
  --bone: #e8eaf0; --bone-2: #a2a8b8; --mute: #8a91a2;
  --accent: #4888ef; --accent-hot: #8fb4ff;
  --ink-rgb: 11, 12, 16; --bone-rgb: 232, 234, 240;
  --line: rgba(232, 234, 240, 0.12);
  color: var(--bone);
}
[data-theme="light"] .deck__card, [data-theme="light"] .tile:hover .clip { box-shadow: 0 24px 48px rgba(11, 12, 16, 0.18); }

/* ===== Theme toggle: an eclipse. Dark shows a moon; light slides the shadow off and the rays come out ===== */
.theme {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: currentColor; transition: border-color 0.3s, transform 0.5s var(--ease);
}
.theme:hover { border-color: currentColor; }
.theme svg { width: 22px; height: 22px; overflow: visible; transition: transform 0.7s var(--ease); }
.theme__shadow { transition: transform 0.7s var(--ease); }
.theme__rays { transform-origin: 12px 12px; transform: scale(0.4) rotate(-45deg); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.4s; }
[data-theme="light"] .theme svg { transform: rotate(90deg); }
[data-theme="light"] .theme__shadow { transform: translate(9px, -9px); }
[data-theme="light"] .theme__rays { transform: none; opacity: 1; }
.nav.on-light .theme, .nav.menu-open .theme { border-color: currentColor; }
.nav__right { display: flex; align-items: center; gap: 10px; }

/* the switch spreads out from the button as a circle (View Transitions where supported) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) {
  .theme svg, .theme__shadow, .theme__rays { transition: none; }
}
/* on the flipped (dark) contact block the deep brand blue is too dim: use the on-dark blue (5.6:1) */
[data-theme="light"] .contact__title span:last-child { color: #4888ef; }
/* over the contact block the nav carries that block's colour, so it stays legible even where the section above peeks through */
.nav.on-light::before { opacity: 1; background: linear-gradient(to bottom, rgba(var(--bone-rgb), 0.96) 60%, rgba(var(--bone-rgb), 0)); }

/* ===== Email pill: envelope icon leads the label ===== */
.copy--mail { display: inline-flex; align-items: center; gap: 8px; }
.copy__icon { width: 18px; height: 18px; flex: none; }

/* ===== Prime Video role, called out ===== */
.stop__role {
  justify-self: start; align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 999px;
  font-size: 13px !important; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-hot) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); max-width: none !important;
}
.stop__role span[aria-hidden] { opacity: 0.6; margin: 0 2px; }
[data-theme="light"] .stop__role { color: var(--accent) !important; }
@media (max-width: 900px) { .stop__role { grid-column: 2; } }

/* ===== Certification: a credential card, not a footnote ===== */
.cert {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 56px; padding: 16px 24px 16px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2);
}
.cert__seal { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.cert__seal svg { width: 28px; height: 28px; }
.cert__body { display: grid; gap: 4px; }
.cert__body p { margin: 0; }
.cert__kind { color: var(--accent); }
.cert__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cert__by { color: var(--mute); }

/* ===== Quote replaces the old statement ===== */
.quote { margin: 0; }
.quote .statement { margin: 0; quotes: "\201C" "\201D"; }
.quote .statement::before { content: open-quote; color: var(--accent); }
.quote .statement::after { content: close-quote; color: var(--accent); }
.quote__by { margin-top: 24px; color: var(--mute); }
.quote__by::before { content: "- "; }
.craft h2.how__head { margin: 120px 0 0; }
.how__head + .how { margin-top: 24px; }

/* ===== Masked headings: room below the baseline so no letter is clipped ===== */
.line-mask { padding-bottom: 0.14em; margin-bottom: -0.1em; }
@media (max-width: 900px) {
  .stop > :not(.stop__logo) { grid-column: 2; }
  .stop__logo { grid-row: 1 / span 5; align-self: start; }
}

/* ===== Phones: no service pills (the rolling word carries it); the Prime role is plain bold text ===== */
@media (max-width: 767px) {
  .services__index { display: none; }
  .stop__role { padding: 0; border: 0; background: none; border-radius: 0; font-size: 15px !important; font-weight: 700; color: var(--bone) !important; }
  [data-theme="light"] .stop__role { color: var(--bone) !important; }
}

/* ===== The quote is Mayank's own: kept to three lines at desktop size ===== */
.quote .statement { max-width: 48ch; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.12; }
@media (max-width: 767px) { .quote .statement { font-size: 23px; line-height: 1.2; } }

/* ===== Rhythm around the quote: sized to a 3-line saying, not a manifesto =====
   work -> quote ~ 1.5 screens-worth less; quote -> team heading matches the space above */
.work { padding-bottom: clamp(56px, 6vw, 96px); }
.craft { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(96px, 10vw, 160px); }
.craft h2.how__head { margin-top: clamp(80px, 9vw, 128px); }

/* ===== Hero deck is a way into the work: pointer cursor, visible focus ===== */
.deck { cursor: pointer; }
.deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 12px; }

/* ===== Quote at the page's statement scale ===== */
.quote .statement { max-width: 24ch; font-size: clamp(36px, 5.2vw, 84px); line-height: 1.04; }
@media (max-width: 767px) { .quote .statement { font-size: 34px; line-height: 1.06; } }

/* ===== Two lines about Mayank, under the name ===== */
.hero__about {
  position: relative; z-index: 4; margin: 28px 0 0 auto; max-width: 46ch;
  font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; color: var(--bone-2); text-align: right;
}
@media (max-width: 1024px) { .hero__about { margin: 24px 0 0; text-align: left; max-width: 44ch; } }
.hero__about { max-width: 62ch; margin-top: 36px; text-wrap: balance; }
@media (max-width: 1024px) { .hero__about { margin-top: 24px; max-width: 44ch; } }
.deck__hint { white-space: nowrap; }

/* ===== Prime Video role: plain bold text at every size (no pill) ===== */
.stop__role, [data-theme="light"] .stop__role {
  padding: 0; border: 0; background: none; border-radius: 0;
  font-size: 15px !important; font-weight: 700; color: var(--bone) !important;
}

/* ===== Certifications: three credential cards, newest first ===== */
.certs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.certs .cert { display: flex; align-items: flex-start; margin: 0; padding: 20px; height: 100%; }
.cert__what { color: var(--bone-2); font-size: 15px; line-height: 1.45; }
.cert__by { margin-top: 4px !important; }
@media (max-width: 1024px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .certs { grid-template-columns: minmax(0, 1fr); } }

/* ===== Certifications: issuer marks instead of a generic medal ===== */
.certs__label { margin: 64px 0 0; font-weight: 400; font-size: inherit; letter-spacing: inherit; }
.certs__label + .certs { margin-top: 20px; }
.cert__seal--amazon { background: #232f3e; color: #ff9900; }
.cert__seal--amazon svg { width: 34px; height: auto; }
.cert__seal--iitm { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(11, 12, 16, 0.08); }
.cert__seal--iitm img { width: 40px; height: 40px; }

/* ===== Cert cards: logo | title, line, issuer | date. Logo top meets the title's cap height ===== */
.certs .cert { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 20px 20px 22px; }
.certs .cert__seal { width: 48px; height: 48px; }
.cert__seal--amazon svg { width: 32px; }
.cert__seal--iitm img { width: 38px; height: 38px; }
.certs .cert__body { gap: 6px; padding-top: 2px; }
.certs .cert__name { font-size: 19px; line-height: 1.2; }
.cert__date { margin: 0; padding-top: 5px; color: var(--accent); white-space: nowrap; }

/* ===== Cookie choice: a small card, two equal buttons, never blocks the page ===== */
.consent {
  position: fixed; z-index: 260; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 420px; padding: 20px 20px 18px; border-radius: 16px;
  background: var(--ink-2); color: var(--bone); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.consent.is-in { opacity: 1; transform: none; }
.consent__t { margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.consent__b { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--bone-2); }
.consent__b a { color: var(--accent); }
.consent__a { display: flex; gap: 8px; }
.consent__btn { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--bone); }
.consent__btn:hover { border-color: var(--bone); }
.consent__btn--yes { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.has-cursor .consent, .has-cursor .consent * { cursor: auto !important; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ===== Legal pages ===== */
.legal { padding: calc(var(--nav-h) + 64px) var(--gutter) 96px; max-width: 760px; }
.legal h1 { margin: 0 0 12px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.9; font-size: clamp(44px, 7vw, 96px); font-variation-settings: "wdth" 80; }
.legal .legal__date { margin: 0 0 48px; color: var(--mute); }
.legal h2 { margin: 40px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--bone-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal-line { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom)); color: var(--mute); }
.legal-line a, .legal-line button { color: inherit; text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.legal-line a:hover, .legal-line button:hover { color: var(--bone); }
