/* =========================================================
   Westlands – design tokens
   ========================================================= */
:root {
  --navy: #13305e;
  --blue: #1f5aa8;
  --blue-500: #3b82d6;
  --blue-300: #8fbcf0;
  --blue-100: #dceaf9;
  --blue-50: #eef5fd;
  --brand: #009FE4;      /* logo blue – title underline; more places to follow */
  --cream: #fff8ee;
  --paper: #ffffff;
  --sun: #ffc64f;
  --sun-100: #fff1cc;
  --coral: #ff8b6e;
  --coral-100: #ffe3da;
  --sage: #7cc39b;
  --sage-100: #dcf1e4;
  --lilac: #a996e6;
  --lilac-100: #ebe5fb;
  --ink: #1d2a44;
  --ink-soft: #4a5876;

  --font-head: "Rubik", "Trebuchet MS", sans-serif;
  --font-body: "Rubik", Verdana, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 40px -18px rgba(19, 48, 94, .35);
  --shadow-sm: 0 8px 20px -10px rgba(19, 48, 94, .3);
  --wrap: 1180px;
  --base: 18px;
}

html.big-text { --base: 21px; }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; font-size: var(--base); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }


/* Buttons */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: .85em 1.6em; min-height: 52px; border-radius: 99px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 rgba(19,48,94,.25);
  transition: transform .2s cubic-bezier(.3,1.6,.6,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 0 rgba(19,48,94,.25); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(19,48,94,.25); }
.btn--sun { --bg: var(--sun); --fg: var(--navy); }
.btn--ghost { --bg: var(--paper); --fg: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-100), 0 5px 0 rgba(19,48,94,.12); }
.btn--block { width: 100%; }

/* Easy read boxes – hidden until "Easy read" is switched on */
.easy {
  display: none; align-items: center; gap: 14px;
  background: var(--sun-100); border: 3px dashed var(--sun);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.4rem;
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
}
.easy p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.easy__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: 30px; }
.easy--dark { background: var(--sun-100); }
/* Always dark text, even inside the blue sections whose paragraphs are light */
.easy p, .easy.easy--dark p { color: var(--navy); }
html.easy-read .easy { display: flex; animation: pop .5s cubic-bezier(.3,1.6,.6,1); }

/* =========================================================
   Top bar + navigation
   ========================================================= */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--sun); }
.topbar svg { width: 16px; height: 16px; fill: var(--sun); }

.a11y { display: flex; gap: 8px; padding: 6px 0; }
.a11y__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .9rem var(--font-body); color: #fff; cursor: pointer;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
  border-radius: 99px; padding: 5px 14px 5px 6px; transition: background .2s, border-color .2s;
}
.a11y__btn:hover { background: rgba(255,255,255,.2); }
.a11y__btn[aria-pressed="true"] { background: var(--sun); color: var(--navy); border-color: var(--sun); }
.a11y__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1;
}
.a11y__icon small { font-size: .8rem; }
.a11y__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.a11y__icon svg .f { fill: var(--navy); stroke: none; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, .88); backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px -14px rgba(19,48,94,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }

.logo { display: inline-flex; flex: none; align-items: center; text-decoration: none; border-radius: 10px; }
.logo__img { display: block; height: 78px; width: auto; }
.footer .logo__img { height: 96px; }

.menu { display: flex; align-items: center; gap: 22px; }
.menu ul { display: flex; gap: 4px; }
.menu ul a {
  position: relative; display: block; padding: 8px 12px; border-radius: 99px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s;
}
.menu ul a:hover, .menu ul a.is-active { background: var(--blue-100); color: var(--blue); }

.burger { display: none; width: 52px; height: 52px; border-radius: 16px; border: 0; background: var(--blue); cursor: pointer; padding: 15px 14px; flex-direction: column; justify-content: space-between; }
.burger span:not(.sr-only) { display: block; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(86vh, 820px); display: grid; align-items: center;
  padding: 90px 0 120px; background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: contents; }
