/* ==========================================================================
   elarchon.com v2 — Operion by Elarchon Inc.
   "Engineered luxury": dark field, footage is the light source, one idea per
   viewport, a single restrained signal tone. Hairlines, never ornament.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --ink:      #070B12;   /* base field, matched to the footage grade */
  --ink-1:    #0A111C;
  --ink-2:    #0E1724;
  --chalk:    #EAEFF6;   /* primary text */
  --fog:      #9AA7B8;   /* body text — 7.4:1 on --ink */
  --fog-2:    #74829A;   /* HUD chrome — 5.07:1 on --ink, still passes AA */
  --accent:   #D9A441;   /* the one signal tone. Ration it. */
  --accent-q: rgba(217, 164, 65, 0.42);
  --line:     rgba(234, 239, 246, 0.13);
  --line-2:   rgba(234, 239, 246, 0.07);

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* every overlay element uses one of these two curves. Nothing bounces. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gut: clamp(1.5rem, 5vw, 6rem);
  --rail: clamp(0rem, 4vw, 4.5rem);   /* chapter-index rail inset */
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* --- shared type ---------------------------------------------------------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-2);
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}
.kicker b { font-weight: 400; color: var(--accent); }

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.4rem, 4.9vw, 4.75rem); }
h2.display { font-size: clamp(2.1rem, 4.2vw, 4rem); }

.lede {
  margin: clamp(1.5rem, 2.6vw, 2.25rem) 0 0;
  max-width: 46ch;
  color: var(--fog);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.85rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- fixed chrome --------------------------------------------------------- */
/* A thin scroll-progress rule. This is the loudest the chrome ever gets. */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-2);
  z-index: 60;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: 0 50%;
}

/* --- site nav ------------------------------------------------------------- */
/* One bar on every page. On the cinematic home page it stands down with the
   rest of the chrome; on interior pages it is always present. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.5rem) var(--gut);
  transition: opacity 400ms var(--ease), background 400ms var(--ease);
}
.nav[data-off="1"] { opacity: 0; pointer-events: none; }
/* Interior pages paint a scrim once the reader leaves the top of the page. */
.nav[data-solid="1"] {
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--chalk); }
.nav__links a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent-q); }
.nav__cta a {
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.6rem 1rem;
}
.nav__cta a:hover { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
/* The button is already amber, so the generic current-page amber would paint
   the label invisible on /demo. Keep ink on the fill. */
.nav__cta a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav__cta a[aria-current="page"]:hover { color: var(--accent); }

/* Mobile disclosure. <details> so it opens and closes with no JavaScript. */
.nav__menu { display: none; position: relative; }
.nav__menu > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu[open] > summary { border-color: var(--accent-q); color: var(--accent); }
.nav__menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 15rem;
  background: rgba(7, 11, 18, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  padding: 0.5rem 0;
  display: grid;
}
.nav__menu__panel a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line-2);
}
.nav__menu__panel a:last-child { border-bottom: 0; }
.nav__menu__panel a[aria-current="page"] { color: var(--accent); }
.nav__menu__panel a:last-child { color: var(--accent); background: rgba(217, 164, 65, 0.08); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
}

.mark {
  position: relative;
  z-index: 60;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
@media (max-width: 520px) {
  .mark__sub { display: none; }
}
.mark__glyph {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.mark__sub { color: var(--fog-2); }

/* Chapter index, 01–08, in the margin. Mono, quiet, one accent at a time. */
.index {
  position: fixed;
  left: var(--rail);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: grid;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.index[data-on="1"] { opacity: 1; }
.index a {
  color: var(--fog-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 400ms var(--ease);
}
.index a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: width 500ms var(--ease);
}
.index a[aria-current="true"] { color: var(--accent); }
.index a[aria-current="true"]::before { width: 22px; }
.index a:hover { color: var(--chalk); }

/* Corner telemetry. Ticks quietly; never the subject. */
.hud {
  position: fixed;
  bottom: clamp(1.15rem, 2.4vw, 2rem);
  right: var(--gut);
  z-index: 60;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--fog-2);
  text-align: right;
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
}
.hud[data-on="1"] { opacity: 1; }

@media (max-width: 900px) {
  .index { display: none; }
  .hud { font-size: 0.5625rem; }
}

/* --- the cinema ----------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 600ms var(--ease-io);
}
.stage[data-on="1"] { opacity: 1; }

.stage__canvas,
.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stage__poster { z-index: 1; transition: opacity 700ms var(--ease-io); }
.stage__poster[data-off="1"] { opacity: 0; }

/* Scrims. Contrast insurance wherever the footage runs bright. */
.stage__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7,11,18,0.94) 0%, rgba(7,11,18,0.82) 30%, rgba(7,11,18,0.28) 58%, rgba(7,11,18,0.10) 100%),
    linear-gradient(to top, rgba(7,11,18,0.86) 0%, rgba(7,11,18,0.10) 42%, rgba(7,11,18,0) 70%),
    radial-gradient(120% 90% at 50% 45%, rgba(7,11,18,0) 40%, rgba(7,11,18,0.55) 100%);
}
@media (max-width: 760px) {
  .stage__scrim {
    background:
      linear-gradient(to top, rgba(7,11,18,0.94) 0%, rgba(7,11,18,0.72) 34%, rgba(7,11,18,0.22) 68%, rgba(7,11,18,0.10) 100%),
      radial-gradient(120% 90% at 50% 40%, rgba(7,11,18,0) 35%, rgba(7,11,18,0.6) 100%);
  }
}

