/* =============================================================
   SEED — Build · Industrialise · Sustain cinematic (embedded)
   Ported from uploads/2026-06-07-build-industrialise-sustain.html
   into the live home page. All rules scoped under .bis so they
   never collide with the .v3 site layer. Brand tokens: Source
   Serif 4 / Manrope / IBM Plex Mono, warm graphite, Garrison maroon.
   ============================================================= */

.bis{
  --paper:        #F5F3EE;
  --neutral-050:  #FAF9F5;
  --neutral-200:  #E0DCD3;
  --neutral-400:  oklch(0.70 0.005 72);
  --neutral-600:  oklch(0.45 0.005 68);
  --neutral-800:  oklch(0.28 0.006 65);
  --ink:          #16181C;
  --signal:       oklch(0.42 0.100 22);
  --signal-ink:   oklch(0.34 0.095 22);
  --signal-bg:    color-mix(in oklch, var(--signal) 12%, var(--paper));
  --bis-display:  var(--display);
  --bis-body:     var(--body);
  --bis-mono:     var(--mono);
  --bis-ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --leaf:         oklch(0.58 0.07 150);
  --leaf-deep:    oklch(0.45 0.07 152);
  position: relative;
  color: var(--neutral-800);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink) 4%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--neutral-200);
}
.bis *{ box-sizing: border-box; }
.bis .mono{ font-family: var(--bis-mono); }
.bis .eyebrow{ font-family: var(--bis-body); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neutral-600); }

/* ---------- cinematic shell ---------- */
.bis .cine-viewport{ height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.bis .cine-head{ flex: none; padding: clamp(88px,11vh,120px) clamp(20px,5vw,64px) 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bis .cine-head .eyebrow{ margin-bottom: 6px; }
.bis .cine-head h2{ font-family: var(--bis-display); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(20px,2.6vw,30px); color: var(--ink); line-height: 1.1; margin: 0; }
.bis .cine-head .counter{ text-align: right; flex: none; }
.bis .cine-head .counter .idx{ font-family: var(--bis-mono); font-size: clamp(18px,2.4vw,26px); font-weight: 500; color: var(--ink); }
.bis .cine-head .counter .nm{ display: block; margin-top: 4px; font-family: var(--bis-mono); font-size: 11.5px; color: var(--signal-ink); letter-spacing: 0.1em; text-transform: uppercase; min-height: 1.2em; }

.bis .cine-body{ flex: 1; min-height: 0; display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px,4vw,56px); padding: 0 clamp(20px,5vw,64px); align-items: center; }
.bis .scene-wrap{ position: relative; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bis svg#bis-scene{ width: 100%; height: auto; max-height: 100%; overflow: hidden; }

.bis .panel{ position: relative; min-height: 300px; }
.bis .tblock{ position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--bis-ease), transform 0.5s var(--bis-ease); pointer-events: none; }
.bis .tblock.is-active{ opacity: 1; transform: none; pointer-events: auto; }
.bis .tblock .ch-no{ font-family: var(--bis-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neutral-600); }
.bis .tblock .word{ margin-top: 10px; font-family: var(--bis-display); font-weight: 700; font-size: clamp(38px,4.4vw,60px); letter-spacing: -0.015em; color: var(--ink); line-height: 1.04; }
.bis .tblock .word::after{ content: ''; display: block; width: 44px; height: 2px; margin-top: 18px; background: var(--signal); }
.bis .tblock .line{ margin-top: 18px; font-size: 15px; color: var(--neutral-600); max-width: 40ch; line-height: 1.6; }
.bis .tblock .proof{ margin-top: 24px; display: inline-block; align-self: flex-start; background: var(--neutral-050); border: 1px solid var(--neutral-200); padding: 9px 12px; font-family: var(--bis-mono); font-size: 11px; color: var(--signal-ink); letter-spacing: 0.06em; }
.bis .tblock .proof span{ color: var(--neutral-400); margin-right: 8px; }

.bis .cine-scrub{ flex: none; padding: 14px clamp(20px,5vw,64px) clamp(20px,3vh,30px); }
.bis .scrub-track{ position: relative; height: 2px; background: var(--neutral-200); }
.bis .scrub-fill{ position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--signal); }
.bis .chapters{ display: flex; justify-content: space-between; margin-top: 14px; }
.bis .chapter{ background: none; border: none; cursor: pointer; font-family: var(--bis-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neutral-400); display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; transition: color 0.2s var(--bis-ease); }
.bis .chapter .dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--neutral-400); transition: all 0.2s var(--bis-ease); }
.bis .chapter.is-active{ color: var(--signal-ink); }
.bis .chapter.is-active .dot{ background: var(--signal); border-color: var(--signal); }
.bis .chapter.is-done .dot{ border-color: var(--signal); }

