/* ==========================================================================
   CHRIS HELMANTOLER — site styles
   Editorial, warm, a little cinematic. Built around one question:
   "Who do you want to become?"

   Palette: black, white, cool greys and one blue accent. Display type is Instrument Serif; text is Inter.
   Hand-written CSS, no frameworks, no external requests (CSP: style-src 'self').
   ========================================================================== */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ink: #0b0d10;
  --ink-2: #14171c;
  --ink-3: #20252c;
  --paper: #ffffff;
  --bone: #f4f5f7;
  --bone-2: #e9ecf0;
  --blue: #0b6bcb;
  --blue-2: #4aa8ff;
  --blue-soft: #b9dcff;
  --blue-deep: #062a52;

  --text: #0f1216;
  --text-2: #474d55;
  --text-3: #737a84;
  --on-ink: #f4f6f8;
  --on-ink-2: #aab2bd;
  --on-ink-3: #7d8590;
  --line: rgba(15, 18, 22, 0.12);
  --line-strong: rgba(15, 18, 22, 0.24);
  --line-ink: rgba(244, 246, 248, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.9rem, 1.9rem + 4.6vw, 6.4rem);
  --step-5: clamp(3.2rem, 1.9rem + 4.6vw, 6.6rem);

  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem;
  --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --wrap: 100rem;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -30px rgba(11, 13, 16, 0.45);
  --shadow-soft: 0 18px 40px -24px rgba(11, 13, 16, 0.35);
  --header-h: 4.75rem;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.012em;
  margin: 0 0 var(--space-3); text-wrap: balance; color: var(--text);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; margin-bottom: 0.6rem; }
h4 { font-size: var(--step-1); }
h1 em, h2 em, h3 em, .serif-em { font-style: italic; color: var(--blue); }
p { margin: 0 0 var(--space-2); }
p, li { text-wrap: pretty; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
strong { font-weight: 600; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--paper); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--blue); color: var(--paper); padding: 0.6rem 1rem; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4.5vw, 3rem); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: var(--space-5); }
.section--paper2 { background: var(--bone); }
.section--foam { background: var(--bone-2); }
.section--ink, .hero--ink, .page-hero { background: var(--ink); color: var(--on-ink); }
.section--ink :is(h1, h2, h3, h4), .hero--ink :is(h1, h2, h3, h4), .page-hero :is(h1, h2, h3, h4) { color: var(--on-ink); }
.section--ink p, .hero--ink p, .page-hero p { color: var(--on-ink-2); }
.section--ink a:not(.btn), .page-hero a:not(.btn) { color: var(--blue-2); }
.section--ink a:not(.btn):hover { color: var(--on-ink); }
.section--ink h2 em, .hero--ink h1 em, .page-hero h1 em { color: var(--blue-2); }

