/* ==========================================================================
   Creator X Vault — site styles
   - Fluid type and spacing (clamp) from 320px phones upwards.
   - Past 1920px the root size grows with the viewport, so every rem-based
     measurement (type, spacing, container) scales up proportionally on
     large and ultra-large displays instead of floating in empty space.
   ========================================================================== */

:root {
  --ink: #07090e;
  --ink-2: #0b0e15;
  --ink-3: #131824;
  --ink-line: rgba(255, 255, 255, .11);
  --text: #f4f5f8;
  --text-2: #b6bdca;
  --text-3: #8b94a6;

  --paper: #f1f0ec;
  --paper-2: #e6e4de;
  --paper-ink: #0d0f14;
  --paper-text: #4b525f;
  --paper-line: #d2cfc7;

  --accent: #01b7fb;
  --accent-deep: #0073a8;
  --accent-ink: #00141d;

  --ff-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Manrope", var(--ff-sans);
  --ff-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Type scale — the single source for every text size on the site.
     Each step is fluid from 320px phones and keeps growing past 1920px via
     the root size below. The "Type roles" section maps elements to these. */
  --fs-label: clamp(.75rem, .72rem + .1vw, .8125rem);    /* caps labels, meta, captions */
  --fs-sm: clamp(.875rem, .85rem + .1vw, .9375rem);      /* small copy, card text, buttons */
  --fs-body: clamp(1rem, .96rem + .18vw, 1.125rem);      /* running text */
  --fs-lead: clamp(1.0625rem, .98rem + .42vw, 1.375rem); /* intro paragraphs */
  --fs-quote: clamp(1.25rem, 1.05rem + .8vw, 1.875rem);  /* serif pull quotes */
  --fs-h5: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);    /* card / item titles */
  --fs-h4: clamp(1.375rem, 1.12rem + 1vw, 2rem);         /* list-row / panel titles */
  --fs-h3: clamp(1.75rem, 1.2rem + 2.3vw, 3.375rem);     /* sub-section titles */
  --fs-numeral: clamp(2.5rem, 2rem + 2vw, 4rem);         /* serif ordinals */
  --fs-h2: clamp(2.25rem, 1.45rem + 3.5vw, 4.75rem);     /* section titles */
  --fs-h1: clamp(2.625rem, 1.3rem + 5.8vw, 6.875rem);    /* page titles */

  --lh-h1: .95;  --lh-h2: 1.02;  --lh-h3: 1.06;  --lh-h4: 1.15;  --lh-h5: 1.3;
  --lh-lead: 1.6; --lh-body: 1.65; --lh-sm: 1.55; --lh-label: 1.3; --lh-quote: 1.4;
  --ls-h1: -.055em; --ls-h2: -.045em; --ls-h3: -.04em; --ls-h4: -.03em; --ls-h5: -.025em;
  --ls-label: .16em;
  --fw-heading: 600;
  --fw-label: 700;

  --gutter: clamp(1rem, .45rem + 3.6vw, 4.5rem);
  --container: 92rem;
  --section: clamp(4.5rem, 3rem + 6vw, 10rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 900px) { :root { --header-h: 5rem; } }

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (min-width: 1920px) { html { font-size: calc(100% + (100vw - 1920px) * .0045); } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--ff-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: var(--fw-heading);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
h1 em, h2 em, .serif {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
.tone-paper h1 em, .tone-paper h2 em { color: var(--accent-deep); }
.tone-accent h1 em, .tone-accent h2 em { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  padding: .75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type roles ----------
   Every piece of text maps to exactly one role. Components below only add
   colour, spacing and layout — never size, weight or tracking — so editing a
   token above or a role here restyles every matching element site-wide.
   New markup: use the utility classes (.h1–.h5, .lead, .small, .label). */
.h1, .hero__title, .page-hero h1, .apply-title {
  font: var(--fw-heading) var(--fs-h1)/var(--lh-h1) var(--ff-display); letter-spacing: var(--ls-h1); text-wrap: balance;
}
.h2 {
  font: var(--fw-heading) var(--fs-h2)/var(--lh-h2) var(--ff-display); letter-spacing: var(--ls-h2); text-wrap: balance;
}
.h3, .service h2, .note h2, .mega-link, .planner__result strong {
  font: var(--fw-heading) var(--fs-h3)/var(--lh-h3) var(--ff-display); letter-spacing: var(--ls-h3); text-wrap: balance;
}
.h4, .index-row h3, .route h2, .marquee__group, .apply-step-h2, .apply-success h2 {
  font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--ff-display); letter-spacing: var(--ls-h4); text-wrap: balance;
}
.h5, .card h3, .principle h3, .step h3, .faq__list summary, .collage__card p, .apply-legend {
  font: var(--fw-heading) var(--fs-h5)/var(--lh-h5) var(--ff-display); letter-spacing: var(--ls-h5); text-wrap: balance;
}
.lead, .apply-lede { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.small, .hero__proof, .card p, .step p, .route p, .ticks li, .quote__by,
.planner label, .planner__scale, .planner__result small, .site-footer__checks,
.site-footer__brand p, .site-footer__note, .footer-links a {
  font-size: var(--fs-sm); line-height: var(--lh-sm);
}
.label, .eyebrow, .runhead, .announce, .crumbs, .card__meta, .note__meta, .quote__label,
.route__label, .tag, .footer-h, .planner__top, .planner__result span, .strip figcaption,
.index-foot p, .hero__meta, .site-footer__bottom, .collage__card small, .apply-platform-tag {
  font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--ff-sans); letter-spacing: var(--ls-label); text-transform: uppercase;
}
.pull, .note__short, .quote blockquote p {
  font: italic 400 var(--fs-quote)/var(--lh-quote) var(--ff-serif); letter-spacing: -.01em;
}
.principle__num, .service__num, .collage__mark {
  font: italic 400 var(--fs-numeral)/1 var(--ff-serif);
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.tone-paper { background: var(--paper); color: var(--paper-ink); }
.tone-ink-2 { background: var(--ink-2); }
.tone-accent { background: var(--accent); color: var(--accent-ink); }

/* Running head: "01 — About the vault ———" */
.runhead {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 4.5rem);
  color: var(--text-3);
}
.runhead::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.runhead b { color: var(--accent); font-weight: 700; }
.tone-paper .runhead { color: #6a707c; }
.tone-paper .runhead b { color: var(--accent-deep); }
.tone-accent .runhead, .tone-accent .runhead b { color: var(--accent-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--text-2);
}
.eyebrow::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 1rem var(--accent);
}

.lead { color: var(--text-2); max-width: 36rem; }
.tone-paper .lead { color: var(--paper-text); }
.tone-accent .lead { color: var(--accent-ink); }
.muted { color: var(--text-2); }
.tone-paper .muted { color: var(--paper-text); }

.section-head {
  display: grid; gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3rem; padding: .875rem 1.5rem;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--fs-sm)/1.2 var(--ff-sans); letter-spacing: .01em; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn [aria-hidden="true"] { font-size: 1.15em; line-height: 1; transition: transform .3s var(--ease); }
.btn:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn:hover [aria-hidden="true"] { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.tone-paper .btn--ghost { color: var(--paper-ink); border-color: rgba(13, 15, 20, .28); }
.tone-paper .btn--ghost:hover { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.btn--ink { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn--ink:hover { background: #fff; border-color: #fff; color: var(--accent-ink); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: .35rem; border-bottom: 1px solid currentColor;
  font: 700 var(--fs-sm)/1.3 var(--ff-sans);
  transition: color .2s, gap .3s var(--ease);
}
.link-arrow [aria-hidden="true"] { color: var(--accent); font-size: 1.1em; }
.link-arrow:hover { color: var(--accent); gap: .9rem; }
.tone-paper .link-arrow [aria-hidden="true"], .tone-paper .link-arrow:hover { color: var(--accent-deep); }

/* ---------- Image frames ---------- */
.frame {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 3 / 4);
  background: var(--ink-3);
}
.tone-paper .frame { background: var(--paper-2); }
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 25%);
  transition: transform 1.2s var(--ease);
}
a:hover .frame img, .frame:hover img { transform: scale(1.04); }

/* ---------- Announcement + header ---------- */
.announce {
  padding: .6rem var(--gutter);
  background: var(--accent); color: var(--accent-ink);
  text-align: center;
}
.announce i { font-style: normal; opacity: .5; margin-inline: .6em; }
@media (max-width: 559.98px) { .announce__more { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: rgba(7, 9, 14, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled::before { background: rgba(7, 9, 14, .95); border-bottom-color: var(--ink-line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; width: clamp(7.25rem, 6rem + 4vw, 10rem); }
.brand img { width: 100%; height: auto; }

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: clamp(1.25rem, .4rem + 2vw, 2.75rem); }
.site-nav a {
  position: relative; display: block; padding-block: .5rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
}
.site-nav__foot { display: none; }
.nav-toggle { display: none; }

@media (max-width: 899.98px) {
  .site-header__cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; flex: none;
    width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid var(--ink-line); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.1rem; height: 1.5px; background: var(--text); border-radius: 2px;
    transition: transform .35s var(--ease), background-color .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { transform: translateY(-5px); }
  .nav-toggle__bars::after { transform: translateY(5px); }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
    padding: calc(var(--header-h) + 3.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: .35rem; }
  .site-nav a {
    font: var(--fw-heading) var(--fs-h2)/1.1 var(--ff-display);
    letter-spacing: var(--ls-h2); color: var(--text);
  }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding-top: 1.5rem; border-top: 1px solid var(--ink-line);
    font-size: var(--fs-sm); color: var(--text-2);
  }
  .site-nav__foot a:not(.btn) { font: inherit; letter-spacing: 0; color: inherit; }
}
@media (max-width: 379.98px) { .site-header__cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 5vw, 7rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero__title { margin: 1.5rem 0 1.75rem; }
.hero__title span { display: block; }
.hero__title em { font-size: 1.08em; line-height: .9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.hero__proof {
  display: flex; align-items: center; gap: 1rem;
  max-width: 30rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  color: var(--text-3);
}
.hero__proof b { display: block; color: var(--text); font-weight: 600; }
.avatars { display: flex; flex: none; }
.avatar {
  width: 2.75rem; height: 2.75rem; overflow: hidden; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--ink-3);
}
.avatar + .avatar { margin-left: -.7rem; }
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 20%); transform-origin: var(--focus, 50% 20%); scale: 2.1;
}

.hero__media { position: relative; width: min(100%, 36rem); justify-self: center; padding: 0 6% 4% 8%; }
@media (min-width: 900px) { .hero__media { justify-self: end; } }
.arch { --ar: 4 / 5; border-radius: 999px 999px .25rem .25rem; }
.hero__inset {
  position: absolute; left: 0; bottom: 0; width: 36%;
  aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  border: clamp(4px, .5vw, 8px) solid var(--ink); background: var(--ink-3);
}
.hero__inset img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 20%); transform-origin: var(--focus, 50% 20%); scale: 1.6;
}
.ring {
  position: absolute; right: 0; top: 4%;
  width: clamp(6rem, 4.5rem + 5vw, 9.5rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--ink);
  display: grid; place-items: center;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.ring text { fill: var(--text-2); font: 700 9px var(--ff-sans); letter-spacing: .2em; text-transform: uppercase; }
.ring__star { color: var(--accent); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  color: var(--text-3);
}
@media (max-width: 639.98px) { .hero__meta span:nth-child(2) { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(1rem, .8rem + .8vw, 1.6rem); border-block: 1px solid var(--ink-line); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-right: clamp(1.5rem, 1rem + 2vw, 3rem);
  color: var(--text-2); white-space: nowrap;
}
.marquee__group em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--text); }
.marquee__group i { font-style: normal; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro + editorial strip ---------- */
.intro__grid { display: grid; gap: 2rem 6vw; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; } }
.intro__copy { display: grid; gap: 1.75rem; justify-items: start; }

.strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, .4rem + 1.2vw, 1.75rem);
  margin-top: clamp(3rem, 2rem + 4vw, 6.5rem);
}
.strip figure:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.strip figure:first-child .frame { --ar: auto; flex: 1; }
.strip figcaption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem;
  color: #6a707c;
}
@media (min-width: 760px) {
  .strip { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .strip figure:first-child { grid-row: auto; grid-column: 1 / 6; display: block; }
  .strip figure:first-child .frame { --ar: 4 / 5; flex: none; }
  .strip figure:nth-child(2) { grid-column: 6 / 9; margin-top: 18%; }
  .strip figure:nth-child(2) .frame { --ar: 3 / 4; }
  .strip figure:nth-child(3) { grid-column: 9 / 13; margin-top: 6%; }
  .strip figure:nth-child(3) .frame { --ar: 3 / 4; }
}

/* ---------- Index list (home services) ---------- */
.index-list { border-bottom: 1px solid var(--ink-line); counter-reset: idx; }
.index-row {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: baseline;
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.75rem);
  border-top: 1px solid var(--ink-line);
}
.index-row__num { font: 700 var(--fs-sm)/1 var(--ff-sans); color: var(--accent); }
.index-row h3 { transition: transform .5s var(--ease), color .3s; }
.index-row p { grid-column: 2 / -1; color: var(--text-2); max-width: 34rem; }
.index-row__go {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--ink-line); border-radius: 50%; color: var(--accent);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.index-row:hover h3 { transform: translateX(.5rem); color: var(--accent); }
.index-row:hover .index-row__go { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
@media (min-width: 900px) {
  .index-row { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr) 3rem; gap: 2rem; align-items: center; }
  .index-row p { grid-column: auto; }
}
.index-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2.5rem; }
.index-foot p { color: var(--text-3); }

