:root {
  --paper: #fff8f1;
  --paper-deep: #f4efe6;
  --ink: #1c2b24;
  --ink-soft: #4d5c54;
  --line: #eadfce;
  --white: #ffffff;
  --green: #0f6b45;
  --green-dark: #0b5436;
  --green-deep: #0e3d2c;
  --mint: #e7f6ee;
  --gold: #8a5a12;
  --gold-soft: #fff3d8;
  --coral: #c63b32;
  --coral-soft: #fdecea;
  --sky: #e7f2fb;
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-soft: var(--mint);
  --shadow: 0 18px 40px rgba(28, 43, 36, 0.07);
  --shadow-hover: 0 22px 46px rgba(28, 43, 36, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Nunito", "Trebuchet MS", sans-serif;
  --max: 1120px;
  --header: 5.4rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --ease: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(820px 380px at 110% -8%, rgba(247, 190, 104, 0.34), transparent 62%),
    radial-gradient(640px 340px at -12% 12%, rgba(117, 214, 156, 0.28), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  font-weight: 800;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

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

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  margin-top: 3.25rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38rem;
}

.note {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.path {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.84em;
  background: var(--paper-deep);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff8f1;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--ease), background var(--ease);
}

.header-bar {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 64px;
  transition: opacity var(--ease);
}

.brand:hover img {
  opacity: 0.8;
}

.header-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  min-width: 40px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  flex: 0 0 auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}

.header-wa:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }

.close-label { display: none; }
.site-header.is-open .open-label { display: none; }
.site-header.is-open .close-label { display: inline; }

.site-nav {
  display: none;
  gap: 0.1rem;
  align-items: center;
}

.site-header.is-open .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header);
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1.25rem 2rem;
  background: var(--paper);
  overflow: auto;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--ease), color var(--ease);
}

.nav-link:hover {
  background: rgba(255, 252, 248, 0.8);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  background: var(--green);
  color: white;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--green-dark);
  color: white;
}

.hero {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: 0.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2.85rem, 6vw, 4.35rem);
  max-width: 11ch;
}

.hero .lede {
  font-size: 1.28rem;
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border-color: #b7d8c6;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.hero-figure {
  margin: 0;
}

.preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-figure {
  position: relative;
  z-index: 0;
  justify-self: end;
  width: min(100%, 400px);
  padding: 1.1rem 0.35rem 0.15rem 1.15rem;
}

.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.hero-figure::before {
  width: 108px;
  aspect-ratio: 1;
  background: #f7be68;
  top: 0;
  right: 0;
  z-index: 0;
}

.hero-figure::after {
  width: 86px;
  aspect-ratio: 1;
  background: #75d69c;
  bottom: 18%;
  left: 0;
  z-index: 0;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 500px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px 28px 88px 28px;
  box-shadow: var(--shadow);
}

.home-story {
  display: grid;
  gap: 2.5rem;
}

.section-intro {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.35rem;
  text-align: center;
}

.section-intro p:last-child,
.home-story .section-intro {
  margin-bottom: 0;
}

.section-intro p {
  margin-inline: auto;
}

.photo-row {
  display: grid;
  gap: 0.75rem;
}

.photo-row img,
.photo-pair img,
.intro-photo img,
.story-photo img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
}

/* Square photos cover-cropped to 4/3. Keep the top of the frame so heads stay in view. */
.object-top {
  object-position: center top;
}

.photo-row img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.preview-grid a:hover img {
  transform: scale(1.035);
}

