/* ============================================================
   ResearchVisor: design tokens
   Palette, faces and radii carried over verbatim from the
   existing Tailwind theme (src/index.css).
   ============================================================ */
:root {
  --cream:      #fbfaf6;
  --cream-deep: #f2efe6;
  --ink:        #0d2b2e;
  --teal:       #1f6f6b;
  --teal-bright:#2c9b8f;
  --mint:       #9ad8ce;
  --mist:       #dcece7;
  --ochre:      #c8791f;
  --muted:      #5c6b63;
  --line:       #ddddd0;
  --panel:      #143f40;
  --panel-alt:  #143b3c;
  --panel-line: #3e6865;
  --clay:       #92705a;
  --sand:       #f2e5d3;

  --display: 'Poppins', 'Inter', system-ui, sans-serif;
  --ui: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --label: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* one type scale, replaces the ad-hoc arbitrary sizes */
  --t-micro: 10px;
  --t-label: 11px;
  --t-xs:    12px;
  --t-sm:    13px;
  --t-md:    14px;
  --t-base:  15px;
  --t-lg:    17px;

  --h1: clamp(2.5rem, 4.6vw, 4.25rem);
  --h2: clamp(1.9rem, 3.4vw, 3rem);
  --h3: clamp(1.35rem, 2.1vw, 1.7rem);

  --wrap: 1240px;
  --pad: 20px;
}
@media (min-width: 640px) { :root { --pad: 32px; } }
@media (min-width: 1024px) { :root { --pad: 40px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { font: inherit; }
button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--teal-bright); color: var(--cream); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- primitives ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.display { font-family: var(--display); font-weight: 700; }
.ui { font-family: var(--ui); }
.mono { font-family: var(--label); }
.eyebrow {
  font-family: var(--label);
  font-size: var(--t-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--ochre); flex: none; }
.eyebrow.on-dark { color: var(--mint); }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.thin { stroke-width: 1.4; }

/* sticky header clearance for in-page anchors (was scroll-mt-24) */
#services, #contact, #team, #ethics, #how-we-work { scroll-margin-top: 136px; }

.section { padding-block: 80px; }
@media (min-width: 640px) { .section { padding-block: 112px; } }
.band { border-block: 1px solid var(--line); background: var(--cream-deep); }
.band-dark { background: var(--ink); color: var(--cream); }
.band-mist { background: var(--mist); }

.lead { color: var(--muted); font-size: var(--t-lg); line-height: 1.7; max-width: 560px; }
.band-dark .lead { color: #bbd0cb; }
.band-mist .lead { color: #355752; }

.section-head { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head .lead { max-width: 360px; font-size: var(--t-base); }
}
.h2 { font-family: var(--display); font-weight: 800; font-size: var(--h2); line-height: 1.08; letter-spacing: -.025em; }
.h3 { font-family: var(--display); font-weight: 700; font-size: var(--h3); line-height: 1.1; letter-spacing: -.025em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ui); font-weight: 600; font-size: var(--t-base);
  border-radius: 999px; padding: 13px 20px;
  background: var(--ink); color: var(--cream);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 24px rgba(13,43,46,.13);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { font-size: 16px; transition: transform .18s ease; }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn-ochre { background: var(--ochre); color: var(--ink); font-weight: 700; font-size: var(--t-xs); padding: 8px 16px; box-shadow: none; }
.btn-outline { background: none; border: 1px solid var(--teal); color: var(--teal); box-shadow: none; font-size: var(--t-xs); padding: 10px 16px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-weight: 600; font-size: var(--t-base); color: var(--teal);
}
.arrow-link .icon { font-size: 15px; transition: transform .18s ease; }
.arrow-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- banner + header ---------- */
.banner { position: relative; z-index: 50; background: var(--ink); color: var(--cream); padding: 12px 20px; }
.banner-inner {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
}
@media (min-width: 640px) { .banner-inner { flex-direction: row; gap: 20px; } }
.banner p { font-family: var(--ui); font-size: var(--t-sm); font-weight: 500; }
.banner .accent { color: var(--mint); }


.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(221,221,208,.9);
  background: rgba(251,250,246,.95);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 64px; width: auto; }
@media (min-width: 640px) {
  .header-inner { height: 112px; }
  .brand-logo { height: 84px; }
}
.brand-name { font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: -.03em; line-height: 1; display: block; }
.brand-sub { font-family: var(--label); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); display: block; margin-top: 4px; line-height: 1; }
.nav { display: none; align-items: center; gap: 20px; flex: none; }
.nav a { font-family: var(--ui); font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav a.active { font-weight: 700; }
.header-cta { display: none; align-items: center; gap: 12px; flex: none; }
.header-note { font-family: var(--label); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.header-cta .btn { font-size: var(--t-sm); padding: 10px 16px; box-shadow: none; white-space: nowrap; }
.menu-btn { display: grid; place-items: center; padding: 8px; border-radius: 8px; color: var(--ink); font-size: 22px; }
@media (min-width: 940px) {
  .nav, .header-cta { display: flex; }
  .menu-btn { display: none; }
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); padding: 20px var(--pad); }
.mobile-nav > div { max-width: var(--wrap); margin-inline: auto; display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(221,221,208,.8); padding-block: 12px;
  font-family: var(--ui); font-size: 18px; font-weight: 600; color: var(--ink);
}
.mobile-nav a .icon { color: var(--teal); font-size: 15px; }
.mobile-nav .btn { justify-content: center; margin-top: 12px; border: 0; }
.mobile-nav .btn .icon { color: currentColor; }

/* ---------- hero photo ---------- */
.hero-photo {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url(../assets/hero.c279ab2376.jpg);
  background-size: cover;
  background-position: 68% 40%;
  opacity: .24;
}
/* Cream scrim: opaque behind the headline, thinnest on the right where there is
   nothing for the photo to compete with. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg,
      var(--cream) 0%,
      rgba(251,250,246,.95) 22%,
      rgba(251,250,246,.58) 42%,
      rgba(251,250,246,.10) 70%,
      rgba(251,250,246,0) 100%),
    linear-gradient(to bottom, rgba(251,250,246,.22) 0%, rgba(251,250,246,0) 20%, rgba(251,250,246,.58) 100%);
}
/* A horizontal ramp has nowhere to run on a narrow screen, so it would drop the
   photo straight behind the headline. Flatten the scrim and pull the photo back. */
@media (max-width: 900px) {
  .hero-photo { opacity: .14; background-position: 60% 30%; }
  .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(251,250,246,.42) 0%, rgba(251,250,246,.78) 34%,
      rgba(251,250,246,.92) 68%, var(--cream) 100%);
  }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-grid {
  position: relative; display: grid; gap: 48px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  padding-top: 64px; padding-bottom: 80px;
}
@media (min-width: 640px) { .hero-grid { padding-top: 96px; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.02fr .78fr; align-items: center; gap: 80px; padding-bottom: 112px; }
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: var(--h1); line-height: 1.0; letter-spacing: -.03em;
  max-width: 640px;
}
.hero h1 .teal { color: var(--teal); }
.hero h1 span.block { display: block; }
.hero-lead { margin-top: 28px; max-width: 530px; color: var(--muted); font-size: var(--t-lg); line-height: 1.75; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note {
  margin-top: 36px; max-width: 500px; display: flex; gap: 12px;
  border-left: 2px solid var(--ochre); padding-left: 16px;
  color: var(--muted); font-size: var(--t-md); line-height: 1.6;
}
.hero-note .icon { font-size: 16px; margin-top: 4px; color: var(--teal); }
.hero-note strong { color: var(--ink); font-weight: 600; }

/* research trail */
.trail {
  position: relative; overflow: hidden;
  border: 1px solid #487c76; border-radius: 22px;
  background: var(--panel); color: var(--cream);
  padding: 24px; box-shadow: 0 22px 60px rgba(13,43,46,.2);
}
@media (min-width: 640px) { .trail { padding: 32px; } }
.trail-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(94,145,136,.4); padding-bottom: 20px; }
.trail-head .kicker { font-family: var(--label); font-size: var(--t-label); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--mint); }
.trail-head h2 { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: -.03em; line-height: 1.05; }
.trail-head .icon { font-size: 25px; color: var(--ochre); }
.trail-steps { position: relative; margin-top: 20px; }
.trail-steps::before { content: ''; position: absolute; left: 15px; top: 12px; width: 1px; height: calc(100% - 28px); background: #5e9188; }
.step { position: relative; display: flex; align-items: center; gap: 16px; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 31px; height: 31px; flex: none; border-radius: 50%;
  border: 1px solid #69b7ac; background: var(--panel); color: var(--mint);
  font-family: var(--label); font-size: var(--t-xs); font-weight: 600;
}
.step:last-child .step-num { border-color: var(--ochre); background: var(--ochre); color: var(--ink); }
.step-body { padding-top: 2px; }
.step-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.step-title b { font-family: var(--ui); font-weight: 700; font-size: var(--t-sm); letter-spacing: .12em; }
.step-title span { font-family: var(--ui); font-size: var(--t-sm); color: #afd2cc; }

/* ---------- packages (courses + pricing, one place) ---------- */
.pkg-cols { margin-top: 44px; display: grid; gap: 16px; align-items: start; }
@media (min-width: 720px)  { .pkg-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pkg-cols { grid-template-columns: repeat(3, 1fr); } }
.pkg-col { display: flex; flex-direction: column; gap: 16px; }
.pkg {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; background: var(--cream);
  padding: 26px 24px;
}
.pkg::before {
  content: ''; position: absolute; left: 0; top: 0; width: 190px; height: 140px;
  background: radial-gradient(140px 120px at 0 0, var(--tint), transparent 72%);
  pointer-events: none;
}
.pkg > * { position: relative; }
.pkg-n { font-family: var(--label); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .16em; color: var(--ochre); }
.pkg h3 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.pkg-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.pkg-meta .dur {
  font-family: var(--label); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .1em;
  background: var(--mist); color: var(--teal); border-radius: 999px; padding: 4px 10px;
}
.pkg-meta .cost { font-family: var(--ui); font-size: var(--t-sm); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pkg-meta .cost.muted { font-weight: 500; color: var(--muted); }
.pkg-for { margin-top: 14px; color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.pkg-for b { color: var(--ink); font-weight: 600; }
.pkg-label {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--label); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.pkg-sub { margin-top: 16px; font-family: var(--ui); font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.pkg-sub:first-of-type { margin-top: 0; }
.pkg ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pkg li { display: flex; gap: 9px; font-size: var(--t-sm); line-height: 1.45; }
.pkg li::before { content: '+'; flex: none; font-family: var(--label); color: var(--teal); }
.pkg-foot {
  margin-top: 20px; border-radius: 16px; background: var(--mist); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 640px) { .pkg-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.pkg-foot p { font-family: var(--ui); font-weight: 600; font-size: var(--t-base); color: var(--ink); }
.pkg-foot .btn { flex: none; font-size: var(--t-sm); }

/* ---------- our story ---------- */
.story-body { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.story-body p { color: #d7e7e2; font-size: 19px; line-height: 1.7; }
.story-body p:first-child {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  line-height: 1.3; letter-spacing: -.02em; color: var(--cream);
}
.story-body p:last-child { color: var(--cream); font-weight: 500; }

/* ---------- people ---------- */
.people { margin-top: 44px; display: grid; gap: 16px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.person {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; background: var(--cream);
  padding: 28px 20px; text-align: center;
}
.person .avatar {
  margin: 0 auto; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #dfe4dc; color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em;
}
.person.lead .avatar { background: var(--teal); color: var(--cream); }
.person h3 { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.person .role { margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.socials-row { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; gap: 10px; }
.person .social {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; background: var(--mist); color: var(--teal); font-size: 16px;
  transition: background .15s, color .15s;
}
.person .social:hover { background: var(--teal); color: var(--cream); }

/* ---------- where do you fit ---------- */
.fit-grid { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 800px) { .fit-grid { grid-template-columns: repeat(3, 1fr); } }
.fit-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; background: var(--cream); padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fit-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13,43,46,.08); }
.fit-card .top { display: flex; align-items: center; justify-content: space-between; }
.fit-card .top .icon:first-child { font-size: 24px; color: var(--teal); }
.fit-card .top .icon:last-child { font-size: 16px; color: var(--ochre); transition: transform .18s ease; }
.fit-card:hover .top .icon:last-child { transform: translate(2px, -2px); }
.fit-card h3 { margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.fit-card p { margin-top: 10px; color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.fit-card .pointer {
  margin-top: auto; padding-top: 16px;
  font-family: var(--ui); font-weight: 600; font-size: var(--t-sm); color: var(--teal);
}

/* ---------- how we work ---------- */
.hww-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .hww-grid { grid-template-columns: .72fr 1.28fr; gap: 80px; } }
.hww-grid h2 { max-width: 450px; }
.hww-grid h2 .mint { color: #8dcac0; }
.hww-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .hww-cards { grid-template-columns: repeat(3, 1fr); } }
.hww-card {
  border: 1px solid var(--panel-line); border-radius: 18px; background: var(--panel-alt);
  padding: 20px; transition: transform .2s ease;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .hww-card { padding: 24px; } }
.hww-card:hover { transform: translateY(-4px); }
.hww-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.hww-card .n { font-family: var(--label); font-size: var(--t-label); color: var(--ochre); }
.hww-card .top .icon { font-size: 21px; stroke-width: 1.25; color: #83c6bc; }
.hww-card h3 { margin-top: 40px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; line-height: 1.15; }
.hww-card p { margin-top: 16px; color: #bbd0cb; font-size: var(--t-sm); line-height: 1.6; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .75fr 1.25fr; gap: 80px; } }
.contact-rows { margin-top: 40px; border-top: 1px solid #9fcac1; padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row .icon { font-size: 16px; stroke-width: 1.5; color: var(--teal); }
.contact-row .label { font-family: var(--label); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.contact-row .value { margin-left: auto; text-align: right; font-family: var(--ui); font-size: var(--t-xs); font-weight: 500; }
.enquiry { border: 1px solid var(--line); border-radius: 20px; background: var(--cream); padding: 24px; }
@media (min-width: 640px) { .enquiry { padding: 36px; } }
.field-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); } .field-grid label.full { grid-column: span 2; } }
.enquiry label { display: block; font-family: var(--ui); font-weight: 600; font-size: var(--t-xs); line-height: 1.5; color: var(--ink); }
.enquiry input, .enquiry select, .enquiry textarea {
  margin-top: 8px; width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream-deep); padding: 12px 14px; font-family: var(--body);
  font-size: var(--t-sm); font-weight: 400; color: var(--ink); outline: none;
}
.enquiry select { appearance: none; }
.enquiry textarea { resize: vertical; min-height: 128px; }
.enquiry ::placeholder { color: #8c968f; }
.enquiry-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .enquiry-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.enquiry-foot p { display: flex; gap: 8px; max-width: 290px; font-size: var(--t-xs); line-height: 1.5; color: var(--muted); }
.enquiry-foot .icon { font-size: 15px; margin-top: 3px; color: var(--teal); }
.sent { border: 1px solid #72b4a9; border-radius: 20px; background: var(--mist); padding: 28px; }
@media (min-width: 640px) { .sent { padding: 40px; } }
.sent .tick { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: var(--cream); font-size: 23px; }
.sent h3 { margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.025em; }
.sent p { margin-top: 12px; max-width: 430px; font-size: var(--t-sm); line-height: 1.65; color: #355752; }
.sent p a { color: var(--teal); font-weight: 600; text-decoration: underline; }
.sent button { margin-top: 28px; }

/* ---------- consultation modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,43,46,.62); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: 100%; max-width: 620px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; box-shadow: 0 30px 80px rgba(13,43,46,.32);
  animation: modalIn .22s cubic-bezier(.22,.8,.24,1) both;
}
@media (min-width: 640px) { .modal-panel { padding: 40px; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--cream-deep);
  color: var(--muted); font-size: 17px; transition: background .15s, color .15s;
}
.modal-x:hover { background: var(--ink); color: var(--cream); }
.modal-panel h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.1; letter-spacing: -.025em; color: var(--ink); padding-right: 40px;
}
.modal-lead { margin-top: 12px; color: var(--muted); font-size: var(--t-base); line-height: 1.6; }
.modal-panel .enquiry { border: 0; background: none; padding: 0; margin-top: 24px; }
.modal-panel .sent { border: 0; background: none; padding: 0; }
.modal-panel .sent p a { color: var(--teal); font-weight: 600; }
.enquiry label .hint {
  display: inline; margin-left: 6px; font-family: var(--body);
  font-weight: 400; font-size: var(--t-label); color: var(--muted);
}
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
  margin-top: 16px; border-radius: 10px; background: #f6e2de; border: 1px solid #d9a79c;
  padding: 12px 14px; font-size: var(--t-sm); line-height: 1.5; color: #8c2f1c;
}

/* ---------- contact call-to-action ---------- */
.contact-cta {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid #9fcac1; border-radius: 20px; background: var(--cream);
  padding: 32px 28px;
}
@media (min-width: 640px) { .contact-cta { padding: 44px 40px; } }
.contact-cta .grid-tick {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--cream); font-size: 23px;
}
.contact-cta h3 {
  margin-top: 24px; font-family: var(--display); font-weight: 700;
  font-size: 24px; letter-spacing: -.025em; color: var(--ink);
}
.contact-cta p { margin-top: 12px; max-width: 40ch; color: var(--muted); font-size: var(--t-base); line-height: 1.6; }
.contact-cta .btn { margin-top: 28px; }

/* ---------- page intro photo (Our story) ---------- */
.page-intro.has-photo .inner { position: relative; z-index: 2; }
.intro-photo {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url(../assets/story.d6c9546c4f.jpg);
  background-size: cover;
  background-position: 66% 42%;
  opacity: .30;
}
/* Navy scrim: solid behind the heading, thinner on the right, and fully opaque
   at the bottom so the band blends into the flat navy of the story below. */
.intro-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg,
      var(--ink) 0%,
      rgba(13,43,46,.93) 20%,
      rgba(13,43,46,.55) 42%,
      rgba(13,43,46,.14) 72%,
      rgba(13,43,46,0) 100%),
    linear-gradient(to bottom,
      rgba(13,43,46,.18) 0%,
      rgba(13,43,46,0) 32%,
      rgba(13,43,46,.62) 80%,
      var(--ink) 100%);
}
@media (max-width: 900px) {
  .intro-photo { opacity: .20; background-position: 60% 35%; }
  .intro-scrim {
    background: linear-gradient(to bottom,
      rgba(13,43,46,.38) 0%, rgba(13,43,46,.70) 40%,
      rgba(13,43,46,.90) 74%, var(--ink) 100%);
  }
}

/* ---------- page intro ---------- */
.page-intro { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.page-intro .inner { position: relative; max-width: var(--wrap); margin-inline: auto; padding: 80px var(--pad); }
@media (min-width: 640px) { .page-intro .inner { padding-block: 112px; } }
/* A heading-only intro needs no room for a paragraph that is not there. */
.page-intro.bare .inner { padding-bottom: 44px; }
@media (min-width: 640px) { .page-intro.bare .inner { padding-bottom: 56px; } }
/* Any section following a heading-only intro must not restack the padding. */
.page-intro.bare + .section { padding-top: 56px; }
/* Our story continues the same dark band, so it closes the gap completely. */
#our-story { padding-top: 0; }
.page-intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; max-width: 720px; }
.page-intro .rule { margin-top: 24px; width: 64px; height: 3px; border-radius: 2px; background: var(--ochre); }
.page-intro p { margin-top: 24px; max-width: 570px; color: #bbd0cb; font-size: var(--t-lg); line-height: 1.7; }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .65fr 1.35fr; gap: 96px; } }
.faq-aside .sticky { position: sticky; top: 152px; }
.faq-aside .bubble { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 23px; }
.faq-aside h2 { margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.faq-aside p { margin-top: 16px; max-width: 250px; font-size: var(--t-sm); line-height: 1.55; color: var(--muted); }
.faq-aside .arrow-link { margin-top: 24px; font-size: var(--t-xs); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; text-align: left; }
.faq-q span.q { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; line-height: 1.25; }
.faq-q .badge { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--cream-deep); color: var(--teal); font-size: 17px; }
.faq-item.open .badge { background: var(--teal); color: var(--cream); }
.faq-q .badge .icon { transition: transform .2s ease; }
.faq-item.open .badge .icon { transform: rotate(180deg); }
.faq-a { padding: 0 48px 30px 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.faq-item:not(.open) .faq-a { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: 56px var(--pad); }
@media (min-width: 640px) { .footer-inner { padding-block: 64px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; } }
.footer-brand { display: flex; align-items: center; }
.footer-logo { height: 82px; width: auto; }
@media (min-width: 420px) { .footer-logo { height: 96px; } }
.footer-tag { margin-top: 24px; max-width: 340px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; line-height: 1.25; color: #d7e7e2; }
.footer-sub { margin-top: 12px; max-width: 350px; color: #9fbcb5; font-size: var(--t-sm); line-height: 1.6; }
.footer-col p.head { font-family: var(--label); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .18em; color: var(--mint); }
.footer-col .links { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col .links a { font-family: var(--ui); font-size: var(--t-sm); color: #d7e7e2; }
.footer-col .links a:hover { color: var(--mint); }
.footer-col .links span { font-family: var(--ui); font-size: var(--t-sm); color: #9fbcb5; }
.socials { display: flex; gap: 12px; padding-top: 8px; }
.socials span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--panel-line); color: var(--mint); font-size: 14px; }
.footer-bottom {
  margin-top: 48px; display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--panel-line); padding-top: 20px;
  font-family: var(--label); font-size: var(--t-label); color: #789892; line-height: 1.6;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .right { text-transform: uppercase; letter-spacing: .12em; }

/* ---------- motion ---------- */
.reveal { animation: reveal .7s cubic-bezier(.22,.8,.24,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .26s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Additions for the multi-page rebuild.
   Everything above this point is the original, proven stylesheet.
   ============================================================ */

/* ---------- package cards: equal height, expandable ---------- */
/* A plain grid row stretches every card to the tallest in that row, so the
   bodies are clamped to a short preview and the rest sits behind Read more.
   That keeps the grid square without deleting a single bullet. */
.pkg-cols { align-items: stretch; }
.pkg { height: 100%; }
.pkg h3 a { color: inherit; }
.pkg h3 a:hover { color: var(--teal); }
.pkg-body ul { margin-top: 12px; }
.pkg-more[hidden] { display: none; }
.pkg-more > ul:first-child,
.pkg-more > p.pkg-sub:first-child { margin-top: 9px; }
.pkg-toggle {
  margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ui); font-weight: 600; font-size: var(--t-sm); color: var(--teal);
}
.pkg-toggle .cnt { color: var(--muted); font-weight: 500; }
.pkg-toggle .icon { font-size: 15px; transition: transform .2s ease; }
.pkg-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.pkg-toggle:hover { color: var(--ink); }
.pkg-prereq {
  margin-top: 10px; border-left: 2px solid var(--ochre); padding-left: 12px;
  font-size: var(--t-xs); line-height: 1.5; color: var(--muted);
}
.pkg-actions {
  margin-top: auto; padding-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.pkg-actions .btn { font-size: var(--t-sm); padding: 11px 18px; }
.pkg-actions .arrow-link { font-size: var(--t-sm); }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-family: var(--label); font-size: var(--t-label);
  text-transform: uppercase; letter-spacing: .14em; color: #8fb2ab;
}
.crumbs a:hover { color: var(--mint); }
.crumbs .sep { color: #5b8580; }
.crumbs span[aria-current] { color: var(--mint); }

/* ---------- team ---------- */
.team-note {
  margin: 36px auto 0; max-width: 68ch;
  border-left: 2px solid var(--ochre); padding-left: 20px;
  color: var(--muted); font-size: var(--t-lg); line-height: 1.7;
}

/* ---------- individual course page ---------- */
.course-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .course-grid { grid-template-columns: 1.35fr .65fr; gap: 72px; } }
.course-main > p { color: var(--muted); font-size: var(--t-lg); line-height: 1.75; }
.course-main > p + p { margin-top: 20px; }
.course-main .pkg-label { margin-top: 36px; }
.course-list { padding: 26px 24px; height: auto; }
.course-list ul { margin-top: 0; }
.course-list li { font-size: var(--t-base); }
.course-prereq {
  margin-top: 24px; display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; background: var(--cream-deep);
  padding: 14px 16px; font-size: var(--t-sm); line-height: 1.55; color: var(--muted);
}
.course-prereq .icon { font-size: 16px; margin-top: 3px; color: var(--teal); flex: none; }
.course-outcome {
  margin-top: 28px; border-left: 2px solid var(--ochre); padding-left: 20px;
  font-size: var(--t-lg); line-height: 1.7; color: var(--muted);
}
.course-outcome b { color: var(--ink); font-weight: 600; }
.course-side .sticky { position: sticky; top: 152px; }
.price-card {
  border: 1px solid var(--line); border-radius: 20px; background: var(--cream-deep);
  padding: 28px 26px; display: flex; flex-direction: column; align-items: flex-start;
}
.price-card h2 {
  margin-top: 10px; font-family: var(--display); font-weight: 700;
  font-size: 23px; letter-spacing: -.025em; line-height: 1.15;
}
.price-card .pkg-meta { flex-wrap: wrap; }
.price-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.price-card .btn-outline { margin-top: 12px; }

/* ---------- forms ---------- */
.enquiry label .note {
  display: block; margin-top: 8px; font-family: var(--body); font-weight: 400;
  font-size: var(--t-xs); line-height: 1.5; color: var(--muted);
}
.form-note {
  margin-top: 22px; border-radius: 12px; background: var(--mist);
  padding: 14px 16px; font-size: var(--t-xs); line-height: 1.6; color: #355752;
}
.form-note b { color: var(--ink); font-weight: 600; }
.enquiry select:invalid { color: #8c968f; }

/* ---------- misc ---------- */
.contact-cta .alt {
  margin-top: 18px; font-size: var(--t-xs); color: var(--muted);
}
.linkish {
  font-family: var(--ui); font-weight: 600; font-size: inherit;
  color: var(--teal); text-decoration: underline; text-underline-offset: 2px;
}
.linkish:hover { color: var(--ink); }
.faq-aside .arrow-link { margin-top: 24px; font-size: var(--t-xs); }

/* The header and modal controls are buttons now, not links, so they need the
   same box behaviour the anchor version had. */
.banner .btn, .header-cta .btn, .mobile-nav .btn { cursor: pointer; }

/* Skip link for keyboard and screen-reader users. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 0 0 10px 0;
  font-family: var(--ui); font-weight: 600; font-size: var(--t-sm);
}
.skip:focus { left: 0; }

/* ---------- contrast corrections ---------- */
/* Dark text on the brand ochre measures 4.43:1 at these small sizes, under the
   4.5:1 WCAG AA floor. Ochre-backed chips get a slightly lighter fill (4.98:1)
   and small ochre TEXT gets a deeper shade (5.23:1). The brand token itself is
   untouched, so rules, dots and icons keep the exact original colour. */
.btn-ochre { background: #d18328; }
.step:last-child .step-num { background: #d18328; border-color: #d18328; }
.pkg-n { color: #9a5a0e; }
/* An unchosen dropdown still has to be readable, so the greyed state uses the
   site's muted tone (4.89:1) rather than the lighter placeholder grey. */
.enquiry select:invalid { color: var(--muted); }

/* ---------- footer: four columns now that courses are listed ---------- */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr .75fr .95fr .95fr; gap: 32px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- group enrolment note, sits between the fields and the summary ---------- */
.form-aside {
  margin-top: 20px; display: flex; gap: 10px; align-items: flex-start;
  border: 1px dashed var(--line); border-radius: 12px; padding: 13px 15px;
  font-size: var(--t-xs); line-height: 1.6; color: var(--muted);
}
.form-aside .icon { font-size: 17px; margin-top: 2px; color: var(--teal); flex: none; }
.form-note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* The duration chip now carries a two-word label on the custom-quote packages. */
.pkg-meta .dur { white-space: nowrap; }

/* ---------- outlined twin of the main button ---------- */
/* Same size and weight as .btn so a pair reads as two equal choices, but
   outlined so the free call still reads as the primary one. */
.btn.btn-line {
  background: none; color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
  font-size: var(--t-base); font-weight: 600; padding: 11.5px 18.5px;
}
.btn.btn-line:hover { background: var(--ink); color: var(--cream); }
.hero-sub-link { margin-top: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta .cta-actions { margin-top: 28px; }
.contact-cta .cta-actions .btn { margin-top: 0; }
@media (max-width: 420px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- after-submit confirmation ---------- */
.next-steps {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps .n {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: var(--cream);
  font-family: var(--label); font-size: var(--t-xs); font-weight: 600;
}
.next-steps li > span:last-child {
  font-size: var(--t-sm); line-height: 1.6; color: #355752; padding-top: 2px;
}
.next-steps b { color: var(--ink); font-weight: 600; }
.sent-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #a9cfc7;
  font-size: var(--t-xs); line-height: 1.6; color: #4a6a65;
}
.sent-foot a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.modal-panel .sent .next-steps li > span:last-child { color: var(--muted); }
.modal-panel .sent-foot { border-top-color: var(--line); color: var(--muted); }