/* eyebrow: small caps label with an accent rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--blue); }
.section--ink .eyebrow, .hero--ink .eyebrow, .page-hero .eyebrow, .band .eyebrow { color: var(--on-ink-2); }
.center .eyebrow { justify-content: center; }
.section-head { margin-bottom: var(--space-5); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: var(--on-ink-2); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-2); }

/* ---------- header ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--on-ink);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-ink); background: rgba(11, 13, 16, 0.9); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--on-ink); flex-shrink: 0; position: relative; z-index: 2; }
.brand:hover { color: var(--on-ink); }
.brand-logo { height: 2.1rem; width: auto; flex-shrink: 0; transition: transform 0.5s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-2px); }
.brand-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1; letter-spacing: -0.005em; }

.nav { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav > a:not(.btn) {
  position: relative; font-size: 0.92rem; font-weight: 500; color: var(--on-ink-2);
  text-decoration: none; padding: 0.5rem 0.85rem; white-space: nowrap; transition: color 0.2s ease;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 1px;
  background: var(--blue-2); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a:not(.btn)[aria-current="page"] { color: var(--on-ink); }
.nav > a:not(.btn):hover::after, .nav > a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 0.75rem; padding: 0.7rem 1.25rem; font-size: 0.74rem; }

.nav-toggle {
  display: none; margin-left: auto; position: relative; z-index: 2;
  background: none; border: 1px solid var(--line-ink); border-radius: 999px; color: var(--on-ink);
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.75rem 1.1rem; cursor: pointer;
}
@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.25rem;
    padding: calc(var(--header-h) + 1rem) clamp(1.25rem, 6vw, 3rem) 3rem;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav.open { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
  .nav > a:not(.btn) { font-family: var(--serif); font-size: clamp(2.6rem, 10vw, 4rem); color: var(--on-ink); padding: 0.2rem 0; line-height: 1.15; }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a:not(.btn)[aria-current="page"] { font-style: italic; color: var(--blue-2); }
  .nav .btn { margin: var(--space-4) 0 0; font-size: 0.85rem; padding: 1rem 1.6rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--blue);
  border: 1px solid var(--blue); border-radius: 999px;
  padding: 1.05rem 1.7rem; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn::after { content: "→"; font-size: 1rem; letter-spacing: 0; transition: transform 0.35s var(--ease); }
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--paper); border-color: var(--text); }
.section--ink .btn::before, .hero--ink .btn::before, .page-hero .btn::before, .site-header .btn::before, .band .btn::before { background: var(--paper); }
.section--ink .btn:hover, .hero--ink .btn:hover, .page-hero .btn:hover, .site-header .btn:hover, .band .btn:hover { color: var(--ink); border-color: var(--paper); }
.section--ink .btn--ghost, .hero--ink .btn--ghost, .page-hero .btn--ghost { color: var(--on-ink); border-color: var(--line-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--space-4); }
.btn-row--center { justify-content: center; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.more:hover { text-decoration: underline; }

/* ---------- home hero: copy left, full-height portrait bleeding off the right edge ---------- */
.hero { position: relative; overflow: hidden; }
.hero--home { min-height: min(calc(100svh - var(--header-h)), 54rem); display: flex; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero--home > .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 54%; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; animation: fade-in 1.4s ease both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11, 13, 16, 0.55) 16%, rgba(11, 13, 16, 0) 42%),
              linear-gradient(0deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 28%);
}
@media (max-width: 60rem) {
  .hero--home { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero-copy { max-width: none; }
  .hero-photo { position: relative; order: 2; width: 100%; height: min(115vw, 36rem); margin-top: var(--space-5); }
  .hero-photo::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 13, 16, 0) 30%); }
}
.hero-title { font-size: clamp(2.8rem, 1.6rem + 3.8vw, 5.4rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: var(--space-3); animation: fade-up 1s var(--ease) both; }
.hero .eyebrow, .hero .rotator, .hero .lede, .hero .btn-row { animation: fade-up 1s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero .rotator { animation-delay: 0.3s; }
.hero .lede { animation-delay: 0.4s; }
.hero .btn-row { animation-delay: 0.5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.rotator { animation-delay: 0.45s; }
.hero .lede { animation-delay: 0.55s; }
.hero .btn-row { animation-delay: 0.65s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rotator { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--on-ink); margin-bottom: var(--space-3); min-height: 1.3em; max-width: none; }
@media (max-width: 40rem) { .rotator { min-height: 2.5em; } }
.rotator-label { color: var(--on-ink-3); font-style: italic; }
.rotator-word { display: inline-block; font-style: italic; color: var(--blue-2); transition: opacity 0.45s ease, transform 0.45s var(--ease), filter 0.45s ease; }
.rotator-word.is-out { opacity: 0; transform: translateY(0.4em); filter: blur(4px); }
.hero--ink .lede { color: var(--on-ink-2); }

/* rectangular portrait (about hero) */
.portrait { position: relative; overflow: hidden; width: 100%; max-width: 28rem; justify-self: center; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--ink-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }


/* ---------- marquee of character traits ---------- */
.marquee { position: relative; background: var(--blue); color: var(--paper); overflow: hidden; padding-block: 1.35rem; border-block: 1px solid rgba(0, 0, 0, 0.12); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.marquee li { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; white-space: nowrap; display: flex; align-items: center; }
.marquee li:nth-child(even) { font-style: italic; color: var(--blue-soft); }
.marquee li::after { content: "✦"; font-family: var(--sans); font-size: 0.9rem; margin-inline: 1.6rem; color: rgba(255, 255, 255, 0.55); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blue) 25%, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--blue) 25%, transparent); }

/* ---------- statement: words light up as you scroll ---------- */
.statement { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + 0.9vw, 2rem); line-height: 1.35; color: var(--text); margin: 0; }
.statement em { color: var(--blue); }
.js .statement .w { color: rgba(15, 18, 22, 0.16); transition: color 0.35s ease; }
.js .statement .w.on { color: var(--text); }
.js .statement em .w.on { color: var(--blue); }
.statement-sign { margin-top: var(--space-4); display: flex; align-items: center; gap: 1rem; color: var(--text-3); font-size: var(--step--1); }
.statement-sign img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bone); }

