/* Take Interest · Crestline walk-through · "Datum" trailer styles
   =================================================================
   Pairs with walkthrough.js (The Settle). Reads crestline.css tokens.
   One motion gesture (rise + fade) at three speeds; engineering-drawing
   restraint; result shown before the dashboard, then a paper-veil resolve
   INTO today.html. No external deps. Reduced-motion safe. */

body.walkthrough { background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ---- the resolve veil (rises in on Continue, then we navigate) ---- */
.wt-veil {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), visibility 0.8s;
}
.wt-veil.up { opacity: 1; visibility: visible; }
.wt-veil .veil-inner { text-align: center; }
.wt-veil .brand { display: block; font-weight: 600; letter-spacing: -0.01em; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.wt-veil .line { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }

/* ---- nav: transparent over hero, solid on scroll ---- */
.wt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.wt-nav .brand { font-weight: 600; letter-spacing: -0.01em; font-size: 17px; color: var(--text); }
.wt-nav.solid {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.wt-nav .skip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px;
  color: var(--accent); background: none; border: 1px solid var(--border-accent);
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.wt-nav .skip:hover { background: var(--accent-pale); transform: translateY(-1px); }

/* ---- content + resolve gesture ---- */
.wt-content { transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
body.wt-resolving .wt-content { opacity: 0; transform: translateY(-24px); }

/* ---- hero ---- */
.wt-hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 26px 80px;
  max-width: 1080px; margin: 0 auto;
}
.wt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--accent-pale) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-pale) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 30% 18%, #000 0%, transparent 72%);
  opacity: 0.9;
}
.wt-hero .eyebrow { margin-bottom: 18px; }
.wt-hero h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 16ch; margin-bottom: 22px;
}
.wt-hero .hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 52ch; }
.scroll-cue { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dimmer); margin-top: 42px; }
.scroll-cue::after { content: " ↓"; }

/* the rotating hero word — clean inline-block, reflows gently per beat */
.rot { display: inline; }
.rot-ghost { display: none; }
.rot-live {
  display: inline-block; color: var(--accent); white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rot-live.out { opacity: 0; transform: translateY(-12px); }

/* ---- bands ---- */
.wt-band { padding: 86px 26px; }
.wt-band.tint { background: var(--surface-2); }
.wt-band.warm { background: var(--surface-3); }
.wt-band.result { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wt-band-inner { max-width: 1080px; margin: 0 auto; }
.wt-step-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.wt-band h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.18; max-width: 22ch; margin-bottom: 14px; }
.wt-band .lead { font-size: 16px; color: var(--text-dim); max-width: 56ch; }

.wt-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.wt-split.flip .wt-split-copy { order: 2; }
.wt-split.flip .wt-split-art { order: 1; }

/* threaded-program card (the woven thread) */
.wt-thread {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.wt-thread .who { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.wt-thread .stage { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-deep); margin: 4px 0 14px; }
.wt-thread .line { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text); }
.wt-thread .line .src { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dimmer); }
.wt-thread .line.is-next { color: var(--accent-deep); font-weight: 600; }
.wt-thread .line.is-next .src { color: var(--accent); }

/* drafts list */
.wt-drafts { display: flex; flex-direction: column; gap: 10px; }
.wt-draft { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; }
.wt-draft .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.wt-draft .txt { font-size: 13.5px; color: var(--text); flex: 1; }
.wt-draft .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-pale); border: 1px solid var(--border-accent); padding: 3px 8px; border-radius: 4px; }

/* trio of program plates */
.wt-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.wt-plate {
  position: relative; min-height: 150px; border-radius: var(--radius);
  border: 1px solid var(--border-accent); overflow: hidden;
  background: radial-gradient(120% 90% at 16% 12%, rgba(46,108,240,0.16), transparent 60%), linear-gradient(150deg, var(--surface-3), var(--surface));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.wt-plate .pl-phase { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-deep); }
.wt-plate .pl-name { font-weight: 600; font-size: 15px; margin-top: 3px; }

/* what-stays-out: threaded vs never-touched */
.wt-scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wt-scope-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.wt-scope-col h3 { font-size: 13px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.wt-scope-col.in h3 { color: var(--ok); }
.wt-scope-col.out h3 { color: var(--warn); }
.wt-scope-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wt-scope-col li { font-size: 13.5px; color: var(--text-dim); display: flex; gap: 9px; align-items: baseline; }
.wt-scope-col.in li::before { content: "+"; color: var(--ok); font-weight: 700; }
.wt-scope-col.out li::before { content: "×"; color: var(--warn); font-weight: 700; }
.wt-scope-col.out li { text-decoration: line-through; text-decoration-color: var(--subtle); }

/* result preview — a compact echo of the brief + shared view */
.wt-readout {
  background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 26px;
}
.wt-readout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface-3); }
.wt-readout-head .ttl { font-weight: 600; }
.wt-readout-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wt-readout-body h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 10px; }
.wt-readout-body p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.55; }
.wt-readout-body .led { color: var(--text); font-weight: 600; }

/* close */
.wt-close { text-align: center; padding: 100px 26px 70px; max-width: 720px; margin: 0 auto; }
.wt-close h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 16px; }
.wt-close .sub { font-size: 16px; color: var(--text-dim); max-width: 50ch; margin: 0 auto 30px; }
.wt-close .quiet { font-family: var(--mono); font-size: 11.5px; color: var(--text-dimmer); margin-top: 18px; letter-spacing: 0.3px; }
.primary-cta.nudge { font-size: 15px; padding: 14px 30px; }

/* foot */
.wt-foot { text-align: center; padding: 30px 26px 50px; font-family: var(--mono); font-size: 11px; color: var(--text-dimmer); }
.wt-foot .promise { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.wt-foot .promise span::before { content: "✓ "; color: var(--ok); }

/* ---- the one motion: settle (rise + fade), revealed by .in ---- */
.settle { opacity: 0; transform: translateY(16px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.settle.in { opacity: 1; transform: none; }
.stagger > .settle:nth-child(1) { transition-delay: 0.04s; }
.stagger > .settle:nth-child(2) { transition-delay: 0.12s; }
.stagger > .settle:nth-child(3) { transition-delay: 0.20s; }
.stagger > .settle:nth-child(4) { transition-delay: 0.28s; }
.stagger > .settle:nth-child(5) { transition-delay: 0.36s; }
.stagger > .settle:nth-child(6) { transition-delay: 0.44s; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .wt-split, .wt-readout-body { grid-template-columns: 1fr; gap: 24px; }
  .wt-split.flip .wt-split-copy, .wt-split.flip .wt-split-art { order: 0; }
  .wt-trio, .wt-scope-cols { grid-template-columns: 1fr; }
  .wt-band { padding: 64px 22px; }
  .wt-hero { padding: 104px 22px 64px; min-height: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  .settle { opacity: 1; transform: none; transition: none; }
  .rot-live { transition: none; }
  .wt-content, .wt-veil, .wt-nav { transition: none; }
  .wt-veil { display: none; }
}
