/* site.css
   Layout and components for asknimbus.io. Every rule follows DESIGN.md.
   Colours, fonts and sizes come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, table, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--main); color: var(--ink); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
main { display: block; overflow-x: clip; }

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-pill); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Type scale (DESIGN.md 4.2) ---------- */
h1 { font-size: clamp(2.5rem, 1.1rem + 5.6vw, 4.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { max-width: 68ch; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem); line-height: 1.5; color: var(--text-muted); }
.small { font-size: 0.9375rem; line-height: 1.5; }
.muted { color: var(--text-muted); }
.label {
  font-family: var(--font-label); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.12em; line-height: 1.3; text-transform: uppercase;
}
/* Section label: a small Cantaloupe square, then the label (DESIGN.md 6.9) */
.label--tick { display: flex; align-items: center; gap: var(--space-2); color: var(--text); }
.label--tick::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--orange); }

/* Text links. Blue on solid Midnight Black, white on glass (DESIGN.md 3.3) */
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--main); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 2px; }
.glass .link, .on-glass .link, .link--white { color: var(--white); }

/* ---------- Buttons (DESIGN.md 6.3) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-main { background: var(--orange); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), var(--glow-action); }
.btn-main:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 10px 40px rgba(252, 115, 77, 0.55); }
.btn-std { background: var(--white); color: var(--ink); }
.btn-std:hover { box-shadow: 0 8px 28px rgba(255, 255, 255, 0.22); }
.btn-quiet {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), var(--glass-clear);
  color: var(--white); border-color: var(--edge);
  -webkit-backdrop-filter: blur(var(--blur-glass)) var(--glass-rich); backdrop-filter: blur(var(--blur-glass)) var(--glass-rich);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -10px 14px -10px rgba(2, 7, 10, 0.70);
}
.btn-quiet:hover { border-color: var(--edge-field); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* ---------- Glass (DESIGN.md 6.4) ----------
   Clear glass with lit edges. The glass is see-through, so the glow shows in it.
   Light catches its top edge and its far corner, and a soft shadow sits inside its bottom edge. */
.glass {
  position: relative; isolation: isolate;
  background: var(--sheen), var(--glass-clear);
  -webkit-backdrop-filter: blur(var(--blur-glass)) var(--glass-rich); backdrop-filter: blur(var(--blur-glass)) var(--glass-rich);
  border: 1px solid var(--edge);
  border-radius: var(--radius-panel);
  box-shadow: var(--lit), var(--lift);
}
/* Glass on the bright part of the glow is darker, so its words stay easy to read. */
.section--proof .proof { background: var(--sheen), var(--glass-over-glow); }
/* The panel that holds the Cantaloupe button stays dark, so Cantaloupe never meets the blue. */
.form-panel.glass { background: var(--sheen), var(--glass); }

/* The lit edge: a hairline of light, brightest at the top left and the bottom right.
   It also brightens under the mouse pointer (site.js sets --mx and --my). */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glass::before, .bar::before, .nav::before, .sheet::before, .btn-quiet::before, .rows a::before {
    content: ''; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
    background:
      radial-gradient(220px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
      var(--rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: opacity 0.25s ease;
  }
}
/* A soft highlight inside the glass that follows the mouse pointer. */
.glass::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .glass:hover::after { opacity: 1; } }

/* ---------- Header (DESIGN.md 6.1) ---------- */
.site-header {
  position: fixed; left: 0; right: 0; z-index: 50;
  top: calc(20px + env(safe-area-inset-top, 0px));
}
.bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4);
  min-height: 64px; padding: 7px 7px 7px var(--space-5); margin-inline: calc(var(--space-5) * -1) -7px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  transition: margin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), min-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bar::before { opacity: 0; }
