/* ==========================================================================
   Avenor Group — site styles
   Wide, open layout modeled on the reference: thin gutters, big imagery,
   eyebrow + serif headline heads, card rails, one quiet palette.
   To use a licensed serif (e.g. Louize from 205TF), change --font-display.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #fefcf9;
  --bg-cream: #f7f5f2;
  --bg-beige: #e2e2d5;
  --ink: #16201a;
  --ink-2: #333d36;
  --ink-3: #7c8479;
  --green: #132e1d;
  --line: rgba(19, 46, 29, 0.2);
  --line-strong: rgba(19, 46, 29, 0.75);
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 1.6vw, 32px);
  --section: clamp(72px, 7vw, 136px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 1.1s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; background: linear-gradient(#101512 50%, #fefcf9 50%); }
body {
  margin: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
body.modal-open { overflow: hidden; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 22px;
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.92); }
.h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 2.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: var(--white); }
.h2--wide { max-width: 30ch; }
.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.body { margin: 0; max-width: 44ch; font-size: clamp(15px, 1vw, 18px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--green); color: var(--bg); border-color: var(--green); }
.btn--sm { padding: 10px 18px; }
.btn--solid { background: var(--green); color: var(--bg); border-color: var(--green); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn__arrow { margin-left: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; margin-bottom: 10px; }
.logo__word { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: 0.26em; text-transform: uppercase; padding-left: 0.26em; }
.logo__sub { margin-top: 6px; font-size: 8px; font-weight: 500; letter-spacing: 0.5em; text-transform: uppercase; padding-left: 0.5em; opacity: 0.8; }
.logo--hero { color: var(--white); }
.logo--hero .logo__mark { width: 38px; height: 38px; }
.logo--hero .logo__word { font-size: 30px; }
.logo--sm { flex-direction: row; gap: 10px; }
.logo--sm .logo__mark { width: 22px; height: 22px; margin: 0; }
.logo--sm .logo__word { font-size: 18px; }
.logo--foot { align-items: flex-start; }
.logo--foot .logo__word, .logo--foot .logo__sub { padding-left: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1880px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--beige { background: var(--bg-beige); }
.section--cream { background: var(--bg-cream); }

/* Section head: eyebrow + headline left, aside right (reference pattern) */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 3.6vw, 64px);
}
.head__aside { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 420px; }
.list { justify-self: end; align-self: start; min-width: 220px; }
.list li { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 0.9vw, 16px); line-height: 1.8; color: var(--ink-2); }
.list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------- Sticky top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(254, 252, 249, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.topbar.is-visible { transform: translateY(0); }
.topbar { padding-top: env(safe-area-inset-top, 0px); }
.topbar__inner {
  max-width: 1880px; margin: 0 auto; padding: 0 var(--gutter);
  height: 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.topbar__inner > .btn { justify-self: end; }
.topbar__nav { display: flex; gap: 32px; }
.topbar__nav a, .pillnav a { position: relative; font-size: clamp(14px, 0.85vw, 16px); font-weight: 500; color: var(--ink); }
.topbar__nav a::after, .pillnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.topbar__nav a:hover::after, .pillnav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 var(--gutter) clamp(96px, 12vh, 150px);
  overflow: visible;
  color: var(--white);
  background: #101512;
}
.hero__media { position: absolute; inset: 0; top: calc(-120px - env(safe-area-inset-top, 0px)); overflow: hidden; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero.is-ready .hero__media { opacity: 1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-active { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; top: calc(-120px - env(safe-area-inset-top, 0px)); background: linear-gradient(to bottom, rgba(10, 14, 11, 0.42) 0%, rgba(10, 14, 11, 0.05) 30%, rgba(10, 14, 11, 0.24) 55%, rgba(10, 14, 11, 0.74) 100%); }
.hero__top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: calc(30px + env(safe-area-inset-top, 0px)) var(--gutter) 30px; display: flex; justify-content: center; }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 1000px; text-align: center; }
.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 76px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}
.hero__sub { margin: 0 auto 36px; max-width: 52ch; font-size: clamp(15px, 1.05vw, 19px); color: rgba(255, 255, 255, 0.9); text-wrap: balance; }
.pillnav {
  display: inline-flex; align-items: center; gap: 32px;
  padding: 12px 12px 12px 30px;
  background: var(--bg);
  border-radius: 3px;
  color: var(--ink);
}
.hero__top, .hero__title, .hero__sub, .pillnav, .hero__pause {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.hero__down { opacity: 0; transition: opacity var(--slow) var(--ease); }
.hero.is-ready :is(.hero__top, .hero__title, .hero__sub, .pillnav, .hero__pause) { opacity: 1; transform: none; }
.hero.is-ready .hero__down { opacity: 1; }
.hero.is-ready .hero__top { transition-delay: 0.15s; }
.hero.is-ready .hero__title { transition-delay: 0.4s; }
.hero.is-ready .hero__sub { transition-delay: 0.55s; }
.hero.is-ready .pillnav { transition-delay: 0.7s; }
.hero.is-ready :is(.hero__pause, .hero__down) { transition-delay: 0.9s; }
.hero__pause {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(10, 14, 11, 0.35); color: var(--white);
}
.hero__pause .ico-play { display: none; }
.hero__pause[aria-pressed="true"] .ico-pause { display: none; }
.hero__pause[aria-pressed="true"] .ico-play { display: block; }
.hero__down { position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; color: var(--white); }
.hero.is-ready .hero__down svg { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Media blocks ---------- */
.wide { position: relative; overflow: hidden; aspect-ratio: 21 / 9; background: rgba(19, 46, 29, 0.06); }
.wide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.badge {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(22, 32, 26, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--white);
}

/* ---------- Tiles (image + title + italic subline) ---------- */
.tile { display: block; }
.tile__media { overflow: hidden; background: rgba(19, 46, 29, 0.06); aspect-ratio: 4 / 3; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.035); }
.tile__title { margin: 16px 0 2px; font-size: clamp(15px, 1vw, 18px); font-weight: 500; color: var(--ink); }
.tile__sub { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(16px, 1.1vw, 20px); line-height: 1.35; color: var(--ink-2); }
.tile__meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; font-size: clamp(13px, 0.85vw, 15px); color: var(--ink-3); }
.tile__meta span + span::before { content: "\00B7"; margin: 0 8px; }

