/* =========================================================
   POOL.MGULER — v1.2 cinematic build (full rebuild)
   ========================================================= */

:root {
  --paper:        #F7F3EC;
  --travertine:   #DCC9AE;
  --water:        #0E2E44;
  --stone:        #6F5C47;
  --ink:          #0E1116;
  --gold:         #E4C27A;
  --blue:         #7BC7F3;

  --paper-soft:   #EFEAE1;
  --line-paper:   rgba(14,17,22,0.08);
  --line-ink:     rgba(255,255,255,0.10);

  --h-display: clamp(56px, 9vw, 128px);
  --h-1:       clamp(40px, 5.5vw, 84px);
  --h-2:       clamp(28px, 3.4vw, 48px);
  --h-3:       clamp(18px, 1.6vw, 22px);
  --body:      16px;
  --small:     13px;
  --label:     11px;

  --gutter:    clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 180px);

  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone);
}
.kicker--light { color: rgba(255,255,255,0.55); }
.kicker-no {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}
.section-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: var(--h-1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 24px;
}
.section-title--light { color: var(--paper); }
.section-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--stone);
}
.section-lead--light { color: rgba(255,255,255,0.6); }
.section-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head--centered { text-align: center; }
.section-head--centered .kicker { justify-content: center; }
.section-head--centered .section-title,
.section-head--centered .section-lead { margin-left: auto; margin-right: auto; }

section { padding: var(--section-y) 0; position: relative; }

/* =========================================================
   SECTION 01 — CINEMATIC HERO  (Hero Revision V1)
   ========================================================= */
.cinematic-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0E1116;
  color: #fff;
  isolation: isolate;
  padding: 0;
}

/* Stack wrapper carries the cinematic zoom + parallax so both videos move as one (G9) */
.cinematic-hero .hero-video-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: scale(1.03);
  animation: slowZoom 18s ease-in-out infinite alternate;
  background: #0E1116;
}

.cinematic-hero .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0E1116;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

/* visible layer of the crossfade */
.cinematic-hero .hero-video.is-on {
  opacity: 1;
}

/* no-JS fallback: only one video present in flow, force it visible */
.no-js .cinematic-hero .hero-video.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cinematic-hero .hero-video { transition: none; }
  .cinematic-hero .hero-video-stack { animation: none; transform: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.18),
      rgba(0,0,0,0.34),
      rgba(0,0,0,0.58));
  pointer-events: none;
}

.floating-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 42px);
  transition:
    background .5s var(--ease),
    backdrop-filter .5s var(--ease),
    border-color .4s var(--ease),
    padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.floating-header.is-stuck {
  padding: 16px clamp(20px, 4vw, 42px);
  background: rgba(14,17,22,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.header-logo {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-decoration: none;
}
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.3s ease, color .3s ease;
}
.header-nav a:hover { opacity: 1; color: #fff; }
.floating-header .header-cta {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, border-color .3s ease;
}
.floating-header .header-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  max-width: 760px;
}
.hero-content .hero-label {
  color: rgba(255,255,255,0.64);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.25s forwards;
}
.hero-content h1 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(62px, 9vw, 128px);
  line-height: 0.92;
  font-weight: 200;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFadeUp 1.4s var(--ease) 0.45s forwards;
}
.hero-content p {
  color: rgba(255,255,255,0.74);
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.75s forwards;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 0.95s forwards;
}
.btn-primary, .btn-secondary {
  padding: 16px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, border-color .3s ease;
}
.btn-primary {
  background: rgba(255,255,255,0.92);
  color: #0E1116;
  font-weight: 500;
}
.btn-primary:hover { transform: translateY(-2px); background: #fff; }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.cinematic-hero .hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease) 1.15s forwards;
}

@keyframes slowZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SECTION 02 — SIGNATURE GEOMETRY
   ========================================================= */