.curriculum-layout,
.intro-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-pair img {
  aspect-ratio: 1;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.intro-photo {
  margin: 0;
  max-width: 420px;
}

.intro-photo img {
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.snack-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 7.5rem));
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.snack-strip img {
  display: block;
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.why-cards {
  display: grid;
  gap: 0.9rem;
  align-items: stretch;
}

.point {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
}

.point-mint { background: var(--mint); border-color: transparent; }
.point-gold { background: var(--gold-soft); border-color: transparent; }
.point-coral { background: var(--coral-soft); border-color: transparent; }

.point p:last-child,
.card p:last-child,
.programme p:last-of-type {
  margin-bottom: 0;
}

.split,
.prose-grid,
.card-grid,
.quote-grid,
.preview-grid,
.map-grid,
.contact-grid,
.footer-grid,
.mark-section {
  display: grid;
  gap: 1.25rem;
}

.card,
.programme,
.quote,
.contact-card,
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.programme,
.quote,
.contact-card,
.map-card {
  padding: 1.35rem 1.4rem 1.45rem;
}

.programme {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.programme:hover,
.card:hover,
.map-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
  border-color: #ddd4c9;
}

.more {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.more::after {
  content: " →";
  transition: transform var(--ease);
}

.programme:hover .more::after {
  display: inline-block;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}

.preview-grid {
  grid-template-columns: 1fr 1fr;
}

.preview-grid a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.preview-grid img {
  aspect-ratio: 1;
}

.quote-grid {
  margin-top: 0;
}

.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.quote blockquote {
  margin: 0;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.quote figcaption {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.after-grid {
  margin-top: 1rem;
}

.page-hero {
  padding: 2.75rem 0 0;
  max-width: 46rem;
}

.page-hero + .wrap,
.page-hero + section {
  margin-top: 2rem;
}

.page-hero.wrap {
  max-width: none;
}

.page-hero .lede,
.page-hero h1 {
  max-width: 40rem;
}

.prose {
  max-width: 68ch;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.chip-row span {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.65rem;
  counter-reset: area;
}

.area-list li {
  counter-increment: area;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  position: relative;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.area-list li::before {
  content: counter(area, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
}

.card-yellow { background: var(--gold-soft); border-color: transparent; }
.card-green { background: var(--mint); border-color: transparent; }
.card-blue { background: var(--sky); border-color: transparent; }

.card h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.story-photo {
  margin: 0;
  max-width: 500px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-photo img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.band {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: var(--space-8) auto 0.5rem;
  padding: 1.6rem 1.5rem;
  border-radius: 24px;
  background: var(--green-deep);
  color: #f7f3ec;
  border: 0;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.4rem;
}

.band p,
.band h2 {
  color: #f7f3ec;
}

.band .btn-secondary {
  background: white;
  color: var(--green-deep);
  border-color: white;
}

.band h2 {
  margin-bottom: 0.4rem;
}

.band p:last-child {
  margin-bottom: 0;
}

.band .btn-secondary {
  background: var(--white);
}

.notice {
  background: var(--accent-soft);
  border: 1px solid #ead5cc;
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.25rem;
}

.notice p:last-child {
  margin: 0;
}

.contact-grid {
  align-items: start;
}

.enquiry {
  display: grid;
  gap: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  gap: 0.95rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.optional {
  font-weight: 500;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #ddd4c9;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #cfc4b6;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
  margin: 0;
}

.contact-card {
  background: var(--mint);
  border-color: transparent;
}

.contact-card h3 {
  margin-top: 1.4rem;
}

.phone-link {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.phone-link:hover {
  color: var(--accent);
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  background: var(--paper-deep);
}

.site-footer {
  margin-top: var(--space-9);
  padding: var(--space-8) 0 var(--space-7);
  background: var(--green-deep);
  color: #f7f3ec;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 0.45rem 0.75rem 0.4rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.footer-frame {
  width: 100%;
  height: 168px;
  border: 0;
  border-radius: 14px;
  background: #d7efe3;
}

.footer-grid {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.footer-name,
.footer-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
  color: #fff;
}

.footer-heading {
  margin-top: 1.6rem;
}

.site-footer a {
  color: #f6e2b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.site-footer p {
  color: #f7f3ec;
}

.footer-place {
  margin-bottom: 0.2rem;
}

.footer-place span {
  font-weight: 600;
  color: #d7c39a;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.95rem;
}

.copyright {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7cfc4;
  font-size: 0.92rem;
}

.js .section,
.js .band {
  opacity: 0;
  transform: translateY(12px);
}

.js .section.is-in,
.js .band.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 700px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .brand img {
    height: 48px;
  }

  .header-wa span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-wa {
    padding: 0;
    width: 40px;
  }

  .hero {
    padding-top: var(--space-5);
    gap: var(--space-5);
  }

  .hero h1 {
    max-width: none;
  }

}

@media (min-width: 720px) {
  .card-grid-2,
  .map-grid,
  .field-row,
  .quote-grid,
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-split {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  }

  .intro-split-photo-end {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  }

  .curriculum-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .area-list {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    margin-top: 4.5rem;
  }

  .photo-row,
  .why-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    padding-top: 2.75rem;
    padding-bottom: 0;
  }

  .hero-figure img {
    aspect-ratio: 4 / 5;
  }

  .contact-grid,
  .mark-section {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .prose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .card-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr 0.85fr;
    gap: 2.5rem;
  }

  .footer-heading {
    margin-top: 0;
  }

  .footer-grid div > .footer-heading + .footer-heading,
  .footer-grid .footer-heading:not(:first-of-type) {
    margin-top: 1.6rem;
  }

  .band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 1.8rem 2rem;
  }

  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 40px;
  }
}

@media (min-width: 1200px) {
  .menu-btn {
    display: none;
  }

  .site-nav,
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
  }
}

.review-band {
  padding: 2.75rem 0 2.4rem;
  background: #f3faf6;
}

.review-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.trust-badge {
  display: inline-flex;
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.review-totals {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.review-actions {
  margin: 0;
}

.marquee {
  display: grid;
  gap: 0.9rem;
}

.marquee-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: review-forward 55s linear infinite;
}

.marquee-row.is-reverse .marquee-track {
  animation-name: review-reverse;
  animation-duration: 68s;
}

.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0.35rem 0.9rem 0.35rem 0;
  list-style: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  width: min(22.5rem, 78vw);
  min-height: 17.5rem;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.review-card:hover,
.review-card:focus-visible {
  border-color: #b7d8c6;
  color: inherit;
}

.review-stars {
  color: #e4d3a8;
  letter-spacing: 0.12em;
  font-size: 1rem;
  line-height: 1;
}

.review-stars .star-on {
  color: #e2a317;
}

.review-quote {
  flex: 1;
  margin: 0.7rem 0 0.9rem;
  font-size: 1rem;
  line-height: 1.45;
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}

.review-author,
.review-branch,
.review-google {
  display: block;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.review-branch {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

.review-google {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.review-google svg {
  display: block;
}

.is-compact .review-card {
  min-height: 14.5rem;
}

@keyframes review-forward {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes review-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (min-width: 800px) {
  .review-intro {
    grid-template-columns: 1.4fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .section,
  .js .band,
  .marquee-track {
    opacity: 1;
    transform: none;
  }

  .marquee-row {
    overflow-x: auto;
    mask-image: none;
  }

  .marquee-set[aria-hidden="true"] {
    display: none;
  }
}
