@property --glint { syntax: "<number>"; inherits: true; initial-value: 0; }
/* ==========================================================
   Andydews portfolio — styles
   Tweak colours, fonts and spacing in the :root block below.
   ========================================================== */

:root {
  --bg: #09090b;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.1);
  --card: #151517;
  --purple: #6b4fe0;
  --purple-deep: #4a2a8f;
  --green: #22e07a;

  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 880px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  position: relative;
  background: transparent; /* the page colour is set on html, so the background glows (z-index -1) still show */
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Smooth cross-fade between pages and on theme change (supported browsers); others simply switch instantly */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- Background glow ---------- */
.glow {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; overflow: hidden; /* spans the whole page, so it scrolls with the content */
}
/* soft light that follows the cursor (created in main.js) */
.cursor-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(120, 90, 235, 0.14), transparent 70%);
}
/* two soft blobs that roam the whole page, changing shape as they go. They start bottom-right. */
.glow::before, .glow::after {
  content: ""; position: absolute; left: 0; top: 0; filter: blur(110px); will-change: transform, border-radius;
}
.glow::before {
  width: 58vw; height: 46vw; max-width: 1000px; max-height: 800px;
  background: rgba(86, 62, 200, 0.22);
  animation: glow-a calc(34s * var(--gk, 1)) ease-in-out infinite alternate;
}
.glow::after {
  width: 42vw; height: 32vw; max-width: 720px; max-height: 560px;
  background: rgba(110, 80, 225, 0.145);
  animation: glow-b calc(43s * var(--gk, 1)) ease-in-out infinite alternate;
}
@keyframes glow-a {
  0%   { transform: translate(52vw, calc(var(--gh, 100vh) * 0.52)) scale(1, 1) rotate(0deg);        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  20%  { transform: translate(34vw, calc(var(--gh, 100vh) * 0.08)) scale(1.25, 0.8) rotate(35deg);   border-radius: 68% 32% 55% 45% / 38% 66% 34% 62%; }
  45%  { transform: translate(-8vw, calc(var(--gh, 100vh) * 0.22)) scale(0.8, 1.3) rotate(-30deg);  border-radius: 38% 62% 30% 70% / 64% 36% 60% 40%; }
  70%  { transform: translate(8vw, calc(var(--gh, 100vh) * 0.62)) scale(1.3, 0.85) rotate(25deg);   border-radius: 60% 40% 70% 30% / 34% 62% 38% 66%; }
  100% { transform: translate(44vw, calc(var(--gh, 100vh) * 0.28)) scale(0.9, 1.25) rotate(-20deg); border-radius: 45% 55% 40% 60% / 66% 40% 60% 34%; }
}
@keyframes glow-b {
  0%   { transform: translate(34vw, calc(var(--gh, 100vh) * 0.64)) scale(1, 1) rotate(0deg);        border-radius: 50%; }
  25%  { transform: translate(60vw, calc(var(--gh, 100vh) * 0.2)) scale(0.8, 1.35) rotate(-40deg); border-radius: 36% 64% 58% 42% / 62% 34% 66% 38%; }
  55%  { transform: translate(20vw, calc(var(--gh, 100vh) * 0.06)) scale(1.4, 0.8) rotate(30deg);    border-radius: 66% 34% 40% 60% / 40% 68% 32% 60%; }
  80%  { transform: translate(-6vw, calc(var(--gh, 100vh) * 0.48)) scale(0.9, 1.2) rotate(-25deg);  border-radius: 42% 58% 64% 36% / 60% 38% 62% 40%; }
  100% { transform: translate(50vw, calc(var(--gh, 100vh) * 0.4)) scale(1.2, 0.85) rotate(20deg);  border-radius: 58% 42% 36% 64% / 36% 62% 40% 64%; }
}
/* extra pools of light spaced down long pages (added by main.js).
   Drawn as soft radial gradients and animated with transform only, so they cost almost nothing to scroll past. */
.glow-blob {
  position: absolute; left: 0; top: 0; width: calc(min(60vw, 960px) * var(--sw, 1)); height: calc(min(46vw, 720px) * var(--sh, 1));
  background: radial-gradient(closest-side, rgba(var(--c, 96 70 214) / calc(var(--o, .17) * 1.35)) 0%, rgba(var(--c, 96 70 214) / calc(var(--o, .17) * .6)) 45%, rgba(var(--c, 96 70 214) / 0) 100%);
  will-change: transform; contain: layout paint style;
  animation: blob-drift calc(var(--d, 26) * 1s) ease-in-out infinite alternate; animation-delay: calc(var(--d, 26) * -0.5s);
}
.glow-blob.is-off { animation-play-state: paused; }
@keyframes blob-drift {
  0%   { transform: translate(var(--x), var(--y)) scale(1, 1) rotate(0deg); }
  50%  { transform: translate(calc(var(--x) + var(--dx, 6vw)), calc(var(--y) + var(--dy, 120px))) scale(1.2, .85) rotate(30deg); }
  100% { transform: translate(calc(var(--x) - 5vw), calc(var(--y) - 80px)) scale(.88, 1.15) rotate(-25deg); }
}
@media (max-width: 700px) { .glow-blob { width: calc(130vw * var(--sw, 1)); height: calc(110vw * var(--sh, 1)); } }
@media (prefers-reduced-motion: reduce) { .glow::before, .glow::after, .glow-blob { animation: none; } }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.col { width: min(586px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wide { width: min(1246px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 24px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  --h: 64px; width: min(878px, calc(100% - 32px)); height: var(--h); padding: 0 calc((var(--h) - 42px) / 2) 0 24px; /* right gap = gap above/below the pill (pill is 40px + 2px border) */
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 10, 12, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: width 0.5s var(--ease), background 0.4s, height 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
}
.nav.is-scrolled .nav-inner {
  --h: 56px; width: min(560px, calc(100% - 32px));
  background: rgba(14, 14, 18, 0.78); border-color: rgba(255, 255, 255, 0.14);
}
.brand { font-family: var(--font-serif); font-size: 24px; letter-spacing: -0.01em; }
.brand em { font-style: italic; }
.dim { color: rgba(255, 255, 255, 0.5); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(13, 13, 13, 0.4); /* #0D0D0D at 40% opacity, as in the design */
  font-family: "Inter", var(--font-sans); font-weight: 500; letter-spacing: -0.32px;
  font-size: 14px; white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
a.pill:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.pill-sm { height: 32px; font-size: 12px; padding: 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(150px, 22vh, 230px) 0 clamp(70px, 12vh, 140px); text-align: center; width: min(1100px, calc(100% - 32px)); }
.display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(42px, 7.2vw, 84px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.display em { font-style: italic; }
/* home hero: quicker, tighter word rise than the case-study headings */
.hero-home .w > span { transition-duration: .8s !important; transition-delay: calc(var(--i, 0) * 45ms + 100ms) !important; }
.hero-home.settled .w { overflow: visible; }
.hero-home.settled .hl { animation: hl-glow 1.6s ease-out both; }
@keyframes hl-glow { 0% { text-shadow: 0 0 0 rgba(168,110,255,0); } 35% { text-shadow: 0 0 .4em rgba(168,110,255,.75), 0 0 .9em rgba(140,80,230,.45); } 100% { text-shadow: 0 0 0 rgba(168,110,255,0); } }
.mbr { display: none; } /* extra line break used only on phones */
.g { color: rgba(255, 255, 255, 0.5); }

/* word-by-word reveal (script wraps each word) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.14em; margin: 0 -0.06em -0.14em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(110%); opacity: 0; }
.is-loaded .hero-split .w > span,
[data-split].in .w > span {
  transform: none; opacity: 1;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}

/* ---------- Logo strip ---------- */
.logos {
  text-align: center;
  width: min(1407px, calc(100% - 32px)); margin: 0 auto 90px;
  padding: 32px 0 48px; position: relative; isolation: isolate;
}
/* #0A0A0A at 20% opacity, as in the design: crisp top and bottom edges, fading out only at the left and right ends */
.logos::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10, 10, 10, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.logos p { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.marquee {
  max-width: 1200px; margin-inline: auto; height: 55px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.marquee-track { display: flex; align-items: center; height: 100%; width: max-content; animation: scroll var(--marquee-dur, 38s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex-shrink: 0; gap: 64px; padding-right: 64px; }
.marquee-set img { height: 30px; width: auto; opacity: 0.75; transition: opacity 0.3s, transform 0.3s var(--ease); }
.marquee-set img:hover, .marquee-set .logo-text:hover { opacity: 1; transform: scale(1.06); }
.logo-text { font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: rgba(255,255,255,.75); white-space: nowrap; transition: opacity .3s, transform .3s var(--ease); }
@keyframes scroll { to { transform: translateX(calc(var(--set-w, 50%) * -1)); } }

/* ---------- Work section ---------- */
.work { text-align: center; padding-bottom: 60px; }
.section-title { font-family: "Inter", var(--font-sans); font-weight: 500; font-size: clamp(44px, 7vw, 68px); letter-spacing: -0.03em; line-height: 1.1; margin: 28px 0 56px; }
.section-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1120px, calc(100% - 32px)); margin-inline: auto; perspective: 1200px; }
.card {
  position: relative; display: block; text-align: left; border-radius: 24px; overflow: hidden;
  --ea: 135deg; --gx: 50%; --gy: 0%;
  border: 1px solid transparent; /* edge is drawn by ::after so it can fade to nothing */
  /* mostly dark; purple only glows behind the image at the top and faintly bottom-right */
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(96, 62, 190, 0.38), transparent 70%),
    radial-gradient(70% 40% at 100% 100%, rgba(80, 50, 160, 0.16), transparent 70%),
    #0d0d0d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
/* cursor spotlight on the surface */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 2;
  background: radial-gradient(320px circle at var(--gx) var(--gy), rgba(255,255,255,.07), transparent 60%);
}
/* Glass edge: a soft highlight at the top-left that fades to nothing round the border.
   Elsewhere there is no visible stroke. The angle tilts with the card, and on hover a
   second glint follows the cursor around the edge. */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 4;
  background:
    radial-gradient(170px circle at var(--gx) var(--gy), rgba(255,255,255,calc(var(--glint, 0) * .8)), transparent 70%),
    linear-gradient(var(--ea), rgba(255,255,255,.30) 0%, rgba(255,255,255,.10) 14%, transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { box-shadow: 0 30px 60px -34px rgba(100, 70, 220, 0.5); --glint: .7; }
.card:hover::before { opacity: 1; }
.card-media { margin: 12px 12px 0; border-radius: 18px; overflow: hidden; aspect-ratio: 330 / 210; background: rgba(39, 40, 41, 0.2); }
/* image sits "behind a window": recessed frame, and the picture moves inside it as the card tilts */
.card-media { position: relative; perspective: 520px; perspective-origin: 50% 40%; }
.card-media img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
/* soft blurred copy of the picture behind it, so nothing hard shows at the edges when the picture moves */
.card-media .fill { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.1); opacity: .95; }
.card-media::before { /* inner shadow so the frame reads as an opening with depth */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 10px 28px rgba(0,0,0,.42), inset 0 -6px 18px rgba(0,0,0,.18);
}
.card-media::after { /* light sheen following the cursor */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.12), transparent 65%);
}
.card:hover .card-media::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .card-media::after { background:
    radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.12), transparent 65%),
    linear-gradient(calc(90deg - var(--tx, 0) * 40deg), rgba(0,0,0,calc(.28 - var(--tx, 0) * .14)) 0%, transparent 55%, rgba(0,0,0,calc(.28 + var(--tx, 0) * .14)) 100%); }
}
@media (hover: hover) and (pointer: fine) {
  /* picture is slightly larger than its frame (so edges never show) and shifts/turns opposite to the cursor */
  .card-media img {
    transform: translate3d(calc(var(--tx, 0) * -3px), calc(var(--ty, 0) * -2px), -36px) scale(1.14) rotateX(calc(var(--ty, 0) * -3deg)) rotateY(calc(var(--tx, 0) * 3.5deg));
    transition: transform .6s var(--ease);
  }
}
.card-body { padding: 20px 28px 28px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.card-brand img { height: 26px; width: auto; }
.card-brand .logo-text { font-size: 22px; }
.card-title { font-family: "Inter", var(--font-sans); letter-spacing: -0.44px; font-size: 24px; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,.92); }
.card-arrow { position: absolute; top: 24px; right: 24px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; opacity: 0; transform: translate(-6px, 6px) scale(.8); transition: all .45s var(--ease); }
.card:hover .card-arrow { opacity: 1; transform: none; }
.soon { font-family: "Inter", var(--font-sans); letter-spacing: -0.32px; margin: 70px 0 90px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Image placeholders (when a file is missing) ---------- */
.ph {
  display: grid; place-items: center; text-align: center; padding: 24px; width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(107, 79, 224, 0.18));
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.ph code { color: #fff; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.card-media .ph { height: 100%; border: 0; border-radius: 0; }

/* ---------- Case study header ---------- */
.cs-hero { padding-top: clamp(150px, 20vh, 200px); }
.cs-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(46px, 6.8vw, 88px); line-height: 1; letter-spacing: 0; margin: 40px 0 24px; }
.lede { font-family: "Inter", var(--font-sans); font-weight: 500; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.375; letter-spacing: -0.44px; color: #999; max-width: 700px; }
.meta { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); font-family: "Inter", var(--font-sans); font-weight: 400; font-size: 16px; line-height: 22.4px; }
.meta dt { color: #fff; }
.meta dd { color: #808080; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags .pill { font-size: 16px; height: auto; padding: 12px 16px; line-height: 16px; }

/* ---------- Case study content ---------- */
.block { margin-top: clamp(56px, 8vw, 96px); }
.block h2, .col h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: 0; color: #fbfafc; margin-bottom: 24px; }
.col h3 { font-family: "Inter", var(--font-sans); font-weight: 400; font-size: clamp(24px, 3.6vw, 32px); line-height: normal; letter-spacing: -0.2px; color: #fbfafc; margin: 40px 0 16px; }
.col h4 { font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 20px; letter-spacing: -0.2px; margin: 28px 0 10px; }
.prose p, .prose li, .col .list li { font-family: "Inter", var(--font-sans); font-weight: 400; font-size: 17px; line-height: 24px; letter-spacing: -0.44px; color: #eff2ff99; }
.prose p { margin-bottom: 16px; }
.prose p strong, .prose strong { color: #ccc; font-weight: 700; }
.prose .lead { color: #fff; }
.list { margin: 0 0 1.4em; }
.list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 18px; line-height: 1.6; color: var(--soft); }
.list li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.rule { height: 1px; background: var(--line); border: 0; margin: clamp(48px, 7vw, 72px) auto; width: min(586px, calc(100% - 32px)); }

.statement { position: relative; text-align: center; font-family: var(--font-serif); font-size: clamp(44px, 7vw, 100px); line-height: .975; letter-spacing: 0; color: rgba(252,252,250,.5); padding: clamp(112px, 18vw, 260px) 0; margin-inline: auto; max-width: 1100px; }
.statement::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); height: 100%; min-height: 420px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(70,62,150,.34) 0%, rgba(70,62,150,.27) 22%, rgba(70,62,150,.18) 44%, rgba(70,62,150,.09) 64%, rgba(70,62,150,.03) 82%, rgba(70,62,150,0) 100%); }
.statement em { display: block; margin-top: clamp(32px, 4.5vw, 64px); font-style: normal; color: #fbfafc; }

/* full-viewport statement moment (typed on scroll) */
.moment { position: relative; height: 300vh; height: 300svh; margin-block: clamp(40px, 6vw, 72px); }
.moment-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 80px var(--gutter); text-align: center; }
.moment-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); height: min(900px, 110vh); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(70,62,150,.42) 0%, rgba(70,62,150,.34) 22%, rgba(70,62,150,.22) 44%, rgba(70,62,150,.11) 64%, rgba(70,62,150,.04) 82%, rgba(70,62,150,0) 100%); }
.moment-inner { position: relative; width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 40px; font-family: var(--font-serif); font-size: clamp(44px, 7vw, 100px); line-height: .975; letter-spacing: 0; }
.moment-inner p { margin: 0; }
.moment-a { color: rgba(252,252,250,.5); }
.moment-b { color: #fbfafc; }
.moment .w { display: inline-block; white-space: nowrap; }
.moment .c { opacity: 0; }
.moment .c.on { opacity: 1; }
.moment .c.cur::after { content: ""; display: inline-block; width: 0; height: .8em; margin: 0 -.02em 0 .03em; border-right: max(1.5px, .018em) solid rgba(255,255,255,.8); vertical-align: -.06em; animation: caret-blink 1.1s ease-in-out infinite; }
.moment.static { height: auto; }
.moment.static .moment-stage { position: relative; height: auto; min-height: 100svh; }
.moment.static .c { opacity: 1; }
.col h2.h-sm { font-size: clamp(34px, 4vw, 48px); }

/* figures / screenshots */
.shot { margin-block: clamp(40px, 6vw, 72px); }
.shot-frame { border-radius: clamp(28px, 4.8vw, 60px); overflow: hidden; background: linear-gradient(135deg, #0b0b0e, #3a2570 70%, #5b3a9c); border: 1px solid rgba(255,255,255,.08); }
.shot-frame img { width: 100%; height: auto; }
.shot-frame { position: relative; }
.proto-btn { position: absolute; right: clamp(14px, 2.6vw, 32px); bottom: clamp(14px, 2.6vw, 34px); display: inline-flex; align-items: center; justify-content: center; padding: clamp(10px, 1.5vw, 20px) clamp(18px, 2.8vw, 40px); border-radius: 999px; background: rgba(13,13,13,.5); border: 0; text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-family: "Inter", var(--font-sans); font-weight: 400; font-size: clamp(13px, 1.5vw, 18px); line-height: normal; letter-spacing: -0.2px; white-space: nowrap; transition: background .4s var(--ease); }
.shot-frame:has(.at-a) { container-type: inline-size; }
.proto-btn.at-a, .proto-btn.at-b { right: auto; bottom: 5.2cqw; transform: translateX(-50%); padding: max(8px, 1.1cqw) max(16px, 2.2cqw); font-size: max(11px, 1.44cqw); }
.proto-btn.at-a { left: 24.9%; }
.proto-btn.at-b { left: 72.4%; }
.proto-btn:hover { background: rgba(13,13,13,.72); text-decoration: none; }
/* glass stroke: bright at the top edge, fading round the pill */
.proto-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 45%, rgba(255,255,255,.02) 70%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.shot-frame.bare { background: none; border: 0; border-radius: 0; overflow: visible; container-type: inline-size; --gx: 50%; --gy: 50%; }
/* cursor light on screenshots, like the case study cards (no tilt: they aren't clickable).
   The exported images already have rounded corners, so the glint ring follows the same radius. */
.shot-frame.bare::before, .shot-frame.bare::after {
  content: ""; position: absolute; inset: 0; border-radius: 4.9cqw; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); z-index: 1;
}
.shot-frame.bare::before { background: radial-gradient(360px circle at var(--gx) var(--gy), rgba(255,255,255,.07), transparent 62%); }
.shot-frame.bare::after {
  padding: 1px; z-index: 2;
  background: radial-gradient(240px circle at var(--gx) var(--gy), rgba(255,255,255,.85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) { .shot-frame.bare:hover::before, .shot-frame.bare:hover::after { opacity: 1; } }
.shot-frame.bare .proto-btn { z-index: 3; }
/* the two hero exports have a hairline of transparent canvas (about 9px at the sides and 18px at the bottom, which holds a soft shadow, of 2492 x 1787), so the highlight ring is pulled in to sit on the card edge */
.shot-frame.bare.edge-inset::before, .shot-frame.bare.edge-inset::after { inset: 0 .36% 1.02% .34%; border-radius: 4.61cqw; } /* measured: card corner radius is 115px of 2492 */
.shot figcaption { text-align: left; color: #999; font-family: "Inter", var(--font-sans); font-weight: 400; font-size: 14px; line-height: 33px; letter-spacing: -0.44px; margin-top: 8px; }
.shot-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* stat cards */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-block: clamp(40px, 6vw, 72px); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: rgba(39, 40, 41, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 20px; padding: 40px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); background: rgba(48, 49, 51, 0.7); }
.stat-num { font-family: "Inter", var(--font-sans); font-weight: 800; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.2px; line-height: normal; color: #fbfafc; font-variant-numeric: tabular-nums; }
.stat p { font-family: "Inter", var(--font-sans); font-weight: 400; letter-spacing: -0.44px; color: #d9d9d9; font-size: 16px; line-height: 1.4; margin-top: 16px; }
.stat small { display: block; margin-top: 16px; font-family: "Inter", var(--font-sans); font-weight: 400; letter-spacing: -0.24px; font-size: 12px; line-height: 1.4; color: #999; }

/* feature trio */
.features { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-block: clamp(40px, 6vw, 72px); }
.feature { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 36px 32px; transition: transform .5s var(--ease), border-color .4s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.feature h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; }
.feature p { color: var(--soft); font-size: 16px; line-height: 1.55; }
/* design-principle cards (match Figma: glass card, Inter, content centred vertically) */
.features { align-items: stretch; }
.features .feature { background: rgba(39,40,41,.6); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 40px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.features .feature:first-child { gap: 12px; }
.features .feature:hover { background: rgba(48,49,51,.7); border-color: rgba(255,255,255,.2); }
.features .feature h3 { margin: 0; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 26.1px; line-height: normal; letter-spacing: -0.56px; color: #fbfafc; }
.features .feature p { font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.36px; color: #999; }

/* quote card */
.quote-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 48px;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(112,82,170,.5) 0%, rgba(112,82,170,.4) 20%, rgba(112,82,170,.27) 40%, rgba(112,82,170,.14) 62%, rgba(112,82,170,.05) 82%, rgba(112,82,170,0) 100%) right -150px bottom -210px / 520px 520px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 60%),
    rgba(13, 13, 13, 0.2);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
/* frosted-glass stroke: bright along the top edge, fading to nothing down the sides */
.quote-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 35%, rgba(255,255,255,0) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* fine grain over the whole card: dithers the glow so there is no colour banding */
.quote-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.quote-card > * { position: relative; z-index: 1; }
.qmark { font-family: var(--font-serif); font-size: 88px; line-height: .6; color: rgba(255,255,255,.35); display: block; height: 36px; }
.quote-card .qmark { font-size: 170px; line-height: 1; height: 61px; color: #999; letter-spacing: -0.36px; margin-bottom: 28px; overflow: visible; }
.quote-card blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 40px); line-height: normal; letter-spacing: -0.36px; color: #999; }
.quote-card cite { display: block; margin-top: 16px; font-style: normal; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 16px; line-height: 22.4px; letter-spacing: -0.32px; color: #fcfcfa; }
.quote-card cite span { display: block; color: #999; font-size: 14px; line-height: 16.8px; letter-spacing: -0.24px; margin-top: 3px; }
@media (max-width: 700px) { .quote-card { padding: 40px 24px; } .quote-card .qmark { font-size: 120px; height: 44px; } }
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-block: 40px 0; }
.quotes .feature { background: rgba(39,40,41,.6); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 40px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.quotes .feature:hover { background: rgba(48,49,51,.7); border-color: rgba(255,255,255,.2); }
.quotes .feature h3 { margin: 0; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 26.1px; line-height: normal; letter-spacing: -0.56px; color: #fbfafc; }
.quotes .feature .qmark { display: block; position: relative; height: 54px; width: 54px; margin: 0 0 -12px; font-family: var(--font-serif); font-size: 170px; line-height: 221px; letter-spacing: -0.36px; color: #999; }
.quotes .feature .qmark::before { content: "“"; position: absolute; left: 0; top: -25px; }
.quotes .feature blockquote { margin: 0; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.36px; color: #999; }
.quotes .feature blockquote::after { content: "”"; }

/* table (Figma: glass cells, Inter, 20px outer radius) */
.table-wrap { overflow-x: auto; border-radius: 20px; margin-block: clamp(40px, 6vw, 64px); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-family: "Inter", var(--font-sans); }
th, td { text-align: left; vertical-align: middle; padding: 40px; height: 102px; font-size: 16px; line-height: normal; letter-spacing: -0.44px; color: #ccc; font-weight: 400; background: rgba(39,40,41,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); border-bottom: 1px solid rgba(255,255,255,.04); border-right: 1px solid rgba(255,255,255,.04); }
th { background: rgba(39,40,41,.9); color: #fbfafc; font-weight: 500; font-size: 16px; letter-spacing: -0.56px; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #fbfafc; font-weight: 500; letter-spacing: -0.56px; }
th:first-child, td:first-child { width: 160px; }
th:nth-child(2), td:nth-child(2) { width: 276px; }
/* "What I Learned" pattern (Figma: 24px sub-heads, 18px / 27px body, 24px between items) */
.prose.learned h2 { margin-bottom: 20px; }
.prose.learned h3 { font-size: 24px; line-height: normal; letter-spacing: -0.34px; margin: 0 0 12px; }
.prose.learned h3:not(:first-of-type) { margin-top: 24px; }
.prose.learned p { font-size: 16.8px; line-height: 27px; letter-spacing: -0.44px; color: #999; margin-bottom: 0; }
td strong { font-weight: 700; color: #ccc; }

/* back to top + footer */
.back { display: flex; justify-content: center; padding: 56px 0 90px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.btn:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateY(-3px); }
.btn.sm { height: 40px; padding: 0 20px; font-size: 14px; }
.next { display: block; text-align: center; padding: 70px 16px; border-top: 1px solid var(--line); }
.next small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.next span { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.15; display: inline-block; transition: transform .5s var(--ease); }
.next:hover span { transform: translateX(10px); }
footer.site { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 48px; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8b6cff, #d6a8ff); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tags .pill { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 300ms); }
.js .tags.in .pill { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* Prototype buttons stay hidden until a real link is pasted into the HTML (see README) */
a[data-todo][href="#"] { display: none; }
.shot-actions:not(:has(a:not([href="#"]))) { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; }
  .stats, .quotes { grid-template-columns: repeat(2, 1fr); }
  .features, .stats.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-inner { padding-left: 18px; }
  .quotes, .stats.three { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .logos { margin-bottom: 60px; padding: 24px 0 32px; }
  .marquee-set { gap: 44px; padding-right: 44px; }
  .feature { padding: 28px 24px; }
  /* stat cards stay a 2x2 grid on phones */
  .stat { padding: 22px 16px; border-radius: 16px; }
  .stat-num { font-size: clamp(30px, 9vw, 38px); }
  .stat p { font-size: 14px; letter-spacing: -0.3px; margin-top: 10px; }
  .stat small { font-size: 11px; margin-top: 10px; }
  .stats.three .stat { padding: 28px 24px; }
  .stats.three .stat-num { font-size: 44px; }
  .stats.three .stat p { font-size: 16px; letter-spacing: -0.44px; margin-top: 16px; }
  th, td { padding: 20px 18px; height: 72px; }
}

/* ---------- Desktop: the hero fills the first screen at a larger scale; the rest is below the fold ---------- */
@media (min-width: 701px) {
  /* hero is 112px shorter than the screen, so its centre sits 56px above the middle; the logo strip is pulled up to sit just above the fold */
  .hero { width: min(1360px, calc(100% - 48px)); min-height: calc(100vh - 112px); min-height: calc(100svh - 112px); padding: 0; display: flex; align-items: center; justify-content: center; }
  .logos { margin-top: -116px; }
  .hero .display { font-size: clamp(54px, 9.4vw, 112px); }
}

/* ---------- Phones: feel like a mobile site, not a shrunken desktop ---------- */
@media (max-width: 700px) {
  :root { --gutter: 20px; }

  /* slimmer floating nav */
  .nav { top: 12px; }
  .nav-inner { --h: 52px; padding-left: 18px; width: calc(100% - 24px); }
  .nav.is-scrolled .nav-inner { --h: 52px; width: calc(100% - 24px); }
  .brand { font-size: 21px; }
  .nav .pill { padding: 8px 16px; font-size: 14px; }

  /* hero: centred text; logo strip sits about three-quarters down so the Work section peeks in below it */
  .hero { text-align: center; justify-content: center; width: calc(100% - 28px); min-height: calc(100vh - 300px); min-height: calc(100svh - 300px); display: flex; align-items: center; padding: 80px 0 24px; }
  .hero .display { font-size: clamp(36px, 11.9vw, 60px); line-height: 1.06; text-wrap: initial; }
  .mbr { display: inline; }
  .hero .display .dbr { display: none; }

  /* glow is sized for a phone so it is actually noticeable */
  .glow::before { width: 140vw; height: 120vw; background: rgba(86, 62, 200, 0.26); }
  .glow::after  { width: 100vw; height: 90vw;  background: rgba(110, 80, 225, 0.17); }

  /* logo strip runs edge to edge, with less padding */
  .logos { width: 100%; margin-bottom: 48px; padding: 20px 0 28px; }
  .logos p { font-size: 13px; margin-bottom: 20px; }
  .logos::before { -webkit-mask-image: none; mask-image: none; }
  .marquee { max-width: none; }

  /* work section: cards become a swipeable row */
  .work { padding-inline: 20px; padding-bottom: 32px; }
  .section-title { font-size: clamp(44px, 13vw, 56px); margin: 20px 0 28px; }
  .cards {
    display: flex; width: auto; gap: 12px; perspective: none;
    margin-inline: -20px; padding: 12px 20px 24px; margin-top: -8px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 84%; scroll-snap-align: start; transform: none; }
  .card:active { transform: scale(0.985); }
  .card-body { padding: 16px 20px 22px; }
  .card-title { font-size: 20px; }
  .card-arrow { opacity: 1; transform: none; top: 20px; right: 20px; width: 32px; height: 32px; background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .soon { margin: 28px 0 56px; }

  /* case study pages: tighter hero */
  .cs-hero { padding-top: 112px; }
}

/* ---------- Accessibility: respect reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none; }
  .js [data-split] .w > span, .js .reveal, .js .tags .pill { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid #b79cff; outline-offset: 3px; border-radius: 8px; }

/* keep decorative glows from widening the page on phones */
.moment, .moment-stage { overflow-x: clip; } /* (.statement is not clipped: its glow fades out softly, and clipping it at the text box left a visible edge in light mode; the page itself already clips sideways overflow) */

/* phase table: on phones each row becomes its own card, so nothing has to scroll sideways */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; border-radius: 0; }
  table { min-width: 0; width: 100%; display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: grid; gap: 12px; }
  tbody tr { display: block; background: rgba(39, 40, 41, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 22px 20px; backdrop-filter: blur(2px); }
  td, td:first-child, td:nth-child(2) { display: block; width: auto; height: auto; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  td + td { margin-top: 14px; }
  tbody tr:last-child td:first-child { border-bottom: 1px solid rgba(255,255,255,.08); }
  td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: -0.24px; color: #999; }
  td:first-child { color: #fbfafc; font-weight: 500; font-size: 20px; letter-spacing: -0.4px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  td:first-child::before { content: "Phase"; display: inline; margin: 0 6px 0 0; font-size: inherit; letter-spacing: inherit; color: inherit; }
  td:nth-child(2) { color: #fbfafc; font-weight: 500; }
}

/* ---------- Click-to-enlarge images ---------- */
.shot-frame img { cursor: zoom-in; }
.shot-frame img:focus-visible { outline: 2px solid rgba(160, 130, 255, .9); outline-offset: 4px; border-radius: 12px; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 9, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .32s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 56px 72px 72px; cursor: zoom-out; overscroll-behavior: contain; }
.lb-img { display: block; max-width: calc(100vw - 144px); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: 0; cursor: zoom-in; transform: scale(.97); transition: transform .4s var(--ease); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox.is-open .lb-img { transform: none; }
.lightbox.is-zoomed .lb-stage { place-items: start center; }
.lightbox.is-zoomed .lb-img { max-width: none; max-height: none; width: min(2492px, 220vw); cursor: zoom-out; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-family: "Inter", var(--font-sans); font-size: 14px; letter-spacing: -0.2px; color: rgba(255, 255, 255, .6); pointer-events: none; background: linear-gradient(transparent, rgba(6, 6, 9, .7)); }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(20, 20, 26, .7); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.lb-btn:hover { background: rgba(60, 50, 110, .8); border-color: rgba(255, 255, 255, .3); }
.lb-btn:focus-visible { outline: 2px solid rgba(160, 130, 255, .9); outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.lb-next { right: 16px; top: 50%; margin-top: -22px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
@media (max-width: 700px) {
  .lb-stage { padding: 64px 12px 64px; }
  .lb-img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-bar { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 70px 22px; }
  .lb-count { order: -1; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-img { transition: none; } }

/* two-up image grids (used where several smaller screenshots sit together) */
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-block: clamp(40px, 6vw, 72px); }
.shot-grid .shot { margin-block: 0; }
.shot-grid .shot-frame { border-radius: clamp(16px, 2.4vw, 28px); }
@media (max-width: 700px) { .shot-grid { grid-template-columns: 1fr; } }

/* four case studies: two by two on desktop so there is no lonely card on a second row */
@media (min-width: 1021px) { .cards:has(.card:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }

/* three-part summary under the headline numbers: problem, what I did, outcome */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.1); }
.summary > div { padding: 28px clamp(16px, 2.4vw, 32px) 8px 0; }
.summary > div + div { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid rgba(255,255,255,.1); }
.summary .summary-label { display: block; margin-bottom: 12px; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: #a58cff; text-transform: none; }
.summary p { margin: 0; font-family: "Inter", var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.45; letter-spacing: -0.44px; color: #eff2ffcc; }
@media (max-width: 860px) {
  .summary { grid-template-columns: 1fr; }
  .summary > div, .summary > div + div { padding: 22px 0 6px; border-left: 0; }
  .summary > div + div { border-top: 1px solid rgba(255,255,255,.1); }
}
/* Silentnight exports: card corner radius measured at about 4.7% of width, edge to edge */
.shot-frame.bare.edge-r47::before, .shot-frame.bare.edge-r47::after { border-radius: 4.7cqw; }

/* ---------- bar chart (user test question) ---------- */
.chart { margin: 0 auto; }
.chart-card {
  position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px;
  background: rgba(39, 40, 41, 0.6); border: 1px solid rgba(255,255,255,.06); border-radius: 20px;
  padding: 40px 40px 28px; --ph: 260px; --lh: 44px;
}
.chart-ticks { position: relative; height: var(--ph); }
.chart-ticks span { position: absolute; right: 0; bottom: calc(var(--t) / 6 * 100%); transform: translateY(50%); font: 400 14px/1 "Inter", var(--font-sans); color: rgba(239,242,255,.6); font-variant-numeric: tabular-nums; }
.chart-plot {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: calc(var(--ph) + var(--lh));
  background: repeating-linear-gradient(to top, rgba(255,255,255,.12) 0 1px, transparent 1px calc(var(--ph) / 6)) 0 0 / 100% calc(var(--ph) + 1px) no-repeat;
  position: relative;
}
.chart-plot::after { content: ""; position: absolute; left: 0; right: 0; top: var(--ph); height: 1px; background: rgba(255,255,255,.28); }
.chart-plot .bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-fill {
  position: relative; display: block; width: min(96px, 56%); height: calc(var(--v) / 6 * var(--ph)); margin-bottom: var(--lh);
  background: linear-gradient(180deg, #a58cff 0%, #6b4fe0 100%); border-radius: 10px 10px 0 0;
  transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms);
  box-shadow: 0 0 40px rgba(107,79,224,.35);
}
.bar-fill b { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); font: 700 18px/1 "Inter", var(--font-sans); color: #fbfafc; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .5s .9s; }
.bar.is-zero .bar-fill { display: none; }
.bar-label { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lh); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; font: 400 15px/1.2 "Inter", var(--font-sans); color: rgba(239,242,255,.7); }
.bar:nth-child(2) { --i: 1; } .bar:nth-child(3) { --i: 2; } .bar:nth-child(4) { --i: 3; } .bar:nth-child(5) { --i: 4; } .bar:nth-child(6) { --i: 5; }
.chart.is-drawn .bar-fill { transform: scaleY(1); }
.chart.is-drawn .bar-fill b { opacity: 1; }
.chart figcaption { text-align: left; color: #999; font-family: "Inter", var(--font-sans); font-weight: 400; font-size: 14px; line-height: 33px; letter-spacing: -0.44px; margin-top: 8px; }
.js .chart:not(.is-drawn) .bar-fill { transform: scaleY(0); }
html:not(.js) .bar-fill { transform: none; } html:not(.js) .bar-fill b { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; transform: scaleY(1) !important; } .bar-fill b { opacity: 1; transition: none; } }

@media (max-width: 700px) {
  .chart-card { display: block; padding: 22px 16px 14px; }
  .chart-ticks { display: none; }
  .chart-plot { display: block; height: auto; background: none; }
  .chart-plot::after { display: none; }
  .chart-plot .bar { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; min-height: 40px; }
  .bar-label { position: static; height: auto; justify-content: flex-start; text-align: left; padding: 0; font-size: 14px; order: -1; }
  .bar-fill { width: calc(var(--v) / 6 * (100% - 34px)); min-width: 0; height: 22px; margin: 0; border-radius: 0 8px 8px 0; transform-origin: left; transform: scaleX(0); }
  .chart.is-drawn .bar-fill { transform: scaleX(1); }
  .js .chart:not(.is-drawn) .bar-fill { transform: scaleX(0); }
  .bar-fill b { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: 15px; }
  .bar.is-zero .bar-fill { display: block; width: 0; box-shadow: none; }
  .bar.is-zero .bar-fill b { left: 6px; color: rgba(239,242,255,.6); font-weight: 400; }
}
.chart { margin-bottom: clamp(20px, 3vw, 36px); }
.chart { margin-top: clamp(32px, 5vw, 64px); margin-bottom: clamp(48px, 7vw, 96px); }
.shot-frame.bare.edge-r53::before, .shot-frame.bare.edge-r53::after { border-radius: 5.27cqw; } /* sub-navigation export */

@keyframes caret-blink { 0%, 40% { opacity: .9; } 60%, 100% { opacity: 0; } }

/* ---------- Nav links + About page ---------- */
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links .pill[aria-current="page"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.about-career h2, .about-h { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; color: #fff; }
.about-block { margin-top: clamp(56px, 8vw, 96px); }
.about-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about-list li { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-date { font-family: "Inter", var(--font-sans); font-size: 14px; color: #808080; letter-spacing: -0.2px; }
.about-list h3 { white-space: nowrap; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 22px; letter-spacing: -0.34px; margin: 0; color: #fff; }
.about-list p { font-family: "Inter", var(--font-sans); font-size: 16px; color: #999; margin: 4px 0 0; }
.about-go { font-family: "Inter", var(--font-sans); font-size: 14px; color: #bbb; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.about-go:hover { color: #fff; border-color: #fff; }
.about-tags { margin-top: 8px; }
.about-block:last-of-type { margin-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 700px) {
  .about-list li { grid-template-columns: 1fr; gap: 6px; }
  .about-go { justify-self: start; margin-top: 6px; }
}

/* About page: slightly wider single column (heading and content share it) and type sized up by 1px */
.about .col, .about .cs-hero { width: min(680px, calc(100% - var(--gutter) * 2)); }
.about .cs-hero h1 { font-size: clamp(47px, calc(6.8vw + 1px), 89px); }
.about .lede { font-size: clamp(20px, calc(2.4vw + 1px), 25px); }
.about .prose p { font-size: 18px; line-height: 26px; }
.about .about-career h2, .about .about-h { font-size: clamp(35px, calc(4.6vw + 1px), 49px); }
.about .about-date { font-size: 15px; }
.about .about-list h3 { font-size: 23px; }
.about .about-list p { font-size: 17px; }
.about .about-go { font-size: 15px; }
.about .tags .pill { font-size: 17px; line-height: 17px; }
.about footer.site { font-size: 15px; }

/* Case study pages: wider single column (heading and content share it) and every text size up by 1px, headings included so the hierarchy holds */
body.cs .col, body.cs .cs-hero { width: min(680px, calc(100% - var(--gutter) * 2)); }
body.cs .cs-hero h1 { font-size: clamp(47px, calc(6.8vw + 1px), 89px); }
body.cs .lede { font-size: clamp(20px, calc(2.4vw + 1px), 25px); }
body.cs .meta { font-size: 17px; line-height: 23.4px; }
body.cs .tags .pill { font-size: 17px; line-height: 17px; }
body.cs .block h2, body.cs .col h2 { font-size: clamp(41px, calc(5vw + 1px), 65px); }
body.cs .col h2.h-sm { font-size: clamp(35px, calc(4vw + 1px), 49px); }
body.cs .col h3 { font-size: clamp(25px, calc(3.6vw + 1px), 33px); }
body.cs .col h4 { font-size: 21px; }
body.cs .prose p, body.cs .prose li, body.cs .col .list li { font-size: 18px; line-height: 26px; }
body.cs .list li { font-size: 19px; }
body.cs .prose.learned h3 { font-size: 25px; }
body.cs .prose.learned p { font-size: 17.8px; line-height: 28px; }
body.cs .summary .summary-label { font-size: 14px; }
body.cs .summary p { font-size: 18px; }
body.cs .statement, body.cs .moment-inner { font-size: clamp(45px, calc(7vw + 1px), 101px); }
body.cs .shot figcaption, body.cs .chart figcaption { font-size: 15px; }
body.cs .stat-num { font-size: clamp(45px, calc(5vw + 1px), 65px); }
body.cs .stat p { font-size: 17px; }
body.cs .stat small { font-size: 13px; }
body.cs .feature h3 { font-size: 23px; }
body.cs .feature p { font-size: 17px; }
body.cs .features .feature h3, body.cs .quotes .feature h3 { font-size: 27.1px; }
body.cs .features .feature p { font-size: 17px; line-height: 25px; }
body.cs .quotes .feature blockquote { font-size: 17px; line-height: 25px; }
body.cs .quote-card blockquote { font-size: clamp(29px, calc(4.4vw + 1px), 41px); }
body.cs .quote-card cite { font-size: 17px; }
body.cs .quote-card cite span { font-size: 15px; }
body.cs th, body.cs td { font-size: 17px; }
body.cs .btn { font-size: 17px; }
body.cs .btn.sm { font-size: 15px; }
body.cs .next small { font-size: 15px; }
body.cs .next span { font-size: clamp(33px, calc(5vw + 1px), 53px); }
body.cs footer.site { font-size: 15px; }
@media (max-width: 700px) {
  body.cs .stat-num { font-size: clamp(31px, calc(9vw + 1px), 39px); }
  body.cs .stat p { font-size: 15px; }
  body.cs .stat small { font-size: 12px; }
  body.cs .stats.three .stat-num { font-size: 45px; }
  body.cs .stats.three .stat p { font-size: 17px; }
  body.cs td::before { font-size: 13px; }
  body.cs td:first-child { font-size: 21px; }
  body.cs td:first-child::before { font-size: inherit; }
  body.cs .chart .bar-label { font-size: 15px; }
}
body.cs .rule { width: min(680px, calc(100% - 32px)); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: clamp(52px, 8vw, 88px) 24px; margin-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 120px);
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(70% 95% at 50% 105%, rgba(120, 84, 220, .55) 0%, rgba(112, 82, 190, .28) 38%, rgba(112, 82, 170, 0) 72%), radial-gradient(45% 60% at 12% 0%, rgba(96, 62, 190, .16), transparent 70%), #0d0d10; }
.contact > * { position: relative; z-index: 1; }
.contact-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 20px; color: #fbfafc; }
.contact-title em { font-style: italic; }
.contact p { font-family: "Inter", var(--font-sans); font-size: 18px; line-height: 1.5; letter-spacing: -0.3px; color: rgba(255,255,255,.78); max-width: 460px; margin: 0 auto 32px; }
.contact .btn { font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 16px; color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.contact .btn:hover { background: rgba(255,255,255,.2); }
.about .contact { width: min(680px, calc(100% - var(--gutter) * 2)); }
.about .contact { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- Awards ---------- */
.about .about-list.awards h3 { white-space: normal; line-height: 1.25; }
.about-block[id] { scroll-margin-top: 110px; }
.hero-stack { position: relative; width: 100%; }
.award-line { position: absolute; left: 50%; top: 100%; margin-top: clamp(22px, 3.4vh, 36px); translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 400 13px/1 "Inter", var(--font-sans); letter-spacing: -0.1px; color: rgba(255,255,255,.6); transition: color .3s; }
.award-line svg { flex: none; color: #b79cff; }
.award-line strong { font-weight: 500; color: rgba(255,255,255,.88); }
.award-line:hover { color: rgba(255,255,255,.9); }
.award-line:hover strong { color: #fff; }
.al-short { display: none; }
@media (max-width: 900px) { .al-long { display: none; } .al-short { display: inline; } }

/* Longer statement (billing): smaller type and balanced lines so it breaks into two even lines like the others */
.statement-long { font-size: clamp(40px, 6.3vw, 90px); text-wrap: balance; }
.statement-long em { text-wrap: balance; }

/* Hide split headlines until the script has split them (avoids a flash of plain text); shows anyway after 2.5s as a safety net */
.js [data-split]:not(.split-ready) { visibility: hidden; animation: sp-show 0s 2.5s forwards; }
@keyframes sp-show { to { visibility: visible; } }

/* Hero with a moving glow: transparent device PNG sitting on a dark container whose purple glow drifts slowly behind it */
.shot-frame.glow-stage { position: relative; aspect-ratio: 2492 / 1787; container-type: inline-size; border-radius: min(58px, 4.66cqw); overflow: hidden; border: 0; isolation: isolate; --gx: 50%; --gy: 50%;
  background: #101010; }
.shot-frame.glow-stage > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; cursor: default; }
.gs-glow { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; will-change: transform; transition: translate 1.1s cubic-bezier(.2,.7,.2,1); }
.gs-a { width: 135%; height: 115%; left: -17.5%; top: -7.5%; background: radial-gradient(closest-side, rgba(165,125,255,0.750) 0%, rgba(165,125,255,0.728) 8%, rgba(165,125,255,0.666) 17%, rgba(165,125,255,0.574) 25%, rgba(165,125,255,0.466) 33%, rgba(165,125,255,0.356) 42%, rgba(165,125,255,0.255) 50%, rgba(165,125,255,0.171) 58%, rgba(165,125,255,0.106) 67%, rgba(165,125,255,0.060) 75%, rgba(165,125,255,0.030) 83%, rgba(165,125,255,0.011) 92%, rgba(165,125,255,0.000) 100%); translate: calc((var(--gx) - 50%) * .35) calc((var(--gy) - 50%) * .35); }
/* one very large glow; main.js sends it on a random route across the whole container (it simply sits still without JS or with reduced motion) */
/* same cursor light and glass edge highlight as the other case-study images */
.shot-frame.glow-stage::before, .shot-frame.glow-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.shot-frame.glow-stage::before { z-index: 3; background: radial-gradient(360px circle at var(--gx) var(--gy), rgba(255,255,255,.07), transparent 62%); }
.shot-frame.glow-stage::after { z-index: 4; padding: 1px; background: radial-gradient(240px circle at var(--gx) var(--gy), rgba(255,255,255,.85), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) { .shot-frame.glow-stage:hover::before, .shot-frame.glow-stage:hover::after { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gs-glow { animation: none; translate: none; } }

.shot-frame.glow-stage .proto-btn { z-index: 3; right: 2.6cqw; bottom: 2.6cqw; padding: max(7px, 1.1cqw) max(14px, 2.2cqw); font-size: max(11px, 1.5cqw); }

/* static glass stroke round the container (same gradient as the View Prototype button), visible when not hovering */
.shot-frame.glow-stage .gs-edge { position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 45%, rgba(255,255,255,.02) 70%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* home-page cards: transparent device pictures on a dark panel with the same drifting glow as the case-study heroes */
.card-media.glow-stage { background: #101010; }
.card-media.glow-stage > img { z-index: 2; }

/* ===== LIGHT THEME (generated) ===== */
html[data-theme="light"] .nav.is-scrolled .nav-inner { border-color:rgba(18,18,22,0.14); }
html[data-theme="light"] .dim { color:rgba(18,18,22,0.64); }
html[data-theme="light"] a.pill:hover { background:rgba(18,18,22,0.12); border-color:rgba(18,18,22,0.22); }
html[data-theme="light"] .g { color:rgba(18,18,22,0.64); }
html[data-theme="light"] .logo-text { color:rgba(18,18,22,0.89); }
html[data-theme="light"] .card::before { background:radial-gradient(320px circle at var(--gx) var(--gy), rgba(18,18,22,0.07), transparent 60%); }
html[data-theme="light"] .card::after { background:radial-gradient(170px circle at var(--gx) var(--gy), rgba(255,255,255,calc(var(--glint, 0) * .8)), transparent 70%),
    linear-gradient(var(--ea), rgba(18,18,22,0.3) 0%, rgba(18,18,22,0.1) 14%, transparent 38%); }
html[data-theme="light"] .card-title { color:rgba(18,18,22,0.92); }
html[data-theme="light"] .lede { color:#5a5a62; }
html[data-theme="light"] .meta dt { color:#121214; }
html[data-theme="light"] .meta dd { color:#62626a; }
html[data-theme="light"] .block h2,
html[data-theme="light"] .col h2 { color:#121214; }
html[data-theme="light"] .col h3 { color:#121214; }
html[data-theme="light"] .prose p,
html[data-theme="light"] .prose li,
html[data-theme="light"] .col .list li { color:rgba(18,18,22,.76); }
html[data-theme="light"] .prose p strong,
html[data-theme="light"] .prose strong { color:#38383e; }
html[data-theme="light"] .prose .lead { color:#121214; }
html[data-theme="light"] .statement { color:rgba(18,18,22,.5); }
html[data-theme="light"] .statement em { color:#121214; }
html[data-theme="light"] .moment-a { color:rgba(18,18,22,.5); }
html[data-theme="light"] .moment-b { color:#121214; }
html[data-theme="light"] .moment .c.cur::after { border-right:max(1.5px, .018em) solid rgba(18,18,22,0.8); }
html[data-theme="light"] .shot figcaption { color:#5a5a62; }
html[data-theme="light"] .stat { background:rgba(255,255,255,.78); border:1px solid rgba(18,18,22,0.06); }
html[data-theme="light"] .stat:hover { border-color:rgba(18,18,22,0.2); background:rgba(255,255,255,.78); }
html[data-theme="light"] .stat-num { color:#121214; }
html[data-theme="light"] .stat p { color:#34343a; }
html[data-theme="light"] .stat small { color:#5a5a62; }
html[data-theme="light"] .feature { border:1px solid rgba(18,18,22,0.08); }
html[data-theme="light"] .feature:hover { border-color:rgba(18,18,22,0.2); }
html[data-theme="light"] .features .feature { background:rgba(255,255,255,.78); border:1px solid rgba(18,18,22,0.06); }
html[data-theme="light"] .features .feature:hover { background:rgba(255,255,255,.78); border-color:rgba(18,18,22,0.2); }
html[data-theme="light"] .features .feature h3 { color:#121214; }
html[data-theme="light"] .features .feature p { color:#5a5a62; }
html[data-theme="light"] .qmark { color:rgba(18,18,22,0.49); }
html[data-theme="light"] .quotes .feature { background:rgba(255,255,255,.78); border:1px solid rgba(18,18,22,0.06); }
html[data-theme="light"] .quotes .feature:hover { background:rgba(255,255,255,.78); border-color:rgba(18,18,22,0.2); }
html[data-theme="light"] .quotes .feature h3 { color:#121214; }
html[data-theme="light"] .quotes .feature .qmark { color:#5a5a62; }
html[data-theme="light"] .quotes .feature blockquote { color:#5a5a62; }
html[data-theme="light"] th,
html[data-theme="light"] td { color:#38383e; background:rgba(255,255,255,.78); border-bottom:1px solid rgba(18,18,22,0.04); border-right:1px solid rgba(18,18,22,0.04); }
html[data-theme="light"] th { background:rgba(255,255,255,.78); color:#121214; }
html[data-theme="light"] td:first-child { color:#121214; }
html[data-theme="light"] .prose.learned p { color:#5a5a62; }
html[data-theme="light"] td strong { color:#38383e; }
html[data-theme="light"] .btn { background:rgba(18,18,22,0.08); border:1px solid rgba(18,18,22,0.14); }
html[data-theme="light"] .btn:hover { background:rgba(18,18,22,0.18); }
html[data-theme="light"] :focus-visible { outline:2px solid #5a3dc2; }
@media (max-width: 700px) {
html[data-theme="light"] tbody tr { background:rgba(255,255,255,.78); border:1px solid rgba(18,18,22,0.06); }
html[data-theme="light"] tbody tr:last-child td:first-child { border-bottom:1px solid rgba(18,18,22,0.08); }
html[data-theme="light"] td::before { color:#5a5a62; }
html[data-theme="light"] td:first-child { color:#121214; border-bottom:1px solid rgba(18,18,22,0.08); }
html[data-theme="light"] td:nth-child(2) { color:#121214; }
}
html[data-theme="light"] .summary { border-top:1px solid rgba(18,18,22,0.1); }
html[data-theme="light"] .summary > div + div { border-left:1px solid rgba(18,18,22,0.1); }
html[data-theme="light"] .summary .summary-label { color:#5a3dc2; }
html[data-theme="light"] .summary p { color:rgba(18,18,22,.86); }
@media (max-width: 860px) {
html[data-theme="light"] .summary > div + div { border-top:1px solid rgba(18,18,22,0.1); }
}
html[data-theme="light"] .chart-card { background:rgba(255,255,255,.78); border:1px solid rgba(18,18,22,0.06); }
html[data-theme="light"] .chart-ticks span { color:rgba(18,18,22,.6); }
html[data-theme="light"] .chart-plot { background:repeating-linear-gradient(to top, rgba(18,18,22,0.12) 0 1px, transparent 1px calc(var(--ph) / 6)) 0 0 / 100% calc(var(--ph) + 1px) no-repeat; }
html[data-theme="light"] .chart-plot::after { background:rgba(18,18,22,0.28); }
html[data-theme="light"] .bar-fill { background:linear-gradient(180deg, #5a3dc2 0%, #6b4fe0 100%); }
html[data-theme="light"] .bar-fill b { color:#121214; }
html[data-theme="light"] .bar-label { color:rgba(18,18,22,.7); }
html[data-theme="light"] .chart figcaption { color:#5a5a62; }
@media (max-width: 700px) {
html[data-theme="light"] .bar.is-zero .bar-fill b { color:rgba(18,18,22,.6); }
}
html[data-theme="light"] .nav-links .pill[aria-current="page"] { background:rgba(18,18,22,0.12); border-color:rgba(18,18,22,0.22); }
html[data-theme="light"] .about-career h2,
html[data-theme="light"] .about-h { color:#121214; }
html[data-theme="light"] .about-date { color:#62626a; }
html[data-theme="light"] .about-list h3 { color:#121214; }
html[data-theme="light"] .about-list p { color:#5a5a62; }
html[data-theme="light"] .about-go { color:#55555c; border-bottom:1px solid rgba(18,18,22,0.2); }
html[data-theme="light"] .about-go:hover { color:#121214; border-color:#121214; }
html[data-theme="light"] .award-line { color:rgba(18,18,22,0.74); }
html[data-theme="light"] .award-line svg { color:#5a3dc2; }
html[data-theme="light"] .award-line strong { color:rgba(18,18,22,0.88); }
html[data-theme="light"] .award-line:hover { color:rgba(18,18,22,0.9); }
html[data-theme="light"] .award-line:hover strong { color:#121214; }

/* ===== LIGHT THEME (manual adjustments) ===== */
html[data-theme="light"] { color-scheme: light; --bg: #f4f3f8; --ink: #121214; --muted: rgba(18,18,22,.7); --soft: rgba(18,18,22,.8); --line: rgba(18,18,22,.12); --card: #ffffff; }
html[data-theme="light"] .marquee img, html[data-theme="light"] .card-brand img { filter: brightness(0) opacity(.78); }
.theme-toggle { width: 42px; height: 42px; margin-left: 2px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .3s, border-color .3s; }
.theme-toggle:hover { background: rgba(255,255,255,.1); }
html[data-theme="light"] .theme-toggle:hover { background: rgba(18,18,22,.08); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (max-width: 700px) { .theme-toggle { width: 36px; height: 36px; } .theme-toggle svg { width: 16px; height: 16px; } }
html[data-theme="light"] .nav-inner { background: rgba(255,255,255,.55); }
html[data-theme="light"] .nav.is-scrolled .nav-inner { background: rgba(255,255,255,.86); border-color: rgba(18,18,22,.12); }
html[data-theme="light"] .pill { background: rgba(255,255,255,.6); }
html[data-theme="light"] .logos::before { background: rgba(18,18,22,.035); }
html[data-theme="light"] .card { background: radial-gradient(120% 55% at 50% 0%, rgba(96,62,190,.14), transparent 70%), radial-gradient(70% 40% at 100% 100%, rgba(80,50,160,.07), transparent 70%), #ffffff; border-color: rgba(18,18,22,.08); box-shadow: 0 18px 40px -26px rgba(40,30,90,.28); }
html[data-theme="light"] .card:hover { box-shadow: 0 30px 60px -30px rgba(100,70,220,.38); }
html[data-theme="light"] .card-title { color: #121214; }
/* Light mode: keep the page flat and clean. Only the cursor glow stays; the roaming blobs are removed, which also keeps text contrast steady. */
html[data-theme="light"] .glow { display: none; }
html[data-theme="light"] .cursor-glow { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(110, 80, 230, 0.13), transparent 70%); }
html[data-theme="light"] .list li::before { box-shadow: none; }
/* quote and key-discovery cards stay dark so they stand out on the light page */
html[data-theme="light"] .quote-card { background:
    radial-gradient(closest-side at 50% 50%, rgba(112,82,170,.5) 0%, rgba(112,82,170,.4) 20%, rgba(112,82,170,.27) 40%, rgba(112,82,170,.14) 62%, rgba(112,82,170,.05) 82%, rgba(112,82,170,0) 100%) right -150px bottom -210px / 520px 520px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 60%), #0b0b0e; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .quote-card h3 { color: #fbfafc; }
html[data-theme="light"] .quote-card blockquote, html[data-theme="light"] .quote-card .qmark { color: #999; }
/* contact card stays dark in light mode, so its button keeps the light-on-dark style */
html[data-theme="light"] .contact .btn { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
html[data-theme="light"] .contact .btn:hover { background: rgba(255,255,255,.2); }

/* ===== Case study cards v2 (Figma "Case-study-card-update", designed at 325 x 464) =====
   Sizes inside the card are in --u (1px at the 325px design width), so the card scales as one piece. */
.cards.cards-v2 { gap: 20px; width: min(1480px, calc(100% - 24px)); }
@media (min-width: 1021px) {
  .cards.cards-v2, .cards.cards-v2:has(.card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1020px) {
  .cards.cards-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
.case-card {
  container-type: inline-size; aspect-ratio: 325 / 464; border-radius: 26px; isolation: isolate;
  background: #101010; --u: calc(100cqw / 325);
}
.case-card .cc-top { position: relative; z-index: 3; padding: calc(var(--u) * 24) calc(var(--u) * 32) 0; }
.case-card .cc-logo-row { height: calc(var(--u) * var(--rh, 32)); display: flex; align-items: center; }
.case-card .cc-logo { height: calc(var(--u) * var(--lh, 32)); width: auto; }
.case-card .cc-title {
  margin-top: calc(var(--u) * 8); min-height: calc(var(--u) * 64);
  font-family: "Inter", var(--font-sans); font-weight: 500; letter-spacing: 0;
  font-size: calc(var(--u) * 22); line-height: calc(var(--u) * 32); color: #fafafc;
}
/* headline stat: plain text under the title (no pill) */
.case-card .cc-stat {
  display: block; margin-top: calc(var(--u) * 8);
  font-family: "Inter", var(--font-sans); font-size: calc(var(--u) * 12); line-height: calc(var(--u) * 16); color: #fafafc;
}
.case-card .cc-stat strong { font-weight: 600; }
/* picture sits along the bottom edge, full width, cropped by the card's rounded corners */
.case-card .cc-img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 1; transform-origin: 50% 100%; transition: transform .6s var(--ease); }
/* same feel as the old cards: the picture shifts and turns slightly against the cursor as the card tilts.
   It's pinned at the bottom and scaled a touch, so no gap ever opens at the card's edges. */
@media (hover: hover) and (pointer: fine) {
  .case-card:hover .cc-img {
    transform: perspective(520px) translate3d(calc(var(--tx, 0) * -3px), calc((1 - var(--ty, 0)) * 2px), 0)
               rotateX(calc(var(--ty, 0) * -3deg)) rotateY(calc(var(--tx, 0) * 3.5deg)) scale(1.03);
  }
}
/* glass highlight edge, the same gradient stroke as the case study hero images */
.case-card .cc-edge { position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.06) 45%, rgba(255,255,255,.015) 70%, rgba(255,255,255,.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* keep only the cursor glint from the old card edge, so the stroke isn't drawn twice */
.case-card::after { background: radial-gradient(170px circle at var(--gx) var(--gy), rgba(255,255,255,calc(var(--glint, 0) * .8)), transparent 70%); }
@media (max-width: 700px) { .cards.cards-v2 .case-card { flex: 0 0 min(88%, 360px); } }
html[data-theme="light"] .case-card::after { background: radial-gradient(170px circle at var(--gx) var(--gy), rgba(255,255,255,calc(var(--glint, 0) * .8)), transparent 70%); }

/* case-card fixes: mobile carousel width, light theme */
@media (max-width: 700px) { .cards.cards-v2 { width: auto; } }
html[data-theme="light"] .case-card .cc-logo { filter: brightness(0) opacity(.78); }
html[data-theme="light"] .case-card .cc-title { color: #121214; }
html[data-theme="light"] .case-card .cc-stat { color: #34343a; }
html[data-theme="light"] .case-card .cc-stat strong { color: #121214; }
html[data-theme="light"] .case-card .cc-edge { background: linear-gradient(160deg, rgba(18,18,22,.16), rgba(18,18,22,.05) 45%, rgba(18,18,22,.02) 70%, rgba(18,18,22,.08)); }

/* case cards: frosted glass. On the plain page background this renders as #101010;
   over the purple glow it lets a soft, blurred tint through. */
.case-card { background: rgba(255, 255, 255, 0.028); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }
html[data-theme="light"] .case-card { background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }

/* case cards: very slight frosted-glass grain on top of the translucent fill (make it stronger or weaker by changing opacity='.15' / '.17') */
.case-card { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.15'/></svg>") 0 0 / 180px 180px, rgba(255, 255, 255, 0.028); }
html[data-theme="light"] .case-card { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.17'/></svg>") 0 0 / 180px 180px, rgba(255, 255, 255, 0.62); }

/* case study hero containers: the same frosted-glass grain as the homepage cards.
   Sits above the drifting glow and below the device picture. */
.shot-frame.glow-stage .gs-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.15'/></svg>") 0 0 / 180px 180px; }
html[data-theme="light"] .shot-frame.glow-stage .gs-grain { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.17'/></svg>") 0 0 / 180px 180px; }

/* mobile: no backdrop blur on the cards. Where a card runs off the side of the screen the blur
   picks up light from beyond the edge and shows a pale band; the tint and grain stay. */
@media (max-width: 700px) { .case-card, html[data-theme="light"] .case-card { -webkit-backdrop-filter: none; backdrop-filter: none; } }
