/*
 * Portfolio interface refresh — 2026
 * Direction: premium editorial clarity + an AI-native architecture console.
 * This layer intentionally overrides the original component system while
 * preserving the semantic HTML, progressive enhancement and no-build deploy.
 */

:root {
  --void: #050609;
  --base: #080a0f;
  --surface: #0e1219;
  --raised: #141a23;
  --raised-hover: #1a2230;
  --card-border: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.18);
  --ink: #f4f1e9;
  --ink-dim: #b8c0cb;
  --ink-mute: #87919f;
  --signal: #ffb84d;
  --signal-deep: #dd8d1f;
  --signal-glow: rgba(255, 184, 77, 0.18);
  --signal-glow-subtle: rgba(255, 184, 77, 0.075);
  --neural: #70c8ff;
  --neural-glow: rgba(112, 200, 255, 0.17);
  --matrix: #72e6ae;
  --matrix-glow: rgba(114, 230, 174, 0.16);
  --violet: #a89bff;
  --paper: #eeeae1;
  --paper-card: #f8f5ee;
  --paper-ink: #12151a;
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4.2vw, 4.5rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { background: var(--void); }

body {
  background:
    radial-gradient(circle at 14% 5%, rgba(112, 200, 255, .055), transparent 27rem),
    radial-gradient(circle at 82% 13%, rgba(255, 184, 77, .05), transparent 31rem),
    var(--base);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  opacity: 0;
}

body::after {
  opacity: .24;
  mix-blend-mode: soft-light;
}

#ambient-canvas { opacity: .28; }

.wrap { max-width: var(--maxw); }

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

.pointer-aura {
  position: fixed;
  left: 0;
  top: 0;
  width: 34rem;
  height: 34rem;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(calc(var(--pointer-x, -1000px) - 50%), calc(var(--pointer-y, -1000px) - 50%), 0);
  background: radial-gradient(circle, rgba(112, 200, 255, .055), rgba(255, 184, 77, .022) 36%, transparent 70%);
  transition: opacity .4s ease;
  will-change: transform;
}

body.pointer-active .pointer-aura { opacity: 1; }

/* Header / navigation */
header {
  top: 0;
  padding: 12px 0;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.nav {
  width: min(calc(100% - 32px), 1260px);
  height: 58px;
  padding-inline: 1rem !important;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(8, 10, 15, .74);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  pointer-events: auto;
  transition: height .3s var(--ease-out), background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

header.is-scrolled .nav {
  height: 52px;
  background: rgba(8, 10, 15, .91);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .44);
}

.mark {
  font-size: .73rem;
  letter-spacing: .14em;
  gap: .55rem;
}

.mark-logo { width: 1.7rem; height: 1.7rem; }

.mark .badge {
  color: #aab3c0;
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
  border-radius: 5px;
}

.nav-links { gap: clamp(1rem, 1.7vw, 1.7rem); }

.nav-links a {
  color: #9aa5b4;
  font-size: .69rem;
  letter-spacing: .07em;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -.08rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { display: none; }
.nav-links a.active::before { opacity: 1; transform: translateX(-50%) scale(1); }

.nav-actions { gap: .55rem; }

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 .55rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: #bdc6d2;
  font: 700 .66rem/1 var(--mono);
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.language-link:hover {
  border-color: var(--neural);
  background: var(--neural-glow);
  color: #bfe7ff;
}

@media (max-width: 1080px) {
  .nav-actions .nav-btn.lang-switch { display: inline-flex; }
}

.nav-btn,
.icon-link {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .12);
  border-radius: 9px;
}

.nav .btn.solid {
  border-radius: 999px;
  padding-inline: 1rem !important;
  box-shadow: 0 5px 20px rgba(255, 184, 77, .14);
}

.nav-toggle { border-radius: 50%; background: rgba(255,255,255,.04); }

.mobile-drawer { background: rgba(4, 5, 8, .72); }
.drawer-content {
  background:
    radial-gradient(circle at 80% 10%, rgba(112, 200, 255, .1), transparent 18rem),
    #0b0e14;
  border-left: 1px solid var(--line-bright);
}

.drawer-language-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: .8rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(112, 200, 255, .25);
  border-radius: 10px;
  background: rgba(112, 200, 255, .07);
  color: #c5eaff;
  font: 600 .68rem/1.2 var(--mono);
  letter-spacing: .07em;
  text-decoration: none;
}

.drawer-language-link span:last-child { color: #86d1ff; letter-spacing: .12em; }
.drawer-language-link:hover { border-color: var(--neural); background: rgba(112, 200, 255, .12); }

/* Shared type and rhythm */
section { padding: clamp(5.5rem, 9vw, 9rem) 0; }
section[id] { scroll-margin-top: 88px; }
section + section { border-top: 0; }
section + section::before { background: linear-gradient(90deg, transparent 6%, var(--line) 30%, var(--line) 70%, transparent 94%); }
section + section::after { display: none; }

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

h2 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5.65rem);
  line-height: .96;
  letter-spacing: -.038em;
}

h2 em { color: var(--signal); }

.lede {
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.72;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.35rem;
  padding: .46rem .72rem;
  border: 1px solid rgba(255, 184, 77, .28);
  border-radius: 999px;
  background: rgba(255, 184, 77, .07);
  color: #ffc467;
  font-size: .64rem;
  letter-spacing: .18em;
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 184, 77, .1);
}