/* ---------- offers: big rows with hover-reveal photos ---------- */
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: offer; }
.offers > li { margin: 0; border-bottom: 1px solid var(--line-strong); counter-increment: offer; }
.offer {
  position: relative; display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.35rem 1.25rem; align-items: baseline;
  padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); color: var(--text); text-decoration: none;
}
.offer::before { content: counter(offer, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--blue); }
.offer-title { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.015em; transition: transform 0.6s var(--ease), color 0.4s ease; }
.offer-title em { font-style: italic; }
.offer-desc { grid-column: 2; color: var(--text-2); font-size: var(--step-0); padding-right: clamp(0rem, 24vw, 22rem); }
.offer-arrow {
  grid-row: 1; grid-column: 3; align-self: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 1.2rem; transition: background 0.4s ease, color 0.4s ease, transform 0.6s var(--ease), border-color 0.4s ease;
}
.offer-img {
  position: absolute; right: 7rem; top: 50%; width: clamp(14rem, 22vw, 19rem); aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); pointer-events: none; z-index: 2;
  
  opacity: 0; transform: translateY(-50%) rotate(6deg) scale(0.85);
  transition: opacity 0.4s ease, transform 0.7s var(--ease);
}
.offer:hover, .offer:focus-visible { color: var(--text); }
.offer:hover .offer-title, .offer:focus-visible .offer-title { transform: translateX(1rem); color: var(--blue); }
.offer:hover .offer-arrow, .offer:focus-visible .offer-arrow { background: var(--blue); border-color: var(--blue); color: var(--paper); transform: rotate(-45deg); }
.offer:hover .offer-img, .offer:focus-visible .offer-img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
@media (max-width: 56rem), (hover: none) { .offer-img { display: none; } .offer-desc { padding-right: 0; } }
@media (max-width: 36rem) { .offer { grid-template-columns: 2.25rem 1fr; } .offer-arrow { display: none; } }

/* ---------- full-bleed photo band (mission) ---------- */
.band { position: relative; overflow: hidden; color: var(--on-ink); min-height: min(85svh, 52rem); display: grid; place-items: center; padding-block: var(--section); isolation: isolate; }
.band-bg { position: absolute; inset: -12% 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 13, 16, 0.5), rgba(11, 13, 16, 0.88)), linear-gradient(180deg, rgba(11, 107, 203, 0.28), rgba(6, 42, 82, 0.2)); }
.band .mission-quote { color: var(--on-ink); }
.band .mission-quote em { color: var(--blue-soft); }
.band p { color: var(--on-ink-2); }