/* ---------- Split (image + copy) ---------- */
.split { display: grid; }
.split__media .frame { --ar: 4 / 5; }
.split__body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.75rem;
  padding: var(--section) var(--gutter);
}
.split__body .runhead { width: 100%; margin-bottom: .5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(56rem, 92vh); }
  .split__media .frame { --ar: auto; height: 100%; }
  .split__body { padding-inline: clamp(3rem, 6vw, 9rem) var(--gutter); max-width: 52rem; }
}
.pull {
  padding-left: 1.25rem; border-left: 2px solid currentColor;
  max-width: 32rem;
}

/* ---------- Cards (journal teaser) ---------- */
.cards { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2.5rem); }
@media (max-width: 759.98px) {
  .cards {
    grid-auto-flow: column; grid-auto-columns: min(80%, 22rem);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards > * { scroll-snap-align: start; }
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: .9rem; }
.card .frame { --ar: 4 / 5; margin-bottom: .4rem; }
.card__meta { color: #6a707c; }
.card h3 { transition: color .2s; }
.card p { color: var(--paper-text); }
.card:hover h3 { color: var(--accent-deep); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 8rem) clamp(3.5rem, 2.5rem + 4vw, 7rem);
  border-bottom: 1px solid var(--ink-line);
}
.page-hero__num {
  position: absolute; right: calc(var(--gutter) * .5); top: 50%; translate: 0 -50%; z-index: -1;
  font: 800 clamp(9rem, 4rem + 22vw, 26rem)/.8 var(--ff-display); letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  pointer-events: none; -webkit-user-select: none; user-select: none;
}
.page-hero { isolation: isolate; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  color: var(--text-3);
}
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text); }
.page-hero__grid { display: grid; gap: 2rem 5vw; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; } }
.page-hero__aside { display: grid; gap: 1.75rem; justify-items: start; }
.page-hero--media .page-hero__grid { align-items: center; }
.page-hero--media .frame { --ar: 4 / 5; max-height: 34rem; width: min(100%, 26rem); justify-self: end; border-radius: 999px 999px .25rem .25rem; }
@media (max-width: 899.98px) { .page-hero--media .frame { --ar: 5 / 4; width: 100%; max-height: none; border-radius: .25rem; } }