.cinema { position: relative; z-index: 1; }

.chapter { position: relative; }

.chapter__inner {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-content: center;
  padding: 0 var(--gut);
  /* Keep copy clear of the fixed wordmark and the corner telemetry. */
  padding-block: clamp(5.5rem, 13vh, 9rem) clamp(5rem, 11vh, 7.5rem);
  overflow: hidden;
}
/* The chapter-index rail only exists above 900px, so only reserve room for it
   there — otherwise narrow viewports inherit a 100px indent for nothing. */
@media (min-width: 901px) {
  .chapter__inner { padding-left: max(var(--gut), calc(var(--rail) + 5.5rem)); }
}

.chapter__copy {
  position: relative;
  z-index: 3;
  max-width: 43rem;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  will-change: opacity, transform;
}

/* Overlay layer — SVG choreographed to the same progress value as the frames.
   viewBox matches the frame aspect and slices exactly like the canvas cover. */
.chapter__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.chapter__overlay text {
  font-family: var(--mono);
  fill: var(--chalk);
  letter-spacing: 1.4px;
}
.chapter__overlay .o-lbl { font-size: 15px; fill: var(--fog); }
.chapter__overlay .o-key { font-size: 15px; fill: var(--accent); }
.chapter__overlay .o-num { font-size: 30px; fill: var(--chalk); letter-spacing: 0.5px; }
.chapter__overlay .o-hair { stroke: rgba(234,239,246,0.34); stroke-width: 1; fill: none; }
.chapter__overlay .o-sig  { stroke: var(--accent); stroke-width: 1.25; fill: none; }
.chapter__overlay .o-fill { fill: rgba(217,164,65,0.055); stroke: none; }
.chapter__overlay .o-dot  { fill: var(--accent); }

/* Every animatable overlay part is gated on --t (0→1), written by JS. */
/* A draw-on stroke owns its dash-array, so it cannot also carry a dash
   pattern. Dashed geometry is therefore two passes: a solid tracer that draws
   the shape, then the settled dashed hairline it hands off to. --o is the
   independent fade-out that retires the tracer. */
.chapter__overlay [data-draw] {
  stroke-dashoffset: calc(var(--len, 1000) * (1 - var(--t, 0)));
  stroke-dasharray: var(--len, 1000);
  opacity: var(--o, 1);
}
.chapter__overlay [data-fade] { opacity: calc(var(--t, 0) * var(--o, 1)); }
.chapter__overlay [data-pop] {
  opacity: calc(var(--t, 0) * var(--o, 1));
  transform: scale(calc(0.86 + 0.14 * var(--t, 0)));
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform-box: fill-box;
}
/* Overlay geometry is composed against the right of a 16:9 frame. Narrow
   viewports slice that frame hard from the sides, which drags the HUD across
   the copy column — so below the rail breakpoint the footage and the copy
   carry the chapter alone. Nothing is lost: every value in the overlays is
   illustrative, and all real content lives in the DOM. */
@media (max-width: 900px) {
  .chapter__overlay { display: none; }
}

/* Hero scroll cue */
.cue {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 5vh, 3.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fog-2);
}
.cue__line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--accent-q), transparent);
}

/* The trailing spacer lets the last frame land before the stage releases. */
.cinema__tail { height: 100svh; }

/* --- the vertical grid under Ports & Energy -------------------------------- */
.grid-band {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 9vw, 8rem) var(--gut);
}
.grid-band__head { max-width: 44rem; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.grid-band__head h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  margin: 0;
}
.tiles {
  display: grid;
  /* Six tiles, so an explicit 3-up beats auto-fit — auto-fit lands on five
     across at common desktop widths and orphans the sixth. */
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 11.5rem;
  transition: background 400ms var(--ease);
}
.tile:hover { background: var(--ink-1); }
.tile__name {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.tile__name a { text-decoration: none; transition: color 300ms var(--ease); }
.tile:hover .tile__name a { color: var(--accent); }
/* The whole tile is the target, not just the words. */
.tile__name a::after { content: ""; position: absolute; inset: 0; }
.tiles .tile { position: relative; }
.tile__note { margin: 0; color: var(--fog); font-size: 0.9375rem; line-height: 1.5; }
.tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--fog-2);
}
.tag[data-state="live"] { color: var(--accent); border-color: var(--accent-q); }

