/* =====================================================================
   NWZUP WORK OS — design tokens + site styles
   Identity: Collage/Grid-Breaker + Swiss/International · Syne / Lora /
   Source Code Pro · monochrome + one electric-blue accent · restraint motion
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* palette — light (day) theme, authored */
  --paper:        #F6F1EA;  /* bone */
  --paper-2:      #EDE6D9;  /* deeper bone for bands */
  --paper-3:      #FFFFFF;  /* raised surfaces (never pure white text) */
  --ink:          #211A13;  /* espresso */
  --ink-2:        #4A4139;  /* softened ink — secondary text */
  --ink-3:        #6E6357;  /* tertiary text */
  --line:         #DCD2C2;  /* hairlines */
  --line-soft:    #E7DFD1;
  --accent:       #2B5CFF;  /* electric blue — spent sparingly */
  --accent-deep:  #1E42C4;
  --accent-wash:  #E3E9FF;  /* accent tint for chips */
  --accent-ink:   #FFFFFF;
  --good:         #1E7B4D;
  --warn:         #B25E09;
  --scrim:        rgba(33, 26, 19, 0.55);

  /* type */
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-mono: "Source Code Pro", "SFMono-Regular", Menlo, monospace;

  /* type scale (px) */
  --t-12: 0.75rem;  --t-14: 0.875rem; --t-16: 1rem; --t-18: 1.125rem;
  --t-20: 1.25rem;  --t-24: 1.5rem;   --t-30: 1.875rem; --t-36: 2.25rem;
  --t-48: 3rem;     --t-60: 3.75rem;  --t-72: 4.5rem;

  /* space (8-grid) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem;  --s-8: 2rem;   --s-12: 3rem;  --s-16: 4rem;
  --s-24: 6rem;   --s-32: 8rem;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d-micro: 150ms;
  --d-move: 400ms;

  --radius: 14px;
  --maxw: 1200px;
  --dock-h: 76px;
}

/* dark (night) theme — authored, not inverted */
[data-theme="dark"] {
  --paper:        #1C1814;
  --paper-2:      #242019;
  --paper-3:      #2B251E;
  --ink:          #F3EDE3;
  --ink-2:        #C9BFAF;
  --ink-3:        #94897A;
  --line:         #38312A;
  --line-soft:    #2C2721;
  --accent:       #6B8CFF;
  --accent-deep:  #8AA5FF;
  --accent-wash:  #232B4D;
  --accent-ink:   #101828;
  --scrim:        rgba(10, 8, 6, 0.66);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--t-16);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* woven-fabric texture: two faint crosshatch layers, felt not seen */
  background-image:
    repeating-linear-gradient(45deg, rgba(127, 118, 102, 0.028) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(127, 118, 102, 0.028) 0 1px, transparent 1px 7px);
  transition: background-color var(--d-move) var(--ease), color var(--d-move) var(--ease);
  padding-bottom: calc(var(--dock-h) + 24px); /* room for the bottom dock */
  overflow-x: hidden;
}
[data-theme="dark"] body {
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.022) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 250, 240, 0.022) 0 1px, transparent 1px 7px);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(var(--t-48), 7vw, var(--t-72)); }
h2 { font-size: clamp(var(--t-36), 4.5vw, var(--t-48)); }
h3 { font-size: var(--t-24); letter-spacing: -0.02em; }
p { max-width: 34em; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { font-size: var(--t-20); line-height: 1.55; color: var(--ink-2); max-width: 30em; }

/* focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* skip link */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: var(--t-12);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top var(--d-micro) var(--ease);
}
.skip:focus { top: 12px; color: var(--paper); }

/* visually hidden but available to assistive tech */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.grid12 {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
section.block { padding-block: var(--s-24); position: relative; }
section.band { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

/* section index — mono progression marker */
.sec-index {
  font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.14em; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s-8); text-transform: uppercase;
}
.sec-index::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}
.sec-index .n { color: var(--accent); }

