/* Ripps & Co. — site stylesheet
   Look: a Knightsbridge private office. Warm paper, ink, the logo's grey, black-and-white photography.
   Type: Cormorant Garamond (display), Jost (text). */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f5f0;
  --paper-deep: #eeeae2;
  --ink: #1a1918;
  --ink-soft: #4b4945;
  --stone: #878786;
  --line: #d9d4ca;
  --night: #1c1b19;
  --on-night: #f1eee8;
  --on-night-soft: #bdb8ae;
  --error: #9b2c1f;
  --success: #2f5d3a;

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.2vw, 5.25rem);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1240px;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--stone) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  caret-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta :focus-visible { outline-color: var(--on-night); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: #000; box-shadow: 0 10px 22px -14px rgba(26, 25, 24, 0.55); }
.button--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button--quiet:hover { border-color: var(--ink); }
.button--light { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
.button--light:hover { background: #fff; border-color: #fff; }

/* Text link that draws its underline */
.link-draw,
.division__more {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
  padding-bottom: 2px;
}
.link-draw:hover,
.division__link:hover .division__more { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}
.site-logo { display: block; flex: none; }
.site-logo img { width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { display: flex; gap: 1.9rem; }
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.4s var(--ease-out);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.site-nav__client {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 2.25rem;
  border-left: 1px solid var(--line);
}
.site-nav__client svg { flex: none; }
.site-nav a.site-nav__client { background: none; }
.site-nav__client span {
  padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.site-nav__client:hover span,
.site-nav__client[aria-current="page"] span { background-size: 100% 1px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 10px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 60; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) max(var(--gutter), env(safe-area-inset-right, 0px)) 3rem max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0.5rem; }
  .site-nav__list a {
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
  }
  .site-nav__client { padding-left: 0; border-left: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .site-logo { position: relative; z-index: 60; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 4.5vw, 4rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem 4rem;
  align-items: end;
}
.hero__title {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 21ch;
}
.hero__aside { display: grid; gap: 1.75rem; padding-bottom: 0.5rem; }
.hero__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 36ch; line-height: 1.55; }
.hero__media {
  margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.hero__media img {
  width: 100%;
  height: clamp(240px, 42vh, 480px);
  object-fit: cover;
  object-position: center 55%;
  animation: settle 2.2s var(--ease-out) both;
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* ---------- Statement ---------- */
.statement { padding-block: var(--section); }
.statement__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 4rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.statement__title { font-size: var(--step-2); font-style: italic; font-weight: 500; color: var(--ink-soft); }
.statement__text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.statement__meta {
  grid-column: 2;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--ink-soft); max-width: 40ch; }

/* ---------- Divisions ---------- */
.divisions { background: var(--paper-deep); padding-block: var(--section); }
.division-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.division__link {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.division__link:hover { transform: translateY(-2px); }
.division__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--line);
  margin-bottom: 0.5rem;
}
.division__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.division__link:hover .division__media img { transform: scale(1.03); }
.division__title { font-size: var(--step-2); }
.division__text { color: var(--ink-soft); max-width: 34ch; }
.division__more {
  justify-self: start;
  margin-top: 0.25rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Principles ---------- */
.principles { padding-block: var(--section); }
.principle-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.principle { border-top: 1px solid var(--ink); padding-top: 1.5rem; display: grid; gap: 0.75rem; align-content: start; }
.principle h3 { font-size: var(--step-2); }
.principle p { color: var(--ink-soft); max-width: 34ch; }

/* ---------- Call to action ---------- */
.cta { background: var(--night); color: var(--on-night); padding-block: clamp(4rem, 8vw, 7rem); }
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: end;
}
.cta__title { font-size: var(--step-3); margin-bottom: 1rem; }
.cta__text { color: var(--on-night-soft); max-width: 40ch; }
.cta__actions { display: grid; gap: 1.5rem; justify-items: start; }
.cta__direct { display: grid; gap: 0.25rem; color: var(--on-night-soft); }
.cta__direct a { text-decoration-color: rgba(241, 238, 232, 0.35); }
.cta__direct a:hover { color: var(--on-night); text-decoration-color: currentColor; }
.cta ::selection { background: var(--on-night); color: var(--night); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-top: clamp(3.5rem, 7vw, 6rem); font-size: 1rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem 3rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.site-footer__brand img { width: 120px; margin-bottom: 1.25rem; }
.site-footer__brand p { color: var(--ink-soft); max-width: 26ch; }
.site-footer__heading {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.site-footer__col p,
.site-footer__col li { color: var(--ink-soft); }
.site-footer__col ul { display: grid; gap: 0.35rem; }
.site-footer a { text-decoration-color: var(--line); }
.site-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 4rem;
  align-items: end;
}
.page-hero__title { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.018em; max-width: 14ch; }
.page-hero__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 38ch; line-height: 1.55; }
.page-hero__media {
  margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.page-hero__media img {
  width: 100%;
  height: clamp(220px, 40vh, 460px);
  object-fit: cover;
  animation: settle 2.2s var(--ease-out) both;
}

.content { padding-block: var(--section); }
.page-hero--text + .content { padding-top: clamp(3rem, 6vw, 5rem); }
.page-hero--text .page-hero__inner::after { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: clamp(1rem, 3.5vw, 2.5rem); }

.content__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 4rem;
}
.content__grid + .content__grid { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.content__title { font-size: var(--step-3); }
.prose { display: grid; gap: 1.25rem; max-width: 64ch; }
.prose p { color: var(--ink-soft); }
.prose p.prose__lead { font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); line-height: 1.32; color: var(--ink); }
.prose h3 { font-size: var(--step-2); margin-top: 1rem; }
.prose a { text-decoration-color: var(--stone); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.65rem; height: 1px; background: var(--ink); }

.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.focus-list li { border-top: 1px solid var(--ink); padding-top: 1.25rem; display: grid; gap: 0.5rem; }
.focus-list h3 { font-size: var(--step-2); }
.focus-list p { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2rem 4rem; align-items: center; }
.split__media { overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.band { background: var(--paper-deep); }

.next-divisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem 5rem;
  align-items: start;
}
.contact-details { display: grid; gap: 2rem; padding-top: 0.25rem; }
.contact-details h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.contact-details p { color: var(--ink-soft); }
.contact-details a { text-decoration-color: var(--stone); }
.contact-details a:hover { color: var(--ink); text-decoration-color: currentColor; }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--ink-soft); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input:hover,
.field textarea:hover { border-color: var(--stone); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 25, 24, 0.12); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9375rem; }
.form__note { font-size: 0.9375rem; color: var(--ink-soft); }
.form__note a { text-decoration-color: var(--stone); }
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select:hover { border-color: var(--stone); }
.field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 25, 24, 0.12); }
.contact-form { display: grid; gap: 2rem; }
.notice__list { display: grid; gap: 0.25rem; }
.notice__list a { color: var(--error); text-decoration-color: currentColor; }
.notice a { text-decoration-color: var(--stone); }
.notice:focus { outline: none; }
.notice:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__again { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.form__again a { color: var(--ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border: 1px solid var(--line);
  border-left-width: 1px;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  display: grid;
  gap: 0.35rem;
}
.notice--success { border-color: var(--success); }
.notice--error { border-color: var(--error); }
.notice h2 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
.notice p { color: var(--ink-soft); }

/* ---------- Client access ---------- */
.access { padding-block: clamp(4rem, 10vw, 9rem); }
.access__panel {
  max-width: 40rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 2.5rem;
}
.access__icon { color: var(--ink-soft); }
.access__panel p { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(5rem, 12vw, 10rem); }
.not-found__inner { display: grid; gap: 1.75rem; max-width: 42rem; }

/* ---------- Reveal (only for content below the first screen) ---------- */
.will-reveal { opacity: 0; transform: translateY(16px); }
.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner,
  .page-hero__inner,
  .section-head,
  .statement__inner,
  .content__grid,
  .cta__inner,
  .contact-grid,
  .split { grid-template-columns: 1fr; }
  .statement__meta { grid-column: 1; }
  .division-list { grid-template-columns: 1fr 1fr; }
  .principle-list { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 1.0625rem; }
  .site-logo img { width: 116px; }
  .division-list,
  .focus-list,
  .next-divisions,
  .form__row { grid-template-columns: 1fr; }
  .hero__media img { height: auto; aspect-ratio: 3 / 2; }
  .page-hero__media img { height: auto; aspect-ratio: 3 / 2; }
  .actions .button { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .will-reveal { opacity: 1; transform: none; }
  .button:hover, .division__link:hover { transform: none; }
  .division__link:hover .division__media img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
