/* Swan Occupational Therapy — site styles
   Tokens mirror brand-book/index.html. Change a colour here, not in components. */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-latin-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand colour — from the logo's navy → steel-blue gradient */
  --navy: #111c45;      /* Swan Navy: headings, primary buttons, footer */
  --deep: #0b1433;      /* Deep Water: footer ground */
  --harbour: #2e4d72;   /* Harbour Blue: links, eyebrows, secondary */
  --tide: #4a7399;      /* Tide Blue: accents, rules, large text only on tinted grounds */
  --mist: #f2f6f9;      /* Mist: page ground (the logo's own background) */
  --sky: #dce7f0;       /* Sky: soft blocks */
  --sand: #f4efe7;      /* Sand: warm ground, sparingly */
  --moss: #4e6b49;      /* Moss: nature accent (checks, small highlights) */
  --white: #ffffff;
  --ink: #1c2541;       /* body text */
  --muted: #4b5873;     /* secondary text */
  --line: rgba(17, 28, 69, 0.12);
  --swan-gradient: linear-gradient(90deg, #0a1240 0%, #2e4d72 62%, #4a7399 100%);

  /* Type */
  --font-display: "Urbanist", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.95rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1px 2px rgba(17, 28, 69, 0.06), 0 12px 32px -12px rgba(17, 28, 69, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 5rem;
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--navy); }

a { color: var(--harbour); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 50rem; }

.section { padding-block: var(--section); position: relative; }
.section--white { background: var(--white); }
.section--sky { background: var(--sky); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.prose { max-width: 40rem; }
.prose--center { margin-inline: auto; text-align: center; }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--harbour);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.9); }

