/* =========================================================================
   CAFA site styles. All values come from tokens.css.
   Order: base → layout → header → components → page patterns → footer.
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-variation-settings: var(--display-variation);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: var(--leading-snug);
}

p, ul, ol, dl, blockquote, figure { margin: 0 0 var(--space-4); }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: var(--space-2); }
li > p { margin: 0; }
strong, b { font-weight: var(--weight-bold); }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease-out), text-decoration-thickness var(--duration-fast);
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-brand :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--on-brand); }

::selection { background: var(--primary-soft); color: var(--on-primary-soft); }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--space-7) 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-s);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-l);
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--mid { max-width: calc(60rem + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-dark); }
.section--raised { background: var(--bg-light); }
.section--warm { background: var(--warm); color: var(--on-warm); }
.section--brand, .on-brand {
  background: var(--brand-surface);
  color: var(--on-brand);
}
.section--brand a:not(.btn), .on-brand a:not(.btn) { color: var(--on-brand); }
.section--brand .text-muted, .on-brand .text-muted { color: var(--on-brand-muted); }

.section__head { max-width: 46rem; margin-bottom: var(--space-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head > :last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.section--brand .eyebrow, .on-brand .eyebrow { color: var(--accent); }
.hero .eyebrow { color: oklch(0.88 0.1 var(--hue-accent)); }  /* lighter amber: it sits over photography */

.lead { font-size: var(--text-lg); line-height: 1.6; color: var(--text-muted); }
.section--brand .lead, .on-brand .lead { color: var(--on-brand-muted); }
.text-muted { color: var(--text-muted); }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.measure.center, .center .measure { margin-inline: auto; }

.stack > * + * { margin-top: var(--space-5); }
.stack-sm > * + * { margin-top: var(--space-3); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }

/* Responsive grid capped at --cols columns: never more, wraps when a column would drop below --min. */
.grid {
  --gap: var(--space-6);
  --row-gap: var(--space-7);
  --cols: 3;
  --min: 16rem;
  display: grid;
  gap: var(--row-gap) var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--min), (100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr));
}
.grid--2 { --cols: 2; --min: 20rem; }
.grid--3 { --cols: 3; --min: 16.5rem; }
.grid--4 { --cols: 4; --min: 13rem; }
.grid--5 { --cols: 5; --min: 12rem; }
.grid--logos { --cols: 5; --min: 9.5rem; --gap: var(--space-4); --row-gap: var(--space-4); }
@media (max-width: 40rem) {
  .grid--compact { --min: 9rem; --gap: var(--space-4); --row-gap: var(--space-6); }
  .grid--compact .card__media { margin-bottom: var(--space-3); }
  .grid--compact .card__title { font-size: var(--text-base) !important; }
}

.split {
  display: grid;
  gap: var(--space-7) var(--space-8);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-media { grid-template-columns: 0.85fr 1.15fr; }
  .split--top { align-items: start; }
  .split--reverse > :first-child { order: 2; }
}

.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose h4 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose h2:first-child, .prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3, .prose .eyebrow + h2, .prose .eyebrow + h3 { margin-top: 0; }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -0.2em;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--bg-light);
  --btn-fg: var(--text);
  --btn-bg-hover: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: background-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast);
}
.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
  box-shadow: var(--shadow-m);
  text-decoration: none;
}
.btn:active { box-shadow: var(--shadow-s); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }

.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bg-hover: var(--primary-hover); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bg-hover: var(--accent-hover); border-color: oklch(0.62 0.12 var(--hue-accent) / 0.55); }
.btn--secondary { --btn-bg: var(--bg-light); --btn-fg: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--border-strong); }
.btn--ghost { --btn-bg: transparent; --btn-bg-hover: var(--bg-dark); box-shadow: none; border-color: var(--border-strong); }
.btn--ghost:hover { box-shadow: none; }
.btn--on-brand { --btn-bg: oklch(1 0 0 / 0.1); --btn-fg: var(--on-brand); --btn-bg-hover: oklch(1 0 0 / 0.18); border-color: oklch(1 0 0 / 0.35); box-shadow: none; }
.btn--lg { min-height: 3.25rem; padding: 0.75rem 1.75rem; font-size: var(--text-base); }
.btn--sm { min-height: 2.25rem; padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.link-arrow .icon { transition: transform var(--duration) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Utility bar (current clients) ---------- */
.utility-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  position: relative;
  z-index: 41;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--utility-h);
}
.utility-bar__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.utility-bar__links { display: flex; align-items: center; gap: var(--space-1) var(--space-2); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.utility-bar__links li { margin: 0; }
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-s);
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}
.utility-bar a:hover { background: var(--bg-light); box-shadow: var(--shadow-s); color: var(--text); }
.utility-bar a[aria-current="page"] { background: var(--primary-soft); color: var(--on-primary-soft); }
.utility-bar .icon { color: var(--primary); width: 1.05em; height: 1.05em; }
.utility-bar__end { display: flex; align-items: center; gap: var(--space-2); }
.utility-bar__group { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--duration) var(--ease-out), background-color var(--duration-fast);
}
.theme-toggle:hover { box-shadow: var(--shadow-m); }
.theme-toggle .icon { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--bg-light) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-m); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.brand__mark {
  display: block;
  width: 8.25rem;
  aspect-ratio: 327 / 161;
  background-color: var(--logo-color, var(--primary));
  -webkit-mask: url("../img/brand/cafa-logo-mask.png") center / contain no-repeat;
  mask: url("../img/brand/cafa-logo-mask.png") center / contain no-repeat;
}
:root[data-theme="dark"] .brand__mark { --logo-color: var(--text); }
.on-brand .brand__mark, .site-footer .brand__mark { --logo-color: var(--on-brand); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.125rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; margin: 0; }
.nav__link, .nav__folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast);
}
.nav__link:hover, .nav__folder-btn:hover, .nav__folder-btn[aria-expanded="true"] { background: var(--bg-dark); color: var(--text); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__folder-btn {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav__folder-btn .icon { width: 1rem; height: 1rem; transition: transform var(--duration) var(--ease-out); }
.nav__folder-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  min-width: 17rem;
  padding: var(--space-2);
  margin: 0;
  list-style: none;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration) var(--ease-out), visibility 0s linear var(--duration);
}
.nav__panel::before { content: ""; position: absolute; inset: -0.6rem 0 auto; height: 0.6rem; }
.nav__item.is-open > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav__panel li { margin: 0; }
.nav__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.nav__panel a:hover { background: var(--bg-dark); }
.nav__panel a[aria-current="page"] { background: var(--primary-soft); color: var(--on-primary-soft); }
.nav__panel a .icon { color: var(--text-muted); width: 1rem; height: 1rem; }

.header-cta { flex: none; }
.menu-toggle { display: none; }
.header-call { display: none; }

/* Collapse to the menu sheet when the bar can't fit every item. */
@media (max-width: 80rem) {
  .nav, .header-cta--desktop { display: none; }
  .menu-toggle, .header-call {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }
  .header-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
}
@media (max-width: 52rem) {
  .utility-bar { display: none; }
}
@media (max-width: 30rem) {
  .header-call__text { display: none; }
  .brand__mark { width: 6.75rem; }
}

/* ---------- Mobile menu sheet ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__scrim {
  position: absolute;
  inset: 0;
  background: oklch(0.15 0.02 var(--hue-brand) / 0.45);
  animation: fade-in var(--duration) var(--ease-out);
}
.mobile-nav__sheet {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(26rem, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: var(--shadow-l);
  padding: var(--space-4) var(--space-5) var(--space-7);
  animation: slide-in var(--duration) var(--ease-out);
}
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.mobile-nav__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--space-5) 0 var(--space-3);
}
.mobile-nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.mobile-nav__quick li { margin: 0; }
.mobile-nav__quick a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-m);
  background: var(--bg-light);
  box-shadow: var(--shadow-s);
  color: var(--text);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  line-height: 1.3;
  text-decoration: none;
}
.mobile-nav__quick .icon { color: var(--primary); width: 1.4rem; height: 1.4rem; }
.mobile-nav__list { margin: 0; padding: 0; list-style: none; border-radius: var(--radius-m); background: var(--bg-light); box-shadow: var(--shadow-s); overflow: hidden; }
.mobile-nav__list li { margin: 0; }
.mobile-nav__list > li + li { border-top: 1px solid var(--border); }
.mobile-nav__list a, .mobile-nav__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.7rem var(--space-4);
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list summary .icon { transition: transform var(--duration) var(--ease-out); color: var(--text-muted); }
.mobile-nav__list details[open] > summary .icon { transform: rotate(180deg); }
.mobile-nav__list details ul { margin: 0; padding: 0 0 var(--space-2); list-style: none; background: var(--bg); }
.mobile-nav__list details a { padding-left: var(--space-6); font-weight: var(--weight-regular); min-height: 2.9rem; }
.mobile-nav__list a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.mobile-nav__actions { display: grid; gap: var(--space-3); margin-top: var(--space-5); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- Hero (home) and banners (inner pages) ---------- */
.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--texture-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-brand);
  background:
    radial-gradient(60rem 32rem at 12% 8%, var(--hero-glow-1), transparent 70%),
    radial-gradient(42rem 26rem at 92% 22%, var(--hero-glow-2), transparent 70%),
    radial-gradient(50rem 30rem at 70% 110%, var(--hero-glow-3), transparent 70%),
    var(--hero-base);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero__art {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  z-index: -1;
  background-color: var(--art-color, oklch(1 0 0 / 0.16));
  -webkit-mask: url("../img/brand/contours.svg") center bottom / cover no-repeat;
  mask: url("../img/brand/contours.svg") center bottom / cover no-repeat;
  pointer-events: none;
}
/* Generated artwork paints on ::before: above the gradient background (what shows if an image
   fails to load) and below the contour lines. The scrims hold hero text at AA contrast over
   every part of the image, so lighten them only after re-measuring. */
