/* ==========================================================================
   S.I.P. — Self-Improvement Philosophy
   Design system. One stylesheet, no framework.
   Direction: quiet editorial luxury. Ink, ivory paper, a single brass thread.
   ========================================================================== */

:root {
  --ink: #0d111c;
  --ink-2: #161b2b;
  --ink-3: #222842;
  --paper: #f5f7fd;
  --paper-2: #ebeefa;
  --paper-3: #dde2f4;
  --text: #0d111c;
  --muted: #6b6e71;
  --brass: #5b3fd6;
  --brass-hi: #b9abf7;
  --brass-lo: #4a30c0;
  --sage: #6f8b7b;
  --clay: #a6563b;
  --hair: rgba(13, 17, 28, .12);
  --hair-dark: rgba(245, 247, 253, .16);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif; /* stand-in for Ivy Presto Display */
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-lo); }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.2vw, 6.9rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.55rem, 2.3vw, 2.05rem); line-height: 1.12; }
h4 { font-size: 1.3rem; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--brass-lo); font-weight: 500; }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em, .hero em, .band-dark em { color: var(--brass-hi); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.6; color: var(--muted); max-width: 40em; }
.on-dark .lead, .hero .lead, .band-dark .lead { color: rgba(245, 240, 231, .74); }
.eyebrow {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--brass-lo);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.on-dark .eyebrow, .hero .eyebrow, .band-dark .eyebrow { color: var(--brass-hi); }
.small { font-size: .88rem; color: var(--muted); }
.on-dark .small, .band-dark .small { color: rgba(245, 240, 231, .6); }
.serif { font-family: var(--serif); }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
section { position: relative; }
.pad { padding-block: clamp(72px, 11vw, 168px); }
.pad-sm { padding-block: clamp(48px, 7vw, 96px); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-paper2 { background: var(--paper-2); }
.cols { display: grid; gap: clamp(32px, 5vw, 88px); grid-template-columns: repeat(12, 1fr); align-items: start; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: 1 / -1; }
.stack > * + * { margin-top: 1.4rem; }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.band-dark .rule { background: var(--hair-dark); }

.chapter { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.chapter .roman { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--brass-lo); min-width: 2.2ch; }
.chapter .label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.band-dark .chapter .roman { color: var(--brass-hi); }
.band-dark .chapter .label { color: rgba(245, 240, 231, .62); }
.band-dark .chapter::after { background: var(--hair-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  color: var(--paper);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  --header-h: 68px; height: 68px;
  background: rgba(245, 240, 231, .9); color: var(--text);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .14em; }
.brand .word i { font-style: normal; font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7; margin-top: 5px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; position: relative; padding-block: 8px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--brass); transition: right .45s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a:hover { color: inherit; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 7px auto; transition: transform .4s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 18px 28px; border: 1px solid var(--brass); background: var(--brass); color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn .arr { width: 22px; height: 10px; transition: transform .45s var(--ease); flex: none; }
.btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.btn:hover .arr { transform: translateX(6px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-3); color: var(--paper); border-color: var(--ink-3); }
.btn.sm { padding: 12px 20px; font-size: .72rem; }
.site-header .btn { padding: 12px 20px; font-size: .7rem; }
.site-header.is-scrolled .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-header.is-scrolled .btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.textlink { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px; display: inline-flex; gap: 10px; align-items: center; }
.textlink:hover { color: var(--brass-lo); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; padding-top: calc(var(--header-h) + clamp(72px, 11vw, 150px)); padding-bottom: clamp(72px, 10vw, 140px); }
.hero.short .wrap { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 100px); }
.hero h1 { max-width: 13.5em; margin-top: 1.4rem; }
.hero.short h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); max-width: 16em; }
.hero .lead { margin-top: 1.8rem; max-width: 36em; }
.hero::before { /* glow */
  content: ""; position: absolute; z-index: -1; right: -12%; top: -20%; width: 80vmax; height: 80vmax;
  background: radial-gradient(closest-side, rgba(212, 181, 123, .16), rgba(212, 181, 123, 0) 70%);
}
.hero::after { /* fine vertical hairlines */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(245, 240, 231, .045) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 12) 100%; background-position: var(--gutter) 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.rings { position: absolute; z-index: -1; right: -14vmax; top: 50%; width: 92vmax; max-width: 1400px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings .ring { fill: none; stroke: var(--brass-hi); stroke-width: .9; vector-effect: non-scaling-stroke; transform-origin: 500px 500px; animation: breathe 11s ease-in-out infinite; }
.rings .ring:nth-child(2) { animation-delay: -1.2s; } .rings .ring:nth-child(3) { animation-delay: -2.4s; }
.rings .ring:nth-child(4) { animation-delay: -3.6s; } .rings .ring:nth-child(5) { animation-delay: -4.8s; }
.rings .ring:nth-child(6) { animation-delay: -6s; } .rings .ring:nth-child(7) { animation-delay: -7.2s; }
.rings .thread { stroke: var(--brass-hi); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.hero-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(20px, 4vw, 56px); margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--hair-dark); }
.hero-meta div { font-size: .8rem; letter-spacing: .06em; color: rgba(245, 240, 231, .66); line-height: 1.4; }
.hero-meta b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.1rem; color: var(--paper); letter-spacing: 0; line-height: 1; margin-bottom: 8px; }
.scrollcue { position: absolute; z-index: 3; left: var(--gutter); bottom: 28px; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 240, 231, .5); display: none; }

