/* Mani Khan — Midnight Bot Lab */

:root {
  --ink-950: #05040f;
  --ink-900: #0a0820;
  --ink-850: #0e0c2a;
  --ink-800: #141036;
  --ink-700: #1d1850;
  --line: rgba(196, 186, 255, 0.14);
  --line-strong: rgba(196, 186, 255, 0.28);
  --moon: #f3f0ff;
  --mist: #aaa4d8;
  --mist-2: #8a84bd;
  --mint: #5ef2c4;
  --amber: #ffb547;
  --rose: #ff6fae;
  --violet: #8f7bff;
  --sky: #62c8ff;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --shell: min(1200px, 100% - 2 * var(--gutter));
  --header-h: 104px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.calm {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--moon);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-locked {
  overflow: hidden;
}

main {
  display: block;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--mint);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

em {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--mint);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2.5px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink-950);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(52, 38, 140, 0.55), transparent 60%),
    linear-gradient(180deg, #0b0924 0%, var(--ink-900) 40%, #080619 100%);
}

.backdrop-aurora {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  will-change: transform;
}

.backdrop-aurora.a1 {
  top: -38vmax;
  right: -26vmax;
  background: radial-gradient(circle, rgba(143, 123, 255, 0.32), transparent 62%);
  animation: aurora-a 28s ease-in-out infinite alternate;
}

.backdrop-aurora.a2 {
  bottom: -44vmax;
  left: -30vmax;
  background: radial-gradient(circle, rgba(94, 242, 196, 0.13), transparent 60%);
  animation: aurora-b 34s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  to { transform: translate(-12vmax, 10vmax) scale(1.1); }
}

@keyframes aurora-b {
  to { transform: translate(14vmax, -12vmax) scale(1.15); }
}

.backdrop-stars {
  position: absolute;
  inset: 0;
}

.backdrop-stars.s1 {
  background-image:
    radial-gradient(1.2px 1.2px at 24px 36px, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 140px 90px, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 210px 20px, #d9d3ff 50%, transparent 55%),
    radial-gradient(1px 1px at 80px 190px, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 250px 230px, #bfffea 50%, transparent 55%),
    radial-gradient(1px 1px at 180px 150px, #fff 50%, transparent 55%);
  background-size: 280px 280px;
  opacity: 0.45;
}

.backdrop-stars.s2 {
  background-image:
    radial-gradient(1.6px 1.6px at 60px 110px, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 300px 40px, #ffe3a0 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 190px 330px, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 350px 260px, #d9d3ff 50%, transparent 55%);
  background-size: 410px 410px;
  opacity: 0.6;
  animation: stars-twinkle 6s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  from { opacity: 0.2; }
  to { opacity: 0.75; }
}

.backdrop-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

.btn-primary {
  background: var(--mint);
  color: var(--ink-950);
  box-shadow: 0 0 0 1px rgba(94, 242, 196, 0.5), 0 14px 40px -12px rgba(94, 242, 196, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(94, 242, 196, 0.7), 0 20px 50px -12px rgba(94, 242, 196, 0.85);
}

.btn-ghost {
  color: var(--moon);
  border-color: var(--line-strong);
  background: rgba(20, 16, 54, 0.4);
}

.btn-ghost:hover {
  border-color: rgba(196, 186, 255, 0.55);
  background: rgba(40, 32, 100, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 8, 32, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--violet), var(--amber));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--moon);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: auto;
  height: 80px;
  filter: drop-shadow(0 0 14px rgba(94, 242, 196, 0.35));
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--mist);
  font-weight: 560;
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--moon);
  background: rgba(196, 186, 255, 0.09);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--moon);
  color: var(--ink-950);
  font-weight: 680;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current] {
  background: var(--mint);
  color: var(--ink-950);
}

.header-tools {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 16, 54, 0.5);
  color: var(--mist);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.motion-toggle:hover {
  color: var(--moon);
  border-color: var(--line-strong);
}

