/* kading.xyz — design system */

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/github/mona-sans@latest/fonts/webfonts/variable/MonaSansVF%5Bwdth,opsz,wght%5D.woff2") format("woff2");
}

@font-face {
  font-family: "Hubot Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/github/hubot-sans@latest/fonts/webfonts/HubotSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Hubot Sans";
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/github/hubot-sans@latest/fonts/webfonts/HubotSansExpanded-Bold.woff2") format("woff2");
}

:root {
  --void: #030308;
  --coal: #08080f;
  --char: #101018;
  --smoke: #1a1a26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --violet: #a78bfa;
  --violet-hot: #8b5cf6;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --amber: #fbbf24;
  --magenta: #f472b6;
  --steel: #94a3b8;
  --emerald: #00e676;
  --emerald-bright: #00f07a;
  --emerald-glow: rgba(0, 230, 118, 0.28);
  --emerald-dim: rgba(0, 230, 118, 0.12);

  --text: #c8cdd8;
  --text-dim: #8b93a8;
  --text-bright: #f4f6fb;

  --font-display: "Mona Sans", system-ui, sans-serif;
  --font-hubot: "Hubot Sans", system-ui, sans-serif;
  --font-ui: "Urbanist", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --specimen-wdth: 85;
  --specimen-wght: 500;
  --specimen-opacity: 0.35;

  --header-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--text-bright);
}

a { color: inherit; }

/* ── Ambient background ── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 10%, transparent 75%);
  will-change: transform;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ambient__orb--violet {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite;
}

.ambient__orb--cyan {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  bottom: 10%;
  left: -12%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  animation-delay: -6s;
  animation: orb-drift 18s ease-in-out infinite;
}

.ambient__orb--amber {
  width: 30vw;
  height: 30vw;
  max-width: 360px;
  max-height: 360px;
  top: 45%;
  left: 40%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  animation-delay: -12s;
  animation: orb-drift 18s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 2%) scale(1.05); }
  66% { transform: translate(-2%, 4%) scale(0.95); }
}

/* ── Orb cloud field (site-wide) ── */

.orb-field {
  position: fixed;
  inset: -20% -10%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.orb-cloud {
  position: absolute;
  transform-origin: center center;
  will-change: transform;
  opacity: var(--orb-opacity, 0.5);
}

.orb-cloud--deep { --orb-opacity: 0.28; z-index: 0; }
.orb-cloud--mid { --orb-opacity: 0.42; z-index: 1; }
.orb-cloud--fore { --orb-opacity: 0.52; z-index: 2; }

.orb-cloud__wrap {
  position: relative;
  width: 0;
  height: 0;
}

.orb-halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 91, 255, 0.14) 0%,
    rgba(139, 92, 246, 0.07) 38%,
    rgba(107, 91, 255, 0.03) 58%,
    transparent 72%
  );
  filter: blur(28px);
  pointer-events: none;
  animation: halo-breathe 6s ease-in-out infinite;
}

.orb-halo--far {
  width: 34rem;
  height: 34rem;
  background: radial-gradient(
    circle,
    rgba(107, 91, 255, 0.08) 0%,
    rgba(139, 92, 246, 0.04) 42%,
    transparent 68%
  );
  filter: blur(56px);
  animation-duration: 9s;
  animation-delay: -2s;
}

@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.orb-particles {
  position: absolute;
  left: 0;
  top: 0;
  width: 18rem;
  height: 18rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orb-particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--ps);
  height: var(--ps);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 215, 255, var(--po)) 0%, rgba(139, 92, 246, calc(var(--po) * 0.5)) 55%, transparent 100%);
  filter: blur(1.2px);
  box-shadow: 0 0 8px rgba(139, 92, 246, calc(var(--po) * 0.45));
  animation: particle-drift 10s ease-in-out infinite;
  animation-delay: var(--pd);
}

@keyframes particle-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: var(--po);
  }
  33% {
    transform: translate(3px, -5px) scale(1.1);
    opacity: calc(var(--po) * 1.2);
  }
  66% {
    transform: translate(-4px, 3px) scale(0.92);
    opacity: calc(var(--po) * 0.85);
  }
}

