/* CPT UK — tokens mirror the app (OneDrive/CPT UK/src/constants/theme.ts) */
:root {
  --bg: #FFFFFF;
  --text: #000000;
  --text-secondary: #6B6B6B;
  --text-muted: #A0A0A0;
  --surface: #F3F3F3;
  --surface-pressed: #E8E8E8;
  --border: #E2E2E2;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --gutter: 40px;
  --section: 160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.display { font-size: clamp(52px, 7.4vw, 108px); font-weight: 700; letter-spacing: -0.035em; line-height: .95; }
.h2 { font-size: clamp(32px, 4vw, 52px); }
.h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 20px; }
.lede { font-size: 19px; line-height: 1.65; color: var(--text-secondary); }
.lede strong { color: var(--text); font-weight: 600; }
p { margin: 0 0 16px; }
.muted { color: var(--text-secondary); }

/* ClassPass-style outlined words.
   A ring of text-shadows rather than -webkit-text-stroke: Outfit's glyphs have
   overlapping contours, which text-stroke draws as stray lines inside letters.
   The fill must match the background behind the text. */
.outline, .stat__num {
  --outline-fill: var(--bg);
  color: var(--outline-fill);
  font-weight: 700;
  text-shadow:
    1.4px 0 0 var(--text), 1.29px .54px 0 var(--text), .99px .99px 0 var(--text), .54px 1.29px 0 var(--text),
    0 1.4px 0 var(--text), -.54px 1.29px 0 var(--text), -.99px .99px 0 var(--text), -1.29px .54px 0 var(--text),
    -1.4px 0 0 var(--text), -1.29px -.54px 0 var(--text), -.99px -.99px 0 var(--text), -.54px -1.29px 0 var(--text),
    0 -1.4px 0 var(--text), .54px -1.29px 0 var(--text), .99px -.99px 0 var(--text), 1.29px -.54px 0 var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--text);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--text); }
.btn[hidden] { display: none; }
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--wide { width: 100%; max-width: 520px; height: 56px; }
.btn .arrow { transition: transform .25s var(--ease); }

.link {
  font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s;
}

