/* =============================================================================
 * site.css — the marketing surface built out of the product's material.
 *
 * os.css is the ported token layer and card vocabulary. This file is the page:
 * chrome, the instrument rail, the compositions, and the one inversion.
 * ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

/* ---------- focus: one visible ring, on everything ---------- */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bright);
  color: var(--bright-ink);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}

/* =============================================================================
 * THE ATMOSPHERE — what the glass has to refract.
 *
 * globals.css's own diagnosis of a washed look names this first: glass with an
 * under-layer too uniform to bend. Two lights and the filament striation, at the
 * strengths the product uses, fixed to the viewport so cards pass through them.
 * ========================================================================== */

/*
 * The layer paints the ground itself rather than sitting over the body's.
 *
 * It has to: the cursor transform on this element makes it a stacking context, and a
 * `mix-blend-mode: screen` child blends against ITS stacking context — which was
 * transparent, so every light was compositing against nothing and arriving at its own
 * raw alpha. Measured as a near-black page with two faint smudges in it. With the
 * ground inside the context, screen does what screen is for.
 */
.sky {
  position: fixed;
  inset: -60px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--canvas);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/*
 * Each light gets a parallax carrier and the light itself carries the drift, because
 * two things cannot write one `transform`: the CSS animation would win and the scroll
 * rate would silently do nothing. The carrier moves with the page; the light breathes
 * inside it.
 */
.sky-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.sky-cool,
.sky-warm,
.sky-deep {
  position: absolute;
  display: block;
  will-change: transform;
}

/* the cool curtain, hung behind the right half where the instrument sits, so the
   glass has a bright field to bend rather than a black one */
.sky-cool {
  top: -22%;
  right: -12%;
  width: 92vw;
  height: 118vh;
  background: radial-gradient(
    ellipse 74% 58% at 58% 38%,
    rgb(var(--cool) / var(--aurora-cool)) 0%,
    rgb(var(--cool) / 0.16) 44%,
    transparent 72%
  );
  filter: blur(52px);
  mix-blend-mode: screen;
  animation: drift-cool 44s ease-in-out infinite alternate;
}

.sky-warm {
  bottom: -34%;
  left: -20%;
  width: 96vw;
  height: 108vh;
  background: radial-gradient(
    ellipse 62% 50% at 42% 58%,
    rgb(var(--warm) / var(--aurora-warm)) 0%,
    rgb(var(--warm) / 0.12) 38%,
    transparent 68%
  );
  filter: blur(58px);
  mix-blend-mode: screen;
  animation: drift-warm 58s ease-in-out infinite alternate;
}

/* the third source: a low, wide horizon the two curtains hang off, which is what
   stops the pair reading as two blobs in opposite corners */
.sky-deep {
  top: 18%;
  left: -10%;
  width: 120vw;
  height: 70vh;
  background: radial-gradient(
    ellipse 70% 34% at 50% 50%,
    rgb(var(--cool) / var(--aurora-deep)) 0%,
    rgb(var(--warm) / 0.12) 52%,
    transparent 78%
  );
  filter: blur(74px);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: drift-deep 72s ease-in-out infinite alternate;
}

/* the filaments — turbulence with its vertical frequency far below its horizontal,
   so it striates without a period and therefore without drawn edges */
.sky-streak {
  position: absolute;
  inset: -10%;
  opacity: 0.3;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'900'%20height%3D'900'%20viewBox%3D'0%200%20900%20900'%3E%3Cfilter%20id%3D's'%20x%3D'-20%25'%20y%3D'-20%25'%20width%3D'140%25'%20height%3D'140%25'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.75%200.009'%20numOctaves%3D'3'%20seed%3D'11'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'matrix'%20values%3D'0%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%201.15%200%200%200%20-0.66'%2F%3E%3CfeGaussianBlur%20stdDeviation%3D'2.2'%2F%3E%3C%2Ffilter%3E%3Cg%20transform%3D'rotate(-7%20450%20450)'%3E%3Crect%20x%3D'-260'%20y%3D'-260'%20width%3D'1420'%20height%3D'1420'%20filter%3D'url(%23s)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 900px 900px;
}

