/* ═══════════════════════════════════════════════════════════
   WaldorfMinds — page sections
   Home · About · How it works · Team · FAQ · Contact · Schools
   One quiet voice: letter-like sections, painted blobs,
   and a dark theme that follows the device setting.
   (Legal pages use legal.css and are not affected.)
   ═══════════════════════════════════════════════════════════ */

:root { --surface: #fff; }

/* section tones: every section picks a colour with --c */
.tone-red    { --c: var(--red); }
.tone-green  { --c: var(--green); }
.tone-blue   { --c: var(--blue); }
.tone-amber  { --c: var(--amber); }
.tone-violet { --c: var(--violet); }
.on-cream { background: var(--cream); }

/* ─── HERO EXTRAS ────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 28px;
}
.more-link {
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(32, 26, 12, 0.3);
}
.more-link:hover { text-decoration-color: currentColor; }

/* words that take turns in a headline */
.words {
  display: inline-grid;
  vertical-align: bottom;
  height: 1.12em;
  overflow: hidden;
  color: var(--ink);
  text-shadow: none;
}
.words span { grid-area: 1 / 1; animation: word 12.5s infinite; opacity: 0; transform: translateY(100%); }
.words span:nth-child(2) { animation-delay: 2.5s; }
.words span:nth-child(3) { animation-delay: 5s; }
.words span:nth-child(4) { animation-delay: 7.5s; }
.words span:nth-child(5) { animation-delay: 10s; }
@keyframes word {
  0%   { opacity: 0; transform: translateY(100%); }
  4%, 18% { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .words span { animation: none; opacity: 0; }
  .words span:first-child { opacity: 1; transform: none; }
}

/* ─── LETTER (one centred column of text) ───────────────── */
.letter { max-width: 720px; margin: 0 auto; text-align: center; }
.letter .lede { margin-left: auto; margin-right: auto; }
.letter .lede + .lede { margin-top: 14px; }
.letter .section-cta { justify-content: center; }
.section-cta { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }
.center .section-cta { justify-content: center; }
.split .lede + .lede { margin-top: 14px; }

/* two columns: words on one side, a picture on the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }

/* small print under a section */
.aside-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--ink-faint);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.aside-note + .aside-note { margin-top: 12px; padding-top: 0; border-top: 0; }
.aside-note a, .numbered a, .text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ─── PHOTOS ─────────────────────────────────────────────── */
.photo-banner {
  margin: clamp(8px, 2vw, 24px) auto 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 56px 38px 64px 30px / 40px 60px 34px 66px;
  box-shadow: 0 24px 50px rgba(94, 62, 0, 0.18);
}
.photo-banner img { width: 100%; height: 100%; object-fit: cover; }

/* a photo resting slightly crooked, with a caption */
.polaroid { justify-self: center; max-width: 380px; text-align: center; }
.polaroid img {
  width: 100%;
  height: auto;
  border-radius: 38px 60px 30px 64px / 60px 34px 66px 40px;
  box-shadow: 0 22px 48px rgba(94, 62, 0, 0.16);
  transform: rotate(1.5deg);
}
.polaroid figcaption { margin-top: 16px; font-size: 14px; font-style: italic; color: var(--ink-soft); }

/* ─── CREW (the team in one row) ─────────────────────────── */
.crew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 12px;
  max-width: 1120px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  list-style: none;
  text-align: center;
}
.crew li { display: flex; flex-direction: column; align-items: center; width: 108px; }
.crew img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--blob-a);
  border: 3px solid var(--paper);
  box-shadow: 0 8px 20px rgba(32, 26, 12, 0.14);
}
.crew li:nth-child(even) img { border-radius: var(--blob-b); }
.crew li:nth-child(3n) img { border-radius: var(--blob-c); }
.crew strong { margin-top: 10px; font-size: 14.5px; line-height: 1.25; }
.crew span { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }

/* ─── VALUES ─────────────────────────────────────────────── */
.values { --c: var(--amber); background: var(--cream); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
  list-style: none;
}
.value { display: flex; flex-direction: column; gap: 10px; }
.value__shape {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--blob-a);
  background: var(--v, var(--red));
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--v, var(--red)) 30%, transparent);
}
.value:nth-child(2) .value__shape { --v: var(--green); border-radius: var(--blob-b); }
.value:nth-child(3) .value__shape { --v: var(--blue); border-radius: var(--blob-c); }
.value:nth-child(4) .value__shape { --v: var(--violet); }
.value h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.value p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* line icons, drawn with the current colour */
.value__shape svg, .icon-blob svg, .choice-cards svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-blob {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--blob-a);
  background: color-mix(in srgb, var(--i, var(--c)) 14%, var(--surface));
  color: var(--i, var(--c));
}
.icon-blob svg { width: 24px; height: 24px; }

/* ─── NUMBERED STEPS (light, inline) ─────────────────────── */
.numbered { display: grid; gap: 14px; margin-top: 24px; list-style: none; counter-reset: step; }
.numbered li {
  position: relative;
  padding-left: 48px;
  font-size: 16.5px;
  line-height: 1.5;
  counter-increment: step;
}
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--blob-a);
  background: var(--s, var(--amber));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.numbered li:nth-child(2) { --s: var(--green); }
.numbered li:nth-child(2)::before { border-radius: var(--blob-b); }
.numbered li:nth-child(3) { --s: var(--blue); }
.numbered li:nth-child(3)::before { border-radius: var(--blob-c); }
.numbered li:nth-child(4) { --s: var(--red); }
.numbered li:nth-child(5) { --s: var(--violet); }