.geometry { background: var(--paper); }
.geometry-stage {
  position: relative;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: end;
}
.geometry-svg { display: none; }
.geometry-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: url('../img/geometry-blueprint.jpg') center / cover no-repeat #0E1116;
  background-image: -webkit-image-set(url('../img/geometry-blueprint.webp') type('image/webp') 1x, url('../img/geometry-blueprint.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../img/geometry-blueprint.webp') type('image/webp') 1x, url('../img/geometry-blueprint.jpg') type('image/jpeg') 1x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0E1116;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.geometry-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(14,17,22,0.18) 100%);
  pointer-events: none;
}
.geometry-photo-caption {
  position: absolute;
  left: 24px; bottom: 22px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.16);
}
.geometry-side { padding-bottom: 24px; }
.side-text {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 36px;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
}
.geometry-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  font-size: 13px;
}
.geometry-stats div { display: flex; flex-direction: column; gap: 6px; }
.geometry-stats dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.geometry-stats dd {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* =========================================================
   SECTION 03 — FORM PHILOSOPHY
   ========================================================= */
.philosophy { background: var(--paper-soft); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: 0 var(--gutter);
}
.philosophy-visual {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(228,194,122,0.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--paper) 0%, var(--travertine) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
}
.philosophy-content .section-title { margin-bottom: 48px; }
.concepts { display: flex; flex-direction: column; gap: 36px; }
.concept {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-paper);
}
.concept-no {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 4px;
}
.concept h3 {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.concept p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 460px;
}

/* =========================================================
   SECTION 04 — MATERIALS
   ========================================================= */
