/* ==========================================================================
   GANDALF — "Glass & Steel" LIGHT THEME VARIANT
   Table of contents:
   1. Tokens
   2. Base / Reset
   3. Typography
   4. Layout
   5. Components
   6. Sections
   7. Motion
   8. Responsive
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --bg: #F5F2ED;
  --bg-raise: #EAE5DC;
  --bg-raise-2: #E0DACD;

  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.14);

  --text: #1C1B19;
  --text-dim: #6B6560;
  --text-faint: #A39C93;

  --ice: #2E5D7A;

  --oil-gradient: linear-gradient(180deg, #E8A24A 0%, #C6803C 40%, #7A3B12 100%);

  /* the hero column fill level — default guarantees it is never empty */
  --fill: 72%;

  --content-max: 1080px;
  --gutter: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

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


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.5rem;
}

.card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.9rem;
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid .glass-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-nav.scrolled {
  background-color: rgba(245, 242, 237, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-nav.scrolled {
    background-color: rgba(245, 242, 237, 0.94);
  }
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.nav-links a:not(.nav-cta) {
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--ice);
  color: var(--ice);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-cta:hover {
  background-color: var(--ice);
  color: var(--bg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background-color: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--ice);
}

.btn-ghost {
  color: var(--text-dim);
  border: 1px solid var(--hairline-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--ice);
}

/* --- Glass cards --- */
.glass-card {
  position: relative;
  background-color: rgba(234, 229, 220, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-card {
    background-color: var(--bg-raise);
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--oil-gradient);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.glass-card:hover {
  border-color: var(--hairline-strong);
}

.glass-card:hover::before {
  opacity: 0.7;
}

.card-body {
  margin-bottom: 0.75rem;
}

.card-body:last-child {
  margin-bottom: 0;
}

/* --- Glass column (signature element) --- */
.column-rig {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  justify-content: center;
}

.column-ticks {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  height: min(60vh, 420px);
  padding-bottom: 2px;
}

.column-ticks span {
  display: block;
  width: 10px;
  height: 1px;
  background: var(--hairline-strong);
}

.glass-column {
  position: relative;
  width: clamp(90px, 12vw, 140px);
  height: min(60vh, 420px);
  border-radius: 50px 50px 20px 20px;
  border: 1px solid rgba(46, 93, 122, 0.25);
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
  box-shadow:
    0 0 60px rgba(46, 93, 122, 0.08),
    inset 2px 0 0 rgba(0, 0, 0, 0.08),
    inset -2px 0 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.glass-column::after {
  /* inner reflection highlight */
  content: '';
  position: absolute;
  top: 6%;
  left: 14%;
  width: 14%;
  height: 82%;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.03));
  border-radius: 999px;
  pointer-events: none;
}

.column-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fill);
  background: var(--oil-gradient);
  transition: height 0.2s linear;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -10%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(190, 170, 140, 0.55);
  animation: rise 6s linear infinite;
}

.b1 { left: 20%; animation-delay: 0s; width: 5px; height: 5px; }
.b2 { left: 45%; animation-delay: 1.3s; width: 7px; height: 7px; }
.b3 { left: 65%; animation-delay: 2.6s; width: 4px; height: 4px; }
.b4 { left: 30%; animation-delay: 3.8s; width: 6px; height: 6px; }
.b5 { left: 75%; animation-delay: 5s; width: 5px; height: 5px; }

.column-readouts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  align-self: flex-end;
  margin-bottom: 1rem;
}

/* --- Form --- */
.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ice);
}

.field-error {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #E88A6E;
  min-height: 1em;
}

.form-status {
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 1.2em;
}

.form-status.success {
  color: var(--ice);
}

.form-status.error {
  color: #E88A6E;
}

#reserve-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

/* --- Hero: full-bleed looping video, copy on a glass panel on top --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 27, 25, 0.05) 0%, rgba(28, 27, 25, 0.12) 60%, rgba(28, 27, 25, 0.38) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 560px;
  background-color: rgba(245, 242, 237, 0.84);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-title-light {
  font-weight: 400;
  color: var(--text-dim);
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.column-readouts {
  flex-shrink: 0;
  background: rgba(245, 242, 237, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  flex-shrink: 0;
}

/* --- Process strip --- */
.process-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.process-sequence {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.process-sequence li {
  position: relative;
  padding: 0 1.2rem;
}

.process-sequence li:first-child {
  padding-left: 0;
}

.process-sequence li:last-child {
  padding-right: 0;
}

.process-sequence li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1em;
  background: var(--hairline-strong);
}

/* ===== INSTRUMENT PLATES ===== */
/* Tall scroll section; a sticky stage holds 4 absolutely-positioned plates
   that cross-fade based on scroll progress (script.js). Plate 01 defaults to
   visible in plain CSS with no scoping — progressive enhancement: if JS never
   runs, plate 01 alone is shown, never a blank stage. Plates 2-4 are only
   hidden once html.js is present (added by script.js on load). */
.plates {
  position: relative;
  min-height: 400vh;
  padding: 0;
}