.sky-grain {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'160'%3E%3Cfilter%20id%3D'n'%20x%3D'0'%20y%3D'0'%20width%3D'100%25'%20height%3D'100%25'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.75'%20numOctaves%3D'3'%20seed%3D'5'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'matrix'%20values%3D'0%200%200%200%200.5%20%200%200%200%200%200.5%20%200%200%200%200%200.5%20%200.34%200.33%200.33%200%200'%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D'linear'%20slope%3D'0.16'%20intercept%3D'-0.056'%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D'160'%20height%3D'160'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E");
}

@keyframes drift-cool {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.1);
  }
}
@keyframes drift-warm {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(-6%, -3%, 0) scale(1);
  }
}
@keyframes drift-deep {
  from {
    transform: translate3d(-3%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 2%, 0) scale(1.12);
  }
}

/* =============================================================================
 * CHROME — the top bar. Glass, because glass is a chrome material.
 * ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 62px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 clamp(16px, 3vw, 34px);
  background: var(--chrome-glass);
  -webkit-backdrop-filter: var(--chrome-filter);
  backdrop-filter: var(--chrome-filter);
  border-bottom: 1px solid var(--chrome-glass-line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.wordmark-disc {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

/*
 * The two discs overlap, and what happens where they meet depends on the ground: on
 * the ink ground they are two lights and screen is right; on paper they are two inks
 * and screen would bleach them to white. Multiply is the same gesture, inverted.
 */
.disc-pair {
  mix-blend-mode: screen;
}
[data-ground='paper'] .disc-pair {
  mix-blend-mode: multiply;
}

.wordmark-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark-text b {
  font-weight: 700;
  color: var(--bright);
}

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/*
 * `:not(.btn)` is load-bearing, not tidiness. Without it this rule outranks
 * `.btn-bright` on specificity and repaints the header's primary action in --ink:
 * measured on the rendered composite at 2.24:1, near-white on the orange.
 */
.topnav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.topnav a:not(.btn):hover {
  background: rgb(255 255 255 / 0.07);
}

/* the page you are on, marked on both grounds rather than with a light-only wash */
.topnav a[aria-current='page'] {
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-bright {
  background: var(--bright);
  color: var(--bright-ink);
}
.btn-bright:hover {
  background: var(--bright-hover);
}

.btn-quiet {
  background: transparent;
  border-color: var(--edge);
  color: var(--ink);
}
.btn-quiet:hover {
  border-color: var(--ink);
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15.5px;
}

/*
 * THE MENU BUTTON.
 *
 * The top nav carries pages now — the day, the work, the tour — so it cannot be the
 * thing that disappears at 700px. Hidden above that width, where the links themselves
 * fit; below it, it opens them as a sheet under the bar.
 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-bars {
  display: block;
  width: 17px;
}

.nav-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-bars i + i {
  margin-top: 5px;
}

/* the rail's ticks are links on the pages with no bench under them */
a.rail-tick {
  text-decoration: none;
}

/* =============================================================================
 * THE SIGNATURE — THE INSTRUMENT RAIL.
 *
 * The product's own module rail, on the marketing page. It is not decoration and it
 * is not a scroll dot: each tick is a real module of the operating system, in the
 * locked artwork, and the one lit is the module the section you are reading is about.
 * Colour appears only at the active tick — a mark's colour is which product you are
 * looking at, and everywhere else that would be decoration.
 * ========================================================================== */

.rail {
  position: fixed;
  left: 0;
  top: 62px;
  bottom: 0;
  width: 74px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

/* the hairline the ticks hang on */
.rail::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 6%;
  bottom: 6%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--line-2) 12%,
    var(--line-2) 88%,
    transparent
  );
}

.rail-tick {
  position: relative;
  pointer-events: auto;
  width: 74px;
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--micro);
}

