/* ==========================================================================
   The Dune — stylesheet
   Palette: warm sand by day, deep dusk blue by night.
   ========================================================================== */

:root {
  /* Brand palette (brand guide p.11) */
  --cream: #F5EED4;
  --caramel: #C4753B;
  --brown: #7F4425;

  --bg: var(--cream);
  --sand-50: #FAF5E4;
  --sand-100: #EFE5C5;
  --sand-200: #E5D5AA;
  --sand-300: #D6BD8A;
  --dune: var(--caramel);          /* decorative accents, large numbers */
  --dune-deep: #A55F2C;
  --terracotta: var(--brown);      /* actions, links, small labels */
  --terracotta-deep: #5F3019;
  --ink: #2E1D12;
  --ink-2: #5E4633;
  --ink-3: #8C6F55;
  --night: #4A2816;                /* deep brown for dark sections */
  --night-2: #5C341D;
  --line: rgba(79, 44, 22, .14);
  --line-strong: rgba(79, 44, 22, .26);
  --white: #FFFCF2;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(43,33,24,.05), 0 8px 24px -12px rgba(43,33,24,.18);
  --shadow-lg: 0 2px 4px rgba(43,33,24,.05), 0 24px 48px -20px rgba(43,33,24,.28);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h3, h4 { font-weight: 600; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--dune); color: var(--ink); }

.sr-only { 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: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--xs { width: .8em; height: .8em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 860px; }

/* Placeholder marker — anything in [brackets] from config renders like this */
.ph { display: inline-block; padding: 0 .35em; border: 1.5px dashed currentColor; border-radius: 6px; opacity: .8; font-style: normal; line-height: 1.3; }
.ph-block { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(196,117,59,.07) 10px 20px); }
.ph-note { font-size: .85rem; color: var(--ink-3); font-style: italic; }