.plates-eyebrow {
  position: absolute;
  top: clamp(2rem, 5vw, 3rem);
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--content-max);
  padding: 0 var(--gutter);
  z-index: 2;
}

.plates-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}

.plates-stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background-color: var(--bg-raise);
}

.plates-stage::after {
  /* ice hairline accent along the top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 93, 122, 0.55), transparent);
  z-index: 3;
  pointer-events: none;
}

.plate {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.plate.is-active {
  opacity: 1;
}

/* Progressive enhancement: without html.js, every plate but the first stays
   hidden via this rule being scoped — so no-JS visitors always see plate 01. */
html.js .plate:first-child {
  opacity: 0;
}

html.js .plate:first-child.is-active {
  opacity: 1;
}

.plate img,
.plate video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.86);
  transform: scale(1);
  transition: filter 0.7s ease, transform 8s ease-out;
}

.plate.is-active img,
.plate.is-active video {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.06);
}

.plates-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.plate-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
  pointer-events: none;
}

.plate figcaption {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2rem);
  bottom: clamp(1.25rem, 4vw, 2rem);
  right: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}

.plate-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.plate-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

.plate-detail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.plates-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(0.9rem, 2.5vw, 1.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.plates-rail-tick {
  width: 1px;
  height: 18px;
  background: var(--hairline-strong);
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease);
}

.plates-rail-tick.is-active {
  height: 28px;
  background: var(--ice);
}

/* Reduced motion / no scroll-pin: simple static stacked gallery, each plate
   with its caption always visible — no sticky pin, no opacity/zoom motion. */
