/* ==========================================================================
   NEXT — brand stylesheet
   Palette, type and spacing are creative proposals, not final brand decisions.
   ========================================================================== */

:root {
  /* LINK palette: shared by LINK, Studio by LINK and Next */
  --ivory: #fff6ed;   /* cream */
  --paper: #fff6ed;   /* cream */
  --linen: #f6e8dc;   /* paper */
  --espresso: #24060b;/* ink */
  --cocoa: #7b5b60;   /* mid */
  --stone: #b09a9e;   /* soft */
  --claret: #820018;  /* wine */
  --pink: #ff2d87;
  --blush: #ffc2d6;   /* accent on wine / ink */
  --ink: var(--espresso);
  --line: rgba(36, 6, 11, 0.14);
  --line-light: rgba(255, 246, 237, 0.22);

  /* LINK type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
::selection { background: var(--pink); color: var(--ivory); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--espresso); color: var(--ivory); padding: 10px 16px;
}
.skip:focus { left: 8px; }

/* --- Type ---------------------------------------------------------------- */

.display,
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(44px, 7.4vw, 112px); }
h2 { font-size: clamp(38px, 5.4vw, 80px); }
h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
em, .it { font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.plain::before { display: none; }

.lede {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.3;
}
.body-lg { font-size: 18px; line-height: 1.7; color: var(--cocoa); }
.muted { color: var(--stone); }

/* Small italic marker for anything not yet confirmed */
.proposed {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--claret);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}
.proposed::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.on-dark .proposed { color: var(--blush); }

/* --- Layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.tight { padding: calc(var(--section) * 0.6) 0; }
.on-dark { background: var(--claret); color: var(--ivory); }
.on-dark .body-lg { color: rgba(255, 246, 237, 0.74); }
.on-dark .muted { color: rgba(255, 246, 237, 0.5); }
.on-paper { background: var(--paper); }
.on-linen { background: var(--linen); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-dark .rule { border-color: var(--line-light); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid currentColor;
  background: transparent; color: inherit;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.solid { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn.solid { background: var(--claret); border-color: var(--claret); }
.btn.solid:hover { background: var(--pink); border-color: var(--pink); }
.btn.light:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.btn.dark:hover { background: var(--espresso); color: var(--ivory); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
}
.site-header.is-solid,
body.solid-header .site-header {
  background: var(--ivory);
  color: var(--espresso);
  border-bottom-color: var(--line);
}
.nav-primary { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav-primary a,
.nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { transform: scaleX(1); }

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.5em;
  margin-right: -0.5em; /* optically recentre tracked letters */
  line-height: 1;
}
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.nav-cta { border: 1px solid currentColor; padding: 12px 20px; transition: background 0.4s, color 0.4s; }
.nav-cta:hover { background: currentColor; }
.nav-cta:hover span { color: var(--espresso); }
.site-header.is-solid .nav-cta:hover span,
body.solid-header .site-header .nav-cta:hover span { color: var(--ivory); }

.menu-toggle {
  display: none;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 0;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--claret); color: var(--ivory);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8vh; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.15; }
.mobile-menu nav a em { color: var(--blush); }
.mobile-menu .foot { margin-top: auto; font-size: 13px; color: rgba(255, 246, 237, 0.6); }

@media (max-width: 1080px) {
  .nav-primary, .nav-cta { display: none; }
  .menu-toggle { display: inline-block; }
  .site-header .inner { grid-template-columns: auto 1fr; }
  .site-header .wordmark { order: -1; }
  .nav-right { justify-content: flex-end; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--ivory);
  display: flex;
  overflow: hidden;
  background: var(--espresso);
}
.hero.short { min-height: 78svh; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: settle 2.6s var(--ease) forwards;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(36, 6, 11, 0.46);
}
@keyframes settle { to { transform: scale(1); } }

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-content.centre { justify-content: center; align-items: center; text-align: center; }