/* Once the page scrolls, the header gathers into one floating glass capsule. */
.site-header.is-scrolled .bar {
  background: var(--sheen), var(--glass-head); border-color: var(--edge);
  -webkit-backdrop-filter: blur(24px) var(--glass-rich); backdrop-filter: blur(24px) var(--glass-rich);
  box-shadow: var(--lit), var(--lift);
}
.site-header.is-scrolled .bar::before { opacity: 1; }
@media (min-width: 1100px) {
  .site-header.is-scrolled .bar { margin-inline: calc((100% - 900px) / 2); min-height: 58px; padding: 5px 5px 5px 22px; }
}
.brand {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.nav {
  position: relative;
  display: flex; gap: 2px; padding: 5px;
  background: var(--sheen), var(--glass-head); border: 1px solid var(--edge); border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(24px) var(--glass-rich); backdrop-filter: blur(24px) var(--glass-rich);
  box-shadow: var(--lit);
  transition: background-color 0.2s ease, border-color 0.2s ease, padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.is-scrolled .nav {
  background: transparent; border-color: transparent; box-shadow: none; padding-block: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.is-scrolled .nav::before { opacity: 0; }
.nav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--text); font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.bar-cta { justify-self: end; }
.menu-btn { display: none; justify-self: end; }
.sheet {
  position: relative; margin-top: var(--space-2); padding: var(--space-3);
  background: var(--sheen), var(--glass-strong); border: 1px solid var(--edge); border-radius: var(--radius-panel);
  -webkit-backdrop-filter: blur(28px) var(--glass-rich); backdrop-filter: blur(28px) var(--glass-rich);
  box-shadow: var(--lit), var(--lift);
  transform-origin: 100% 0;
}
/* The sheet grows out of the Menu pill. */
.sheet:not([hidden]) { animation: sheet-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: scale(0.7, 0.35); } to { opacity: 1; transform: none; } }
.sheet nav a {
  display: flex; align-items: center; min-height: 56px; padding: 0 var(--space-4);
  border-bottom: 1px solid var(--edge);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
}
.sheet nav a[aria-current="page"] { color: var(--main); }
.sheet .btn { width: 100%; margin-top: var(--space-4); }

@media (max-width: 899px) {
  .site-header { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav, .bar-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .bar {
    grid-template-columns: 1fr auto; min-height: 60px; padding: 5px 5px 5px 20px; margin-inline: -8px;
    background: var(--sheen), var(--glass-head); border-color: var(--edge);
    -webkit-backdrop-filter: blur(24px) var(--glass-rich); backdrop-filter: blur(24px) var(--glass-rich);
    box-shadow: var(--lit), var(--lift);
  }
  .bar::before { opacity: 1; }
  .site-header.is-scrolled .bar { margin-inline: 4px; }
}
@media (min-width: 900px) { .sheet { display: none !important; } }

/* ---------- The glow (DESIGN.md 3.4) ----------
   Twelve upright columns. Each has its own height (--h) and its own slant (--cx).
   The top of each column fades out softly. The sides stay crisp. */
.glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.glow i {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--flute);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 38%);
  transform-origin: 50% 100%;
  animation: glow-rise 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 40ms);
}
.glow i:last-child { border-right: 0; }
.glow b {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--h) * var(--k, 1));
  transform-origin: 50% 100%;
  scale: 1 var(--swell, 1);
  transition: scale 0.25s ease;
  animation: glow-drift 20s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.7s);
  /* Older browsers: a plain fade. */
  background: linear-gradient(to top, var(--glow), transparent);
  /* A lighter core at the foot (white at low opacity), over the glow colour fading upwards. */
  background:
    radial-gradient(280% 55% at var(--cx) 100%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 42%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(280% 100% at var(--cx) 100%,
      var(--glow) 0%,
      color-mix(in srgb, var(--glow) 92%, transparent) 30%,
      color-mix(in srgb, var(--glow) 56%, transparent) 60%,
      color-mix(in srgb, var(--glow) 16%, transparent) 84%,
      transparent 100%);
}
@keyframes glow-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes glow-drift { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.14); } }

/* Valley: tall at the sides, low in the middle, so the words sit on near-black. */
.glow i:nth-child(1)  { --i: 0;  --h: 84%; --cx: -40%; }
.glow i:nth-child(2)  { --i: 1;  --h: 62%; --cx: 130%; }
.glow i:nth-child(3)  { --i: 2;  --h: 44%; --cx: 20%; }
.glow i:nth-child(4)  { --i: 3;  --h: 27%; --cx: -60%; }
.glow i:nth-child(5)  { --i: 4;  --h: 33%; --cx: 140%; }
.glow i:nth-child(6)  { --i: 5;  --h: 17%; --cx: 50%; }
.glow i:nth-child(7)  { --i: 6;  --h: 21%; --cx: -30%; }
.glow i:nth-child(8)  { --i: 7;  --h: 16%; --cx: 120%; }
.glow i:nth-child(9)  { --i: 8;  --h: 30%; --cx: -50%; }
.glow i:nth-child(10) { --i: 9;  --h: 42%; --cx: 150%; }
.glow i:nth-child(11) { --i: 10; --h: 60%; --cx: 30%; }
.glow i:nth-child(12) { --i: 11; --h: 80%; --cx: 110%; }