/* The logo's tracked "LIVE YOUR LIFE" line, reused as a section signature */
.rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 1.5rem 0;
  border: 0;
  background: var(--swan-gradient);
}
.prose--center .rule, .rule--center { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--harbour); border-color: var(--harbour); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn--small { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.prose--center .btn-row { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--harbour);
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand { position: relative; display: block; flex: none; margin-right: auto; }
.brand img { width: clamp(11.5rem, 9rem + 6vw, 15rem); height: auto; transition: opacity 0.35s var(--ease); }
.brand__white { position: absolute; inset: 0; opacity: 0; }

/* Over a dark hero (home page) until the visitor scrolls */
.site-header--over-dark:not(.is-solid) .brand__navy { opacity: 0; }
.site-header--over-dark:not(.is-solid) .brand__white { opacity: 1; }
.site-header--over-dark:not(.is-solid) .primary-nav > ul > li > a,
.site-header--over-dark:not(.is-solid) .sub-toggle,
.site-header--over-dark:not(.is-solid) .menu-toggle { color: var(--white); }
.site-header--over-dark:not(.is-solid) .header-cta { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.site-header--over-dark:not(.is-solid) .header-cta:hover { background: var(--white); color: var(--navy); }

.site-header.is-solid {
  --header-h: 4.25rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(17, 28, 69, 0.25);
}
.site-header.is-solid .brand img { width: clamp(10.5rem, 8.5rem + 5vw, 13rem); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav > ul > li { position: relative; display: flex; align-items: center; }
.primary-nav > ul > li > a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.primary-nav > ul > li > a:hover { background: rgba(46, 77, 114, 0.1); }
.site-header--over-dark:not(.is-solid) .primary-nav > ul > li > a:hover { background: rgba(255, 255, 255, 0.16); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tide); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.has-sub > a { padding-right: 0.25rem !important; }
.sub-toggle {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.sub-toggle svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -0.5rem;
  min-width: 17rem;
  padding: 0.6rem !important;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.submenu::before { content: ""; position: absolute; inset: -0.8rem 0 auto; height: 0.8rem; } /* hover bridge */
.has-sub:hover .submenu,
.has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.submenu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--navy);
  font-size: 0.98rem;
  text-decoration: none;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--mist); }

.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.4rem 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 1.5rem; height: 0.85rem; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__bars::before { top: 0.15rem; }
.menu-toggle__bars::after { top: 0.6rem; }

@media (max-width: 960px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------- mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s; /* stay visible while fading out */
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s; } /* visible at once so focus can land */
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.mobile-menu__top img { width: 11rem; }
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-menu__close svg { width: 1.4rem; height: 1.4rem; }
.mobile-menu nav { margin-top: 2rem; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-menu nav > ul > li > a {
  display: block;
  padding: 1rem 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 300;
  text-decoration: none;
}
.mobile-menu .mobile-sub { padding: 0 0 1rem 0.25rem; }
.mobile-menu .mobile-sub a {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--sky); }
.mobile-menu__contact { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 0.75rem; }
.mobile-menu__contact .btn { width: 100%; }

/* ---------------------------------------------------------------- ambient video */

.ambient { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.ambient__still,
.ambient video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ambient video { opacity: 0; transition: opacity 1.6s var(--ease); }
.ambient video.is-active { opacity: 1; }

.motion-toggle {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(11, 20, 51, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.motion-toggle:hover { background: rgba(11, 20, 51, 0.6); }
.motion-toggle__icon {
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.motion-toggle svg { width: 0.85rem; height: 0.85rem; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[data-paused="true"] .icon-play { display: block; }
.motion-toggle[data-paused="true"] .icon-pause { display: none; }
.motion-toggle--icon { padding: 0.45rem; }
.motion-toggle--icon .motion-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .motion-toggle { display: none; }

/* ---------------------------------------------------------------- hero (home) */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(36rem, 100svh);
  padding: calc(var(--header-h) + 3rem) var(--gutter) 7rem;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.hero .ambient { z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(11, 20, 51, 0.38), transparent 75%),
    linear-gradient(180deg, rgba(11, 20, 51, 0.55) 0%, rgba(11, 20, 51, 0.3) 38%, rgba(11, 20, 51, 0.4) 70%, rgba(11, 20, 51, 0.62) 100%);
}
.hero__content { max-width: 52rem; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  font-weight: 250;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(11, 20, 51, 0.35);
}
.hero__tagline {
  display: block;
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
}
.hero__lead {
  max-width: 40rem;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 16px rgba(11, 20, 51, 0.4);
}
.hero .btn-row { justify-content: center; margin-top: 2.5rem; }
.hero .motion-toggle { right: var(--gutter); bottom: 4.75rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 4.5rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue svg { width: 1.5rem; height: 1.5rem; animation: cue 2.4s var(--ease) infinite; }
.scroll-cue:hover { color: var(--sky); }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-height: 700px), (max-width: 600px) { .scroll-cue { display: none; } }
@media (max-width: 600px) { .hero .motion-toggle { bottom: 4rem; } }

/* Soft water-line divider at the foot of heroes */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--mist);
  pointer-events: none;
}
.wave--white { color: var(--white); }

/* ---------------------------------------------------------------- page hero (inner pages) */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem)) 0 clamp(5rem, 4rem + 5vw, 8rem);
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(74, 115, 153, 0.18), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, #e8f0f6 100%);
  overflow: hidden;
}
.page-hero__mark {
  position: absolute;
  right: max(var(--gutter), calc(50% - 36rem));
  top: 50%;
  width: clamp(9rem, 6rem + 14vw, 20rem);
  opacity: 0.07;
  transform: translateY(-40%);
  pointer-events: none;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 40rem; margin-top: 1rem; }
@media (max-width: 700px) { .page-hero__mark { display: none; } }

.page-hero--photo { color: var(--white); background: var(--navy); }
.page-hero--photo h1 { color: var(--white); }

