/* Northwestern Tech Institute — site styles
   Palette: Midnight Navy #0B1220, Deep Slate #172337, Electric Blue #477BFF,
   Ice Blue #DCE8FF, Off White #F7F9FC. 4px spacing grid, one easing curve. */

:root {
  --navy: #0B1220;
  --slate: #172337;
  --slate-2: #1E2C44;
  --blue: #477BFF;
  --blue-ink: #2554D6;       /* accent as text on light surfaces (AA) */
  --ice: #DCE8FF;
  --off: #F7F9FC;
  --white: #FFFFFF;

  /* dark text roles */
  --d-1: #EEF2FA;
  --d-2: #A6B1C6;
  --d-3: #7D889E;
  --d-line: rgba(238, 242, 250, 0.08);
  --d-line-2: rgba(238, 242, 250, 0.14);

  /* light text roles */
  --l-1: #0B1220;
  --l-2: #45506A;
  --l-3: #687389;
  --l-line: rgba(11, 18, 32, 0.08);
  --l-line-2: rgba(11, 18, 32, 0.14);

  --pos: #4cc38a;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-menu: 200ms;
  --t-enter: 480ms;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--d-1);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; stroke-width: 1.5; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg.arrow { transform: translateX(2px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }

/* on dark */
.btn-primary { background: var(--off); color: var(--navy); box-shadow: inset 0 -1px 0 rgba(11,18,32,0.08); }
.btn-primary:hover { background: var(--ice); }
.btn-ghost { background: var(--slate); color: var(--d-1); border-color: var(--d-line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.btn-ghost:hover { background: var(--slate-2); }
/* on light */
.btn-ink { background: var(--navy); color: var(--off); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-ink:hover { background: var(--slate); }
.btn-accent { background: var(--blue-ink); color: var(--white); }
.btn-accent:hover { background: #1F49C2; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color var(--t-menu) var(--ease), border-color var(--t-menu) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 18, 32, 0.88); border-bottom-color: var(--d-line); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 16px; letter-spacing: 0; }
.brand-mark { height: 28px; width: auto; flex: none; }
.brand-name span { color: var(--d-3); font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--d-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--d-1); background: rgba(238,242,250,0.04); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 14px; color: var(--d-2); transition: color var(--t-fast) var(--ease); }
.nav-login:hover { color: var(--d-1); }
.menu-btn {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--d-line-2);
  background: var(--slate); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span { position: relative; display: block; width: 16px; height: 1.5px; background: var(--d-1); border-radius: 2px; transition: background-color var(--t-fast) var(--ease); }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--d-1); border-radius: 2px;
  transition: transform var(--t-menu) var(--ease);
}
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--navy);
  padding: 24px 16px 32px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease), visibility 0s linear var(--t-menu);
}
.menu-open .sheet { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.menu-open .nav { background: var(--navy); border-bottom-color: var(--d-line); }
.sheet a.sheet-link {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; font-size: 20px; border-bottom: 1px solid var(--d-line); color: var(--d-1);
}
.sheet a.sheet-link .mono { font-size: 12px; color: var(--d-3); }
.sheet-foot { margin-top: auto; display: grid; gap: 12px; }
.sheet-foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--nav-h) + 72px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-top { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--d-3); margin-bottom: 32px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--d-3); }
.hero h1 {
  margin: 0; font-weight: 500; font-size: clamp(44px, 6.4vw, 100px); line-height: 1; letter-spacing: -0.045em; color: var(--d-1);
}
.h-line { display: block; white-space: nowrap; }
.rotator { display: block; position: relative; height: 1.16em; margin-bottom: -0.16em; overflow: hidden; color: #8EAEFF; white-space: nowrap; }
.rot-word { position: absolute; left: 0; top: 0; display: inline-flex; }
.rot-word .ch { display: inline-block; white-space: pre; will-change: transform, opacity;
  animation: chIn 560ms var(--ease) both; animation-delay: calc(var(--i) * 24ms); }
.rot-word.is-out .ch { animation: chOut 340ms cubic-bezier(0.55, 0, 0.75, 0) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(0.62em) rotate(4deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes chOut { to { opacity: 0; transform: translateY(-0.45em); filter: blur(4px); } }
.rot-word.is-static .ch { animation: fadeIn 300ms linear both; }
@keyframes fadeIn { from { opacity: 0; } }
.hero-row {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--d-line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.hero-sub { margin: 0; font-size: 18px; line-height: 28px; color: var(--d-2); text-wrap: balance; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the moment: growth curve plotted behind the headline, the rule under it is its axis */
.hero-top > *:not(.hero-plot) { position: relative; z-index: 1; }
.hero-plot { position: absolute; z-index: 0; left: var(--gutter); right: var(--gutter); top: 0; height: 400px; pointer-events: none; }
.hero-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.22) 42%, #000 72%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.22) 42%, #000 72%); }
.hp-grid line { stroke: rgba(220,232,255,0.05); stroke-width: 1; }
.hp-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-base { fill: none; stroke: rgba(220,232,255,0.2); stroke-width: 1; stroke-dasharray: 3 5; }
.hp-area { fill: url(#plotFill); }
.hp-drop { stroke: rgba(71,123,255,0.45); stroke-width: 1; stroke-dasharray: 2 4; }
.hp-ring { fill: none; stroke: rgba(71,123,255,0.3); stroke-width: 1; }
.hp-dot { fill: var(--navy); stroke: var(--blue); stroke-width: 2; }
.hp-weeks text { fill: var(--d-3); font-family: var(--mono); font-size: 11px; }
.hp-note { position: absolute; right: 0; display: grid; justify-items: end; gap: 6px; text-align: right; }
.hp-note strong { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; color: var(--d-1); font-variant-numeric: tabular-nums; }
.hp-delta { font-family: var(--mono); font-size: 12px; color: var(--pos); }

.hero-index {
  position: relative; z-index: 1; margin-top: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--d-line-2);
}
.hero-index::before { content: ""; position: absolute; left: 50%; width: 100vw; top: -1px; height: 1px; background: var(--d-line-2); transform: translateX(-50%); }
.hero-index a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 12px;
  height: 80px; padding: 0 20px; font-size: 14px; color: var(--d-2);
  border-left: 1px solid var(--d-line);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.hero-index a:first-child { border-left: 0; padding-left: 0; }
.hero-index a .mono { font-size: 12px; color: var(--d-3); }
.hero-index a svg { width: 16px; height: 16px; stroke-width: 1.5; color: var(--d-3); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hero-index a:hover { color: var(--d-1); }
.hero-index a:hover svg { opacity: 1; transform: none; }

.fig { font-family: var(--mono); font-size: 12px; color: var(--d-3); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-light { background: var(--off); color: var(--l-1); }
.section-ice { background: var(--ice); color: var(--l-1); }
.section-slate { background: var(--slate); }
.sec-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; margin-bottom: 64px; }
.sec-num { font-family: var(--mono); font-size: 12px; color: var(--d-3); padding-top: 12px; }
.section-light .sec-num, .section-ice .sec-num { color: var(--l-3); }
.sec-title { margin: 0; font-weight: 500; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.sec-lede { margin: 16px 0 0; font-size: 18px; line-height: 28px; max-width: 40rem; color: var(--d-2); text-wrap: pretty; }
.section-light .sec-lede, .section-ice .sec-lede { color: var(--l-2); }

/* Practice areas — accordion list */
.practice { border-top: 1px solid var(--l-line-2); margin-left: 192px; }
.p-item { border-bottom: 1px solid var(--l-line-2); }
.p-trigger {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 24px; align-items: center; gap: 16px;
  min-height: 80px; padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--l-1);
}
.p-trigger .mono { font-size: 12px; color: var(--l-3); }
.p-name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; transition: color var(--t-fast) var(--ease); }
.p-trigger:hover .p-name { color: var(--blue-ink); }
.p-tags { font-size: 13px; color: var(--l-3); text-align: right; }
.p-icon { width: 24px; height: 24px; display: grid; place-items: center; }
.p-icon svg { width: 18px; height: 18px; stroke: var(--l-2); stroke-width: 1.5; transition: transform var(--t-menu) var(--ease); }
.p-item[data-open="true"] .p-icon svg { transform: rotate(45deg); }
.p-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-enter) var(--ease); }
.p-item[data-open="true"] .p-panel { grid-template-rows: 1fr; }
.p-panel > div { overflow: hidden; }
.p-inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px;
  padding: 0 40px 32px 64px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease);
}
.p-item[data-open="true"] .p-inner { opacity: 1; transform: none; transition-delay: 80ms; }
.p-inner p { margin: 0; font-size: 16px; line-height: 26px; color: var(--l-2); }
.p-inner ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.p-inner li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--l-1); }
.p-inner li::before { content: ""; flex: none; width: 12px; height: 1px; background: var(--l-3); transform: translateY(-4px); }

