/* ============================================================
   sAiyd.ai — site.css
   Dark-first art direction. Tokens on :root, one shared stylesheet
   across all six pages. Mobile-first, no horizontal scroll at any width.
   ============================================================ */

:root {
  /* palette */
  --bg:            #05060b;
  --bg-2:          #0a0c16;
  --surface:       rgba(255,255,255,.035);
  --surface-2:     rgba(255,255,255,.055);
  --line:          rgba(255,255,255,.09);
  --line-strong:   rgba(255,255,255,.16);

  --ink:           #f2f4f9;
  --ink-2:         #b3bacb;
  --ink-3:         #7d8598;

  --accent:        #6bedfa;
  --accent-2:      #8c73ff;
  --accent-3:      #ff6fae;
  /* raw channels so the WebGL shader can read the same tokens */
  --rgb-accent:    107, 237, 250;
  --rgb-accent-2:  140, 115, 255;

  --ok:           #55e0a8;

  /* type */
  --sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* rhythm */
  --gut: 20px;
  --max: 1180px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient light behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 12% -8%,  rgba(107,237,250,.13), transparent 62%),
    radial-gradient(760px 560px at 92% 6%,   rgba(140,115,255,.15), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(255,111,174,.08), transparent 62%);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04121a;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------------- typography ---------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2.6vw, 1.42rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.15em; color: var(--ink-2); }
p.lead {
  font-size: clamp(1.02rem, 2.3vw, 1.28rem);
  color: var(--ink);
  line-height: 1.6;
  max-width: 62ch;
}
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  flex: none;
}

.grad {
  background: linear-gradient(104deg, var(--accent) 4%, #a9c4ff 44%, var(--accent-2) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- header / nav ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5,6,11,.74);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: 124px;
  min-height: 44px;
  line-height: 0;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.6px; background: var(--ink); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-2); }