/* ---------------------------------------------------------------- split (media + text) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
}
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sky);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--arch { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.media-frame--landscape { aspect-ratio: 6 / 5; }
.media-frame .motion-toggle { right: 1rem; bottom: 1rem; }
@media (max-width: 860px) {
  .media-frame { max-width: 30rem; width: 100%; margin-inline: auto; }
  .media-frame--video { aspect-ratio: 1 / 1; max-width: none; }
}

.caption { margin-top: 0.85rem; color: var(--muted); font-size: var(--step--1); text-align: center; }

/* ---------------------------------------------------------------- lists */

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2.1rem; line-height: 1.55; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: rgba(78, 107, 73, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e6b49' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.checklist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
@media (max-width: 760px) { .checklist--two { grid-template-columns: 1fr; } }

.card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.card--mist { background: var(--mist); box-shadow: none; }

/* ---------------------------------------------------------------- life areas (What is OT) */

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.areas li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}
.areas svg {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--harbour);
}

/* ---------------------------------------------------------------- service tiles (home) */

.tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 26rem;
  padding: 1.5rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 20, 51, 0.05) 30%, rgba(11, 20, 51, 0.82) 100%);
  transition: background 0.4s var(--ease);
}
.tile:hover img { transform: scale(1.05); }
.tile:hover::after { background: linear-gradient(180deg, rgba(17, 28, 69, 0.25) 0%, rgba(17, 28, 69, 0.88) 100%); }
.tile h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}
.tile__line { display: block; width: 2.25rem; height: 2px; margin-top: 0.9rem; background: rgba(255, 255, 255, 0.85); transition: width 0.4s var(--ease); }
.tile:hover .tile__line { width: 3.5rem; }
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; min-height: 20rem; }
  .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: auto; min-height: 12rem; }
}

/* ---------------------------------------------------------------- funders strip */

.chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.prose--center .chips { justify-content: center; }
.chips li {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(46, 77, 114, 0.25);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------- quote band (video behind) */

.quote-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(30rem, 70vh, 42rem);
  padding: var(--section) var(--gutter);
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.quote-band .ambient { z-index: -2; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 20, 51, 0.52); }
.quote-band blockquote { max-width: 46rem; margin: 0; }
.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--white);
}
.quote-band footer { margin-top: 1.5rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.quote-band .motion-toggle { right: var(--gutter); bottom: 1.5rem; }
.caps { font-weight: 600; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- services page */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(242, 246, 249, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: top 0.35s var(--ease);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(46, 77, 114, 0.2);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.subnav a:hover, .subnav a.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }

.service-head { max-width: 44rem; }
.service-head .lead { color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-row: span 2; }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .gallery figure:not(:first-child) { aspect-ratio: 4 / 5; }
}

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--navy);
}

/* ---------------------------------------------------------------- about */

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.facts li:last-child { border-bottom: 0; }
.facts svg { width: 1.6rem; height: 1.6rem; color: var(--tide); margin-top: 0.1rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: 1rem; }

/* ---------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 28, 69, 0.06), 0 20px 40px -16px rgba(17, 28, 69, 0.28); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--harbour);
}
.contact-card__icon svg { width: 1.4rem; height: 1.4rem; }
.contact-card .label { color: var(--harbour); font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.contact-card .value { color: var(--navy); font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.contact-card .note { color: var(--muted); font-size: 0.95rem; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.link-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy);
  text-decoration: none;
}
.link-list a:hover { color: var(--harbour); }
.link-list .icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--mist); color: var(--harbour); }
.link-list .icon svg { width: 1.25rem; height: 1.25rem; }
.link-list strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: inherit; }
.link-list span { display: block; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.link-list .ext { width: 1.1rem; height: 1.1rem; color: var(--tide); }

/* ---------------------------------------------------------------- CTA band */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.35em; }
.cta-band__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0 2rem;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand img { width: 14rem; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22rem; color: rgba(255, 255, 255, 0.7); }
.site-footer h2 {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer address { font-style: normal; display: grid; gap: 0.55rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- utilities */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.25rem; }