@media (max-width: 899px) {
  .glow { grid-template-columns: repeat(8, 1fr); }
  .glow i:nth-child(n+9) { display: none; }
  .glow i:nth-child(8) { border-right: 0; }
  .glow i:nth-child(1) { --h: 44%; } .glow i:nth-child(2) { --h: 32%; }
  .glow i:nth-child(3) { --h: 24%; } .glow i:nth-child(4) { --h: 18%; }
  .glow i:nth-child(5) { --h: 20%; } .glow i:nth-child(6) { --h: 26%; }
  .glow i:nth-child(7) { --h: 34%; } .glow i:nth-child(8) { --h: 46%; }
}
@media (max-width: 599px) {
  .glow { grid-template-columns: repeat(6, 1fr); }
  .glow i:nth-child(n+7) { display: none; }
  .glow i:nth-child(6) { border-right: 0; }
  .glow i:nth-child(1) { --h: 34%; } .glow i:nth-child(2) { --h: 26%; }
  .glow i:nth-child(3) { --h: 20%; } .glow i:nth-child(4) { --h: 18%; }
  .glow i:nth-child(5) { --h: 24%; } .glow i:nth-child(6) { --h: 32%; }
}

/* ---------- Opening screen and closing band (DESIGN.md 5.4) ---------- */
.opening, .closing {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px; border: 1px solid var(--edge); border-radius: var(--radius-frame);
  background: var(--ink);
}
.opening .inner, .closing .inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.opening .inner { padding-block: 176px 84px; gap: var(--space-6); }
.opening--page .inner { padding-block: 184px 200px; }
.opening--page .glow, .closing .glow { --k: 0.55; }
.opening .lead { max-width: 46rem; text-wrap: balance; }
.opening--page h1 { max-width: 62rem; }
.closing { margin-top: var(--space-8); }
.closing .inner { padding-block: var(--space-9) 208px; gap: var(--space-5); }
.closing .lead { max-width: 40rem; text-wrap: balance; }
.closing .actions, .closing .btn { margin-top: var(--space-3); }
.closing--steps .inner { padding-bottom: 248px; }
.steps--plain { margin-block: 0 var(--space-6); }
.opening--contact .glow { --k: 0.5; }

@media (max-width: 899px) {
  .opening { margin: 0; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; }
  .opening .inner { padding-block: 132px 96px; gap: var(--space-5); }
  .opening--page .inner { padding-block: 132px 168px; }
  .closing { margin: var(--space-7) 0 0; border-left: 0; border-right: 0; border-radius: 0; }
  .closing .inner { padding-block: var(--space-8) 176px; }
}

/* ---------- The layer stack (DESIGN.md 6.7) ----------
   Four glass plates: Business, Data, Applications and Technology, with Security running through them.
   On the Home page the stage stays pinned while the page scrolls, and site.js plays the scene:
   --intro moves the stack to the middle, --open parts the plates, --sec draws Security. */
