/* ==========================================================
   Softscribble — immersive site
   ========================================================== */
:root {
  --bg: #050505;
  --bg-2: #0d0c09;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f3ea;
  --muted: #9b968a;
  --accent: #ffc800;          /* sun yellow */
  --accent-soft: rgba(255, 200, 0, 0.14);
  --ink: #120f00;             /* text on yellow */
  --font-display: 'Saira', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Canvas & atmosphere ---------- */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 60vw at 85% 10%, rgba(255, 200, 0, 0.08), transparent 60%),
    radial-gradient(50vw 50vw at 0% 100%, rgba(255, 200, 0, 0.05), transparent 60%),
    var(--bg);
}
body.no-webgl::before {
  background:
    radial-gradient(40vw 40vw at 75% 35%, rgba(255, 200, 0, 0.22), transparent 60%),
    radial-gradient(50vw 50vw at 0% 100%, rgba(255, 200, 0, 0.08), transparent 60%),
    var(--bg);
}
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.03;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, 2%); }
}

/* faint layout columns behind the content */
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between;
}
.grid-lines i { width: 1px; height: 100%; transform-origin: top; background: linear-gradient(transparent, rgba(255, 255, 255, 0.028) 15%, rgba(255, 255, 255, 0.028) 85%, transparent); }
@media (max-width: 820px) { .grid-lines i:nth-child(2), .grid-lines i:nth-child(4) { display: none; } }

/* giant outlined section numbers, drifted by JS via --num-y */
.section[data-num]::after {
  content: attr(data-num); position: absolute; z-index: -1; top: 4vh; right: calc(var(--gutter) + 24px); pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(140px, 22vw, 360px); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 200, 0, 0.13); transform: translateY(var(--num-y, 0px));
}

/* rotating gold edge on hover — used by cards, team and the drawing pad */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.project__art::before, .member::before, .pad::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg 220deg, #ff8a00 270deg, var(--accent) 310deg, #fff4c2 335deg, transparent 360deg);
  -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);
  opacity: 0; transition: opacity 0.5s; animation: edge-spin 3.2s linear infinite;
}
.project:hover .project__art::before, .member:hover::before, .pad:hover::before { opacity: 1; }
@keyframes edge-spin { to { --angle: 360deg; } }