/* the tick itself: a 15px hairline stub until this section is the one being read */
.rail-tick .stub {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--edge);
  transition: width 0.28s ease, background 0.28s ease;
}

.rail-tick .mark {
  position: absolute;
  left: 21px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.rail-tick .mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* the name, revealed on hover/focus — the rail explains itself when asked */
.rail-tick .rail-name {
  position: absolute;
  left: 58px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--micro);
  background: var(--chrome-glass);
  -webkit-backdrop-filter: var(--chrome-filter);
  backdrop-filter: var(--chrome-filter);
  border: 1px solid var(--chrome-glass-line);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.rail-tick:hover .rail-name,
.rail-tick:focus-visible .rail-name {
  opacity: 1;
  transform: translateX(0);
}

.rail-tick:hover .stub {
  width: 24px;
  background: var(--ink);
}

.rail-tick[aria-current='true'] .stub {
  width: 0;
}
.rail-tick[aria-current='true'] .mark {
  opacity: 1;
  transform: scale(1);
}

/* the edge marker — the rail's one bright thing, and only ever one */
.rail-tick[aria-current='true']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--bright);
}

/* =============================================================================
 * PAGE SHELL
 * ========================================================================== */

:root {
  --rail-w: 74px;
}

.shell {
  position: relative;
  z-index: 1;
  padding-left: var(--rail-w);
}

.wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.4vw, 48px);
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* the eyebrow: a mono utility label, the instrument register */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--micro);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--bright);
  flex: 0 0 auto;
}

h1,
.h1 {
  font-family: var(--display);
  font-size: var(--t-mega);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2,
.h2 {
  font-family: var(--display);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h3,
.h3 {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}

.body {
  color: var(--ink);
  max-width: 62ch;
}

/*
 * Secondary body copy. On open ground it takes `--on-ground`; inside a card, where the
 * card is between it and the light, it takes the card's own `--muted`. The card sets
 * the override rather than the page setting an exception per section.
 */
.quiet {
  color: var(--on-ground);
}
.card .quiet,
.floor .quiet,
.tier .quiet {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 780px;
  margin-bottom: clamp(36px, 4.4vw, 60px);
}

/* =============================================================================
 * HERO — the cockpit, bleeding off the right edge, because the shell continues.
 * ========================================================================== */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(60px, 7vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 560px;
}

.hero h1 .accent-line {
  color: var(--bright);
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-note {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--micro);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgb(76 187 128 / 0.15);
}

/* the cockpit itself: a real deck, bled to the right so it reads as continuing */
.cockpit {
  position: relative;
  margin-right: calc(clamp(18px, 3.4vw, 48px) * -1 - 6vw);
  min-width: 0;
}

.cockpit-frame {
  border-radius: var(--radius-card);
  border: 1px solid var(--line-2);
  background: rgb(8 11 21 / 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--elev-3);
  overflow: hidden;
}

/* the shell's own chrome, quoted: a bar with the org on it */
.cockpit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-glass);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--micro);
}

.cockpit-bar > span:not(.lights):not(.bar-marks) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-bar .lights {
  display: flex;
  gap: 5px;
  margin-right: 4px;
  flex: 0 0 auto;
}
.cockpit-bar .lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}

.cockpit-bar .bar-marks {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 10px;
}
.cockpit-bar .bar-marks svg {
  width: 17px;
  height: 17px;
  display: block;
  opacity: 0.9;
}

.deck {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
}

.deck > * {
  grid-column: span 2;
}
.deck > .span-3 {
  grid-column: span 3;
}
.deck > .span-4 {
  grid-column: span 4;
}
.deck > .span-6 {
  grid-column: span 6;
}

/* =============================================================================
 * THE SEAM — one person, every module.
 * ========================================================================== */