.hero__media::after {
  /* gentle darkening behind the panel; the panel itself carries the contrast */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(-20deg, rgba(19,48,94,.6) 0%, rgba(19,48,94,.15) 45%, transparent 70%);
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; animation: kenburns 16s ease-out both; }
.hero__grid { position: relative; display: flex; justify-content: flex-end; }
.hero__panel {
  position: relative; max-width: 600px; color: #fff;
  background: rgba(19, 48, 94, .94); border-radius: 36px 36px 36px 10px; padding: 36px 40px 34px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { color: #fff; }
.lead { font-size: 1.25rem; max-width: 32ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero .btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .btn--ghost:hover { --bg: #fff; --fg: var(--navy); }

.scribble { position: relative; z-index: 0; white-space: nowrap; color: #fff; }
.scribble svg { position: absolute; z-index: -1; left: -2%; bottom: -.04em; width: 104%; height: .3em; overflow: visible; opacity: .9; }
.scribble path { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s .6s ease-out forwards; }

.house { width: 100%; height: auto; overflow: visible; }
.house .hill { fill: var(--sage); opacity: .55; }
.house .tree { animation: sway 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.house .tree--back { animation-delay: -2s; }
.house { --sand: #ecd2a8; --sand-dark: #d9b580; }
.house [class^="h-"] { stroke: var(--navy); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.h-wall { fill: var(--sand); }
.h-roof { fill: var(--blue); }
.h-trim { fill: #fff; }
.h-glass { fill: var(--blue-100); }
.h-mullions { fill: none; stroke-width: 2.5 !important; }
.h-pot { fill: var(--coral); }
.h-bark { fill: #a4794f; }
.h-leaf { fill: var(--sage); }
.h-seam { fill: none; stroke-width: 2.5 !important; opacity: .45; }
.h-door { fill: var(--coral); }
.h-heart { fill: #fff; stroke: none !important; transform-origin: 61px 354px; animation: beat 2.4s ease-in-out infinite; }
.h-path { fill: var(--sun-100); stroke: none !important; }
.flowers circle { fill: var(--coral); }
.flowers circle:nth-child(even) { fill: var(--sun); }
.win { fill: var(--blue-100); stroke: var(--navy); stroke-width: 3.5; }
.is-in .win { animation: light 1s calc(.5s + var(--i) * .12s) forwards; }
.sun circle { fill: var(--sun); }
.sun__rays { stroke: var(--sun); stroke-width: 5; stroke-linecap: round; transform-origin: 432px 48px; animation: spin 30s linear infinite; }
.bird { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; animation: fly 9s ease-in-out infinite; }


.wave { position: absolute; left: 0; width: 100%; height: 70px; }
.wave--cream { bottom: -1px; fill: var(--cream); }
.wave--top { top: -1px; fill: var(--cream); }

/* =========================================================
   Pillars
   ========================================================= */
.pillars { position: relative; margin-top: -70px; z-index: 2; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  --tone: var(--blue-500); --tint: var(--blue-50);
  background: var(--paper); border-radius: var(--radius); padding: 30px 28px 26px;
  box-shadow: var(--shadow); border-top: 8px solid var(--tone);
  transition: transform .35s cubic-bezier(.3,1.6,.6,1);
}
.pillar--coral { --tone: var(--coral); --tint: var(--coral-100); }
.pillar--sage { --tone: var(--sage); --tint: var(--sage-100); }
.pillar h2 { font-size: 1.4rem; }
.pillar p { color: var(--ink-soft); margin: 0; }
.pillar__icon {
  width: 72px; height: 72px; border-radius: 22px 22px 22px 6px; display: grid; place-items: center;
  background: var(--tint); margin-bottom: 18px;
}
.pillar__icon svg { width: 42px; height: 42px; fill: none; stroke: var(--tone); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   About + timeline
   ========================================================= */
.about { padding: 110px 0 80px; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.about__art { margin-top: 2.2rem; max-width: 480px; }
.stats { display: flex; gap: 14px; margin-top: 1.6rem; flex-wrap: wrap; }
.stat {
  --tone: var(--blue); flex: 1 1 120px;
  background: var(--paper); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
  border-bottom: 6px solid var(--tone);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--tone); }
.stat--sun strong { color: #9a6a00; } /* darker yellow so the number stays readable on white */
.stat span:last-child { font-family: var(--font-head); color: var(--navy); }
.stat--sun { --tone: #e9a510; }
.stat--coral { --tone: #e66a4c; }

.history { background: var(--paper); border-radius: var(--radius); padding: 36px 36px 20px; box-shadow: var(--shadow); }
.timeline { position: relative; margin-top: 1.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 36px; top: 10px; bottom: 30px; width: 4px;
  background: var(--blue-100); border-radius: 4px;
}
.timeline li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding-bottom: 22px; }
.timeline__year {
  position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 46px;
  font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--blue); border-radius: 99px;
}
.timeline li:nth-child(2) .timeline__year { background: var(--sun); color: var(--navy); }
.timeline li:nth-child(3) .timeline__year { background: var(--coral); color: var(--navy); }
.timeline li:nth-child(4) .timeline__year { background: #2e7a50; }
.timeline h4 { font-size: 1.2rem; margin: 8px 0 .3em; }
.timeline p { color: var(--ink-soft); font-size: 1rem; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { padding: 0 0 100px; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.gallery__head .h2 { margin-bottom: .3em; }
.gallery__nav { display: flex; gap: 12px; flex: none; }
.gallery__btn {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); box-shadow: 0 5px 0 rgba(19,48,94,.25); transition: transform .2s cubic-bezier(.3,1.6,.6,1), opacity .2s;
}
.gallery__btn svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn:hover:not(:disabled) { transform: translateY(-3px); }
.gallery__btn:disabled { opacity: .3; cursor: default; }
.gallery__track {
  --gutter: max(16px, calc((100% - var(--wrap)) / 2));
  display: flex; gap: 24px; margin: -10px 0 0; padding: 22px var(--gutter) 56px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.gallery__item { flex: 0 0 clamp(250px, 27vw, 340px); scroll-snap-align: start; }
.gallery__item figure { position: relative; margin: 0; transition: transform .4s cubic-bezier(.3,1.6,.6,1); }
.gallery__item:nth-child(odd) figure { transform: rotate(-1.5deg); }
.gallery__item:nth-child(even) figure { transform: rotate(1.5deg) translateY(10px); }
.gallery__item figure:hover { transform: rotate(0) scale(1.03); }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); background: var(--blue-100); }
.gallery__item figcaption {
  position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 6px 16px; border-radius: 99px; box-shadow: var(--shadow-sm);
}
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.gallery__open:focus-visible { outline: 4px solid var(--sun); outline-offset: 4px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 70px 90px 40px;
  border: 0; background: transparent; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 30, 60, .88); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 16px; max-height: 100%; }
.lightbox__img {
  max-width: min(1100px, 100%); max-height: calc(100vh - 190px); width: auto; height: auto;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: var(--blue-100);
}
.lightbox[open] .lightbox__img { animation: pop .35s cubic-bezier(.3,1.4,.6,1); }
.lightbox__caption { background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 600; padding: 6px 18px; border-radius: 99px; }
.lightbox__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); margin: 0; color: #fff; font-weight: 600; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); transition: transform .2s;
}
.lightbox__btn:hover { transform: scale(1.08); }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 720px) {
  .lightbox { padding: 70px 12px 96px; }
  .lightbox__img { max-height: calc(100vh - 230px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 70px); }
  .lightbox__next { right: calc(50% - 70px); }
  .lightbox__prev:hover, .lightbox__next:hover { transform: scale(1.08); }
}

/* Soft tints only, so the labels read as captions rather than buttons */
.gallery__item:nth-child(5n+1) figcaption { background: var(--sun-100); }
.gallery__item:nth-child(5n+2) figcaption { background: var(--blue-100); }
.gallery__item:nth-child(5n+3) figcaption { background: var(--sage-100); }
.gallery__item:nth-child(5n+4) figcaption { background: #fff; }
.gallery__item:nth-child(5n+5) figcaption { background: var(--coral-100); }

/* =========================================================
   Our Home page – photo grid
   ========================================================= */
.house { padding: 30px 0 100px; }
.house__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; margin-bottom: 44px; }
.house__intro .h2 { margin-bottom: .4em; }
.house__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.house__features li { position: relative; padding-left: 24px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--navy); }
.house__features li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.house__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
/* Two large photos, top left and lower right */
.house__item:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
.house__item:nth-child(6) { grid-area: 3 / 3 / span 2 / span 2; }
/* Wide photos fill two columns in a single row */
.house__item--wide { grid-column: span 2; }
.house__item.house__item--wide img { height: auto; aspect-ratio: 2 / 1; }
.house__item figure { position: relative; height: 100%; margin: 0; transition: transform .35s cubic-bezier(.3,1.6,.6,1); }
.house__item figure:hover { transform: translateY(-6px) rotate(-.6deg); }
.house__item .gallery__open { height: 100%; }
.house__item img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); background: var(--blue-100); }
.house__item figcaption {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 6px 16px; border-radius: 99px; box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.house__item:nth-child(5n+1) figcaption { background: var(--sun-100); }
.house__item:nth-child(5n+2) figcaption { background: var(--blue-100); }
.house__item:nth-child(5n+3) figcaption { background: var(--sage-100); }
.house__item:nth-child(5n+4) figcaption { background: #fff; }
.house__item:nth-child(5n+5) figcaption { background: var(--coral-100); }
@media (max-width: 960px) {
  .house__intro { grid-template-columns: 1fr; }
  .house__grid { grid-template-columns: 1fr 1fr; gap: 18px; grid-auto-flow: row dense; }
  .house__item:nth-child(1), .house__item:nth-child(6) { grid-area: auto; grid-column: span 2; }
}
@media (max-width: 560px) {
  .house__features { grid-template-columns: 1fr; }
  .house__grid { gap: 22px 14px; }
  .house__item figure { display: flex; flex-direction: column; align-items: flex-start; height: auto; }
  .house__item figcaption { position: static; margin-top: 10px; font-size: .9rem; border-radius: 14px; padding: 5px 12px; }
}

/* =========================================================
   Our home + vertical video
   ========================================================= */
.home {
  position: relative; color: #fff; padding: 150px 0 160px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0 120px, transparent 121px),
    radial-gradient(circle at 90% 80%, rgba(255,198,79,.12) 0 180px, transparent 181px),
    var(--blue);
}
.home .h2, .home .h3 { color: #fff; }
.home__text .h2 { font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.2rem); overflow-wrap: anywhere; }
.home p { color: #dbe8fa; }
.home__grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: 56px; align-items: center; }

/* Plain list of room features with small yellow dots */
.chips { display: grid; gap: 10px; margin-top: 1.4rem; }
.chips li { position: relative; padding-left: 26px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: #fff; }
.chips li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.home__more { margin-top: 1.8rem; }

.home__video { position: relative; }
.phone {
  position: relative; aspect-ratio: 9 / 16; width: 100%;
  background: var(--sun); border-radius: 180px 180px 36px 36px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 10px rgba(255,255,255,.12);
  transform: rotate(3deg); transition: transform .5s cubic-bezier(.3,1.6,.6,1);
}
.home__video:hover .phone { transform: rotate(0deg) scale(1.02); }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 166px 166px 24px 24px; overflow: hidden; background: var(--navy); }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone__roof { position: absolute; top: -26px; left: 50%; width: 40px; height: 40px; translate: -50% 0; background: var(--coral); border-radius: 50%; border: 6px solid var(--blue); z-index: 2; }

.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center;
  font-family: var(--font-head); font-size: 1.2rem; color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,198,79,.35) 0 60px, transparent 61px),
    radial-gradient(circle at 75% 70%, rgba(255,139,110,.35) 0 80px, transparent 81px),
    radial-gradient(circle at 20% 85%, rgba(124,195,155,.35) 0 50px, transparent 51px),
    linear-gradient(160deg, var(--blue-500), var(--navy));
}
.video-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(19,48,94,0) 30%, rgba(19,48,94,.45));
  font-family: var(--font-head);
}
.video-play[hidden] { display: none; }
.video-play__circle {
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 0 rgba(255,198,79,.7), 0 14px 30px -10px rgba(0,0,0,.5);
  animation: ping-sun 2.2s ease-out infinite; transition: transform .25s cubic-bezier(.3,1.6,.6,1);
}
.video-play__circle svg { width: 56px; height: 56px; fill: var(--navy); margin-left: 8px; }
.video-play__label { background: #fff; color: var(--navy); font-weight: 600; font-size: 1.1rem; padding: 6px 18px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.video-play:hover .video-play__circle, .video-play:focus-visible .video-play__circle { transform: scale(1.08); }
.video-play:focus-visible { outline: 4px solid var(--sun); outline-offset: -8px; border-radius: 166px 166px 24px 24px; }
.play {
  width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: ping 2.2s ease-out infinite;
}
.play svg { width: 38px; height: 38px; fill: var(--blue); margin-left: 5px; }

.sticker {
  position: absolute; z-index: 3; font-family: var(--font-head); font-weight: 600; line-height: 1.15;
  padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow); color: var(--navy); white-space: nowrap;
}
.sticker--sun { background: #fff; top: 20%; left: -12%; transform: rotate(-8deg); animation: bob 5s ease-in-out infinite; }
.sticker--coral { background: var(--coral); color: var(--navy); bottom: 18%; right: -12%; transform: rotate(6deg); animation: bob 6s -2s ease-in-out infinite; }
.sticker .icon--heart { color: var(--coral); }
.sticker .icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; }

.ticks li { position: relative; padding-left: 46px; margin-bottom: 18px; color: #dbe8fa; }
.ticks li strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 2px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2313305e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* =========================================================
   Supporting people
   ========================================================= */
.support { padding: 110px 0 60px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .easy { text-align: left; }
.section-head > p { color: var(--ink-soft); font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  --tone: var(--blue-500); --tint: var(--blue-50);
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s cubic-bezier(.3,1.6,.6,1), box-shadow .3s;
}
.card::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: var(--tint); border-radius: 50%; transition: transform .5s; z-index: 0; }
.card > * { position: relative; z-index: 1; }
.card--sun { --tone: #e9a510; --tint: var(--sun-100); }
.card--coral { --tone: #e66a4c; --tint: var(--coral-100); }
.card--sage { --tone: #3f9a68; --tint: var(--sage-100); }
.card--lilac { --tone: #7a63c9; --tint: var(--lilac-100); }
.card__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--tint); }
.card__icon svg { width: 46px; height: 46px; fill: none; stroke: var(--tone); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.todo { font-style: italic; color: var(--ink-soft); }

/* =========================================================
   Mission
   ========================================================= */
.mission { padding: 60px 0 110px; }
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.intro { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + .8vw, 1.55rem); font-weight: 500; line-height: 1.4; color: var(--navy); }
.ethos {
  position: relative; margin: 2rem 0 0; padding: 30px 30px 24px; border-radius: var(--radius);
  background: var(--coral-100); color: var(--ink);
}
.ethos::before { content: "”"; position: absolute; right: 20px; top: -30px; font: 700 8rem/1 var(--font-head); color: #ffc5b6; }
.ethos__label { font-family: var(--font-head); font-weight: 600; color: #a33d22; font-size: 1.1rem; }
.signature { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.signature::before { content: "— "; }

.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  background: var(--paper); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s, background .25s;
}
.steps__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-50); color: var(--blue); font-size: 28px; }
.steps li:nth-child(3n+2) .steps__icon { background: var(--sun-100); color: #b87d00; }
.steps li:nth-child(3n) .steps__icon { background: var(--sage-100); color: #2e7a50; }

/* =========================================================
   Inspectorate report
   ========================================================= */
.report { padding: 0 0 110px; }
.report__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 40px; padding: 52px;
}
.report__panel::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px;
  border-radius: 50%; border: 40px solid rgba(255,198,79,.12);
}
.report .h2 { color: #fff; }
.report__rated { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: #fff; }
.report__rated em { font-style: normal; color: var(--sun); }
.report__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 1.4rem; }
.link-light { color: #fff; font-weight: 700; }
.grades { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grade { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px; display: grid; gap: 4px; }
.grade__num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--sun); }
.grade__label { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.grade__word { font-size: .9rem; color: var(--blue-300); }
.grade__meter { display: flex; gap: 5px; margin-top: 8px; }
.grade__meter i { flex: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,.15); }
.grade__meter i.on { background: var(--sun); transform: scaleX(0); transform-origin: left; }
.report__panel.is-in .grade__meter i.on { animation: grow .4s calc(var(--d) * .12s) forwards; }

/* =========================================================
   Team
   ========================================================= */
.team { padding: 0 0 110px; }
/* Three per row, each a third wide; one or two people (or a short last row) sit centred */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 40px; }
.person { flex: 0 1 calc((100% - 2 * 40px) / 3); }
.person { --tone: var(--blue-500); --tint: var(--blue-100); text-align: center; }
.person--sun { --tone: var(--sun); --tint: var(--sun-100); }
.person--coral { --tone: var(--coral); --tint: var(--coral-100); }
.person--sage { --tone: var(--sage); --tint: var(--sage-100); }
/* Oval portrait with a small offset shadow in the person's colour */
.person__avatar {
  position: relative; width: 170px; height: 216px; margin: 14px auto 26px; border-radius: 50%; overflow: hidden;
  background: var(--tone);
  box-shadow: 7px 7px 0 var(--tint);
  --tilt: -3deg;
  transform: rotate(var(--tilt));
  animation: portrait-sway 7s ease-in-out infinite; /* gentle, continuous sway */
}
.person:nth-child(even) .person__avatar { --tilt: 3deg; box-shadow: -7px 7px 0 var(--tint); }
.person:nth-child(2) .person__avatar { animation-delay: -1.8s; }
.person:nth-child(3) .person__avatar { animation-delay: -3.6s; }
.person:nth-child(4) .person__avatar { animation-delay: -5.4s; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.person__avatar span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy);
}
.person--blue .person__avatar span { color: #fff; }
.person h3 { font-size: 1.3rem; margin-bottom: .1em; }
.person__role { font-family: var(--font-head); color: var(--blue); font-weight: 500; margin-bottom: .4em; }
.person__quote { font-size: .95rem; font-style: italic; color: var(--ink-soft); }

/* =========================================================
   News
   ========================================================= */
.news { padding: 100px 0 120px; background: var(--blue-50); border-radius: 60px 60px 0 0; }
.news__grid { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 24px; align-items: stretch; }
.post { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s; }
.post:hover { transform: translateY(-6px) rotate(-.5deg); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sun-100); }
.post__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.post:hover .post__media img { transform: scale(1.05); }
.post__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue); font-size: 64px;
  background: radial-gradient(circle at 25% 30%, var(--sun) 0 18%, transparent 19%), radial-gradient(circle at 80% 75%, var(--coral-100) 0 26%, transparent 27%), var(--sun-100); }
.post { position: relative; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.post:focus-within { outline: 3px solid var(--sun); outline-offset: 4px; }
.post h3 a:focus-visible { outline: none; }
.post h3 a:hover { text-decoration: underline; }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: .9rem; color: var(--ink-soft); margin-bottom: .4em; }
.news__more { text-align: center; margin: 40px 0 0; }
.post h3 { font-size: 1.25rem; }
.post p { font-size: 1rem; color: var(--ink-soft); }
.more { margin-top: auto; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.more span { display: inline-block; transition: transform .2s; }
.more:hover span { transform: translateX(6px); }

.quote-card {
  position: relative; background: var(--blue); color: #fff; border-radius: var(--radius) var(--radius) var(--radius) 6px;
  padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; font-size: 1.1rem;
}
.quote-card__mark { width: 52px; fill: var(--sun); margin-bottom: 12px; }
.quote-card__by { font-family: var(--font-head); font-weight: 600; color: #fff; margin: 0; }

/* =========================================================
   Blog pages
   ========================================================= */
.page-hero { position: relative; background: var(--blue); color: #fff; padding: 70px 0 130px; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; max-width: 22ch; }
.page-hero .lead { color: var(--on-dark, #e3f4fd); max-width: 46ch; }
.page-hero::before { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -120px; border-radius: 50%; border: 40px solid var(--brand); }
.page-hero > .wrap { position: relative; z-index: 1; }
.blog { padding: 30px 0 90px; }
.blog__empty { text-align: center; font-size: 1.2rem; color: var(--ink-soft); padding: 40px 0; }
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-top: -170px; position: relative; z-index: 2;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature__media { position: relative; display: block; min-height: 380px; background: var(--sun-100); }
.feature__media img, .feature__media .post__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feature__body { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature__body h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.feature__body h2 a { color: inherit; text-decoration: none; }
.feature__body h2 a:hover { text-decoration: underline; }
.feature__body p { color: var(--ink-soft); }
.feature__badge { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 600; padding: 2px 12px; border-radius: 99px; margin-right: 8px; }
.blog__more-title { margin: 70px 0 24px; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog--more { background: var(--blue-50); border-radius: 60px 60px 0 0; padding: 80px 0 90px; }

.page-hero--blog { padding-bottom: 210px; }
.page-hero--article { padding-bottom: 150px; }
.article__head { max-width: 860px; }
.back-link { display: inline-flex; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; padding: 6px 16px 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); margin-bottom: 1.4rem; }
.back-link:hover { background: rgba(255,255,255,.26); }
.article__meta { color: var(--on-dark, #e3f4fd); font-weight: 500; }
.article__cover { width: min(1000px, 100% - 32px); margin: -110px auto 0; position: relative; z-index: 2; }
.article__cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: center 30%; border-radius: var(--radius); border: 8px solid #fff; box-shadow: var(--shadow); }
.article__body { width: min(720px, 100% - 32px); margin: 56px auto 0; font-size: 1.1rem; line-height: 1.75; }
.article__body > * { margin: 0; }
.article__body > * + * { margin-top: 1.1em; }
.article__body > h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article__body > h3 { font-size: 1.3rem; margin-top: 1.5em; }
.article__body > h2 + *, .article__body > h3 + * { margin-top: .5em; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: .4em; }
.article__body li::marker { color: var(--blue); }
.article__body a { font-weight: 600; }
.article__body > blockquote {
  margin-top: 1.6em; padding: 26px 30px; border-radius: var(--radius-sm); background: var(--sun-100);
  border-left: 8px solid var(--sun); font-size: 1.2rem; font-weight: 500; color: var(--navy);
}
.article__foot { width: min(720px, 100% - 32px); margin: 50px auto 90px; }

.cta-band { padding: 0 0 120px; }
/* After the light-blue "More news" section, carry its background on so there is no hard edge */
.blog--more + .cta-band { background: var(--blue-50); }
.blog--more { padding-bottom: 60px; }
.cta-band__inner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: var(--blue); color: #fff; border-radius: var(--radius); padding: 38px 44px; box-shadow: var(--shadow);
}
.cta-band__inner::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -150px; border-radius: 50%; border: 34px solid var(--brand); pointer-events: none; }
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band__inner .h3 { color: #fff; }
.cta-band__inner p { margin: 0; color: #dbe8fa; max-width: 60ch; }
.cta-band__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-band__phone { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; }
.cta-band__phone:hover { color: var(--sun); }

/* =========================================================
   Contact
   ========================================================= */
.contact { position: relative; background: var(--blue); color: #fff; padding: 110px 0 150px; }
.contact .h2 { color: #fff; }
.contact p { color: #dbe8fa; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contact__details { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 34px; }
.contact__details > :first-child { margin-top: 0; }
.contact__details .contact__chat { margin-bottom: .6em; }
.contact__chat { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--sun) !important; }
.contact__list { display: grid; gap: 14px; margin-top: 1.4rem; }
.contact__list li { display: flex; align-items: center; gap: 16px; font-size: 1.05rem; }
.contact__list small { display: block; font-size: .85rem; color: #dbe8fa; text-transform: uppercase; letter-spacing: .05em; }
.contact__list a { color: #fff; font-weight: 700; font-size: 1.15rem; }
.contact__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.12); }
.contact__icon svg { width: 24px; height: 24px; fill: var(--sun); }


/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; background: var(--navy); color: #c7d6ee; padding: 40px 0 28px; }
.footer__wave { position: absolute; left: 0; top: -69px; width: 100%; height: 70px; fill: var(--navy); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand p { margin: 1rem 0; max-width: 32ch; }
.footer__h { color: #fff; font-size: 1.1rem; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { color: #c7d6ee; text-decoration: none; }
.footer__links a:hover { color: var(--sun); }
.footer address { font-style: normal; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.1); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--sun); transform: rotate(-8deg); }
.socials svg { width: 20px; fill: #fff; }
.socials a:hover svg { fill: var(--navy); }
.footer__badge { align-self: start; justify-self: start; width: fit-content; background: rgba(255,255,255,.07); border-radius: 20px; padding: 18px 22px 20px; }
.footer__badge-label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-300); }
.footer__badge-logo { display: block; margin-top: 12px; border-radius: 8px; transition: opacity .2s; }
.footer__badge-logo:hover { opacity: .85; }
.footer__badge-logo img { display: block; width: 100%; height: auto; } /* matches the label width */
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .9rem; }
.footer__base p { margin: 0; }
.footer__base a { color: #c7d6ee; }
.to-top { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sun); transition: transform .2s; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 22px; fill: var(--navy); }

/* =========================================================
   Motion
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes light { to { fill: var(--sun); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(calc(100vw + 320px)); } }
@keyframes sway { 50% { transform: rotate(3deg); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.2); } }
@keyframes puff { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-20px) scale(1.2); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -14px); } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes ping-sun { 0% { box-shadow: 0 0 0 0 rgba(255,198,79,.7), 0 14px 30px -10px rgba(0,0,0,.5); } 100% { box-shadow: 0 0 0 30px rgba(255,198,79,0), 0 14px 30px -10px rgba(0,0,0,.5); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes portrait-sway { 0%, 100% { transform: rotate(var(--tilt)) translateY(0); } 50% { transform: rotate(calc(var(--tilt) * -0.4)) translateY(-6px); } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .gallery__track { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .home__grid { grid-template-columns: 1fr 300px; }
  .home__why { grid-column: 1 / -1; }
  .ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .menu ul a { padding: 8px 8px; font-size: .95rem; }
  .menu { gap: 12px; }
}

/* Collapsed menu: on small screens, and whenever the full menu doesn't fit (e.g. with Bigger text) */
html.menu-collapsed .burger { display: flex; }
html.menu-collapsed .menu {
  position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch;
  background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
}
html.menu-collapsed .menu.is-open { opacity: 1; visibility: visible; transform: none; }
html.menu-collapsed .menu ul { flex-direction: column; }
html.menu-collapsed .menu ul a { font-size: 1.15rem; padding: 12px 16px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; margin-top: -140px; }
  .page-hero::before { width: 200px; height: 200px; right: -90px; top: -90px; border-width: 28px; }
  .page-hero--blog { padding-bottom: 180px; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .burger { display: flex; }
  .menu {
    position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu ul { flex-direction: column; }
  .menu ul a { font-size: 1.15rem; padding: 12px 16px; }
  .hero__grid, .about__grid, .mission__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__intro { position: static; }
  .report__panel { grid-template-columns: 1fr; padding: 36px 28px; }
  .person { flex-basis: calc((100% - 40px) / 2); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { display: block; min-height: 0; padding: 0 0 90px; background: var(--blue-100); }
  .hero__media { position: relative; z-index: 0; aspect-ratio: 4 / 3; }
  .hero__media::after { display: none; }
  .hero__grid { margin-top: -48px; display: block; }
  .hero__panel { padding: 32px 24px 28px; border-radius: 28px; }
    .pillars__grid, .cards { grid-template-columns: 1fr 1fr; }
  .pillars__grid .pillar:last-child { grid-column: 1 / -1; }
  .home__grid { grid-template-columns: 1fr; }
  .home__video { width: min(300px, 74%); margin: 30px auto; }
  .sticker--sun { left: -14%; }
  .sticker--coral { right: -12%; }
    .ticks { grid-template-columns: 1fr; }
  .grades { grid-template-columns: 1fr 1fr; }
  .topbar__contact a:last-child { display: none; }
}

@media (max-width: 560px) {
  .pillars__grid, .cards, .news__grid, .form__row, .footer__grid, .blog__grid { grid-template-columns: 1fr; }
  .person { flex-basis: 100%; }
  .feature__body { padding: 28px 24px; }
  .cta-band__inner { padding: 26px 22px; }
  .pillars__grid .pillar:last-child { grid-column: auto; }
  .history { padding: 26px 20px 10px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
  .timeline__year { width: 64px; }
  .timeline::before { left: 30px; }
  .a11y__btn { font-size: .85rem; padding-right: 10px; }
  .logo__img { height: 60px; }
  .form { padding: 24px; transform: none; }
  .report__panel { border-radius: 28px; }
}

@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
