@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300&family=Space+Mono:wght@400;700&display=swap');

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

/* Light / editorial palette. Variable names kept from the dark edition so
   existing markup keeps working; only the values are inverted.
   --white is now the primary ink colour (near-black). No colour accents. */
:root {
  --bg:        #ffffff;
  --bg2:       #f6f5f3;
  --bg3:       #eeece7;
  --border:    rgba(0,0,0,0.14);
  --accent:    #0d0d0d;
  --accent-lt: #444444;
  --white:     #0d0d0d;
  --gray1:     #1c1c1c;
  --gray2:     #555555;
  --gray3:     #8a8a8a;
  --mono:      'Space Mono', ui-monospace, monospace;
  --radius:    12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--gray1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }

/* ══════════════ FIXED HUD OVERLAY ══════════════
   Uses difference blending so the readouts stay legible over both the dark
   hero video and the white body below, with no JS. */
.hud { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.hud-corner {
  position: absolute; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9a9a9a; mix-blend-mode: difference;
}
.hud-tl { top: 1.5rem; left: 1.75rem; }
.hud-tr { top: 1.62rem; right: 9.5rem; text-align: right; }
.hud-bl { bottom: 1.5rem; left: 1.75rem; }
.hud-br { bottom: 1.5rem; right: 1.75rem; text-align: right; }
.hud-corner b { color: #ffffff; font-weight: 700; }
.hud-status .status-num { color: #ffffff; }

/* scroll progress rail */
.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; }
.progress-fill { height: 100%; width: 0%; background: #ffffff; mix-blend-mode: difference; }

/* menu button + overlay */
.menu-btn {
  position: fixed; top: 1.15rem; right: 1.5rem; z-index: 120;
  pointer-events: all; background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18); backdrop-filter: blur(10px);
  color: #0d0d0d; font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.55rem 0.9rem; border-radius: 6px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.menu-btn:hover { border-color: rgba(0,0,0,0.45); background: #fff; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px); opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }
.menu-close {
  position: absolute; top: 1.15rem; right: 1.5rem;
  background: none; border: 1px solid var(--border); color: var(--gray1);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.55rem 0.9rem; border-radius: 6px; cursor: pointer;
}
.menu-close:hover { border-color: rgba(0,0,0,0.45); }
.menu-list { list-style: none; max-width: 1120px; margin: 0 auto; width: 100%; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 1.25rem;
  text-decoration: none; color: var(--white);
  font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; padding: 0.35rem 0;
  transform: translateY(105%); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), color 0.2s;
}
.menu-overlay.open .menu-list a { transform: translateY(0); }
.menu-list a:hover { color: var(--gray2); }
.menu-list .mnum { font-family: var(--mono); font-size: 0.8rem; color: var(--gray3); font-weight: 400; }

/* ══════════════ SCROLL REVEAL PRIMITIVES ══════════════ */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.in-view .reveal-line > span,
.reveal-line.in-view > span { transform: translateY(0); }

.fade-up { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transition: opacity 1.1s ease; }
.fade-in.in-view { opacity: 1; }

.scale-in { opacity: 0; transform: scale(1.08); transition: opacity 1s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.scale-in.in-view { opacity: 1; transform: scale(1); }

.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ══════════════ CHAPTER SCAFFOLD ══════════════
   Uniform vertical rhythm, all in rem so spacing is identical at every
   viewport height (vh units made it drift between screens). */
.chapter { position: relative; padding: 8rem 0; }
.chapter-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray2);
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem;
}
/* sub-heading inside a chapter that needs separation from the block above */
.chapter-tag.spaced { margin-top: 5rem; }
.chapter-tag::before { content: ''; width: 34px; height: 1px; background: var(--white); }

.ghost-num {
  position: absolute; top: 4vh; right: 2.5rem;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(6rem, 20vw, 20rem); line-height: 0.8;
  color: rgba(0,0,0,0.038); pointer-events: none; user-select: none; z-index: 0;
}

.big-head {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 900;
  color: var(--white); letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: 1.75rem;
}
.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 300;
  color: var(--gray1); line-height: 1.55; max-width: 780px;
  margin-bottom: 2rem;
}
.body-p { color: var(--gray2); font-size: 1.02rem; line-height: 1.8; font-weight: 400; max-width: 620px; margin-bottom: 1.25rem; }
.body-p strong { color: var(--white); font-weight: 600; }
.body-p:last-child { margin-bottom: 0; }