.scene { position: relative; height: 300vh; --intro: 0; --open: 0; --sec: 0; --k: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--edge); }
.stage .glow { --k: 0.5; opacity: calc(1 - var(--open) * 0.5); }
.pool {
  position: absolute; left: 50%; top: 50%; width: 110vmin; height: 60vmin; margin: -14vmin 0 0 -55vmin;
  transform: translate(var(--sx1), var(--sy1)); pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 151, 222, 0.6), rgba(2, 151, 222, 0));
  opacity: calc(var(--open) * 0.75);
}
.scene-hero {
  position: absolute; z-index: 4; left: 50%; top: clamp(104px, 15vh, 150px);
  width: min(62rem, 100% - 2 * var(--gutter));
  display: grid; gap: clamp(16px, 2.8vh, 26px); justify-items: center; text-align: center;
  opacity: calc(1 - var(--intro) * 1.9); transform: translate(-50%, calc(var(--intro) * -80px));
}
.scene-hero.is-past { visibility: hidden; }
.scene-hero h1 { font-size: clamp(2.5rem, min(1rem + 5.7vw, 11.5vh), 5.25rem); line-height: 1; letter-spacing: -0.04em; }
.scene-hero .lead { max-width: 44rem; }
/* Opening extras: the proof line under the heading, the note under the buttons, and the two doors. */
.hero-proof { font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin-top: -6px; }
.hero-note { font-size: 0.9375rem; }
.doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--space-6); font-size: 0.9375rem; }
.doors--after { color: var(--text-muted); }
.doors a { color: var(--white); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doors a:hover { text-decoration-thickness: 2px; }
.doors--after { display: none; justify-content: flex-start; margin-top: var(--space-5); }
.doors--after li { padding-block: 6px; }
.doors--after a { display: inline-block; padding-block: 6px; }
/* The line that names what the stack stands for. It arrives as the plates part. */
.stack-line {
  position: absolute; z-index: 4; left: 50%; top: clamp(96px, 13vh, 128px); transform: translateX(-50%);
  width: min(36rem, 100% - 2 * var(--gutter)); text-align: center; text-wrap: balance;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; pointer-events: none;
  opacity: calc(var(--open) * 1.5 - 0.5);
}

.rig {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3;
  --s: min(300px, 31vh);
  --gap: calc(var(--s) * (0.05 + 0.33 * var(--open)));
  --sx0: 0vw; --sy0: calc(50vh - 104px); --sc0: 0.34; --sx1: 0vw; --sy1: 1vh; --sc1: 1;
  --sx: calc(var(--sx0) + (var(--sx1) - var(--sx0)) * var(--intro));
  --sy: calc(var(--sy0) + (var(--sy1) - var(--sy0)) * var(--intro));
  --sc: calc(var(--sc0) + (var(--sc1) - var(--sc0)) * var(--intro));
  transform: translate(var(--sx), var(--sy)) scale(var(--sc));
}
.stage { --sx1: 0vw; --sy1: 1vh; }
.plates {
  position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s);
  transform: rotateX(60deg) rotateZ(-45deg); transform-style: preserve-3d;
}
.plate {
  position: absolute; inset: 0; border-radius: 15%; transform-style: preserve-3d;
  transform: translateZ(calc((var(--n) - 1.5) * var(--gap) + var(--a, 0) * var(--s) * 0.07));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 46%, rgba(2, 151, 222, 0.18));
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 44px rgba(2, 151, 222, 0.22);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: plate-drop 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--n) * 120ms + 200ms);
}
@keyframes plate-drop { from { translate: 0 0 115vh; } }
.plate::before, .plate::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.plate::before { transform: translateZ(-6px); background: rgba(2, 151, 222, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); }
.plate::after { transform: translateZ(-12px); background: rgba(2, 7, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
.plate[data-state="done"] { background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 55%), rgba(2, 151, 222, 0.42); }
.plate[data-state="on"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%), var(--main);
  border-color: var(--white); box-shadow: 0 0 90px 12px rgba(2, 151, 222, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
/* Security: a node on each plate, a ring round each plate, and a beam of light through all four. */
.plate i {
  position: absolute; left: 50%; top: 50%; width: 12%; height: 12%; margin: -6% 0 0 -6%; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, calc(var(--sec) * 0.95));
  box-shadow: 0 0 calc(var(--sec) * 18px) rgba(255, 255, 255, 0.9);
}
.plate u { position: absolute; inset: -9%; border-radius: 17%; opacity: var(--sec); border: 1.5px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 18px rgba(255, 255, 255, 0.45); }
.beam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc((var(--j) - 2) * var(--gap))) rotateX(90deg); }
.beam b { position: absolute; left: -3px; top: calc(var(--gap) / -2); width: 6px; height: var(--gap); transform: scaleY(var(--b, 0)); transform-origin: 50% 100%; background: var(--white); box-shadow: 0 0 16px 2px rgba(255, 255, 255, 0.85); }
.beam b + b { transform: rotateY(90deg) scaleY(var(--b, 0)); }

