/* Abdias Legacy: split stage, Field | System.
   Theme by tokens; the engine stylesheet is untouched. Brand Palette 1 (2026-11-25, AIS-OS
   projects/AbdiasLegacyLLC/Brand/README.md): black carries the page, Fire Orange marks the one thing
   that matters, Signal Cyan draws the system lines. Black text on orange, never white. */

:root {
  --sc-canvas:     #0a0a0a;
  --sc-surface:    #151515;
  --sc-ink:        #ffffff;
  --sc-ink-soft:   #a3a3a3;
  --sc-accent:     #fa660f;
  --sc-accent-ink: #0a0a0a;

  --panel: #151515;
  --bg:    #0a0a0a;
  --fire:  #fa660f;
  --cyan:  #38bdf8;

  --sc-font-display: "Space Grotesk", system-ui, sans-serif;
  --sc-font-text:    "Inter", system-ui, sans-serif;
  --sc-font-mono:    "JetBrains Mono", Consolas, monospace;
  --sc-shadow-color: 0 0% 0%;

  --split: 50;
  --split-px: 50vw;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: fixed; left: var(--gutter); top: 1rem; z-index: 50;
  padding: 0.75rem 1rem; background: var(--fire); color: var(--bg);
  font-weight: 600; border-radius: 8px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------ stage chrome */
.act { position: relative; }
.stage { background: var(--bg); overflow: hidden; }
.layer { position: absolute; inset: 0; }
.layer--field  { clip-path: inset(0 calc(100% - var(--split-px)) 0 0); background: var(--bg); }
.layer--system { clip-path: inset(0 0 0 var(--split-px)); background: var(--panel); }

.blueprint {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
}

.divider {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 6;
  background: var(--fire); transform: translateX(var(--split-px));
  pointer-events: none;
}
.divider__tag {
  position: absolute; top: clamp(1rem, 3vh, 1.75rem); white-space: nowrap;
  font: 600 0.72rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0.7rem; border-radius: 6px;
}
.divider__tag--field  { right: 0.9rem; color: var(--sc-ink); background: rgba(10, 10, 10, 0.72); }
.divider__tag--system { left: 0.9rem; color: var(--bg); background: var(--cyan); }
.divider--static { left: 50%; transform: none; opacity: 0.9; }

.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem;
  background: var(--fire); color: var(--bg); border: 0; border-radius: 10px;
  font: 700 1rem/1 var(--sc-font-display); text-decoration: none; cursor: pointer;
  box-shadow: var(--sc-e2); transition: background-color 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out);
}
.cta:hover { background: #ffb547; transform: translateY(-1px); }
.cta:focus-visible, .field input:focus-visible, .field select:focus-visible, a:focus-visible {
  outline: 3px solid var(--fire); outline-offset: 3px;
}

/* ------------------------------------------------------------ act 1: hero */
.act--hero .stage { --split: 58; --split-px: 58vw; }
.planes { position: absolute; left: 0; top: 0; width: 62vw; height: 114%; }
.plane {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 30% 70%; transform-origin: 50% 100%;
}
.plane--far { z-index: 1; }
.plane--mid { z-index: 2; }
.hero-title-plane { position: absolute; z-index: 3; left: var(--gutter); top: 21%; width: fit-content; max-width: calc(58vw - 2 * var(--gutter)); }
.plane--fore { z-index: 4; }
.scrim-patch {
  /* A scrim only where the text sits: an even core under the headline box,
     feathered on every side so it reads as shade, not a panel. */
  position: absolute; inset: -34% -22% -40% -30%; z-index: -1; pointer-events: none;
  background: rgba(0, 18, 40, 0.8);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.hero-title {
  font-weight: 800; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.7rem);
  line-height: 1.0; letter-spacing: var(--sc-track-tight); color: #fff; max-width: 21ch; width: fit-content;
}
.line { display: block; }
/* The engine re-splits kinetic headings into .sc-split--line boxes. */
.tension-title .sc-split--line:last-child { color: var(--fire); }

.hero-side {
  position: absolute; left: calc(58vw + var(--gutter)); right: var(--gutter);
  top: 0; bottom: 0; height: fit-content; margin-block: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
}
.wordmark { width: clamp(150px, 16vw, 230px); height: auto; }
.hero-sub { max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink); }