.motion-toggle-icon {
  display: inline-flex;
  gap: 3px;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.motion-toggle-icon span {
  width: 3.5px;
  height: 12px;
  border-radius: 2px;
  background: var(--mint);
}

.motion-toggle.is-paused .motion-toggle-icon span:first-child {
  width: 11px;
  height: 12px;
  border-radius: 1px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.motion-toggle.is-paused .motion-toggle-icon span:last-child {
  display: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(20, 16, 54, 0.6);
  color: var(--moon);
  cursor: pointer;
}

.nav-toggle-lines {
  display: grid;
  gap: 6px;
  width: 18px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.nav-open .nav-toggle-lines span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle-lines span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Shared type ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.kicker-num {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-950);
  letter-spacing: 0.06em;
}

.section-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5.4rem);
  font-weight: 790;
  font-stretch: 86%;
  line-height: 0.94;
  letter-spacing: -0.042em;
}

.section-lede {
  max-width: 56ch;
  margin: 26px 0 0;
  color: var(--mist);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem);
  line-height: 1.6;
}

.spell {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.01em;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--mint) 0%, #c7fff0 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(94, 242, 196, 0.28));
}

.lab-note {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--mist);
}

.lab-note::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: 0.3em;
  background: currentColor;
  opacity: 0.6;
}

.fine {
  margin: 18px 0 0;
  color: var(--mist-2);
  font-size: 0.84rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(116px, 12vw, 160px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 16, 54, 0.55);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.hero-title {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2.15rem, 0.7rem + 2.6vw, 3.7rem);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.1em 0.16em 0;
  margin-bottom: -0.14em;
}

.hero-title .line > span {
  display: inline-block;
}

.js:not(.calm) .hero-title .line > span {
  animation: line-up 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i) * 110ms + 100ms);
}

@keyframes line-up {
  from {
    transform: translateY(112%) rotate(4deg);
  }
  to {
    transform: none;
  }
}

.scribble {
  position: relative;
  display: inline-block;
}

.scribble-mark {
  position: absolute;
  left: -2%;
  bottom: -0.04em;
  width: 104%;
  height: 0.24em;
  overflow: visible;
}

.scribble-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.js:not(.calm) .scribble-mark path {
  animation: draw 0.9s var(--ease-out) 1s both;
}

.js:not(.calm) .scribble-mark .scribble-2 {
  animation-delay: 1.35s;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.hero-lede {
  max-width: 36ch;
  margin: 30px 0 0;
  color: var(--mist);
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  perspective: 1600px;
}

.hero-note {
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(44px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 20px 0;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-size: clamp(2.4rem, 1.4rem + 3vw, 4.2rem);
  font-weight: 780;
  font-stretch: 84%;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat strong em {
  color: var(--mint);
}

.stat-since strong {
  color: var(--amber);
}

.stat-label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Ticker ---------- */

.ticker-wrap {
  position: relative;
  overflow-x: clip;
  padding: 40px 0;
}

.ticker {
  width: 108%;
  margin-left: -4%;
  background: var(--mint);
  color: var(--ink-950);
  transform: rotate(-2deg);
  box-shadow: 0 24px 60px -24px rgba(94, 242, 196, 0.55);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-list li {
  display: flex;
  align-items: center;
  padding: 16px 0;
  white-space: nowrap;
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.85rem);
  font-weight: 760;
  font-stretch: 88%;
  letter-spacing: -0.02em;
}

.ticker-list li::after {
  content: "✦";
  margin: 0 0.9em;
  font-size: 0.72em;
  color: #1d1850;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(46px, 5.5vw, 84px) 0;
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.specialties {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(44px, 6vw, 84px);
}

.specialties .section-head {
  max-width: none;
  margin-bottom: 0;
}

.tool-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.tool-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 76px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f1fb;
}

.tool-logo--night {
  background: #071a33;
}

.tool-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

/* Chapters (featured services) */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "head scene"
    "body scene";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 24px;
  align-items: start;
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.chapter--flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "scene head"
    "scene body";
}

.chapter-head {
  grid-area: head;
  align-self: end;
}

.chapter-body {
  grid-area: body;
}

.chapter > .scene {
  grid-area: scene;
  align-self: center;
}

.chapter-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-hot {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink-950);
  font-weight: 600;
}

.chapter-title {
  font-size: clamp(2.8rem, 1.5rem + 4vw, 5.2rem);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 0.9;
  letter-spacing: -0.048em;
}

.chapter-title--long {
  font-size: clamp(2.3rem, 1.3rem + 2.9vw, 3.9rem);
}

.chapter-sub {
  margin: 14px 0 0;
  color: var(--mint);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.05rem);
  line-height: 1.15;
}