.hero--home::before,
.hero--event::before,
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
/* The home hero has no bottom edge: the artwork fades into the page over --hero-fade, which sits
   below the hero text, so the text scrims above are unaffected. */
.hero--home {
  --fade-to-page: linear-gradient(180deg,
    transparent calc(100% - var(--hero-fade)),
    oklch(from var(--bg) l c h / 0.45) calc(100% - var(--hero-fade) * 0.6),
    oklch(from var(--bg) l c h / 0.85) calc(100% - var(--hero-fade) * 0.3),
    var(--bg) 100%);
  padding-bottom: calc(var(--hero-fade) + clamp(1rem, 2vw, 2rem));
}
.hero--home {
  --scrim-0: 0.86;
  --scrim-1: 0.72;
  --scrim-2: 0.2;
}
.hero--home::before {
  background:
    var(--fade-to-page),
    linear-gradient(90deg,
      oklch(from var(--hero-scrim) l c h / var(--scrim-0)) 0%,
      oklch(from var(--hero-scrim) l c h / var(--scrim-1)) 40%,
      oklch(from var(--hero-scrim) l c h / var(--scrim-2)) 70%,
      oklch(from var(--hero-scrim) l c h / 0) 100%),
    var(--hero-image) 70% 45% / cover no-repeat;
}
/* The contour lines belong to the text side: they fade out to the right as the photo fades in,
   and out at the bottom with the fade to the page. */