/* ---------- Statement ---------- */
.statement { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.1; letter-spacing: -.01em; font-weight: 500; max-width: 19em; text-wrap: balance; }
.statement .dim { color: var(--muted); }
.band-dark .statement .dim { color: rgba(245, 240, 231, .5); }

/* ---------- Pathway flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin-top: 56px; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--hair); }
.stage { position: relative; padding: 0 22px 8px 0; }
.stage .dot { width: 29px; height: 29px; border-radius: 50%; background: var(--paper); border: 1px solid var(--text); display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; position: relative; z-index: 1; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.stage:hover .dot, .stage:focus-within .dot { background: var(--ink); color: var(--paper); transform: scale(1.12); }
.stage h4 { margin: 22px 0 8px; font-size: 1.45rem; }
.stage p { font-size: .94rem; color: var(--muted); margin: 0; line-height: 1.55; }
.stage .who { margin-top: 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-lo); font-weight: 600; line-height: 1.5; }
.layer-band {
  grid-column: 3 / 5; grid-row: 2; margin-top: 34px; position: relative;
  border: 1px solid var(--brass); background: linear-gradient(180deg, rgba(169, 133, 75, .16), rgba(169, 133, 75, .05));
  padding: 18px 22px; margin-right: 22px;
}
.layer-band::before { content: ""; position: absolute; left: 50%; top: -35px; height: 34px; width: 1px; background: var(--brass); }
.layer-band b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .1em; display: block; }
.layer-band span { font-size: .85rem; color: var(--muted); display: block; margin-top: 2px; line-height: 1.45; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair-dark); }
.stat { padding: 40px 28px 36px 0; border-right: 1px solid var(--hair-dark); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .95; color: var(--brass-hi); font-weight: 500; letter-spacing: -.02em; display: block; }
.stat .cap { margin-top: 16px; font-size: .94rem; color: rgba(245, 240, 231, .78); line-height: 1.5; }
.stat .src { margin-top: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 240, 231, .46); }

/* ---------- Practice cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.cards2 { grid-template-columns: repeat(2, 1fr); }
.cards2 .pcard:nth-child(2n) { border-right: 0; }
.cards2 .pcard:nth-child(n+3) { border-top: 1px solid var(--hair); }
.pcard { padding: clamp(28px, 3.2vw, 52px) clamp(22px, 2.6vw, 40px) clamp(32px, 3.4vw, 56px); border-right: 1px solid var(--hair); position: relative; transition: background .5s var(--ease); }
.pcard:last-child { border-right: 0; }
.pcard:hover { background: var(--paper-2); }
.pcard .n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--brass-lo); }
.pcard h3 { margin: 38px 0 14px; }
.pcard p { color: var(--muted); font-size: .98rem; }
.pcard .glyph { width: 56px; height: 56px; color: var(--brass-lo); margin-bottom: 8px; }
.pcard .glyph * { vector-effect: non-scaling-stroke; }

/* ---------- Spec list ---------- */
.spec { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); }
.spec div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.spec dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.spec dd small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.band-dark .spec, .band-dark .spec div { border-color: var(--hair-dark); }
.band-dark .spec dt { color: rgba(245, 240, 231, .55); }
.band-dark .spec dd small { color: rgba(245, 240, 231, .6); }