.chapter-body p {
  max-width: 54ch;
  color: var(--mist);
}

.chapter-body > p:first-child {
  color: var(--moon);
  font-size: 1.08em;
}

.spell-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.spell-list li {
  position: relative;
  max-width: 52ch;
  padding-left: 34px;
  color: var(--moon);
}

.spell-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.22em;
  width: 18px;
  height: 18px;
  background: var(--amber);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.chapter-body .chapter-foot {
  padding-left: 16px;
  border-left: 2px solid var(--mint);
  font-size: 0.96rem;
}

/* Brew cards */

.brew {
  padding-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.brew-title {
  margin: 0 0 28px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brew-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(30, 25, 84, 0.6), rgba(14, 12, 40, 0.6));
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.45s ease;
}

.brew-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(143, 123, 255, 0.5);
}

.brew-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  overflow: visible;
}

.brew-kicker {
  margin: 0 0 6px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brew-card h4 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  font-weight: 760;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.brew-card p:last-child {
  margin: 0;
  color: var(--mist);
}

.promise {
  max-width: 30ch;
  margin: clamp(56px, 7vw, 96px) auto 0;
  text-align: center;
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem);
  font-weight: 660;
  font-stretch: 90%;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.badge-wrap {
  display: grid;
  justify-items: center;
  perspective: 1100px;
}

.badge-swing {
  position: relative;
  padding-top: 84px;
  transform-origin: 50% 0;
  animation: badge-sway 7s ease-in-out infinite;
}

@keyframes badge-sway {
  0%,
  100% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.2deg);
  }
}

.lanyard {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 24px;
  height: 128px;
  margin-left: -12px;
}

.lanyard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--violet) 0 14px, #6b56e8 14px 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}

.lanyard::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 38px;
  height: 22px;
  margin-left: -19px;
  border-radius: 7px;
  background: linear-gradient(180deg, #e9e6f7, #9d97c2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.badge {
  position: relative;
  width: min(340px, 80vw);
  padding: 20px 22px 18px;
  border-radius: 26px;
  background: linear-gradient(160deg, #f8f6ff 0%, #ddd6ff 100%);
  color: var(--ink-950);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
}

.badge-head {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 14px;
  color: #4b43a8;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: #cfc8f6;
}

.badge-name {
  margin: 16px 0 0;
  font-size: 1.95rem;
  font-weight: 800;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.035em;
}

.badge-aka {
  margin: 6px 0 14px;
  color: #4b43a8;
  font-size: 0.95rem;
}

.badge-aka span {
  color: #5b3fe0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
}

.badge-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}

.badge-meta dt {
  color: #4b43a8;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-meta dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
}

.badge-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(10, 8, 32, 0.22);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.barcode {
  width: 120px;
  height: 26px;
}

.badge-holo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 28%, rgba(94, 242, 196, 0.32) 42%, rgba(255, 111, 174, 0.26) 52%, rgba(143, 123, 255, 0.24) 60%, transparent 72%);
  background-size: 260% 260%;
  background-position: var(--hx, 30%) var(--hy, 30%);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}

.about-lede {
  max-width: 40ch;
  margin: 28px 0 22px;
  font-size: clamp(1.2rem, 1.04rem + 0.6vw, 1.55rem);
  line-height: 1.45;
}

.about-text p {
  max-width: 60ch;
  color: var(--mist);
}

.oxygen {
  margin: 30px 0 0;
  padding: 22px 26px;
  border: 1px solid rgba(94, 242, 196, 0.35);
  border-radius: 22px;
  background: rgba(94, 242, 196, 0.06);
  font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.65rem);
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.oxygen p {
  margin: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(64px, 8vw, 112px);
}

.value {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 16, 54, 0.55);
}