.seam {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.seam-person {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.claim-what {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.claim-mod,
.claim-line {
  display: block;
}

.seam-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--anchor-ink);
  background: linear-gradient(150deg, #4a5a9a, #2b3357);
  border: 1px solid rgb(255 255 255 / 0.18);
}

.seam-claims {
  display: grid;
  gap: var(--space-2);
  align-content: center;
}

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

.claim-svg {
  display: block;
  width: 26px;
  height: 26px;
}
.claim-svg svg {
  width: 26px;
  height: 26px;
  display: block;
}

.claim {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: 11px var(--space-4);
  border-radius: var(--radius-floor);
  background: var(--floor);
  border: 1px solid var(--floor-line);
  border-top-color: var(--floor-line-top);
}

.claim svg {
  width: 22px;
  height: 22px;
  display: block;
}

.claim-what {
  min-width: 0;
}
.claim-mod {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--micro);
}
.claim-line {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.claim-id {
  font-family: var(--mono);
  font-size: var(--t-micro);
  color: var(--micro);
  white-space: nowrap;
}

.seam-note {
  margin-top: var(--space-4);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--micro);
  text-transform: uppercase;
}

/* =============================================================================
 * THE BENCH — eight modules, one shell. Pick one; the instrument changes.
 * ========================================================================== */

.bench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-6);
}

.bench-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.bench-tab svg {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.55;
  transition: opacity 0.18s ease;
}
.bench-tab:hover {
  background: rgb(255 255 255 / 0.07);
}
.bench-tab[aria-selected='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
.bench-tab[aria-selected='true'] svg {
  opacity: 1;
}

.bench-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.bench-say {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.bench-owns {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.bench-owns li {
  list-style: none;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: var(--t-small);
  /* on open ground, so the ground's secondary ink rather than a card's */
  color: var(--on-ground);
}
.bench-owns li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.bench-owns {
  padding: 0;
  margin-left: 0;
}

.bench-panel {
  min-width: 0;
}

.vignette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}
.vignette > * {
  grid-column: span 3;
}
.vignette > .span-2 {
  grid-column: span 2;
}
.vignette > .span-4 {
  grid-column: span 4;
}
.vignette > .span-6 {
  grid-column: span 6;
}

/* =============================================================================
 * THE INVERSION — the one section that flips ground, hard, mid-scroll.
 * ========================================================================== */

/*
 * The band bleeds back under the rail. The shell is inset by the rail's width, so a
 * section that only paints inside the shell leaves a dark stripe down the left while
 * the chrome above it says the ground has changed — the ground would be changing
 * everywhere except under the thing reporting it.
 */
.inverted {
  background: var(--canvas);
  color: var(--ink);
  border-top: 0;
  position: relative;
  margin-left: calc(var(--rail-w) * -1);
  padding-left: var(--rail-w);
}

/* the cut. A rule, not a fade: the product's grounds are choices, not a gradient. */
.inverted::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bright), var(--accent));
}

.inverted .eyebrow::before {
  background: var(--bright);
}

.inverted .btn-quiet {
  border-color: var(--edge);
  color: var(--ink);
}

/* the public site vignette: a browser plate, not a phone mockup */
.plate {
  border-radius: var(--radius-card);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--elev-2);
  overflow: hidden;
}

.plate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
}
.plate-bar .lights {
  display: flex;
  gap: 5px;
}
.plate-bar .lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.plate-url {
  flex: 1;
  min-width: 0;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: var(--t-micro);
  color: var(--micro);
  overflow: hidden;
  white-space: nowrap;
}

.plate-body {
  padding: clamp(18px, 2.4vw, 30px);
  display: grid;
  gap: var(--space-5);
}

.pubnav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.pubnav .pub-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pubnav span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.pubnav .pub-cta {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 860px) {
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .directory {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dir-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--surface);
  display: grid;
  gap: 4px;
}
.dir-entry .dir-name {
  font-weight: 900;
  font-size: 14px;
}
.dir-entry .dir-cat {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--micro);
}
.dir-entry .dir-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.dir-entry[data-prominence='top'] {
  border-color: var(--bright);
  box-shadow: inset 3px 0 0 var(--bright);
}

