/* Moonshot landing page: 6 AI employees for local service businesses.
   Tokens mirror Tegrity Website V2/1.3/css/tokens.css and active/templates/brand/tegrity-doc.css.
   Fonts are self-hosted beside this file so index.html opens by double-click. */

@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #FAFAF7; --ink: #050505; --body: #1A1A1A; --functional: #767369;
  --hairline: #B8B6B0; --surface: #E8E6E0; --paper-2: #F2F1EC;
  --green: #15803D; --blue: #1E3A8A; --orange: #B45309; --red: #B91C1C;
  --on-dark-muted: #B9B6AD; --on-dark-rule: #2A2A2A; --on-dark-rule-2: #3A3A3A;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms; --dur: 320ms;
  --shadow-1: 0 1px 2px rgba(5, 5, 5, 0.06), 0 8px 24px rgba(5, 5, 5, 0.06);
  --nav-h: 68px;
}

/* The four groups the six employees fall into. Each card, roster row and ledger row carries data-group,
   and everything accent-colored inside it reads --accent. Green = leads, red = sales, orange = reviews, blue = marketing. */
[data-group="leads"] { --accent: var(--green); }
[data-group="sales"] { --accent: var(--red); }
[data-group="reviews"] { --accent: var(--orange); }
[data-group="marketing"] { --accent: var(--blue); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--body); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.08; text-wrap: balance; color: var(--ink); }
p { max-width: 62ch; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }
.hero :focus-visible, .closing :focus-visible, .nav.on-dark :focus-visible { outline-color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.8125rem;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--functional);
}
.eyebrow--green { color: var(--green); }
.todo {
  display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--orange); border: 1px dashed color-mix(in srgb, var(--orange) 55%, transparent);
  border-radius: var(--radius); padding: 3px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  height: 48px; padding: 0 24px; border-radius: var(--radius);
  border: 1px solid var(--ink); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #1F1F1F; }