.hero--home .hero__art {
  --art-color: oklch(1 0 0 / 0.1);
  -webkit-mask:
    url("../img/brand/contours.svg") center bottom / cover no-repeat,
    linear-gradient(#000 35%, transparent 80%),
    linear-gradient(90deg, #000 20%, transparent 65%);
  -webkit-mask-composite: source-in, source-in;
  mask:
    url("../img/brand/contours.svg") center bottom / cover no-repeat,
    linear-gradient(#000 35%, transparent 80%),
    linear-gradient(90deg, #000 20%, transparent 65%);
  mask-composite: intersect, intersect;
}
.hero--home.texture::after {
  -webkit-mask: linear-gradient(#000 calc(100% - var(--hero-fade)), transparent);
  mask: linear-gradient(#000 calc(100% - var(--hero-fade)), transparent);
}
/* Below 64rem the headline runs most of the width, so the tint covers the whole photo evenly. */
@media (max-width: 63.99rem) {
  .hero--home::before {
    background:
      var(--fade-to-page),
      linear-gradient(oklch(from var(--hero-scrim) l c h / 0.84), oklch(from var(--hero-scrim) l c h / 0.9)),
      var(--hero-image) 62% 50% / cover no-repeat;
  }
}
.hero__inner { position: relative; max-width: 50rem; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem); margin-bottom: var(--space-5); }
.hero__lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: var(--on-brand-muted); max-width: 38rem; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero--event {
  --hero-glow-1: oklch(0.82 0.13 var(--hue-accent) / 0.42);
  background:
    radial-gradient(28rem 34rem at 50% -10%, oklch(0.95 0.05 var(--hue-accent) / 0.38), transparent 70%),
    radial-gradient(60rem 14rem at 50% 108%, var(--hero-glow-1), transparent 70%),
    radial-gradient(40rem 30rem at 10% 30%, oklch(0.3 0.05 var(--hue-brand) / 0.6), transparent 70%),
    oklch(0.16 0.02 var(--hue-brand));
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
}
.hero--event::before {
  background:
    linear-gradient(oklch(0.16 0.02 var(--hue-brand) / 0.2), oklch(0.16 0.02 var(--hue-brand) / 0.6) 45%, oklch(0.16 0.02 var(--hue-brand) / 0.82)),
    var(--event-image) 50% 0% / cover no-repeat;
}
.hero--event h1 { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); }
.hero--event .eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-s);
  color: oklch(0.86 0.12 var(--hue-accent));
  background: oklch(0.16 0.02 var(--hue-brand) / 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.logo-pair { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.logo-pair .logo-tile { width: 10rem; }
.espc-offer ul, .espc-zoom { margin-bottom: 0; }
.espc-offer li { padding-left: var(--space-1); }
.espc-offer li p + p { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-sm); }
.espc-offer strong { font-weight: var(--weight-semibold); }
.espc-zoom p { color: var(--on-brand-muted); }
.espc-zoom p:nth-last-child(1) { color: var(--on-brand); font-weight: var(--weight-bold); font-size: var(--text-lg); }

.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(46rem 22rem at 8% 0%, var(--banner-glow-1), transparent 70%),
    radial-gradient(40rem 22rem at 100% 100%, var(--banner-glow-2), transparent 70%),
    var(--banner-base);
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.banner::before { background: var(--banner-image) 50% 50% / cover no-repeat; }
.cta-band .hero__art { height: 100%; --art-color: oklch(1 0 0 / 0.08); }
.banner__inner { position: relative; max-width: 52rem; }
.banner h1 { margin-bottom: var(--space-3); }
.banner__lead { font-size: var(--text-lg); color: var(--text-muted); margin: 0; max-width: 42rem; }
.banner--center .banner__inner { margin-inline: auto; text-align: center; }
.banner--center .banner__lead { margin-inline: auto; }
.banner__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.banner--center .banner__actions { justify-content: center; }
.banner__layout { display: grid; align-items: center; gap: var(--space-6); }
.banner__media { display: none; }
.banner__media img { width: 100%; height: auto; filter: drop-shadow(0 0.75rem 1.25rem oklch(var(--shadow-color) / 0.16)); }
@media (min-width: 60rem) {
  .banner__layout { grid-template-columns: minmax(0, 1fr) clamp(15rem, 22vw, 20rem); }
  .banner__media { display: block; }
}

/* ---------- Cards ----------
   A .card is an open block: no surface of its own. Neighbours are separated by the grid gap, a
   hairline above blocks that start with text, and type weight and lightness. Blocks that start
   with an image need no rule. .card--surface is the raised panel, kept for the few places that
   need one (the counseling form, the Get Started choice, panels on dark bands). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.card:has(> .card__media, > .frame, > .logo-tile, > .step__img) { padding-top: 0; border-top: 0; }
.card.on-brand { color: var(--on-brand); }
.card > :last-child { margin-bottom: 0; }
.card--surface, .card--surface:has(> .card__media, > .frame) {
  --card-pad: var(--space-6);
  padding: var(--card-pad);
  border-top: 0;
  background: var(--bg-light);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.card--surface.card--pad-sm { --card-pad: var(--space-5); }
.card--interactive .card__media img { transition: transform var(--duration) var(--ease-out); }
.card--interactive:hover .card__media img { transform: scale(1.02); }
.card--interactive:hover .card__title, .card--interactive:hover .card__title a { color: var(--link-hover); text-decoration: underline; }
.card__media {
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 4 / 3;
}
.card--surface > .card__media { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--space-5); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--contain { background: oklch(0.995 0.003 var(--hue-brand)); box-shadow: inset 0 0 0 1px var(--border); }
.card__media--contain img { object-fit: contain; padding: var(--space-4); }
.card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a:hover { text-decoration: underline; }
.card__meta { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }
.card__body { flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); position: relative; z-index: 1; }
.card__price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* A plain mark in the brand colour, not a tinted tile: the icon supports the heading next to it. */
.icon-well {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  color: var(--primary);
  margin-bottom: var(--space-3);
  flex: none;
}
.icon-well .icon { width: 1.75rem; height: 1.75rem; stroke-width: 1.75; }
.icon-well--accent { color: oklch(0.6 0.14 60); }
:root[data-theme="dark"] .icon-well--accent { color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-s);
  background: var(--bg-dark);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  box-shadow: var(--shadow-inset);
}
.chip--primary { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.chip--accent { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* ---------- Home: quick actions panel ---------- */
/* Starts inside the last stretch of the hero fade, where the artwork has already given way to the page. */
.quick-actions {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--hero-fade) * -0.25);
}
.quick-actions__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.quick-actions__head h2 { font-size: var(--text-xl); margin: 0; }
.quick-actions__head p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.quick-grid {
  display: grid;
  gap: 0 var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
@media (min-width: 70rem) {
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .quick-grid .action-card { flex-direction: column; gap: var(--space-4); }
}
.action-card {
  position: relative;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  height: 100%;
  padding: var(--space-5) var(--space-6) var(--space-5) 0;
  border-top: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.action-card:hover { border-top-color: var(--primary); color: var(--text); }
.action-card:hover .action-card__title { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.action-card .icon-well { margin: 0; height: 3rem; align-content: center; }
.action-card__title { display: block; font-weight: var(--weight-bold); line-height: 1.3; margin-bottom: var(--space-1); }
.action-card__text { display: block; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.action-card__logo {
  flex: none;
  width: 4.5rem;
  height: 3rem;
  border-radius: var(--radius-s);
  background: oklch(0.995 0.003 var(--hue-brand));
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.action-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.action-card .external { position: absolute; top: var(--space-5); right: 0; width: 1rem; height: 1rem; color: var(--text-muted); }

.media-feature {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
}
@media (min-width: 52rem) {
  .media-feature { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}
.media-feature__item { display: flex; flex-direction: column; }

/* ---------- Media ---------- */
.frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1; }
.frame--arch { border-radius: var(--radius-m); }
.frame--contain { background: oklch(0.995 0.003 var(--hue-brand)); box-shadow: inset 0 0 0 1px var(--border); }
.frame--contain img { object-fit: contain; }
.frame--art { background: linear-gradient(160deg, oklch(0.52 0.08 var(--hue-brand)), oklch(0.32 0.05 var(--hue-brand))); }
.figure-caption { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-3); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: oklch(0.12 0.01 var(--hue-brand));
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video video { object-fit: contain; background: #000; }
.video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out); }
.video__play:hover img { opacity: 1; transform: scale(1.015); }
.video__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: var(--radius-s);
  background: oklch(0.16 0.02 var(--hue-brand) / 0.82);
  color: oklch(0.98 0 0);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-l);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.video__play:hover .video__badge, .video__play:focus-visible .video__badge { background: var(--accent); color: var(--on-accent); }
.video__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.video__caption a { font-weight: var(--weight-semibold); }

.map {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
}
.map iframe { width: 100%; height: 100%; }
:root[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }

/* ---------- Location cards ---------- */
.location-card .frame { aspect-ratio: 16 / 10; }
.location-card__body { padding-top: var(--space-4); }
.location-card__body h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: var(--weight-bold); letter-spacing: 0; margin-bottom: var(--space-2); }
.location-card address { font-style: normal; margin-bottom: var(--space-4); }

/* ---------- Accordion (FAQs, rates) ---------- */
.accordion { display: grid; border-bottom: 1px solid var(--border-strong); }
.accordion details { border-top: 1px solid var(--border-strong); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  min-height: 3.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  line-height: 1.35;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--primary); }
.accordion summary .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease-out), color var(--duration-fast);
}
.accordion details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.accordion__body { padding: 0 0 var(--space-5); color: var(--text); }
.accordion__body > :last-child { margin-bottom: 0; }
.accordion__summary-meta { margin-left: auto; font-weight: var(--weight-semibold); color: var(--text-muted); font-size: var(--text-sm); white-space: nowrap; }

/* ---------- Services ---------- */
.services-list { display: grid; gap: var(--space-8) var(--space-7); align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.service-card { scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.service-card__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.service-card__head .card__title { font-size: var(--text-xl); margin: 0; }
.service-card__media {
  flex: none;
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__media--contain { background: oklch(0.995 0.003 var(--hue-brand)); box-shadow: inset 0 0 0 1px var(--border); }
.service-card__media--contain img { object-fit: contain; padding: 0.35rem; }
.service-card .card__actions { margin-top: var(--space-4); flex-direction: column; align-items: flex-start; gap: var(--space-2); }

.price-list {
  display: grid;
  margin: var(--space-4) 0 var(--space-2);
  border-radius: var(--radius-m);
  background: var(--bg-dark);
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-2) var(--space-4); }
.price-list > div + div { border-top: 1px solid var(--border); }
.price-list dt { color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.price-list dd { margin: 0; font-weight: var(--weight-bold); white-space: nowrap; }

.tips-logo { max-width: 70%; max-height: 70%; width: auto; height: auto; object-fit: contain; }

/* ---------- Rates (About) ---------- */
.rate-list { list-style: none; margin: 0 auto; padding: 0; display: grid; max-width: 62rem; border-bottom: 1px solid var(--border-strong); }
.rate {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  margin: 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-strong);
}
.rate h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: 0; margin: 0 0 var(--space-1); }
.rate p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); max-width: 40rem; }
.rate p + p { margin-top: var(--space-2); }
.rate__meta { display: flex; gap: var(--space-2); justify-content: flex-end; }
.rate__meta .chip { font-size: var(--text-sm); padding: 0.3rem 0.8rem; }
@media (max-width: 44rem) {
  .rate { grid-template-columns: 1fr; }
  .rate__meta { justify-content: flex-start; }
}
.frame--focus-top img { object-position: 50% 30%; }

/* ---------- Quote ---------- */
.quote { margin: 0 auto; max-width: 54rem; text-align: center; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-variation-settings: var(--display-variation);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.quote__mark { display: block; width: 2.75rem; height: 2.75rem; margin: 0 auto var(--space-5); color: var(--accent); }
.quote figcaption { font-weight: var(--weight-bold); font-size: var(--text-sm); color: inherit; opacity: 0.85; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 85% 0%, var(--hero-glow-2), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, var(--hero-glow-1), transparent 70%),
    var(--brand-surface);
  color: var(--on-brand);
  text-align: center;
}
.cta-band h2 { max-width: 40rem; margin-inline: auto; }
.cta-band p { color: var(--on-brand-muted); max-width: 40rem; margin-inline: auto; }
.cta-band a:not(.btn) { color: var(--on-brand); }
.cta-band .cluster { justify-content: center; margin-top: var(--space-5); }

/* ---------- Notices / callouts ---------- */
.notice {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius-m);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-s);
}
.notice > .icon { color: var(--primary); width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; }
.notice__body > :last-child { margin-bottom: 0; }
.notice__title { font-weight: var(--weight-bold); margin-bottom: var(--space-2); font-size: var(--text-base); font-family: var(--font-body); letter-spacing: 0; }
.notice--warn { border-left-color: var(--accent); }
.notice--warn > .icon { color: oklch(0.6 0.14 60); }
:root[data-theme="dark"] .notice--warn > .icon { color: var(--accent); }
.notice--danger { border-left-color: var(--danger); background: var(--danger-soft); }
.notice--danger > .icon { color: var(--danger); }