/* =============================================================================
 * WHOSE DATA IT IS — the rack, and the promise beside it.
 *
 * The cap simulator's furniture came out on 2026-09-07 with the section it dressed:
 * Michael's ruling that "cap simulator can go... we are marketing to potential clients
 * not to me". The promise it made survives as one sentence beside the rack.
 * ========================================================================== */

.two-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.rack {
  display: grid;
  gap: var(--space-2);
}

.rack-unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 13px var(--space-4);
  border-radius: var(--radius);
  background-color: var(--floor);
  border: 1px solid var(--floor-line);
  border-left: 3px solid var(--accent);
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--ink);
}
.rack-unit .rack-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rack-unit .rack-sep {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-2) 0 4px,
    transparent 4px 8px
  );
}
.rack-unit .rack-cap {
  font-size: var(--t-micro);
  color: var(--micro);
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.rack-unit[data-blocked='true'] {
  border-left-color: var(--danger);
  color: var(--muted);
}
.rack-unit[data-blocked='true'] .rack-cap {
  color: var(--danger);
}

/* the verbatim slab — a claim quoted from the repository's own locked document */
.quoted {
  margin: 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--bright);
  background: rgb(255 255 255 / 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quoted p {
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quoted footer {
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--micro);
}

/* =============================================================================
 * THE CLOSE — the door.
 * ========================================================================== */

.door {
  display: grid;
  place-items: center;
  gap: var(--space-6);
  text-align: center;
  padding: clamp(40px, 5vw, 72px) 0;
}

.door .card {
  width: min(460px, 100%);
  text-align: left;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--micro);
}
.field input {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--well);
  border: 1px solid var(--edge);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.field input::placeholder {
  color: var(--muted);
}

/* The walkthrough door's own answer, in words — sent, refused, or unreachable.
   Wraps rather than truncating, unlike `.row-meta`: this is a sentence, not a label. */
.door-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.door-note[data-tone='sent'] {
  color: var(--ok);
}
.door-note[data-tone='refusal'] {
  color: var(--danger);
}

/* Cloudflare's own iframe, sized by their script. Empty and zero-height until (and unless)
   `appearance: interaction-only` decides a visitor needs to see it — never reserved space,
   never a cause of horizontal overflow on a narrow phone. */
.turnstile-slot {
  max-width: 100%;
  overflow: hidden;
}
.turnstile-slot:empty {
  margin: 0;
}

/* =============================================================================
 * FOOTER
 * ========================================================================== */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 44px);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.foot h4 {
  margin: 0 0 var(--space-3);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--micro);
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.foot a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 700;
}
.foot a:hover {
  color: var(--bright);
  text-decoration: underline;
}

.foot-base {
  margin-top: clamp(28px, 3.4vw, 48px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--micro);
}

/* =============================================================================
 * MOTION — one orchestrated arrival, and scroll reveals. Nothing scattered.
 * ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.deal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}
.dealt .deal {
  animation: deal-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}

@keyframes deal-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sky-cool,
  .sky-warm {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .deal {
    opacity: 1;
    transform: none;
  }
  .dealt .deal {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* glass has to survive being replaced by a solid */