/* ---------- Photo placeholders (swap for real photography) ---------- */
.ph {
  position: relative; background: var(--surface); overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { content: none; }
/* Show photos whole, at their own shape, so they look the same on every screen size */
.hero__media img, .feature__media img, .collage img, .coach__photo img, .slide__media img, .gallery__media img { height: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06);
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: none; padding: 0 var(--gutter);
}
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.wordmark span { font-weight: 400; color: var(--text-secondary); }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav__links a:not(.btn) { color: var(--text-secondary); transition: color .2s; }
.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before {
  display: block; width: 22px; height: 1.5px; background: var(--text); position: relative;
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { content: ''; position: absolute; top: 7px; }
.nav__toggle span { transform: translateY(-3.5px); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--text); color: var(--bg);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.menu__top .wordmark span { color: var(--text-muted); }
.menu__close { color: var(--bg); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.menu__links { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.menu__links a {
  font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15;
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu__links a::after {
  content: '→'; font-size: .55em; font-weight: 400;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
/* Touch has no hover, so a press gets the same nudge */
.menu__links a:active, .menu__links a:focus-visible { transform: translateX(8px); }
.menu__links a:active::after, .menu__links a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: hover) {
  .menu__links a:hover { transform: translateX(8px); }
  .menu__links a:hover::after { opacity: 1; transform: none; }
  .menu__links:hover a:not(:hover) { opacity: .4; }
}
.menu .btn { margin-top: 40px; background: var(--bg); color: var(--text); border-color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 56% 1fr; align-items: center;
  min-height: calc(100vh - 72px); max-height: 920px;
}
.hero__media { display: flex; justify-content: center; background: none; }
.hero__media img { width: auto; max-height: min(calc(100vh - 72px), 920px); }
/* Desktop: the hero photo fills its whole half of the section (cropped to fit) */
@media (min-width: 901px) {
  .hero__media { align-self: stretch; min-height: 560px; }
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
}
.hero__copy { padding: 64px var(--gutter) 64px 72px; }
.hero__copy .display span { display: block; }
.hero__sub { margin-top: 32px; max-width: 360px; color: var(--text-secondary); }
.hero__cta { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Intro ---------- */
.intro { text-align: center; max-width: 720px; margin: 0 auto; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center;
}
.feature--flip { grid-template-columns: 7fr 5fr; }
.feature--flip .feature__copy { order: 2; }
.feature__copy { max-width: 400px; }
.feature__copy .h3 { margin-bottom: 16px; }
.feature__copy p { color: var(--text-secondary); font-size: 16px; }
.feature__copy .btn { margin-top: 16px; }
.feature--bleed-right { width: auto; padding-right: 0; max-width: none; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.feature--bleed-left { width: auto; padding-left: 0; max-width: none; margin-right: max(0px, calc((100vw - var(--max)) / 2)); }

/* ---------- Collage ---------- */
.collage {
  display: flex; gap: 24px; max-width: 1000px; margin: 0 auto; align-items: flex-start;
}
.collage__stack { display: contents; }
/* Width in proportion to each photo's shape (--ar = width / height), so all sit at one height uncropped */
.collage .ph { flex: var(--ar) 1 0; min-width: 0; }

/* ---------- Coach / testimonials ---------- */
.coach__head { text-align: left; max-width: 640px; margin: 0 0 56px; }
.coach__figure { width: min(320px, 100%); margin: 0 auto 32px; }
.coach__head .coach__caption { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: var(--text-secondary); }
.coach__head .h3 { margin-bottom: 12px; }
.coach__head p { color: var(--text-secondary); font-size: 16px; }
.bio { margin-top: 16px; animation: fade .6s var(--ease); }
.bio p + p, .bio__list + p { margin-top: 16px; }
.bio__list { list-style: none; margin: 16px 0 0; padding: 0; color: var(--text); font-size: 16px; }
.bio__list li { padding: 12px 0; border-top: 1px solid var(--border); }
.bio__list li:last-child { border-bottom: 1px solid var(--border); }
.bio strong { color: var(--text); font-weight: 500; }
.bio__heading { margin-top: 40px; font-size: 18px; font-weight: 500; color: var(--text); }
.bio__heading + p { margin-top: 16px; }
.bio__toggle {
  margin-top: 20px; background: none; border: 0; border-bottom: 1px solid currentColor;
  padding: 0 0 2px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
}
.bio__toggle:hover { opacity: .6; }

.slider { position: relative; }
.slider__track { position: relative; }
.slide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: 880px; margin: 0 auto;
}
.slide:not(.is-active) { display: none; }
.slide.is-active { animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide__who { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 16px; }
.slide__name { font-weight: 500; }
.slide__role { font-size: 13px; color: var(--text-secondary); }
.quote { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.testimonial__more { margin-top: 24px; color: var(--text-secondary); font-size: 16px; animation: fade .6s var(--ease); }
.testimonial__more p + p { margin-top: 16px; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; transition: background .2s;
}
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__dots { display: none; justify-content: center; gap: 2px; margin-top: 18px; }
.slider__dots button { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.slider__dots button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.slider__dots button[aria-current="true"]::before { background: var(--text); }

/* Wide gallery slider */
.gallery .slide { display: block; max-width: 900px; }
.gallery .slide:not(.is-active) { display: none; }
.gallery__caption { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 14px; }

/* ---------- Transformations ---------- */
.transformations { columns: 3 280px; column-gap: 24px; }
.transformations img { width: 100%; height: auto; margin-bottom: 24px; break-inside: avoid; background: var(--surface); }

/* ---------- Stats ---------- */
.stats { text-align: center; }
.stats .h3 { margin-bottom: 56px; }
.stat { margin-bottom: 48px; }
.stat__num {
  font-size: clamp(56px, 8vw, 104px); letter-spacing: -0.03em; line-height: 1;
}
.stat__label { font-size: 14px; color: var(--text-secondary); margin-top: 10px; }

/* ---------- Membership ---------- */
.membership__head { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.membership__head .h2 { margin-bottom: 16px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.tier {
  border: 1px solid var(--border); padding: 48px 40px 40px;
  display: flex; flex-direction: column;
}
.tier--dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.tier__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 24px; }
.tier--dark .tier__tag { color: var(--text-muted); }
.tier__name { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tier__price { margin: 12px 0 32px; color: var(--text-secondary); }
.tier--dark .tier__price { color: var(--text-muted); }
.tier__price strong { color: var(--text); font-weight: 500; font-size: 20px; }
.tier--dark .tier__price strong { color: var(--bg); }
.tier ul { list-style: none; margin: 0 0 40px; padding: 0; font-size: 15px; }
.tier li { padding: 14px 0; border-top: 1px solid var(--border); }
.tier--dark li { border-top-color: #2a2a2a; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier--dark .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }
.scarcity { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.scarcity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }

/* ---------- Closing band ---------- */
.closing { background: var(--surface); padding: 96px 0; text-align: center; margin-top: var(--section); }
.closing .h3 { font-size: 26px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: var(--bg); padding: 88px 0 40px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h4 { margin: 0 0 18px; font-size: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--text-muted); transition: color .2s; }
.footer__app { margin-top: 72px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__app p { margin-bottom: 14px; }
.badges { display: flex; gap: 10px; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  height: 44px; padding: 0 16px; border: 1px solid #3a3a3a; border-radius: 8px; line-height: 1.1;
  transition: border-color .2s;
}
.badge small { font-size: 9px; color: var(--text-muted); letter-spacing: .04em; }
.badge span { font-size: 14px; font-weight: 500; }
.footer__social { display: flex; gap: 20px; color: var(--text-muted); }
.footer__legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #262626;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 12px;
}
.footer__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__credit { margin: 32px 0 0; text-align: center; font-size: 11px; letter-spacing: .04em; color: #5c5c5c; }

/* ---------- Hover (pointer devices only, so taps don't leave styles stuck) ---------- */
@media (hover: hover) {
  .btn:hover { background: #262626; }
  .btn--ghost:hover { background: var(--text); color: var(--bg); }
  .btn:hover .arrow { transform: translateX(3px); }
  .link:hover { opacity: .6; }
  .nav__links a:not(.btn):hover { color: var(--text); }
  .slider__arrow:hover { background: var(--surface); }
  .badge:not(.badge--soon):hover { border-color: var(--bg); }
  .footer li a:hover { color: var(--bg); }
  .footer__social a:hover { color: var(--bg); }
  .footer__legal a:hover { color: var(--bg); }
  .tier--dark .btn:hover { background: var(--surface-pressed); }
  .step__back:hover { color: var(--text); }
  .choice:hover .choice__box { border-color: var(--text-muted); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.is-active { animation: none; }
}

/* ---------- Apply page ---------- */
.apply { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: grid; grid-template-columns: 5fr 7fr; }
.apply__aside { padding: 64px var(--gutter); background: var(--surface); display: flex; flex-direction: column; }
.apply__aside .h2 { margin-bottom: 20px; }
.apply__aside .outline { --outline-fill: var(--surface); }
.apply__aside p { color: var(--text-secondary); max-width: 380px; }
.apply__steps { list-style: none; padding: 0; margin: auto 0 0; font-size: 14px; color: var(--text-secondary); counter-reset: s; }
.apply__steps li { counter-increment: s; padding: 16px 0; border-top: 1px solid var(--border); display: flex; gap: 16px; }
.apply__steps li::before { content: '0' counter(s); color: var(--text); font-weight: 500; }
.apply__main { padding: 48px var(--gutter) 48px 80px; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }

.progress { height: 2px; background: var(--border); margin-bottom: 40px; }
.progress__bar { height: 100%; width: 0; background: var(--text); transition: width .5s var(--ease); }
.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step.is-active { display: block; animation: fade .5s var(--ease); }
.step legend { padding: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 12px; }
.step__hint { color: var(--text-secondary); margin-bottom: 28px; }
.step__count { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; border: 1px solid var(--border); background: var(--bg);
  transition: border-color .2s, background .2s;
}
.choice__box small { display: block; color: var(--text-secondary); font-size: 14px; margin-top: 2px; }
.choice__box::after { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--text-muted); transition: all .2s; }
.choice input[type="checkbox"] + .choice__box::after { border-radius: 4px; }
.choice input:checked + .choice__box { border-color: var(--text); }
.choice input:checked + .choice__box::after { background: var(--text); border-color: var(--text); box-shadow: inset 0 0 0 3px var(--bg); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--text); outline-offset: 2px; }

.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid transparent; border-radius: 0;
  padding: 16px 18px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--bg); border-color: var(--text); }
.field--notes { margin: 20px 0 0; }
.field--notes em { font-style: normal; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.field--notes textarea { min-height: 56px; padding: 12px 16px; }
.field--notes textarea::placeholder { font-size: 13px; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.step__back { font-size: 14px; color: var(--text-secondary); }
.step__back[hidden] { visibility: hidden; display: block; }
.form-error { color: var(--text); font-size: 14px; margin-top: 16px; min-height: 1.4em; }

.thanks { display: none; }
.thanks.is-active { display: block; animation: fade .6s var(--ease); }
.thanks .h2 { margin-bottom: 20px; }
.thanks p { color: var(--text-secondary); max-width: 460px; }

/* ---------- Retreat enquiry ---------- */
.retreat-enquiry { text-align: left; scroll-margin-top: 80px; }
.retreat-enquiry .container { max-width: 560px; }
.retreat-enquiry .h3 { margin-bottom: 12px; }
.retreat-enquiry form > .muted { margin-bottom: 32px; }
.retreat-enquiry .field input, .retreat-enquiry .field textarea { background: var(--bg); }
.retreat-enquiry .field em { font-style: normal; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.retreat-enquiry .form-error { margin: 0 0 16px; }

/* ---------- Journal ---------- */
.nav__links a[aria-current="page"] { color: var(--text); }
.journal { padding: 88px 0 0; }
.journal__head { max-width: 640px; margin-bottom: 48px; }
.journal__filters { display: flex; gap: 8px; margin-bottom: 40px; }
.journal__filters button {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary); transition: all .2s;
}
.journal__filters button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.posts > p { grid-column: 1 / -1; }
.post-card { display: block; }
.post-card[hidden] { display: none; }
.post-card__media { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.post-card__media img { transition: transform .8s var(--ease); }
.post-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.72); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px;
}
.post-card__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.post-card .h3 { margin-bottom: 10px; }
.post-card__excerpt { font-size: 15px; color: var(--text-secondary); }

.article { padding: 64px 0 0; }
.article__inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.article__inner .h2 { margin-bottom: 20px; }
.article__back { display: inline-block; font-size: 14px; color: var(--text-secondary); margin-bottom: 40px; }
.article__edit { margin-left: 24px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.article__draft { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--text); color: var(--bg); padding: 4px 10px; margin-bottom: 20px; }
.article__cover, .article__video { max-width: 1000px; margin: 48px auto; aspect-ratio: 16 / 9; background: var(--text); }
.article__cover.ph:not(:has(img)) { background: var(--surface); }
/* Poster artwork has text near its edges, so match its shape instead of cropping to 16:9. */
.article__cover--poster { aspect-ratio: 2048 / 923; }
.article__video iframe, .article__video video { width: 100%; height: 100%; border: 0; display: block; }
.article__body { font-size: 18px; line-height: 1.75; }
.article__body p { margin-bottom: 24px; }
.article__body h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 16px; }
.article__body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 40px 0 12px; }
.article__body strong { font-weight: 600; }
.mentoring__topics { list-style: none; margin: 0 0 24px; }
.mentoring__topics li { margin-bottom: 12px; }
#book .muted { max-width: 560px; margin: 0 auto 16px; }

/* ---------- Legal pages ---------- */
.legal { padding-bottom: 120px; }
.legal .article__body { margin-top: 24px; font-size: 16px; line-height: 1.7; }
.legal .article__body h2 { font-size: 22px; margin-top: 40px; }
.legal .article__body ul { margin: 0 0 24px; padding-left: 20px; }
.legal .article__body li { margin-bottom: 8px; }
.legal .article__body a { border-bottom: 1px solid currentColor; }
.legal__nav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.legal__nav a[aria-current="page"] { color: var(--text); font-weight: 500; }
.badge--soon { cursor: default; opacity: .6; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 64px 0 96px; }
.notfound__code { font-size: clamp(120px, 22vw, 280px); letter-spacing: -0.04em; line-height: .85; margin: 0 0 32px; }
.notfound .h2 { margin-bottom: 16px; }
.notfound .lede { max-width: 480px; }
.notfound__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Admin ---------- */
.admin__main { padding-top: 64px; padding-bottom: 120px; max-width: 880px; }
.admin__panel { max-width: 420px; }
.admin__panel .h2 { margin-bottom: 12px; }
.admin__panel .muted { margin-bottom: 32px; }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.admin__actions { display: flex; gap: 10px; }
.admin__list { list-style: none; margin: 0; padding: 0; }
.admin__list li { border-top: 1px solid var(--border); }
.admin__list li:last-child { border-bottom: 1px solid var(--border); }
.admin__list > .muted, .admin__list > .form-error { padding: 20px 0; }
.admin__row { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; }
.admin__row-title { font-weight: 500; }
.admin__row-meta { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.admin__row-edit { margin-left: 16px; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.admin__editor .h2 { margin-bottom: 32px; }
.admin__tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.admin__tabs button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.admin__tabs button[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.enquiry summary { cursor: pointer; list-style: none; }
.enquiry summary::-webkit-details-marker { display: none; }
.enquiry__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text); margin-right: 10px; vertical-align: middle; }
.enquiry__body { display: grid; grid-template-columns: 140px 1fr; gap: 12px 24px; margin: 0 0 24px; font-size: 15px; }
.enquiry__body dt { color: var(--text-secondary); }
.enquiry__body dd { margin: 0; white-space: pre-line; }
.enquiry__body dd .muted { display: block; margin-top: 4px; }
.enquiry__body select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border); background: var(--bg); }
.admin__editor .field > input[type="url"] { margin-bottom: 12px; }
.choices--inline { grid-template-columns: 1fr 1fr; margin-bottom: 28px; max-width: 420px; }
.field__opt { font-style: normal; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.field__hint { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 8px; word-break: break-all; }
.field__hint b { font-weight: 500; color: var(--text); }
.field[hidden], .field__hint[hidden] { display: none; }
.upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload .field__hint { flex: 1 1 260px; margin: 0; word-break: normal; }
.upload label.btn { cursor: pointer; }
.upload__remove { font-size: 14px; }
.upload__preview:not(:empty) { margin-top: 16px; max-width: 480px; aspect-ratio: 16 / 9; background: var(--surface); }
.upload__preview img, .upload__preview iframe, .upload__preview video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.toggle { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--text); }
.admin__editor-actions { display: flex; align-items: center; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.admin__delete { margin-left: auto; font-size: 14px; color: var(--text-secondary); }
@media (hover: hover) {
  .post-card:hover .post-card__media img { transform: scale(1.03); }
  .journal__filters button:hover { border-color: var(--text); color: var(--text); }
  .journal__filters button[aria-selected="true"]:hover { color: var(--bg); }
  .admin__row:hover .admin__row-title { text-decoration: underline; }
  .article__back:hover { color: var(--text); }
}

/* ---------- Email sign-up popup (signup.js) ---------- */
.signup {
  width: min(880px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100% - 2 * var(--gutter));
  padding: 0; border: 0; background: var(--bg); color: var(--text); overflow: auto;
}
.signup[open] { animation: fade .5s var(--ease); }
.signup::backdrop { background: rgba(0, 0, 0, .55); }
.signup__panel { display: grid; grid-template-columns: 5fr 6fr; }
.signup__media { background: var(--surface); }
.signup__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.signup__body { position: relative; padding: 56px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.signup__title { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.signup__body .muted { margin: 0 0 28px; }
.signup__body .field { margin-bottom: 14px; }
.signup__submit { width: 100%; margin-top: 8px; }
.signup__legal { font-size: 12px; line-height: 1.5; color: var(--text-secondary); margin: 16px 0 0; }
.signup .form-error { margin-top: 8px; }
.signup__thanks .btn { margin-top: 4px; align-self: flex-start; }
.signup__thanks[hidden], .signup__form[hidden] { display: none; }
.signup__thanks:not([hidden]) { display: flex; flex-direction: column; animation: fade .5s var(--ease); }
.signup__title:focus { outline: none; }
.signup__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  font-size: 28px; line-height: 1; color: var(--text-secondary); transition: color .2s;
}
@media (hover: hover) { .signup__close:hover { color: var(--text); } }
@media (max-width: 700px) {
  .signup__panel { grid-template-columns: 1fr; }
  .signup__media { display: none; }
  .signup__body { padding: 48px 24px 28px; }
  .signup__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .signup[open], .signup__thanks:not([hidden]) { animation: none; }
}

/* ---------- Responsive ---------- */
/* Nav has six links: stack the wordmark tagline, then fall back to the menu */
@media (max-width: 1280px) {
  .nav .wordmark { line-height: 1.15; }
  .nav .wordmark span { display: block; font-size: 12px; letter-spacing: .02em; }
}

@media (max-width: 1080px) {
  .nav__links { gap: 24px; }
  .nav__links:has(.nav__toggle) a:not(.btn) { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__copy { padding-left: 48px; }
  .feature { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; --section: 96px; }
  body { font-size: 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .wordmark { font-size: 18px; line-height: 1.15; }
  .nav .wordmark span { display: block; font-size: 12px; letter-spacing: .02em; }
  [id] { scroll-margin-top: 76px; }
  .nav__links a:not(.btn) { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links { gap: 8px; }

  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__media { order: 2; margin: 0 var(--gutter); }
  .hero__copy { padding: 40px var(--gutter) 32px; }
  .hero__sub { max-width: none; }
  .hero + .section { padding-top: 40px; }

  .intro { text-align: left; }
  .lede { font-size: 17px; }

  .feature, .feature--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__copy { order: 2; }
  .feature__copy { order: 2; max-width: none; padding: 0 var(--gutter); }
  .feature--bleed-right, .feature--bleed-left { margin: 0; padding: 0; }

  .collage { flex-wrap: wrap; gap: 16px; }
  .collage .collage__tall { flex-basis: 100%; }

  .slide { grid-template-columns: 1fr; gap: 32px; }
  .slide__media { order: -1; }
  .slide__who { flex-direction: row; text-align: left; gap: 16px; align-items: center; }
  .avatar { width: 56px; height: 56px; margin: 0; }
  .slider__arrow { display: none; }
  .slider__dots { display: flex; }
  /* Testimonials: small arrows either side of the dots */
  .slider:not(.gallery) { display: grid; grid-template-columns: auto 1fr auto; align-items: center; row-gap: 18px; }
  .slider:not(.gallery) .slider__track { grid-column: 1 / -1; }
  .slider:not(.gallery) .slider__arrow { display: inline-flex; position: static; transform: none; grid-row: 2; width: 44px; height: 44px; border: 1px solid var(--border); }
  .slider:not(.gallery) .slider__arrow--prev { grid-column: 1; }
  .slider:not(.gallery) .slider__arrow--next { grid-column: 3; }
  .slider:not(.gallery) .slider__dots { grid-row: 2; grid-column: 2; margin-top: 0; }

  .menu__close { min-height: 44px; padding: 0 4px; }
  .menu__links a { font-size: clamp(32px, 11vw, 44px); }

  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 36px 24px 28px; }

  .closing { padding: 72px 0; }
  .footer { padding-top: 64px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer li { margin-bottom: 2px; }
  .footer li a, .footer__legal nav a, .footer__social a { display: inline-block; padding: 8px 0; }
  .footer__legal { gap: 8px; }

  .apply { grid-template-columns: 1fr; min-height: 0; }
  .apply__aside { padding: 40px var(--gutter); }
  .apply__steps { display: none; }
  .apply__main { padding: 40px var(--gutter) 64px; }
  .progress { margin-bottom: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .journal { padding-top: 48px; }
  .posts { grid-template-columns: 1fr; gap: 48px; }
  .article { padding-top: 32px; }
  .article__cover, .article__video { margin: 32px 0; }
  .article__body { font-size: 17px; }
  .admin__main { padding-top: 40px; }
  .admin__row { flex-direction: column; gap: 4px; }
  .enquiry__body { grid-template-columns: 1fr; gap: 2px; }
  .enquiry__body dd { margin-bottom: 12px; }
  .admin .nav__links a:not(.btn) { display: none; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .posts { grid-template-columns: 1fr 1fr; }
}