.materials { background: var(--paper); }
.material-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 18px;
}
.material-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  grid-column: span 5;
  grid-row: span 1;
}
.material-tile--xl   { grid-column: span 7; grid-row: span 2; }
.material-tile--wide { grid-column: span 12; }
.material-img {
  position: absolute;
  inset: 0;
  transition: transform 8s var(--ease-slow);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.material-tile:hover .material-img { transform: scale(1.04); }
.material-tile figcaption {
  position: absolute;
  left: 24px; bottom: 24px;
  font-size: 13px;
  color: var(--paper);
  letter-spacing: 0.02em;
  z-index: 2;
  max-width: 320px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.material-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
}
.material-img--travertine {
  background: url('../img/material-travertine.jpg') center / cover no-repeat;
  background-image: -webkit-image-set(url('../img/material-travertine.webp') type('image/webp') 1x, url('../img/material-travertine.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../img/material-travertine.webp') type('image/webp') 1x, url('../img/material-travertine.jpg') type('image/jpeg') 1x);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.material-img--slot {
  background: url('../img/material-slot.jpg') center / cover no-repeat;
  background-image: -webkit-image-set(url('../img/material-slot.webp') type('image/webp') 1x, url('../img/material-slot.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../img/material-slot.webp') type('image/webp') 1x, url('../img/material-slot.jpg') type('image/jpeg') 1x);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.material-img--waterline {
  background: url('../img/material-slot.jpg') 35% 70% / cover no-repeat;
  background-image: -webkit-image-set(url('../img/material-slot.webp') type('image/webp') 1x, url('../img/material-slot.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../img/material-slot.webp') type('image/webp') 1x, url('../img/material-slot.jpg') type('image/jpeg') 1x);
  background-size: cover; background-position: 35% 70%; background-repeat: no-repeat;
  filter: hue-rotate(-6deg) saturate(105%);
}
.material-img--led {
  background:
    linear-gradient(180deg, rgba(14,17,22,0.4) 0%, transparent 40%, rgba(14,17,22,0.55) 100%),
    url('../img/hero-night.jpg') center 30% / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(14,17,22,0.4) 0%, transparent 40%, rgba(14,17,22,0.55) 100%),
    -webkit-image-set(url('../img/hero-night.webp') type('image/webp') 1x, url('../img/hero-night.jpg') type('image/jpeg') 1x);
  background-image:
    linear-gradient(180deg, rgba(14,17,22,0.4) 0%, transparent 40%, rgba(14,17,22,0.55) 100%),
    image-set(url('../img/hero-night.webp') type('image/webp') 1x, url('../img/hero-night.jpg') type('image/jpeg') 1x);
  background-size: auto, cover; background-position: 0 0, center 30%; background-repeat: no-repeat, no-repeat;
}
@media (max-width: 900px) {
  .material-grid { grid-auto-rows: 220px; }
  .material-tile, .material-tile--xl, .material-tile--wide { grid-column: span 12; grid-row: span 1; }
}

/* =========================================================
   SECTION 05 — SELECTED PROJECTS
   ========================================================= */
.projects { background: var(--paper-soft); }
.projects-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-paper);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s var(--ease);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -32px rgba(14,17,22,0.32);
  border-color: rgba(14,17,22,0.18);
}
.project-card--placeholder { cursor: default; }
.project-card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--line-paper); }
/* full-width flagship card (spans both grid columns) */
.project-card--wide { grid-column: 1 / -1; }
.project-card--wide .project-visual { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .project-card--wide .project-visual { aspect-ratio: 3 / 2; } }
.project-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
}
.project-visual svg, .project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 12s var(--ease-slow);
}
.project-card:hover .project-visual svg,
.project-card:hover .project-visual img { transform: scale(1.04); }
.project-visual--placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(111,92,71,0.06) 0px, rgba(111,92,71,0.06) 1px, transparent 1px, transparent 12px),
    linear-gradient(135deg, var(--travertine) 0%, var(--paper-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-status {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
}
.project-status--soft {
  position: static;
  color: var(--stone);
  background: rgba(255,255,255,0.5);
  border-color: rgba(14,17,22,0.12);
}
.project-meta {
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-loc {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-name {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.project-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 480px;
}
.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding-top: 12px;
  border-top: 1px solid var(--line-paper);
}
.project-stats div { display: flex; flex-direction: column; gap: 4px; }
.project-stats dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.project-stats dd {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.project-link svg { transition: transform .5s var(--ease); }
.project-card:hover .project-link svg { transform: translateX(4px); }
.project-link--muted { color: var(--stone); }
@media (max-width: 1100px) { .projects-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SECTION 06 — CONSTRUCTION INTELLIGENCE
   ========================================================= */
.engineering {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(100px, 14vw, 200px);
  padding-bottom: clamp(100px, 14vw, 200px);
}
.engineering-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(50px, 7vw, 90px);
  max-width: 720px;
}
/* deep-link from homepage engineering section → /engineering/ page (G12) */
.eng-deeplink {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  transition: opacity .3s var(--ease);
}
.eng-deeplink:hover { opacity: 0.7; }
.eng-deeplink span { transition: transform .3s var(--ease); display: inline-block; }
.eng-deeplink:hover span { transform: translateX(4px); }
/* ink variant for deep-links sitting on a light/paper section (e.g. Materials) */
.eng-deeplink--ink { color: var(--ink); }
.engineering-stage {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 110px;
}
.layer-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 100px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  border: 1px solid transparent;
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.layer-toggle:hover { color: rgba(255,255,255,0.7); }
.layer-toggle.is-active {
  color: var(--paper);
  background: rgba(123,199,243,0.08);
  border-color: rgba(123,199,243,0.32);
  box-shadow: 0 0 24px -8px rgba(123,199,243,0.35);
}
.layer-toggle.is-active .layer-no { color: var(--blue); }
.layer-no {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3);
  transition: color .4s var(--ease);
}
.layer-name { font-family: "Montserrat", sans-serif; font-weight: 500; }
/* Per-row accordion details — hidden on desktop (shared readout serves there),
   revealed on mobile via the @media (max-width: 760px) accordion block (G10) */
.layer-detail { display: none; }
.engineering-canvas {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 36px;
  min-height: 520px;
}
.eng-svg { width: 100%; height: auto; }
.eng-svg .layer { opacity: 0; transition: opacity .8s var(--ease); }
.eng-svg .layer.is-active { opacity: 1; }
.engineering-readout {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.readout-line { display: flex; flex-direction: column; gap: 6px; }
.readout-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.readout-val {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--paper);
  transition: opacity .4s var(--ease);
}

/* =========================================================
   SECTION 07 — TIMELINE
   ========================================================= */
.timeline { background: var(--paper); }
.timeline-list {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}
.timeline-step { display: flex; flex-direction: column; gap: 18px; }
.step-no {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.step-img {
  aspect-ratio: 3/4;
  border-radius: 4px;
  background-color: var(--paper-soft);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.step-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,17,22,0.35) 100%);
}
.step-img--01 { background-image: linear-gradient(135deg, #6F5C47 0%, #3A2E22 100%); }
.step-img--02 { background-image: linear-gradient(135deg, #4A3B2E 0%, #2C231B 100%); }
.step-img--03 { background-image: linear-gradient(135deg, #7BC7F3 0%, #2E5B7A 100%); }
.step-img--04 { background-image: linear-gradient(135deg, #5A7F95 0%, #0E2E44 100%); }
.step-img--05 { background-image: linear-gradient(135deg, #9B928A 0%, #514943 100%); }
.step-img--06 { background-image: linear-gradient(135deg, #B89B7A 0%, #6F5C47 100%); }
.step-img--07 { background-image: linear-gradient(135deg, #0E2E44 0%, #06151F 100%); }
.step-body h3 {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.step-body p { font-size: 13px; line-height: 1.5; color: var(--stone); }
@media (max-width: 1100px) { .timeline-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .timeline-list { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   SECTION 08 — NIGHT
   ========================================================= */
.night {
  position: relative;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.night-bg { position: absolute; inset: 0; z-index: -1; }
.night-water {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,17,22,0.45) 0%, rgba(14,17,22,0.25) 40%, rgba(14,17,22,0.6) 100%),
    url('../img/hero-night.jpg') center / cover no-repeat,
    #0E1116;
  background-image:
    linear-gradient(180deg, rgba(14,17,22,0.45) 0%, rgba(14,17,22,0.25) 40%, rgba(14,17,22,0.6) 100%),
    -webkit-image-set(url('../img/hero-night.webp') type('image/webp') 1x, url('../img/hero-night.jpg') type('image/jpeg') 1x);
  background-image:
    linear-gradient(180deg, rgba(14,17,22,0.45) 0%, rgba(14,17,22,0.25) 40%, rgba(14,17,22,0.6) 100%),
    image-set(url('../img/hero-night.webp') type('image/webp') 1x, url('../img/hero-night.jpg') type('image/jpeg') 1x);
  background-color: #0E1116;
  background-size: auto, cover; background-position: 0 0, center; background-repeat: no-repeat, no-repeat;
  filter: saturate(105%);
}
.night-shimmer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background:
    repeating-linear-gradient(180deg, rgba(228,194,122,0.05) 0px, rgba(228,194,122,0.05) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 14px);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: nightShimmer 18s ease-in-out infinite alternate;
}
@keyframes nightShimmer {
  0%   { opacity: 0.4; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.75; transform: translate3d(-2%, -6px, 0); }
}
.night-inner { text-align: center; padding: 0 var(--gutter); max-width: 900px; }
.night-line {
  margin-top: 32px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-style: italic;
}

/* =========================================================
   SECTION 09 — FINALE
   ========================================================= */
.finale { background: var(--paper); text-align: center; }
.finale-inner { padding: 0 var(--gutter); max-width: 820px; margin: 0 auto; }
.finale-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 28px 0 24px;
}
.finale-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 540px;
  margin: 0 auto 56px;
}
.finale-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.finale .btn,
.finale .btn--primary,
.finale .btn--ghost { padding: 18px 28px; font-size: 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 12px; }
.finale .btn--primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.finale .btn--ghost { color: var(--ink); border: 1px solid rgba(14,17,22,0.32); background: transparent; }
.finale .btn--ghost:hover { background: rgba(14,17,22,0.04); border-color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .brand-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--paper);
}
.brand-dot { color: var(--gold); margin: 0 4px; }
.footer-line { margin-top: 18px; line-height: 1.6; }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--paper); }
.footer-col--meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  align-items: flex-end;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .geometry-stage { grid-template-columns: 1fr; }
  .geometry-side { padding: 24px 0 0; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 56px; }
  .philosophy-visual { aspect-ratio: 16/9; max-height: 320px; }
  .engineering-stage { grid-template-columns: 1fr; gap: 32px; }
  .layer-toggles {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .layer-toggle { padding: 10px 14px; font-size: 12px; }
  .engineering-readout { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--meta { align-items: flex-start; }
}

@media (max-width: 900px) {
  .floating-header { padding: 22px 20px; }
  .header-nav { display: none; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-content h1 { font-size: clamp(52px, 14vw, 84px); }
  .hero-content p { font-size: 15px; line-height: 1.7; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .finale-ctas { flex-direction: column; }
  .finale-ctas .btn { width: 100%; justify-content: center; }

  /* ---- G10: Engineering toggles → accordion on mobile ---- */
  .layer-toggles {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .layer-toggle {
    width: 100%;
    padding: 16px 4px;
    font-size: 13px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .layer-toggle.is-active {
    background: transparent;
    box-shadow: none;
    border-color: rgba(255,255,255,0.08);
  }
  /* chevron affordance (mobile only) */
  .layer-toggle::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(255,255,255,0.4);
    border-bottom: 1.5px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
  }
  .layer-toggle.is-active::after {
    transform: rotate(-135deg);
    border-color: var(--blue);
  }
  /* the expandable panel */
  .layer-detail {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: max-height .45s var(--ease), opacity .35s var(--ease), padding .45s var(--ease);
  }
  .layer-toggle.is-active + .layer-detail {
    max-height: 180px;
    opacity: 1;
    padding: 4px 4px 18px;
  }
  .layer-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0;
  }
  .layer-detail-key {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    flex: none;
  }
  .layer-detail-val {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--paper);
    text-align: right;
  }
  /* shared readout redundant on mobile (info now inline per row) */
  .engineering-readout { display: none; }
  .engineering-canvas { padding: 20px; min-height: 0; }
}

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