.btn--paper { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--paper:hover { background: #FFFFFF; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 1rem; }
.btn--nav { height: 40px; padding: 0 18px; font-size: 0.875rem; background: var(--ink); color: var(--bg); }
.btn--nav:hover { background: #1F1F1F; }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.quiet-link {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--on-dark-muted);
  border-bottom: 1px solid var(--on-dark-rule-2); padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.quiet-link:hover { color: var(--bg); border-color: var(--bg); }

/* ---------- Nav: transparent over the ink hero, paper once the hero scrolls away ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  background-color: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav .wordmark { color: var(--ink); transition: color var(--dur) var(--ease); }
.nav.on-dark { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.on-dark .wordmark { color: var(--bg); }
.nav.on-dark .btn--nav { background: transparent; color: var(--bg); border-color: var(--on-dark-muted); }
.nav.on-dark .btn--nav:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__site { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--functional); display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-fast) var(--ease); }
.nav__site span { transition: transform var(--dur-fast) var(--ease); }
.nav__site:hover { color: var(--ink); }
.nav__site:hover span { transform: translateX(3px); }
.nav.on-dark .nav__site { color: var(--on-dark-muted); }
.nav.on-dark .nav__site:hover { color: var(--bg); }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); }
.wordmark svg { height: 18px; width: auto; }
.wordmark--small svg { height: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--bg); padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem)); }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.hero__title {
  font-weight: 900; letter-spacing: -0.035em; line-height: 0.96;
  font-size: clamp(2.75rem, 6.6vw, 5.25rem); color: var(--bg);
  max-width: 14ch; margin-top: 22px;
}
.hero__lead { margin-top: 30px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--on-dark-muted); max-width: 52ch; }
.hero__lead strong { color: var(--bg); font-weight: 600; }
.hero__lead .u {
  color: var(--bg); font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent);
  cursor: pointer; border-radius: 2px; transition: text-decoration-thickness var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.hero__lead .u:hover { text-decoration-thickness: 3px; background-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.u--leads { --accent: var(--green); }
.u--sales { --accent: #E24B4B; }       /* the brand red, lifted for legibility on ink; the true red stays on paper */
.u--reviews { --accent: #D9731C; }     /* same for orange */
.u--marketing { --accent: #3B5BC9; }   /* same for blue */
.hero__actions { margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.roster { border-top: 1px solid var(--on-dark-rule); }
.roster__head { padding: 14px 0 6px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.roster__list li { border-bottom: 1px solid var(--on-dark-rule); }
.roster__list button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 0; text-align: left; color: var(--on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}
.roster__list button[data-group="sales"] { --accent: #E24B4B; }
.roster__list button[data-group="reviews"] { --accent: #D9731C; }
.roster__list button[data-group="marketing"] { --accent: #3B5BC9; }
.roster__num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; color: #8C887E; transition: color var(--dur-fast) var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.roster__num::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); flex: none; }
.roster__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.roster__arrow { font-size: 1rem; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.roster__list button:hover, .roster__list button:focus-visible { color: var(--bg); }
.roster__list button:hover .roster__num { color: var(--bg); }
.roster__list button:hover .roster__arrow, .roster__list button:focus-visible .roster__arrow { opacity: 1; transform: none; }

.hero__facts {
  margin-top: clamp(3rem, 7vw, 5.5rem); padding-block: 18px;
  border-top: 1px solid var(--on-dark-rule);
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--on-dark-muted); letter-spacing: 0.02em;
}
.hero__facts span { display: inline-flex; align-items: center; }
.hero__facts span + span::before { content: "|"; color: #4A4A4A; margin-inline: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--band { background: var(--paper-2); border-top: 1px solid var(--surface); border-bottom: 1px solid var(--surface); }
.section--rule { border-top: 1px solid var(--surface); }
.section__head { max-width: 760px; }
.section__title {
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(1.875rem, 4.2vw, 3rem); margin-top: 16px;
}
.section__lead { margin-top: 18px; font-size: 1.0625rem; color: var(--body); }
.section__lead + .section__lead { margin-top: 10px; }
.legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--functional); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); }

/* ---------- Problem ---------- */
.pains { margin-top: 52px; border-top: 1px solid var(--hairline); }
.pains li {
  display: grid; grid-template-columns: 240px 1fr; gap: 16px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--hairline);
}
.pains__label { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-size: 1.0625rem; }
.pains__quote { color: var(--body); max-width: 60ch; font-size: 1.0625rem; }
.pains__quote::before { content: "\201C"; color: var(--hairline); }
.pains__quote::after { content: "\201D"; color: var(--hairline); }

/* ---------- Employees grid ---------- */
.emp-grid {
  position: relative;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  margin-top: 40px;
}
.emp-card {
  position: relative; z-index: 1;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 22px 24px 24px; cursor: pointer; min-height: 310px;
  display: flex; flex-direction: column;
  transition: border-color var(--dur-fast) var(--ease);
}
.emp-card:hover { border-color: var(--ink); }
.emp-card:focus-visible { outline-offset: 2px; }
.emp-card__top { display: flex; justify-content: space-between; align-items: center; }
.emp-card__num, .emp-panel__num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--functional); letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 10px; }
.emp-card__group, .emp-panel__group { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.1em; }
.emp-card__group::before, .emp-panel__group::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); }
.emp-card__open {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--functional); letter-spacing: 0.1em; text-transform: uppercase;
}
.emp-card__open span { opacity: 0; transform: translateX(4px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.emp-card:hover .emp-card__open span, .emp-card:focus-visible .emp-card__open span { opacity: 1; transform: none; }
.emp-card__open::after {
  content: ""; width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: border-color var(--dur-fast) var(--ease);
}
.emp-card:hover .emp-card__open::after { border-color: var(--ink); }
.emp-art { color: var(--ink); }
.emp-art svg { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.emp-art .fill { fill: currentColor; stroke: none; }
.emp-art .acc { fill: var(--accent, var(--green)); stroke: none; }
.emp-art .acc-stroke { stroke: var(--accent, var(--green)); stroke-width: 2; }
.emp-art .on-acc { stroke: var(--bg); stroke-width: 2; }
.emp-card__art { margin-top: 28px; width: 60px; height: 60px; }
.emp-card__name { margin-top: 24px; font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em; }
.emp-card__job { margin-top: 8px; color: var(--body); font-size: 0.9375rem; line-height: 1.55; }
.emp-card__stat {
  margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 7px 1fr; gap: 10px; align-items: start;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--accent); letter-spacing: 0.01em; line-height: 1.5;
}
.emp-card__stat::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); margin-top: 5px; }

.emp-panel {
  position: absolute; z-index: 3; left: 0; top: 0;
  background: var(--bg); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.emp-panel__inner { padding: 34px 38px 38px; opacity: 0; transition: opacity 140ms var(--ease); min-height: 100%; display: flex; flex-direction: column; }
.emp-panel.is-shown .emp-panel__inner { opacity: 1; }
.emp-panel__close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.emp-panel__close:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.emp-panel__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.emp-panel__head { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; padding-right: 48px; }
.emp-panel__art { width: 72px; height: 72px; }
.emp-panel__name { margin-top: 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -0.03em; }
.emp-panel__job { margin-top: 8px; color: var(--body); font-size: 1.0625rem; max-width: 56ch; }
.emp-panel__body { display: flex; flex-direction: column; flex: 1; }
/* What It Fixes: the owner's own words, first and tinted in the group color, so it is what the eye lands on. */
.emp-panel__fixes {
  margin-top: 28px; padding: 20px 22px 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border-left: 3px solid var(--accent);
}
.emp-panel__fixes h4 { color: var(--accent); }
.emp-panel__fixes ul { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.emp-panel__fixes li { position: relative; padding-left: 16px; font-size: 1rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.emp-panel__fixes li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.emp-panel__cols {
  margin-top: 28px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
}
.emp-panel__cols h4, .emp-panel__fixes h4 { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--functional); }
.emp-panel__cols p { margin-top: 10px; color: var(--body); font-size: 0.9375rem; line-height: 1.6; }
.emp-panel__cols ul { margin-top: 10px; display: grid; gap: 10px; }
.emp-panel__cols li { position: relative; padding-left: 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--body); }
.emp-panel__cols li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.emp-panel__proof {
  margin-top: auto; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem; color: var(--body); max-width: none;
}
.emp-panel__cols + .emp-panel__proof { margin-top: 28px; }
.emp-panel__fixes h4 { color: var(--accent); }
.emp-panel__proof .eyebrow { display: block; margin-bottom: 4px; color: var(--accent); }


/* ---------- Proof ledger ---------- */
.ledger { margin-top: 52px; border-top: 1px solid var(--hairline); }
.ledger__row {
  display: grid; grid-template-columns: 56px 240px 1fr; gap: 12px 28px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
}
.ledger__num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--functional); letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 10px; padding-top: 3px; }
.ledger__num::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); }
.ledger__name { font-weight: 700; color: var(--ink); letter-spacing: -0.015em; font-size: 1.0625rem; }
.ledger__result { color: var(--body); font-size: 1rem; max-width: 60ch; }
.proof__note { margin-top: 22px; font-size: 0.9375rem; color: var(--functional); }

