/* Turnstone Works site styles. Direction C: Chapters.
   Colours live in :root; each section picks a "tone" that sets local variables. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --indigo: #2A2877;
  --indigo-2: #3B399A;
  --indigo-3: #4644AE;
  --indigo-line: #5754BD;
  --lilac: #F3F2FB;
  --lilac-2: #DCDAF3;
  --lilac-3: #B9B7EA;
  --lilac-ink: #D3D2F5;
  --ink: #17172B;
  --muted: #55557A;
  --sun: #FFC94B;
  --sun-ink: #3A3320;
  --white: #FFFFFF;
  --radius: 24px;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--lilac);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- tones ---------- */
.tone { background: var(--t-bg); color: var(--t-ink); }
.tone-hero, .tone-deep {
  --t-bg: var(--indigo); --t-ink: var(--white); --t-muted: var(--lilac-ink);
  --t-eyebrow: var(--sun); --t-surface: var(--indigo-2); --t-surface-2: var(--indigo-3);
  --t-btn: var(--sun); --t-btn-ink: var(--ink); --t-ghost: #8583D6;
  --t-link: var(--sun); --t-num: #8583D6; --t-focus: var(--sun);
}
.tone-plain {
  --t-bg: var(--lilac); --t-ink: var(--ink); --t-muted: var(--muted);
  --t-eyebrow: var(--indigo); --t-surface: var(--white); --t-surface-2: var(--lilac);
  --t-btn: var(--indigo); --t-btn-ink: var(--white); --t-ghost: var(--lilac-3);
  --t-link: var(--indigo); --t-num: var(--lilac-3); --t-focus: var(--indigo);
}
.tone-white {
  --t-bg: var(--white); --t-ink: var(--ink); --t-muted: var(--muted);
  --t-eyebrow: var(--indigo); --t-surface: var(--lilac); --t-surface-2: var(--white);
  --t-btn: var(--indigo); --t-btn-ink: var(--white); --t-ghost: var(--lilac-3);
  --t-link: var(--indigo); --t-num: var(--lilac-3); --t-focus: var(--indigo);
}
.tone-cta {
  --t-bg: var(--sun); --t-ink: var(--ink); --t-muted: var(--sun-ink);
  --t-eyebrow: var(--ink); --t-surface: #FFD978;
  --t-btn: var(--ink); --t-btn-ink: var(--white); --t-ghost: var(--ink);
  --t-link: var(--ink); --t-focus: var(--ink);
}
.tone-foot {
  --t-bg: var(--ink); --t-ink: var(--lilac-3); --t-muted: var(--lilac-3);
  --t-link: var(--white); --t-focus: var(--sun);
}

:focus-visible { outline: 3px solid var(--t-focus, var(--indigo)); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

/* ---------- type ---------- */
h1, .h1 { font-weight: 600; font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h1-page { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; }
h2, .h2 { font-weight: 600; font-size: clamp(2rem, 3.9vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
h3, .h3 { font-weight: 600; font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; }
.h4 { font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-eyebrow); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.3125rem); line-height: 1.45; color: var(--t-muted); max-width: 34em; }
.muted { color: var(--t-muted); }
.small { font-size: 1rem; }
.prose { max-width: 40em; }
.prose > * + * { margin-top: 1em; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--t-btn); color: var(--t-btn-ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 23, 43, 0.2); }
.btn-ghost { background: transparent; color: var(--t-ink); box-shadow: inset 0 0 0 1.5px var(--t-ghost); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--t-ink); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font-weight: 600; color: var(--t-link); text-decoration: none; }
.link-arrow svg { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.text-link { color: var(--t-link); font-weight: 500; text-underline-offset: 3px; }

/* ---------- preview banner ---------- */
.preview-bar { background: var(--ink); color: var(--lilac-ink); font-size: 0.9375rem; text-align: center; padding: 8px var(--gutter); }
.preview-bar mark { background: #FFF1C2; color: var(--ink); border-radius: 5px; padding: 0 0.3em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--indigo); color: var(--white); --t-focus: var(--sun); transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23, 23, 43, 0.28); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; color: var(--white); text-decoration: none; }
.brand-mark { width: 50px; height: 39px; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--lilac-ink); font-weight: 500; font-size: 1rem; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--sun); }
.nav .btn { --t-btn: var(--sun); --t-btn-ink: var(--ink); }
@media (max-width: 640px) {
  .nav { gap: 0 18px; width: 100%; justify-content: space-between; }
  .brand { font-size: 1.25rem; }
}

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(56px, 8vw, 96px); }
.page-hero .hero-copy { max-width: 52rem; }

.stones { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 12px; }
.stone { width: 78%; padding: 18px 22px; border-radius: 18px; background: var(--indigo-2); color: var(--lilac-ink); font-weight: 500; }
.stone:nth-child(1) { transform: rotate(-4deg); }
.stone:nth-child(2) { background: var(--indigo-3); color: #E4E3FA; transform: rotate(3deg); }
.stone:nth-child(3) { transform: rotate(-2deg); }
.stone-one { width: 86%; padding: 22px 24px; border-radius: 18px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 40px; }
.strip strong { display: block; font-weight: 600; }
.strip span { color: var(--t-muted); font-size: 1rem; }

/* ---------- cards ---------- */
.card { background: var(--t-surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
a.card { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 40, 119, 0.16); }
.card .tag { font-size: 1rem; color: var(--t-muted); }
.card .push { margin-top: auto; }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-eyebrow); }
.kv { display: grid; gap: 4px; }
.kv p { color: var(--t-muted); font-size: 1.0625rem; }