.value-num {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.value h3 {
  margin: 10px 0 8px;
  font-size: 1.55rem;
  font-weight: 760;
  font-stretch: 88%;
  letter-spacing: -0.025em;
}

.value p {
  margin: 0;
  color: var(--mist);
  font-size: 0.97rem;
}

.about-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.mini-title {
  margin: 0 0 16px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-title-gap {
  margin-top: 28px;
}

.board {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0b0a1f;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 18px;
}

.board-head .mini-title {
  margin: 0;
}

.board-from {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 600px;
}

.board-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(196, 186, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.board-list .flag {
  display: block;
  flex: none;
  width: 32px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243, 240, 255, 0.22);
}

.board-list .flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.board-list .place {
  min-width: 0;
  line-height: 1.25;
}

.js:not(.calm) .board.is-in .board-list li {
  animation: flap 0.7s var(--ease-out) both;
}

.board-list li:nth-child(2) { animation-delay: 0.06s; }
.board-list li:nth-child(3) { animation-delay: 0.12s; }
.board-list li:nth-child(4) { animation-delay: 0.18s; }
.board-list li:nth-child(5) { animation-delay: 0.24s; }
.board-list li:nth-child(6) { animation-delay: 0.3s; }
.board-list li:nth-child(7) { animation-delay: 0.36s; }
.board-list li:nth-child(8) { animation-delay: 0.42s; }
.board-list li:nth-child(9) { animation-delay: 0.48s; }
.board-list li:nth-child(10) { animation-delay: 0.54s; }
.board-list li:nth-child(11) { animation-delay: 0.6s; }
.board-list li:nth-child(12) { animation-delay: 0.66s; }

@keyframes flap {
  from {
    transform: rotateX(90deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.toolbox {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 16, 54, 0.55);
}

.tool-list,
.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
}

.trait-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.12);
  color: #ffd28a;
  font-size: 0.9rem;
}

/* ---------- Process ---------- */

.process .section-head,
.process .section-title,
.process .section-lede {
  max-width: none;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.process-stage {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.timeline-wrap {
  position: relative;
  padding: 8px 0 8px 66px;
}

.timeline-rail {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 20px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.timeline-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mint), var(--violet) 55%, var(--amber));
  box-shadow: 0 0 14px rgba(94, 242, 196, 0.6);
  transform-origin: 50% 0;
  transform: scaleY(0);
}

.timeline-rover {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 49px;
  margin: -30px 0 0 -20px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.timeline-rover svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.timeline {
  display: grid;
  gap: clamp(44px, 6vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.t-step {
  position: relative;
}

.t-node {
  position: absolute;
  top: 8px;
  left: -54px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-900);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.t-step.is-done .t-node {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(94, 242, 196, 0.14), 0 0 18px rgba(94, 242, 196, 0.6);
}

.t-num {
  margin: 0;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t-step h3 {
  margin: 6px 0 10px;
  color: var(--mist);
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.8rem);
  font-weight: 790;
  font-stretch: 86%;
  letter-spacing: -0.04em;
  transition: color 0.4s ease;
}

.t-step.is-done h3 {
  color: var(--moon);
}

.t-step p:last-child {
  max-width: 46ch;
  margin: 0;
  color: var(--mist);
}

/* ---------- Work ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 16, 54, 0.6);
  color: var(--mist);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.filter:hover {
  color: var(--moon);
  border-color: var(--line-strong);
}

.filter[aria-pressed="true"] {
  background: var(--moon);
  border-color: var(--moon);
  color: var(--ink-950);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink-850);
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.45s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--h) 90% 72% / 0.5);
  box-shadow: 0 26px 50px -26px hsl(var(--h) 90% 60% / 0.6);
}

.work-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, hsl(var(--h) 95% 70% / 0.55), transparent 55%),
    radial-gradient(circle at 82% 92%, hsl(calc(var(--h) + 50) 90% 62% / 0.4), transparent 52%),
    linear-gradient(135deg, hsl(var(--h) 55% 20%), hsl(calc(var(--h) + 40) 60% 10%));
}

.work-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.work-art::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px dashed hsl(var(--h) 90% 80% / 0.35);
  border-radius: 50%;
}

.work-sigil {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.5rem);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px hsl(var(--h) 100% 70% / 0.85);
  transition: transform 0.55s var(--ease-spring);
}

.work-card:hover .work-sigil {
  transform: scale(1.12) rotate(-5deg);
}

.work-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.work-shot {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.work-art:has(.work-photo)::before,
.work-art:has(.work-photo)::after {
  content: none;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px 16px 20px;
  background: rgba(5, 4, 15, 0.88);
}

.lb[hidden] {
  display: none !important;
}

html.lb-open,
html.lb-open body {
  overflow: hidden;
}

.lb-dialog {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px 12px;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
}

.lb-figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y;
}

.lb-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 168px);
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--ink-900);
}

.lb-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  margin: 0;
  text-align: center;
}

.lb-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lb-count {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lb-nav,
.lb-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 8, 32, 0.78);
  color: var(--moon);
  cursor: pointer;
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 1.7rem;
  line-height: 1;
}

.lb-nav svg {
  width: 20px;
  height: 20px;
}

.lb-prev svg {
  transform: rotate(180deg);
}

.lb-nav:hover,
.lb-close:hover {
  border-color: var(--mint);
  background: rgba(94, 242, 196, 0.12);
}

.work-body {
  padding: 16px 18px 18px;
}

.work-no {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.work-name {
  margin: 4px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.work-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(196, 186, 255, 0.09);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.work-status {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- Testimonials ---------- */

.carousel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: 24px;
}

.projector {
  position: relative;
  z-index: 0;
  align-self: center;
  padding-top: 120px;
}

.projector-bot {
  position: relative;
  z-index: 1;
  display: block;
  width: 150px;
  height: auto;
  overflow: visible;
}

.projector-beam {
  position: absolute;
  left: 78px;
  bottom: 74px;
  width: 260px;
  height: 300px;
  background: linear-gradient(40deg, rgba(94, 242, 196, 0.42), rgba(94, 242, 196, 0) 72%);
  clip-path: polygon(0 100%, 100% 0, 100% 72%);
  pointer-events: none;
  animation: beam-hum 3s ease-in-out infinite;
}

@keyframes beam-hum {
  0%,
  100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.projector.is-flicker .projector-beam {
  animation: beam-flicker 0.5s steps(2, end) 1;
}

@keyframes beam-flicker {
  0% { opacity: 0.15; }
  25% { opacity: 1; }
  50% { opacity: 0.3; }
  75% { opacity: 1; }
  100% { opacity: 0.8; }
}

.carousel-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 60px);
  border: 1px solid rgba(94, 242, 196, 0.32);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(94, 242, 196, 0.08), rgba(20, 16, 54, 0.75));
  box-shadow: 0 0 80px -30px rgba(94, 242, 196, 0.45);
}

.carousel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(94, 242, 196, 0.045) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.carousel-track {
  position: relative;
}

.quote {
  margin: 0 0 32px;
}

.js .carousel-track {
  display: grid;
}

.js .quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.js .quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: clamp(1.3rem, 0.95rem + 1.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote blockquote p::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 4.2em;
  line-height: 0.85;
  text-shadow: 0 0 30px rgba(94, 242, 196, 0.5);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.quote-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-name {
  font-size: 1.1rem;
  font-weight: 760;
}

.quote-src {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

html:not(.js) .carousel-controls {
  display: none;
}

.c-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 8, 32, 0.55);
  color: var(--moon);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.c-btn:hover {
  border-color: var(--mint);
  background: rgba(94, 242, 196, 0.12);
}

.c-btn svg {
  width: 20px;
  height: 20px;
}

.c-btn[data-prev] svg {
  transform: rotate(180deg);
}

.c-dots {
  display: flex;
}

.c-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.c-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}

.c-dot[aria-current="true"]::before {
  width: 26px;
  background: var(--mint);
}

.c-play {
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--mist);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.c-play:hover {
  color: var(--moon);
  border-color: var(--line-strong);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.contact-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.c-label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 1.15rem;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.c-value a {
  color: var(--moon);
  text-decoration: underline;
  text-decoration-color: rgba(94, 242, 196, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.c-value a:hover {
  color: var(--mint);
}

.c-value a.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.c-value a.ext-link:hover {
  color: var(--mint);
}

.ext-link-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.copy-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-950);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-status,
.composer-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.composer-status.is-error {
  color: var(--amber);
}

.composer-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.composer-wrap {
  position: relative;
  padding-top: 64px;
}

.mailbot {
  position: absolute;
  top: -18px;
  right: 28px;
  z-index: 2;
  width: 140px;
}

.mailbot .bot {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.composer {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(36, 30, 96, 0.85), rgba(16, 13, 46, 0.9));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.75);
}

.composer-title {
  margin: 0 0 18px;
  color: var(--mint);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: 0;
}

.chips {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 650;
}

.chip {
  position: relative;
  display: inline-flex;
  margin: 0 6px 8px 0;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--mist);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.chip span::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease-spring);
}