.link-mono {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.82rem; color: var(--white);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  margin-top: 0.75rem;
  transition: gap 0.2s, color 0.2s;
}
.link-mono:hover { color: var(--gray2); gap: 0.7rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--gray2); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.3rem 0.65rem;
}

/* ══════════════ INTRO (keeps the dark video treatment) ══════════════ */
#intro {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 0 2.5rem;
  background: #000;
}
#intro .intro-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.62;
}
#intro::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.34) 55%, rgba(0,0,0,0.52) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 32%, transparent 68%, rgba(0,0,0,0.96));
}
.intro-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%; }
.intro-eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 1.5rem;
}
#intro h1 {
  font-size: clamp(4rem, 13vw, 11rem); font-weight: 900; color: #fff;
  line-height: 0.86; letter-spacing: -0.05em;
}
#intro h1 .dot { color: #fff; }
.intro-sub {
  margin-top: 2rem; max-width: 560px; font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300; color: rgba(255,255,255,0.74); line-height: 1.6;
}
.intro-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.68); display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
}
.intro-hint .bar { width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,0.75), transparent); animation: hintpulse 2s ease infinite; }
@keyframes hintpulse { 0%,100%{opacity:.3; height:32px} 50%{opacity:1; height:48px} }

/* ══════════════ CH: THE APPROACH ══════════════ */
.approach-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5rem; align-items: end; margin-top: 2rem; }
.counters { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.counter { padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.counter-n { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; color: var(--white); letter-spacing: -0.04em; line-height: 1; }
.counter-n span { color: var(--white); }
.counter-l { font-family: var(--mono); font-size: 0.72rem; color: var(--gray2); line-height: 1.5; margin-top: 0.5rem; letter-spacing: 0.04em; }
.certs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.cert { font-family: var(--mono); font-size: 0.7rem; color: var(--gray2); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 0.9rem; }

/* ══════════════ PROJECT SCENES (full-bleed media, dark scrim, white text) ══════════════ */
.scene { position: relative; }
.scene-sticky {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 7rem 0; overflow: hidden; background: #0a0a0a;
}
.scene-media { position: absolute; inset: 0; z-index: 0; }
.scene-media img, .scene-media video { width: 100%; height: 100%; object-fit: cover; }
.scene-scrim {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.72) 55%, rgba(5,5,5,0.60) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.35), rgba(5,5,5,0.15) 45%, rgba(5,5,5,0.45));
}
.scene-content { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; width: 100%; }
.scene-panel { max-width: 620px; }

/* text sitting on the cinematic scenes stays white */
.scene-sticky .big-head { color: #fff; }
.scene-sticky .body-p { color: rgba(255,255,255,0.82); }
.scene-sticky .body-p strong { color: #fff; }
.scene-sticky .chapter-tag { color: rgba(255,255,255,0.78); }
.scene-sticky .chapter-tag::before { background: rgba(255,255,255,0.9); }
.scene-sticky .link-mono { color: #fff; }
.scene-sticky .link-mono:hover { color: rgba(255,255,255,0.72); }
.scene-sticky .btn-ghost { border-color: rgba(255,255,255,0.42); color: #fff; }
.scene-sticky .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* detail band below each scene */
.detail-band { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 6rem 0; align-items: start; }
.spec-list { list-style: none; }
.spec-list-band { padding: 6rem 0; }
.spec-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--gray1); font-size: 0.98rem;
}
.spec-list li:first-child { border-top: 1px solid var(--border); }
.spec-list .sidx { font-family: var(--mono); font-size: 0.72rem; color: var(--gray3); }

/* callout card */
.callout {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
}
.callout::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--white), transparent); }
.callout-name { font-size: 1.8rem; font-weight: 900; color: var(--white); letter-spacing: -0.03em; }
.badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(0,0,0,0.3); background: transparent;
  padding: 0.28rem 0.7rem; border-radius: 100px;
}
/* shared card internals (patents, article feature) */
.card-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray2); display: block; }
.card-title { font-size: 1.2rem; font-weight: 800; color: var(--white); line-height: 1.3; margin: 1rem 0 0.5rem; letter-spacing: -0.01em; }
.card-assoc { font-family: var(--mono); font-size: 0.72rem; color: var(--white); }
.card-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--gray3); margin-top: 0.35rem; }
.card-body { color: var(--gray2); font-size: 0.92rem; line-height: 1.7; margin-top: 1rem; }
.pill-plain { text-transform: none; }