/* ---------- chapters ---------- */
.chapters { display: grid; gap: clamp(20px, 3vw, 32px); }
.chapter { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.chapter-num { font-weight: 700; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--t-num); }
.chapter-body { background: var(--t-surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.chapter-body > * + * { margin-top: 12px; }
.chapter-body p { color: var(--t-muted); }
.chapter-final .chapter-num { color: var(--indigo); }
.chapter-final .chapter-body { background: var(--indigo); color: var(--white); --t-muted: var(--lilac-ink); --t-eyebrow: var(--sun); }
@media (max-width: 720px) { .chapter { grid-template-columns: 1fr; gap: 8px; } }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-top: 22px !important; counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--lilac); border-radius: 16px; padding: 18px; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; color: var(--ink); }
.flow li::before { content: counter(flow); display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9375rem; color: var(--indigo); }
.flow li:last-child { background: var(--sun); }
.flow li:last-child::before { color: var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 14px; border-radius: 999px; background: var(--t-surface); color: var(--t-ink); font-size: 1rem; font-weight: 500; }

/* ---------- services ---------- */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); border-top: 1.5px solid var(--lilac-2); }
.service:last-child { border-bottom: 1.5px solid var(--lilac-2); }
.service > div { display: grid; gap: 14px; align-content: start; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { margin-top: 4px; }
.outcome { background: var(--t-surface); border-radius: 16px; padding: 18px 20px; }
.outcome p { color: var(--t-ink); }

/* ---------- steps ---------- */
.step { background: var(--t-surface); border-radius: 20px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.step .n { font-weight: 700; color: var(--t-eyebrow); }
.step p { color: var(--t-muted); font-size: 1.0625rem; }

/* ---------- cta + footer ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.cta-row > div:first-child { flex: 1 1 520px; display: grid; gap: 12px; }
.cta-actions { display: grid; gap: 10px; justify-items: start; }
.site-footer { font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { color: var(--t-ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--white); }

/* ---------- placeholders awaiting real details ---------- */
mark.todo { background: #FFF1C2; color: var(--ink); border-radius: 6px; padding: 0 0.25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card, .link-arrow svg { transition: none; }
}


/* ======================================================================
   Direction B: Night, in June's palette (gatmholdingsllc.com, 2026-11-12):
   navy #1F3E5C, dark navy #112337, orange #EA861B, greys #868686 #E5E5E7 #F7F7F7.
   One family: Montserrat. 8px corners. Overrides the Direction C values above.
   ====================================================================== */
:root {
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --navy: #1F3E5C; --navy-dark: #112337; --navy-deep: #0B1A2B;
  --panel: #18324D; --panel-2: #22425F; --line: rgba(247, 247, 247, 0.12);
  --indigo: var(--navy); --indigo-2: #284B6E; --indigo-3: #31597F; --indigo-line: #3D6890;
  --lilac: #F7F7F7; --lilac-2: #E5E5E7; --lilac-3: #8FA3B8; --lilac-ink: #C5D0DC;
  --ink: #112337; --muted: #C5D0DC; --sun: #EA861B; --sun-ink: #2A1A06; --white: #F7F7F7;
  --radius: 10px;
}
body { background: var(--navy-dark); color: var(--white); }
.tone-hero, .tone-plain {
  --t-bg: var(--navy-dark); --t-ink: var(--white); --t-muted: var(--lilac-ink);
  --t-eyebrow: var(--sun); --t-surface: var(--panel); --t-surface-2: var(--panel-2);
  --t-btn: var(--sun); --t-btn-ink: var(--navy-dark); --t-ghost: var(--indigo-line);
  --t-link: #F5A04A; --t-num: #5F7FA0; --t-focus: var(--sun);
}
.tone-white { --t-bg: var(--navy-deep); --t-ink: var(--white); --t-muted: var(--lilac-ink);
  --t-eyebrow: var(--sun); --t-surface: var(--panel); --t-surface-2: var(--panel-2);
  --t-btn: var(--sun); --t-btn-ink: var(--navy-dark); --t-ghost: var(--indigo-line);
  --t-link: #F5A04A; --t-num: #5F7FA0; --t-focus: var(--sun); }
.tone-deep, .tone-cta { --t-bg: var(--navy); --t-ink: var(--white); --t-muted: var(--lilac-ink);
  --t-eyebrow: var(--sun); --t-surface: #284B6E; --t-surface-2: #31597F;
  --t-btn: var(--sun); --t-btn-ink: var(--navy-dark); --t-ghost: #6F8FAE;
  --t-link: #F5A04A; --t-num: #8FA3B8; --t-focus: var(--sun); }
.tone-foot { --t-bg: var(--navy-deep); --t-ink: var(--lilac-3); --t-muted: var(--lilac-3); --t-link: var(--white); }
.site-header { background: var(--navy-dark); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.preview-bar { background: var(--navy-deep); }
.btn { border-radius: 8px; }
.btn:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
a.card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.card, .chapter-body, .outcome, .step { border: 1px solid var(--line); }
.stone, .stone-one { border-radius: 10px; }
.stone:nth-child(2) { color: var(--white); }
.chapter-final .chapter-num { color: var(--sun); }
.chapter-final .chapter-body { background: var(--sun); color: var(--navy-dark); --t-muted: var(--sun-ink); --t-eyebrow: var(--navy-dark); border-color: transparent; }
.flow li { background: var(--panel-2); color: var(--white); border-radius: 10px; }
.flow li::before { color: var(--sun); }
.flow li:last-child { background: var(--sun); color: var(--navy-dark); }
.flow li:last-child::before { color: var(--navy-dark); }
.service, .service:last-child { border-color: var(--line); }
.skip { background: var(--white); color: var(--navy-dark); }