/* ---------- 4. TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--t-20); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: baseline; gap: 10px;
}
.wordmark .os-tag {
  font-family: var(--font-mono); font-size: var(--t-12); font-weight: 400;
  letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase;
}
.wordmark:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease),
              transform var(--d-micro) var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-14); font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--d-micro) var(--ease), background var(--d-micro) var(--ease),
              border-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease),
              box-shadow var(--d-micro) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--t-12); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- 6. BOTTOM DOCK NAV (structural twist) ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px; z-index: 95;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--paper-3) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 10px;
  box-shadow: 0 18px 50px -18px rgba(20, 14, 8, 0.35);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock a.dock-link {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--t-12); letter-spacing: 0.06em;
  color: var(--ink-2); text-decoration: none;
  padding: 10px 14px; border-radius: 14px; white-space: nowrap;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
  min-height: 44px;
}
.dock a.dock-link svg { width: 15px; height: 15px; flex: none; }
.dock a.dock-link:hover { background: var(--paper-2); color: var(--ink); }
.dock a.dock-link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.dock a.dock-link[aria-current="page"]:hover { color: var(--paper); }
.dock .dock-cta {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; margin-left: 4px;
}
.dock .dock-cta:hover { background: var(--accent-deep); color: var(--accent-ink); }
.dock .dock-sep { width: 1px; align-self: stretch; background: var(--line-soft); margin: 6px 4px; flex: none; }
.dock .dock-theme {
  border: none; background: transparent; cursor: pointer;
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.dock .dock-theme:hover { background: var(--paper-2); color: var(--accent); }
.dock .dock-theme svg { width: 17px; height: 17px; }
.dock .dock-theme .icon-moon { display: none; }
[data-theme="dark"] .dock .dock-theme .icon-sun { display: none; }
[data-theme="dark"] .dock .dock-theme .icon-moon { display: block; }

/* ---------- 7. HERO ---------- */
.hero {
  padding-top: var(--s-16);
  padding-bottom: var(--s-12);
  position: relative;
}
.hero-grid { align-items: center; }
.hero-copy { grid-column: 1 / span 5; }
.hero-copy h1 { margin: var(--s-6) 0; }
.hero-copy h1 .accent-word { color: var(--accent); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-12); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  background: color-mix(in srgb, var(--paper-3) 70%, transparent);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.hero-actions { display: flex; gap: 12px; margin-top: var(--s-8); flex-wrap: wrap; }
.hero-note {
  margin-top: var(--s-6); font-family: var(--font-mono); font-size: var(--t-12);
  color: var(--ink-3); letter-spacing: 0.04em;
}

/* hero visual — the canvas stage */
.hero-visual {
  grid-column: 6 / span 7;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-3);
  overflow: hidden;
  min-height: 560px;
  display: flex; flex-direction: column;
}
.hero-visual canvas#workcanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.stage-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  background: var(--paper-3);
}
.stage-bar .lights { display: flex; gap: 7px; }
.stage-bar .lights i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); display: block;
}
.stage-bar .lights i:first-child { background: var(--accent); }
.stage-title {
  font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.1em; color: var(--ink-2); text-transform: uppercase;
  margin-left: 6px;
}
.stage-status {
  margin-left: auto; font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.stage-status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.goal-form {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 18px;
  background: linear-gradient(to top, color-mix(in srgb, var(--paper-3) 92%, transparent), transparent);
}
.goal-row { display: flex; gap: 10px; }
.goal-input {
  flex: 1; min-height: 52px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-family: var(--font-body); font-size: var(--t-16);
  padding: 0 18px; outline: none;
  transition: border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease);
}
.goal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.goal-input::placeholder { color: var(--ink-3); }
.goal-chips {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.goal-chip {
  font-family: var(--font-mono); font-size: var(--t-12); letter-spacing: 0.03em;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 36px;
  transition: all var(--d-micro) var(--ease);
}
.goal-chip:hover { border-color: var(--accent); color: var(--accent); }
.stage-caption {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: var(--t-12); letter-spacing: 0.04em;
  color: var(--ink-3); padding: 0 18px 16px; min-height: 40px;
}

/* ---------- 8. MARQUEE STRIP ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 14px 0;
}
.strip-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 36s linear infinite;
}
.strip-track span {
  font-family: var(--font-mono); font-size: var(--t-14); letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap; opacity: 0.85;
}
.strip-track span b { color: var(--accent); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. SECTIONS / CARDS ---------- */
.split { align-items: start; }
.split-copy { grid-column: 1 / span 5; }
.split-copy h2 { margin-bottom: var(--s-6); }
.split-copy p + p { margin-top: var(--s-4); }
.split-side { grid-column: 7 / span 6; }

.card {
  background: var(--paper-3); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--s-8);
  transition: transform var(--d-move) var(--ease), border-color var(--d-micro) var(--ease),
              box-shadow var(--d-move) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 24px 48px -28px rgba(20, 14, 8, 0.35);
}
.card h3 { margin: var(--s-4) 0 var(--s-3); }
.card p { color: var(--ink-2); font-size: var(--t-16); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-wash); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; }
.card .tag {
  display: inline-block; font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 4px 12px; margin-bottom: var(--s-4);
}
.card .tag.planned { color: var(--warn); border-color: var(--warn); }
.card .tag.alpha { color: var(--good); border-color: var(--good); }

