/* =====================================================================
   RELEM Labs — The Atrium
   Near-black architecture, brushed-metal headings, one champagne accent.
   Lab light (amber, living green) appears only where light is emitted.
   ===================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0e;
  --surface: #111112;
  --surface-2: #161618;
  --surface-3: #1c1c1f;
  --hair: #1f1f22;
  --line: #26262a;
  --line-strong: #3a3a3f;
  --head: #f2f0ec;
  --text: #edebe7;
  --text-2: #b8b4ae;
  --muted: #a8a49e;
  --accent: #d8b886;
  --accent-ink: #15120d;
  --accent-soft: rgba(216, 184, 134, .14);
  --amber: #e8a54b;
  --green: #3ddc97;
  --warn-bg: #1e1a13;
  --warn-line: #5a4826;
  --warn: #e6b866;
  --silver: linear-gradient(180deg, #f6f4f0 0%, #d9d5cf 38%, #b9b5af 60%, #908c86 100%);

  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --pad: clamp(64px, 7.5vw, 108px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--head); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(216, 184, 134, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-color: #2c2c30 transparent; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band-alt { background: var(--bg-alt); }
.band-alt::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(61, 220, 151, .55) 26%, rgba(150, 110, 255, .5) 52%, rgba(216, 184, 134, .45) 74%, transparent 96%);
  box-shadow: 0 0 22px 2px rgba(61, 220, 151, .16), 0 0 60px 6px rgba(130, 90, 230, .08);
}
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-sub { color: var(--text-2); font-size: 17px; margin-top: 16px; max-width: 520px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 99px; font-weight: 600; }
.skip:focus { left: 16px; }

h2 { font: 400 clamp(24px, 3.2vw, 38px)/1.22 var(--display); letter-spacing: -.005em; }
.h2 { font: 400 clamp(20px, 2.4vw, 30px)/1.25 var(--display); letter-spacing: -.005em; }
h3 { font: 600 clamp(17px, 1.4vw, 19px)/1.35 var(--ui); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
section { position: relative; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 99px; text-decoration: none; cursor: pointer;
  font: 600 15.5px/1 var(--ui); letter-spacing: .01em; border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out), box-shadow .3s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(216, 184, 134, 0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #e6caa0; box-shadow: 0 8px 30px -8px rgba(216, 184, 134, .55); }
  .btn-ghost:hover { border-color: var(--accent); color: #fff; }
  .btn:hover svg { transform: translateX(3px); }
}

/* ---------------- progress + nav ---------------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(216, 184, 134, 0), var(--accent)); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 14px var(--gutter); transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 10, 10, .78); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: auto; }
.brand-word { display: grid; line-height: 1; }
.brand-relem { font: 400 18px/1 var(--display); letter-spacing: .12em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-labs { font: 500 9.5px/1 var(--mono); letter-spacing: .62em; color: var(--muted); margin-top: 6px; }
.nav nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.nav nav a:not(.btn) { color: var(--text-2); text-decoration: none; font: 500 14.5px/1 var(--ui); padding: 15px 12px; border-radius: 99px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav nav a:not(.btn):hover { color: #fff; } }
.nav nav .btn { margin-left: 8px; }

/* =====================================================================
   HERO — the atrium
   ===================================================================== */
.hero { height: 100vh; height: 100svh; min-height: 640px; }
.hero-stage { position: relative; height: 100%; overflow: hidden; background: #050505; }
.atrium { position: absolute; inset: 0; will-change: transform; }
/* On wide screens the render slides right, so its lit R sign sits beside the headline, not behind it */
@media (min-width: 1024px) { .atrium { left: 22vw; right: -22vw; } }
.atrium-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.screen-glow { position: absolute; border-radius: 50%; filter: blur(30px); mix-blend-mode: screen; opacity: .0; pointer-events: none; }
.screen-amber { background: radial-gradient(closest-side, rgba(232, 165, 75, .55), transparent); }
.screen-green { background: radial-gradient(closest-side, rgba(61, 220, 151, .5), transparent); }
.atrium-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .82) 30%, rgba(5, 5, 5, .25) 52%, rgba(5, 5, 5, .08) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, .55) 0%, rgba(5, 5, 5, 0) 22%, rgba(5, 5, 5, 0) 70%, var(--bg) 100%);
}
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-copy { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.hero-copy > * { max-width: 640px; }
.hero h1 { font: 400 clamp(30px, 4.4vw, 58px)/1.14 var(--display); letter-spacing: -.01em; color: var(--head); margin-bottom: 26px; }
.hero h1 .lit { color: var(--accent); text-shadow: 0 0 26px rgba(216, 184, 134, .35); }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--text-2); margin-bottom: 36px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the crisp metal mark that the camera resolves into */
.hero-mark { position: absolute; z-index: 4; left: 50%; top: 50%; width: min(520px, 60vw); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.metal { position: relative; }
.metal img { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(216, 184, 134, .14)); }
.sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 244, 220, .9) 48%, rgba(255, 255, 255, 1) 50%, rgba(255, 244, 220, .9) 52%, transparent 70%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url("assets/r-mark.png") center / 100% 100% no-repeat; mask: url("assets/r-mark.png") center / 100% 100% no-repeat;
}
.sheen.run { animation: sheen 2.4s var(--ease-in-out) both; }
@keyframes sheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }

/* RELEM → Restoring Every Life Every Moment */
.name-reveal {
  position: absolute; z-index: 5; left: 50%; bottom: clamp(56px, 11vh, 120px); transform: translateX(-50%);
  width: min(1100px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  opacity: 0; pointer-events: none;
}
.nr-item { display: grid; justify-items: center; gap: 12px; text-align: center; }
.nr-l { font: 400 clamp(34px, 5.4vw, 72px)/1 var(--display); color: var(--accent); text-shadow: 0 0 30px rgba(216, 184, 134, .3); }
.nr-l.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.nr-w { font: 500 clamp(11px, 1.05vw, 14px)/1.2 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }

/* =====================================================================
   ABOUT — who we are
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-copy p { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 600px; }
.about-copy .about-lead { color: var(--text); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; margin-top: 24px; }
.about-copy strong { color: var(--accent); font-weight: 600; }
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--text); font-size: 15.5px; }
.team { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--hair); }
.team-title { font: 400 clamp(17px, 1.6vw, 21px)/1.3 var(--display); }

/* =====================================================================
   WHAT WE DO — three pillars
   ===================================================================== */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.pillars li { padding-top: 26px; border-top: 1px solid var(--line-strong); }
.pillars svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.pillars svg path, .pillars svg circle { stroke-dasharray: 80; stroke-dashoffset: 0; }
.pillars h3 { font: 400 clamp(17px, 1.6vw, 21px)/1.3 var(--display); }
.pillars p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }

/* =====================================================================
   HOW WE WORK — a rail that lights as you read
   ===================================================================== */
.process { position: relative; list-style: none; margin: 0; padding: 0; }
.process .rail { position: absolute; left: 23px; top: 46px; bottom: 46px; width: 2px; padding: 0; background: var(--line-strong); }
.rail span { display: block; height: 100%; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, rgba(216, 184, 134, .2), var(--accent)); box-shadow: 0 0 14px rgba(216, 184, 134, .6); }
.process li:not(.rail) { position: relative; display: grid; grid-template-columns: 48px minmax(150px, .75fr) 1.4fr; gap: 8px 26px; align-items: center; padding: 22px 0; }
.pnode {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line-strong);
  font: 400 13px/1 var(--display); color: var(--muted); transition: border-color .4s ease, color .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.process li.on .pnode { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(216, 184, 134, .08); }
.process li.last.on .pnode { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 30px rgba(216, 184, 134, .5); }
.process h3 { font: 400 clamp(15px, 1.3vw, 17px)/1.35 var(--display); letter-spacing: .02em; }
.process p { color: var(--text-2); font-size: 15.5px; }

/* =====================================================================
   POLICIES — the short version, with the full documents a click away
   ===================================================================== */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.policy { display: grid; gap: 16px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 3vw, 40px); transition: border-color .25s ease, transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .policy:hover { border-color: rgba(216, 184, 134, .45); transform: translateY(-3px); } }
.policy > svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.policy h3 { font: 400 clamp(18px, 1.7vw, 22px)/1.3 var(--display); }
.policy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.policy li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15.5px; }
.policy li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.policy .more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; justify-self: start; }
.policy .more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .policy .more:hover svg { transform: translateX(4px); } }
.policy .more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Krienthera introduction */
.k-lead { margin-bottom: clamp(48px, 6vw, 80px); max-width: var(--wrap); }
.k-lead h2 { margin-top: 18px; max-width: 760px; }

/* =====================================================================
   PROBLEM — scattered paper becomes one record
   ===================================================================== */