/* ─── STEPS (cards, How it works) ────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--card);
  background: var(--surface);
  border: 1px solid var(--ink-faint);
}
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--blob-a);
  background: var(--s, var(--blue));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.step:nth-child(2) .step__num { --s: var(--green); border-radius: var(--blob-b); }
.step:nth-child(3) .step__num { --s: var(--amber); border-radius: var(--blob-c); }
.step:nth-child(4) .step__num { --s: var(--red); }
.step:nth-child(5) .step__num { --s: var(--violet); border-radius: var(--blob-b); }
.step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.step__time {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  color: #7A5300;
}
.step p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.step p a { font-weight: 600; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* pill tabs */
.tabs {
  display: inline-flex;
  margin-top: 28px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--ink-faint);
}
.tabs [role="tab"] {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.no-js .tabs { display: none; }
.panel { margin-top: clamp(28px, 4vw, 44px); }
.panel__intro { max-width: 60ch; margin: 0 auto 28px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* ─── CHOICE CARDS (big tabs with an icon) ───────────────── */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.choice-cards [role="tab"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 18px;
  border-radius: var(--card);
  border: 1.5px solid var(--ink-faint);
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.choice-cards [role="tab"]:hover { transform: translateY(-2px); }
.choice-cards [role="tab"][aria-selected="true"] {
  border-color: var(--c);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 18%, transparent), inset 0 0 0 1px var(--c);
}
.no-js .choice-cards { display: none; }

.choice-panel { max-width: 820px; margin: 20px auto 0; }
.choice-panel__title { margin: 24px 0 10px; font-size: 18px; font-weight: 800; }
html:not(.no-js) .choice-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.choice-panel ul { display: grid; gap: 10px; list-style: none; }
.choice-panel li {
  position: relative;
  padding: 16px 20px 16px 52px;
  border-radius: var(--card);
  background: var(--c-tint);
  font-size: 16.5px;
  line-height: 1.5;
}
.choice-panel li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: var(--blob-a);
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ─── PHONE (a drawn phone showing an app screen) ────────── */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 12px;
  border-radius: 44px;
  background: #201A0C;
  box-shadow: 0 30px 60px rgba(94, 62, 0, 0.22);
  transform: rotate(-2deg);
}
.phone__screen {
  overflow: hidden;
  padding-bottom: 18px;
  border-radius: 33px;
  background: var(--paper);
  color: var(--ink);
}
.phone__cover {
  height: 92px;
  background:
    radial-gradient(ellipse 50% 70% at 20% 30%, rgba(255, 246, 200, 0.9), transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 60%, rgba(244, 181, 196, 0.7), transparent 70%),
    linear-gradient(160deg, var(--gold), #FFE27A);
}
.phone__head { margin: -28px 16px 0; }
.phone__avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: var(--blob-a);
  border: 3px solid var(--paper);
  background: var(--green);
}
.phone__head div { margin-top: 8px; }
.phone__head strong { display: block; font-size: 14px; line-height: 1.2; }
.phone__head div span { display: block; font-size: 11px; color: var(--ink-soft); }
.phone__head div span::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.phone__about { margin: 10px 16px 12px; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.phone__item {
  margin: 8px 14px 0;
  padding: 10px 12px;
  border-radius: 16px;
  border-left: 4px solid var(--i);
  background: color-mix(in srgb, var(--i) 9%, var(--paper));
}
.phone__item small {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--i);
}
.phone__item strong { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; }

/* a real screenshot from the app, inside the drawn phone */
.phone--shot { width: min(290px, 100%); padding: 10px; border-radius: 46px; }
.phone--shot img { display: block; width: 100%; height: auto; border-radius: 37px; background: var(--gold-soft); }
/* ─── TOUR (home: the four areas, one phone) ─────────────── */
.tour .choice-cards { --n: 4; max-width: 900px; }
.tour .choice-panel { max-width: 960px; margin-top: clamp(28px, 4vw, 48px); }
.tour__text h3 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.tour__text p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.tour__text p + p { margin-top: 10px; }
.tour__text a { font-weight: 600; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ─── POSTCARDS (small stories) ──────────────────────────── */
.postcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
  list-style: none;
}
.postcard {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--ink) 7%, transparent) 31px 32px),
    var(--surface);
  box-shadow: 0 16px 34px rgba(94, 62, 0, 0.12), 0 2px 4px rgba(94, 62, 0, 0.06);
  transform: rotate(var(--r, -1.5deg));
}
.postcard:nth-child(2) { --r: 1.2deg; --p: var(--blue); }
.postcard:nth-child(3) { --r: -0.6deg; --p: var(--green); }
.postcard__stamp {
  float: right;
  display: grid;
  place-items: center;
  width: 80px;
  height: 66px;
  margin: -8px -6px 8px 12px;
  border-radius: 6px;
  outline: 2px dashed color-mix(in srgb, var(--p, var(--red)) 45%, transparent);
  outline-offset: -5px;
  background: color-mix(in srgb, var(--p, var(--red)) 16%, var(--surface));
  color: var(--p, var(--red));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  transform: rotate(4deg);
}
.postcard p { font-size: 17px; font-style: italic; line-height: 32px; }
.postcard__from { display: block; margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* ─── SOCIAL PROOF ───────────────────────────────────────── */
.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1.5px dashed var(--ink-faint);
}
.proof__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.proof__school { font-size: 16px; font-weight: 700; }
.proof__where { font-weight: 500; color: var(--ink-soft); }
.proof__where::before { content: '· '; }

/* ─── SPACES (the four areas, as cards) ──────────────────── */
.spaces__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(32px, 5vw, 56px);
}
.space {
  --c: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--card);
  background: var(--c-tint);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.space--red    { --c: var(--red); }