.hero-wordmark {
  font-family: var(--serif);
  font-size: clamp(64px, 15vw, 230px);
  line-height: 0.9;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.hero-title { max-width: 16ch; }
.hero-sub { max-width: 34ch; font-size: clamp(22px, 2.4vw, 32px); font-family: var(--serif); line-height: 1.25; margin: 0 auto 44px; }
.hero .meta {
  position: absolute; z-index: 2; bottom: 28px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7;
}

.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.page-hero-grid .title { grid-column: 1 / span 8; }
.page-hero-grid .intro { grid-column: 9 / span 4; font-size: 17px; color: rgba(255, 246, 237, 0.82); }
@media (max-width: 860px) {
  .page-hero-grid .title, .page-hero-grid .intro { grid-column: 1 / -1; }
  .page-hero-grid .intro { margin-top: 28px; }
  .hero .meta { display: none; }
}

/* --- Statement ----------------------------------------------------------- */

.statement { text-align: center; max-width: 1100px; margin: 0 auto; }
.statement .display { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.1; }
.statement .display em { color: var(--claret); }
.on-dark .statement .display em { color: var(--blush); }

/* --- Split (image + text) ------------------------------------------------ */

.split { align-items: center; row-gap: 48px; }
.split + .split { margin-top: clamp(96px, 12vw, 180px); }
.split .media { grid-column: 1 / span 7; }
.split .copy { grid-column: 9 / span 4; }
.split.flip .media { grid-column: 6 / span 7; order: 2; }
.split.flip .copy { grid-column: 1 / span 4; order: 1; }
.split .numeral {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--claret);
  display: block; margin-bottom: 20px;
}
.split h3, .split h2 { margin-bottom: 24px; }
.split ul { list-style: none; padding: 0; margin: 28px 0 36px; border-top: 1px solid var(--line); }
.split li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.on-dark .split ul, .on-dark .split li { border-color: var(--line-light); }

@media (max-width: 860px) {
  .split .media, .split .copy, .split.flip .media, .split.flip .copy { grid-column: 1 / -1; order: 0; }
}

/* --- Photography --------------------------------------------------------- */

.frame { position: relative; overflow: hidden; background: var(--linen); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-tall { aspect-ratio: 3 / 4; }
.ratio-land { aspect-ratio: 3 / 2; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-square { aspect-ratio: 1; }
.bw img { filter: grayscale(1) contrast(1.05); }

figcaption, .caption {
  font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--stone);
  margin-top: 14px;
}

/* Editorial mosaic */
.mosaic { row-gap: clamp(32px, 5vw, 72px); }
.mosaic .m1 { grid-column: 1 / span 5; }
.mosaic .m2 { grid-column: 7 / span 6; margin-top: 18%; }
.mosaic .m3 { grid-column: 2 / span 4; }
.mosaic .m4 { grid-column: 7 / span 3; margin-top: -10%; }
.mosaic .m5 { grid-column: 10 / span 3; margin-top: 6%; }
@media (max-width: 860px) {
  .mosaic .m1, .mosaic .m2 { grid-column: 1 / -1; margin-top: 0; }
  .mosaic .m3 { grid-column: 1 / span 12; }
  .mosaic .m4 { grid-column: 1 / span 6; margin-top: 0; }
  .mosaic .m5 { grid-column: 7 / span 6; margin-top: 0; }
}

/* Full-bleed band */
.bleed { position: relative; height: clamp(420px, 80vh, 900px); overflow: hidden; color: var(--ivory); }
.bleed img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.bleed::after { content: ""; position: absolute; inset: 0; background: rgba(36, 6, 11, 0.38); }
.bleed .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 7vw, 96px); }
.bleed blockquote { margin: 0; max-width: 20ch; font-family: var(--serif); font-size: clamp(36px, 5vw, 72px); line-height: 1.06; }