.about, .what, .process-sec, .policies, .problem, .krienthera, .portals, .how, .safety, .next, .contact { padding: var(--pad) 0; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.points li { padding-top: 22px; border-top: 1px solid var(--hair); }
.points p { color: var(--text-2); margin-top: 6px; }

.scatter { position: relative; height: clamp(420px, 42vw, 520px); }
.frag {
  position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font: 500 13.5px/1 var(--ui); color: var(--text-2); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
  transform: translate(-50%, -50%) translate(calc(var(--x, 0) * 1%), calc(var(--y, 0) * 1%)) rotate(calc(var(--r, 0) * 1deg));
  will-change: transform, opacity;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px rgba(232, 165, 75, .7); }
.dot.green { background: var(--green); box-shadow: 0 0 10px rgba(61, 220, 151, .6); }
.record {
  position: absolute; left: 50%; top: 50%; width: min(360px, 88%); transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #151517, #101011); border: 1px solid rgba(216, 184, 134, .45); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 0 0 1px rgba(216, 184, 134, .08), 0 30px 80px -30px rgba(216, 184, 134, .35); opacity: 0;
}
.scatter::after {
  content: ""; position: absolute; left: 22%; right: 22%; top: calc(50% + 120px); height: 50px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 184, 134, .22), transparent); filter: blur(10px); opacity: var(--floor, 0); transition: opacity .6s ease;
}
.record-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font: 400 15px/1 var(--display); color: var(--head); }
.record-head .mono { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.record-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--text-2); }
.record-row:last-child { border-bottom: 0; }
.record-row .mono { font-size: 11px; color: var(--muted); }
.src { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 500 9.5px/1 var(--mono); font-style: normal; }
.record-row.warn { color: var(--warn); }
.record-row.warn .src { border-color: var(--warn); color: var(--warn); }