/* ---------- Measures ---------- */
.measures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.measure { border: 1px solid var(--hair); padding: 28px 24px 26px; background: rgba(255, 255, 255, .35); transition: transform .5s var(--ease), border-color .5s, background .5s; }
.measure:hover { transform: translateY(-4px); border-color: var(--brass); background: rgba(255, 255, 255, .6); }
.measure .gauge { height: 54px; margin-bottom: 20px; color: var(--brass-lo); }
.measure h4 { font-size: 1.35rem; margin-bottom: 8px; }
.measure p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }
.milestones { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 56px; }
.milestones .ms { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: 1.4rem; }
.milestones .ms b { font-size: 3rem; font-weight: 500; color: var(--brass-lo); line-height: 1; }
.milestones .ms::after { content: ""; width: clamp(28px, 6vw, 96px); height: 1px; background: var(--brass); margin-inline: 18px; }
.milestones .ms:last-child::after { display: none; }

/* ---------- Pledge ---------- */
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.pledge { border-top: 1px solid var(--brass); padding-top: 24px; }
.pledge h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.pledge p { color: rgba(245, 240, 231, .72); font-size: .98rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; border: 1px solid var(--hair); padding: clamp(24px, 3vw, 44px); background: rgba(255, 255, 255, .4); }
.monogram { width: 108px; height: 108px; border-radius: 50%; border: 1px solid var(--brass); display: grid; place-items: center; font-family: var(--serif); font-size: 2.3rem; color: var(--brass-lo); letter-spacing: .04em; position: relative; }
.monogram::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--hair); border-radius: 50%; }
.founder h3 { font-size: 2rem; }
.founder .role { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-lo); font-weight: 600; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 14em; }