/* ---------- How it works ---------- */
.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step__num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--functional); letter-spacing: 0.06em; }
.step h3 { margin-top: 12px; font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--body); font-size: 0.9375rem; }

/* ---------- Who ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); background: var(--surface); }
.about__copy p { margin-top: 16px; font-size: 1.0625rem; color: var(--body); max-width: 54ch; }
.about__copy .section__title + p { margin-top: 22px; }
.about__sig { margin-top: 26px !important; display: flex; flex-direction: column; gap: 2px; }
.about__sig strong { color: var(--ink); font-weight: 700; }
.about__sig span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--functional); }

/* ---------- Referrers ---------- */
.refer__trades { margin-top: 24px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--functional); line-height: 1.8; display: flex; flex-wrap: wrap; row-gap: 4px; max-width: none; }
.refer__trades span + span::before { content: "|"; color: var(--hairline); margin-inline: 10px; }

/* ---------- Closing band ---------- */
.closing { background: var(--ink); color: var(--bg); padding-block: clamp(4.5rem, 9vw, 8rem); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.closing__title { font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(2.5rem, 6vw, 4.75rem); color: var(--bg); max-width: 14ch; }
.closing__lead { margin-top: 24px; color: var(--on-dark-muted); font-size: 1.0625rem; max-width: 50ch; }
.closing__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.closing__note { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 32px 40px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer__meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--functional); }
.footer__meta a:hover { color: var(--ink); }

/* ---------- Reveal on scroll (JS adds .is-in; without JS everything is visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr); gap: 64px; }
  .hero__title { font-size: clamp(2.75rem, 5.4vw, 4.625rem); max-width: 15ch; }
  .roster { margin-top: 10px; }
}
@media (max-width: 1023px) {
  .roster { margin-top: 8px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .emp-panel__cols { grid-template-columns: 1fr; gap: 24px; }
  .emp-panel__fixes ul { grid-template-columns: 1fr; }
  .closing__grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .ledger__row { grid-template-columns: 56px 1fr; }
  .ledger__result { grid-column: 2; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 320px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav__right { gap: 14px; }
  .nav__site span { display: none; }
  .pains li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .pains__label, .pains__quote { font-size: 1rem; }
  .emp-card { min-height: 0; }
  .emp-panel__inner { padding: 22px 18px 24px; }
  .emp-panel__fixes { padding: 16px 16px 18px; margin-top: 22px; }
  .emp-panel__cols { margin-top: 22px; }
  .emp-panel__head { grid-template-columns: 56px 1fr; gap: 16px; padding-right: 40px; }
  .emp-panel__art { width: 56px; height: 56px; }
  .emp-panel__close { top: 12px; right: 12px; }
  .hero__facts span { display: block; }
  .hero__facts span + span::before { content: none; }
  .hero__facts { flex-direction: column; gap: 6px; }
  .roster__list button { padding: 12px 0; }
  .roster__name { font-size: 1rem; }
  .ledger__row { grid-template-columns: 1fr; gap: 6px; }
  .ledger__result { grid-column: 1; }
  .refer__trades { display: grid; grid-template-columns: 1fr 1fr; row-gap: 2px; }
  .refer__trades span + span::before { content: none; }
  .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow, .emp-card, .emp-panel__inner, .nav, .roster__list button, .roster__arrow, .emp-card__open span { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