/* =====================================================================
   KRIENTHERA
   ===================================================================== */
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.product-name {
  font: 400 clamp(32px, 4.6vw, 52px)/1.05 var(--display); letter-spacing: .02em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.k-tag { font: italic 300 clamp(20px, 1.8vw, 24px)/1.3 var(--ui); color: var(--accent); margin: 10px 0 22px; }
.k-intro { color: var(--text-2); font-size: 17px; max-width: 560px; }
.k-intro strong { color: var(--head); font-weight: 600; }
.features { list-style: none; margin: 34px 0 34px; padding: 0; display: grid; gap: 22px; }
.features li { display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start; }
.features svg, .ledger svg, .contact-lines svg {
  width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.features p { color: var(--text-2); margin-top: 4px; font-size: 15px; }

.mock {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0d1512 0%, #0f1211 40%, #101112 100%);
  border-color: rgba(61, 220, 151, .38);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(61, 220, 151, .12), 0 0 70px -6px rgba(61, 220, 151, .3), inset 0 0 70px rgba(61, 220, 151, .06);
}
/* the glass floor: a pool of screen light under the panel, never a mirrored copy of its content */
.screen-stand { position: relative; }
.screen-stand::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 60px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 220, 151, .26), rgba(61, 220, 151, .06) 60%, transparent); filter: blur(10px);
}
.mock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 20px;
  background: repeating-linear-gradient(180deg, rgba(61, 220, 151, .045) 0 1px, transparent 1px 4px), radial-gradient(120% 60% at 50% 0%, rgba(61, 220, 151, .14), transparent 60%);
}
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none; padding: 1px; background: linear-gradient(140deg, rgba(216, 184, 134, .5), transparent 40%, transparent 70%, rgba(61, 220, 151, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 18px; border-bottom: 1px solid rgba(61, 220, 151, .22); background: rgba(61, 220, 151, .05); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2e; }
.mock-title { font: 500 13px/1 var(--ui); color: var(--text-2); flex: 1; }
.tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(216, 184, 134, .4); border-radius: 99px; padding: 5px 9px; }
.mock-body { padding: 20px 18px 6px; display: grid; gap: 14px; min-height: 420px; align-content: start; }
.bubble { border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.bubble.q { background: var(--surface-2); border: 1px solid var(--line); justify-self: end; max-width: 88%; }
.bubble.a { background: var(--surface-3); border: 1px solid var(--line); max-width: 96%; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kibo-dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2d8, var(--accent)); box-shadow: 0 0 10px rgba(216, 184, 134, .8); }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; font: 500 11px/1 var(--mono); color: var(--accent); background: rgba(216, 184, 134, .12); border: 1px solid rgba(216, 184, 134, .4); vertical-align: 1px; }
.sources { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sources li { display: flex; align-items: center; gap: 10px; }
.alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); }
.alert svg { width: 22px; height: 22px; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert strong { color: var(--warn); font: 600 14px/1.3 var(--ui); }
.alert p { color: #d6c7a8; font-size: 13.5px; margin-top: 4px; }
.mock-foot { padding: 14px 18px 18px; font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.replay { position: relative; z-index: 2; margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 99px; background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); font: 500 12.5px/1 var(--ui); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .replay:hover { border-color: var(--accent); color: var(--accent); } }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: think 1s var(--ease-in-out) infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* =====================================================================
   PORTALS — the record at the centre
   ===================================================================== */
.orbit-wrap { position: relative; aspect-ratio: 1000 / 560; max-width: 1000px; margin: 0 auto; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links path { fill: none; stroke: rgba(216, 184, 134, .32); stroke-width: 1.2; stroke-dasharray: 3 6; }
.pulses circle { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(216, 184, 134, .9)); }
.core circle { fill: #141415; stroke: rgba(216, 184, 134, .7); stroke-width: 1.4; }
.core .ring { fill: none; stroke: rgba(216, 184, 134, .25); stroke-dasharray: 2 5; transform-origin: 500px 280px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-t { font: 400 12px/1 var(--display); fill: var(--head); text-anchor: middle; letter-spacing: .14em; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: min(230px, 24%);
  background: rgba(17, 17, 18, .92); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: center;
  backdrop-filter: blur(6px); transition: border-color .25s ease, transform .25s var(--ease-out);
}
.portal-list h3 { font-size: 16px; }
.portal-list p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .portal-list li:hover { border-color: rgba(216, 184, 134, .6); transform: translate(-50%, -50%) translateY(-3px); } }

/* =====================================================================
   HOW IT WORKS — the reading beam
   ===================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.beam { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-strong); }
.beam span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(216, 184, 134, .2), var(--accent)); box-shadow: 0 0 14px rgba(216, 184, 134, .6); }
.step { position: relative; padding-top: 64px; }
.step-n {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong); font: 400 13px/1 var(--display); color: var(--muted);
  transition: border-color .4s ease, color .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.step.on .step-n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(216, 184, 134, .08); }
.step.decide.on .step-n { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 30px rgba(216, 184, 134, .5); }
.step h3 { font: 400 clamp(17px, 1.6vw, 21px)/1.25 var(--display); }
.step.decide h3 { color: var(--accent); }
.step p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

/* =====================================================================
   SAFETY — a ruled ledger of commitments
   ===================================================================== */
.safety-grid, .split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.safety-grid .sec-head, .split .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger li { display: grid; grid-template-columns: 30px minmax(150px, .8fr) 1.4fr; gap: 10px 22px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ledger svg { align-self: start; margin-top: -3px; }
.ledger svg path, .ledger svg circle, .ledger svg rect { stroke-dasharray: 80; stroke-dashoffset: 0; }
.ledger h3 { font: 400 clamp(15px, 1.3vw, 17px)/1.35 var(--display); letter-spacing: .02em; }
.ledger p { color: var(--text-2); font-size: 15.5px; }
.ledger li:first-child h3 { color: var(--accent); }

/* =====================================================================
   LAB + TEAM
   ===================================================================== */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.lab-next { position: relative; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 20px; padding: clamp(26px, 3vw, 40px); min-height: 380px; }
.screen-amber-frame {
  border: 1px solid rgba(232, 165, 75, .35) !important; background: radial-gradient(90% 80% at 75% 50%, rgba(232, 165, 75, .1), transparent 70%), #0e0c09;
  box-shadow: 0 0 80px -20px rgba(232, 165, 75, .25), inset 0 0 0 1px rgba(255, 210, 150, .04);
}
.screen-amber-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(232, 165, 75, .035) 0 1px, transparent 1px 4px); }
.helix { position: absolute; right: -10px; top: 0; height: 100%; width: 46%; opacity: .9; }
.lab-next-copy { position: relative; max-width: 600px; }
.lab-next-copy p { color: var(--text-2); margin: 14px 0 22px; }
.status.champ { color: var(--accent); border-color: rgba(216, 184, 134, .45); }
.status { display: inline-block; white-space: nowrap; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(232, 165, 75, .45); border-radius: 99px; padding: 7px 12px; }
.people { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px 20px; }
.people li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 var(--display); color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(216, 184, 134, .3); }
.people h4 { font-size: 16px; }
.people p { color: var(--muted); font-size: 13.5px; }

/* More products — loading */
.next .lab-next { min-height: 420px; display: flex; align-items: center; }
.loader { width: min(320px, 100%); height: 2px; margin: 22px 0 4px; border-radius: 2px; overflow: hidden; background: rgba(232, 165, 75, .18); }
.loader i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--amber), transparent); box-shadow: 0 0 12px rgba(232, 165, 75, .7); animation: loading 2.2s var(--ease-in-out) infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.lab-next-copy h2 { margin-top: 18px; }
.sub-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.sub-row input {
  flex: 1 1 240px; min-height: 48px; padding: 12px 16px; border-radius: 99px; background: rgba(10, 10, 10, .8); border: 1px solid rgba(232, 165, 75, .35);
  color: var(--text); font: 400 15.5px/1.4 var(--ui); transition: border-color .2s ease, box-shadow .2s ease;
}
.sub-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 184, 134, .18); }
.sub-row input[aria-invalid="true"] { border-color: #e07a6f; }
.sub-form .form-note { margin-top: 12px; }
.sub-status { margin-top: 10px; font-size: 14.5px; color: #f0a59b; min-height: 1px; }
.sub-status.ok { color: var(--green); }
.sub-form.sent .sub-row { display: none; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-copy p { color: var(--text-2); margin-top: 18px; max-width: 480px; }
.contact-lines { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-lines li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; color: var(--text); min-height: 44px; }
.contact-lines a { text-decoration: underline; text-decoration-color: rgba(216, 184, 134, .5); text-underline-offset: 4px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .contact-lines a:hover { color: var(--accent); } }
.demo-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field.full, .full { grid-column: 1 / -1; }
.field label { font: 500 13.5px/1.2 var(--ui); color: var(--text-2); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--text); font: 400 15.5px/1.4 var(--ui); transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 184, 134, .18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e07a6f; }
::placeholder { color: #7d7a74; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--accent); text-underline-offset: 3px; }
.form-status { font-size: 14px; color: #f0a59b; min-height: 1px; }
.form-status.ok { color: var(--green); }
.form-done[hidden] { display: none !important; }
.form-done { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 30px 10px; }
.form-done svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .9s var(--ease-out) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease-out) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h3 { font: 400 20px/1.3 var(--display); }
.form-done p { color: var(--text-2); }
.demo-form.sent > :not(.form-done) { display: none; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--hair); padding: 40px 0 48px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-grid .brand img { width: 40px; }
.foot-tag { color: var(--muted); font-size: 14px; flex: 1; min-width: 220px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 14px 10px; }
@media (hover: hover) and (pointer: fine) { .footer nav a:hover { color: var(--accent); } }
.foot-copy { color: var(--muted); font: 400 12.5px/1 var(--mono); width: 100%; }

/* film grain — the render's own texture carried through the page */
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ---------------- motion-ready initial states (only when JS + GSAP run) ---------------- */
.motion .reveal { opacity: 0; transform: translateY(26px); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .safety-grid, .split { grid-template-columns: 1fr; }
  .safety-grid .sec-head, .split .sec-head { position: static; margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .beam { display: none; }
  .orbit-wrap { aspect-ratio: auto; }
  .orbit { position: relative; height: 300px; }
  .portal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
  .portal-list li { position: static; transform: none; width: auto; }
  .helix { opacity: .45; width: 60%; }
  .about-grid { grid-template-columns: 1fr; }
  .lab-next-copy { max-width: 100%; }
}
@media (max-width: 640px) {
  /* lift the render so its lit sign sits above the copy */
  .atrium { top: -16%; bottom: 16%; }
  .name-reveal { bottom: 26vh; }
  .safety-grid, .split { grid-template-columns: 1fr; }
  .safety-grid .sec-head, .split .sec-head { position: static; margin-bottom: 8px; }
  .ledger li { grid-template-columns: 30px 1fr; }
  .ledger p { grid-column: 2; }
  .process li:not(.rail) { grid-template-columns: 48px 1fr; align-items: start; }
  .process li:not(.rail) h3 { align-self: center; }
  .process p { grid-column: 2; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .nav nav a:not(.btn) { display: none; }
  .hero-copy { justify-content: flex-end; padding-bottom: 96px; }
  .atrium-shade { background: linear-gradient(180deg, rgba(5, 5, 5, .45) 0%, rgba(5, 5, 5, .15) 22%, rgba(5, 5, 5, .9) 40%, rgba(5, 5, 5, .94) 70%, var(--bg) 100%); }
  .actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .name-reveal { gap: 4px; }
  .nr-w { letter-spacing: .1em; font-size: 9.5px; }
  .scatter .frag { font-size: 12px; padding: 10px 12px; }
  .next .helix { opacity: .2; right: -30%; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span, .core .ring, .caret::after, .thinking i, .loader i { animation: none !important; }
  .loader i { width: 100%; opacity: .5; }
  .pulses { display: none; }
  .sheen { display: none; }
}