/* ---------- Tabs ---------- */
.tabs [role="tablist"] { display: flex; gap: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { background: none; border: 0; font: inherit; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 20px 28px 20px 0; margin-right: 28px; cursor: pointer; position: relative; white-space: nowrap; }
.tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--brass); transition: right .5s var(--ease); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.tabs [role="tab"][aria-selected="true"]::after { right: 28px; }
.tabs [role="tabpanel"] { padding-top: 44px; }
.tabs [role="tabpanel"][hidden] { display: none; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.checklist li::before { content: ""; width: 22px; height: 1px; background: var(--brass); margin-top: .85em; }
.checklist.ticks li::before { display: none; }

/* ---------- Directory ---------- */
.dir-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(245, 240, 231, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); padding-block: 18px; transition: top .5s var(--ease); }
.is-scrolled-page .dir-bar { top: 68px; }
.dir-tools { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.search { position: relative; flex: 1 1 300px; max-width: 460px; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px 14px 46px; border: 1px solid var(--hair); background: #fffdf8; color: var(--text); border-radius: 0; transition: border-color .3s, box-shadow .3s; }
.search input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(169, 133, 75, .2); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 10px 16px; border: 1px solid var(--hair); background: transparent; color: var(--text); cursor: pointer; transition: all .35s var(--ease); }
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .ct { opacity: .55; margin-left: 6px; font-weight: 500; }
.dir-count { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 72px); margin-top: 18px; }
.entry { border-bottom: 1px solid var(--hair); padding: 34px 0 30px; }
.entry[hidden] { display: none; }
.entry-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.entry h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brass-lo); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border: 1px solid var(--brass); color: var(--brass-lo); }
.badge.verify { border-color: var(--clay); color: var(--clay); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.entry .blurb { color: var(--muted); margin: 14px 0 12px; font-size: 1rem; }
.entry .roles { font-size: .9rem; }
.entry .roles b { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.entry details { margin-top: 16px; }
.entry summary { cursor: pointer; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--brass-lo); transition: transform .4s var(--ease); }
.entry details[open] summary::after { transform: rotate(45deg); }
.entry ol { margin: 14px 0 0; padding-left: 1.2em; font-size: .94rem; color: var(--muted); }
.entry ol li { margin-bottom: 6px; padding-left: 6px; }
.entry ol li::marker { font-family: var(--serif); color: var(--brass-lo); }
.entry .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; }
.entry .links a { font-weight: 500; }
.entry .vnote { margin-top: 12px; font-size: .84rem; color: var(--clay); }
.empty { padding: 80px 0; text-align: center; font-family: var(--serif); font-size: 1.8rem; color: var(--muted); }
.entry mark { background: rgba(212, 181, 123, .45); color: inherit; padding: 0 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--text); }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.t th { text-align: left; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 16px 18px 14px 0; border-bottom: 1px solid var(--hair); }
table.t td { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--hair); vertical-align: top; line-height: 1.5; }
table.t td:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; min-width: 200px; }
.speed { display: inline-flex; gap: 3px; vertical-align: middle; }
.speed i { width: 14px; height: 6px; background: var(--paper-3); }
.speed i.on { background: var(--brass); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--text); }
.tl { padding: 30px 28px 10px 0; position: relative; }
.tl + .tl { padding-left: 28px; border-left: 1px solid var(--hair); }
.tl .wk { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-lo); font-weight: 600; }
.tl h4 { font-size: 1.7rem; margin: 10px 0 12px; }
.tl ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: .95rem; }
.tl li { margin-bottom: 8px; }

/* ---------- Pilot cards (workroom) ---------- */
.pilot { border: 1px solid var(--hair); background: rgba(255, 255, 255, .4); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.pilot h3 { font-size: 1.7rem; }
.pilot ul { padding-left: 1.1em; margin: 0; font-size: .93rem; color: var(--muted); }
.pilot li { margin-bottom: 8px; }
.pilot .status { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* workroom side nav */
.workroom-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.workroom-nav a { text-decoration: none; padding: 10px 0 10px 16px; border-left: 1px solid var(--hair); color: var(--muted); transition: all .35s var(--ease); }
.workroom-nav a:hover, .workroom-nav a.on { border-left-color: var(--brass); color: var(--text); padding-left: 22px; }
.verify-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); cursor: pointer; align-items: start; }
.verify-item input { appearance: none; width: 22px; height: 22px; border: 1px solid var(--text); margin: 3px 0 0; display: grid; place-content: center; cursor: pointer; background: #fffdf8; }
.verify-item input::after { content: ""; width: 10px; height: 10px; background: var(--brass); transform: scale(0); transition: transform .3s var(--ease); }
.verify-item input:checked::after { transform: scale(1); }
.verify-item input:checked + div { opacity: .5; text-decoration: line-through; text-decoration-color: var(--brass); }
.verify-item b { font-weight: 600; }
.progress { height: 2px; background: var(--hair); margin: 18px 0 0; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass); transition: width .6s var(--ease); }
.notice { border-left: 2px solid var(--clay); background: rgba(166, 86, 59, .07); padding: 18px 22px; font-size: .95rem; }
.notice.brass { border-left-color: var(--brass); background: rgba(169, 133, 75, .1); }