/* ---------- SVG element styling ---------- */
.bis .l-ground{ stroke: color-mix(in oklch, var(--neutral-400) 55%, var(--paper)); stroke-width: 1; fill: none; }
.bis .l-foot{ stroke: var(--signal); stroke-width: 2; fill: none; }
.bis .f-slab{ fill: color-mix(in oklch, var(--neutral-050) 75%, var(--paper)); stroke: var(--neutral-400); stroke-width: 1; opacity: 0; }
.bis .l-beam{ stroke: var(--neutral-600); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.bis .l-chord{ stroke: var(--neutral-800); stroke-width: 1.7; fill: none; stroke-linecap: round; }
.bis .l-truss{ stroke: var(--neutral-600); stroke-width: 1.05; fill: none; stroke-linecap: round; }
.bis .l-purlin{ stroke: var(--neutral-400); stroke-width: 1; fill: none; stroke-linecap: round; }
.bis .l-brace{ stroke: var(--neutral-400); stroke-width: 1; fill: none; }
.bis .l-pipe{ stroke: var(--neutral-400); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.bis .l-signal{ stroke: var(--signal); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.bis .l-pulse{ stroke: var(--signal); stroke-width: 3.4; fill: none; stroke-linecap: round; opacity: 0; }
.bis .st-top{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: .7; }
.bis .st-l{ fill: var(--neutral-200); stroke: var(--neutral-600); stroke-width: .7; }
.bis .st-r{ fill: var(--neutral-600); stroke: var(--neutral-800); stroke-width: .7; }
.bis .pad-top{ fill: var(--neutral-200); stroke: var(--neutral-400); stroke-width: .7; }
.bis .pad-l{ fill: var(--neutral-050); stroke: var(--neutral-400); stroke-width: .7; }
.bis .pad-r{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: .7; }
.bis .clad-roof{ fill: color-mix(in oklch, var(--neutral-200) 62%, var(--paper)); stroke: var(--neutral-400); stroke-width: .7; opacity: 0; }
.bis .clad-wall{ fill: color-mix(in oklch, var(--neutral-050) 92%, var(--paper)); stroke: var(--neutral-400); stroke-width: .9; opacity: 0; }
.bis .clad-gable{ fill: color-mix(in oklch, var(--neutral-050) 80%, var(--paper)); stroke: var(--neutral-400); stroke-width: .8; opacity: 0; }
.bis .door{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: .8; opacity: 0; }
.bis .win{ fill: var(--neutral-050); stroke: var(--neutral-400); stroke-width: .6; opacity: 0; }
.bis .win-lit{ fill: var(--signal-bg); stroke: none; opacity: 0; }
.bis .tank-body{ fill: color-mix(in oklch, var(--neutral-050) 88%, var(--paper)); stroke: var(--neutral-600); stroke-width: 1.05; }
.bis .tank-top{ fill: var(--neutral-200); stroke: var(--neutral-600); stroke-width: 1.05; }
.bis .tank-band{ fill: none; stroke: var(--neutral-400); stroke-width: .7; }
.bis .stack-body{ fill: color-mix(in oklch, var(--neutral-200) 80%, var(--paper)); stroke: var(--neutral-600); stroke-width: 1; }
.bis .stack-top{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: 1; }
.bis .platform{ fill: none; stroke: var(--neutral-600); stroke-width: .9; }
.bis .ladder{ stroke: var(--neutral-600); stroke-width: .6; }
.bis .bx-top{ fill: var(--neutral-200); stroke: var(--neutral-600); stroke-width: .7; }
.bis .bx-l{ fill: var(--neutral-050); stroke: var(--neutral-600); stroke-width: .7; }
.bis .bx-r{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: .7; }
.bis .cowl{ fill: var(--neutral-400); stroke: var(--neutral-600); stroke-width: .7; }
.bis .fin{ stroke: var(--neutral-600); stroke-width: .6; }
.bis .glow{ fill: var(--signal); opacity: 0; }
.bis .shadow{ fill: var(--neutral-200); opacity: .3; }
.bis .shimmer{ fill: var(--neutral-400); opacity: 0; }
.bis .ruler-line{ stroke: var(--neutral-600); stroke-width: 1.1; fill: none; }
.bis .ruler-tick{ stroke: var(--neutral-600); stroke-width: 1; }
.bis .ruler-txt{ fill: var(--neutral-600); font-family: var(--bis-mono); font-size: 9.5px; letter-spacing: 0.1em; }
.bis .green-patch{ fill: var(--leaf); opacity: 0; }
.bis .tree-trunk{ stroke: var(--neutral-600); stroke-width: 1.4; stroke-linecap: round; }
.bis .tree-canopy{ fill: color-mix(in oklch, var(--leaf) 72%, var(--paper)); stroke: var(--leaf-deep); stroke-width: .9; }
.bis .solar{ fill: oklch(0.40 0.025 250); stroke: var(--neutral-600); stroke-width: .7; opacity: 0; }
.bis .solar-seam{ stroke: color-mix(in oklch, var(--paper) 75%, transparent); stroke-width: .6; opacity: 0; }
.bis .stamp-g circle{ fill: none; stroke: var(--signal); stroke-width: 1.6; }
.bis .stamp-g text{ fill: var(--signal-ink); font-family: var(--bis-mono); font-size: 9px; letter-spacing: 0.14em; }
.bis .stamp-g path{ stroke: var(--signal-ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- flat fallback (mobile / reduced-motion) ---------- */
.bis.is-flat .cine-viewport{ height: auto; overflow: visible; }
.bis.is-flat .cine-head{ padding-top: clamp(72px,9vh,96px); }
.bis.is-flat .cine-body{ grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
.bis.is-flat .scene-wrap{ height: auto; }
.bis.is-flat .panel{ min-height: 0; }
.bis.is-flat .tblock{ position: static; opacity: 1; transform: none; padding: 20px 0; border-top: 1px solid var(--neutral-200); }
.bis.is-flat .tblock:first-of-type{ border-top: none; }
.bis.is-flat .cine-scrub{ display: none; }

@media (max-width: 900px){ .bis .cine-head h2{ font-size: 18px; } }