.eyebrow::after { display: none; }

.section-intro.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-intro.split-intro h2,
.section-intro.split-intro .lede { margin-bottom: 0; }

.btn {
  min-height: 48px;
  padding: .9rem 1.3rem;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 12px;
  font-size: .69rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.solid {
  color: #151006;
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 10px 32px rgba(255, 184, 77, .16);
}

.btn.solid:hover {
  color: #120d05;
  background: #ffc66f;
  border-color: #ffc66f;
  box-shadow: 0 12px 38px rgba(255, 184, 77, .26);
}

.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Hero */
.hero {
  min-height: calc(100svh - 82px);
  padding: clamp(3.2rem, 6vw, 6.3rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .037) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .037) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 65%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(112, 200, 255, .10), transparent 21rem),
    radial-gradient(circle at 69% 18%, rgba(168, 155, 255, .055), transparent 27rem),
    radial-gradient(circle at 14% 46%, rgba(255, 184, 77, .07), transparent 22rem);
}

.hero-aurora {
  position: absolute;
  z-index: -1;
  top: 2%;
  right: -8%;
  width: min(58vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent, rgba(112, 200, 255, .09), transparent 30%, rgba(255, 184, 77, .07), transparent 64%);
  filter: blur(52px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  to { transform: translate3d(-4%, 5%, 0) rotate(10deg) scale(1.05); }
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--ink-mute);
  font: 500 .65rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  padding: .5rem .76rem;
  color: #c9d2dd;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .026);
}

.availability-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 0 0 rgba(114, 230, 174, .65);
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  60%, 100% { box-shadow: 0 0 0 7px rgba(114, 230, 174, 0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 7.2rem);
}

.hero-copy { min-width: 0; }

.hero-overline {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.5rem;
  color: #aab4c0;
  font: 600 .68rem/1.4 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-overline span {
  flex: 0 0 auto;
  color: var(--signal);
  padding-right: .8rem;
  border-right: 1px solid var(--line-bright);
  white-space: nowrap;
}

.name {
  max-width: 9.5ch;
  margin: 0 0 1.8rem;
  color: var(--ink);
  font-size: clamp(4.15rem, 7.25vw, 7.65rem);
  line-height: .86;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.name span { white-space: nowrap; }
.name .l2 {
  padding-left: 0;
  color: var(--signal);
  font-style: italic;
}

.pitch {
  max-width: 59ch;
  margin-bottom: 2rem;
  color: #c2cad5;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.pitch b { color: var(--ink); font-weight: 500; }
.cta-row { gap: .75rem; margin-bottom: 1.9rem; }
.hero-secondary { background: rgba(255, 255, 255, .025); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  color: var(--ink-mute);
  font: 500 .66rem/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-trust span { display: inline-flex; align-items: baseline; gap: .35rem; }
.hero-trust span + span::before { content: '•'; margin-right: .7rem; color: rgba(255,255,255,.2); }
.hero-trust b { color: var(--ink); font-size: .82rem; }

.hero-copy > * {
  animation: hero-enter .72s var(--ease-out) both;
}

.hero-copy > :nth-child(2) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .11s; }
.hero-copy > :nth-child(4) { animation-delay: .17s; }
.hero-copy > :nth-child(5) { animation-delay: .23s; }

@keyframes hero-enter {
  from { transform: translateY(18px); filter: blur(5px); }
  to { transform: none; filter: none; }
}

.hero-visual {
  position: relative;
  min-height: 590px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(112, 200, 255, .12), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  box-shadow: 0 34px 80px rgba(0, 0, 0, .43), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform-style: preserve-3d;
  animation: visual-enter .85s .12s var(--ease-out);
  transition: transform .2s ease-out, border-color .3s ease, box-shadow .3s ease;
}

.hero-visual:hover {
  border-color: rgba(112, 200, 255, .25);
  box-shadow: 0 38px 95px rgba(0, 0, 0, .55), 0 0 70px rgba(112, 200, 255, .055), inset 0 1px 0 rgba(255, 255, 255, .08);
}

@keyframes visual-enter {
  from { transform: translate3d(0, 24px, 0) scale(.975); filter: blur(5px); }
  to { transform: none; filter: none; }
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 92%);
  -webkit-mask-image: linear-gradient(#000, transparent 92%);
  opacity: .8;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .035) 48%, transparent 61%);
  transform: translateX(-100%);
  animation: visual-scan 7s 1.2s ease-in-out infinite;
}

@keyframes visual-scan {
  0%, 62% { transform: translateX(-100%); }
  82%, 100% { transform: translateX(100%); }
}

.visual-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: #9ca8b7;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 9, .5);
  font: 600 .62rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.visual-live { display: inline-flex; align-items: center; gap: .45rem; color: #b8f5d6; }
.visual-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--matrix); box-shadow: 0 0 12px var(--matrix); }

.portrait-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  perspective: 900px;
}

.hero-visual .portrait {
  position: relative;
  z-index: 4;
  display: block;
  width: 248px;
  margin: 2rem auto 0;
  padding: 0;
  border: 0;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .5));
}