/* --- Pillars (three columns, rules not cards) ----------------------------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillars > * { padding: 40px clamp(20px, 2.4vw, 40px) 8px 0; }
.pillars > * + * { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 40px); }
.pillars .num { font-family: var(--serif); font-style: italic; color: var(--claret); font-size: 18px; display: block; margin-bottom: 40px; }
.pillars h3 { margin-bottom: 18px; }
.pillars p { color: var(--cocoa); font-size: 15px; }
.on-dark .pillars, .on-dark .pillars > * + * { border-color: var(--line-light); }
.on-dark .pillars p { color: rgba(255, 246, 237, 0.7); }
.on-dark .pillars .num { color: var(--blush); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .on-dark .pillars > * + * { border-top-color: var(--line-light); }
  .pillars .num { margin-bottom: 20px; }
}

/* --- Two audiences ------------------------------------------------------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > div { padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px); }
.duo > div:first-child { border-right: 1px solid var(--line-light); }
.duo .who { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--blush); display: block; margin-bottom: 18px; }
.duo h3 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 32px; }
.duo ul { list-style: none; margin: 0 0 40px; padding: 0; }
.duo li { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); padding: 12px 0; border-bottom: 1px solid var(--line-light); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo > div:first-child { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .duo > div { padding-left: 0; padding-right: 0; }
}

/* --- Steps --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps > div { border-top: 1px solid var(--line); padding-top: 28px; }
.steps .n { font-family: var(--serif); font-size: 56px; line-height: 1; display: block; margin-bottom: 28px; color: var(--claret); }
.steps h3 { font-size: 26px; margin-bottom: 14px; }
.steps p { font-size: 15px; color: var(--cocoa); }
.on-dark .steps > div { border-color: var(--line-light); }
.on-dark .steps p { color: rgba(255, 246, 237, 0.7); }
.on-dark .steps .n { color: var(--blush); }
@media (max-width: 960px) { .steps.four { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 760px) { .steps, .steps.four { grid-template-columns: 1fr; row-gap: 40px; } }

/* --- Index list (experiences, guidance areas) ---------------------------- */

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li {
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr);
  column-gap: var(--gutter); align-items: baseline;
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.index-list .n { font-family: var(--serif); font-style: italic; color: var(--claret); font-size: 18px; }
.index-list h3 { font-size: clamp(30px, 3.4vw, 48px); }
.index-list p { margin: 0; color: var(--cocoa); }
.index-list .proposed { margin-top: 12px; }
.on-dark .index-list, .on-dark .index-list li { border-color: var(--line-light); }
.on-dark .index-list p { color: rgba(255, 246, 237, 0.7); }
@media (max-width: 760px) {
  .index-list li { grid-template-columns: 1fr; row-gap: 12px; }
}

/* --- Not / Is comparison ------------------------------------------------- */

.contrast { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.contrast h4 { font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 20px; }
.contrast ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contrast li { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); padding: 16px 0; border-bottom: 1px solid var(--line); }
.contrast .not li { color: var(--stone); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(176, 154, 158, 0.7); }
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; row-gap: 48px; } }

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 28px 0;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 24px; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 32px; max-width: 64ch; color: var(--cocoa); }

/* --- CTA band ------------------------------------------------------------ */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 14ch; margin: 0 auto 28px; }
.cta-band p { max-width: 46ch; margin: 0 auto 44px; }

/* --- Inquiry form -------------------------------------------------------- */

.inquire { display: grid; grid-template-columns: 5fr 7fr; min-height: 100svh; }
.inquire .side { position: relative; color: var(--ivory); background: var(--espresso); }
.inquire .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.inquire .side .inner { position: sticky; top: 0; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 56px; }
.inquire .main { padding: 150px clamp(16px, 6vw, 110px) 96px; background: var(--paper); }
@media (max-width: 960px) {
  .inquire { grid-template-columns: 1fr; }
  .inquire .side .inner { min-height: 64svh; position: relative; }
  .inquire .main { padding-top: 72px; }
}

.audience-toggle { display: flex; border: 1px solid var(--espresso); margin-bottom: 48px; }
.audience-toggle label { flex: 1; text-align: center; cursor: pointer; }
.audience-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.audience-toggle span {
  display: block; padding: 16px 10px;
  font: 600 11px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s;
}
.audience-toggle input:checked + span { background: var(--espresso); color: var(--ivory); }
.audience-toggle input:focus-visible + span { outline: 1px solid var(--claret); outline-offset: -5px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 8px; }
.field { display: flex; flex-direction: column; grid-column: span 1; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cocoa); margin-top: 22px; }
.field input, .field select, .field textarea {
  font: 400 18px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 0; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--espresso); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.checks label { margin: 0; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line);
  font: 400 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.checks input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.checks input:focus-visible + span { outline: 1px solid var(--claret); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--stone); margin-top: 28px; }