/* ---------- Loader ---------- */
/* ---------- Shared HUD bits ---------- */
.mono { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.hud-box { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-box img { width: 118px; height: auto; }
.hud-box .mono { color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }

/* ---------- Loader / entry gate ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #030303; color: var(--text);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--gutter);
  clip-path: inset(0% 0% 0% 0%);
}
.loader__top { display: flex; justify-content: space-between; align-items: center; }
.loader__top .mono { color: var(--muted); }
.loader__top b { color: var(--accent); font-weight: 500; }
.loader__top b { color: var(--accent); }
.loader__center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 34px; width: min(720px, 86vw); text-align: center; }

/* logo scan: a faint outline copy, the solid logo revealed to --p, and a glowing scan line on the edge */
.loader__logo { position: relative; width: min(560px, 80vw); } /* --p is set on .loader by JS */
.loader__logo img { width: 100%; height: auto; }
.loader__ghost { opacity: 0.1; }
.loader__fill { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); filter: drop-shadow(0 0 18px rgba(255, 200, 0, 0.35)); }
.loader__scan {
  position: absolute; top: -18%; bottom: -18%; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px;
  background: var(--accent); box-shadow: 0 0 14px 3px rgba(255, 200, 0, 0.75), 0 0 40px 8px rgba(255, 200, 0, 0.3);
  transition: opacity 0.3s;
}
.loader.is-done .loader__scan { opacity: 0; }
.loader.is-done .loader__fill { animation: logo-glitch 0.5s steps(1) 1; }
.loader__tag { font-family: var(--font-display); font-weight: 300; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* RGB-split glitch used by the loader logo and the header logo */
@keyframes logo-glitch {
  0% { transform: translate(0, 0); filter: drop-shadow(3px 0 0 rgba(255, 200, 0, 0.95)) drop-shadow(-3px 0 0 rgba(255, 255, 255, 0.6)); }
  20% { transform: translate(-3px, 1px); clip-path: inset(12% 0 48% 0); }
  40% { transform: translate(3px, -1px); clip-path: inset(58% 0 6% 0); filter: drop-shadow(-4px 0 0 rgba(255, 200, 0, 0.95)) drop-shadow(4px 0 0 rgba(255, 255, 255, 0.6)); }
  60% { transform: translate(-1px, 0); clip-path: inset(30% 0 30% 0); }
  80% { transform: translate(2px, 1px); clip-path: inset(0 0 0 0); filter: none; }
  100% { transform: none; clip-path: inset(0 0 0 0); filter: none; }
}

/* header logo: two tinted copies slip apart on hover */
.logo-glitch { position: relative; display: block; }
.logo-glitch img + img { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.logo-glitch img:nth-child(2) { filter: brightness(0) saturate(100%) invert(76%) sepia(64%) saturate(1200%) hue-rotate(2deg) brightness(104%); }
.header__logo:hover .logo-glitch img:nth-child(2) { animation: slip-a 0.55s steps(2) 1; }
.header__logo:hover .logo-glitch img:nth-child(3) { animation: slip-b 0.55s steps(2) 1; }
.header__logo:hover .logo-glitch img:first-child { animation: logo-glitch 0.55s steps(1) 1; }
@keyframes slip-a { 0% { opacity: 0.9; transform: translate(-4px, 0); clip-path: inset(0 0 55% 0); } 50% { opacity: 0.9; transform: translate(3px, 1px); clip-path: inset(45% 0 0 0); } 100% { opacity: 0; transform: none; } }
@keyframes slip-b { 0% { opacity: 0.6; transform: translate(4px, 1px); clip-path: inset(40% 0 20% 0); } 50% { opacity: 0.6; transform: translate(-3px, 0); clip-path: inset(10% 0 60% 0); } 100% { opacity: 0; transform: none; } }
.header__logo:active .logo-glitch { transform: scale(0.96); }
.loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__count { font-family: var(--font-display); font-weight: 200; font-size: clamp(80px, 13vw, 220px); line-height: 0.75; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.loader__hint { color: var(--muted); padding-bottom: 6px; text-align: right; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
body.has-cursor .cursor, body.has-cursor .cursor-dot {
  display: block; position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid #fff; mix-blend-mode: difference;
  display: grid !important; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
body:not(.has-cursor) .cursor { display: none !important; }
.cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor__label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Header ---------- */
/* minimal HUD header: logo box left, pills right — no background bar */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gutter);
}
.header > * { pointer-events: auto; }
.header__line { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-right: auto; margin-left: 18px; }
.header__line i { width: 3px; height: 14px; background: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(5, 5, 5, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.pill:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-toggle__lines { display: grid; gap: 4px; width: 16px; }
.menu-toggle__lines i { display: block; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
body.menu-open .menu-toggle__lines i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .menu-toggle__lines i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
body.menu-open .menu-toggle { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* full-screen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 35; background: rgba(3, 3, 3, 0.97);
  display: flex; align-items: center; padding: 110px var(--gutter) 60px;
  clip-path: circle(0% at calc(100% - var(--gutter) - 50px) 44px); transition: clip-path 0.9s var(--ease);
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - var(--gutter) - 50px) 44px); }
.menu__grid { width: 100%; max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 60px; align-items: end; }
.menu__nav { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.3s, letter-spacing 0.6s var(--ease); }
.menu__nav a .mono { color: var(--accent); font-size: 11px; }
.menu__nav a:hover { color: var(--accent); letter-spacing: 0.1em; }
.menu__side { display: grid; gap: 6px; color: var(--muted); }
.menu__side a { color: var(--text); }
.menu__side a:hover { color: var(--accent); }
.menu__label { color: var(--accent); margin-top: 18px; }

/* ---------- Buttons ---------- */
/* Orano-style bar button: warm white slab, sun-yellow bar on the left that floods on hover */
.btn {
  --pad: 17px 34px 17px 40px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad); border-radius: 2px; overflow: hidden; isolation: isolate;
  background: var(--text); color: var(--ink);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; z-index: -1; background: var(--accent);
  transition: width 0.6s var(--ease);
}
.btn:hover::before { width: 100%; }
/* light glint that sweeps across on hover */
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg);
}
.btn:hover::after { left: 130%; transition: left 0.9s var(--ease); }
.btn--wide { width: 100%; --pad: 20px 30px 20px 36px; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; overflow-x: clip; }
.section { position: relative; padding: clamp(100px, 16vh, 180px) 0; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
/* mono label with an Orano-style yellow tick */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.eyebrow::before { content: ''; width: 3px; height: 14px; background: var(--accent); }
.eyebrow .num { color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 200, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); } }
/* thin, widely tracked uppercase titles (Orano) */
.title { font-family: var(--font-display); font-weight: 250; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.08; letter-spacing: 0.06em; text-transform: uppercase; max-width: 16ch; }
.title--xl { font-size: clamp(38px, 5.6vw, 92px); }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.title em { font-style: normal; font-weight: 500; color: var(--accent); }
.body { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; margin-top: 28px; }
.section-head { margin-bottom: clamp(48px, 8vh, 90px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
/* Ion-style hero: tagline up top, object centre stage, hairline wordmark bleeding off the bottom */
.hero { height: 100vh; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; }
.atom { display: inline-block; }
.hero__tag {
  position: absolute; top: max(16vh, 118px); left: 50%; transform: translateX(-50%); width: min(92vw, 900px); text-align: center;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(15px, 1.6vw, 22px); letter-spacing: 0.3em; text-transform: uppercase;
}
.scribbled { position: relative; font-family: var(--font-hand); font-style: normal; font-weight: 700; font-size: 1.7em; color: var(--accent); letter-spacing: 0; text-transform: none; padding: 0 0.12em; line-height: 0.6; }
.scribbled svg { position: absolute; left: 0; bottom: -0.05em; width: 100%; height: 0.28em; overflow: visible; }
.scribbled path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease); vector-effect: non-scaling-stroke; }
.scribbled.is-drawn path { stroke-dashoffset: 0; }
.hero__foot { position: absolute; left: var(--gutter); bottom: calc(var(--mark, 12vw) * 0.82 + 2vh); display: grid; gap: 22px; max-width: 420px; }
.hero__lede { color: var(--muted); font-size: 15px; line-height: 1.6; text-shadow: 0 0 14px #000, 0 0 3px #000; /* stays legible over the horizon glow */ }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__mark {
  position: absolute; left: 0; right: 0; bottom: -0.11em; text-align: center; white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); font-weight: 120; font-size: 12vw; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text);
}
.hero__mark span { display: inline-block; }
.hero__mark .char { transition: font-weight 0.5s var(--ease); }