/* ------------------------------------------------------------ flow splits */
.split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
  background: var(--bg);
}
.split__field { position: relative; overflow: hidden; background: var(--bg); }
.split__system {
  position: relative; background: var(--panel);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: var(--sc-section) var(--gutter);
}
.frame { margin: 0; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

.frame--pit { position: absolute; inset: 0; }
.tension-title {
  font-weight: 800; font-size: clamp(1.8rem, 1rem + 2.4vw, 3.2rem);
  line-height: 1.08; letter-spacing: var(--sc-track-snug); max-width: 18ch;
}
.tension-title .sc-split--line + .sc-split--line { margin-top: 0.3em; }
.tension-note { max-width: 40ch; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); }

.section-title {
  font-weight: 800; font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.1rem);
  line-height: 1.06; letter-spacing: var(--sc-track-snug); max-width: 18ch;
}
.body { max-width: 46ch; color: var(--sc-ink-soft); }
.body--strong { color: var(--fire); font-weight: 600; }

.field-stack { min-height: 100vh; }
.frame--pour {
  position: absolute; left: 8%; top: 9%; width: 54%; aspect-ratio: 1600 / 2333;
  border-radius: 14px; box-shadow: var(--sc-e3); z-index: 1;
}
.frame--framing {
  position: absolute; right: 7%; bottom: 7%; width: 46%; aspect-ratio: 3 / 4;
  border-radius: 14px; box-shadow: var(--sc-e3); z-index: 2; outline: 2px solid var(--fire); outline-offset: -2px;
}