/* --- everything after the cinema ------------------------------------------ */
.after {
  position: relative;
  z-index: 2;
  background: var(--ink);
}

.cta {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 11vw, 10rem) var(--gut);
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,11,18,0.92) 0%, rgba(7,11,18,0.66) 45%, rgba(7,11,18,0.18) 100%),
    linear-gradient(to bottom, rgba(7,11,18,0.12) 0%, rgba(7,11,18,0.55) 55%, rgba(7,11,18,0.9) 100%);
}
.cta__inner {
  position: relative;
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 1000px) {
  .cta__inner { grid-template-columns: 1fr minmax(24rem, 30rem); }
}

/* --- FAQ ------------------------------------------------------------------ */
.answers {
  border-top: 1px solid var(--line);
  padding: clamp(4.5rem, 10vw, 9rem) var(--gut);
}
.answers__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .answers__grid { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); }
}
.qa { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); padding: clamp(1.75rem, 3vw, 2.5rem) 0; }
.qa__item h3 {
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
}
.qa__item p { margin: 0; color: var(--fog); max-width: 62ch; line-height: 1.62; }

/* --- footer --------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gut) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.foot__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .foot__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
}
.foot h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-2);
  font-weight: 400;
  margin: 0 0 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot a { color: var(--fog); text-decoration: none; transition: color 300ms var(--ease); }
.foot a:hover { color: var(--chalk); }
.foot__legal {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--fog-2);
}
@media (min-width: 800px) {
  .foot__legal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
.foot__legal p { margin: 0; max-width: 78ch; }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 1px solid var(--accent);
  transition: background 350ms var(--ease), color 350ms var(--ease);
}
.btn:hover { background: transparent; color: var(--accent); }

/* --- static-still fallback (no JS / reduced motion) ------------------------ */
/* Real content parity: the same copy, the same order, posters instead of scrub. */
.chapter__still { display: none; }

.no-scrub .stage { display: none; }
.no-scrub .cinema__tail { display: none; }
.no-scrub .index,
.no-scrub .hud,
.no-scrub .cue { display: none; }
.no-scrub .chapter { height: auto !important; }
.no-scrub .chapter__inner {
  position: static;
  height: auto;
  display: block;
  padding: 0 0 clamp(3.5rem, 8vw, 7rem);
}
.no-scrub .chapter__still {
  display: block;
  width: 100%;
  height: clamp(16rem, 46svh, 30rem);
  object-fit: cover;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.no-scrub .chapter__copy {
  opacity: 1 !important;
  transform: none !important;
  padding: 0 var(--gut);
  max-width: 46rem;
}
.no-scrub .chapter__overlay { display: none; }
.no-scrub .grid-band { border-top: 0; padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Interior pages
   Same field, same restraint — but document flow, not a scrub. The footage
   appears once per page as a scrimmed still, then gets out of the way.
   ========================================================================== */

.page { position: relative; z-index: 2; background: var(--ink); }

/* --- page hero ------------------------------------------------------------ */
.phero {
  position: relative;
  min-height: min(74svh, 44rem);
  display: grid;
  align-content: end;
  padding: clamp(8rem, 20vh, 13rem) var(--gut) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.phero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,11,18,0.94) 0%, rgba(7,11,18,0.76) 42%, rgba(7,11,18,0.3) 100%),
    linear-gradient(to bottom, rgba(7,11,18,0.72) 0%, rgba(7,11,18,0.25) 40%, rgba(7,11,18,0.92) 100%);
}
.phero__inner { position: relative; max-width: 52rem; }
/* Brighter than the page default: this one sits over footage, not over ink. */
.phero .kicker { color: var(--fog); }
.phero h1.display { font-size: clamp(2.3rem, 5.4vw, 4.5rem); }

/* --- generic section ------------------------------------------------------ */
.sec {
  padding: clamp(4rem, 9vw, 8rem) var(--gut);
  border-bottom: 1px solid var(--line);
}
.sec--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sec__head { max-width: 46rem; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.sec__head h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  margin: 0;
  text-wrap: balance;
}
.sec__head .lede { margin-top: clamp(1.1rem, 2vw, 1.6rem); }

/* Two-column: a sticky label rail beside the body. Collapses cleanly. */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); }
  .split__rail { position: sticky; top: 7rem; align-self: start; }
}