.orb-cloud .orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 10rem;
  height: 8.5rem;
  transform: translate(-50%, -50%) scale(var(--orb-scale, 1));
  opacity: 0.82;
}

.orb-cloud .orb-glow {
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.22), transparent 72%);
  filter: blur(48px);
  opacity: 0.7;
}

.orb-cloud .orb-tilt {
  width: 8rem;
  height: 8rem;
  opacity: 0.75;
}

.orb-cloud .orb-ring {
  opacity: 0.45;
  filter: blur(6px);
}

.orb-cloud .orb-ring2 {
  opacity: 0.3;
}

.orb-cloud .orb-inner {
  opacity: 0.5;
}

.orb-cloud .orb-hi {
  opacity: 0.4;
}

.orb-cloud .orb-core {
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.55;
  filter: blur(7px);
}

.orb-cloud[data-variant="wisp"] .orb {
  width: 7rem;
  height: 6rem;
}

.orb-cloud[data-variant="wisp"] .orb-glow {
  width: 10rem;
  height: 10rem;
  filter: blur(40px);
  opacity: 0.55;
}

.orb-cloud[data-variant="wisp"] .orb-tilt {
  width: 5.5rem;
  height: 5.5rem;
  opacity: 0.6;
}

.orb-cloud[data-variant="wisp"] .orb-core {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.45;
}

.orb-cloud[data-variant="wisp"] .orb-halo {
  width: 16rem;
  height: 16rem;
}

.orb-cloud[data-variant="wisp"] .orb-halo--far {
  width: 26rem;
  height: 26rem;
}

.orb-cloud[data-variant="wisp"] .orb-particles {
  width: 14rem;
  height: 14rem;
}

.orb-cloud[data-variant="haze"] .orb {
  width: 14rem;
  height: 12rem;
  opacity: 0.55;
  filter: blur(2px);
}

.orb-cloud[data-variant="haze"] .orb-glow {
  width: 20rem;
  height: 20rem;
  filter: blur(64px);
  opacity: 0.45;
}

.orb-cloud[data-variant="haze"] .orb-tilt {
  opacity: 0.35;
}

.orb-cloud[data-variant="haze"] .orb-core {
  width: 4rem;
  height: 4rem;
  opacity: 0.35;
}

.orb-cloud[data-variant="haze"] .orb-halo {
  width: 28rem;
  height: 28rem;
  opacity: 0.7;
}

.orb-cloud[data-variant="haze"] .orb-halo--far {
  width: 42rem;
  height: 42rem;
}

.orb-cloud[data-variant="haze"] .orb-particles {
  opacity: 0.6;
}

/* ── Glass ── */

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.glass:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 24px 80px -24px rgba(139, 92, 246, 0.25);
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.scrolled {
  background: rgba(3, 3, 8, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.brand__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #00e676;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #00e676;
  box-shadow: 0 0 12px var(--emerald-glow);
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover::after { width: 100%; }

.nav-link--cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.08);
  color: #00e676;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  color: var(--emerald-bright);
  border-color: rgba(0, 230, 118, 0.6);
  box-shadow: 0 0 24px -6px rgba(0, 230, 118, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: rgba(3, 3, 8, 0.95);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #00e676;
}

/* ── Layout ── */

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

#work.section {
  position: relative;
  z-index: 5;
  padding-top: 72px;
  margin-top: 0;
  scroll-margin-top: 96px;
}

/* ── Hero pin (Phase 3) ── */

.hero-pin {
  --hero-pin: 0;
  height: 175vh;
  position: relative;
}

.hero-pin .hero {
  position: sticky;
  top: 0;
  min-height: 80vh;
  min-height: 80dvh;
  height: 80vh;
  height: 80dvh;
  margin-bottom: 0;
}

.hero-pin .scroll-hint-wrap {
  opacity: calc(1 - var(--hero-pin) * 1.4);
  pointer-events: calc(var(--hero-pin) > 0.85 ? none : auto);
}

#hero-content-layer {
  will-change: transform, opacity;
}

#hero-visual-layer {
  will-change: transform, opacity;
}

/* ── Section choreography ── */