/* ---------- Contact details ---------- */
.contact-list { display: grid; margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  align-items: start;
  margin: 0;
  padding: var(--space-4) 0;
}
.contact-list li + li { border-top: 1px solid var(--border); }
.contact-list .icon-well { grid-row: span 2; margin: 0.125rem 0 0; }
.contact-list .icon-well .icon { width: 1.25rem; height: 1.25rem; }
.contact-list__label { font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--weight-semibold); line-height: 1.35; }
.contact-list__value { font-weight: var(--weight-bold); font-size: var(--text-lg); line-height: 1.35; }
.contact-list__value a { text-decoration-thickness: 1px; }
.contact-list__value small { font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--text-muted); }

.tel { white-space: nowrap; }

/* ---------- People (team, board) ---------- */
.people-grid {
  display: grid;
  gap: var(--space-7) var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.person { display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 4 / 5; background: var(--bg-dark); overflow: hidden; border-radius: var(--radius-m); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person__photo--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, var(--banner-glow-1), transparent 60%),
    var(--bg-dark);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 2.5rem;
}
.person__body { padding-top: var(--space-4); display: flex; flex-direction: column; flex: 1; }
.person__name { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.person__role { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }
.person__note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.person__note .icon { color: oklch(0.6 0.14 60); margin-top: 0.1em; }
.person__actions { margin-top: auto; padding-top: var(--space-4); }
.people-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.people-grid--text { row-gap: 0; }
.people-grid--text .person { padding-block: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }
.people-grid--text .person__body { padding-top: 0; }
.people-grid--round .person { align-items: center; text-align: center; }
.people-grid--round .person__photo { width: 9.5rem; aspect-ratio: 1; border-radius: 50%; }
.people-grid--round .person__body { align-items: center; }

.group-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.group-title h2 { margin: 0; }
.group-title .chip { transform: translateY(-0.2em); }

/* ---------- Logos & partners ---------- */
.logo-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-m);
  background: oklch(0.995 0.003 var(--hue-brand));
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}
.logo-tile img {
  position: absolute;
  inset: var(--space-4);
  width: calc(100% - 2 * var(--space-4));
  height: calc(100% - 2 * var(--space-4));
  object-fit: contain;
}
a.logo-tile { transition: box-shadow var(--duration-fast) var(--ease-out); }
a.logo-tile:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }

.partner { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-5); align-items: start; }
.partner .logo-tile { aspect-ratio: 1; padding: var(--space-3); }
.partner h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: var(--weight-bold); letter-spacing: 0; margin-bottom: var(--space-2); }
.partner p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.partner p a { color: var(--link); }
@media (max-width: 30rem) { .partner { grid-template-columns: 5rem 1fr; gap: var(--space-4); } }

/* ---------- Resource lists ---------- */
.resource-list {
  display: grid;
  gap: 0 var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.resource-list li { margin: 0; border-top: 1px solid var(--border); }
.resource {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-4) 0;
  color: var(--text);
  text-decoration: none;
}
.resource:hover { color: var(--text); }
.resource:hover .resource__title { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.resource .icon-well { margin: 0; }
.resource .icon-well .icon { width: 1.25rem; height: 1.25rem; }
.resource__text { flex: 1; min-width: 0; }
.resource__title { display: block; font-weight: var(--weight-bold); line-height: 1.35; }
.resource__type { display: block; font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-semibold); margin-top: 0.15rem; }
.resource > .icon { color: var(--text-muted); width: 1.1rem; height: 1.1rem; }

/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
  height: 100%;
}
.book__cover { border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow-s); aspect-ratio: 2 / 3; background: var(--bg-dark); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: var(--weight-bold); letter-spacing: 0; line-height: 1.35; margin-bottom: var(--space-1); }
.book p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.steps > li { counter-increment: step; margin: 0; }
.step { height: 100%; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-s);
}
.step__num::before { content: counter(step); }
.step__img { margin: var(--space-4) 0 0; border-radius: var(--radius-m); overflow: hidden; background: var(--bg-dark); box-shadow: 0 0 0 1px var(--border); }
.step__img img { width: 100%; max-height: 26rem; object-fit: contain; background: oklch(0.12 0.01 var(--hue-brand)); }
.step p { font-weight: var(--weight-semibold); line-height: 1.45; }