@media (prefers-reduced-transparency: reduce) {
  .card {
    background-color: var(--surface);
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .topbar {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sky {
    display: none;
  }
}

/* =============================================================================
 * RESPONSIVE
 * ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid,
  .seam,
  .bench-stage,
  .two-up {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: 640px;
  }
  .cockpit {
    margin-right: 0;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 34px;
  }
  /* the rail keeps its job and loses its name plates: the header nav is the navigation
     at this width, so the ticks stay a launcher without the labels */
  .rail {
    width: 34px;
  }
  .rail::before {
    left: 16px;
  }
  /*
   * 44px tall, not 30. These stay real launch controls at this width — they are the
   * only way to reach a module vignette without the nav links, which this breakpoint
   * hides — and a 30px control is a control a thumb misses. Eight of them at 44 is
   * 352px, which fits the shortest viewport this comp is built for.
   */
  .rail-tick {
    width: 34px;
    height: 44px;
    padding-left: 8px;
  }
  .rail-tick .mark {
    left: 4px;
  }
  .rail-tick .rail-name {
    display: none;
  }
  .deck {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--space-4);
    gap: var(--space-3);
  }
  .deck > *,
  .deck > .span-3,
  .deck > .span-4 {
    grid-column: span 2;
  }
  .deck > .span-6 {
    grid-column: span 4;
  }
  .vignette > *,
  .vignette > .span-2,
  .vignette > .span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }
  .topnav {
    display: none;
    position: absolute;
    top: 62px;
    left: clamp(16px, 3vw, 34px);
    right: clamp(16px, 3vw, 34px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius-card);
    background: var(--chrome-glass);
    -webkit-backdrop-filter: var(--chrome-filter);
    backdrop-filter: var(--chrome-filter);
    border: 1px solid var(--chrome-glass-line);
    box-shadow: var(--elev-3);
  }
  .topnav[data-open='yes'] {
    display: flex;
  }
  .topnav a:not(.btn) {
    padding: 13px 14px;
    font-size: 15px;
  }
  .topnav .btn {
    margin-top: 6px;
    height: 46px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .deck {
    grid-template-columns: minmax(0, 1fr);
  }
  .deck > *,
  .deck > .span-3,
  .deck > .span-4,
  .deck > .span-6 {
    grid-column: span 1;
  }
  .bench-tabs {
    border-radius: var(--radius);
    width: 100%;
    justify-content: flex-start;
  }
  .bench-tab {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
  .claim {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .claim-id {
    display: none;
  }
  .quoted {
    padding: var(--space-4);
  }
  .plate-body {
    padding: var(--space-4);
  }
  .rack-unit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
  }
  .rack-unit .rack-sep {
    display: none;
  }
}

/* =============================================================================
 * THE ASK — "What do you run?", and the four kinds it swaps the site into.
 *
 * The chips are instrument controls rather than marketing pills: the same glass and
 * the same 1px edge every card on this page is cut from, a state dot borrowed from
 * .pill-state, and the chosen one wearing the accent the rail uses for the app you
 * are standing in. They sit under the hero's two buttons because the question is
 * asked once and everything after it is the answer.
 * ========================================================================== */

.ask {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.ask-q {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--micro);
}

.ask-q b {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

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

.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--edge);
  background: var(--frost);
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.kind-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--edge);
  flex: 0 0 auto;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.kind-chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.kind-chip[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}

.kind-chip[aria-pressed='true']::before {
  background: var(--bright);
  box-shadow: 0 0 0 4px rgb(236 134 76 / 0.18);
}

.kind-chip:active {
  transform: translateY(1px);
}

/* the work page asks the same question, above the eight jobs, already answered */
.ask--page {
  max-width: none;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 var(--space-5);
  margin-bottom: var(--space-6);
}

.ask-note {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* the walkthrough form's one echo of the answer */
.kind-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}

.kind-line b {
  color: var(--ink);
  font-weight: 700;
}

.kind-line a {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
 * THE SWAP. Only the variants that do NOT match the answered kind are hidden, so
 * every element that stays keeps whatever display its own class gave it — no
 * `display: revert` guessing, and nothing to keep in step when a card changes shape.
 * -------------------------------------------------------------------------- */

html[data-kind='chamber'] [data-kind-only]:not([data-kind-only~='chamber']),
html[data-kind='business'] [data-kind-only]:not([data-kind-only~='business']),
html[data-kind='association'] [data-kind-only]:not([data-kind-only~='association']),
html[data-kind='nonprofit'] [data-kind-only]:not([data-kind-only~='nonprofit']) {
  display: none !important;
}

@media (max-width: 700px) {
  .ask {
    max-width: none;
  }
  /* the question and its aside stop competing for one line and take one each */
  .ask-q {
    flex-direction: column;
    gap: 4px;
  }
  .kind-chip {
    height: 36px;
    font-size: 13.5px;
    padding: 0 13px 0 11px;
  }
  .kind-line {
    flex-direction: column;
    gap: 6px;
  }
}