.hero-visual .portrait::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px solid rgba(255, 184, 77, .28);
  border-radius: 140px 140px 28px 28px;
}

.hero-visual .portrait img {
  width: 248px;
  height: 326px;
  border: 0;
  border-radius: 132px 132px 24px 24px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.06);
  box-shadow: none;
}

.hero-visual:hover .portrait img { filter: saturate(1) contrast(1.04); }

.hero-visual .portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: .65rem .85rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  background: rgba(6, 8, 12, .76);
  color: #aeb8c5;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-visual .portrait figcaption b { color: var(--ink); font-size: .67rem; }
.hero-visual .portrait figcaption span { display: block; font-size: .55rem; }

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(112, 200, 255, .14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neural);
  box-shadow: 0 0 15px rgba(112, 200, 255, .75);
}

.orbit::before { left: 10%; top: 19%; }
.orbit::after { right: 8%; bottom: 22%; background: var(--signal); box-shadow: 0 0 15px rgba(255, 184, 77, .7); }
.orbit-one { width: 360px; height: 250px; }
.orbit-two { width: 435px; height: 330px; transform: translate(-50%, -50%) rotate(24deg); opacity: .62; }

.architecture-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .8;
}

.architecture-path::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 51%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 200, 255, .32), rgba(255, 184, 77, .32), transparent);
  background-size: 200% 100%;
  animation: data-path 4.5s linear infinite;
}

@keyframes data-path { to { background-position: -200% 0; } }

.path-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: #0b0f16;
}

.path-node::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(112, 200, 255, .12);
  border-radius: 50%;
}

.path-node.p1 { left: 10%; top: 50%; }
.path-node.p2 { left: 29%; top: 50%; }
.path-node.p3 { right: 28%; top: 50%; }
.path-node.p4 { right: 9%; top: 50%; }

.orbit-label {
  position: absolute;
  z-index: 5;
  padding: .44rem .62rem;
  color: #d7dee7;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(8, 10, 15, .78);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  font: 600 .58rem/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.orbit-label::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: .4rem; border-radius: 50%; background: var(--neural); }
.orbit-label-a { left: 7%; top: 22%; animation: label-float 4.3s ease-in-out infinite; }
.orbit-label-b { right: 6%; top: 30%; animation: label-float 5s .7s ease-in-out infinite; }
.orbit-label-c { left: 5%; bottom: 20%; animation: label-float 4.7s 1.1s ease-in-out infinite; }
.orbit-label-d { right: 4%; bottom: 15%; animation: label-float 5.4s .3s ease-in-out infinite; }
.orbit-label-b::before, .orbit-label-d::before { background: var(--signal); }

@keyframes label-float { 50% { transform: translateY(-6px); } }

.visual-proof {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 9, .62);
}

.visual-proof div { min-width: 0; padding: 1.15rem 1rem; }
.visual-proof div + div { border-left: 1px solid var(--line); }
.visual-proof strong { display: block; margin-bottom: .32rem; color: var(--signal); font: 600 1.2rem/1 var(--mono); }
.visual-proof span { display: block; color: #8f9baa; font: 500 .56rem/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.capability-marquee {
  position: relative;
  margin-top: clamp(4rem, 7vw, 6.5rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 1.05rem 0;
  color: #8e99a8;
  font: 600 .63rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: marquee-flow 34s linear infinite;
}

.marquee-track span { margin: 0 1.4rem; }
.marquee-track i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 9px var(--signal); }
.capability-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-flow { to { transform: translateX(-50%); } }

/* Evidence bento */
#scale { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }

.readout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cell {
  grid-column: span 4;
  min-height: 235px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 54%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .32s var(--ease-out), border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.cell:nth-child(1) { grid-column: span 5; }
.cell:nth-child(2) { grid-column: span 3; }
.cell:nth-child(3) { grid-column: span 4; }
.cell:nth-child(4), .cell:nth-child(5) { grid-column: span 6; }
.cell:nth-child(6), .cell:nth-child(7), .cell:nth-child(8) { grid-column: span 4; }
.cell:nth-child(9) { grid-column: span 12; min-height: 190px; }

.cell:hover {
  z-index: 2;
  border-color: rgba(255, 184, 77, .3);
  background: linear-gradient(145deg, rgba(255, 184, 77, .065), transparent 58%), #10151d;
  box-shadow: 0 22px 55px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateY(-5px);
}

.cell::after {
  top: 0;
  right: auto;
  bottom: auto;
  left: 1.8rem;
  width: 44px;
  height: 1px;
  background: var(--signal);
}

.cell:hover::after { background: var(--signal); width: calc(100% - 3.6rem); transition: width .55s var(--ease-out); }
.cell .n { margin-bottom: 1.15rem; font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -.065em; }
.cell .k { color: #e4e8ed; font-size: .69rem; }
.cell .s { color: #9fa9b6; font-size: .82rem; }

#scale.enhanced:not(.expanded) .cell:nth-child(n+6) { display: none; }

.section-toggle-wrap { display: none; justify-content: center; margin-top: 2rem; }
#scale.enhanced .section-toggle-wrap,
#record.enhanced .section-toggle-wrap { display: flex; }
.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .7rem 1rem;
  color: #b3bdca;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font: 600 .65rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.section-toggle:hover { color: var(--ink); border-color: rgba(255,184,77,.45); background: var(--signal-glow-subtle); }
.section-toggle i { position: relative; width: 12px; height: 12px; }
.section-toggle i::before, .section-toggle i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--signal); transform: translate(-50%,-50%); transition: transform .25s ease; }
.section-toggle i::after { transform: translate(-50%,-50%) rotate(90deg); }
.expanded .section-toggle i::after { transform: translate(-50%,-50%) rotate(0); }

/* Selected systems — deliberate light/dark contrast break */
#work {
  overflow: hidden;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 184, 77, .18), transparent 24rem),
    radial-gradient(circle at 4% 84%, rgba(63, 157, 211, .1), transparent 25rem),
    var(--paper);
}

