/* ==========================================================================
   lenoxramsey.com v2
   Layout after nateherk.com (user's choice), palette and faces from Kampeyn.
   scrollcraft.css is the mechanism; this file is the page.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-wdth-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-wdth-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Kampeyn night ramp */
  --night-950: #040812;
  --night-900: #070d1a;
  --night-850: #0a1426;
  --night-800: #0e1b33;
  --night-700: #142546;
  --navy: #163a75;
  --blue: #2e66e2;
  --blue-hover: #2557c9;
  --blue-300: #8fb0f6;
  --blue-200: #b9cdfa;
  --ink: #eef2fa;
  --ink-soft: #b3c0d8;
  --ink-mute: #8494b2;
  --line: rgb(150 180 240 / 0.13);
  --line-strong: rgb(150 180 240 / 0.24);

  /* scrollcraft roles */
  --sc-canvas: var(--night-900);
  --sc-surface: var(--night-850);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--blue);
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --sc-font-text: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --sc-shadow-color: 222 70% 3%;

  --shadow-1: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 10px 30px -12px rgb(2 6 16 / 0.7);
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 30px 70px -24px rgb(2 6 16 / 0.85);
  --shadow-btn: 0 10px 24px -12px rgb(2 6 16 / 0.85);

  --r-field: 12px;
  --r-card: 14px;
  --r-panel: 18px;
  --r-pill: 999px;

  --shell: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section: clamp(5rem, 10vw, 9rem);
  --dock-h: 56px;
  --dock-top: 14px;
  --stage-top: calc(var(--dock-top) + var(--dock-h) + 22px);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  /* Kampeyn: "Wide is the voice". Display type is Archivo set wide. */
  --wide: 112%;
}
.wordmark, .h2, .hero__title, .figures__n, .co__name, .dev__name, .rail__note, .close__title {
  font-stretch: var(--wide);
}
/* Tabular numerals widen the plus sign too; keep it at its natural width. */
.figures__plus { font-variant-numeric: normal; font-feature-settings: "tnum" 0; }