@media (prefers-reduced-motion: reduce) {
  .plates {
    min-height: 0;
    padding: clamp(4rem, 8vw, 7rem) 0;
  }

  .plates-eyebrow {
    position: static;
    max-width: var(--content-max);
    margin: 0 auto 2rem;
  }

  .plates-sticky {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .plates-stage {
    position: static;
    display: contents;
  }

  .plate,
  html.js .plate:first-child {
    position: relative;
    inset: auto;
    opacity: 1;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    border: 1px solid var(--hairline);
    overflow: hidden;
  }

  .plate img,
  .plate video,
  .plate.is-active img,
  .plate.is-active video {
    filter: grayscale(0) contrast(1) brightness(1);
    transform: none;
  }

  .plates-grain,
  .plates-rail,
  .plates-stage::after {
    display: none;
  }
}

/* --- Feature --- */
.feature-image img {
  border-radius: 16px;
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* --- Teaser copy + detail modal (picture-driven scroll, click for depth) --- */

/* Compact catalog-style grid — several headings visible on screen at once,
   instead of one full-height section per card. */
.teaser-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.teaser-card .feature-image,
.teaser-card-image {
  width: 100%;
  margin-bottom: 1rem;
}

.teaser-card-image img {
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.18);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.teaser-card .card-label {
  margin-bottom: 0.5rem;
}

.teaser-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.teaser-card .teaser-line {
  font-size: 0.92rem;
  max-width: none;
  margin-bottom: 1rem;
}

.teaser-card .detail-trigger {
  margin-top: auto;
  font-size: 0.72rem;
  padding: 0.45rem 0.9rem;
}

.teaser-line {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.detail-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  background: none;
  border: 1px solid var(--ice);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.detail-trigger:hover,
.detail-trigger:focus-visible {
  background-color: var(--ice);
  color: var(--bg);
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

.detail-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  background-color: var(--bg);
  transform: translateY(12px);
  transition: transform 0.25s var(--ease);
}

.detail-modal.is-open .detail-modal-panel {
  transform: translateY(0);
}

.detail-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.detail-modal-close:hover {
  color: var(--text);
  border-color: var(--ice);
}

.detail-modal-body p {
  margin-bottom: 1rem;
}

.detail-modal-body p:last-child {
  margin-bottom: 0;
}

.detail-modal-body ul {
  margin: 1rem 0;
}

.detail-modal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-dim);
}

/* --- Specs --- */
.specs-list {
  display: flex;
  flex-direction: column;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

.specs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.specs-row dt {
  color: var(--text-dim);
}

.specs-row dd {
  color: var(--text);
  text-align: right;
}

/* --- Testimonial --- */
.testimonial-card {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
}

.testimonial-attr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

/* --- Reserve --- */
.reserve-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
}

.reserve-sub {
  margin: 0.75rem 0 2rem;
  max-width: 48ch;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-email:hover {
  color: var(--ice);
}

.footer-copy {
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-faint);
}


/* ==========================================================================
   7. MOTION
   ========================================================================== */

/* Scroll-driven glass column fill (progressive enhancement) */
@supports (animation-timeline: __disabled__) {
  .glass-column {
    animation: fill-column linear;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
}

@keyframes fill-column {
  from { --fill: 4%; }
  to { --fill: 96%; }
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-320px) scale(0.6);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.pulse-dot {
  animation: pulse 2.4s ease-in-out infinite;
}

/* Load-in reveal (hero copy) — only staged once JS confirms it can run cleanly.
   Base state is fully visible; JS adds .js to <html> to enable the staged
   entrance, so a JS failure never hides content. */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.7s var(--ease) forwards;
}

html.js .reveal[data-stagger="1"] { animation-delay: 0.05s; }
html.js .reveal[data-stagger="2"] { animation-delay: 0.15s; }
html.js .reveal[data-stagger="3"] { animation-delay: 0.28s; }
html.js .reveal[data-stagger="4"] { animation-delay: 0.4s; }
html.js .reveal[data-stagger="5"] { animation-delay: 0.52s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal for section entrances — hidden state only added via JS class */
html.js .section-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Reduced motion: strip everything down to static/safe */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .glass-column {
    animation: none !important;
  }

  .bubble {
    display: none;
  }

  .pulse-dot {
    animation: none;
    opacity: 1;
  }

  html.js .reveal,
  html.js .section-reveal {
    opacity: 1;
    transform: none;
  }

  .grain {
    display: none;
  }

  .glass-card:hover {
    transform: none;
  }
}

.glass-card:hover {
  transform: translateY(-2px);
}


/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .column-readouts {
    align-self: flex-start;
    flex-direction: row;
    gap: 1rem;
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .nav-condense {
    display: none;
  }

  .process-sequence {
    font-size: 0.68rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .process-sequence li {
    padding: 0 0.6rem;
  }

  .process-sequence li:not(:last-child)::after {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

/* Instrument Plates — mobile: same static stacked gallery as reduced-motion
   (no sticky pin, no cross-fade); JS also skips attaching the scroll-progress
   listener at this width (see script.js). */
@media (max-width: 768px) {
  .plates {
    min-height: 0;
    padding: clamp(4rem, 8vw, 7rem) 0;
  }

  .plates-eyebrow {
    position: static;
    max-width: var(--content-max);
    margin: 0 auto 2rem;
  }

  .plates-sticky {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .plates-stage {
    position: static;
    display: contents;
  }

  .plate,
  html.js .plate:first-child {
    position: relative;
    inset: auto;
    opacity: 1;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    border: 1px solid var(--hairline);
    overflow: hidden;
  }

  .plate img,
  .plate video,
  .plate.is-active img,
  .plate.is-active video {
    filter: grayscale(0) contrast(1) brightness(1);
    transform: none;
  }

  .plates-grain,
  .plates-rail,
  .plates-stage::after {
    display: none;
  }
}

/* Hero column charge-up: the oil rises from empty to its resting level on
   first load (the batch charging). Pure CSS scaleY — independent of the
   JS-driven --fill height, so it never interferes with the scroll draw-down. */
.column-fill {
  transform-origin: bottom center;
  animation: charge-up 1.5s var(--ease) both;
}
@keyframes charge-up {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .column-fill { animation: none; }
}

/* ==========================================================================
   NEEDS-CLIENT-INPUT markers — internal review aid, not final design.
   Visually loud on purpose so open items can't be missed during review.
   ========================================================================== */
.needs-input {
  border: 1px dashed #E8A24A;
  background: rgba(232, 162, 74, 0.06);
  position: relative;
}

.needs-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8A24A;
  background: rgba(232, 162, 74, 0.12);
  border: 1px solid rgba(232, 162, 74, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.75rem;
}

.needs-input-label::before {
  content: '⚠';
}

.needs-input p:not(.needs-input-label) {
  color: var(--text-dim);
}

.needs-input-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F5F2ED;
  background: #E8A24A;
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  pointer-events: none;
}

.needs-input-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E8A24A;
  margin-top: 0.5rem;
}

.needs-input-inline::before {
  content: '⚠';
}

/* ==========================================================================
   TECHNOLOGY PAGE
   Sub-page built from the same tokens as the landing page. Compact hero
   (no video), then one .tech-entry per topic. Add new topics by copying a
   .tech-entry block — see the comment at the bottom of technology.html.
   ========================================================================== */

.page-hero {
  padding: 9rem 0 3.5rem;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--hairline);
}
.page-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0;
  font-weight: 500;
}
.page-lead {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.tech-entry {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.tech-entry-media {
  position: sticky;
  top: 6.5rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-raise-2);
  aspect-ratio: 4 / 3;
}
.tech-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tech-entry-body .card-label { margin-top: 0; }
.tech-entry-body .teaser-line {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0.5rem 0 1.75rem;
  max-width: 42ch;
}
.tech-prose > * + * { margin-top: 1.1rem; }
.tech-prose p {
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 62ch;
}
.tech-prose h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 500;
  max-width: 24ch;
}

.tech-outro { padding: 4.5rem 0 6rem; }
.tech-outro p { color: var(--text-dim); max-width: 52ch; line-height: 1.7; }
.tech-outro .btn { margin-top: 1.5rem; }

/* the landing page's Details control is a link on the first three cards */
a.detail-trigger { text-decoration: none; }

@media (max-width: 860px) {
  .tech-entry { grid-template-columns: 1fr; padding: 3rem 0; }
  .tech-entry-media { position: static; aspect-ratio: 16 / 10; }
  .page-hero { padding: 7rem 0 2.5rem; }
}