.space--green  { --c: var(--green); }
.space--blue   { --c: var(--blue); }
.space--violet { --c: var(--violet); }
.space__blob {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: var(--blob-b);
  background: var(--c);
  opacity: 0.14;
}
.space__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--blob-a);
  background: var(--c);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.space__title { font-size: clamp(21px, 2.2vw, 25px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.space__text { font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.space__text a { font-weight: 600; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ─── SAFETY BAND ────────────────────────────────────────── */
.safety {
  --c: var(--violet);
  position: relative;
  margin: 0 clamp(8px, 2vw, 24px);
  border-radius: clamp(28px, 5vw, 56px);
  background: color-mix(in srgb, var(--violet) 10%, var(--paper));
  overflow: hidden;
}
.safety::before, .safety::after {
  content: '';
  position: absolute;
  border-radius: var(--blob-a);
  pointer-events: none;
}
.safety::before { right: -90px; top: -90px; width: 300px; height: 280px; background: var(--violet); opacity: 0.12; }
.safety::after { left: -60px; bottom: -80px; width: 220px; height: 200px; background: #F4B5C4; opacity: 0.35; border-radius: var(--blob-b); }
.safety .container { position: relative; z-index: 1; }
.safety__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  list-style: none;
  text-align: left;
}
.safety__item {
  padding: 22px 20px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(110, 90, 168, 0.08);
}
.safety__item strong { display: block; font-size: 17px; color: color-mix(in srgb, var(--violet) 85%, var(--ink)); margin-bottom: 6px; }
.safety__item span { font-size: 14.5px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 75%, transparent); }

/* ─── CTA BAND (closing) ─────────────────────────────────── */
/* the closing box always follows a section, so it needs no extra space above */
.cta-band { --c: var(--red); padding-top: 0; }
.cta-band__box {
  position: relative;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: clamp(32px, 6vw, 72px);
  background: linear-gradient(160deg, var(--gold) 0%, #FFE27A 100%);
  text-align: center;
  overflow: hidden;
}
.cta-band__box > * { position: relative; z-index: 1; }
.cta-band__box::before, .cta-band__box::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: var(--blob-a);
  opacity: 0.9;
}
.cta-band__box::before { left: -60px; bottom: -70px; width: 200px; height: 180px; background: var(--green); }
.cta-band__box::after { right: -50px; top: -60px; width: 170px; height: 160px; background: var(--blue); border-radius: var(--blob-b); }
.cta-band__title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(94, 62, 0, 0.3);
}
.cta-band__lede { max-width: 48ch; margin: 18px auto 0; font-size: clamp(16px, 1.8vw, 19px); }
.cta-band .section-cta { justify-content: center; }
.cta-band__talk { margin-top: 22px; font-size: 15px; }
.cta-band__talk a { font-weight: 700; overflow-wrap: anywhere; }

/* ─── TIMELINE (about) ───────────────────────────────────── */
.timeline__list {
  position: relative;
  list-style: none;
  max-width: 760px;
  margin: clamp(32px, 5vw, 56px) auto 0;
}
.timeline__list::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--gold), var(--amber));
}
.moment {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 34px;
}
.moment:last-child { padding-bottom: 0; }
.moment__dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--blob-a);
  background: var(--m, var(--gold));
  border: 4px solid var(--paper);
  box-shadow: 0 6px 16px rgba(185, 121, 11, 0.25);
}
.moment:nth-child(2) .moment__dot { --m: var(--red); border-radius: var(--blob-b); }
.moment:nth-child(3) .moment__dot { --m: var(--green); border-radius: var(--blob-c); }
.moment:nth-child(4) .moment__dot { --m: var(--blue); }
.moment:nth-child(5) .moment__dot { --m: var(--violet); border-radius: var(--blob-b); }
.moment:nth-child(6) .moment__dot { --m: var(--amber); border-radius: var(--blob-c); }
.moment__when {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.moment h3 { margin-top: 4px; font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; line-height: 1.2; }
.moment p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 80%, transparent); }