.section--choreo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1200px;
}

.section-choreo__rail {
  display: none;
}

.section-choreo__main {
  min-width: 0;
}

.section-rail {
  display: none;
}

@media (min-width: 1100px) {
  .section--choreo {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .section-choreo__rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 40px);
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 5.5vw, 6.5rem);
    font-weight: 900;
    font-variation-settings: "wdth" 135, "wght" 900, "opsz" 84;
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 230, 118, 0.22);
    opacity: 0.9;
    user-select: none;
    padding-top: 8px;
  }

  .section--choreo .section-head .section-num,
  .section--choreo .cta-panel > .section-num {
    display: none;
  }

  .section-rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    left: max(12px, calc(50% - 648px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    pointer-events: auto;
  }

  .section-rail__link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-hubot);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  }

  .section-rail__link:hover {
    color: var(--emerald);
    border-color: rgba(0, 230, 118, 0.25);
    background: rgba(0, 230, 118, 0.06);
  }

  .section-rail__link.is-active {
    color: var(--emerald);
    border-color: rgba(0, 230, 118, 0.45);
    background: rgba(0, 230, 118, 0.1);
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.2);
  }
}

.section-head {
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 12px;
  text-shadow: 0 0 24px var(--emerald-glow);
}

.section-title {
  font-family: var(--font-hubot);
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-bright);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--text-bright) 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0;
}

/* ── Hero ── */

.parallax-layer {
  will-change: transform;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: visible;
  margin-bottom: 48px;
}

.hero-parallax {
  position: absolute;
  inset: -12% -6%;
  pointer-events: none;
  z-index: 0;
}

/* FlowAlly / FocusBuddy companion orb (#6B5BFF) — reused in orb clouds */
.orb {
  position: relative;
  width: 15rem;
  height: 13rem;
  perspective: 700px;
  transform: scale(1);
}

.orb > * {
  position: absolute;
  left: 50%;
  top: 50%;
}

.orb-glow {
  width: 16rem;
  height: 16rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.4), transparent 66%);
  filter: blur(34px);
  transition: background 0.45s ease, opacity 0.45s ease;
}

.orb-tilt {
  width: 12rem;
  height: 12rem;
  transform: translate(-50%, -50%) rotateX(28deg);
  transform-style: preserve-3d;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 0 42%,
    rgba(196, 187, 255, 0.55) 53%,
    rgba(139, 92, 246, 0.28) 66%,
    transparent 82%
  );
  filter: blur(4px);
}

.orb-ring2 {
  transform: rotate(20deg) scale(1.06);
  opacity: 0.55;
  filter: blur(8px);
}

.orb-inner {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 0 28%,
    rgba(167, 139, 250, 0.32) 50%,
    transparent 74%
  );
  filter: blur(6px);
}

.orb-hi {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 46%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), transparent 72%);
  filter: blur(7px);
  opacity: 0.75;
}

.orb-core {
  width: 5.5rem;
  height: 5.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(236, 233, 255, 0.7) 24%,
    rgba(150, 138, 255, 0.45) 48%,
    rgba(107, 91, 255, 0.1) 68%,
    transparent 78%
  );
  filter: blur(5px);
  opacity: 0.8;
}

.orb[data-state='idle'] {
  animation: orbBreathIdle 2400ms ease-in-out infinite;
}

.orb[data-state='idle'] .orb-core {
  animation: orbCoreGlow 2400ms ease-in-out infinite;
}

.orb[data-state='idle'] .orb-glow {
  animation: orbGlowPulse 2400ms ease-in-out infinite;
}

@keyframes orbBreathIdle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes orbCoreGlow {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes orbGlowPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.parallax-shards .shard {
  position: absolute;
  border-radius: 4px;
  transform: rotate(-12deg);
}

.shard--violet {
  width: 120px;
  height: 320px;
  top: 18%;
  right: 22%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), transparent);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.shard--cyan {
  width: 80px;
  height: 200px;
  bottom: 22%;
  left: 18%;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent);
  border: 1px solid rgba(34, 211, 238, 0.18);
  transform: rotate(18deg);
}