.chip:hover span {
  color: var(--moon);
}

.chip input:checked + span {
  border-color: var(--mint);
  background: rgba(94, 242, 196, 0.14);
  color: var(--moon);
}

.chip input:checked + span::before {
  border-color: var(--mint);
  background: var(--mint);
  transform: rotate(45deg) scale(0.9);
}

.chip input:focus-visible + span {
  outline: 2.5px solid var(--mint);
  outline-offset: 3px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 4, 15, 0.55);
  color: var(--moon);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(94, 242, 196, 0.2);
}

.field ::placeholder {
  color: #817bb2;
}

.composer-note {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 0.84rem;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 64px 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(5, 4, 15, 0.65));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 220px) minmax(0, 0.9fr);
  align-items: center;
  gap: 28px 36px;
}

.footer-brand,
.footer-nav {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  color: inherit;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p:last-child {
  max-width: 36ch;
  margin: 0;
  color: var(--mist);
}

.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.footer-nav a,
.to-top {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.to-top:hover {
  color: var(--moon);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mist-2);
  font-size: 0.85rem;
}

.footer-legal p {
  margin: 0;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.to-top svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

/* ---------- Reveal ---------- */

.js:not(.calm) [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), scale 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js:not(.calm) [data-reveal="zoom"] {
  translate: 0 24px;
  scale: 0.96;
}

.js:not(.calm) [data-reveal].is-in {
  opacity: 1;
  translate: none;
  scale: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-nav a {
    padding: 0 10px;
  }

  .motion-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .motion-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 979px) {
  :root {
    --header-h: 72px;
  }

  .brand-mark {
    height: 52px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background:
      radial-gradient(80% 50% at 80% 0%, rgba(143, 123, 255, 0.3), transparent 70%),
      #08061a;
    overflow-y: auto;
  }

  .nav-open .site-nav {
    display: block;
    animation: nav-in 0.35s var(--ease-out);
  }

  @keyframes nav-in {
    from {
      opacity: 0;
    }
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav a {
    min-height: 60px;
    padding: 0 8px;
    border-radius: 14px;
    color: var(--moon);
    font-size: 1.9rem;
    font-weight: 760;
    font-stretch: 88%;
    letter-spacing: -0.03em;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin: 18px 0 0;
    font-size: 1.2rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow {
    order: 1;
    align-self: flex-start;
  }

  .hero-title {
    order: 2;
  }

  .hero-visual {
    order: 3;
    margin: 20px 0 4px;
  }

  .hero-lede {
    order: 4;
    margin-top: 8px;
  }

  .hero-actions {
    order: 5;
  }

  .chapter,
  .chapter--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "scene"
      "body";
  }

  .brew-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-stage {
    position: relative;
    top: 0;
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .projector {
    display: none;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 800px) {
  .specialties {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .lb {
    padding: 64px 14px 16px;
  }

  .lb-dialog {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
  }

  .lb-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lb-img {
    max-height: calc(100dvh - 210px);
  }

  .lb-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .lb-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 22px 16px 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-body {
    padding: 12px 14px 14px;
  }

  .work-name {
    font-size: 1rem;
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .footer-logo {
    justify-self: start;
    width: min(220px, 100%);
  }

  .c-play {
    margin-left: 0;
  }
 .footer-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.footer-brand p:last-child {
  margin-inline: auto;
}

.footer-logo {
  justify-self: center;
  width: min(220px, 100%);
}

.footer-nav {
  width: 100%;
}

.footer-nav ul {
  grid-template-columns: max-content max-content;
  justify-content: center;
  column-gap: 28px;
  text-align: center;
}

.footer-legal {
  flex-direction: column;
  justify-content: center;
  text-align: center;
} 
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .filter {
    padding: 0 12px;
    font-size: 0.88rem;
  }
}

/* ---------- Calm mode (reduced motion or paused) ---------- */

.calm *,
.calm *::before,
.calm *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.js) *,
  html:not(.js) *::before,
  html:not(.js) *::after {
    animation: none !important;
    transition: none !important;
  }
}