/* ─── ROOTS (about) ──────────────────────────────────────── */
.roots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 5vw, 48px);
  list-style: none;
}
.root {
  padding: 24px 24px 26px;
  border-radius: var(--card);
  background: var(--surface);
  border: 1px solid var(--ink-faint);
}
.root__when {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-tint);
  color: color-mix(in srgb, var(--c) 80%, var(--ink));
  font-size: 12px;
  font-weight: 700;
}
.root h3 { margin-top: 10px; font-size: 19px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.root:last-child:nth-child(odd) { grid-column: 1 / -1; }
.root p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.note {
  max-width: 760px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 22px 26px;
  border-radius: var(--card);
  border-left: 4px solid var(--c);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.65;
}

/* ─── FACTS (about) ──────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
  list-style: none;
  text-align: left;
}
.fact {
  padding: 24px;
  border-radius: var(--card);
  background: color-mix(in srgb, var(--f, var(--blue)) 10%, var(--surface));
}
.fact:nth-child(2) { --f: var(--green); }
.fact:nth-child(3) { --f: var(--red); }
.fact strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.fact span { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 78%, transparent); }

/* ─── TEAM GRID ──────────────────────────────────────────── */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 36px);
  margin-top: clamp(16px, 3vw, 32px);
  list-style: none;
}
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person__photo {
  position: relative;
  width: min(220px, 70%);
  aspect-ratio: 1;
}
.person__photo::before {
  content: '';
  position: absolute;
  inset: -8px -12px 4px 8px;
  border-radius: var(--blob-b);
  background: var(--p, var(--gold));
  opacity: 0.9;
  transform: rotate(-6deg);
}
.person__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--blob-a);
  box-shadow: 0 14px 30px rgba(32, 26, 12, 0.16);
}
.person:nth-child(5n+2) .person__photo { --p: var(--red); }
.person:nth-child(5n+3) .person__photo { --p: var(--green); }
.person:nth-child(5n+4) .person__photo { --p: var(--blue); }
.person:nth-child(5n+5) .person__photo { --p: var(--violet); }
.person:nth-child(even) .person__photo img { border-radius: var(--blob-c); }
.person h3 { margin-top: 22px; font-size: 21px; font-weight: 800; line-height: 1.2; }
.person__role {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--violet) 80%, var(--ink));
}
.person__where { margin-top: 2px; font-size: 13.5px; color: var(--ink-soft); }
.person p { margin-top: 10px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 78%, transparent); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { --c: var(--blue); }
.faq__list { max-width: 820px; margin: clamp(28px, 4vw, 44px) auto 0; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--card);
  background: var(--surface);
  border: 1px solid var(--ink-faint);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq details[open] { border-color: var(--c-line); box-shadow: 0 12px 30px rgba(55, 143, 176, 0.1); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--blob-a);
  background: var(--c-tint);
  color: var(--c);
  font-size: 22px;
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq details[open] summary::after { content: '\2212'; background: var(--c); color: #fff; transform: rotate(180deg); }
.faq__answer { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.faq__answer p + p { margin-top: 10px; }
.faq__answer a { text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq__group {
  justify-self: center;
  margin-top: 36px;
  margin-bottom: 4px;
  font-size: clamp(21px, 2.4vw, 25px);
  font-weight: 800;
}
.faq__group:first-child { margin-top: 0; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 40px); list-style: none; text-align: left; }
.contact-card {
  --c: var(--red);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 22px;
  border-radius: var(--card);
  background: var(--c-tint);
  border: 1px solid var(--c-line);
}
.contact-card--blue   { --c: var(--blue); }
.contact-card--green  { --c: var(--green); }
.contact-card--violet { --c: var(--violet); }
.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.contact-card h3::before { content: ''; width: 12px; height: 12px; border-radius: var(--blob-a); background: var(--c); }
.contact-card p { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.contact-card__mail {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease;
}
.contact-card__mail:hover { transform: translateY(-2px); }
.letter address { margin-top: 18px; font-style: normal; font-size: 17px; line-height: 1.7; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .values__grid, .safety__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .postcards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .polaroid { max-width: 300px; }
  .spaces__grid, .roots__grid { grid-template-columns: minmax(0, 1fr); }
  .tour .choice-cards { --n: 2; }
}
@media (max-width: 700px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .photo-banner { aspect-ratio: 4 / 3; border-radius: 36px 26px 40px 22px / 28px 40px 24px 42px; }
  .cta-band__box::before { left: -70px; bottom: -90px; width: 150px; height: 140px; }
  .cta-band__box::after { right: -70px; top: -80px; width: 140px; height: 130px; }
  .values__grid, .safety__grid { grid-template-columns: 1fr; gap: 22px; }
  .safety__grid { gap: 12px; }
  .value { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
  .value__shape { width: 52px; height: 52px; grid-row: span 2; }
  .value__shape svg { width: 26px; height: 26px; }
  .value h3 { margin-top: 2px; font-size: 18px; }
  .team__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .step__num { width: 44px; height: 44px; font-size: 17px; }
  .faq summary { padding: 18px; font-size: 16.5px; }
  .faq__answer { padding: 0 18px 18px; font-size: 15.5px; }
  .tabs [role="tab"] { padding: 9px 14px; font-size: 14px; }
  .choice-cards { gap: 8px; }
  .choice-cards [role="tab"] { padding: 14px 6px; font-size: 13.5px; gap: 8px; }
  .choice-cards .icon-blob { width: 38px; height: 38px; }
  .choice-panel li { padding: 14px 16px 14px 46px; font-size: 15.5px; }
  .choice-panel li::before { left: 14px; top: 15px; }
  .crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; }
  .crew li { width: auto; }
  .crew img { width: 64px; height: 64px; }
  .crew strong { font-size: 13px; }
  .crew span { font-size: 11.5px; }
  .phone { transform: none; width: min(280px, 100%); }
  .phone--shot { width: min(260px, 100%); }
  .postcard p { font-size: 16px; }
}

/* ─── DARK THEME (follows the device) ────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink:       #F5EEDC;
    --ink-soft:  rgba(245, 238, 220, 0.68);
    --ink-faint: rgba(245, 238, 220, 0.16);
    --paper:     #17130B;
    --cream:     #1F1A10;
    --surface:   #262013;
    --gold-soft: #2A2214;
    --green:  #86B377;
    --blue:   #6DB6D3;
    --red:    #E86A76;
    --amber:  #E2A93B;
    --violet: #A897DB;
  }
  *, *::before, *::after {
    --c-tint: color-mix(in srgb, var(--c) 14%, var(--surface));
    --c-line: color-mix(in srgb, var(--c) 40%, var(--surface));
  }
  html, body { background: var(--paper); }

  /* a warm amber dusk instead of the golden morning */
  body::before {
    background:
      radial-gradient(ellipse 45% 30% at 12% 8%, rgba(255, 200, 80, 0.16), transparent 70%),
      radial-gradient(ellipse 40% 28% at 88% 14%, rgba(255, 170, 40, 0.14), transparent 70%),
      linear-gradient(180deg, #4A3712 0%, #2E2410 45%, var(--paper) 100%);
  }
  .page-hero__kicker { color: var(--ink-soft); }
  .page-hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
  .more-link { text-decoration-color: rgba(245, 238, 220, 0.35); }

  .nav__bar, .nav.is-scrolled .nav__bar {
    background: rgba(38, 32, 19, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  }
  .nav__brand { background: #FFFBEF; border-color: transparent; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
  .nav__toggle { background: var(--surface); }
  .menu { background: var(--cream); }

  .btn--ink { background: var(--gold); color: #201A0C; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
  .btn--ink:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
  .btn--glass { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); box-shadow: none; }
  .btn--line { background: var(--surface); color: var(--ink); }
  .tabs [role="tab"][aria-selected="true"] { background: var(--gold); color: #201A0C; }

  .photo-banner, .phone, .polaroid img, .postcard { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
  .phone { background: #000; }
  .crew img, .person__photo img { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
  .value__shape { box-shadow: none; }
  .choice-cards [role="tab"][aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--c); }
  .safety__item { box-shadow: none; }
  .step__time { color: var(--amber); }

  .faq details { background: var(--surface); }
  .faq details[open] { box-shadow: none; }

  .cta-band__box { background: linear-gradient(160deg, #5A4415 0%, #3A2D12 100%); }
  .cta-band__box::before, .cta-band__box::after { opacity: 0.5; }
  .cta-band__title { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }

  .site-footer__body {
    background:
      radial-gradient(ellipse 40% 60% at 8% 0%, rgba(255, 212, 62, 0.1), transparent 70%),
      radial-gradient(ellipse 35% 50% at 96% 100%, rgba(244, 181, 196, 0.08), transparent 70%),
      var(--gold-soft);
  }
  .site-footer__hello, .site-footer__promise { background: var(--surface); }
  .site-footer__promise { color: var(--green); }
  .site-footer__bottom { border-top-color: var(--ink-faint); }
}