.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.mini-stat-n { font-size: 1.4rem; font-weight: 900; color: var(--white); }
.mini-stat-l { font-family: var(--mono); font-size: 0.62rem; color: var(--gray3); letter-spacing: 0.05em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.pill {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); background: transparent; border: 1px solid rgba(0,0,0,0.22);
  padding: 0.3rem 0.75rem; border-radius: 100px; text-decoration: none; transition: all 0.2s;
}
.pill:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.45); transform: translateY(-2px); }

/* marquee */
.marquee { margin-top: 4rem; padding: 3rem 0 6rem; border-top: 1px solid var(--border); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray2); margin-bottom: 2rem; }
.marquee-track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: scrollx 30s linear infinite; }
.marquee-track img { height: 44px; width: auto; object-fit: contain; opacity: 0.92; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.photo-strip img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* card grids */
.card-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mini-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color 0.25s, transform 0.25s;
}
.mini-card:hover { border-color: rgba(0,0,0,0.32); transform: translateY(-3px); }
.mini-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.mini-card p { font-size: 0.9rem; color: var(--gray2); line-height: 1.65; }
.mini-card .loc { font-family: var(--mono); font-size: 0.68rem; color: var(--gray3); display: block; margin-bottom: 0.75rem; }

/* article feature */
.article-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2.5rem; }
.article-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--white),transparent); }
.article-card img { border-radius: 10px; border: 1px solid var(--border); margin-bottom: 1.5rem; height: 220px; width: 100%; object-fit: cover; object-position: center top; }
.article-quote { font-style: italic; color: var(--gray1); line-height: 1.7; font-weight: 400; padding-left: 1.25rem; border-left: 2px solid var(--border); margin: 1.25rem 0; }

/* ══════════════ OUTRO ══════════════ */
#outro { min-height: 90svh; display: flex; align-items: center; position: relative; overflow: hidden; }
#outro .bg-word {
  position: absolute; bottom: -3rem; right: -1rem; font-weight: 900; font-size: 22rem;
  line-height: 1; color: rgba(0,0,0,0.035); pointer-events: none; user-select: none;
}
.outro-inner { position: relative; z-index: 2; }
#outro h2 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 900; color: var(--white); letter-spacing: -0.05em; line-height: 0.92; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.contact-link {
  display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; min-width: 260px; transition: all 0.25s;
}
.contact-link:hover { border-color: rgba(0,0,0,0.5); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.contact-link .cl-k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray3); }
.contact-link .cl-v { font-size: 0.98rem; font-weight: 600; color: var(--gray1); }
.foot { border-top: 1px solid var(--border); padding: 1.75rem 0; text-align: center; font-family: var(--mono); font-size: 0.7rem; color: var(--gray3); letter-spacing: 0.06em; }
.foot span { color: var(--white); }

/* team modal */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; transform: translateY(20px) scale(0.98); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 30px 80px rgba(0,0,0,0.18); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; background: var(--bg2); border: 1px solid var(--border); color: var(--gray1); font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.modal-close:hover { background: var(--bg3); }
.modal h3 { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.modal .msub { color: var(--gray2); font-size: 0.9rem; line-height: 1.7; font-weight: 400; margin-bottom: 2rem; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tgrid h5 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem; }
.tgrid .trole { font-family: var(--mono); font-size: 0.68rem; color: var(--gray3); margin-bottom: 0.5rem; }
.tgrid p { font-size: 0.82rem; color: var(--gray2); line-height: 1.6; font-weight: 400; }
.btn-ghost { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(0,0,0,0.25); color: var(--white); background: transparent; padding: 0.7rem 1.2rem; border-radius: 6px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-ghost:hover { border-color: rgba(0,0,0,0.6); background: rgba(0,0,0,0.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .approach-grid, .detail-grid, .article-feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3,1fr); }
  .scene-scrim { background: linear-gradient(to bottom, rgba(5,5,5,0.62), rgba(5,5,5,0.88)); }
  .scene-panel { max-width: none; }
  .tgrid { grid-template-columns: 1fr; }
  .hud-tr, .hud-br { display: none; }
}
@media (max-width: 600px) {
  .wrap, #intro { padding-left: 1.5rem; padding-right: 1.5rem; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .ghost-num { font-size: 30vw; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-line > span, .fade-up, .fade-in, .scale-in { transition: none !important; transform: none !important; opacity: 1 !important; }
}