/* The words for each layer, set beside its plate. */
.layers li {
  position: absolute; white-space: nowrap; left: calc(var(--s) * 0.707 + 46px); top: calc((var(--n) - 1.5) * var(--gap) * -0.866);
  transform: translateY(-50%); opacity: 0; transition: opacity 0.35s ease;
}
.layers li::before { content: ''; position: absolute; right: calc(100% + 12px); top: 50%; width: 24px; height: 1px; background: currentColor; opacity: 0.55; }
.layers li[data-state] { opacity: 0.8; }
.layers li[data-state="on"] { opacity: 1; }
.layers strong { display: block; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.layers span { display: block; font-size: 1.0625rem; line-height: 1.4; color: var(--text-muted); }
.layers .sec { left: auto; right: calc(var(--s) * 0.707 + 46px); top: 0; text-align: right; }
.layers .sec::before { right: auto; left: calc(100% + 12px); }

/* One large word behind the stack, changing with the layer in view. Decoration only. */
.ghost { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ghost span {
  position: absolute; left: 50%; bottom: -0.06em; white-space: nowrap; font-weight: 700; letter-spacing: -0.055em; line-height: 0.8; font-size: var(--fs);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.17);
  opacity: 0; transform: translateX(calc(-50% + (0.5 - var(--k)) * 7vw)); transition: opacity 0.4s ease;
}
.ghost span.is-on { opacity: 1; }

/* The scroll cue: a small glass pill under the stack. It fades as soon as the page scrolls.
   Clicking it, or the small stack, glides the page into the scene. */
.cue {
  position: absolute; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 18px;
  border: 1px solid var(--edge); border-radius: var(--radius-pill); color: var(--text); cursor: pointer;
  background: var(--sheen), var(--glass-head);
  -webkit-backdrop-filter: blur(var(--blur-glass)) var(--glass-rich); backdrop-filter: blur(var(--blur-glass)) var(--glass-rich);
  box-shadow: var(--lit);
  opacity: calc(1 - var(--intro) * 5);
}
.cue.is-past { visibility: hidden; }
.cue svg { animation: cue-drift 2.6s ease-in-out infinite; }
@keyframes cue-drift { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
.scene.is-top .plates { cursor: pointer; }
.is-static .cue { display: none; }

/* On short wide screens the opening words need the room, so the stack waits until the page scrolls. */
@media (min-width: 861px) and (max-height: 719px) { .scene:not(.is-static) .rig { opacity: calc(var(--intro) * 2.2); } }
/* Where the opening screen cannot hold the two doors, they move to just below the scene. */
@media (max-width: 860px), (max-height: 719px) {
  .doors--hero { display: none; }
  .doors--after { display: flex; }
}
@media (max-width: 860px) {
  .scene-hero { top: 92px; gap: 14px; }
  .scene-hero .lead { font-size: 1rem; }
  .hero-proof { font-size: 0.9375rem; margin-top: 0; }
  .hero-note { font-size: 0.875rem; }
  .doors--after { flex-direction: column; gap: 0; }
  .stack-line {
    top: auto; bottom: 68px; width: min(22rem, 100% - 2 * var(--gutter)); padding: 12px 16px; font-size: 0.9375rem;
    border: 1px solid var(--edge); border-radius: 18px; background: var(--sheen), var(--glass-head);
    -webkit-backdrop-filter: blur(var(--blur-glass)) var(--glass-rich); backdrop-filter: blur(var(--blur-glass)) var(--glass-rich);
  }
  .scene-hero .actions { flex-direction: column; align-items: center; }
  .rig { --s: min(46vw, 25vh); --sy0: calc(50vh - 128px); --sc0: 0.6; --sy1: -7vh; }
  .stage { --sy1: -7vh; }
  .layers li, .layers .sec { left: 0; right: auto; top: calc(var(--s) * 0.36 + var(--gap) * 1.3 + 54px); transform: translateX(-50%); text-align: center; white-space: normal; width: 84vw; }
  .layers li::before { display: none; }
  .layers li[data-state] { opacity: 0; }
  .layers li[data-state="on"] { opacity: 1; }
  .scene.is-end .layers li[data-state] { opacity: 0; }
  .scene.is-end .layers li.sec[data-state] { opacity: 1; }
  .ghost span { bottom: auto; top: 13vh; font-size: calc(var(--fs) * 1.5); }
}
@media (max-width: 860px) and (max-height: 740px) {
  .rig { --sy0: 58vh; }
  .scene-hero { top: 80px; gap: 12px; }
  .scene-hero h1 { font-size: 2.25rem; }
  .cue { bottom: 6px; }
  .stack-line { bottom: 60px; }
}

/* Still version: used for reduced motion, and where the opening words do not fit the screen.
   Nothing is pinned. The stack is shown open, with every word in place. */
.scene.is-static { height: auto; }
.is-static .stage { position: relative; height: auto; overflow: visible; --rs: min(300px, 46vw); padding-bottom: calc(var(--rs) * 1.55); }
.is-static .scene-hero { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 0 auto; padding-top: 150px; }
.is-static .rig { position: relative; top: auto; margin-top: calc(var(--rs) * 1.5); transform: none; --s: var(--rs); }
.is-static .ghost, .is-static .pool { display: none; }
.is-static .stack-line { position: relative; left: auto; top: auto; bottom: auto; transform: none; opacity: 1; margin: var(--space-7) auto 0; }
.scene.is-static + .section--proof { margin-top: 0; }
@media (max-width: 860px) {
  .is-static .stage { padding-bottom: calc(var(--rs) * 1.2 + 330px); }
  .is-static .layers { position: absolute; left: 0; top: calc(var(--rs) * 1.15); width: 84vw; transform: translateX(-50%); display: grid; gap: 14px; text-align: center; }
  .scene.is-static .layers li[data-state], .scene.is-static.is-end .layers li[data-state] { position: static; opacity: 1; transform: none; width: auto; }
}

/* A small stack on the Services and About opening screens. It parts a little as the page scrolls. */
.mini { position: absolute; z-index: 1; left: 50%; bottom: 112px; width: 0; height: 0; pointer-events: none; --s: 118px; --open: 0; --gap: calc(var(--s) * (0.07 + 0.2 * var(--open))); }
@media (max-width: 899px) { .mini { --s: 92px; bottom: 96px; } }

/* ---------- Sections below the opening ---------- */
.section { position: relative; isolation: isolate; padding-block: clamp(var(--space-8), 9vw, var(--space-10)); }
.section + .section { padding-top: 0; }
.section--proof { z-index: 3; margin-top: -52px; padding-top: 0; }
/* Haze: a faint wash of the glow colour so the glass has something to blur. */
.haze::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 4%; bottom: 4%; width: 62%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.18;
}
.haze--right::before { right: -6%; }
.haze--left::before { left: -6%; }

.section-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); }
.section-head h2 { max-width: 22ch; }
.section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.section-head--row > div { display: grid; gap: var(--space-5); }
@media (max-width: 699px) { .section-head--row { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-6); align-items: start; }
.split-head { grid-column: 1 / span 5; display: grid; gap: var(--space-5); justify-items: start; }
.split-body { grid-column: 7 / span 6; min-width: 0; }
.split--wide .split-head { grid-column: 1 / span 4; }
.split--wide .split-body { grid-column: 5 / span 8; }
.stack { display: grid; gap: var(--space-5); justify-items: start; }
@media (max-width: 899px) {
  .split-head, .split-body, .split--wide .split-head, .split--wide .split-body { grid-column: 1 / -1; }
  .section-head { margin-bottom: var(--space-6); }
}