.dial-list { counter-reset: dial; margin: 0; padding: 0; list-style: none; display: grid; }
.dial-list li {
  counter-increment: dial;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--space-4);
  align-items: center;
  margin: 0;
  padding: var(--space-3) 0;
}
.dial-list li + li { border-top: 1px solid var(--border); }
.dial-list li::before {
  content: counter(dial);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: var(--weight-bold);
}
kbd {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  box-shadow: inset 0 -2px 0 var(--border);
  font-size: 0.95em;
}

/* ---------- Group link cards (class schedule) ---------- */
.group-card { gap: var(--space-2); }
.group-card .card__title { font-size: var(--text-lg); font-family: var(--font-body); font-weight: var(--weight-bold); letter-spacing: 0; }
.group-card .card__actions { margin-top: auto; padding-top: var(--space-4); }
.lock-note { display: inline-flex; gap: var(--space-2); align-items: center; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted); }
.lock-note .icon { width: 1rem; height: 1rem; }

/* ---------- Gallery + lightbox ---------- */
.gallery {
  columns: 3 18rem;
  column-gap: var(--space-5);
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--space-6);
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform var(--duration) var(--ease-out); }
.gallery button:hover img { transform: scale(1.02); }
.gallery figcaption { padding-top: var(--space-3); font-size: var(--text-sm); line-height: 1.55; color: var(--text-muted); white-space: pre-line; }

.lightbox {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--bg-light);
  color: var(--text);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.lightbox::backdrop { background: oklch(0.1 0.02 var(--hue-brand) / 0.75); }
.lightbox img { width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; background: oklch(0.1 0.01 var(--hue-brand)); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.lightbox__bar p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); white-space: pre-line; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form-section { display: grid; gap: var(--space-5); padding: 0; margin: 0; border: 0; }
.form-section + .form-section { padding-top: var(--space-6); border-top: 1px solid var(--border); }
.form-section__title { font-family: var(--font-display); font-variation-settings: var(--display-variation); font-size: var(--text-xl); font-weight: var(--weight-display); padding: 0; margin: 0 0 var(--space-1); }
.form-row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: var(--space-2); }
.field > label, .field > legend, .field__label {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  line-height: 1.35;
  padding: 0;
}
.field__req { color: var(--danger); font-weight: var(--weight-bold); margin-left: 0.15em; }
.field__opt { color: var(--text-muted); font-weight: var(--weight-regular); }
.field__hint { font-size: var(--text-sm); color: var(--text-muted); margin: -0.15rem 0 0; line-height: 1.45; }
.field__error { font-size: var(--text-sm); color: var(--danger); font-weight: var(--weight-semibold); margin: 0; display: none; }
.field.has-error .field__error { display: block; }

.input, .textarea, .select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: var(--bg-dark);
  color: var(--text);
  font: inherit;
  font-size: var(--text-base);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--duration-fast), background-color var(--duration-fast), box-shadow var(--duration-fast);
}
.card .input, .card .textarea { background: var(--bg); }
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.input:hover, .textarea:hover { border-color: var(--text-muted); }
.input:focus, .textarea:focus {
  outline: none;
  background: var(--bg-light);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px oklch(from var(--focus) l c h / 0.3);
}
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.input[type="date"] { max-width: 14rem; }