.nav { display: block; }
.js .nav-toggle { display: inline-flex; }
.js .nav { display: none; }
@media (max-width: 899px) {
  .head-in { flex-wrap: wrap; gap: 0 14px; padding-top: 10px; padding-bottom: 10px; }
  .nav { flex-basis: 100%; width: 100%; }
  .nav.open { margin-top: 10px; }
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav a {
  display: block;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav.open { display: block; border-top: 1px solid var(--line); }

@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .nav { display: block !important; border: 0 !important; }
  .nav ul { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .nav a { padding: 8px 13px; font-size: .9rem; }
  .nav .cta {
    background: var(--ink);
    color: #05060b;
    font-weight: 700;
    margin-left: 8px;
  }
  .nav .cta:hover { background: var(--accent); color: #04121a; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  padding: 58px 0 44px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* fallback that shows when WebGL is unavailable */
  background:
    radial-gradient(52% 46% at 62% 44%, rgba(140,115,255,.30), transparent 70%),
    radial-gradient(40% 38% at 36% 58%, rgba(107,237,250,.22), transparent 72%);
  -webkit-mask-image: radial-gradient(76% 82% at 70% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(76% 82% at 70% 50%, #000 58%, transparent 100%);
}
/* scrim: keeps the lattice off the headline so the copy stays legible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(96deg,
    var(--bg) 4%,
    rgba(5,6,11,.88) 30%,
    rgba(5,6,11,.42) 50%,
    rgba(5,6,11,0) 68%);
}
@media (max-width: 860px) {
  .hero { min-height: min(86vh, 700px); }
  .hero-hint { display: none; }
  .hero::after {
    background: linear-gradient(178deg,
      rgba(5,6,11,.30) 0%,
      rgba(5,6,11,.72) 26%,
      rgba(5,6,11,.90) 52%,
      var(--bg) 88%);
  }
  .hero-canvas {
    -webkit-mask-image: radial-gradient(90% 58% at 50% 34%, #000 45%, transparent 100%);
            mask-image: radial-gradient(90% 58% at 50% 34%, #000 45%, transparent 100%);
  }
}
#lattice { width: 100%; height: 100%; }
#lattice[data-webgl="ready"] { background: transparent; }
.hero-canvas[data-hidden] { display: none; }

.hero > .wrap { position: relative; z-index: 3; }
.hero-in { position: relative; z-index: 3; max-width: 44rem; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: var(--ink-2); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  padding: 6px 11px;
  border-radius: 999px;
}

.hero-hint {
  position: absolute;
  bottom: 18px;
  left: var(--gut);
  z-index: 3;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-hint::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }

/* ---------------- buttons ---------------- */
.btns { display: flex; flex-wrap: wrap; gap: 11px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: .93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-1 {
  background: linear-gradient(100deg, var(--accent), #9fb8ff 58%, var(--accent-2));
  color: #04121a;
}
.btn-2 {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-2:hover { background: var(--surface-2); border-color: var(--accent); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------------- sections ---------------- */
section { position: relative; z-index: 1; }
.band { padding: 64px 0; }
.band-line { border-top: 1px solid var(--line); }
.sec-head { max-width: 58rem; margin-bottom: 36px; }

/* ---------------- 3D tilt cards ---------------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 680px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid > * { min-width: 0; }

.card {
  position: relative;
  background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 220px at var(--mx,50%) var(--my,0%), rgba(107,237,250,.14), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); box-shadow: 0 26px 60px -30px rgba(0,0,0,.9); }
  .card:hover::after { opacity: 1; }
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.card .ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(107,237,250,.2), rgba(140,115,255,.2));
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.tick { list-style: none; margin: 16px 0 0; padding: 0; }
.tick li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: .93rem;
}
.tick li::before {
  content: '';
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(107,237,250,.7);
}

/* ---------------- interactive 3D process orbit ---------------- */
.band-orbit { padding-top: 4px; }
.orbit-stage {
  position: relative;
  height: 330px;
  perspective: 1150px;
  perspective-origin: 50% 46%;
  margin: 8px 0 20px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.orbit-stage:active { cursor: grabbing; }
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate(-50%,-52%) rotateX(-12deg) rotateY(var(--spin, 0deg));
}
.orbit-node {
  position: absolute;
  width: var(--orbit-node-width, 210px);
  margin: var(--orbit-node-offset-y, -78px) 0 0 calc(-1 * var(--orbit-node-half-width, 105px));
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  background: rgba(9,11,20,.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 20px 44px -24px rgba(0,0,0,.95);
}
.orbit-node .st {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .17em;
  color: var(--accent);
  display: block;
  margin-bottom: 7px;
}
.orbit-node h3 { font-size: 1rem; margin-bottom: 6px; letter-spacing: -.005em; }
.orbit-node p { font-size: .8rem; line-height: 1.5; margin: 0; color: var(--ink-3); }
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 116px; height: 116px;
  margin: -58px 0 0 -58px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(107,237,250,.45), rgba(140,115,255,.16) 62%, transparent 74%);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  color: var(--ink);
  text-align: center;
  padding: 10px;
  transform: translateZ(-40px);
}
.orbit-core .orbit-logo {
  width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}
.orbit-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.orbit-controls button {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.orbit-controls button:hover { background: var(--surface-2); border-color: var(--accent); }

/* the same six stages as a crawlable, screen-reader-friendly list */
.orbit-fallback { margin-top: 26px; }
@media (max-width: 700px) {
  .orbit-stage { height: 300px; overflow: hidden; overflow: clip; }
  .orbit-node { padding: 13px 10px; }
  .orbit-node h3 { font-size: .85rem; }
  .orbit-node p { font-size: .72rem; }
  .orbit-node .st { font-size: .6rem; letter-spacing: .1em; }
  .orbit-core { width: 76px; height: 76px; margin: -38px 0 0 -38px; font-size: .48rem; }
  .orbit-controls { justify-content: center; gap: 12px; }
  .orbit-controls span { width: 100%; text-align: center; }
}
@media (min-width: 701px) {
  .orbit-fallback[data-collapsible] { display: none; }
}

/* ---------------- stats ---------------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
}
.stat .v {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 7px;
}
.stat .l {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------------- steps / timeline ---------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  position: relative;
  padding: 0 0 28px 46px;
  counter-increment: s;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
}
.steps > li::after {
  content: '';
  position: absolute;
  left: 15.5px; top: 36px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 7px; }
.steps p { margin-bottom: 0; font-size: .95rem; }

/* ---------------- people ---------------- */
.person {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 760px) { .person { grid-template-columns: 180px 1fr; } }
.avatar {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 32% 28%, rgba(107,237,250,.5), transparent 58%),
    linear-gradient(150deg, rgba(140,115,255,.42), rgba(5,6,11,.9));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
}
.role-tag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 17px 34px 17px 0;
  font-weight: 600;
  font-size: 1.01rem;
  color: var(--ink);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; font-size: .95rem; max-width: 70ch; }

/* ---------------- CTA ---------------- */
.cta-band {
  background: linear-gradient(140deg, rgba(107,237,250,.1), rgba(140,115,255,.13));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 38px 26px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .btns { justify-content: center; margin-top: 8px; }

/* ---------------- form ---------------- */
.form { display: grid; gap: 16px; }
@media (min-width: 680px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .95rem;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(107,237,250,.15);
}
.form-note { font-size: .85rem; color: var(--ink-3); }

/* ---------------- footer ---------------- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 44px 0 34px;
  position: relative;
  z-index: 1;
}
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-grid h4, .foot-grid .foot-heading {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-2); font-size: .92rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-base {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--ink-3);
}

/* ---------------- scroll reveal ---------------- */
.rv { opacity: 1; transform: none; }
.reveal-ready .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal-ready .rv.in { opacity: 1; transform: none; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------------- prose ---------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 9px; }
.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------------- inner-page 3D accent ---------------- */
.page-3d {
  position: absolute;
  top: -70px;
  right: -14%;
  width: 640px;
  height: 540px;
  z-index: 0;
  pointer-events: none;
  opacity: .8;
  -webkit-mask-image: radial-gradient(60% 60% at 52% 46%, #000 30%, transparent 100%);
          mask-image: radial-gradient(60% 60% at 52% 46%, #000 30%, transparent 100%);
}
.page-3d canvas { width: 100%; height: 100%; }
.band-hero { position: relative; overflow: hidden; }
.band-hero > .wrap { position: relative; z-index: 2; }
@media (max-width: 1000px) {
  .page-3d { display: block; width: 420px; max-width: 95vw; height: 320px; top: -30px; right: -18%; opacity: .32; }
}

/* ============================================================
   MOBILE OVERRIDES — kept last so they win the cascade against
   the base component rules declared further up this file.
   ============================================================ */
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 238px 0 40px; }
  .hero-canvas {
    inset: 0 0 auto;
    height: 240px;
    -webkit-mask-image: radial-gradient(70% 72% at 50% 48%, #000 48%, transparent 100%);
            mask-image: radial-gradient(70% 72% at 50% 48%, #000 48%, transparent 100%);
  }
  .hero::after { background: linear-gradient(180deg, transparent 100px, rgba(5,6,11,.15) 190px, var(--bg) 255px); }
  /* a "move your cursor" prompt means nothing on a touch screen */
  .hero-hint { display: none; }
}

@media (max-width: 899px) {
  .nav-toggle { width: 44px; height: 44px; }
  .nav.open { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; }
  .field input, .field select, .field textarea { font-size: 1rem; }
  .field label { font-size: .78rem; }
  .brand { min-height: 44px; }
  .foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-grid li { margin-bottom: 2px; }
}

/* Keep touch highlights light and allow the document to scroll normally. */
@media (hover: none), (pointer: coarse) {
  .card:active { border-color: var(--line-strong); }
  .card:active::after { opacity: 1; }
}

/* anchor targets must clear the sticky header when linked to directly */
:target, section[id], h1, h2, h3 { scroll-margin-top: 84px; }

/* Founder content uses the original palette, type and card geometry. */
.founder-profile { display: grid; gap: 32px; align-items: center; }
.founder-profile > * { min-width: 0; }
.founder-portrait { margin: 0; width: 100%; max-width: 390px; }
.founder-portrait img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
}
.founder-portrait figcaption { margin-top: 14px; color: var(--ink); font-weight: 600; }
.founder-portrait figcaption span { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 400; }
.founder-quote {
  margin: 24px 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent);
  color: var(--ink); font-size: 1.05rem; line-height: 1.7;
}
@media (min-width: 800px) {
  .founder-profile { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; }
}


/* Content additions use the existing type, colour and spacing system. */
.pilot-terms { max-width: 78ch; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.pilot-terms h3 { margin-bottom: 14px; }
.pilot-terms p { font-size: .96rem; }
.foot-legal { flex-basis: 100%; }
.foot-base > a { display: inline-flex; align-items: center; min-height: 44px; }

/* A labelled concept image; keep the complete tablet visible on every screen. */
.office-concept {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.office-concept > img { width: 100%; height: auto; }
.office-concept figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.office-concept figcaption > div { min-width: 0; max-width: 66ch; }
.office-concept figcaption strong { display: block; color: var(--ink); font-size: .88rem; }
.office-concept figcaption p { margin: 5px 0 0; color: var(--ink-2); font-size: .88rem; }
.office-concept figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: none; font-size: .88rem; }
@media (max-width: 640px) {
  .office-concept figcaption { flex-direction: column; gap: 8px; padding: 16px 18px; }
}

/* Accessibility labels retain the established visual hierarchy. */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }

/* Former static inline declarations, externalized for strict CSP. */
.layout-1 { padding-top:52px !important; }
.layout-2 { margin-bottom:18px !important; }
.layout-3 { color:var(--ink-3) !important; }
.layout-4 { margin-bottom:24px !important; }
.layout-5 { margin-bottom:8px !important; }
.layout-6 { font-size:.93rem !important; }
.layout-7 { margin-bottom:8px !important;margin-top:20px !important; }
.layout-8 { margin-top:16px !important; }
.layout-9 { margin-top:14px !important;max-width:34ch !important;font-size:.92rem !important; }
.layout-10 { color:var(--ink-3) !important;font-size:.92rem !important; }
.layout-11 { margin-top:20px !important; }
.layout-12 { margin-top:26px !important; }
.layout-13 { margin-bottom:22px !important; }
.layout-14 { margin-bottom:6px !important; }
.layout-15 { margin-top:24px !important; }
.layout-16 { margin-top:22px !important; }
.layout-17 { max-width:74ch !important; }
.layout-18 { margin-top:30px !important; }
.layout-19 { padding-top:72px !important; }
.layout-20 { margin-top:28px !important; }
.layout-21 { max-width:680px !important; }