/* ---------- Proof strip (DESIGN.md 6.10) ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof li { padding: var(--space-5) var(--space-6); border-left: 1px solid var(--edge); font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.proof li:first-child { border-left: 0; }
@media (max-width: 899px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding: var(--space-5); }
  .proof li:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--edge); }
}
@media (max-width: 420px) {
  .proof { grid-template-columns: 1fr; }
  .proof li { border-left: 0; border-top: 1px solid var(--edge); }
  .proof li:first-child { border-top: 0; }
}

/* Five facts: the Home page */
.proof--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof--five li { padding: var(--space-5) 22px; }
@media (max-width: 1099px) {
  .proof--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof--five li { border-left: 0; border-top: 1px solid var(--edge); padding: var(--space-5); }
  .proof--five li:nth-child(-n+2) { border-top: 0; }
  .proof--five li:nth-child(2n) { border-left: 1px solid var(--edge); }
  .proof--five li:nth-child(3) { grid-column: auto; }
  .proof--five li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .proof--five { grid-template-columns: 1fr; }
  .proof--five li:nth-child(2) { border-top: 1px solid var(--edge); }
  .proof--five li:nth-child(2n) { border-left: 0; }
  .proof--five li:last-child { grid-column: auto; }
}

/* ---------- Link rows (DESIGN.md 6.13) ---------- */
.rows { border-bottom: 1px solid var(--edge); }
.rows a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 24px; align-items: center; gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  position: relative;
  border: 1px solid transparent; border-top-color: var(--edge);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
}
.rows a p { color: var(--text-muted); }
.rows a svg { width: 24px; height: 24px; color: var(--text-faint); transition: transform 0.2s ease, color 0.2s ease; }
.rows a::before { opacity: 0; }
.rows a:hover, .rows a:focus-visible {
  background: var(--sheen), var(--glass-clear); border-color: var(--edge); border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(var(--blur-glass)) var(--glass-rich); backdrop-filter: blur(var(--blur-glass)) var(--glass-rich);
  box-shadow: var(--lit);
}
.rows a:hover::before, .rows a:focus-visible::before { opacity: 1; }
.rows a:hover svg, .rows a:focus-visible svg { transform: translate(3px, -3px); color: var(--white); }
@media (max-width: 599px) {
  .rows a { grid-template-columns: minmax(0, 1fr) 24px; row-gap: var(--space-2); padding-inline: 0; }
  .rows a p { grid-column: 1; grid-row: 2; }
  .rows a svg { grid-column: 2; grid-row: 1; }
  .rows a:hover, .rows a:focus-visible { background: transparent; border-color: transparent; border-top-color: var(--edge); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rows a::before { display: none; }
}

/* ---------- Cards (DESIGN.md 6.5 and 6.6) ---------- */
.cards { display: grid; gap: var(--space-5); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-card); }
.card p { color: var(--text-muted); }
.card--roomy { padding: var(--space-6); gap: var(--space-5); justify-items: start; }
/* The focus card keeps its Electric Blue edge. Its lit edge is light at the two corners only. */
.card--focus {
  border-color: rgba(2, 151, 222, 0.60); box-shadow: var(--lit), var(--glow-main);
  --rim: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 66%, rgba(255, 255, 255, 0.34) 100%);
}
/* Photograph of Yash: a round picture with a fine light edge. */
.portrait { display: block; width: 200px; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), var(--glow-main); }
.portrait--small { width: 132px; }
.card > p:not(.lead) { max-width: 40rem; }
.after-table { margin-top: var(--space-5); color: var(--text-muted); max-width: 44rem; }
@media (max-width: 899px) { .portrait { width: 148px; } .portrait--small { width: 112px; } }
@media (max-width: 899px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 699px) { .cards--2 { grid-template-columns: 1fr; } }