.choices { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border: 0; padding: 0; margin: 0; }
.choice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
  line-height: 1.4;
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast), background-color var(--duration-fast), box-shadow var(--duration-fast);
}
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: var(--shadow-s); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--primary); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { margin-bottom: var(--space-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none;
  padding: var(--space-5);
  border-radius: var(--radius-m);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: var(--weight-semibold);
}
.form-status.is-visible { display: block; }
.form-status--error { background: var(--danger-soft); color: var(--text); }

/* ---------- Path chooser (Get Started) ---------- */
.paths { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.path-card { padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.path-card h2 { font-size: var(--text-2xl); }
.path-card .chip { align-self: flex-start; margin-bottom: var(--space-4); }
.path-card ul { margin-bottom: var(--space-5); }
.path-card .card__actions { margin-top: auto; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hours th, .hours td { text-align: left; padding: 0.3rem 0; font-weight: var(--weight-regular); }
.hours th { padding-right: var(--space-4); font-weight: var(--weight-semibold); }
.hours td { color: var(--on-brand-muted); white-space: nowrap; }

/* ---------- Footer ---------- */
.crisis-bar {
  background: var(--warm);
  color: var(--on-warm);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
}
.crisis-bar__inner { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; justify-content: center; padding-block: var(--space-3); text-align: center; }
.crisis-bar strong { display: inline-flex; gap: var(--space-2); align-items: center; }
.crisis-bar a { color: inherit; font-weight: var(--weight-bold); }

.site-footer {
  background: var(--brand-surface-2);
  color: var(--on-brand);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}
.site-footer a { color: var(--on-brand); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-brand-muted);
  margin-bottom: var(--space-4);
}
.footer-grid { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-grid address { font-style: normal; line-height: 1.75; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 var(--space-2); }
.footer-brand p { color: var(--on-brand-muted); margin-top: var(--space-4); max-width: 22rem; }
.footer-note { color: var(--on-brand-muted); margin-top: var(--space-3); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(1 0 0 / 0.14);
  color: var(--on-brand-muted);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.16);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}
.social-link:hover { background: oklch(1 0 0 / 0.14); }

/* ---------- Page-specific helpers ---------- */
.section-divider { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-divider h2 { margin: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.concepts { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); counter-reset: concept; margin: 0; padding: 0; list-style: none; }
.concepts > li { margin: 0; }
.concepts .card { height: 100%; }
.concepts h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: var(--weight-bold); letter-spacing: 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-3); align-items: start; }
.check-list li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b5f39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
:root[data-theme="dark"] .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3eac9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.raffle .card { text-align: center; align-items: center; }
.raffle .card p { margin-bottom: var(--space-2); }

.issue-list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.issue-list li { margin: 0; }

.story { display: grid; gap: var(--space-6) var(--space-8); align-items: center; }
@media (min-width: 52rem) { .story { grid-template-columns: 0.8fr 1.2fr; } .story--flip > :first-child { order: 2; } .story--flip { grid-template-columns: 1.2fr 0.8fr; } }
.story + .story { margin-top: var(--space-8); }

.not-found { text-align: center; padding-block: var(--space-9); }

/* ---------- Type lab (preview only, built by main.js) ---------- */
.type-lab {
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  max-width: calc(100vw - 2 * var(--space-4));
}
.type-lab__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: var(--bg-light);
  color: var(--text);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-m);
  cursor: pointer;
}
.type-lab__toggle:hover { box-shadow: var(--shadow-l); }
.type-lab__aa { font-family: var(--font-display); font-variation-settings: var(--display-variation); font-size: var(--text-lg); line-height: 1; color: var(--primary); }
.type-lab__current { font-weight: var(--weight-regular); color: var(--text-muted); }
@media (max-width: 30rem) { .type-lab__current { display: none; } }
.type-lab__panel {
  width: min(21rem, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.type-lab__panel[hidden] { display: none; }
.type-lab fieldset { border: 0; margin: 0 0 var(--space-4); padding: 0; min-width: 0; }
.type-lab legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.type-lab legend span { font-weight: var(--weight-regular); letter-spacing: 0; text-transform: none; }
.type-lab__option {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.type-lab__option:hover { background: var(--bg); }
.type-lab__option:has(input:checked) { background: var(--primary-soft); color: var(--on-primary-soft); }
.type-lab__option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.type-lab__option input { grid-row: span 2; width: 1.125rem; height: 1.125rem; margin: 0.25rem 0 0; accent-color: var(--primary); }
.type-lab__name { font-size: var(--text-lg); line-height: 1.3; }
.type-lab__note { font-size: var(--text-xs); line-height: 1.4; color: var(--text-muted); }
.type-lab__option:has(input:checked) .type-lab__note { color: inherit; }
.type-lab__status { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--text-muted); min-height: 1.4em; }

/* ---------- Print ---------- */
@media print {
  .utility-bar, .site-header, .mobile-nav, .crisis-bar, .theme-toggle, .hero__art, .type-lab { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .person, .resource, .accordion details { box-shadow: none; border: 1px solid #ccc; }
  .accordion details:not([open]) .accordion__body { display: block; }
}