/* Rail: tall cards, ~4 visible, runs to the edge */
.rail-wrap { padding: 0 var(--gutter); max-width: 1880px; margin: 0 auto; }
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > .tile { flex: 0 0 calc((100% - 30px) / 4); scroll-snap-align: start; }
.rail .tile__media { aspect-ratio: 3 / 4; }
.rail-nav { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.rail-btn {
  width: 32px; height: 24px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); border-radius: 2px;
  transition: background-color 0.3s, color 0.3s;
}
.rail-btn:hover { background: var(--green); color: var(--bg); }
.rail-btn:disabled { opacity: 0.35; cursor: default; background: var(--bg); color: var(--ink); }

/* Six-panel grid */
.six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 10px; }
.six .tile__media { aspect-ratio: 16 / 11; }

/* Four practices */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.four .tile__media { aspect-ratio: 3 / 4; }
.tile__list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.tile__list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: clamp(14px, 0.9vw, 16px); color: var(--ink-2); }

/* Three points under the About image */
.points { margin-top: clamp(40px, 3.6vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.points li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.points h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 1.6vw, 30px); line-height: 1.2; color: var(--ink); }
.points p { margin: 0; max-width: 36ch; color: var(--ink-2); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.steps__num { display: block; margin-bottom: clamp(32px, 4vw, 72px); font-family: var(--font-display); font-size: clamp(40px, 3.4vw, 64px); line-height: 1; color: var(--ink-3); }
.steps h3 { margin: 0 0 8px; font-size: clamp(16px, 1.05vw, 19px); font-weight: 500; color: var(--ink); }
.steps p { margin: 0; max-width: 30ch; color: var(--ink-2); }

/* Three-up */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.three .tile__media { aspect-ratio: 4 / 5; }

/* ---------- Full bleed ---------- */
.bleed { position: relative; min-height: 92vh; overflow: hidden; background: #101512; display: flex; justify-content: center; }
.bleed__media { position: absolute; inset: 0; }
.bleed__media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.12); will-change: transform; }
.bleed__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 14, 11, 0.1) 0%, rgba(10, 14, 11, 0.55) 30%, rgba(10, 14, 11, 0.5) 60%, rgba(10, 14, 11, 0.12) 100%), linear-gradient(to bottom, rgba(10, 14, 11, 0.3) 0%, rgba(10, 14, 11, 0) 60%); }
.bleed__content { position: relative; z-index: 1; width: min(640px, 100% - 2 * var(--gutter)); margin-left: 12%; padding-top: clamp(64px, 7vw, 120px); }
.bleed__content .h2 { font-size: clamp(34px, 3vw, 58px); line-height: 1.1; max-width: 18ch; }
.bleed__sub { margin: 20px 0 0; max-width: 42ch; font-size: clamp(16px, 1.1vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }

/* ---------- Family block (reference "Discovery family") ---------- */
.family {
  margin-top: clamp(40px, 3.6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line-strong);
}
.family__text { padding: 32px 48px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.family__media { overflow: hidden; aspect-ratio: 1 / 1; margin-top: 10px; background: rgba(19, 46, 29, 0.06); }
.family__media img { width: 100%; height: 100%; object-fit: cover; }
.details { margin: 12px 0 0; width: 100%; max-width: 440px; }
.details > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.details dt { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding-top: 4px; }
.details dd { margin: 0; color: var(--ink); }
.details a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- Pre-footer ---------- */
.prefoot { padding-bottom: clamp(56px, 5vw, 96px); }
.prefoot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prefoot .tile__media { aspect-ratio: 2 / 1; }
.prefoot .tile__sub { font-family: var(--font-body); font-style: normal; font-size: clamp(14px, 0.95vw, 17px); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: clamp(64px, 6vw, 112px) 0 32px; border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
}
.footer__find { grid-column: 2; }
.footer__find + .footer__col { grid-column: 4; }
.footer__col + .footer__col { grid-column: 5; }
.footer .eyebrow { margin-bottom: 28px; }
.findlist { margin-bottom: 72px; }
.findlist li > * {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line-strong);
  font-size: clamp(14px, 0.9vw, 16px); font-weight: 500; color: var(--ink); text-align: left;
  transition: color 0.3s;
}
.findlist li:last-child > * { border-bottom: 1px solid var(--line-strong); }
.findlist li > * svg { transition: transform 0.4s var(--ease); }
.findlist li > *:hover { color: var(--green); }
.findlist li > *:hover svg { transform: translateX(4px); }
.footer__label { margin: 0 0 10px; font-size: clamp(14px, 0.9vw, 16px); font-weight: 500; color: var(--ink); }
.footer__mission { margin: 0; max-width: 34ch; font-family: var(--font-display); font-size: clamp(18px, 1.2vw, 22px); line-height: 1.4; color: var(--ink-2); }
.footer__col li { margin-bottom: 10px; font-size: clamp(14px, 0.9vw, 16px); color: var(--ink); }
.footer__col a:hover { color: var(--green); }
.footer__bottom { margin-top: clamp(64px, 7vw, 128px); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: clamp(13px, 0.85vw, 15px); color: var(--ink-2); }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 32px; }
.footer__bottom a { color: var(--ink); }