/* ----------------------------------------------------------------- base -- */
html { background: var(--night-900); }
body { font-size: 1.0625rem; line-height: 1.65; letter-spacing: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { height: auto; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 0.6rem 1rem; border-radius: var(--r-pill);
  background: var(--ink); color: var(--night-900); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

[data-sc-progress] { background: var(--blue); height: 2px; z-index: 70; }

/* Shared type ------------------------------------------------------------- */
.h2 {
  font-family: var(--sc-font-display);
  font-weight: 640;
  font-size: clamp(1.9rem, 1.15rem + 2.3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--ink);
}
/* Kampeyn's receding second line: the second sentence carries the context an eyebrow would. */
.dim { color: var(--ink-mute); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 3.25rem; padding: 0 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--sc-font-text); font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap; text-decoration: none;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn__ico { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost {
  color: var(--ink); background: rgb(10 20 38 / 0.35);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgb(150 180 240 / 0.42); background: rgb(20 37 70 / 0.6); }
.btn--sm { height: 2.5rem; padding: 0 1.15rem; font-size: 0.92rem; box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--blue-200); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgb(185 205 250 / 0.35); padding-bottom: 2px;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.text-link svg { width: 0.9em; height: 0.9em; }
.text-link:hover { color: #fff; border-color: #fff; }

/* Company marks: every mark sits in the same rounded tile so the roster reads as one set. */
.mark {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 10px; overflow: hidden;
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.mark--kampeyn { background: #eef3fd; box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset; }
.mark--kampeyn svg { width: 64%; height: auto; }
.mark--img { background: #fff; padding: 3px; }
.mark--tile { background: none; padding: 0; }
.mark--feedlibby { background: #ffb020; color: #0b1f3a; }
.mark--feedlibby svg { width: 52%; height: 52%; }
/* No logo exists for attack.ad yet: a neutral outlined tile that does not pose as one. */
.mark--pending { background: transparent; color: var(--ink-mute); border: 1px solid var(--line-strong); }
.mark--pending svg { width: 50%; height: 50%; }

/* ------------------------------------------------------------------ nav -- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 60;
  padding-top: 18px;
}
.bar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.wordmark {
  font-family: var(--sc-font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.025em; color: var(--ink); text-decoration: none;
}
.bar__nav { display: flex; align-items: center; gap: 1.75rem; }
.bar__link {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color 160ms var(--ease);
}
.bar__link:hover { color: var(--ink); }

/* The roster pill. Hidden until the hero has gone by. */
.roster {
  position: fixed; z-index: 60; top: var(--dock-top); left: 50%;
  display: flex; align-items: center; gap: 0.75rem;
  height: var(--dock-h); padding: 0 8px 0 8px;
  border-radius: var(--r-pill);
  background: rgb(10 20 38 / 0.78);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-2);
  transform: translate(-50%, -140%);
  opacity: 0; visibility: hidden;
  transition: transform 420ms var(--ease), opacity 260ms var(--ease), visibility 0s linear 420ms;
}
.is-docked .roster {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform 520ms var(--ease), opacity 260ms var(--ease), visibility 0s;
}
.roster__me { flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.roster__me img { width: 100%; height: 100%; object-fit: cover; }
.roster__slots { display: flex; align-items: center; gap: 6px; }
.slot {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px dashed rgb(150 180 240 / 0.3);
  transition: border-color 200ms var(--ease);
}
.slot .slot__mark {
  width: 30px; height: 30px; border-radius: 8px;
  opacity: 0; transform: scale(0.6);
  transition: opacity 220ms var(--ease), transform 420ms var(--ease);
}
.slot.is-in { border-color: transparent; }
.slot.is-in .slot__mark { opacity: 1; transform: none; }
.slot.is-current::after {
  content: ""; position: absolute; inset: -4px; border-radius: 13px;
  border: 1.5px solid var(--blue-300);
}
.slot:hover { border-color: var(--blue-300); }
.slot.is-landing .slot__mark { animation: land 520ms var(--ease); }
@keyframes land { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.roster.is-complete { border-color: rgb(143 176 246 / 0.45); }
/* At the close the pill steps away: its marks have landed in the closing roster. */
.is-docked.is-closing .roster {
  transform: translate(-50%, -140%); opacity: 0; visibility: hidden;
  transition: transform 420ms var(--ease), opacity 260ms var(--ease), visibility 0s linear 420ms;
}

/* The flying mark (signature move). */
.flyer {
  position: fixed; z-index: 80; pointer-events: none; margin: 0;
  box-shadow: 0 14px 30px -10px rgb(2 6 16 / 0.9);
  will-change: transform;
}

/* No-JS: the top bar is the only nav and the roster stays out of the way,
   and anything the engine would reveal is simply shown. */
html:not(.js) .roster { display: none; }
html:not(.js) [data-sc-in],
html:not(.js) [data-sc-stagger] > * { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: stretch;
  overflow: clip;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 36rem at 74% 52%, rgb(22 58 117 / 0.85), transparent 70%),
    radial-gradient(28rem 22rem at 78% 40%, rgb(46 102 226 / 0.28), transparent 70%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center;
  padding-top: 120px; padding-bottom: 72px;
}
.hero__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }

.figures { display: flex; gap: clamp(1.75rem, 3vw, 3rem); margin-bottom: clamp(1.5rem, 2.6vw, 2.25rem); }
.figures li { display: grid; gap: 0.2rem; }
.figures__n {
  font-family: var(--sc-font-display); font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.figures__plus { color: var(--blue-300); }
.figures__l { font-size: 0.85rem; color: var(--ink-mute); }

.hero__title {
  font-family: var(--sc-font-display); font-weight: 680;
  font-size: clamp(2.4rem, 1rem + 3.9vw, 4rem);
  line-height: 1.02; letter-spacing: -0.032em;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__i { display: inline-block; }
.hl { color: var(--blue-300); }

.hero__sub {
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  max-width: 34rem;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55;
  color: var(--ink-soft); text-wrap: pretty;
}
.hero .actions { margin-top: clamp(1.75rem, 2.6vw, 2.5rem); }

.hero__portrait {
  position: absolute; right: calc(var(--gutter) - 1rem); bottom: 0; z-index: 1;
  height: min(86svh, 54rem); aspect-ratio: 1197 / 1700;
  pointer-events: none;
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
}

/* One load moment: the headline rises out of its line masks, then the rest follows. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line__i { animation: rise 900ms var(--ease) both; }
  .js .hero__title .line:nth-child(2) .line__i { animation-delay: 90ms; }
  .js .hero .figures,
  .js .hero__sub,
  .js .hero .actions { animation: fade-up 700ms var(--ease) both; animation-delay: 260ms; }
  .js .hero .figures { animation-delay: 120ms; }
  .js .hero .actions { animation-delay: 380ms; }
  .js .hero__portrait { animation: portrait-in 1100ms var(--ease) both; animation-delay: 80ms; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ panels -- */
.panel {
  background: var(--night-850);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-2);
}

/* ---------------------------------------------------------- companies -- */
.companies__stage { display: flex; align-items: stretch; padding: var(--stage-top) 0 clamp(16px, 3vh, 32px); }
.companies__stage > .shell { display: flex; }
.companies__panel {
  flex: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center;
  padding-block: clamp(1rem, 3vh, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.companies__list { grid-column: 1 / span 5; display: grid; gap: clamp(1.5rem, 3vh, 2.25rem); align-content: center; }
.companies__list .h2,
.rail__lead .h2 { font-size: clamp(1.75rem, 1rem + 1.9vw, 2.6rem); }
.co-list { display: grid; gap: 4px; }
.co {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; margin-inline: -1rem;
  border-radius: var(--r-card);
  opacity: 0.66;
  transition: opacity 260ms var(--ease), background-color 260ms var(--ease);
}
.co.is-active { opacity: 1; background: rgb(20 37 70 / 0.75); }
.co__name { font-family: var(--sc-font-display); font-weight: 640; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
.co__desc { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); margin-top: 0.15rem; }
.co__link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 600; color: var(--blue-200); text-decoration: none;
  padding: 0.5rem 0.75rem; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.co__link svg { width: 0.85rem; height: 0.85rem; }
.co__link:hover { border-color: var(--line-strong); color: #fff; }

.companies__frame { grid-column: 7 / span 6; }
.frame {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--night-800);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgb(2 6 16 / 0.95), 0 1px 0 rgb(255 255 255 / 0.06) inset;
}
.frame__bar {
  display: flex; align-items: center; justify-content: center;
  height: 40px; border-bottom: 1px solid var(--line);
  background: var(--night-850);
}
.frame__url {
  font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.01em;
  padding: 0.2rem 0.9rem; border-radius: var(--r-pill); background: rgb(14 27 51 / 0.9);
}
.frame__screens { position: relative; aspect-ratio: 16 / 9; }
.screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 100% 0);
}
.screen.is-active { z-index: 2; clip-path: inset(0); transition: clip-path 720ms var(--ease); }
.screen.was-active { z-index: 1; clip-path: inset(0); }
html:not(.js) .screen:first-child { clip-path: none; }

/* --------------------------------------------------------- in development -- */
.next__stage { display: flex; align-items: center; padding-top: var(--stage-top); padding-bottom: 24px; }
.rail { align-items: stretch; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--gutter); }
.rail > * { flex: none; }
.rail__lead { width: min(30rem, 80vw); display: flex; align-items: center; padding-right: 2rem; }
.dev {
  width: clamp(18rem, 34vw, 32rem);
  display: grid; grid-template-rows: auto auto 1fr; gap: 1rem; align-content: start;
  padding: 0.85rem 0.85rem 1.5rem;
  background: var(--night-850); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--shadow-1);
}
.dev__shot { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; }
.dev__shot img { width: 100%; height: 100%; object-fit: cover; }
.dev__shot--none {
  display: grid; place-items: center;
  border: 1px dashed var(--line-strong);
  color: var(--ink-mute); font-size: 0.95rem;
}
.dev__head { display: flex; align-items: center; gap: 0.75rem; padding-inline: 0.4rem; }
.dev__mark { width: 2.25rem; height: 2.25rem; border-radius: 9px; }
.dev__name { font-family: var(--sc-font-display); font-weight: 640; font-size: 1.3rem; letter-spacing: -0.02em; }
.dev__status {
  margin-left: auto; white-space: nowrap; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue-200); padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  border: 1px solid rgb(143 176 246 / 0.3);
}
.dev__desc { padding-inline: 0.4rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; max-width: 40ch; }
.rail__end {
  width: min(24rem, 78vw);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem;
  padding-left: 1rem;
}
.rail__note {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em;
}
/* Rail items settle in sequence as the drawer is pulled (lead exempt). */
@media (prefers-reduced-motion: no-preference) {
  .js .rail > .dev, .js .rail > .rail__end {
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }
  .js .rail > .dev:not(.is-seen), .js .rail > .rail__end:not(.is-seen) { opacity: 0.55; transform: translateY(18px); }
}

/* --------------------------------------------------------------- story -- */
.story { padding-block: var(--section) calc(var(--section) * 0.5); }
.story__panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: clamp(1.75rem, 4vw, 4rem);
}
.story__copy { grid-column: 1 / span 7; display: grid; gap: 1.15rem; justify-items: start; }
.story__copy .h2 { margin-bottom: 0.75rem; font-size: clamp(1.9rem, 1.1rem + 1.8vw, 2.6rem); }
.story__copy p { max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }
.story__copy .text-link { margin-top: 0.75rem; }
.story__photo {
  grid-column: 8 / span 5;
  border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgb(2 6 16 / 0.95);
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.06) brightness(0.94); }

/* --------------------------------------------------------------- close -- */
.close {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: clip;
}
.close__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48rem 30rem at 22% 55%, rgb(22 58 117 / 0.75), transparent 72%);
}
.close__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.75rem, 3vw, 2.5rem); padding-top: var(--stage-top); }
.close__roster { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.close__roster a, .close__soon {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.close__roster a:hover { color: var(--ink); }
.close__roster .mark { width: 2.25rem; height: 2.25rem; border-radius: 9px; }
.close__title {
  font-family: var(--sc-font-display); font-weight: 680;
  font-size: clamp(2.6rem, 1rem + 5.4vw, 5.6rem);
  line-height: 1.0; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance;
}
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute); font-size: 0.9rem;
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* -------------------------------------------------------------- contact -- */
/* A raised night panel over a dimmed page. Fields follow Kampeyn's: label
   above, 12px corners, Strong Hairline edge, Signal Blue border plus a brand
   blue ring on focus. No backdrop blur: the Blur Only What Floats Rule keeps
   blur for the pill controls. */
.contact {
  width: min(34rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2rem);
  margin: auto; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: var(--night-850); color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: auto; overscroll-behavior: contain;
}
.contact::backdrop { background: rgb(4 8 18 / 0.74); }
html.has-dialog { overflow: hidden; }

.contact__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.contact__title {
  font-family: var(--sc-font-display); font-weight: 640; font-stretch: var(--wide);
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.9rem);
  line-height: 1.08; letter-spacing: -0.026em; text-wrap: balance;
}
.contact__title:focus { outline: none; }
.contact__x {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; margin: -0.35rem -0.35rem 0 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.contact__x svg { width: 1rem; height: 1rem; }
.contact__x:hover { border-color: rgb(150 180 240 / 0.42); color: var(--ink); }

.contact__fields { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field__label { font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-mute); }
.field__input {
  width: 100%; height: 3.1rem; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-field);
  background: var(--night-900); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field__input--area { height: auto; min-height: 8.5rem; padding-block: 0.8rem; line-height: 1.55; resize: vertical; }
.field__input:hover { border-color: rgb(150 180 240 / 0.42); }
.field__input:focus { outline: none; border-color: var(--blue-300); box-shadow: 0 0 0 3px rgb(46 102 226 / 0.35); }
.field__input[aria-invalid="true"] { border-color: var(--blue-300); }

.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__status { min-height: 1.5em; margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.contact__status:empty { min-height: 0; margin-top: 0; }
.contact__status a { color: var(--blue-200); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.contact__actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.contact__note { color: var(--ink-soft); }
.contact__note strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
button.btn { border: 0; cursor: pointer; }
button.btn--ghost { border: 1px solid var(--line-strong); }

@media (prefers-reduced-motion: no-preference) {
  .contact[open] { animation: contact-in 320ms var(--ease); }
  .contact[open]::backdrop { animation: contact-fade 320ms var(--ease); }
}
@keyframes contact-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes contact-fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------- tablet -- */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 8; }
  .hero__portrait { height: min(70svh, 40rem); right: -2rem; opacity: 0.9; }
  .companies__list { grid-column: 1 / span 6; }
  .companies__frame { grid-column: 7 / span 6; }
}

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 767px) {
  :root { --dock-h: 52px; --dock-top: 10px; }
  .bar__link { display: none; }
  .bar__inner { height: 52px; }

  .roster { gap: 0.5rem; padding: 0 6px; }
  .roster__me { width: 36px; height: 36px; }
  .roster__slots { gap: 4px; }
  .slot { width: 30px; height: 30px; border-radius: 9px; }
  .slot .slot__mark { width: 26px; height: 26px; border-radius: 7px; }
  .roster .btn--sm { height: 2.25rem; padding: 0 0.9rem; }

  .hero { display: block; }
  .hero__grid { display: block; padding-top: 96px; padding-bottom: 0; }
  .figures { margin-bottom: 1.25rem; }
  .hero__title { font-size: clamp(1.9rem, 0.6rem + 5.4vw, 2.4rem); }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
  .hero__portrait {
    position: relative; right: auto; bottom: auto;
    height: auto; width: min(86vw, 26rem); margin: 1.5rem auto 0;
  }
  .hero__glow { background: radial-gradient(28rem 26rem at 50% 82%, rgb(22 58 117 / 0.85), transparent 70%); }

  .companies__stage { padding-top: calc(var(--dock-top) + var(--dock-h) + 12px); padding-bottom: 12px; }
  .companies__stage > .shell { padding-inline: 12px; }
  .companies__panel { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 0.5rem 0; border: 0; }
  .companies__list { display: contents; }
  .companies__list .h2 { order: 1; font-size: 1.55rem; }
  .companies__frame { order: 2; width: 100%; }
  .co-list { order: 3; }
  .frame__bar { height: 28px; }
  .co { padding: 0.6rem 0.75rem; margin-inline: 0; gap: 0.75rem; }
  .co .mark { width: 2.1rem; height: 2.1rem; }
  .co__name { font-size: 1.1rem; }
  .co__desc { font-size: 0.85rem; line-height: 1.45; }
  .co__link { padding: 0.45rem 0.55rem; font-size: 0; gap: 0; border-color: var(--line-strong); }
  .co__link svg { width: 0.95rem; height: 0.95rem; }

  .rail__lead { width: 80vw; }
  /* On phones the rail ends on the last product, whole. Follow stays in the pill and the close. */
  .rail__end { display: none; }
  .rail__lead .h2 { font-size: 1.7rem; }
  .dev { width: 80vw; }
  .dev__name { font-size: 1.1rem; }
  .dev__mark { width: 2rem; height: 2rem; }
  .dev__status { font-size: 0.72rem; padding: 0.25rem 0.55rem; }

  .story__panel { display: flex; flex-direction: column-reverse; gap: 2rem; }
  .story__photo { width: 100%; }

  .close__roster { gap: 0.6rem 1rem; }
  .close .actions { flex-direction: column; align-items: stretch; }
  .close .actions .btn { width: 100%; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .foot { flex-direction: column; }
}

/* ----------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .screen.is-active { transition: none; }
  .roster, .is-docked .roster { transition: opacity 200ms linear, visibility 0s; transform: translate(-50%, 0); }
  .slot .slot__mark { transition: opacity 200ms linear; transform: none; }
  .slot.is-landing .slot__mark { animation: none; }
  /* The rail is released from its pin and laid out as a grid, so nothing
     sits off-screen and no scroll is spent on a frozen stage. */
  .next { height: auto !important; }
  .next .next__stage { position: static; height: auto; overflow: visible; padding: var(--section) 0 0; scroll-snap-type: none; }
  .next .rail {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
    width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter);
  }
  .next .rail > * { width: auto; }
  .next .rail__lead, .next .rail__end { grid-column: 1 / -1; padding: 0; }
  .next .rail__end { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .next .rail { grid-template-columns: 1fr; }
}