/* Plain list rows inside a glass panel */
.listing li { padding: var(--space-5) var(--space-6); border-top: 1px solid var(--edge); color: var(--text-muted); }
.listing li:first-child { border-top: 0; }
.listing strong { color: var(--text); font-weight: 700; }
@media (max-width: 599px) { .listing li { padding: var(--space-5); } }

/* ---------- Services page ---------- */
.services { display: grid; gap: var(--space-5); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-6);
  padding: var(--space-6); scroll-margin-top: 112px;
}
.service > div { display: grid; align-content: start; gap: var(--space-3); min-width: 0; }
.service-main p { color: var(--text-muted); }
.service-fit p:last-child, .bullets li { color: var(--text-muted); }
.bullets { display: grid; gap: var(--space-2); }
.bullets li { position: relative; padding-left: 18px; line-height: 1.45; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1px; background: var(--edge-field); }
@media (max-width: 999px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-main { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .service { grid-template-columns: 1fr; padding: var(--space-5); gap: var(--space-5); }
}

/* ---------- Numbered steps (DESIGN.md 6.11) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); width: 100%; margin-block: var(--space-4); text-align: left; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-4); counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-size: clamp(3.5rem, 2.6rem + 3vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.82;
  color: var(--orange);
}
.steps p { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; padding-top: 4px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; max-width: 30rem; gap: var(--space-5); } }

/* ---------- Table (DESIGN.md 6.12) ---------- */
.roles { width: 100%; border-collapse: collapse; text-align: left; }
.roles th, .roles td { padding: var(--space-5) var(--space-5) var(--space-5) 0; border-top: 1px solid var(--edge); vertical-align: top; }
.roles thead th { padding-block: 0 var(--space-3); border-top: 0; color: var(--text-faint); }
.roles tbody th { font-weight: 700; letter-spacing: -0.01em; }
.roles td { color: var(--text-muted); }
.roles td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.roles tr > :last-child { padding-right: 0; }
.roles tbody tr:last-child > * { border-bottom: 1px solid var(--edge); }
@media (max-width: 699px) {
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; }
  .roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .roles tr { padding-block: var(--space-5); border-top: 1px solid var(--edge); }
  .roles th, .roles td { padding: 0; border: 0 !important; }
  .roles tbody th { margin-block: var(--space-1); font-size: 1.125rem; }
}

/* ---------- Form (DESIGN.md 6.14) ---------- */
.form-panel { width: 100%; max-width: 40rem; padding: var(--space-6); text-align: left; }
.form-panel form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-3); }
.field label { font-size: 0.9375rem; font-weight: 700; line-height: 1.5; }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 var(--space-4);
  background: rgba(2, 7, 10, 0.60); color: var(--white);
  border: 1px solid var(--edge-field); border-radius: var(--radius-field);
  font-family: var(--font-text); font-size: 1.0625rem; font-weight: 500;
}
.field textarea { height: auto; min-height: 148px; padding-block: var(--space-3); line-height: 1.5; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--main); box-shadow: 0 0 0 1px var(--main);
  outline: 2px solid var(--white); outline-offset: 3px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.form-foot p { color: var(--text-muted); }