/* ---------- Modal form ---------- */
.modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 3px;
  background: var(--bg); color: var(--ink-2);
  box-shadow: 0 30px 80px rgba(10, 14, 11, 0.3);
  overflow: auto;
}
.modal::backdrop { background: rgba(16, 21, 18, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn 0.45s var(--ease); }
.modal[open]::backdrop { animation: fadeIn 0.45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__inner { position: relative; padding: clamp(28px, 4vw, 52px); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background-color 0.3s; }
.modal__close:hover { background: var(--bg-beige); }
.modal .h3 { margin-bottom: 32px; }
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.field { display: block; }
.field span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font: inherit; color: var(--ink);
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field textarea::placeholder { color: var(--ink-3); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316201a' stroke-width='1.25'/%3E%3C/svg%3E") no-repeat right center;
}
.field :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--green); border-bottom-width: 2px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__status { margin: 0; font-size: 14px; color: var(--ink-2); }
.form__status.is-error { color: #8a2a1c; }
.form__done .body { margin: 16px 0 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Thank-you page (no-JS fallback) */
.thanks { min-height: 100svh; display: flex; flex-direction: column; }
.thanks__top { padding: 30px var(--gutter); display: flex; justify-content: center; }
.thanks__body { flex: 1; display: flex; align-items: center; }
.thanks__body .body { margin: 22px 0 32px; }

/* ---------- Reveal on scroll ---------- */
.reveal:not(.stagger) { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal:not(.stagger).in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; } .stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(5) { --i: 4; } .stagger > :nth-child(6) { --i: 5; }
.reveal:not(.in) .wide img, .reveal:not(.in) .tile__media img { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rail > .tile { flex-basis: calc((100% - 20px) / 3); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .footer__brand, .footer__find { grid-column: 1 / -1; }
  .footer__find + .footer__col { grid-column: 1; }
  .footer__col + .footer__col { grid-column: 2; }
  .findlist { margin-bottom: 40px; }
}
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__inner { grid-template-columns: 1fr auto; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .head__aside, .list { justify-self: start; }
  .family { grid-template-columns: minmax(0, 1fr); }
  .family__text { padding-right: 0; }
  .bleed__content { margin-left: 0; }
  .six, .three, .four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wide { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .rail > .tile { flex-basis: 80%; }
  .six { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .three, .four, .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prefoot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pillnav a { display: none; }
  .pillnav { padding: 10px; }
  .hero__title { font-size: clamp(34px, 9vw, 44px); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .logo--hero .logo__word { font-size: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero.is-ready .hero__down svg { animation: none; }
  .hero__media, .hero__video, .hero__top, .hero__title, .hero__sub, .pillnav, .hero__pause, .hero__down,
  .reveal:not(.stagger), .stagger > *, .tile__media img, .wide img, .topbar { transition: none; }
  .reveal:not(.stagger), .stagger > * { opacity: 1; transform: none; }
  .reveal:not(.in) .wide img, .reveal:not(.in) .tile__media img { transform: none; }
  .bleed__media img { transform: scale(1.02); }
  .modal[open], .modal[open]::backdrop { animation: none; }
}