.form-status { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 22px; display: none; }
.form-status.show { display: block; }
div.parent-only, div.student-only { display: contents; }
[data-audience="student"] .parent-only,
[data-audience="parent"] .student-only { display: none; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .field { grid-column: 1 / -1; } }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--claret); color: var(--ivory); padding: clamp(80px, 10vw, 140px) 0 36px; }
.site-footer .big {
  font-family: var(--serif);
  font-size: clamp(72px, 20vw, 320px);
  line-height: 0.82;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 110px);
  opacity: 0.95;
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; column-gap: var(--gutter); row-gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-cols h4 { font: 600 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 20px; color: rgba(255, 246, 237, 0.5); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; font-size: 15px; }
.footer-cols a:hover { color: var(--blush); }
.nav-primary a:hover { color: var(--pink); }
.footer-cols .tag { font-family: var(--serif); font-size: 26px; line-height: 1.25; max-width: 18ch; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 12px; color: rgba(255, 246, 237, 0.5); }
.footer-base p { margin: 0; max-width: 70ch; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :first-child { grid-column: 1 / -1; } }

/* --- Motion -------------------------------------------------------------- */

.reveal { transform: translateY(20px); transition: transform 1.1s var(--ease); }
.reveal.in { transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

.hero .rise { opacity: 0; transform: translateY(22px); animation: rise 1.4s var(--ease) forwards; }
.hero .rise.d1 { animation-delay: 0.25s; }
.hero .rise.d2 { animation-delay: 0.5s; }
.hero .rise.d3 { animation-delay: 0.75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* --- Utilities ----------------------------------------------------------- */

.center { text-align: center; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 96px; }
.mb-m { margin-bottom: 48px; } .mb-l { margin-bottom: clamp(56px, 7vw, 104px); }
.max-ch { max-width: 58ch; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* Inquiry page: steps sit on a photograph */
.inquire .side .steps > div { border-color: var(--line-light); }
.inquire .side .steps p { color: rgba(255, 246, 237, 0.8); }
.inquire .side .steps em { color: var(--blush); }

/* ==========================================================================
   LINK voice: lowercase labels, bracketed mono numbering
   ========================================================================== */

.eyebrow { text-transform: none; letter-spacing: 0.04em; font-size: 13px; }
.mono { font-family: var(--mono) !important; font-style: normal !important; font-size: 13px !important; letter-spacing: 0.04em; }
.wordmark sup { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; vertical-align: top; margin-left: -0.3em; opacity: 0.7; }

/* --- Membership tiers: ruled columns, no cards ---------------------------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tier { display: flex; flex-direction: column; padding: 36px clamp(20px, 2.6vw, 44px) 8px 0; min-width: 0; }
.tier + .tier { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.6vw, 44px); }
.tier .n { color: var(--claret); display: block; margin-bottom: 28px; }
.tier h3 { margin-bottom: 10px; }
.tier .price { font-family: var(--serif); font-size: clamp(40px, 4vw, 60px); line-height: 1; margin: 18px 0 6px; }
.tier .price small { font-family: var(--mono); font-size: 13px; color: var(--cocoa); margin-left: 6px; }
.tier .line { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--cocoa); margin: 12px 0 24px; }
.tier ul { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.tier li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tier .actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 28px; }
@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* --- Record (checkable track record) ------------------------------------- */

.record { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.record li { display: grid; grid-template-columns: 70px minmax(0, 4fr) minmax(0, 6fr) 90px; column-gap: var(--gutter); align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.record h3 { font-size: clamp(24px, 2.4vw, 34px); }
.record p { margin: 0; color: rgba(255, 246, 237, 0.78); }
.record .yr { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--blush); }
.record .n { color: var(--blush); }
@media (max-width: 760px) {
  .record li { grid-template-columns: 1fr; row-gap: 10px; }
  .record .yr { text-align: left; }
}

/* --- Price list (sessions without membership) ---------------------------- */

.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; column-gap: var(--gutter); align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); transition: background 0.4s var(--ease); }
.price-list a:hover h3 { color: var(--claret); }
.price-list h3 { font-size: clamp(26px, 2.6vw, 38px); transition: color 0.3s; }
.price-list p { margin: 8px 0 0; color: var(--cocoa); max-width: 60ch; }
.price-list .amt { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); white-space: nowrap; }
.price-list .n { color: var(--claret); }
@media (max-width: 640px) {
  .price-list a { grid-template-columns: 1fr; row-gap: 8px; }
}

/* --- Problem list -------------------------------------------------------- */

.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.problems > div { border-top: 1px solid var(--line); padding-top: 24px; min-width: 0; }
.problems h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 16px; }
.problems p { color: var(--cocoa); font-size: 15px; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } }

.note { font-size: 14px; color: var(--cocoa); max-width: 72ch; }
.on-dark .note { color: rgba(255, 246, 237, 0.7); }

/* ==========================================================================
   folio wordmark: lowercase serif with spaced "B Y  L I N K" beneath
   ========================================================================== */

.wordmark { display: inline-flex; flex-direction: column; align-items: center; letter-spacing: 0; margin-right: 0; line-height: 1; }
.wordmark .wm { font-family: var(--serif); font-size: 32px; letter-spacing: 0.005em; line-height: 0.9; }
.by { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.55em; margin-right: -0.55em; text-transform: uppercase; line-height: 1; margin-top: 5px; }
@media (max-width: 1080px) { .site-header .wordmark { align-items: flex-start; } }

.hero-wordmark { font-size: clamp(96px, 19vw, 280px); letter-spacing: -0.02em; margin-right: 0; line-height: 0.82; display: flex; flex-direction: column; align-items: center; }
.hero-wordmark .by { font-size: clamp(11px, 1.2vw, 16px); margin-top: clamp(14px, 2vw, 26px); }
.hero-sub { font-size: clamp(30px, 3.6vw, 52px); max-width: 22ch; }
.hero-line { display: block; font-size: clamp(18px, 1.7vw, 24px); margin-top: 18px; opacity: 0.9; }

.site-footer .big { letter-spacing: -0.02em; margin-right: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.8; }
.site-footer .big .by { font-size: clamp(11px, 1.4vw, 18px); margin-top: clamp(16px, 2.4vw, 32px); }

/* --- The LINK family ----------------------------------------------------- */

.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.family > * { display: flex; flex-direction: column; gap: 14px; padding: 40px clamp(20px, 2.6vw, 44px) 36px 0; min-width: 0; }
.family > * + * { border-left: 1px solid var(--line-light); padding-left: clamp(20px, 2.6vw, 44px); }
.fam-name { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); line-height: 0.9; display: flex; flex-direction: column; align-items: flex-start; }
.fam-name .by { font-size: 9px; margin-top: 10px; }
.fam-line { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--blush); }
.fam-pillars { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 246, 237, 0.7); }
.fam-here { font-family: var(--mono); font-size: 11px; color: var(--pink); margin-top: 6px; }
.family a { transition: opacity 0.3s; }
.family a:hover .fam-name { color: var(--blush); }
@media (max-width: 860px) {
  .family { grid-template-columns: 1fr; }
  .family > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); }
}
.hero-line { max-width: 40ch; margin-left: auto; margin-right: auto; }
.hero-sub { max-width: none; }
.fam-here { color: var(--blush); }

/* ==========================================================================
   Footer v2
   ========================================================================== */

.site-footer { position: relative; overflow: hidden; padding: 0; background: var(--claret); }