/* feature rows — asymmetric 60/40 */
.feat { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-12); align-items: center; padding-block: var(--s-12); border-top: 1px solid var(--line-soft); }
.feat:first-of-type { border-top: none; }
.feat.flip > :first-child { order: 2; }
.feat h3 { font-size: var(--t-30); margin-bottom: var(--s-4); }
.feat p { color: var(--ink-2); }
.feat p + p { margin-top: var(--s-3); }
.feat-fig {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--paper-3); padding: var(--s-8); min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feat-fig .fig-label {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase;
}

/* numbered list w/ progression */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s-6);
  padding-block: var(--s-8); border-top: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-36);
  letter-spacing: -0.03em; color: var(--accent); line-height: 1;
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--ink-2); }

/* comparison table — personal vs company */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs .card ul { list-style: none; padding: 0; margin-top: var(--s-4); }
.vs .card li {
  padding: 10px 0 10px 28px; position: relative;
  border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: 0.95rem;
}
.vs .card li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- 10. WORK EXECUTION GRAPH ---------- */
.graph-stage {
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper-3);
  padding: var(--s-12) var(--s-8); overflow-x: auto;
}
.graph-stage svg { min-width: 860px; width: 100%; height: auto; }
.gnode { cursor: pointer; }
.gnode rect {
  fill: var(--paper); stroke: var(--line); stroke-width: 1.5;
  transition: stroke var(--d-micro) var(--ease), fill var(--d-micro) var(--ease);
}
.gnode text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; fill: var(--ink); }
.gnode .gsub { font-size: 9.5px; fill: var(--ink-3); letter-spacing: 0.02em; font-family: var(--font-body); font-style: italic; }
.gnode:hover rect, .gnode.active rect { stroke: var(--accent); stroke-width: 2.5; }
.gnode.active rect { fill: var(--accent-wash); }
.gedge { stroke: var(--line); stroke-width: 1.5; fill: none; }
.gedge.hot { stroke: var(--accent); stroke-width: 2.5; }
.graph-detail {
  margin-top: var(--s-6); border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-6); background: var(--paper-2); border-radius: 0 12px 12px 0;
  min-height: 96px;
}
.graph-detail h4 { font-family: var(--font-display); font-size: var(--t-18); margin-bottom: 4px; }
.graph-detail p { color: var(--ink-2); font-size: 0.95rem; max-width: 60em; }

/* ---------- 11. DIAGRAMS (architecture etc.) ---------- */
.diagram {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--paper-3); padding: var(--s-8);
}
.diagram svg { width: 100%; height: auto; }
.dlabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; fill: var(--ink-2); text-transform: uppercase; }
.dtitle { font-family: var(--font-display); font-weight: 700; font-size: 14px; fill: var(--ink); }
.dbox { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; rx: 10; }
.dbox-accent { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 2; }
.dline { stroke: var(--line); stroke-width: 1.5; }
.dline-accent { stroke: var(--accent); stroke-width: 2; }

/* lifecycle ribbon */
.lifecycle { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--s-8); }
.lifecycle .stage {
  flex: 1 1 120px; padding: var(--s-6) var(--s-4);
  border: 1px solid var(--line-soft); background: var(--paper-3);
  position: relative; min-width: 130px;
}
.lifecycle .stage + .stage { border-left: none; }
.lifecycle .stage:first-child { border-radius: 12px 0 0 12px; }
.lifecycle .stage:last-child { border-radius: 0 12px 12px 0; }
.lifecycle .stage .k {
  font-family: var(--font-mono); font-size: var(--t-12); letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 6px;
}
.lifecycle .stage p { font-size: 0.85rem; color: var(--ink-2); }
.lifecycle .stage::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  z-index: 2; background: var(--paper); border: 1px solid var(--line);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-3);
}
.lifecycle .stage:last-child::after { display: none; }