.shard--amber {
  width: 48px;
  height: 48px;
  top: 42%;
  left: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.2);
}

.parallax-floaters .floater {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floater--ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: 12%;
  right: 8%;
  border-color: rgba(34, 211, 238, 0.2);
}

.floater--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  bottom: 30%;
  left: 28%;
  background: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.6);
  border: none;
}

.floater--line {
  width: 240px;
  height: 1px;
  top: 58%;
  right: 12%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border: none;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__content-inner {
  width: 100%;
}

.hero__roles {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00e676;
  -webkit-text-fill-color: #00e676;
  text-shadow: 0 0 20px var(--emerald-glow), 0 0 40px rgba(0, 230, 118, 0.22);
  margin: -12px 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e676;
  -webkit-text-fill-color: #00e676;
  text-shadow: 0 0 20px var(--emerald-glow), 0 0 40px rgba(0, 230, 118, 0.22);
  margin: 0 0 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 14px var(--emerald), 0 0 28px var(--emerald-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 92, "wght" 820, "opsz" 36;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.hero__line {
  display: block;
  color: var(--text-bright);
}

.hero__line--accent {
  background: linear-gradient(100deg, #fff 0%, var(--violet) 40%, var(--cyan) 75%, var(--amber) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  position: relative;
  background: #00e676;
  color: #030308;
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.55),
    0 16px 48px -12px rgba(0, 230, 118, 0.5),
    0 0 40px -8px var(--emerald-glow);
}

.btn--primary:hover {
  background: var(--emerald-bright);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.75),
    0 20px 60px -10px rgba(0, 230, 118, 0.55),
    0 0 56px -6px rgba(0, 230, 118, 0.4);
}

.btn--ghost {
  background: rgba(0, 230, 118, 0.06);
  border-color: rgba(0, 230, 118, 0.38);
  color: #00e676;
}

.btn--ghost:hover {
  color: var(--emerald-bright);
  border-color: rgba(0, 230, 118, 0.6);
  background: rgba(0, 230, 118, 0.12);
  box-shadow: 0 12px 40px -16px rgba(0, 230, 118, 0.35);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__stats dt {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hero__stats dd {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: visible;
  padding-inline: 4px;
}

.hero__visual .parallax-layer {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* ── Hero code monitor (OpenClipart frame) ── */

.code-monitor {
  width: calc(150% + 45px);
  max-width: calc(150% + 45px);
  margin-left: 0;
  transform: translateX(10px);
}

.code-monitor__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 521 / 453.97;
  filter: drop-shadow(0 28px 80px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 48px rgba(0, 230, 118, 0.12));
}

.code-monitor__svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.code-monitor__screen {
  position: absolute;
  /* Screen inset from SVG viewBox (521 × 453.97), inner display rect */
  left: 5.86%;
  top: 6.72%;
  width: 88.29%;
  height: 55.07%;
  overflow: hidden;
  background: #020204;
  border-radius: 2px;
  box-shadow:
    inset 0 0 60px rgba(0, 230, 118, 0.06),
    inset 0 0 120px rgba(0, 0, 0, 0.8);
}

#code-rain {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s ease;
}

.code-monitor__gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.code-monitor__gif.is-visible,
#code-rain.is-visible {
  opacity: 1;
}

#code-rain:not(.is-visible) {
  opacity: 0;
}

.code-monitor__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.code-monitor__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.scroll-hint-wrap {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Type specimen band (Mona variable) ── */

.type-specimen {
  position: relative;
  z-index: 3;
  margin: -24px 0 0;
  padding: 48px 0 64px;
  overflow: hidden;
  pointer-events: none;
}

.type-specimen__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.type-specimen__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: "wdth" var(--specimen-wdth), "wght" var(--specimen-wght), "opsz" 72;
  transition: opacity 0.15s linear;
}

.type-specimen__line--ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 139, 250, 0.22);
  opacity: calc(var(--specimen-opacity) * 0.65);
  margin-left: clamp(0px, 4vw, 48px);
}

.type-specimen__line--fill {
  margin-top: 0;
  margin-left: clamp(12px, 6vw, 64px);
  color: var(--emerald);
  -webkit-text-fill-color: var(--emerald);
  text-shadow:
    0 0 40px var(--emerald-glow),
    0 0 80px rgba(0, 230, 118, 0.35);
  opacity: var(--specimen-opacity);
}