/* ---------- HUD: pager, chapters, sound ---------- */
.pager { position: fixed; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.pager b { color: var(--accent); font-weight: 500; }
.pager__line { width: 46px; height: 1px; background: var(--line); overflow: hidden; }
.pager__line i { display: block; width: 100%; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }

/* top-right under the header, leaving the lower right for the chat widget */
.chapters { position: fixed; right: var(--gutter); top: 104px; z-index: 30; }
.chapters ol { display: grid; gap: 2px; border-right: 1px solid var(--line); }
.chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 7px 0; color: rgba(255, 255, 255, 0.28); transition: color 0.4s; }
.chapters a span { opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.chapters a i { width: 6px; height: 1px; background: currentColor; margin-right: -1px; transition: width 0.5s var(--ease), background 0.4s; }
.chapters:hover a span, .chapters a.is-active span { opacity: 1; transform: none; }
.chapters a.is-active { color: var(--text); }
.chapters a.is-active i { width: 16px; background: var(--accent); height: 2px; }
.chapters a:hover { color: var(--accent); }

.hud-bl { position: fixed; left: var(--gutter); bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 16px; }
.hud-read { display: none; } /* coordinates/cursor readout: switched off for a calmer first look */
.header .kbd-btn { display: none; } /* Ctrl/⌘ K still opens the palette from the keyboard */
/* the first screen shows only the essentials; side HUD fades in once you scroll */
.chapters, .pager { transition: opacity 0.6s var(--ease), visibility 0.6s; }
body.in-hero .chapters, body.in-hero .pager { opacity: 0; visibility: hidden; }
.sound-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; gap: 2.5px; transition: border-color 0.3s, background 0.3s; }
.sound-btn:hover { border-color: var(--accent); }
.sound-btn i { width: 2px; height: 2px; background: var(--text); border-radius: 1px; transition: height 0.3s; }
.sound-btn.is-on { border-color: var(--accent); }
.sound-btn.is-on i { background: var(--accent); animation: eq 1s ease-in-out infinite; }
.sound-btn.is-on i:nth-child(2) { animation-delay: -0.3s; } .sound-btn.is-on i:nth-child(3) { animation-delay: -0.6s; }
.sound-btn.is-on i:nth-child(4) { animation-delay: -0.15s; } .sound-btn.is-on i:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: rgba(5, 5, 5, 0.4); transform: rotate(-1.5deg) skewX(var(--skew, 0deg)) scale(1.02); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-display); font-size: clamp(28px, 4vw, 56px); font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); }
.marquee__track b { color: var(--accent); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; max-width: 720px; }
.pillars li { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); backdrop-filter: blur(6px); }
.pillars strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; color: var(--accent); }
.pillars span { color: var(--muted); font-size: 14px; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line); max-width: 920px; }
.service { border-bottom: 1px solid var(--line); }
.service__row { width: 100%; display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 16px; padding: 30px 0; text-align: left; transition: padding 0.5s var(--ease); }
.service__num { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.service__name { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 48px); font-weight: 250; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; transition: color 0.4s, transform 0.6s var(--ease); }
.service__row:hover .service__name { color: var(--accent); transform: translateX(14px); }
.service__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.service__icon::before, .service__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.service__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.is-open .service__icon { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(135deg); }
.service.is-open .service__name { color: var(--accent); }
.service__body { display: grid; grid-template-rows: 0fr; padding-left: 80px; transition: grid-template-rows 0.6s var(--ease); }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__inner { overflow: hidden; }
.service__inner > p { max-width: 56ch; color: var(--muted); font-size: 17px; }
.service__inner .tags { margin-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }

/* ---------- Process ---------- */
/* stacked cards: each step sticks a little lower than the last, so they pile up */
.steps { display: grid; gap: 4vh; padding-bottom: 6vh; }
.step {
  position: sticky; top: calc(13vh + var(--i, 0) * 26px); overflow: hidden;
  min-height: min(56vh, 520px); padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  border-radius: 32px; border: 1px solid rgba(255, 200, 0, 0.22);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 200, 0, 0.16), transparent 55%), linear-gradient(180deg, #14110a, #0a0907);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55); transform-origin: 50% 0;
}
.step:nth-child(1) { --i: 0; } .step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }
.step:nth-child(even) { background: radial-gradient(120% 140% at 0% 0%, rgba(255, 140, 0, 0.18), transparent 55%), linear-gradient(180deg, #15100a, #0a0807); }
.step__top { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; }
.step__n { font-family: var(--font-hand); font-size: clamp(56px, 6vw, 88px); color: var(--accent); line-height: 1; }
.step__of { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.step h3 { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(40px, 6vw, 96px); font-weight: 250; line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; }
.step p { position: relative; z-index: 1; color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); max-width: 44ch; }
.step__ghost {
  position: absolute; right: -2%; bottom: -6%; pointer-events: none;
  font-family: var(--font-display); font-weight: 100; text-transform: uppercase; font-size: clamp(110px, 18vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 200, 0, 0.16);
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 10vh, 120px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(8, 8, 6, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat { padding: 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--font-display); font-weight: 200; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.stat--clock b { color: var(--accent); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- Rotating badges ---------- */
.badge { position: relative; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: badge-spin 14s linear infinite; }
.badge text { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; fill: var(--text); }
.badge__core { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: 22px; transition: transform 0.5s var(--ease); }
.badge:hover .badge__core { transform: scale(1.15) rotate(-12deg); }
.badge:hover svg { animation-duration: 4s; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
/* anchored to the first screen's bottom edge, even when the hero runs taller */
.badge--hero { position: absolute; right: calc(var(--gutter) + 90px); bottom: calc(var(--mark, 12vw) * 0.82 + 2vh); }
.badge--contact { margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq__head { position: sticky; top: 16vh; }
.faq__list { position: relative; z-index: 2; padding: 8px clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: rgba(8, 8, 6, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 26px); font-weight: 500; transition: color 0.3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover, .qa[open] summary { color: var(--accent); }
.qa summary i { flex: 0 0 auto; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.qa p { color: var(--muted); font-size: 17px; max-width: 60ch; padding: 0 0 28px; }
.qa p a { color: var(--accent); }
kbd { font-family: var(--font-display); font-size: 0.8em; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text); background: rgba(255, 255, 255, 0.04); white-space: nowrap; }

/* ---------- Header actions / ⌘K button ---------- */
.header__actions { display: flex; align-items: center; gap: 10px; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.025); transition: border-color 0.3s, color 0.3s; }
.kbd-btn:hover { border-color: var(--accent); color: var(--text); }
.kbd-btn kbd { font-size: 12px; }

/* ---------- Copy button + toast ---------- */
.copy-btn { margin-left: 10px; vertical-align: middle; font-family: var(--font-body); font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: border-color 0.3s, color 0.3s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 140%); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px rgba(255, 200, 0, 0.25); transition: transform 0.6s var(--ease), opacity 0.4s; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Back to top ---------- */
/* sits beside the bottom-centre chapter counter, clear of the chat widget in the bottom-right corner */
.totop { position: fixed; left: calc(50% + 78px); bottom: 20px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 10, 8, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--ease); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop circle { fill: none; stroke-width: 2; }
.totop__track { stroke: var(--line); }
.totop__bar { stroke: var(--accent); stroke-linecap: round; }
.totop span { color: var(--accent); font-size: 18px; transition: transform 0.4s var(--ease); }
.totop:hover span { transform: translateY(-3px); }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 110; display: grid; place-items: start center; padding: 14vh 16px 0; }
.palette[hidden] { display: none; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.palette__panel {
  position: relative; width: min(620px, 100%); border-radius: 22px; overflow: hidden;
  background: rgba(16, 14, 9, 0.96); border: 1px solid rgba(255, 200, 0, 0.25); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-14px) scale(0.97); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s;
}
.palette.is-open .palette__backdrop { opacity: 1; }
.palette.is-open .palette__panel { transform: none; opacity: 1; }
.palette__search { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 20px; }
.palette__input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-family: var(--font-body); font-size: 17px; }
.palette__input::placeholder { color: var(--muted); }
.palette__list { max-height: min(52vh, 440px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette__list li { display: grid; grid-template-columns: 36px 1fr auto 20px; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.palette__list li[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.p__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); font-size: 15px; }
[aria-selected="true"] .p__icon { background: rgba(0, 0, 0, 0.12); }
.p__label { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.p__hint { font-size: 13px; color: var(--muted); }
[aria-selected="true"] .p__hint { color: rgba(18, 15, 0, 0.7); }
.p__go { opacity: 0; }
[aria-selected="true"] .p__go { opacity: 0.7; }
.p__empty { color: var(--muted); padding: 20px 12px; cursor: default; }
.palette__foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette__foot span:last-child { margin-left: auto; color: var(--accent); font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.palette__foot kbd { font-size: 11px; margin-right: 2px; }

.footer__clock { display: inline-flex; align-items: center; gap: 6px; }
.footer__clock b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Work ---------- */
.link-arrow { font-family: var(--font-display); font-weight: 500; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.link-arrow::after { content: '↗'; color: var(--accent); transition: transform 0.4s var(--ease); }
.link-arrow:hover::after { transform: translate(3px, -3px); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.projects .project:nth-child(2) { margin-top: 90px; }
.projects .project:nth-child(3) { margin-top: 30px; }
.project { display: block; transform-style: preserve-3d; will-change: transform; }
.project__art {
  --mx: 50%; --my: 50%;
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--h1) 35%, transparent), transparent 60%), linear-gradient(160deg, var(--h2), var(--bg) 80%);
  display: grid; place-items: center;
}
.project__art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.project:hover .project__art::after { opacity: 1; }
.project__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.project__mono { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 200; font-size: clamp(56px, 8vw, 120px); letter-spacing: -0.04em; color: var(--h1); mix-blend-mode: screen; transition: transform 0.8s var(--ease), letter-spacing 0.8s var(--ease); }
.project:hover .project__mono { transform: scale(1.08); letter-spacing: 0; }
.project__meta { display: flex; flex-direction: column; gap: 2px; padding: 18px 4px 0; }
.project__meta h3 { font-family: var(--font-display); font-size: 22px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; }
.project__meta p { color: var(--muted); font-size: 14px; }

.work__aside { display: flex; align-items: center; gap: 28px; }
.work__count { font-family: var(--font-display); font-size: 14px; color: var(--muted); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.work__count b { color: var(--accent); font-weight: 600; }
.work__progress { display: none; }
.project--next .project__art { background: repeating-linear-gradient(-45deg, rgba(255, 200, 0, 0.06) 0 2px, transparent 2px 14px), var(--bg-2); border-style: dashed; border-color: rgba(255, 200, 0, 0.4); }
.project__next { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4vw, 60px); line-height: 0.95; letter-spacing: -0.03em; }
.project__next em { font-family: var(--font-hand); font-style: normal; color: var(--accent); font-size: 1.2em; }
.project--next:hover .project__art { border-color: var(--accent); }

/* horizontal gallery mode (desktop, enabled from JS) */
body.work-horizontal .work { height: 100vh; padding: 84px 0 24px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
body.work-horizontal .work__pin { display: flex; flex-direction: column; gap: clamp(20px, 4vh, 44px); }
body.work-horizontal .work .section-head { margin-bottom: 0; }
body.work-horizontal .work .title { max-width: none; font-size: clamp(34px, min(4.6vw, 8.5vh), 76px); }
body.work-horizontal .work .eyebrow { margin-bottom: 14px; }
body.work-horizontal .projects { display: flex; gap: clamp(20px, 2.4vw, 40px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
body.work-horizontal .project { flex: 0 0 auto; width: clamp(300px, 32vw, 540px); margin-top: 0 !important; }
body.work-horizontal .project:first-child { width: clamp(380px, 48vw, 820px); }
body.work-horizontal .project__art { aspect-ratio: auto; height: min(48vh, 540px); }
body.work-horizontal .project__mono { font-size: clamp(64px, min(9vw, 16vh), 170px); }
body.work-horizontal .project__next { font-size: clamp(34px, min(4vw, 8vh), 72px); }
body.work-horizontal .work__progress { display: block; height: 1px; background: var(--line); overflow: hidden; }
body.work-horizontal .work__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Open header navigation + drop-down sub-menus ---------- */
.nav { margin: 0 auto; }
.nav__list { display: flex; align-items: center; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 5, 5, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s, background 0.3s; white-space: nowrap; }
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--accent); }
.nav__caret { width: 5px; height: 5px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.4s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: translateY(1px) rotate(225deg); }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 230px; padding: 8px;
  border: 1px solid rgba(255, 200, 0, 0.22); border-radius: 18px; background: rgba(12, 11, 8, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
}
.nav__drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge across the gap */
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sublink { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text); white-space: nowrap; transition: background 0.25s, color 0.25s; }
.nav__sublink i { font-style: normal; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.nav__sublink:hover, .nav__sublink:focus-visible { background: rgba(255, 200, 0, 0.1); color: var(--accent); }
.nav__sublink:hover i, .nav__sublink:focus-visible i { opacity: 1; transform: none; }
.header .menu-toggle { display: none; }
/* the menu groups top-level pages with their sub-pages underneath */
.menu__group { display: grid; gap: 4px; padding-bottom: 10px; }
.menu__top { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-weight: 200; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.3s, letter-spacing 0.6s var(--ease); }
.menu__top .mono { color: var(--accent); font-size: 11px; }
.menu__top:hover { color: var(--accent); letter-spacing: 0.08em; }
.menu__top[aria-current="page"] { color: var(--accent); }
.menu__subs { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-left: 34px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.menu__nav .menu__subs a { display: inline; padding: 0; font: 400 11px/1.7 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.menu__nav .menu__subs a:hover, .menu__nav .menu__subs a[aria-current="page"] { color: var(--accent); letter-spacing: 0.1em; }
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
.menu__grid { align-items: start; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .header .menu-toggle { display: inline-flex; }
}

/* ---------- Blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: all 0.3s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.post-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(8, 8, 6, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.4s; transform-style: preserve-3d; }
.post-card:hover { border-color: rgba(255, 200, 0, 0.45); }
.post-card .post-card__art { border: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.post-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__art .project__mono { font-size: clamp(34px, 3.6vw, 60px); text-transform: uppercase; }
.post-card__meta { display: grid; gap: 10px; padding: 22px 22px 24px; }
.post-card__meta .mono { color: var(--accent); }
.post-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; }
.post-card__excerpt { color: var(--muted); font-size: 15px; }
.post-card .tags { margin-top: 4px; }
.post-card--big { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card--big .post-card__art { aspect-ratio: auto; min-height: 320px; }
.post-card--big h3 { font-size: clamp(26px, 2.4vw, 38px); }
.empty-state { color: var(--muted); padding: 40px 0; }

/* ---------- Article / CMS text ---------- */
.page-title.post-title { font-size: clamp(30px, 3.8vw, 62px); line-height: 1.08; max-width: 22ch; } /* doubled class: must beat .page-title, which comes later */
.link-arrow--back { margin-bottom: 30px; }
.link-arrow--back::after { content: '↖'; }
.prose { color: #d9d5ca; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 400; color: var(--text); line-height: 1.2; letter-spacing: 0.02em; margin-top: 1.8em; }
.prose h2 { font-size: 1.7em; } .prose h3 { font-size: 1.35em; } .prose h4 { font-size: 1.1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ''; position: absolute; left: -1.1em; top: 0.75em; width: 6px; height: 6px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding: 6px 0 6px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-weight: 300; font-size: 1.25em; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: 16px; }
.prose hr { border: 0; height: 1px; background: var(--line); }
.prose--panel { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 28px; background: rgba(8, 8, 6, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.prose__cover { width: 100%; margin-bottom: 1.6em; }
.article { padding-top: 0; }
.text-block .prose--panel { margin: 0; }
.page-lede.prose p { margin: 0; }

/* contact form: spam trap + sent state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sent .form__note { color: var(--accent); }

/* ---------- Inner-page hero ---------- */
.page-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 22vh 0 14vh; }
.page-title { font-family: var(--font-display); font-weight: 200; font-size: clamp(46px, 7.6vw, 128px); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; max-width: 13ch; }
.page-title em { font-style: normal; font-weight: 500; color: var(--accent); }
.page-lede { margin-top: 32px; max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 760px; color: var(--text); }
.page-meta span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.page-meta b { font-weight: inherit; }
.page-meta--links a { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.3s, color 0.3s; }
.page-meta--links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page transition curtain ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none;
  background: var(--accent); color: var(--ink); clip-path: inset(100% 0% 0% 0%);
  display: grid; place-items: center;
}
.page-wipe .mono { font-size: 13px; letter-spacing: 0.3em; }
.loader.is-quick .loader__tag, .loader.is-quick .loader__count, .loader.is-quick .loader__scan, .loader.is-quick .loader__hint { display: none; }

/* ---------- CTA band ---------- */
.cta { min-height: 80vh; display: flex; align-items: center; }
.cta .title { max-width: 15ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 44px; }

/* ---------- Home: service rows as links ---------- */
.service-list--links .service__row { color: inherit; }
.service__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: background 0.4s, color 0.4s, transform 0.6s var(--ease); }
.service__row:hover .service__go { background: var(--accent); color: var(--ink); transform: rotate(45deg); }
.link-arrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.split__text .link-arrow { margin-top: 32px; }

/* ---------- Home: clients strip ---------- */
.clients-strip { position: relative; z-index: 1; padding: 8vh 0 4vh; }
.clients-strip .marquee--clients { margin-bottom: 0; }
.clients-strip__line { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; color: var(--muted); }

/* ---------- Services: four moves ---------- */
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.moves li { padding: 26px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 8, 6, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.moves .mono { color: var(--accent); }
.moves strong { display: block; margin: 14px 0 6px; font-family: var(--font-display); font-weight: 300; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; }
.moves p { color: var(--muted); font-size: 14px; }

/* ---------- Footer: next page ---------- */
.footer__next { display: block; padding: 7vw var(--gutter) 3vw; text-align: center; }
.footer__next-label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer__next-label i { width: 3px; height: 14px; background: var(--accent); }
.footer__next .footer__mark { padding: 2vw 0 1.4vw; font-size: 12vw; }
.footer__next-hint { color: var(--muted); transition: color 0.3s; }
.footer__next:hover .footer__next-hint { color: var(--accent); }
.menu__nav a[aria-current="page"] { color: var(--accent); }
.menu__nav a[aria-current="page"]::after { content: '●'; font-size: 0.25em; margin-left: 10px; vertical-align: middle; }

/* ---------- Offices ---------- */
.office-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; }
.office { display: grid; gap: 8px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 8, 6, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.4s; }
.office:hover { border-color: rgba(255, 200, 0, 0.45); }
.office__n { color: var(--accent); }
.office h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15; overflow-wrap: break-word; } /* sized so "Thiruvananthapuram" fits one line */
.office p { color: var(--muted); font-size: 14px; }
.office__time { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); }
.office__time b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.office-list { display: grid; gap: 6px; margin-top: 4px; font-family: var(--font-body); font-size: 15px; }
/* city · local time on one line, region underneath */
.office-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.office-list li b { order: 2; font-size: 11px; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.office-list li .muted { order: 3; flex-basis: 100%; font-size: 12.5px; color: var(--muted); }

/* ---------- Clients ---------- */
.clients { padding-top: 0; }
.marquee--clients { transform: skewX(var(--skew, 0deg)); margin-bottom: clamp(70px, 12vh, 140px); background: var(--accent); border: 0; }
.marquee--clients .marquee__track { color: var(--ink); animation-duration: 40s; animation-direction: reverse; }
.marquee--clients .marquee__track span:nth-of-type(even) { -webkit-text-stroke: 1.5px var(--ink); }
.marquee--clients .marquee__track b { color: var(--ink); }
.clients__total { font-family: var(--font-display); color: var(--muted); font-size: 18px; }
.clients__total b { display: block; font-size: clamp(56px, 7vw, 110px); line-height: 1; color: var(--accent); font-weight: 700; letter-spacing: -0.04em; }
.client-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 64px); padding: 8px clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: rgba(8, 8, 6, 0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.client-list li { border-bottom: 1px solid var(--line); }
.client-list a {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto 28px; align-items: baseline; gap: 14px;
  padding: 20px 12px; isolation: isolate; overflow: hidden; transition: color 0.4s var(--ease);
}
.client-list a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.client-list a:hover::before, .client-list a:focus-visible::before { transform: scaleY(1); }
.client-list a:hover, .client-list a:focus-visible { color: var(--ink); }
.c__n { font-family: var(--font-display); font-size: 12px; color: var(--muted); transition: color 0.4s; }
.c__name { font-family: var(--font-display); font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -0.01em; transition: transform 0.5s var(--ease); }
.c__url { font-size: 13px; color: var(--muted); transition: color 0.4s; }
.c__arrow { color: var(--accent); font-size: 18px; transition: transform 0.5s var(--ease), color 0.4s; }
.client-list a:hover .c__n, .client-list a:hover .c__url, .client-list a:hover .c__arrow { color: var(--ink); }
.client-list a:hover .c__name { transform: translateX(8px); }
.client-list a:hover .c__arrow { transform: translate(3px, -3px) rotate(45deg); }

/* ---------- Playground ---------- */
.playground__grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); grid-template-areas: 'copy stage' 'pad stage';
  column-gap: clamp(32px, 5vw, 80px); row-gap: 40px; align-items: start;
}
.playground__copy { grid-area: copy; }
.playground__copy .title { max-width: 12ch; font-size: clamp(34px, 4.4vw, 68px); }
.playground__copy .body { margin-top: 20px; }
.pad { grid-area: pad; }
.playground__stage { grid-area: stage; position: sticky; top: 12vh; height: 76vh; pointer-events: none; }
.stage__corner { position: absolute; width: 22px; height: 22px; border-color: rgba(255, 200, 0, 0.55); border-style: solid; border-width: 0; }
.stage__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.stage__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.stage__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.stage__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.stage__caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stage__caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
.pad { position: relative; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px, rgba(10, 15, 13, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.pad__canvas { display: block; width: 100%; aspect-ratio: 5 / 4; touch-action: none; cursor: crosshair; }
.pad__hint { position: absolute; inset: 0 0 64px; display: grid; place-items: center; font-family: var(--font-hand); font-size: clamp(32px, 3.4vw, 48px); color: rgba(255, 255, 255, 0.28); pointer-events: none; transition: opacity 0.4s; }
.pad.has-ink .pad__hint { opacity: 0; }
.pad__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.pad__presets { display: flex; gap: 8px; }
.pad__presets button, .pad__clear { min-width: 44px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.pad__presets button:hover, .pad__clear:hover { border-color: var(--accent); color: var(--accent); }
.pad__clear { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; }
.cursor.is-draw { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-color: var(--accent); background: transparent; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; }
.member { position: relative; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform-style: preserve-3d; transition: border-color 0.4s; }
.member:hover { border-color: rgba(255, 200, 0, 0.45); }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); margin-bottom: 22px; transform: translateZ(30px); transition: transform 0.6s var(--ease); }
.member:hover .member__avatar { transform: translateZ(30px) rotate(-12deg) scale(1.06); }
.member h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.member p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__info { margin-top: 48px; display: grid; gap: 22px; }
.contact__info dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 4px; }
.contact__info dd { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); }
.contact__info a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.contact__info a:hover { background-size: 100% 1px; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: rgba(10, 15, 13, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 22px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips p { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; cursor: pointer; }
.form__chips label:hover span { border-color: var(--accent); }
.form__chips input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 22px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: 17px; resize: vertical; outline: none; transition: border-color 0.3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label { position: absolute; left: 0; top: 20px; color: var(--muted); pointer-events: none; transition: transform 0.4s var(--ease), font-size 0.4s var(--ease), color 0.3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.78); color: var(--accent); }
.form.was-validated :invalid { border-color: #ff6b6b; }
.form__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 0 0 36px; background: rgba(4, 4, 4, 0.8); overflow: hidden; }
.footer__mark {
  display: block; font-family: var(--font-display); font-weight: 200; font-size: 8.4vw; line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase;
  text-align: center; white-space: nowrap; padding: 6vw 0 4vw;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  background: linear-gradient(90deg, #ff9f00, var(--accent) 45%, #fff1a8) 0 0 / 0% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; transition: letter-spacing 0.8s var(--ease);
}
.footer__mark:hover { letter-spacing: 0.06em; }

/* letter-roll hover for nav and footer links */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll > span { display: block; position: relative; transition: transform 0.5s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); white-space: nowrap; }
a:hover .roll > span { transform: translateY(-100%); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header__line { display: none; }
  .menu__grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .split { grid-template-columns: 1fr; }
  .playground__grid { grid-template-columns: 1fr; grid-template-areas: 'copy' 'stage' 'pad'; row-gap: 24px; }
  .playground__stage { position: relative; top: 0; height: 46vh; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .kbd-btn, .header__actions > .pill:not(.menu-toggle), .chapters, .pager, .hud-read { display: none; }
  .header { padding-top: 16px; }
  .badge--hero { display: none; }
  .hero__tag { top: 13vh; letter-spacing: 0.2em; }
  .hero__foot { left: var(--gutter); right: var(--gutter); bottom: calc(var(--mark, 12vw) * 0.82 + 3vh); max-width: none; }
  .menu__nav { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .totop { left: calc(50% - 26px); } /* centred; the chat widget owns the bottom-right corner */
  .post-grid { grid-template-columns: 1fr; }
  .post-card--big { grid-column: auto; grid-template-columns: 1fr; }
  .post-card--big .post-card__art { min-height: 0; aspect-ratio: 16 / 10; }
  .footer { padding-bottom: 92px; } /* clears the fixed sound button and back-to-top ring */
  .page-hero { padding: 18vh 0 10vh; }
  .clients-strip__line { flex-direction: column; align-items: flex-start; }
  .menu__nav a { font-size: clamp(28px, 8vw, 44px); }
  .step { min-height: 0; padding-top: 110px; }
  .pillars { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .projects .project:nth-child(n) { margin-top: 0; }
  .project__art { aspect-ratio: 4 / 3; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .client-list { grid-template-columns: 1fr; }
  .client-list a { grid-template-columns: 30px 1fr 24px; }
  .c__url { display: none; }
  .service__row { grid-template-columns: 36px 1fr 40px; padding: 22px 0; }
  .service__body { padding-left: 52px; }
  .service__icon { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .stat { padding: 24px 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}