/* ---------- Type helpers ---------- */
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }
em.accent, .accent { font-style: italic; color: var(--terracotta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 20px -10px rgba(127,68,37,.55); }
.btn--primary:hover { background: var(--terracotta-deep); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost-light { border-color: rgba(255,253,249,.4); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--terracotta); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--night); color: #E9DFCC; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__cred { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .45em; }
.topbar__cred strong { color: var(--white); font-weight: 700; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: #EF5A25; box-shadow: 0 0 0 3px rgba(239,90,37,.25); }
.topbar__sep { opacity: .5; }
.topbar__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; align-items: center; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__links a:hover { color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,238,212,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(43,33,24,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-header__brand { flex: none; text-decoration: none; color: var(--ink); }

.logo { display: block; }
.logo--header { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { height: 54px; width: auto; }
.logo__type { display: flex; flex-direction: column; width: min-content; }
.logo__word { height: 32px; width: auto; max-width: none; }
.logo__tag { display: block; margin-top: 5px; font: 600 7.4px/1 var(--font-body); text-transform: uppercase; letter-spacing: .2em; color: var(--brown); white-space: nowrap; text-align: justify; text-align-last: justify; margin-right: -.2em; }
.logo--footer { width: 150px; height: auto; }
@media (max-width: 640px) {
  .logo--header { gap: 10px; }
  .logo__mark { height: 46px; }
  .logo__word { height: 28px; }
  .logo__tag { font-size: 6.4px; letter-spacing: .18em; margin-top: 4px; margin-right: -.18em; }
}

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav__list > li > a, .site-nav__menu-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 8px;
  font: 600 .88rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.site-nav__list > li > a:hover, .site-nav__menu-btn:hover { background: var(--sand-100); color: var(--ink); }
.site-nav__list > li > a[aria-current="page"] { color: var(--terracotta); box-shadow: inset 0 -2px 0 var(--terracotta); border-radius: 0; }
.site-nav__menu-btn .icon { transition: transform .2s; }
.site-nav__menu-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-menu { position: relative; }
.mega {
  position: absolute; right: -40px; top: calc(100% + 12px); width: 420px; padding: 20px; z-index: 10;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__intro { font-size: .88rem; color: var(--ink-2); margin: 0 4px 12px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega__list a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; background: var(--sand-50); border: 1px solid transparent; }
.mega__list a:hover { border-color: var(--sand-300); background: var(--sand-100); color: var(--ink); }
.mega__name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.mega__field { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.mega__more { display: inline-flex; align-items: center; gap: 6px; margin: 14px 4px 0; font-weight: 700; font-size: .9rem; color: var(--terracotta); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter would trap the fixed menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .site-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 16px var(--gutter) 40px;
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a, .site-nav__menu-btn { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; border-radius: 0; }
  .site-nav__list > li > a[aria-current="page"] { box-shadow: none; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 16px; display: none; background: transparent; }
  .has-menu.is-open .mega { display: block; }
  .mega__list { grid-template-columns: 1fr; }
  .site-nav__cta { width: 100%; padding: 1em; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topbar { font-size: .76rem; }
  .topbar__inner { min-height: 36px; }
  .mega__list { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--sand { background: var(--sand-100); }
.section--night { background: var(--night); color: #E9DFCC; }
.section--night h2, .section--night h3 { color: var(--white); }
.section--night .eyebrow { color: #E8A66D; }
.section--night .lead, .section--night .muted { color: #C9BDA8; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 700px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Dunes ---------- */
.dunes { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 10vw, 150px); pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(110px, 14vw, 190px); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(196,117,59,.20), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, rgba(196,117,59,.14), transparent 60%),
  linear-gradient(180deg, #EFE3BF 0%, var(--bg) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.35rem, 5.4vw, 4.3rem); margin-bottom: .35em; }
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin-bottom: 1.8em; }
.hero__cred { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: .9rem; color: var(--ink-2); }
.hero__cred .icon { color: var(--terracotta); }
.hero__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); position: relative; }
.hero__card-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.hero__card .hrd-badges img { width: 50%; }
.hero__card-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; color: var(--terracotta); margin: 18px 0 4px; }
.hero__card-sub { margin: 0; color: var(--ink-2); font-size: .95rem; }
.hero__card-reg { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__card { max-width: 480px; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 150px); background:
  radial-gradient(900px 380px at 90% 0%, rgba(196,117,59,.16), transparent 60%),
  linear-gradient(180deg, #EFE3BF 0%, var(--bg) 100%); overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 18ch; }
.page-hero__title em { font-style: italic; color: var(--terracotta); }
.page-hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--terracotta); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stats__item { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__value { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; color: var(--ink); }
.stats__label { font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.stats--overlap { margin-top: calc(clamp(110px, 14vw, 190px) * -1 + 24px); position: relative; z-index: 2; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 380px) { .stats { grid-template-columns: 1fr; } .stats__item + .stats__item { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- HRD badges ---------- */
.hrd-badges { display: flex; gap: 12px; align-items: center; }
.hrd-badges img { width: 150px; height: auto; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-100); color: var(--terracotta); margin-bottom: 18px; }
.card__icon .icon { width: 24px; height: 24px; }
.card--link { text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sand-300); color: var(--ink); }
.card--link .link-arrow { margin-top: auto; padding-top: 16px; }
.card--sand { background: var(--sand-50); box-shadow: none; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--terracotta); margin-top: .3em; width: 1em; height: 1em; }
.section--night .checklist .icon { color: #E8A66D; }

/* Two-way offer */
.offer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.offer__join { display: grid; place-items: center; padding: 0 clamp(8px, 2vw, 20px); }
.offer__join span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--white); font-family: var(--font-display); font-size: 1.5rem; box-shadow: var(--shadow); }
.offer__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand-100); color: var(--ink-2); margin-bottom: 14px; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .offer__join { padding: 12px 0; } }

/* Businesses */
.biz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.biz__card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--night-2); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: #E9DFCC; transition: transform .2s, border-color .2s, background .2s; }
.biz__card:hover { transform: translateY(-3px); border-color: rgba(232,166,109,.5); background: #6A3C22; color: #E9DFCC; }
.biz__field { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E8A66D; margin-bottom: 10px; }
.biz__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 10px; }
.biz__card p { font-size: .95rem; color: #C9BDA8; }
.biz__teaches { font-size: .86rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: auto; color: #E9DFCC; }
.biz__teaches strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #D2B894; margin-bottom: 2px; }
.biz__visit { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--white); }
@media (max-width: 1080px) { .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .biz { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--dune); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.section--night .steps li { background: var(--night-2); border-color: rgba(255,255,255,.08); }
.section--night .steps p { color: #C9BDA8; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Levy explainer */
.levy-callout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.levy-figure { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.levy-figure__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); font-size: .98rem; }
.levy-figure__row span:last-child { font-weight: 700; text-align: right; }
.levy-figure__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.levy-figure__total strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; color: var(--terracotta); }
.levy-figure__note { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 900px) { .levy-callout { grid-template-columns: 1fr; } }

/* ---------- Levy checker ---------- */
.checker { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.checker__form { padding: clamp(22px, 3.4vw, 40px); }
.checker__result { padding: clamp(22px, 3.4vw, 40px); background: var(--night); color: #E9DFCC; display: flex; flex-direction: column; }
.checker__result h3 { color: var(--white); }
.checker__result .checker__big { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: #EDB47F; line-height: 1.05; margin: 6px 0 10px; }
.checker__status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); margin-bottom: 16px; }
.checker__status[data-tone="good"] { background: rgba(122,178,120,.2); color: #BFE2B9; }
.checker__status[data-tone="warn"] { background: rgba(237,180,127,.18); color: #F6C6A5; }
.checker__status[data-tone="info"] { background: rgba(160,180,230,.16); color: #C9D5F4; }
.checker__result p { color: #D5CAB6; }
.checker__result ul { padding-left: 1.1em; color: #D5CAB6; }
.checker__result .btn { align-self: flex-start; margin-top: auto; }
.checker__disclaimer { font-size: .78rem; color: #9F9585 !important; margin-top: 18px; }
@media (max-width: 900px) { .checker { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field__hint { display: block; font-size: .84rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.input, .select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--sand-50);
  font: 500 1rem/1.3 var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.input:focus, .select:focus { border-color: var(--terracotta); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(127,68,37,.18); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--sand-100); font-weight: 700; color: var(--ink-2); }
.input-prefix .input { border-radius: 0 10px 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: .92rem; font-weight: 600; background: var(--sand-50); transition: all .15s; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ---------- Catalogue ---------- */
.cat-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cat-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.cat-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.cat-search .input { padding-left: 42px; background: var(--white); }
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-filters button { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font: 600 .9rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
.cat-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }
.prog { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.prog[hidden] { display: none; }
.prog__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.prog__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.prog__claim { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #E9EDF7; color: #20326B; }
.prog__claim .icon { width: .9em; height: .9em; }
.prog h3 { font-size: 1.22rem; margin-bottom: .45em; }
.prog p { font-size: .95rem; color: var(--ink-2); }
.prog__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-2); margin: 4px 0 14px; padding: 0; list-style: none; }
.prog__meta li { display: inline-flex; align-items: center; gap: 5px; }
.prog__meta .icon { width: 1em; height: 1em; color: var(--dune-deep); }
.prog details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.prog summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.prog summary::-webkit-details-marker { display: none; }
.prog summary::after { content: "+"; font-size: 1.2rem; color: var(--terracotta); }
.prog details[open] summary::after { content: "–"; }
.prog details ul { margin: 10px 0 12px; padding-left: 1.1em; font-size: .92rem; color: var(--ink-2); }
.prog__from { font-size: .82rem; color: var(--ink-3); margin: 0 0 12px; }
.prog__enquire { font-size: .92rem; }
.cat-empty { text-align: center; padding: 40px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: transform .2s, background .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__icon { background: var(--ink); }
.faq__item[open] .faq__icon::before { background: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); background: var(--white); }
.faq__body { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq__body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--night); color: #E9DFCC; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(196,117,59,.30), transparent); pointer-events: none; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-band__title { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.cta-band__text { color: #C9BDA8; max-width: 58ch; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Logos, photos, testimonials ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logos__item { aspect-ratio: 3/2; display: grid; place-items: center; border-radius: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 8px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.photo-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: var(--radius); color: var(--ink-3); font-size: .85rem; font-weight: 600; text-align: center; padding: 12px;
  background: linear-gradient(160deg, var(--sand-100), var(--sand-200)); border: 1.5px dashed var(--line-strong); }
.photo-ph__icon { width: 30px; height: 30px; opacity: .7; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery > :nth-child(1) .photo-ph, .gallery > img:nth-child(1) { height: 100%; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote { margin: 0; display: flex; flex-direction: column; height: 100%; }
.quote__icon { width: 34px; height: 34px; color: var(--dune); margin-bottom: 14px; }
.quote blockquote { margin: 0 0 20px; font-family: var(--font-display); font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.quote figcaption strong { display: block; color: var(--ink); }
.avatar-ph { width: 44px; height: 44px; border-radius: 50%; background: var(--sand-200); border: 1.5px dashed var(--line-strong); flex: none; }

/* Case studies */
.case { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(22px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.case + .case { margin-top: 24px; }
.case__meta { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.case__meta li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.case__meta span:first-child { color: var(--ink-3); }
.case__body h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 6px; }
.case__body p { color: var(--ink-2); }
.case__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case__result { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.case__result div { font-size: .88rem; color: var(--ink-2); }
.case__result strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
@media (max-width: 960px) { .case { grid-template-columns: 1fr; } .case__cols { grid-template-columns: 1fr; } }

/* Trainers */
.trainer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.trainer .photo-ph { border-radius: 0; border: 0; border-bottom: 1.5px dashed var(--line-strong); }
.trainer__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.trainer__role { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.trainer__from { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sand-100); color: var(--ink-2); }
.trainer__bio { font-size: .94rem; color: var(--ink-2); }
.trainer__links { margin-top: auto; display: flex; gap: 10px; }
.trainer__links a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--sand-300); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--terracotta); }
.timeline__when { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.timeline h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.timeline p { color: var(--ink-2); margin: 0; }

/* Quote/pull */
.pull { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; }
.pull em { color: var(--terracotta); }
.section--night .pull { color: var(--white); }
.section--night .pull em { color: #EDB47F; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 44px; height: 44px; }
.contact-list strong { display: block; }
.contact-list a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #2C180C; color: #C9BDA8; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.site-footer a { color: #E9DFCC; text-decoration: none; }
.site-footer a:hover { color: #EDB47F; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.site-footer__about p { max-width: 38ch; margin-top: 18px; }
.site-footer__cred { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.site-footer__cred img { width: 64px; height: 64px; background: var(--white); border-radius: 50%; }
.site-footer__cred p { margin: 0 0 0 4px; font-size: .84rem; line-height: 1.45; }
.site-footer__cred strong { color: var(--white); }
.site-footer__h { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9F9585; margin: 6px 0 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__muted { color: #A58B72; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { margin-top: .3em; color: var(--dune); width: 1em; height: 1em; }
.site-footer .social { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 14px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.social a:hover { border-color: #EDB47F; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 980px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .wa-float, .cta-band, .site-footer { display: none; }
}

/* Compact HRD Corp badges in the home hero on small screens */
.hero__badges-sm { display: none; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .85rem; line-height: 1.35; color: var(--ink-2); }
.hero__badges-sm img { width: 56px; height: 56px; }
.hero__badges-sm strong { color: var(--ink); }
@media (max-width: 900px) { .hero__badges-sm { display: flex; } }

/* ---------- Brand logos ---------- */
.biz__logo { height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.biz__logo[src*="dodgson"] { height: 58px; }
.biz__name { min-height: 58px; display: flex; align-items: center; }

.mega__list a { background: var(--night-2); color: #C9BDA8; }
.mega__list a:hover { background: var(--night); border-color: rgba(232,166,109,.5); color: #E9DFCC; }
.mega__name { color: #E9DFCC; min-height: 40px; }
.mega__logo { height: 22px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; }
.mega__logo[src*="dodgson"] { height: 38px; }
.mega__field { color: #C9BDA8; }

.logos__item { background: var(--white); border: 1px solid var(--line); padding: 14px 18px; transition: border-color .2s, box-shadow .2s; }
.logos__item:hover { border-color: var(--sand-300); box-shadow: var(--shadow); }
.logos__item img { width: auto; height: auto; max-width: 100%; max-height: 62px; object-fit: contain; }

/* Equal-height tiles in the Our Businesses menu */
.mega__list { grid-auto-rows: 1fr; }
.mega__list li { display: flex; }
.mega__list a { flex: 1; display: flex; flex-direction: column; }

/* Align label, logo, text, divider and link across the business cards */
@supports (grid-template-rows: subgrid) {
  .biz__card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .biz__card p:not(.biz__teaches) { margin-bottom: 20px; }
  .biz__teaches { margin-top: 0; margin-bottom: 0; align-self: start; }
  .biz__visit { align-self: end; }
}

/* ---------- HRD Corp certificate ---------- */
.topbar__reg { color: inherit; text-decoration: underline; text-decoration-color: rgba(233,223,204,.4); }
.topbar__reg:hover { color: var(--white); }
.cert-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.cert-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cert-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 480px) { .cert-facts { grid-template-columns: 1fr; } }
.cert { position: relative; display: block; max-width: 460px; margin: 0 auto; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); transition: transform .3s, box-shadow .3s; }
.cert:hover { transform: rotate(0) translateY(-4px); }
.cert img { width: 100%; height: auto; border-radius: 4px; }
.cert__cap { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--night); color: var(--white); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow); }
.cert__cap .icon { color: #9FD99A; }
.hrd-badges--sm { margin-top: 24px; }
.hrd-badges--sm img { width: 96px; }
.site-footer__cred a { color: #EDB47F; }

/* Brand typography: Playfair Display (titles) + Montserrat (body) */
.stats__value, .hero__card-num, .checker__big, .steps li::before, .offer__join span, .pull { font-weight: 700; }
.quote blockquote { font-weight: 600; font-style: italic; }
.site-nav__list > li > a, .site-nav__menu-btn { white-space: nowrap; }
@media (min-width: 1261px) and (max-width: 1340px) {
  .site-nav__list > li > a, .site-nav__menu-btn { padding-left: 8px; padding-right: 8px; }
  .site-nav { gap: 12px; }
}

/* Brand dune-line artwork behind the hero sections (kept clear of the text column) */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/brand/dune-lines-1600.webp") right bottom / min(78%, 1300px) auto no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 60%);
          mask-image: linear-gradient(to right, transparent 25%, #000 60%);
}
.hero::before { opacity: .6; }
.page-hero::before { opacity: .45; background-size: min(60%, 1000px) auto; }
@media (max-width: 1200px) {
  .hero::before, .page-hero::before { background-image: url("../img/brand/dune-lines-900.webp"); }
}
@media (max-width: 900px) {
  .hero::before, .page-hero::before { background-size: 130% auto; opacity: .3; -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 90%); mask-image: linear-gradient(to bottom, transparent 55%, #000 90%); }
}

/* Group businesses list on the contact page: name and field in aligned columns */
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; align-items: baseline; }
.biz-list li { display: contents; }
.biz-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.biz-list a .icon { color: var(--terracotta); }
.biz-list a:hover strong { color: var(--terracotta); }
@media (max-width: 380px) {
  .biz-list { grid-template-columns: 1fr; }
  .biz-list { row-gap: 2px; }
  .biz-list span { padding: 0 0 10px 26px; }
}

/* Credentials + contact inside the mobile menu (the top bar is hidden on phones) */
.site-nav__extra { display: none; }
@media (max-width: 1260px) {
  .site-nav__extra { display: grid; gap: 16px; }
  .nav-cred { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--night); color: #E9DFCC; text-decoration: none; }
  .nav-cred:hover { color: #E9DFCC; background: var(--night-2); }
  .nav-cred img { width: 56px; height: 56px; flex: none; background: var(--white); border-radius: 50%; }
  .nav-cred strong { display: block; color: var(--white); font-size: .95rem; line-height: 1.3; }
  .nav-cred span span { display: block; font-size: .85rem; margin-top: 3px; color: #D5CAB6; }
  .nav-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .nav-contact > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .nav-contact > a .icon { color: var(--terracotta); }
  .nav-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
  .nav-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); }
  .nav-social a:hover { border-color: var(--terracotta); color: var(--terracotta); }
}
@media (max-width: 767px) {
  .topbar { display: none; }
}

.nav-cred__link { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 6px !important; font-weight: 700; color: #EDB47F !important; }

/* ---------- Mobile menu: drawer from the right ---------- */
.nav-backdrop { display: none; }
@media (max-width: 1260px) {
  /* hamburger ⇄ close icon */
  .nav-toggle { position: relative; transition: background .2s, border-color .2s, color .2s; }
  .nav-toggle__open, .nav-toggle__close { position: absolute; inset: 0; display: grid !important; place-items: center; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
  .nav-toggle__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
  .nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { opacity: 0; transform: rotate(90deg) scale(.6); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { opacity: 1; transform: none; }

  /* the drawer */
  .site-nav {
    inset: var(--nav-top, var(--header-h)) 0 0 auto;
    width: min(88vw, 420px);
    opacity: 1; visibility: hidden;
    transform: translateX(100%);
    box-shadow: -24px 0 48px -24px rgba(46, 29, 18, .35);
    border-left: 1px solid var(--line);
    transition: transform .4s cubic-bezier(.55, 0, .75, .2), visibility 0s linear .4s;
  }
  body.nav-open .site-nav {
    visibility: visible; transform: none;
    transition: transform .55s cubic-bezier(.16, 1, .3, 1), visibility 0s;
  }

  /* dimmed page behind the drawer */
  .nav-backdrop {
    display: block; position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 98;
    background: rgba(46, 29, 18, .5); opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }

  /* links follow the drawer in from the right, one after another */
  .site-nav__list > li, .site-nav__cta, .site-nav__extra {
    opacity: 0; transform: translateX(32px);
    transition: opacity .2s ease, transform .2s ease;
  }
  body.nav-open .site-nav__list > li, body.nav-open .site-nav__cta, body.nav-open .site-nav__extra {
    opacity: 1; transform: none;
    transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(.15s + var(--i, 0) * .05s);
  }

  /* Our Businesses unfolds from the top down */
  .mega {
    display: grid !important; grid-template-rows: 0fr; overflow: hidden; padding: 0;
    transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1), padding .45s cubic-bezier(.16, 1, .3, 1);
  }
  .mega > .mega__inner { min-height: 0; overflow: hidden; }
  .has-menu.is-open .mega { grid-template-rows: 1fr; padding-bottom: 16px; }
  .mega__intro, .mega__list li, .mega__more { opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .25s ease; }
  .has-menu.is-open .mega__intro, .has-menu.is-open .mega__list li, .has-menu.is-open .mega__more {
    opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
  }
  .has-menu.is-open .mega__intro { transition-delay: .05s; }
  .has-menu.is-open .mega__list li:nth-child(1) { transition-delay: .1s; }
  .has-menu.is-open .mega__list li:nth-child(2) { transition-delay: .15s; }
  .has-menu.is-open .mega__list li:nth-child(3) { transition-delay: .2s; }
  .has-menu.is-open .mega__list li:nth-child(4) { transition-delay: .25s; }
  .has-menu.is-open .mega__more { transition-delay: .3s; }
}

/* Reduced motion: keep the drawer slide and dropdown unfold (they explain where things
   come from), but make them quick and drop the staggered/rotating extras. */
@media (prefers-reduced-motion: reduce) and (max-width: 1260px) {
  .site-nav { transition: transform .25s ease, visibility 0s linear .25s !important; }
  body.nav-open .site-nav { transition: transform .3s ease, visibility 0s !important; }
  .nav-backdrop { transition: opacity .25s ease, visibility 0s linear .25s !important; }
  body.nav-open .nav-backdrop { transition: opacity .3s ease, visibility 0s !important; }
  .mega { transition: grid-template-rows .3s ease, padding .3s ease !important; }
  .site-nav__list > li, .site-nav__cta, .site-nav__extra,
  .mega__intro, .mega__list li, .mega__more { opacity: 1 !important; transform: none !important; }
  .nav-toggle__open, .nav-toggle__close { transform: none !important; transition: opacity .2s ease !important; }
}

/* Brand palette: caramel for large accents, brown for actions and small text */
.hero__title em, .page-hero__title em, .pull em, .hero__card-num, .levy-figure__total strong { color: var(--caramel); }
.steps li::before, .quote__icon { color: var(--caramel); }
.eyebrow::before { background: var(--caramel); }
.btn--primary { background: var(--brown); }
.btn--primary:hover { background: var(--terracotta-deep); }
::selection { background: var(--caramel); color: var(--white); }

/* ---------- Contact: direct channels (no form) ---------- */
.contact-topic { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.contact-topic .icon { color: var(--caramel); flex: none; }
.contact-topic strong { color: var(--ink); }
.contact-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-way {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-way:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sand-300); color: var(--ink); }
.contact-way__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sand-100); color: var(--brown); margin-bottom: 12px; }
.contact-way__icon .icon { width: 26px; height: 26px; }
.contact-way__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.contact-way__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; word-break: break-word; }
.contact-way__note { color: var(--ink-2); font-size: .95rem; }
.contact-way__cta { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brown); }
.contact-way__cta .icon { transition: transform .2s; }
.contact-way:hover .contact-way__cta .icon { transform: translateX(3px); }
.contact-way--primary { background: var(--night); border-color: var(--night); color: #E9DFCC; }
.contact-way--primary:hover { color: #E9DFCC; border-color: var(--night); }
.contact-way--primary .contact-way__icon { background: #25D366; color: #fff; }
.contact-way--primary .contact-way__label, .contact-way--primary .contact-way__cta { color: #EDB47F; }
.contact-way--primary .contact-way__value { color: var(--white); }
.contact-way--primary .contact-way__note { color: #D5CAB6; }
@media (max-width: 900px) { .contact-ways { grid-template-columns: 1fr; } }

/* ---------- Photos ---------- */
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--sand-100); }
.gallery .photo { height: 100%; border-radius: var(--radius); box-shadow: none; }

/* ---------- Academy catalogue additions ---------- */
.prog__tagline { margin: -4px 0 10px; font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--caramel); font-size: 1rem !important; }
.prog--flagship { border-color: var(--caramel); box-shadow: 0 0 0 1px var(--caramel), var(--shadow); }
.prog--flagship .prog__cat::after { content: " · Flagship"; color: var(--caramel); }
.modules { margin-top: 48px; padding: clamp(24px, 3.4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.modules__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.modules__head h3 { margin: 0; }
.modules__head p { margin: 0; }
.modules__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.modules__col h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--caramel); }
.modules__col ul { list-style: none; margin: 0; padding: 0; }
.modules__col li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
@media (max-width: 800px) { .modules__grid { grid-template-columns: 1fr; } }

/* ---------- Home: flagship list + press strip ---------- */
.flagships { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.flagships ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.flagships a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); transition: border-color .2s, color .2s; }
.flagships a:hover { border-color: var(--caramel); color: var(--brown); }
.flagships .icon { color: var(--caramel); }
.press-strip { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px 20px; margin-top: 32px; padding: 18px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.press-strip:hover { border-color: var(--caramel); box-shadow: var(--shadow); color: var(--ink); }
.press-strip__label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.press-strip__outlet { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.press-strip__headline { color: var(--ink-2); font-size: .95rem; }
.press-strip__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brown); }
@media (max-width: 800px) { .press-strip { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Press ---------- */
.press-card { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.press-card + .press-card { margin-top: 20px; }
.press-card__meta { display: flex; flex-direction: column; gap: 6px; padding-right: 20px; border-right: 2px solid var(--caramel); }
.press-card__outlet { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.press-card time { font-size: .9rem; color: var(--ink-3); }
.press-card h3 a { text-decoration: none; }
.press-card h3 a:hover { color: var(--brown); }
@media (max-width: 760px) { .press-card { grid-template-columns: 1fr; } .press-card__meta { border-right: 0; border-bottom: 2px solid var(--caramel); padding: 0 0 12px; } }
.timeline + .photo, .split > div > .photo { margin-top: 0; }
#time-h + .photo { margin-top: 24px; }
.contact-ways--two { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .contact-ways--two { grid-template-columns: 1fr; } }
.contact-way--primary .contact-way__icon { background: var(--caramel); color: var(--white); }

/* Section heads with a side link: line the link up with the last line of text */
.section-head--split > div > :last-child { margin-bottom: 0; }
.section-head--split > .link-arrow { margin-bottom: .35em; white-space: nowrap; }

/* Programme cards: align title, tagline, details and "highlights" across each row */
.prog__top { flex-wrap: wrap; row-gap: 8px; }
.prog--flagship .prog__cat::after { content: none; }
.prog__flag { display: inline-block; margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); }
@supports (grid-template-rows: subgrid) {
  .cat-grid { grid-auto-rows: auto; }
  .prog { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .prog[hidden] { display: none; }
  .prog > details { align-self: end; }
}

/* Space before the module list */
.cat-empty + .modules, .cat-grid + .cat-empty + .modules { margin-top: clamp(48px, 6vw, 72px); }

/* Playfair Display defaults to old-style numerals ("01" reads like "oI").
   Use full-height lining figures anywhere the display font is used. */
h1, h2, h3, h4, .pull, .quote blockquote, .stats__value, .hero__card-num, .steps li::before,
.checker__big, .levy-figure__total strong, .case__result strong, .contact-way__value,
.press-card__outlet, .press-strip__outlet, .prog__tagline, .faq__item summary, .offer__join span {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* Count-up figures: fixed-width digits so the number doesn't jitter while counting */
.count { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.nav-contact__links { display: grid; gap: 10px; }
.nav-contact__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav-contact__links .icon { color: var(--terracotta); }