/* ---------- Pathway page (detailed) ---------- */
.journey { position: relative; counter-reset: j; }
.journey::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: var(--hair); }
.jstep { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: clamp(20px, 3vw, 48px); padding-bottom: clamp(48px, 6vw, 88px); }
.jstep .jn { width: 45px; height: 45px; border-radius: 50%; background: var(--paper); border: 1px solid var(--text); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; position: relative; z-index: 1; }
.jstep.sip .jn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.jstep h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 14px; }
.jbody { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 72px); }
.jbody .side { border-left: 1px solid var(--hair); padding-left: clamp(20px, 2.4vw, 36px); font-size: .94rem; }
.jbody .side h5 { margin: 0 0 10px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.jbody .side ul { margin: 0 0 18px; padding-left: 1.1em; }
.jstep.sip .jbody { padding: 30px 32px; border: 1px solid var(--brass); background: linear-gradient(180deg, rgba(169, 133, 75, .14), rgba(169, 133, 75, .03)); }
.jstep.sip { align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 240, 231, .72); padding: clamp(56px, 7vw, 100px) 0 36px; font-size: .94rem; }
.site-footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--hair-dark); }
.site-footer h5 { margin: 0 0 18px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-hi); font-weight: 600; }
.site-footer a { text-decoration: none; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--brass-hi); }
.site-footer .brand { color: var(--paper); margin-bottom: 20px; }
.site-footer .fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: .78rem; color: rgba(245, 240, 231, .5); }
.site-footer .fine p { margin: 0; max-width: 62ch; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-line { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.js .reveal-line.in { clip-path: inset(0 0 0 0); }
.hero .rise { animation: rise 1.4s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .flow { grid-template-columns: 1fr; margin-top: 40px; }
  .flow::before { left: 14px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stage { padding: 0 0 34px 54px; }
  .stage .dot { position: absolute; left: 0; top: 0; }
  .stage h4 { margin-top: 2px; }
  .layer-band { grid-column: auto; grid-row: auto; margin: 0 0 0 54px; }
  .layer-band::before { display: none; }
  .cards3, .cards2, .pledges, .grid3, .timeline { grid-template-columns: 1fr; }
  .pcard { border-right: 0; border-bottom: 1px solid var(--hair); } .pcard:last-child { border-bottom: 0; }
  .tl + .tl { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 20px; padding-top: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--hair-dark); }
  .measures { grid-template-columns: repeat(2, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
  .dir-grid, .grid2, .jbody { grid-template-columns: 1fr; }
  .jbody .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 20px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0; background: var(--ink); color: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start; padding: 100px var(--gutter) 60px; gap: 8px; transform: translateY(-100%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
  .nav a { font-family: var(--serif); font-size: 2.6rem; letter-spacing: -.01em; text-transform: none; font-weight: 500; padding-block: 6px; }
  .nav a.btn { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 22px; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .7s var(--ease); }
  .nav-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav-open .site-header .btn { background: var(--brass); color: var(--ink); border-color: var(--brass); }
  .founder { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .measures, .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; border-top: 1px solid var(--hair-dark); }
  .stat:first-child { border-top: 0; }
  .spec div { grid-template-columns: 1fr; gap: 6px; }
  .milestones .ms::after { display: none; } .milestones { gap: 22px 36px; }
  .site-footer .top { grid-template-columns: 1fr; }
  .brand .word i { display: none; }
  .btn { padding: 16px 22px; }
  .jstep { grid-template-columns: 1fr; } .jstep .jn { margin-bottom: -8px; } .journey::before { display: none; }
  .jstep.sip .jbody { padding: 22px 18px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-line { opacity: 1; transform: none; clip-path: none; }
}
@media print {
  body::before, .site-header, .dir-bar, .rings, .hero::before, .hero::after { display: none !important; }
  .hero, .band-dark, .site-footer { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* brass thread: fades in from the right so it never crosses headline copy */
.rings::after { content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 1px; background: linear-gradient(90deg, transparent 38%, rgba(212, 181, 123, .55) 75%, rgba(212, 181, 123, .15)); }
/* screenshot/QA helper: ?static disables reveal hiding */
html.static .reveal, html.static .reveal-line { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.static .rise { animation: none !important; }


/* ==========================================================================
   Theme match: self-improvementphilosophylife.org (light lavender, light serif,
   Open Sans body, navy ink). Overrides the earlier dark/brass look.
   ========================================================================== */
body::before { display: none; }
h1, h2, h3, h4 { font-weight: 300; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .serif em, .hero em, .band-dark em, .on-dark h1 em { font-style: normal; font-weight: 600; color: inherit; }
.band-dark em { color: #fff; }
.statement { font-weight: 300; }

/* header: always light, logo + serif nav */
.site-header { color: var(--ink); background: rgba(245, 247, 253, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); --header-h: 96px; }
.site-header.is-scrolled { --header-h: 76px; height: 76px; background: rgba(245, 247, 253, .94); }
.brand img.logo { height: 80px; width: auto; display: block; }
.site-header.is-scrolled .brand img.logo { height: 58px; }
.nav a { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.nav a.btn { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:hover { background: var(--brass-lo); border-color: var(--brass-lo); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: var(--brass-lo); border-color: var(--brass-lo); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.band-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band-dark .btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.band-dark .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.band-dark .btn.ghost:hover { background: #fff; color: var(--ink); }
.site-header.is-scrolled .btn, .site-header .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header.is-scrolled .btn:hover, .site-header .btn:hover { background: var(--brass-lo); border-color: var(--brass-lo); color: #fff; }

/* hero: pale lavender wash, dark type */
.hero { background: var(--paper); color: var(--ink); }
.hero::before { background: radial-gradient(closest-side, rgba(150, 120, 255, .24), rgba(150, 120, 255, 0) 70%); right: auto; left: -10%; top: -25%; }
.hero::after { background-image: radial-gradient(closest-side at 18% 88%, rgba(150, 120, 255, .18), transparent 70%); background-size: 100% 100%; background-position: 0 0; -webkit-mask-image: none; mask-image: none; }
.hero .lead { color: var(--muted); }
.hero .eyebrow { color: var(--brass-lo); }
.rings .ring { stroke: var(--brass); }
.hero-meta { border-top: 1px solid var(--hair); }
.hero-meta div { color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 300; }
.hero-portrait { position: absolute; right: clamp(0px, 6vw, 110px); bottom: 0; height: min(86%, 640px); width: auto; z-index: 1; pointer-events: none; }
.hero .wrap { padding-right: clamp(0px, 34vw, 520px); }
.hero.short .wrap { padding-right: var(--gutter); }

/* dark bands: deep navy */
.band-dark { background: var(--ink); color: #fff; }
.stat .big { color: var(--brass-hi); font-weight: 300; }

/* footer: white like the live site, logo on light */
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--hair); }
.site-footer h5 { color: var(--ink); }
.site-footer a:hover { color: var(--brass-lo); }
.site-footer .brand { color: var(--ink); }
.site-footer .brand img.logo { height: 76px; }
.site-footer .top { border-bottom: 1px solid var(--hair); }
.site-footer .fine { color: var(--muted); }

/* photos on cards and about */
.pcard img.shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 26px; }
.pcard img.shot + h3 { margin-top: 0; }
.portrait { width: 100%; max-width: 340px; height: auto; margin-top: 28px; }
@media (max-width: 900px) {
  .hero-portrait { display: none; }
  .hero .wrap { padding-right: var(--gutter); }
}