#work::before {
  inset: 0;
  height: auto;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(rgba(18,21,26,.35) .7px, transparent .7px);
  background-size: 15px 15px;
}

#work h2 { max-width: 11ch; color: var(--paper-ink); }
#work h2 em { color: #b45d14; }
#work .lede { color: #555c64; }
#work .eyebrow { color: #744109; border-color: rgba(129,76,18,.23); background: rgba(255,184,77,.18); }

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

.case-card {
  grid-column: span 4;
  position: relative;
  min-width: 0;
  min-height: 510px;
  padding: clamp(1.45rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(18, 21, 26, .12);
  border-radius: 22px;
  background: rgba(250, 248, 242, .78);
  box-shadow: 0 18px 45px rgba(24, 28, 34, .08), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}

.case-card:hover {
  border-color: rgba(18,21,26,.22);
  box-shadow: 0 28px 65px rgba(24, 28, 34, .14), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-7px);
}

.case-feature {
  grid-column: 1 / -1;
  min-height: 560px;
  color: var(--ink);
  border-color: rgba(255, 255, 255, .13);
  background:
    radial-gradient(circle at 77% 48%, rgba(112, 200, 255, .15), transparent 19rem),
    linear-gradient(135deg, #0b0e14, #101722 68%, #0d1118);
  box-shadow: 0 28px 70px rgba(24, 28, 34, .22), inset 0 1px 0 rgba(255,255,255,.06);
}

.case-feature:hover { border-color: rgba(112, 200, 255, .27); box-shadow: 0 35px 85px rgba(24, 28, 34, .28), 0 0 55px rgba(112,200,255,.06); }

.case-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.case-index { color: #6a7078; font: 700 .62rem/1 var(--mono); letter-spacing: .16em; }
.case-feature .case-index { color: #8f9aa8; }
.case-state { display: inline-flex; align-items: center; gap: .45rem; color: #386c51; font: 600 .58rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.case-state i { width: 6px; height: 6px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 9px rgba(43,182,115,.42); }
.case-state.cyan { color: #237492; }
.case-state.cyan i { background: #35abd6; box-shadow: 0 0 9px rgba(53,171,214,.4); }
.case-state.violet { color: #6959ae; }
.case-state.violet i { background: #8c79df; box-shadow: 0 0 9px rgba(140,121,223,.4); }

.case-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); }
.case-card h3 { max-width: 14ch; margin: 0 0 1rem; color: #15181d; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; }
.case-card > p { color: #5a6169; font-size: .92rem; line-height: 1.72; }
.case-feature h3 { max-width: 13ch; color: var(--ink); font-size: clamp(2.7rem, 5vw, 5rem); }
.case-feature .case-copy > p { max-width: 57ch; color: #abb5c2; font-size: .98rem; }

.case-facts { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.case-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--signal); font: 600 .6rem/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.case-facts dd { margin: 0; color: #b5bfca; font-size: .77rem; line-height: 1.5; }

.cloud-map { position: relative; min-height: 370px; }
.cloud-map svg { position: absolute; inset: 5%; width: 90%; height: 90%; overflow: visible; }
.cloud-map path, .cloud-map circle { fill: none; stroke: rgba(112,200,255,.2); stroke-width: 1; stroke-dasharray: 4 6; }
.cloud-map circle:last-child { stroke: rgba(255,184,77,.12); }
.map-core, .map-node { position: absolute; z-index: 2; display: grid; place-content: center; border: 1px solid rgba(112,200,255,.25); background: rgba(8,12,18,.87); box-shadow: 0 0 28px rgba(112,200,255,.08); font: 600 .58rem/1 var(--mono); letter-spacing: .08em; text-align: center; }
.map-core { left: 50%; top: 50%; width: 112px; height: 112px; border-radius: 50%; transform: translate(-50%,-50%); }
.map-core::before { content: ''; position: absolute; inset: -10px; border: 1px solid rgba(112,200,255,.13); border-radius: 50%; }
.map-core b { color: var(--neural); font-size: 1.2rem; }
.map-core small { margin-top: .4rem; color: #83909f; font-size: .46rem; }
.map-node { width: 56px; height: 34px; border-radius: 8px; color: #aeb9c6; }
.map-node.n1 { left: 8%; top: 8%; }.map-node.n2 { right: 7%; top: 7%; }.map-node.n3 { right: 0; top: 46%; }.map-node.n4 { right: 10%; bottom: 3%; }.map-node.n5 { left: 10%; bottom: 4%; }.map-node.n6 { left: 0; top: 45%; color: var(--signal); border-color: rgba(255,184,77,.25); }

.case-metric { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.case-metric strong { color: var(--signal); font: 600 2rem/1 var(--mono); }
.case-metric span { color: #8e99a8; font: 500 .61rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.case-glyph { position: relative; display: grid; place-content: center; height: 150px; margin: .5rem 0 1.5rem; }
.shield-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(53,171,214,.22); border-radius: 50%; transform: translate(-50%,-50%); transition: transform .7s var(--ease-out); }
.shield-ring.r1 { width: 110px; height: 110px; }.shield-ring.r2 { width: 150px; height: 150px; border-style: dashed; }
.case-airgap:hover .shield-ring.r1 { transform: translate(-50%,-50%) scale(1.08); }
.case-airgap:hover .shield-ring.r2 { transform: translate(-50%,-50%) rotate(24deg); }
.glyph-core { z-index: 2; color: #167da2; font: 600 2.3rem/.75 var(--mono); text-align: center; }
.glyph-core small { font-size: .5rem; letter-spacing: .15em; }

.protocol-strip { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 150px; margin-bottom: 1.5rem; }
.protocol-strip span { flex: 0 0 auto; padding: .65rem .6rem; color: #56488f; border: 1px solid rgba(105,89,174,.23); border-radius: 7px; background: rgba(168,155,255,.09); font: 700 .55rem/1 var(--mono); }
.protocol-strip i { position: relative; flex: 1; color: #838891; font: 500 .44rem/1 var(--mono); text-align: center; }
.protocol-strip i::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -9px; height: 1px; background: linear-gradient(90deg, transparent, rgba(105,89,174,.45), transparent); }

.waveform { display: flex; align-items: center; justify-content: center; gap: 5px; height: 150px; margin-bottom: 1.5rem; }
.waveform i { width: 3px; height: 18%; border-radius: 4px; background: linear-gradient(var(--signal), #cc6f21); transition: height .45s var(--ease-out); }
.waveform i:nth-child(3n) { height: 68%; }.waveform i:nth-child(4n) { height: 42%; }.waveform i:nth-child(5n) { height: 88%; }.waveform i:nth-child(7n) { height: 30%; }
.case-voice:hover .waveform i:nth-child(odd) { height: 74%; }.case-voice:hover .waveform i:nth-child(even) { height: 35%; }

.case-foot { position: absolute; left: 2rem; right: 2rem; bottom: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(18,21,26,.1); color: #747a82; font: 600 .56rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.case-foot strong { color: #272b31; text-align: right; }

/* Practice and decision engine */
#practice { background: radial-gradient(circle at 8% 30%, rgba(112,200,255,.05), transparent 26rem); }
.split { gap: 16px; overflow: visible; border: 0; background: transparent; }
.half { padding: clamp(1.6rem, 3.2vw, 2.8rem); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.half.track-a { background: radial-gradient(circle at 10% 0, rgba(112,200,255,.1), transparent 18rem), var(--surface); }
.half.track-b { background: radial-gradient(circle at 90% 0, rgba(255,184,77,.09), transparent 18rem), var(--surface); }
.half h3 { max-width: 14ch; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.03; }
.half p, .half dd { color: #9faab8; }
.half dl { border-color: var(--line); }
.half dt { color: #d8dee6; }

.decision-box {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3.4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(114,230,174,.04), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.035), transparent),
    #0c1016;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}
.dec-q, .decision-result { border-radius: 15px; }
.decision-result { box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03); }
.dec-opt { border-radius: 10px; }

/* Signature architecture lab */
#blueprints {
  background:
    radial-gradient(circle at 80% 18%, rgba(168,155,255,.065), transparent 28rem),
    radial-gradient(circle at 15% 72%, rgba(112,200,255,.055), transparent 26rem);
}

.studio-box {
  overflow: hidden;
  border: 1px solid rgba(112,200,255,.19);
  border-radius: 26px;
  background: #0b0e14;
  box-shadow: 0 36px 90px rgba(0,0,0,.43), 0 0 80px rgba(112,200,255,.035), inset 0 1px 0 rgba(255,255,255,.045);
}
.studio-header { padding: 1.25rem 1.5rem; background: rgba(5,7,10,.78); }
.studio-tag { color: var(--neural); }
.topology-tabs { gap: 0; background: #080b10; }
.topo-tab { background: #0d1118; border-right: 1px solid var(--line); border-top-width: 0; border-bottom: 2px solid transparent; }
.topo-tab.active { background: #121824; border-top-color: transparent; border-bottom-color: var(--signal); }
.topo-tab.active.neural-active { border-bottom-color: var(--neural); }
.topo-tab.active.matrix-active { border-bottom-color: var(--matrix); }
.topo-canvas { background: #070a0f; }
.topo-canvas::before { background-size: 28px 28px; opacity: .32; }
.topo-node { border-radius: 14px; background: rgba(15,20,28,.94); }
.node-inspector, .contract-bar { border-radius: 14px; background: rgba(14,18,25,.93); }

/* Capability bento */
.cap-filters { gap: .55rem; }
.filter-btn { min-height: 42px; border-radius: 999px; background: rgba(255,255,255,.025); }
.filter-btn.active { color: #151006; box-shadow: 0 8px 24px rgba(255,184,77,.13); }
.caps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cap {
  grid-column: span 6;
  min-height: 420px;
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.028), transparent 50%), var(--surface);
}
.cap:nth-child(1), .cap:nth-child(4), .cap:nth-child(5), .cap:nth-child(8) { grid-column: span 7; }
.cap:nth-child(2), .cap:nth-child(3), .cap:nth-child(6), .cap:nth-child(7) { grid-column: span 5; }
.caps.is-filtered { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.caps.is-filtered .cap { grid-column: auto; }
.cap:hover { z-index: 2; border-color: rgba(255,184,77,.28); background: linear-gradient(145deg, rgba(255,184,77,.05), transparent 50%), #11161f; transform: translateY(-4px); }
.cap::before { display: none; }
.cap .idx { color: var(--signal); }
.cap h3 { max-width: 16ch; font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.45rem); font-weight: 400; line-height: 1.05; }
.cap p { color: #a2acb9; }
.cap-outcome { border-radius: 10px; }
.cap li { border-radius: 999px; background: rgba(255,255,255,.025); }

/* Experience */
.tl {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.tl li {
  display: grid;
  grid-template-columns: minmax(150px, .28fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.018);
  transition: border-color .25s ease, background .25s ease, transform .3s var(--ease-out);
}
.tl li:hover { border-color: rgba(255,184,77,.22); background: rgba(255,255,255,.028); transform: translateX(4px); }
.tl li::before { display: none; }
.tl .yr-row { grid-column: 1; grid-row: 1 / span 5; align-items: flex-start; flex-direction: column; margin: .15rem 0 0; }
.tl .yr { color: var(--signal); line-height: 1.5; }
.tl .org, .tl .pos, .tl li > p, .tl-chips { grid-column: 2; }
.tl .org { font-size: 1.15rem; }
.tl .pos { margin-bottom: 1rem; }
.tl li > p { max-width: 82ch; color: #a5afbc; }
.tl-chip { border-radius: 999px; background: rgba(255,255,255,.025); }
#record.enhanced:not(.expanded) .tl li:nth-child(n+4) { display: none; }

/* Stack */
.matrix { gap: 12px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.mgroup { padding: 1.7rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.mgroup:hover { border-color: rgba(112,200,255,.22); background: rgba(112,200,255,.035); }
.mgroup p { color: #9ea9b6; font-size: .78rem; line-height: 1.9; }

/* Field notes */
#field-notes { background: linear-gradient(180deg, rgba(112,200,255,.025), transparent 75%); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 1.8rem;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 48%), var(--surface);
  text-decoration: none;
  transition: transform .35s var(--ease-out), border-color .25s ease, background .25s ease;
}
.note-card:hover { border-color: rgba(112,200,255,.27); background: linear-gradient(145deg, rgba(112,200,255,.065), transparent 50%), #10151d; transform: translateY(-6px); }
.note-num { color: #75808f; font: 600 .62rem/1 var(--mono); letter-spacing: .15em; }
.note-topic { display: block; margin-bottom: .8rem; color: var(--signal); font: 600 .62rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.note-card h3 { max-width: 14ch; color: var(--ink); font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.note-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: #a5afbb; font: 600 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.note-link b { color: var(--signal); font-size: 1rem; transition: transform .2s ease; }
.note-card:hover .note-link b { transform: translate(3px,-3px); }
.note-schematic { position: relative; height: 125px; margin: .8rem 0 1.4rem; }
.note-schematic::before, .note-schematic::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(112,200,255,.4), transparent); }
.note-schematic::after { left: 50%; top: 12%; right: auto; bottom: 12%; width: 1px; height: auto; }
.note-schematic i { position: absolute; width: 12px; height: 12px; border: 1px solid rgba(112,200,255,.4); border-radius: 50%; background: #111722; box-shadow: 0 0 14px rgba(112,200,255,.1); }
.note-schematic i:nth-child(1) { left: 7%; top: calc(50% - 6px); }.note-schematic i:nth-child(2) { right: 7%; top: calc(50% - 6px); }.note-schematic i:nth-child(3) { left: calc(50% - 6px); top: 8%; }.note-schematic i:nth-child(4) { left: calc(50% - 6px); bottom: 8%; border-color: rgba(255,184,77,.5); }
.note-schematic.gate::after { width: 38px; height: 62px; left: calc(50% - 19px); top: calc(50% - 31px); bottom: auto; border: 1px solid rgba(168,155,255,.38); border-radius: 8px; background: rgba(168,155,255,.06); }
.note-schematic.sovereign::before { left: calc(50% - 52px); right: auto; top: calc(50% - 52px); width: 104px; height: 104px; border: 1px dashed rgba(112,200,255,.3); border-radius: 50%; background: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .case-feature .cloud-map path {
    stroke-dasharray: 12 10;
    stroke-dashoffset: 160;
    transition: stroke-dashoffset 1.35s .18s var(--ease-out);
  }
  .motion-ready .case-feature .cloud-map circle {
    opacity: .2;
    transform: scale(.86);
    transform-origin: center;
    transition: opacity .8s .15s ease, transform 1.1s .15s var(--ease-out);
  }
  .motion-ready .case-feature .map-node,
  .motion-ready .case-feature .map-core {
    opacity: 0;
    transform: scale(.75);
    transition: opacity .45s var(--ease-out), transform .65s var(--ease-out);
  }
  .motion-ready .case-feature .map-core { transform: translate(-50%, -50%) scale(.72); transition-delay: .15s; }
  .case-feature .map-node:nth-of-type(2) { transition-delay: .25s; }
  .case-feature .map-node:nth-of-type(3) { transition-delay: .32s; }
  .case-feature .map-node:nth-of-type(4) { transition-delay: .39s; }
  .case-feature .map-node:nth-of-type(5) { transition-delay: .46s; }
  .case-feature .map-node:nth-of-type(6) { transition-delay: .53s; }
  .case-feature .map-node:nth-of-type(7) { transition-delay: .6s; }
  .case-feature.is-in-view .cloud-map path { stroke-dashoffset: 0; }
  .case-feature.is-in-view .cloud-map circle { opacity: 1; transform: scale(1); }
  .case-feature.is-in-view .map-node { opacity: 1; transform: scale(1); }
  .case-feature.is-in-view .map-core { opacity: 1; transform: translate(-50%, -50%) scale(1); }

  .motion-ready .case-airgap .shield-ring { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  .case-airgap.is-in-view .shield-ring { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .65s .2s ease, transform .85s .2s var(--ease-out); }
  .motion-ready .case-mcp .protocol-strip span { opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .5s var(--ease-out); }
  .case-mcp.is-in-view .protocol-strip span { opacity: 1; transform: none; }
  .case-mcp.is-in-view .protocol-strip span:nth-of-type(2) { transition-delay: .12s; }
  .case-mcp.is-in-view .protocol-strip span:nth-of-type(3) { transition-delay: .24s; }
  .case-mcp.is-in-view .protocol-strip span:nth-of-type(4) { transition-delay: .36s; }
  .motion-ready .note-card .note-schematic { opacity: .35; transform: scale(.9); transition: opacity .65s ease, transform .8s var(--ease-out); }
  .note-card.is-in-view .note-schematic { opacity: 1; transform: scale(1); }
}

/* FAQ */
.faq { border-top-color: var(--line); }
.faq details { border-bottom-color: var(--line); }
.faq details[open] { background: rgba(255,255,255,.018); }
.faq summary { padding: 1.65rem 4rem 1.65rem 1.2rem; border-radius: 12px; font-size: 1.03rem; }
.faq summary:hover { color: #ffc467; }
.faq summary::after { right: 1.2rem; }
.faq .a { padding-left: 1.2rem; }
.faq .a p { color: #a8b2be; }

/* Contact */
#contact {
  padding-bottom: clamp(6rem, 10vw, 10rem);
  background:
    radial-gradient(circle at 13% 30%, rgba(255,184,77,.08), transparent 25rem),
    radial-gradient(circle at 86% 72%, rgba(112,200,255,.055), transparent 28rem);
}
.contact-grid { gap: clamp(3rem, 8vw, 8rem); }
#contact h2 { max-width: 8ch; }
.links a { color: #aeb8c4; }
form {
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.05), transparent 45%), #0d1118;
  box-shadow: 0 32px 80px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
}
input, textarea, select { min-height: 48px; border-color: rgba(255,255,255,.12); border-radius: 11px; background-color: rgba(5,7,10,.76); }
textarea { min-height: 145px; }

footer { padding: 2.1rem 0; border-top-color: var(--line); background: #050609; }

/* Tablet and mobile */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: 3rem; }
  .name { font-size: clamp(4rem, 7.5vw, 6.2rem); }
  .hero-visual { min-height: 540px; }
  .hero-visual .portrait, .hero-visual .portrait img { width: 220px; }
  .hero-visual .portrait img { height: 300px; }
  .orbit-one { width: 320px; }.orbit-two { width: 380px; }
  .case-layout { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .case-card { grid-column: span 6; }
  .case-feature { grid-column: 1 / -1; }
  .case-voice { grid-column: 1 / -1; min-height: 430px; }
  .cap:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 920px) {
  .hero { padding-top: 2.4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .name { max-width: 9.5ch; font-size: clamp(4.2rem, 12vw, 7rem); }
  .hero-visual { width: min(100%, 660px); min-height: 590px; justify-self: center; }
  .hero-visual .portrait, .hero-visual .portrait img { width: 248px; }
  .hero-visual .portrait img { height: 326px; }
  .orbit-one { width: 360px; }.orbit-two { width: 435px; }
  .section-intro.split-intro { grid-template-columns: 1fr; gap: 1rem; }
  .section-intro.split-intro h2 { max-width: 12ch; }
  .section-intro.split-intro .lede { max-width: 60ch; }
  .readout { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cell:nth-child(n) { grid-column: span 1; }
  .cell:nth-child(1), .cell:nth-child(4), .cell:nth-child(5), .cell:nth-child(9) { grid-column: span 2; }
  .case-layout { grid-template-columns: 1fr; }
  .cloud-map { min-height: 320px; }
  .case-feature { min-height: auto; }
  .case-metric { margin-top: 2rem; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 360px; }
  .tl li { grid-template-columns: 1fr; }
  .tl .yr-row { grid-column: 1; grid-row: auto; margin-bottom: .8rem; }
  .tl .org, .tl .pos, .tl li > p, .tl-chips { grid-column: 1; }
}

@media (max-width: 700px) {
  :root { --gutter: 1.15rem; }
  header { padding: 8px 0; }
  .nav { width: calc(100% - 16px); height: 54px; padding-inline: .7rem !important; }
  header.is-scrolled .nav { height: 50px; }
  .nav-actions > .btn { min-height: 38px; padding: .45rem .72rem !important; font-size: .61rem !important; }
  .hero { min-height: 0; padding-top: 2.8rem; }
  .hero::before { background-size: 48px 48px; }
  .hero-aurora { width: 100vw; right: -45%; }
  .hero-status { align-items: flex-start; margin-bottom: 3.2rem; }
  .hero-location { padding-top: .55rem; font-size: .56rem; }
  .availability-badge { max-width: 70%; font-size: .56rem; }
  .hero-overline { align-items: flex-start; font-size: .6rem; }
  .name { max-width: none; font-size: clamp(3.45rem, 17vw, 5rem); line-height: .89; }
  .name span { white-space: normal; }
  .pitch { font-size: 1rem; line-height: 1.65; }
  .cta-row { grid-template-columns: 1fr; }
  .hero-trust { gap: .4rem .65rem; }
  .hero-trust span + span::before { margin-right: .35rem; }
  .hero-visual { min-height: 515px; border-radius: 22px; }
  .portrait-stage { min-height: 372px; }
  .hero-visual .portrait, .hero-visual .portrait img { width: 205px; }
  .hero-visual .portrait img { height: 278px; }
  .orbit-one { width: 286px; height: 210px; }
  .orbit-two { width: 340px; height: 275px; }
  .orbit-label { font-size: .48rem; padding: .38rem .48rem; }
  .orbit-label-a { left: 3%; }.orbit-label-b { right: 2%; }.orbit-label-c { left: 2%; }.orbit-label-d { right: 2%; }
  .visual-proof div { padding: .9rem .7rem; }
  .visual-proof strong { font-size: 1rem; }
  .visual-proof span { font-size: .48rem; }
  .capability-marquee { margin-top: 4rem; }
  section { padding: 5.3rem 0; }
  h2 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .readout { grid-template-columns: 1fr; }
  .cell:nth-child(n) { grid-column: span 1; min-height: 215px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card, .case-feature, .case-voice { grid-column: 1; min-height: auto; }
  .case-card { padding: 1.35rem; padding-bottom: 5rem; }
  .case-feature { padding-bottom: 1.5rem; }
  .case-feature h3 { font-size: 2.7rem; }
  .case-facts div { grid-template-columns: 1fr; gap: .2rem; }
  .cloud-map { min-height: 280px; }
  .map-node { width: 48px; font-size: .49rem; }
  .map-core { width: 95px; height: 95px; }
  .case-metric { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .case-foot { left: 1.35rem; right: 1.35rem; }
  .caps { grid-template-columns: 1fr; }
  .cap:nth-child(n) { grid-column: 1; min-height: 0; }
  .half { border-radius: 18px; }
  .decision-box { border-radius: 20px; }
  .studio-box { border-radius: 20px; }
  .note-card { padding: 1.45rem; }
  .tl li { padding: 1.35rem; border-radius: 15px; }
  form { border-radius: 20px; }
}

@media (max-width: 520px) {
  .nav-actions > .btn { display: none; }
}

@media (max-width: 420px) {
  .hero-status { flex-direction: column; gap: .5rem; }
  .availability-badge { max-width: 100%; }
  .hero-location { padding: 0 .35rem; }
  .name { font-size: 3.42rem; }
  .hero-visual { min-height: 490px; }
  .portrait-stage { min-height: 350px; }
  .hero-visual .portrait, .hero-visual .portrait img { width: 184px; }
  .hero-visual .portrait img { height: 258px; }
  .orbit-one { width: 250px; }.orbit-two { width: 300px; }
  .visual-proof span { letter-spacing: .02em; }
  .protocol-strip { gap: .2rem; }
  .protocol-strip span { padding: .55rem .36rem; font-size: .48rem; }
  .protocol-strip i { font-size: .38rem; }
}

@media (max-width: 350px) {
  .nav-actions > .btn { display: none !important; }
  .hero-overline { gap: .6rem; }
  .name { font-size: 3.2rem; }
}

@media (hover: none), (pointer: coarse) {
  .pointer-aura { display: none; }
  .hero-visual { transform: none !important; }
}

/* Progressive enhancement: the original reveal system predates the refresh
   and hides content by default. If the enhancement script cannot run, every
   section remains readable instead of leaving a blank page. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-ready) .reveal,
  html:not(.motion-ready) .reveal-stagger,
  html:not(.motion-ready) .tl li.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 760px) {
  #ambient-canvas { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .availability-badge .dot,
  .architecture-path::before,
  .hero-copy > *,
  .hero-visual,
  .hero-visual::after,
  .orbit-label,
  .marquee-track { animation: none !important; }
  .marquee-track { transform: none !important; }
  .capability-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .pointer-aura { display: none; }
}