.range-field { display: grid; place-items: center; padding: var(--sc-section) var(--gutter); }
.guide-cover { width: min(380px, 70%); border-radius: 12px; box-shadow: var(--sc-e3); }
.guide-cover img { width: 100%; height: auto; border-radius: 12px; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; max-width: 46ch; }
.offers li { border-left: 3px solid var(--cyan); padding: 0.2rem 0 0.2rem 1.2rem; }
.offers h3 { font-size: var(--sc-t-lg); font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.offers p { color: var(--sc-ink-soft); }

/* ------------------------------------------------------------ act 3: peak */
.act--peak .stage { background: var(--bg); }
.rig { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 35%; z-index: 1; }
.model { position: absolute; transform-style: preserve-3d; transform-origin: 50% 55%; will-change: transform; }
.ground { position: absolute; inset: 0; transform-style: preserve-3d; }
.ground img { width: 100%; height: 100%; max-width: none; object-fit: fill; }
.veil {
  position: absolute; inset: 0; background: rgba(21, 21, 21, 0.9);
  clip-path: inset(0 0 0 var(--veil-x, 50%));
}
.course { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trace {
  fill: none; stroke: var(--cyan); stroke-width: var(--trace-w, 3px); vector-effect: non-scaling-stroke;
  stroke-linecap: square; stroke-linejoin: miter;
}
.course--wall .trace { stroke: #fa660f; }

.peak-copy {
  position: absolute; z-index: 5; right: var(--gutter); width: min(430px, 38vw);
  top: 0; bottom: 0; height: fit-content; margin-block: auto;
}
.peak-copy--b {
  top: auto; bottom: clamp(1.5rem, 7vh, 4rem); margin: 0;
  padding: 1.4rem 1.5rem; background: rgba(10, 10, 10, 0.9); border-radius: 14px; box-shadow: var(--sc-e3);
  border: 1px solid rgba(250, 102, 15, 0.35);
}
.peak-title {
  font: 800 clamp(1.9rem, 1rem + 2.6vw, 3.4rem)/1.04 var(--sc-font-display);
  letter-spacing: var(--sc-track-snug);
}
.peak-title--b { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); color: var(--fire); }
.peak-note { margin-top: 0.9rem; color: var(--sc-ink-soft); max-width: 36ch; }

/* ------------------------------------------------------------ act 6: close */
.close-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; }
.close-wrap {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(560px, 92vw);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem; will-change: transform;
}
.close-panel { width: 100%; }
.close-title { font-weight: 800; font-size: clamp(1.9rem, 1.1rem + 2vw, 2.9rem); line-height: 1.05; letter-spacing: var(--sc-track-snug); }
.close-sub { margin-top: 0.8rem; color: var(--sc-ink-soft); max-width: 44ch; }
.lead-form { margin-top: 1.4rem; display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; font-size: var(--sc-t-sm); font-weight: 600; color: var(--sc-ink); }
.field input, .field select {
  min-height: 48px; padding: 0 0.9rem; border-radius: 10px; border: 1px solid rgba(244, 246, 250, 0.28);
  background: rgba(10, 10, 10, 0.7); color: #fff; font: 500 1rem var(--sc-font-text);
}
.field select option { color: #111; }
.cta--submit { justify-self: start; }
.consent { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.es { font-size: var(--sc-t-sm); color: var(--fire); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.site-foot {
  padding-top: 1rem; display: flex; justify-content: space-between; gap: 0.4rem 1rem; flex-wrap: wrap;
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft); border-top: 1px solid rgba(250, 102, 15, 0.25);
}
.site-foot a { color: var(--cyan); }
.tagline { color: var(--fire); font-weight: 600; }

/* ------------------------------------------------------------ phone */
@media (max-width: 860px) {
  .layer--field  { clip-path: inset(0 0 calc(100% - var(--split-px)) 0); }
  .layer--system { clip-path: inset(var(--split-px) 0 0 0); }
  .divider { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; transform: translateY(var(--split-px)); }
  .divider__tag { top: auto; }
  .divider__tag--field  { right: auto; left: var(--gutter); bottom: 0.7rem; }
  .divider__tag--system { left: var(--gutter); top: 0.7rem; }

  .act--hero .stage { --split-px: 56svh; }
  .planes { width: 100vw; height: calc(56svh * 1.14); }
  .plane { object-position: 22% 70%; }
  .hero-title-plane { top: 12%; }
  .hero-side {
    left: var(--gutter); top: calc(56svh + 2.6rem); bottom: auto; margin: 0; gap: 1rem;
  }
  .wordmark { width: 180px; }
  .hero-sub { font-size: var(--sc-t-base); }

  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__field { min-height: 62svh; }
  .divider--static { display: none; }
  .field-stack { min-height: 78svh; }
  .frame--pour { width: 58%; left: 6%; top: 6%; }
  .frame--framing { width: 50%; right: 6%; bottom: 6%; }

  .peak-copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: auto; margin: 0; }
  .peak-copy--a { top: calc(50svh + 3rem); }
  .peak-copy--b { bottom: 1.25rem; }

  .close-wrap { width: auto; left: var(--gutter); right: var(--gutter); top: 0; bottom: auto; display: block; padding-top: 3.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .close-wrap { gap: 1.25rem; }
  .hero-title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); max-width: 16ch; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .model, .plane, .close-wrap { transition: none; }
  .cta:hover { transform: none; }
}

/* ------------------------------------------------------------ no JavaScript
   The engine hides cue text until it runs. Without JS the page must still read
   and the form must still work (it is a plain POST). */
.no-js [data-sc-cue], .no-js [data-sc-in] { opacity: 1 !important; transform: none !important; }
.no-js [data-sc-reveal] { clip-path: none !important; }
.no-js .stage { position: relative; min-height: 100vh; }
.no-js .act--peak .rig { display: none; }
.no-js .act--peak .stage { background: var(--panel); }
.no-js .act--close .stage { --split-px: 0px; }
.no-js .close-wrap { left: var(--gutter); }