/* ---------- 12. FORMS (editorial document style) ---------- */
.form { max-width: 640px; }
.field { margin-bottom: var(--s-8); }
.field label {
  display: block; font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: var(--s-2);
}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none;
  border-bottom: 2px solid var(--line); border-radius: 0;
  font-family: var(--font-body); font-size: var(--t-18); color: var(--ink);
  padding: 10px 2px; outline: none;
  transition: border-color var(--d-micro) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field .hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 6px; }
.field .error { font-size: 0.85rem; color: #C22E2E; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #C22E2E; }
.field.invalid .error { display: block; }
.form-note {
  margin-top: var(--s-6); padding: var(--s-4) var(--s-6);
  border: 1px dashed var(--line); border-radius: 12px;
  font-size: 0.9rem; color: var(--ink-2);
}

/* ---------- 13. MODAL ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--d-move) var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 20px; max-width: 460px; width: 100%;
  padding: var(--s-12) var(--s-8);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--d-move) var(--ease);
  position: relative;
}
.modal-backdrop.open .modal { transform: none; }
.modal h2 { font-size: var(--t-30); margin-bottom: var(--s-4); }
.modal p { color: var(--ink-2); }
.modal p + p { margin-top: var(--s-3); }
.modal .mono-tag {
  display: inline-block; font-family: var(--font-mono); font-size: var(--t-12);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn);
  border: 1px solid var(--warn); border-radius: 999px; padding: 5px 14px;
  margin-bottom: var(--s-6);
}
.modal-actions { display: flex; gap: 12px; margin-top: var(--s-8); flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 14. FOOTER ---------- */
footer.site {
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s-24); padding: var(--s-16) 0 var(--s-8);
  background: var(--paper-2);
}
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: var(--s-8); }
.foot-grid h4 {
  font-family: var(--font-mono); font-size: var(--t-12); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.foot-grid ul { list-style: none; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-note {
  margin-top: var(--s-12); padding-top: var(--s-6);
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--t-12); color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- 15. CTA BAND ---------- */
.cta-band {
  background: var(--ink); color: var(--paper);
  border-radius: 24px; padding: var(--s-16) var(--s-12);
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--paper); margin-bottom: var(--s-4); }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 34em; }
.cta-band .btn-primary { justify-self: end; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  pointer-events: none;
}

/* ---------- 16. MISC ---------- */
.kicker { color: var(--accent); }
blockquote.pull {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(var(--t-24), 3.4vw, var(--t-36));
  letter-spacing: -0.02em; line-height: 1.25;
  border-left: 3px solid var(--accent); padding-left: var(--s-6);
  margin: var(--s-12) 0; max-width: 22em;
}
.faq details {
  border-top: 1px solid var(--line-soft); padding: var(--s-6) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-20);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: var(--t-24); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: var(--s-3); max-width: 44em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }

/* concept-illustration label */
.concept-tag {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px;
  background: color-mix(in srgb, var(--paper-3) 80%, transparent);
}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-copy { grid-column: 1 / span 12; }
  .hero-visual { grid-column: 1 / span 12; min-height: 480px; }
  .split-copy { grid-column: 1 / span 12; }
  .split-side { grid-column: 1 / span 12; }
  .feat { grid-template-columns: 1fr; gap: var(--s-8); }
  .feat.flip > :first-child { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-primary { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --dock-h: 70px; }
  section.block { padding-block: var(--s-16); }
  .hero { padding-top: var(--s-8); }
  .hero-actions .btn { flex: 1 1 100%; }
  .goal-row { flex-direction: column; }
  .goal-row .btn { width: 100%; }
  .vs { grid-template-columns: 1fr; }
  .lifecycle .stage { flex: 1 1 100%; border-left: 1px solid var(--line-soft); }
  .lifecycle .stage + .stage { border-top: none; }
  .lifecycle .stage:first-child { border-radius: 12px 12px 0 0; }
  .lifecycle .stage:last-child { border-radius: 0 0 12px 12px; }
  .lifecycle .stage::after {
    content: "↓"; right: 50%; top: auto; bottom: -11px; transform: translateX(50%);
  }
  .dock a.dock-link span.lbl { display: none; }
  .dock a.dock-link { padding: 10px 12px; }
  .dock .dock-cta span.lbl { display: inline; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 56px 1fr; gap: var(--s-4); }
}

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}