/* Method */
.method { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.method-track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--d-line-2); }
.method-track i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.step { padding: 32px 24px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--slate); border: 1px solid var(--d-3); transition: background-color var(--t-enter) var(--ease), border-color var(--t-enter) var(--ease); }
.step.is-on::before { background: var(--blue); border-color: var(--blue); }
.step .fig { display: block; margin-bottom: 16px; }
.step h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.step p { margin: 0; color: var(--d-2); font-size: 15px; line-height: 24px; max-width: 30ch; }
.step .out { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--d-line); font-size: 13px; color: var(--d-3); max-width: 30ch; }
.step .out b { display: block; font-weight: 500; color: var(--d-2); margin-bottom: 4px; font-size: 12px; font-family: var(--mono); }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-left: 192px; }
.ind {
  grid-column: span 4;
  background: var(--white); border: 1px solid var(--l-line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 196px;
  box-shadow: 0 1px 2px rgba(11,18,32,0.04);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.ind:hover { border-color: var(--l-line-2); }
.ind.wide { grid-column: span 8; }
.ind-top { display: flex; justify-content: space-between; align-items: center; }
.ind-top svg { width: 18px; height: 18px; stroke: var(--l-2); stroke-width: 1.5; }
.ind-top .mono { font-size: 12px; color: var(--l-3); }
.ind h3 { margin: auto 0 0; font-size: 18px; font-weight: 500; }
.ind p { margin: 0; font-size: 14px; line-height: 22px; color: var(--l-2); }
.ind.feature { background: var(--navy); color: var(--d-1); border-color: var(--navy); }
.ind.feature p { color: var(--d-2); }
.ind.feature .ind-top svg { stroke: var(--d-2); }
.ind.feature .ind-top .mono { color: var(--d-3); }
.ind.feature .examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ind.feature .examples span { font-size: 12px; font-family: var(--mono); color: var(--d-2); border: 1px solid var(--d-line-2); padding: 4px 8px; border-radius: 6px; }

/* Principles */
.principles { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.statement { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; color: var(--l-1); text-wrap: pretty; }
.statement span { color: var(--l-3); }
.plist { display: grid; gap: 0; border-top: 1px solid var(--l-line-2); }
.prow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--l-line-2); }
.prow .mono { font-size: 12px; color: var(--l-3); padding-top: 4px; }
.prow h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.prow p { margin: 0; font-size: 15px; line-height: 24px; color: var(--l-2); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-info h2 { margin: 0; font-weight: 500; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.contact-info p { margin: 16px 0 0; color: var(--d-2); font-size: 17px; line-height: 27px; max-width: 30rem; }
.mail-line {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 12px;
  border: 1px solid var(--d-line-2); border-radius: 10px; background: var(--navy);
  font-family: var(--mono); font-size: 14px; color: var(--d-1); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.mail-line:hover { border-color: rgba(238,242,250,0.24); }
.mail-line svg { width: 16px; height: 16px; stroke: var(--d-3); stroke-width: 1.5; }
.mail-line .copy-state { font-family: var(--font); font-size: 12px; color: var(--d-3); padding-left: 12px; border-left: 1px solid var(--d-line-2); min-width: 48px; }
.contact-notes { margin-top: 40px; display: grid; gap: 12px; font-size: 14px; color: var(--d-2); }
.contact-notes div { display: flex; gap: 12px; align-items: center; }
.contact-notes svg { width: 16px; height: 16px; stroke: var(--d-3); stroke-width: 1.5; flex: none; }

.form { background: var(--navy); border: 1px solid var(--d-line-2); border-radius: 20px; padding: 32px; display: grid; gap: 20px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 13px; color: var(--d-2); }
.input {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--slate); border: 1px solid var(--d-line-2); border-radius: 10px;
  color: var(--d-1); font-size: 15px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
textarea.input { height: 120px; padding: 12px; resize: vertical; line-height: 22px; }
.input::placeholder { color: var(--d-3); }
.input:hover { border-color: rgba(238,242,250,0.22); }
.input:focus { outline: none; border-color: var(--blue); background: var(--slate-2); }
.field.has-error .input { border-color: #e5484d; }
.err { font-size: 12px; color: #f2858a; min-height: 0; display: none; }
.field.has-error .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--d-line-2); border-radius: 8px; font-size: 14px; color: var(--d-2); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip span:hover { color: var(--d-1); border-color: rgba(238,242,250,0.22); }
.chip input:checked + span { background: rgba(71,123,255,0.14); border-color: var(--blue); color: var(--d-1); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-size: 13px; color: var(--d-3); max-width: 28ch; }
.form-done { display: none; text-align: left; padding: 8px 0; }
.form.is-done > :not(.form-done) { display: none; }
.form.is-done .form-done { display: block; animation: rise var(--t-enter) var(--ease) both; }
.form-done svg { width: 32px; height: 32px; stroke: var(--pos); stroke-width: 1.5; margin-bottom: 16px; }
.form-done h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.form-done p { margin: 0; color: var(--d-2); }

/* Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--d-line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid p { margin: 16px 0 0; color: var(--d-3); font-size: 14px; max-width: 30ch; line-height: 22px; }
.foot-col h4 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--d-2); }
.foot-col a { display: block; font-size: 14px; color: var(--d-3); padding: 4px 0; transition: color var(--t-fast) var(--ease); }
.foot-col a:hover { color: var(--d-1); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--d-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--d-3); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.enter { animation: rise var(--t-enter) var(--ease) both; }
.enter-1 { animation-delay: 60ms; } .enter-2 { animation-delay: 120ms; } .enter-3 { animation-delay: 180ms; }
.enter-4 { animation-delay: 240ms; } .enter-5 { animation-delay: 300ms; }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 60ms; } .js .reveal-d2 { transition-delay: 120ms; } .js .reveal-d3 { transition-delay: 180ms; }

.js .hp-line { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.js .hp-area, .js .hp-base, .js .hp-grid, .js .hp-weeks, .js .hp-drop, .js .hp-ring, .js .hp-dot, .js .hp-note { opacity: 0; }
.hero-plot.is-drawn .hp-line { stroke-dashoffset: 0; transition: stroke-dashoffset 2000ms var(--ease) 400ms; }
.hero-plot.is-drawn .hp-grid, .hero-plot.is-drawn .hp-base, .hero-plot.is-drawn .hp-weeks { opacity: 1; transition: opacity 800ms var(--ease) 200ms; }
.hero-plot.is-drawn .hp-area { opacity: 1; transition: opacity 1200ms var(--ease) 1300ms; }
.hero-plot.is-drawn .hp-drop, .hero-plot.is-drawn .hp-ring, .hero-plot.is-drawn .hp-dot, .hero-plot.is-drawn .hp-note { opacity: 1; transition: opacity 500ms var(--ease) 2100ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero-plot { position: relative; left: auto; right: auto; height: 220px !important; margin-top: 72px; }
  .hero-plot svg { -webkit-mask-image: none; mask-image: none; }
  .hero-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-index a:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-index a:nth-child(n+3) { border-top: 1px solid var(--d-line); }
  .practice, .ind-grid { margin-left: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-num { padding-top: 0; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .method-track { display: none; }
  .step { border-top: 1px solid var(--d-line-2); }
  .principles, .contact { grid-template-columns: 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .ind { grid-column: span 6; }
  .ind.wide { grid-column: span 12; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .input { font-size: 16px; }
  body { font-size: 15px; }
  .brand-name span { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .kicker { margin-bottom: 24px; }
    .hero-sub { font-size: 17px; line-height: 26px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); line-height: 1.04; letter-spacing: -0.035em; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 28px; margin-top: 40px; padding-top: 28px; }
  .hero-plot { height: 190px !important; margin-top: 40px; }
  .hp-note .fig { display: none; }
  .hp-note strong { font-size: 36px; }
  .rotator { white-space: nowrap; }
  .hero-index { margin-top: 56px; }
  .hero-index { grid-template-columns: 1fr; }
  .hero-index a, .hero-index a:nth-child(3) { border-left: 0; padding: 0; height: 56px; }
  .hero-index a + a { border-top: 1px solid var(--d-line); }
  .hero-index a svg { opacity: 1; transform: none; }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-title { font-size: 30px; }
  .sec-lede { font-size: 16px; line-height: 25px; }
  .p-trigger { grid-template-columns: 32px minmax(0, 1fr) 24px; min-height: 72px; gap: 12px; }
  .p-tags { display: none; }
  .p-name { font-size: 19px; }
  .p-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 0 28px 44px; }
  .method { grid-template-columns: 1fr; row-gap: 32px; }
  .step { padding-right: 0; }
  .ind, .ind.wide { grid-column: span 12; min-height: 0; }
  .ind h3 { margin-top: 16px; }
  .row-2 { grid-template-columns: 1fr; }
  .form { padding: 20px; border-radius: 16px; }
  .form-foot .btn { width: 100%; }
  .mail-line { width: 100%; justify-content: flex-start; font-size: 13px; }
  .mail-line .copy-state { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { margin-top: 40px; }
}

/* ---------- Legal pages ---------- */
.legal-nav { position: sticky; top: 0; z-index: 10; height: var(--nav-h); background: rgba(11,18,32,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--d-line); }
.legal-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-head { padding: 96px 0 48px; border-bottom: 1px solid var(--d-line); }
.legal-head .fig { display: block; margin-bottom: 16px; }
.legal-head h1 { margin: 0; font-size: clamp(36px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.legal-head p { margin: 16px 0 0; color: var(--d-2); font-size: 17px; line-height: 27px; max-width: 40rem; }
.legal-body { background: var(--off); color: var(--l-1); padding: 80px 0 128px; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 4px; }
.toc a { display: flex; gap: 12px; font-size: 14px; color: var(--l-2); padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.toc a:hover { color: var(--l-1); }
.toc a .mono { font-size: 12px; color: var(--l-3); min-width: 20px; }
.prose { max-width: 680px; }
.prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--l-line-2); }
.prose h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; display: flex; gap: 16px; align-items: baseline; }
.prose h2 .mono { font-size: 12px; color: var(--l-3); font-weight: 400; }
.prose p, .prose li { font-size: 16px; line-height: 27px; color: var(--l-2); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--l-1); font-weight: 500; }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; grid-template-columns: 1fr 1fr; padding-bottom: 32px; border-bottom: 1px solid var(--l-line-2); }
}
@media (max-width: 640px) {
  .legal-head { padding: 56px 0 40px; }
  .legal-body { padding: 48px 0 80px; }
  .toc { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 15px; line-height: 25px; }
}