/* ── Marquee band ── */

.marquee-band {
  position: relative;
  z-index: 4;
  isolation: isolate;
  contain: layout paint style;
  margin: 160px 0 120px;
  padding: 96px 0;
}

.marquee-band::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: -96px;
  bottom: 0;
  background: var(--void);
  pointer-events: none;
  z-index: -2;
}

.marquee-band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: -48px;
  bottom: 0;
  background: linear-gradient(180deg, var(--void) 0%, transparent 22%);
  pointer-events: none;
  z-index: -1;
}

.marquee-wrap {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--coal);
  overflow: hidden;
  padding: 30px 0;
  box-shadow:
    0 -64px 96px -24px rgba(0, 0, 0, 1),
    0 64px 96px -24px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(160px, 18vw);
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--coal) 0%, var(--coal) 35%, transparent 100%);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--coal) 0%, var(--coal) 35%, transparent 100%);
}

.marquee {
  position: relative;
  z-index: 1;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-hubot);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee__track span:nth-child(odd) {
  color: rgba(167, 139, 250, 0.45);
}

.marquee__hit {
  color: var(--emerald) !important;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
}

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

/* ── Bento grid ── */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(920px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--tilt-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    opacity 0.7s var(--ease-out);
  opacity: 0;
  translate: 0 24px;
}

.bento-card.is-in {
  opacity: 1;
  translate: 0 0;
}

.bento-card:hover {
  --tilt-lift: -5px;
}

.bento-card.glass:hover {
  border-color: rgba(0, 230, 118, 0.38);
  box-shadow:
    0 28px 88px -24px rgba(0, 230, 118, 0.24),
    0 28px 88px -24px rgba(139, 92, 246, 0.22);
}

.bento-card--featured {
  grid-row: span 2;
  min-height: 100%;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bento-card__year {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.bento-card__title {
  font-family: var(--font-hubot);
  font-size: 1.85rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 12px;
  line-height: 1;
}

.bento-card__desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 auto;
  flex: 1;
}

.bento-card__features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-card__features li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.bento-card__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-soft);
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.3s;
}

.bento-card__link:hover { color: var(--text-bright); }

.tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}

.tag--violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(139, 92, 246, 0.1); }
.tag--magenta { color: var(--magenta); border-color: rgba(244, 114, 182, 0.35); background: rgba(244, 114, 182, 0.08); }
.tag--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.tag--amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.tag--emerald { color: var(--emerald); border-color: rgba(0, 230, 118, 0.4); background: var(--emerald-dim); }
.tag--steel { color: var(--steel); border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.08); }

.section[data-depth] {
  will-change: transform;
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card--featured {
    grid-row: span 3;
  }

  .bento-card--wide {
    grid-column: span 3;
  }
}

/* ── Principles ── */

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

.principle {
  padding: 32px;
}

.principle__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  font-variation-settings: "wdth" 110, "wght" 750, "opsz" 48;
  color: rgba(139, 92, 246, 0.35);
  display: block;
  margin-bottom: 12px;
}

.principle h3 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 12px;
}

.principle p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--text-dim);
}

.about-copy strong {
  color: var(--text-bright);
  font-weight: 600;
}

.about-aside {
  padding: 28px;
}

.about-aside h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

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

.chip-list li {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ── CTA ── */

.cta-section { padding-bottom: 120px; }

.cta-section.section--choreo {
  padding-bottom: 120px;
}

.cta-panel {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transform: scale(0.97);
  transition:
    transform 0.9s var(--ease-out),
    border-color 0.9s var(--ease-out),
    box-shadow 0.9s var(--ease-out);
  border: 1px solid var(--line);
}

.cta-panel.in {
  transform: scale(1);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.2),
    0 0 64px -12px rgba(0, 230, 118, 0.35),
    0 32px 96px -32px rgba(0, 230, 118, 0.15);
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  box-shadow: inset 0 0 48px rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.cta-panel.in::after {
  opacity: 1;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(139, 92, 246, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(34, 211, 238, 0.1), transparent 50%);
  pointer-events: none;
}

.cta-panel > * { position: relative; }

.cta-panel__title {
  font-family: var(--font-hubot);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 16px;
  line-height: 1;
}

.cta-panel__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-panel__sub {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 0 0 32px;
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--violet);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer__fun {
  font-size: 0.82rem;
  margin: 6px 0 0;
  opacity: 0.7;
}

.site-footer__fun a {
  color: var(--cyan-soft);
}

.site-footer__note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 8px;
}