/* --- numbered points ------------------------------------------------------ */
.points { display: grid; border-top: 1px solid var(--line); }
.points__item {
  display: grid;
  gap: 0.6rem 2rem;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.75rem, 3.2vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .points__item { grid-template-columns: 4rem minmax(0, 1fr); }
}
.points__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 0.35rem;
}
.points__item h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.018em;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.18;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.points__item p { margin: 0; color: var(--fog); max-width: 62ch; line-height: 1.62; }
.points__item p + p { margin-top: 0.9rem; }

/* --- module / capability tiles -------------------------------------------- */
.mods {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 660px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mods { grid-template-columns: repeat(3, 1fr); } }
.mod {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: background 400ms var(--ease);
}
.mod:hover { background: var(--ink-1); }
.mod__k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-2);
}
/* :is() so a tile can carry an h2 where the heading order needs one (the 404
   page) without picking up a different size from the rest of the grid. */
.mod :is(h2, h3) {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.mod :is(h2, h3) a { text-decoration: none; transition: color 300ms var(--ease); }
.mod:hover :is(h2, h3) a { color: var(--accent); }
.mod p { margin: 0; color: var(--fog); font-size: 0.9375rem; line-height: 1.55; }

/* --- plain list ----------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0 1.05rem 2rem;
  position: relative;
  color: var(--fog);
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.5rem;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.checks li b { color: var(--chalk); font-weight: 500; }

/* --- people --------------------------------------------------------------- */
.people {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  padding-right: clamp(1rem, 3vw, 3rem);
}
.person h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
}
.person__role {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.person p { margin: 0; color: var(--fog); max-width: 46ch; line-height: 1.6; }

/* --- pull statement ------------------------------------------------------- */
.pull {
  padding: clamp(4.5rem, 10vw, 9rem) var(--gut);
  border-bottom: 1px solid var(--line);
}
/* :not(.kicker) so a mono label inside a pull block keeps its own scale
   instead of being promoted to display size. */
.pull p:not(.kicker) {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  text-wrap: balance;
}
.pull cite {
  display: block;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--fog-2);
}

/* --- end-of-page CTA band ------------------------------------------------- */
.endcta {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gut);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.endcta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.endcta__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7,11,18,0.94) 0%, rgba(7,11,18,0.72) 48%, rgba(7,11,18,0.28) 100%),
    linear-gradient(to bottom, rgba(7,11,18,0.35), rgba(7,11,18,0.9));
}
.endcta__inner { position: relative; max-width: 44rem; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.endcta h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin: 0;
  text-wrap: balance;
}
.endcta p { margin: 0; color: var(--fog); max-width: 50ch; line-height: 1.6; }

/* --- status banner (utilities) -------------------------------------------- */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--accent-q);
  background: rgba(217, 164, 65, 0.05);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.notice p { margin: 0; color: var(--fog); line-height: 1.6; font-size: 0.9375rem; }
.notice b { color: var(--chalk); font-weight: 500; }

/* --- interior page mobile pass -------------------------------------------- */
/* The left-to-right scrim only pays off when there is a right-hand third for
   the footage to live in. Narrow viewports get its dark end across the whole
   width and lose the image entirely, so they take a vertical ramp instead. */
@media (max-width: 1000px) {
  .phero__scrim,
  .endcta__scrim,
  .cta__scrim {
    background:
      linear-gradient(to bottom, rgba(7,11,18,0.50) 0%, rgba(7,11,18,0.24) 26%, rgba(7,11,18,0.86) 58%, rgba(7,11,18,0.96) 100%);
  }
}
@media (max-width: 640px) {
  .phero { min-height: min(66svh, 34rem); padding-top: clamp(7rem, 18vh, 10rem); }
  .pull p { max-width: none; }
  .sec, .endcta, .pull { padding-inline: var(--gut); }
  .split__rail .lede { max-width: none; }
}

/* --- email call to action -------------------------------------------------
   Replaces the booking form on /demo. A real mailto: anchor, not a
   script-assembled one — the no-JS path has to reach it too. */
.mailcta {
  border: 1px solid var(--line);
  background: rgba(10, 17, 28, 0.72);
  padding: clamp(1.75rem, 3.4vw, 3rem);
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
.mailcta__k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin: 0;
}
/* The address itself is the button. Wraps rather than overflowing on a phone. */
.mailcta__addr {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  line-height: 1.1;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  transition: color 300ms var(--ease);
}
.mailcta__addr:hover { color: var(--chalk); }
.mailcta__addr span { flex: none; font-size: 0.5em; color: var(--fog-2); }
.mailcta p { margin: 0; color: var(--fog); line-height: 1.6; max-width: 52ch; }
.mailcta ul { margin: 0; padding-left: 1.1rem; color: var(--fog); line-height: 1.7; }
.mailcta ul li::marker { color: var(--accent-q); }