/* mission statement (used in band and on light grounds) */
.mission { text-align: center; }
.mission .eyebrow { justify-content: center; }
.mission p { margin-inline: auto; }
.mission-quote {
  font-family: var(--serif); font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.6rem); line-height: 1.06; letter-spacing: -0.015em;
  max-width: none; margin-bottom: var(--space-4); color: var(--text); text-wrap: balance;
}
.mission-quote em { font-style: italic; color: var(--blue); }
.mission-quote:last-child { margin-bottom: 0; }
.quote-mark { display: block; font-family: var(--serif); font-size: 6rem; line-height: 0.5; color: var(--blue-2); margin-bottom: 1.5rem; }

/* ---------- about composition ---------- */
.portrait-stack { position: relative; width: 100%; max-width: 30rem; justify-self: center; padding: 0 1.5rem 3rem 0; }
.portrait-stack::before { content: ""; position: absolute; inset: 1.5rem 0 1.5rem 1.5rem; border: 1px solid var(--blue); border-radius: var(--radius-sm); }
.portrait-stack img { position: relative; width: 100%; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.quote-card {
  position: absolute; right: -0.5rem; bottom: 0; max-width: 17rem; z-index: 2;
  background: var(--paper); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-soft);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.2; color: var(--text);
}
.quote-card::before { content: "“"; color: var(--blue); }
.roles { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.roles li { margin: 0; display: flex; align-items: center; }
.roles { gap: 0.55rem 1.4rem; }
.roles li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-right: 0.6rem; }
.photo { width: 100%; max-width: 30rem; justify-self: center; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- long first-person story: two columns on wide screens ---------- */
.story { columns: 2 24rem; column-gap: clamp(2rem, 5vw, 5rem); font-size: var(--step-1); line-height: 1.6; color: var(--text-2); }
.story p { break-inside: avoid; margin-bottom: var(--space-3); }
.story p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--blue); }

/* ---------- numbered columns ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.steps > li { counter-increment: step; margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--blue); margin-bottom: 0.75rem; }
.steps--num > li::before { content: counter(step, lower-roman) "."; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: 1; margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--step-2); }
.steps p { color: var(--text-2); margin: 0; }
.section--ink .steps > li { border-top-color: var(--line-ink); }
.section--ink .steps p { color: var(--on-ink-2); }

/* ---------- books ---------- */
.cover-stack { position: relative; display: flex; justify-content: center; padding-block: var(--space-3); perspective: 1200px; }
.cover-stack a { display: block; width: min(15rem, 44%); transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
.cover-stack img { border-radius: 3px 6px 6px 3px; box-shadow: -18px 30px 50px -20px rgba(0, 0, 0, 0.65), inset 4px 0 6px rgba(255, 255, 255, 0.2); }
.cover-stack a:first-child { transform: rotate(-6deg) translateX(10%); z-index: 2; }
.cover-stack a:last-child { transform: rotate(5deg) translate(-10%, 8%); }
.cover-stack a:hover { transform: rotate(0) translateY(-10px) scale(1.03); z-index: 3; }
.tilt { transition: transform 0.25s ease-out; will-change: transform; }

.book-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; border-top: 1px solid var(--line-ink); }
.book-list li { margin: 0; border-bottom: 1px solid var(--line-ink); }
.section--ink .book-list a, .book-list a { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--on-ink); }
.book-list .bl-title { font-family: var(--serif); font-size: var(--step-1); line-height: 1.2; transition: color 0.3s ease; }
.book-list .bl-meta { grid-column: 1; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-3); }
.book-list .bl-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue-2); transition: transform 0.4s var(--ease); }
.book-list a:hover .bl-title { color: var(--blue-2); }
.book-list a:hover .bl-arrow { transform: translateX(6px); }

