:root {
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--dark); color: #f7f5ee; transition: opacity 500ms var(--ease-out-expo), visibility 500ms; }
.loading-screen.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { width: min(320px, calc(100% - 64px)); }
.loading-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.06em; margin-bottom: 46px; }
.loading-brand .brand-light { color: #aaa99f; }
.loading-track { height: 2px; background: #42433d; overflow: hidden; }
.loading-track i { display: block; width: 42%; height: 100%; background: var(--accent); transform-origin: left; animation: loading-sweep 800ms var(--ease-out-expo) infinite alternate; }
.loading-inner p { display: flex; justify-content: space-between; color: #77786f; font: 400 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 13px; }
.loading-inner p span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 28px; }
.header-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 400 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.header-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }
.architecture { border-top: 1px solid var(--line); }
.architecture-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-top: 58px; }
.architecture-heading h2 { font-size: clamp(42px, 5.8vw, 76px); line-height: .98; letter-spacing: -.08em; font-weight: 500; margin: 0; }
.architecture-heading h2 em { font-style: normal; font-weight: 800; }
.architecture-heading p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 360px; margin: 0 0 4px; }
.architecture-flow { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 68px; padding: 26px 0; }
.architecture-step { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; }
.architecture-step > span { color: var(--muted); font: 400 9px var(--mono); letter-spacing: .1em; }
.architecture-step strong { font-size: 22px; letter-spacing: -.05em; margin: 20px 0 7px; }
.architecture-step p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; max-width: 230px; }
.architecture-connector { display: grid; place-items: center; color: var(--muted); }
.architecture-connector .solar-icon { width: 18px; height: 18px; }
@keyframes loading-sweep { from { transform: scaleX(.2); } to { transform: scaleX(2.2); } }

@media (min-width: 801px) {
  .hero { min-height: 820px; align-items: start; padding-top: 112px; }
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms var(--ease-out-expo), transform 680ms var(--ease-out-expo);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

body.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

body.motion-ready .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 720ms var(--ease-out-expo) forwards;
  animation-delay: calc(var(--hero-index, 0) * 90ms + 80ms);
}