.page-hero__mail { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.mega-link {
  display: inline-block; padding-bottom: .4rem; border-bottom: 1px solid var(--ink-line);
  font-size: min(var(--fs-h3), 6.6vw); /* keeps the address on one line on the narrowest phones */
  overflow-wrap: anywhere; transition: color .2s, border-color .2s;
}
.mega-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- About: collage ---------- */
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.collage__card {
  grid-column: 1 / -1; margin-bottom: 1.75rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: #fff; border: 1px solid var(--paper-line);
  box-shadow: 0 1.5rem 4rem rgba(24, 33, 48, .1);
  text-align: center;
}
.collage__mark { line-height: .6; height: 2.25rem; color: var(--accent-deep); }
.collage__card small { display: block; margin-top: 1.25rem; color: #6a707c; }
.collage__card .link-arrow { margin-top: 1.5rem; }
.collage__photo:nth-of-type(even) { translate: 0 1.75rem; }
.collage__photo:nth-of-type(n+7) { display: none; }
.collage { padding-bottom: 1.75rem; }
@media (min-width: 600px) {
  .collage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collage__photo:nth-of-type(n+7) { display: block; }
}
@media (min-width: 1000px) {
  .collage { display: block; position: relative; aspect-ratio: 2.2 / 1; padding: 0; }
  .collage__photo {
    position: absolute; left: var(--x); top: var(--y); width: var(--w);
    rotate: var(--r, 0deg);
    box-shadow: 0 1.25rem 3rem rgba(24, 33, 48, .16);
    animation: drift 9s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
  }
  .collage__photo:nth-of-type(even) { translate: 0 0; }
  .collage__card {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    width: 30%; margin: 0; z-index: 2;
  }
}
@keyframes drift { to { translate: .4rem -.75rem; } }

/* ---------- Columns / principles ---------- */
.cols-3 { display: grid; gap: clamp(2.25rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principle { display: grid; gap: 1rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); }
.principle__num { color: var(--accent); }
.principle p { color: var(--text-2); }

/* ---------- Promises (quotes) ---------- */
.quotes { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: #fff; border: 1px solid var(--paper-line);
}
.quote__label { color: var(--accent-deep); }
.quote blockquote p { color: var(--paper-ink); }
.quote__by { display: flex; align-items: center; gap: .9rem; color: var(--paper-text); }
.quote__by b { display: block; color: var(--paper-ink); }
.monogram {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--paper-ink); color: var(--accent); font: 800 var(--fs-label)/1 var(--ff-display); letter-spacing: .02em;
}
.tag {
  justify-self: start; padding: .55rem .9rem; border: 1px solid currentColor; border-radius: 999px;
  color: #6a707c;
}

/* ---------- Services detail ---------- */
.service {
  display: grid; gap: 1.5rem 5vw;
  padding-block: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
  border-top: 1px solid var(--paper-line);
}
.service:last-child { border-bottom: 1px solid var(--paper-line); }
@media (min-width: 900px) { .service { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.service__num { display: block; margin-bottom: 1rem; color: var(--accent-deep); }
.service__body { display: grid; gap: 1.75rem; align-content: start; }
.ticks { display: grid; gap: .25rem 2rem; }
@media (min-width: 600px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticks li {
  display: flex; gap: .75rem; padding-block: .8rem; border-top: 1px solid var(--paper-line);
}
.ticks li::before { content: "✳"; color: var(--accent-deep); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: grid; gap: .75rem; align-content: start; padding-block: 1.75rem 2rem; border-top: 1px solid var(--ink-line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 700 var(--fs-sm)/1 var(--ff-sans); color: var(--accent); margin-bottom: .75rem;
}
.step p { color: var(--text-2); max-width: 26rem; }

/* ---------- Revenue planner ---------- */
.planner { display: grid; gap: 2.5rem 8vw; align-items: center; }
@media (min-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.planner__copy { display: grid; gap: 1.5rem; }
.planner__card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: #fff; border: 1px solid var(--paper-line); box-shadow: 0 1.5rem 4rem rgba(24, 33, 48, .08); }
.planner__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1.5rem;
  color: #6a707c;
}
.planner__top span:last-child { color: var(--accent-deep); }
.planner label { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .75rem; font-weight: 700; }
.planner output { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.planner input[type="range"] { width: 100%; height: 1.75rem; margin: 0; accent-color: var(--accent-deep); cursor: pointer; }
.planner__scale { display: flex; justify-content: space-between; color: #7b818c; }
.planner__result { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--paper-line); }
.planner__result span { color: #6a707c; }
.planner__result strong { display: block; margin: .4rem 0 .5rem; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.planner__result small { color: var(--paper-text); }

/* ---------- Journal notes ---------- */
.note {
  display: grid; gap: 2rem 6vw;
  padding-block: clamp(3rem, 2rem + 4vw, 6.5rem);
  border-top: 1px solid var(--paper-line);
}
.note:first-child { border-top: 0; padding-top: 0; }
.note .frame { --ar: 4 / 5; }
@media (max-width: 899.98px) { .note .frame { --ar: 4 / 3; } }
@media (min-width: 900px) {
  .note { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
  .note__media { position: sticky; top: calc(var(--header-h) + 2rem); }
  .note:nth-child(even) .note__media { order: 2; }
}
.note__body { display: grid; gap: 1.25rem; max-width: 40rem; }
.note__meta { color: var(--accent-deep); }
.note h2 { margin-bottom: .5rem; }
.note p { color: var(--paper-text); }
.note__short {
  margin-top: .75rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--accent-deep); background: var(--paper-2);
  color: var(--paper-ink);
}

/* ---------- Contact routes ---------- */
.routes { display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
@media (min-width: 860px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.route {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  background: #fff; border: 1px solid var(--paper-line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.route:hover { border-color: var(--accent-deep); transform: translateY(-4px); box-shadow: 0 1.5rem 3rem rgba(24, 33, 48, .1); }
.route__label { color: var(--accent-deep); }
.route p { color: var(--paper-text); flex: 1; }
.route .link-arrow { align-self: flex-start; margin-top: .75rem; }
.route--primary { background: var(--paper-ink); color: var(--text); border-color: var(--paper-ink); }
.route--primary p { color: var(--text-2); }
.route--primary .route__label { color: var(--accent); }
.route--primary .link-arrow [aria-hidden="true"] { color: var(--accent); }
.route--primary:hover { border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 2.5rem 8vw; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; } .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq__intro { display: grid; gap: 1.5rem; justify-items: start; }
.faq__list details { border-bottom: 1px solid var(--paper-line); }
.faq__list details:first-child { border-top: 1px solid var(--paper-line); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding-block: 1.4rem; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: none; font: 400 1.75rem/1 var(--ff-sans); color: var(--accent-deep);
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--accent-deep); }
.faq__list details p { padding: 0 2.5rem 1.6rem 0; color: var(--paper-text); max-width: 42rem; }
.faq__list details a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink-line); }
.site-footer__cta {
  display: grid; gap: 2rem 4rem;
  padding-block: var(--section) clamp(3rem, 2rem + 4vw, 6rem);
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 900px) { .site-footer__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.site-footer__cta .h2 { max-width: 14ch; }
.site-footer__cta-side { display: grid; gap: 1.5rem; justify-items: start; }
.site-footer__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-2); }
.site-footer__checks li::before { content: "✓ "; color: var(--accent); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem;
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem);
}
.site-footer__brand, .site-footer__wide { grid-column: 1 / -1; }
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; }
.site-footer__brand img { width: clamp(8rem, 7rem + 3vw, 10.5rem); height: auto; }
.site-footer__brand p, .site-footer__note { color: var(--text-2); max-width: 22rem; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .site-footer__brand, .site-footer__wide { grid-column: auto; }
}
.footer-h { margin-bottom: 1.1rem; color: var(--text-3); }
.footer-links { display: grid; gap: .6rem; }
.footer-links a { color: var(--text-2); overflow-wrap: anywhere; transition: color .2s; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ink-line);
  color: var(--text-3);
}
.site-footer__bottom a:hover { color: var(--text); }

/* ---------- Scroll reveal (progressive; content shows without JS) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  animation: reveal-fallback 0s 2.5s forwards;
}
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