.book-card { display: grid; gap: var(--space-3); grid-template-columns: 9rem 1fr; align-items: start; }
@media (max-width: 30rem) { .book-card { grid-template-columns: 1fr; } .book-card img { width: 10rem; } }
.book-card img, .book-cover img { border-radius: 3px 6px 6px 3px; box-shadow: -14px 24px 40px -18px rgba(0, 0, 0, 0.5); }
.book-cover { position: sticky; top: calc(var(--header-h) + 2rem); }
.book-meta { list-style: none; padding: 0; margin: var(--space-4) 0 0; border-top: 1px solid var(--line); }
.book-meta li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.book-meta li span:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--text-3); padding-top: 0.2rem; }
.book-subtitle { font-family: var(--serif); font-style: italic; font-size: var(--step-2); line-height: 1.2; color: var(--blue); margin-top: -0.5rem; }

/* ---------- try one week (interactive) ---------- */
.week-head { display: grid; gap: var(--space-3) var(--space-5); align-items: end; margin-bottom: var(--space-4); }
@media (min-width: 60rem) { .week-head { grid-template-columns: 1.1fr 1fr; } }
.week-head h2 { margin: 0; }
.week-head p { margin: 0; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-4); }
.chip {
  font: 400 1.25rem/1 var(--serif); color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.7rem 1.25rem; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--text); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-style: italic; }
.week { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); counter-reset: wk; }
.week > li {
  counter-increment: wk; margin: 0; position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); padding: var(--space-3) var(--space-3) var(--space-4);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.week > li:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.week > li::before { content: counter(wk, decimal-leading-zero); position: absolute; right: 1rem; top: 0.25rem; font-family: var(--serif); font-style: italic; font-size: 4.5rem; line-height: 1; color: rgba(11, 107, 203, 0.14); }
.week h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.week p { margin: 0; color: var(--text-2); }
.trait-name { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--blue); }
.week.is-swapping > li { animation: card-swap 0.6s var(--ease) both; }
.week.is-swapping > li:nth-child(2) { animation-delay: 0.05s; }
.week.is-swapping > li:nth-child(3) { animation-delay: 0.1s; }
.week.is-swapping > li:nth-child(4) { animation-delay: 0.15s; }
@keyframes card-swap { from { opacity: 0.2; transform: translateY(14px) rotateX(12deg); } to { opacity: 1; transform: none; } }
.week-foot { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }
.week-foot p { margin: 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.week-foot .btn-row { margin: 0; }

/* ---------- stats / contribution columns ---------- */
.stats { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.stat { padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }
.stat h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.stat h3 em { color: var(--blue); }
.stat p { color: var(--text-2); margin: 0; }
.stat-num { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--blue); }

/* ---------- closing CTA with ring ---------- */
.cta { text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 60rem; height: 60rem; left: 50%; top: 55%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(11, 107, 203, 0.22), transparent 60%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { font-size: var(--step-4); }
.cta p { margin-inline: auto; }
.ring { position: relative; width: 10rem; height: 10rem; margin: 0 auto var(--space-4); display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--on-ink-2); }
.ring text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; fill: currentColor; }
.signoff-photo { width: 6.6rem; height: 6.6rem; border-radius: 50%; object-fit: cover; object-position: top; background: var(--paper); border: 3px solid var(--blue); margin-inline: auto; }
.signoff-name { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1; margin-top: var(--space-4); }
.section--ink .signoff-name { color: var(--blue-2); }

/* ---------- inner-page hero ---------- */
.page-hero { padding-block: clamp(4rem, 3rem + 5vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 60rem; height: 40rem; right: -20rem; top: -16rem; background: radial-gradient(closest-side, rgba(74, 168, 255, 0.22), rgba(11, 107, 203, 0.08) 55%, transparent); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }

.page-hero .lede { color: var(--on-ink-2); }

/* about hero: copy + arch photo */

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.card {
  position: relative; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-2); }