body.motion-ready .hero-signal { opacity: 0; transform: translateY(24px); animation: stage-in 900ms var(--ease-out-expo) 360ms forwards; }
.hero-signal { position: sticky; top: 118px; padding-top: 13px; }
.signal-topline, .signal-readout { display: flex; justify-content: space-between; color: #aaa99f; font: 400 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.signal-graph { position: relative; margin-top: 28px; }
.signal-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.signal-graph line { stroke: #42433d; stroke-width: 1; stroke-dasharray: 3 7; }
.signal-trace { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace-in 1400ms var(--ease-out-expo) 650ms forwards; }
.signal-graph circle { fill: var(--accent); stroke: var(--dark); stroke-width: 5; }
.signal-threshold { position: absolute; right: 0; color: #77786f; font: 400 9px var(--mono); letter-spacing: .08em; }
.threshold-high { top: 24%; }
.threshold-low { top: 70%; }
.signal-current { position: absolute; right: 2%; top: 2%; display: flex; flex-direction: column; gap: 5px; text-align: right; }
.signal-current strong { color: #f7f5ee; font: 500 clamp(34px, 5vw, 62px) var(--mono); letter-spacing: -.09em; }
.signal-current small { color: var(--accent); font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.signal-readout { border-top: 1px solid #42433d; padding-top: 16px; margin-top: 24px; color: #77786f; }
.signal-readout span:last-child { color: #aaa99f; }
@keyframes trace-in { to { stroke-dashoffset: 0; } }

.primitive { transition: background-color 260ms var(--ease-out-quart), padding-left 260ms var(--ease-out-quart), padding-right 260ms var(--ease-out-quart); }
.primitive:hover { background: color-mix(in oklch, var(--accent) 22%, transparent); padding-left: 14px; padding-right: 14px; }
.button-dark { transition: transform 220ms var(--ease-out-quart), background 220ms var(--ease-out-quart), box-shadow 220ms var(--ease-out-quart); }
.button-dark:hover { box-shadow: 5px 5px 0 var(--accent); }
.button, .header-cta { white-space: nowrap; flex-shrink: 0; }
.solar-icon { width: 14px; height: 14px; display: inline-block; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: -2px; }
.button .solar-icon, .header-cta .solar-icon { margin-left: 9px; }
.text-link .solar-icon { margin-left: 1px; }
.stage-caption .solar-icon { width: 16px; height: 16px; }
.footer-meta .solar-icon { width: 12px; height: 12px; margin-left: 4px; }
.production { width: min(1220px, calc(100% - 32px)); padding: 84px max(32px, calc((100% - 1096px) / 2)); background: var(--dark); color: #f7f5ee; }
.production .eyebrow, .production .section-aside { color: #aaa99f; }
.production .section-aside { color: #aaa99f; }
.production-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(48px, 9vw, 130px); margin-top: 64px; }
.production-lede h2 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.02; letter-spacing: -.07em; font-weight: 500; max-width: 520px; margin: 0 0 26px; }
.production-lede h2 em { font-style: normal; font-weight: 800; }
.production-lede > p { color: #b4b2a8; font-size: 16px; line-height: 1.7; max-width: 410px; }
.production-rows { border-top: 1px solid #42433d; }
.production-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 18px; align-items: start; border-bottom: 1px solid #42433d; padding: 22px 0; }
.production-index, .production-tag { color: #aaa99f; font: 400 10px var(--mono); letter-spacing: .1em; }
.production-row strong { display: block; font-size: 17px; letter-spacing: -.03em; margin-bottom: 7px; }
.production-row p { margin: 0; color: #aaa99f; font-size: 13px; line-height: 1.55; }
.production-tag { border: 1px solid #5d5e56; padding: 6px 8px; }
.site-footer { min-width: 0; }
.footer-meta a { white-space: nowrap; }
.waitlist { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 56px; align-items: start; }
.waitlist h2 { max-width: 13ch; font-size: clamp(38px, 4.1vw, 56px); line-height: 1.02; }
.waitlist-copy > p { max-width: 34ch; }
@media (max-width: 800px) {
  .hero-actions { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .production { padding: 58px 27px; }
  .production-grid { display: block; margin-top: 42px; }
  .production-lede { margin-bottom: 44px; }
  .production-row { grid-template-columns: 28px 1fr; gap: 12px; }
  .production-tag { grid-column: 2; justify-self: start; margin-top: -4px; }
  .site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
  .footer-brand { flex: 1 1 140px; }
  .site-footer p { display: block; order: 3; flex-basis: 100%; text-align: left; }
  .footer-meta { display: flex; flex: 1 1 180px; gap: 8px 14px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
  .footer-meta span { margin: 0; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-status { display: none; }
  .architecture-heading { display: block; margin-top: 42px; }
  .architecture-heading p { margin-top: 24px; }
  .architecture-flow { display: block; margin-top: 44px; }
  .architecture-step { min-height: 0; padding: 22px 0; }
  .architecture-connector { display: none; }
  .hero-signal { position: relative; top: auto; margin-top: 64px; }
  .signal-current strong { font-size: 40px; }
  .signal-readout { gap: 18px; flex-wrap: wrap; line-height: 1.4; }
}

/* Hero redesign: a dark operating surface with the decision sample as the product. */
.hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: max(32px, calc((100% - 1160px) / 2));
  padding-right: max(32px, calc((100% - 1160px) / 2));
  background: var(--dark);
  color: #f7f5ee;
  position: relative;
  overflow: clip;
}
.hero:after {
  content: 'JEVLM / DECISION SYSTEM / 001';
  position: absolute;
  right: max(32px, calc((100% - 1160px) / 2));
  bottom: 28px;
  color: #77786f;
  font: 400 9px var(--mono);
  letter-spacing: .14em;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; font-size: clamp(54px, 7.4vw, 104px); }
.hero h1 em { color: #aaa99f; }
.hero-lede { color: #b4b2a8; max-width: 540px; }
.hero .eyebrow, .hero-footnote { color: #aaa99f; }
.hero .text-link { color: #f7f5ee; border-color: #f7f5ee; }
.hero .button-dark { background: var(--accent); color: var(--ink); }
.hero .button-dark:hover { background: #d8ff75; }
.hero-proof { display: flex; gap: 28px; margin-top: 54px; padding-top: 17px; border-top: 1px solid #42433d; max-width: 540px; }
.hero-proof div { display: flex; flex-direction: column; gap: 5px; min-width: 92px; }
.hero-proof strong { color: #f7f5ee; font: 500 16px var(--mono); letter-spacing: -.04em; }
.hero-proof span { color: #77786f; font: 400 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.hero-footnote { margin-top: 28px; }
@media (max-width: 800px) {
  .hero { padding: 64px 19px 86px; }
  .hero:after { right: 19px; bottom: 20px; font-size: 8px; }
  .hero-proof { gap: 18px; margin-top: 44px; }
  .hero-proof div { min-width: 0; }
  .hero-proof strong { font-size: 14px; }
  .hero-proof span { font-size: 8px; }
}

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

@media (max-width: 800px) { .primitive:hover { padding-left: 0; padding-right: 0; } }

@media (prefers-reduced-motion: reduce) {
  body.motion-ready .reveal, body.motion-ready .hero-copy > *, body.motion-ready .hero-signal { opacity: 1; transform: none; animation: none; transition: none; }
}