/* ── Reveal on scroll ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .site-header__inner {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-nav__cta {
    justify-content: center;
    margin-top: 8px;
    border-bottom: none !important;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.08);
    color: #00e676 !important;
    padding: 14px 18px !important;
  }

  .hero-pin {
    height: auto;
  }

  .hero-pin .hero {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
  }

  .section-rail {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 48px;
    margin-bottom: 24px;
  }

  .hero-parallax {
    opacity: 0.35;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
    padding-inline: 0;
  }

  .hero__visual .parallax-layer {
    display: flex;
    justify-content: center;
  }

  .code-monitor {
    width: min(100%, 440px);
    max-width: 100%;
    margin-inline: auto;
    transform: none;
  }

  .eyebrow {
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
    text-align: center;
  }

  .hero__roles {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .hero__title {
    font-size: clamp(2.6rem, 11vw, 4rem);
    font-variation-settings: "wdth" 95, "wght" 800, "opsz" 24;
  }

  .hero__lede {
    margin-inline: auto;
    font-size: 1.05rem;
    max-width: 36ch;
  }

  .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding-top: 20px;
  }

  .scroll-hint-wrap {
    display: none;
  }

  .type-specimen {
    margin: 0;
    padding: 28px 0 36px;
  }

  .type-specimen__inner {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .type-specimen__line {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .type-specimen__line--fill {
    margin-left: 8px;
  }

  .marquee-band {
    margin: 40px 0 48px;
    padding: 40px 0;
  }

  .marquee__track {
    font-size: 0.95rem;
    gap: 20px;
  }

  .section {
    padding: 64px max(16px, env(safe-area-inset-left)) 64px max(16px, env(safe-area-inset-right));
  }

  #work.section {
    padding-top: 48px;
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .section-sub {
    font-size: 1rem;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    padding: 22px;
    min-height: 0;
    transform: none;
  }

  .bento-card--featured { grid-row: auto; }
  .bento-card--wide { grid-column: auto; }

  .principles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .principle {
    padding: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-aside {
    padding: 22px;
  }

  .cta-section {
    padding-bottom: 72px;
  }

  .cta-panel {
    padding: 40px 20px;
  }

  .cta-panel__title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .cta-panel__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-panel__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .site-footer {
    padding: 40px max(16px, env(safe-area-inset-left)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    text-align: center;
  }

  .orb-field .orb-cloud--fore { display: none; }

  .hero__content,
  .hero__visual {
    position: relative;
    z-index: 2;
  }

  .site-nav { display: none; }
  .menu-toggle { display: flex; }

  .site-header.menu-open .mobile-nav { display: flex; }
}

@media (max-width: 600px) {
  .brand__name {
    font-size: 0.95rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero__lede {
    font-size: 1rem;
    line-height: 1.65;
  }

  .code-monitor {
    width: 100%;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .marquee-band {
    margin: 32px 0 40px;
    padding: 32px 0;
  }

  .section {
    padding-block: 52px;
  }

  .bento-card__title {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --specimen-wdth: 100;
    --specimen-wght: 700;
    --specimen-opacity: 0.5;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .orb-cloud .orb-core,
  .orb-glow,
  .orb-halo,
  .orb-particle {
    animation: none !important;
  }
  .bento-card {
    opacity: 1;
    translate: none;
    transform: none;
  }

  .cta-panel {
    transform: none;
  }

  .parallax-layer,
  .ambient__orb,
  .ambient__grid,
  .section[data-depth],
  .orb-cloud,
  .orb,
  .orb-core,
  .orb-glow {
    transform: none !important;
  }
}