.card ul { margin: 0; color: var(--text-2); }
.card li::marker { color: var(--blue); }
.card .card-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.card .more { margin-top: auto; padding-top: 0.5rem; }
.person { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.person img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.card .person p { color: var(--text); }

/* ---------- split ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1.15fr 1fr; }
  .split--rev { grid-template-columns: 1fr 1.15fr; }
  .split--book { grid-template-columns: 18rem 1fr; }
}

/* ---------- prose (policies, long copy) ---------- */
.prose { max-width: none; }
.prose h1 { font-size: var(--step-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-4); }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 2px solid var(--blue); margin: var(--space-3) 0; padding: 0.25rem 0 0.25rem var(--space-3); font-family: var(--serif); font-style: italic; font-size: var(--step-1); }
.post-meta { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); margin-bottom: var(--space-4); }
.callout { background: var(--bone); border-left: 2px solid var(--blue); border-radius: var(--radius-sm); padding: var(--space-3); margin-block: var(--space-3); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
code { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: 0.88em; background: var(--bone); padding: 0.1em 0.35em; border-radius: 4px; word-break: break-word; }

/* ---------- booking embed ---------- */
.booking-frame { width: 100%; min-height: 44rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.booking-fallback[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); font-size: 0.92rem; line-height: 1.5; position: relative; overflow: hidden; }
.site-footer .barcode-strip { height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.site-footer a { color: var(--on-ink-2); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--on-ink); }
.site-footer .foot-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) var(--space-4); flex-wrap: wrap; }
.site-footer .brand { margin-bottom: var(--space-3); }
.foot-tag { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 1.4rem + 4.5vw, 5.5rem); line-height: 1; letter-spacing: -0.015em; color: var(--on-ink); }
.foot-row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.foot-row li { margin: 0; }
.foot-row a { font-family: var(--serif); font-size: 1.45rem; color: var(--on-ink); }
.foot-row a:hover { color: var(--blue-2); font-style: italic; }
.site-footer .foot-legal {
  border-top: 1px solid var(--line-ink); padding-block: 1.1rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-3);
}
.site-footer .foot-legal > :last-child { justify-self: end; }
.site-footer .foot-legal span a { white-space: nowrap; color: var(--on-ink-3); }
.foot-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.foot-social li { margin: 0; }
.foot-social a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-ink); }
.foot-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.foot-social svg { width: 1rem; height: 1rem; }
@media (max-width: 40rem) {
  .site-footer .foot-legal { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0.75rem; }
  .site-footer .foot-legal > :last-child { justify-self: center; }
}

/* ---------- credentials ---------- */
.hero-creds {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: var(--space-4) 0 0; max-width: none;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-2);
  animation: fade-up 1s var(--ease) 0.8s both;
}
.hero-creds span { color: var(--on-ink-3); font-weight: 400; }
.hero-creds span::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: var(--blue); vertical-align: middle; margin-left: 0.9rem; }
.creds-group + .creds-group { margin-top: var(--space-5); }
.creds-label { max-width: none; display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space-4); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-ink-3); }
.creds-label::after { content: ""; flex: 1; height: 1px; background: var(--line-ink); }
.badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 42%), 1fr)); }
@media (min-width: 75rem) { .badges { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.badges li { margin: 0; text-align: center; }
.badges img { width: clamp(5.25rem, 4rem + 2.6vw, 6.75rem); height: auto; margin: 0 auto 0.9rem; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); transition: transform 0.5s var(--ease); }
.badges li:hover img { transform: translateY(-6px) scale(1.05); }
.badge-name { margin: 0 auto; max-width: 11rem; font-size: 0.82rem; line-height: 1.35; color: var(--on-ink); }
.badge-name small { display: block; margin-top: 0.35rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-3); }
.badges-also { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line-ink); font-size: 0.86rem; color: var(--on-ink-2); }
.badges-also span { margin-right: 0.75rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-ink-3); }
.edu { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.edu li { margin: 0; font-family: var(--serif); font-size: var(--step-2); max-width: none; line-height: 1.15; color: var(--on-ink); }
.edu li small { display: block; margin-top: 0.4rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-3); }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }
.js .reveal-img { clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 0); }

/* ---------- utilities ---------- */
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--text-3); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .js .statement .w { color: inherit; }
}