.form-alt { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--edge); color: var(--text-muted); }
.form-alt a { color: var(--white); font-weight: 700; text-underline-offset: 5px; }
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-card); }
.msg svg { width: 32px; height: 32px; }
.msg div { display: grid; gap: var(--space-2); }
.msg--ok { padding: 0; }
.msg--ok svg { color: var(--white); }
.msg--ok p { color: var(--text-muted); }
/* The failed message sits on solid Midnight Black so Cantaloupe never meets the glow. */
.msg--bad { background: var(--ink); border: 1px solid var(--orange); }
.msg h2 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; text-wrap: wrap; }
.msg--bad svg, .msg--bad h2 { color: var(--orange); }
.msg--bad p { color: var(--text-muted); }
.msg--bad a { color: var(--main); font-weight: 700; text-underline-offset: 5px; }
@media (max-width: 599px) { .form-panel { padding: var(--space-5); } }

/* ---------- Toggle mark (DESIGN.md 6.16) ---------- */
.toggle-card { display: inline-flex; padding: 10px; background: var(--cream); border-radius: 16px; }
.toggle {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 5px 0 14px;
  background: var(--ink); color: var(--white); border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.toggle .knob { display: grid; place-items: center; width: 30px; height: 30px; background: var(--white); color: var(--ink); border-radius: 50%; }
.toggle-card--lg { padding: 12px; border-radius: 20px; }
.toggle-card--lg .toggle { height: 52px; gap: 12px; padding: 0 6px 0 18px; font-size: 1.1875rem; }
.toggle-card--lg .knob { width: 40px; height: 40px; }

/* ---------- Footer (DESIGN.md 6.17) ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--space-8); padding-block: var(--space-8) var(--space-6); border-top: 1px solid var(--edge); }
.site-footer::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 10%; right: 10%; bottom: -55%; height: 100%;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.16;
}
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-7); }
.foot-mark { display: grid; gap: var(--space-5); justify-items: start; }
.foot-id { display: flex; align-items: center; gap: var(--space-4); }
.handle { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.handle:hover { text-decoration: underline; text-underline-offset: 5px; }
.signoff { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--edge);
  color: var(--text-faint); font-size: 0.9375rem;
}
@media (max-width: 899px) { .foot-top { grid-template-columns: 1fr; align-items: start; gap: var(--space-6); } }

/* ---------- Text pages: privacy notice and build guide ---------- */
.prose { max-width: 52rem; margin-inline: auto; padding: clamp(24px, 4.5vw, 56px); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); max-width: 68ch; }
.prose p { margin-top: var(--space-4); }
.prose ol { list-style: decimal; margin-top: var(--space-4); padding-left: 1.4em; display: grid; gap: var(--space-3); }
.prose a, .small a { color: var(--text); text-underline-offset: 3px; }
.prose code { font-family: var(--font-label); font-size: 0.875em; color: var(--text); }
.foot-legal { margin-top: var(--space-3); color: var(--text-faint); font-size: 0.875rem; }
.foot-more { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.foot-more a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }

/* ---------- Reduced motion (DESIGN.md 7) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow i, .glow b, .plate, .cue svg, .sheet:not([hidden]) { animation: none; }
  .glow b { transition: none; scale: 1 1; }
  .btn, .rows a, .rows a svg, .bar, .nav, .plate, .layers li, .ghost span { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Where glass cannot blur, or the visitor asks for less transparency (DESIGN.md 6.4) ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn-quiet, .nav, .sheet, .site-header.is-scrolled .bar, .rows a:hover, .rows a:focus-visible { background: rgba(2, 7, 10, 0.92) !important; }
  .site-header.is-scrolled .nav { background: transparent !important; }
  @media (max-width: 899px) { .bar { background: rgba(2, 7, 10, 0.92) !important; } }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn-quiet, .nav, .sheet, .site-header.is-scrolled .bar, .rows a:hover, .rows a:focus-visible {
    background: rgba(2, 7, 10, 0.92) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .site-header.is-scrolled .nav { background: transparent !important; }
  .glass::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) and (max-width: 899px) {
  .bar { background: rgba(2, 7, 10, 0.92) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