.foot-marquee { overflow: hidden; border-bottom: 1px solid var(--line-light); padding: clamp(22px, 3vw, 36px) 0; }
.foot-marquee .track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.foot-marquee:hover .track { animation-play-state: paused; }
.foot-marquee .half { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); font-family: var(--serif); font-size: clamp(34px, 5vw, 76px); line-height: 1; white-space: nowrap; }
.foot-marquee i { font-style: normal; color: var(--blush); }
.foot-marquee em { color: var(--blush); }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-footer .footer-cols { grid-template-columns: 2.2fr 1fr 1fr 1.3fr; padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 34ch; }
.foot-brand .wordmark { align-items: flex-start; }
.foot-brand .wordmark .wm { font-size: 44px; }
.foot-brand p { margin: 0; font-size: 15px; color: rgba(255, 246, 237, 0.75); }
.foot-pillars { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--blush); }
.footer-cols h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.06em; text-transform: none; color: rgba(255, 246, 237, 0.5); }
.footer-cols ul a { position: relative; display: inline-block; padding: 2px 0; }
.footer-cols ul a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.footer-cols ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.fam-list li { margin-bottom: 16px; }
.fam-list a { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.fam-list small { display: block; font-family: var(--mono); font-size: 11px; color: rgba(255, 246, 237, 0.55); margin-top: 4px; }

.site-footer .footer-base { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; padding: 26px 0 32px; border-top: 1px solid var(--line-light); }
.footer-base .legal { max-width: 72ch; }
.to-top { font-family: var(--mono); font-size: 12px; white-space: nowrap; color: var(--ivory); }
.to-top span { display: inline-block; transition: transform 0.4s var(--ease); }
.to-top:hover span { transform: translateY(-4px); }

.foot-giant { font-family: var(--serif); font-size: clamp(140px, 34vw, 560px); line-height: 0.72; letter-spacing: -0.03em; text-align: center; color: var(--ivory); margin-bottom: -0.16em; user-select: none; pointer-events: none; }
.foot-giant span { display: inline-block; }

@media (max-width: 960px) {
  .site-footer .footer-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .site-footer .footer-base { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   Motion system (only when JS runs; everything is visible without it)
   ========================================================================== */

/* Reading progress */
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; z-index: 2; }

/* Page turn */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--claret); color: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateY(100%); pointer-events: none; }
.curtain .wm { font-family: var(--serif); font-size: clamp(72px, 12vw, 160px); line-height: 0.85; letter-spacing: -0.02em; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease 0.15s, transform 0.6s var(--ease) 0.15s; }
.curtain .by { font-size: 11px; margin-top: 18px; opacity: 0; transition: opacity 0.4s ease 0.25s; }
.curtain.cover { transform: none; transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: auto; }
.curtain.cover .wm, html.from-nav .curtain .wm { opacity: 1; transform: none; }
.curtain.cover .by, html.from-nav .curtain .by { opacity: 0.8; }
html.from-nav .curtain { transform: none; }
.curtain.lift { transform: translateY(-100%); transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.1s; }

/* Hero letters */
.hero-wordmark .line { display: block; overflow: hidden; padding: 0 0.04em 0.06em; }
html.js .hero-wordmark .ch { display: inline-block; transform: translateY(110%); animation: chUp 1.25s var(--ease) forwards; animation-delay: calc(var(--i) * 75ms + 0.25s); }
html.from-nav .hero-wordmark .ch { animation-delay: calc(var(--i) * 75ms + 0.7s); }
@keyframes chUp { to { transform: none; } }
.hero-media img { will-change: transform; }

/* Fade-up blocks */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Masked headlines */
html.js .mask { clip-path: inset(-10% -5% 100% -5%); transform: translateY(0.35em); transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease); }
html.js .mask.in { clip-path: inset(-10% -5% -20% -5%); transform: none; }

/* Photos uncovered */
html.js .uncover::after { content: ""; position: absolute; inset: 0; background: var(--claret); transform-origin: top; transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1); z-index: 1; }
html.js .uncover.in::after { transform: scaleY(0); }
html.js .uncover img { transform: scale(1.18); transition: transform 1.9s var(--ease); }
html.js .uncover.in img { transform: scale(1); }
html.js .uncover.in:hover img { transform: scale(1.03); }

/* Giant footer word */
html.js .rise-up span { transform: translateY(45%); transition: transform 1.6s var(--ease); }
html.js .rise-up.in span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .mask, html.js .uncover img, html.js .rise-up span, html.js .hero-wordmark .ch { opacity: 1; transform: none; clip-path: none; animation: none; }
  html.js .uncover::after, .curtain { display: none; }
  .foot-marquee .track { animation: none; }
}

/* ==========================================================================
   Shorter site: typographic page heads, no extra photography
   ========================================================================== */

.page-head { padding: clamp(150px, 18vw, 220px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 96px); }
.page-head .page-hero-grid .intro { color: var(--cocoa); }
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plain-list li { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 28px); padding: 16px 0; border-bottom: 1px solid var(--line); }
.inquire .side { background: var(--claret); }
.lede em { color: var(--blush); }
