/* The Fitness Den: one stylesheet for every page.
   Tokens first, then base, layout, components, pages, motion. Mobile first. */

:root {
  --green: #2d5016;
  --green-2: #2f5a1f;
  --green-ink: #1f3a0f;
  --sage: #cfdcbd;
  --ink: #161814;
  --charcoal: #1d201b;
  --muted: #565b51;
  --bg: #f4f2ec;
  --surface: #e9e6dc;
  --line: rgba(22, 24, 20, 0.14);
  --line-light: rgba(244, 242, 236, 0.22);
  --white: #fbfaf6;

  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --nav: 64px;
  --gut: 20px;
  --wrap: 1240px;
  --pad: 88px;
  --r: 2px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) { :root { --gut: 40px; --pad: 112px; } }
@media (min-width: 1024px) { :root { --nav: 76px; --gut: 64px; --pad: 136px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--white); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r); }
.on-dark :focus-visible, .footer :focus-visible, .hero :focus-visible { outline-color: var(--sage); }

.skip-link {
  position: absolute; left: var(--gut); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only {
  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: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type ---------- */
.label {
  font: 600 13px/1.3 var(--f-text);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.on-dark .label { color: var(--sage); }
.display {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 0.9;
}
.h2 {
  font: 700 clamp(40px, 6.4vw, 84px)/0.92 var(--f-display);
  text-transform: uppercase; letter-spacing: 0.005em;
}
.h3 { font: 700 26px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 36ch; }
.measure { max-width: 60ch; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--sage); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Links and buttons ---------- */
.link {
  text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
              linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
  padding: 6px 0; transition: background-size 150ms var(--ease);
}
.on-dark .link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-light), var(--line-light)); }
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }
.arrow { width: 18px; height: 12px; flex: none; transition: transform 150ms var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r);
  font: 600 15px/1 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(22, 24, 20, 0.06); }
.on-dark .btn--primary { background: var(--bg); color: var(--green-ink); }
.on-dark .btn--primary:hover { background: var(--white); }
.on-dark .btn--ghost { color: var(--white); }
.on-dark .btn--ghost:hover { background: rgba(244, 242, 236, 0.1); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: 90ms; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.mark {
  display: grid; place-items: center; height: 40px; flex: none;
}
.mark img { display: block; height: 40px; width: auto; max-width: none; }
.mark span { display: block; transform: translateY(1px); }
.wordmark { font: 700 17px/1 var(--f-display); letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.wordmark small { display: block; margin-top: 4px; font: 600 10.5px/1 var(--f-text); letter-spacing: 0.32em; color: var(--muted); }

@media (max-width: 379px) {
  .wordmark { font-size: 15px; letter-spacing: 0.14em; }
  .wordmark small { letter-spacing: 0.24em; }
  .brand { gap: 10px; }
  .mark, .mark img { height: 36px; }
  .menu-toggle { padding: 0 8px; gap: 8px; }
}
[id] { scroll-margin-top: calc(var(--nav) + 20px); }

.nav-links { display: none; }
.nav-links a {
  position: relative; text-decoration: none; padding: 12px 0;
  font: 600 14px/1 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 150ms var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); height: 2px; background: var(--green); }
.header__cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 48px; min-height: 44px; padding: 0 14px; margin-right: -8px;
  background: transparent; border: 0; cursor: pointer;
  font: 600 13px/1 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 12px; flex: none; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10px; }
.menu-open .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: var(--nav) 0 0; z-index: 49; background: var(--green); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gut) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.menu-open .sheet { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sheet__links a {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px;
  border-bottom: 1px solid var(--line-light); text-decoration: none;
  font: 700 clamp(34px, 10vw, 48px)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em;
}
.sheet__links a[aria-current="page"] { color: var(--sage); }
.sheet__foot { display: grid; gap: 6px; margin-top: 32px; font-size: 16px; }
.sheet__foot a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 36px; }
  .header__cta { display: inline-flex; min-height: 44px; }
  .menu-toggle, .sheet { display: none; }
}

main { padding-top: var(--nav); }

/* ---------- Sections ---------- */
.section { padding: var(--pad) 0; }
.section--alt { background: var(--surface); }
.section--green { background: var(--green); color: var(--white); }
.head-row { display: grid; gap: 20px; margin-bottom: 48px; }
.head-row .label { margin-bottom: 4px; }
@media (min-width: 900px) {
  .head-row { grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 64px; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--green); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero__script { font-size: clamp(56px, 9vw, 112px); color: var(--white); margin-bottom: -0.18em; margin-left: -0.04em; }
.hero h1 { font-size: clamp(64px, 15vw, 176px); }
h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
h1 .line > span { display: block; }
.hero .lead { color: var(--sage); }
.hero .lead strong { color: var(--white); font-weight: 600; }
.hero__media { position: relative; }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-ink); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero__tag {
  position: absolute; right: 0; bottom: -1px; background: var(--bg); color: var(--ink);
  padding: 14px 18px; font: 700 15px/1 var(--f-display); letter-spacing: 0.22em; text-transform: uppercase;
}
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--nav)); display: flex; align-items: stretch; }
  .hero .wrap { grid-template-columns: 7fr 5fr; align-items: center; gap: 64px; padding-top: 48px; padding-bottom: 56px; }
  .hero__frame { aspect-ratio: auto; height: min(calc(100svh - var(--nav) - 104px), 760px); min-height: 480px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 28px; }
.page-hero__script { font-size: clamp(48px, 7vw, 92px); color: var(--green); margin-bottom: -0.22em; }
.page-hero h1 { font-size: clamp(56px, 11vw, 144px); }
.page-hero .lead { color: var(--muted); }
@media (min-width: 900px) {
  .page-hero .wrap { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; }
  .page-hero .lead { justify-self: end; }
}

/* ---------- Class list (home) ---------- */
.class-list { border-top: 1px solid var(--line); }
.class-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  position: relative;
}
.class-row::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gut)); background: var(--surface); z-index: -1;
  opacity: 0; transition: opacity 150ms var(--ease);
}
.class-row:hover::before, .class-row:focus-visible::before { opacity: 1; }
.class-row__name { font-size: clamp(44px, 6vw, 72px); color: var(--green); line-height: 1.05; padding-top: 0.08em; }
.class-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.class-row__time { font: 600 16px/1.3 var(--f-text); }
.class-row .arrow { width: 26px; height: 16px; color: var(--green); grid-row: 1; grid-column: 2; }
@media (min-width: 900px) {
  .class-row { grid-template-columns: 5fr 4fr 3fr auto; padding: 28px 0; }
  .class-row__meta { grid-column: auto; }
  .class-row .arrow { grid-row: auto; grid-column: auto; }
  .class-row__time { text-align: right; }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--r);
  font: 600 12.5px/1 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-2);
}
.on-dark .tag { color: var(--sage); }

/* ---------- Split (about teaser, about page, pricing) ---------- */
.split { display: grid; gap: 40px; }
.split__media { overflow: hidden; background: var(--surface); }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__copy { display: flex; flex-direction: column; gap: 24px; align-self: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .split--wide-media { grid-template-columns: 6fr 5fr; }
  .split--media-right .split__media { order: 2; }
}
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pillars strong { font: 700 20px/1.3 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure { overflow: hidden; background: var(--surface); position: relative; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figure:first-child img { aspect-ratio: 4 / 5; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery figure:first-child { grid-column: auto; }
}
.zoom img { transition: transform 600ms var(--ease); }
.gallery .crop-alt img { transform: scale(1.5); transform-origin: 50% 42%; }
@media (hover: hover) and (pointer: fine) {
  .zoom:hover img { transform: scale(1.03); }
  .gallery .zoom.crop-alt:hover img { transform: scale(1.55); }
}
.gallery-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; margin-top: 32px; }
.quote-line { font-size: clamp(40px, 5vw, 64px); color: var(--green); }

/* ---------- Trainer cards ---------- */
.trainers { display: grid; gap: 16px; }
@media (min-width: 760px) { .trainers { grid-template-columns: 1fr 1fr; gap: 24px; } }
.trainer {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border: 1px solid var(--line-light); border-radius: var(--r);
  background: rgba(244, 242, 236, 0.04);
}
.trainer--light { border-color: var(--line); background: var(--bg); }
.trainer__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 420px; }
.trainer__name { font: 700 clamp(30px, 3.6vw, 40px)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
.trainer__role { margin-top: 10px; }
.trainer__actions { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line-light); justify-items: start; }
.trainer--light .trainer__actions { border-color: var(--line); }
.trainer__call { font-size: 17px; }
.trainer__call a { display: block; width: fit-content; padding: 10px 0; font-weight: 600; text-underline-offset: 4px; }
.trainer__call a:first-of-type { margin-top: 2px; }

/* ---------- Find us ---------- */
.type-moment {
  font: 700 clamp(52px, 10vw, 152px)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: 0;
}
.type-moment a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 300ms var(--ease); }
.type-moment a:hover, .type-moment a:focus-visible { background-size: 100% 3px; }
.find { display: grid; gap: 40px; margin-top: 48px; }
.find__info { display: grid; gap: 32px; align-content: start; }
.find__info dt { margin-bottom: 8px; }
.find__info dd { font-size: 20px; line-height: 1.5; }
.find__info dd a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.find__info dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map { position: relative; min-height: 340px; background: var(--surface); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
@media (min-width: 900px) {
  .find { grid-template-columns: 5fr 7fr; gap: 64px; }
  .find__info { grid-template-columns: 1fr 1fr; }
  .find__info .span-2 { grid-column: 1 / -1; }
  .map { min-height: 420px; }
}

/* ---------- Timetable ---------- */
.timetable { display: grid; gap: 0; border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.day__name abbr { text-decoration: none; }
.day__name { font: 700 22px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: 0.14em; }
.day__slots { display: grid; gap: 10px; }
.slot { display: grid; gap: 2px; text-decoration: none; }
.slot__time { font: 600 14px/1.3 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.slot__name { font: 700 22px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); }
a.slot:hover .slot__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.day__none { color: var(--muted); font-size: 16px; }
@media (min-width: 1200px) {
  .timetable { grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 0; border-left: 1px solid var(--line); }
  .day { grid-template-columns: 1fr; align-content: start; min-height: 240px; padding: 0; border: 1px solid var(--line); border-left: 0; }
  .day__name { padding: 16px; border-bottom: 1px solid var(--line); font-size: 20px; }
  .day__slots { padding: 12px 10px; gap: 12px; }
  .slot { padding: 10px; background: var(--green); border-radius: var(--r); transition: transform 180ms var(--ease); }
  .slot .slot__time { color: var(--sage); }
  .slot .slot__name { color: var(--white); font-size: clamp(17px, 1.45vw, 20px); letter-spacing: 0.02em; }
  a.slot:hover { transform: translateY(-2px); }
  a.slot:hover .slot__name { text-decoration: none; }
  .day__none { padding: 16px; }
}
.ask-note { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }

/* ---------- Class cards ---------- */
.class-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .class-cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1100px) { .class-cards { grid-template-columns: repeat(3, 1fr); } }
.class-card {
  display: flex; flex-direction: column; gap: 20px; padding: 28px; min-height: 360px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: calc(var(--nav) + 20px);
}
.class-card--feature { background: var(--green); color: var(--white); border-color: var(--green); }
.class-card__name { font-size: clamp(52px, 5vw, 68px); color: var(--green); line-height: 1.05; padding-top: 0.1em; }
.class-card--feature .class-card__name { color: var(--white); }
.class-card__line { font: 700 22px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; }
.class-card__when { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.class-card--feature .class-card__when { border-color: var(--line-light); }
.class-card__when strong { font-weight: 600; }

/* ---------- Pricing ---------- */
.contact-panel { display: grid; gap: 32px; padding: clamp(28px, 5vw, 56px); background: var(--green); color: var(--white); border-radius: var(--r); }
.contact-panel .h2 { font-size: clamp(40px, 5.4vw, 72px); }
.contact-panel__phones { display: grid; gap: 12px; }
.phone-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  border-bottom: 1px solid var(--line-light); text-decoration: none;
  font: 700 clamp(30px, 4vw, 44px)/1 var(--f-display); letter-spacing: 0.04em;
}
.phone-link .arrow { width: 24px; height: 16px; color: var(--sage); }
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); font: 700 24px/1.2 var(--f-display); color: var(--green); letter-spacing: 0.06em; }
.steps strong { display: block; font: 700 21px/1.25 var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.on-dark .steps, .on-dark .steps li { border-color: var(--line-light); }
.on-dark .steps li::before { color: var(--sage); }

/* ---------- CTA band ---------- */
.band { padding: clamp(80px, 11vw, 144px) 0; }
.band .wrap { display: grid; gap: 32px; }
.band__script { font-size: clamp(64px, 11vw, 150px); color: var(--white); margin-bottom: -0.25em; }
.band h2 { font-size: clamp(48px, 9vw, 128px); }
@media (min-width: 900px) {
  .band .wrap { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--bg); padding: clamp(64px, 8vw, 104px) 0 32px; }
.footer__grid { display: grid; gap: 40px; }
.footer .brand { color: var(--bg); }
.footer .wordmark small { color: var(--sage); }
.footer__tag { font-size: clamp(44px, 6vw, 72px); color: var(--bg); margin-top: 28px; }
.footer h2 { font: 600 13px/1.3 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.footer address { font-style: normal; }
.footer ul { display: grid; gap: 2px; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.footer__col p { line-height: 1.6; }
.footer__note { color: #c4c8bd; font-size: 15px; margin-top: 6px; max-width: 30ch; }
.footer__legal {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(244, 242, 236, 0.16);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #b9bdb2;
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 4fr 3fr 2fr 2fr 2fr; gap: 48px; } }

/* ---------- Motion: hero entrance and reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] .line > span { transform: translateY(105%); animation: rise 900ms var(--ease-enter) forwards; }
  .js [data-enter] .line:nth-child(2) > span { animation-delay: 90ms; }
  .js [data-enter] .line:nth-child(3) > span { animation-delay: 180ms; }
  .js [data-enter] .enter-fade { opacity: 0; transform: translateY(14px); animation: fade-up 800ms var(--ease-enter) forwards; }
  .js [data-enter] .enter-fade--1 { animation-delay: 120ms; }
  .js [data-enter] .enter-fade--2 { animation-delay: 380ms; }
  .js [data-enter] .enter-fade--3 { animation-delay: 500ms; }
  .js [data-enter] .enter-frame { clip-path: inset(100% 0 0 0); animation: wipe-up 1100ms var(--ease-enter) 150ms forwards; }
  .js [data-enter] .enter-frame img { transform: scale(1.12); animation: settle 1600ms var(--ease-enter) 150ms forwards; }
  .js [data-enter] .enter-tag { opacity: 0; animation: fade-up 600ms var(--ease-enter) 900ms forwards; }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-enter), transform 800ms var(--ease-enter); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-enter); }
  .js .reveal-wipe img { transform: scale(1.08); transition: transform 1400ms var(--ease-enter); }
  .js .reveal-wipe.is-in { clip-path: inset(0 0 0 0); }
  .js .reveal-wipe.is-in img { transform: none; }
  .js .reveal-wipe:nth-child(2) { transition-delay: 120ms; }
  .js .reveal-wipe:nth-child(3) { transition-delay: 240ms; }
  .js .reveal-wipe.is-in:hover img { transform: scale(1.03); transition-duration: 600ms; }
  .js .reveal-wipe.crop-alt img { transform: scale(1.62); }
  .js .reveal-wipe.crop-alt.is-in img { transform: scale(1.5); }
  .js .reveal-wipe.crop-alt.is-in:hover img { transform: scale(1.55); }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes wipe-up { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}


/* Two-photo gallery (home) */
.gallery.gallery--two { grid-template-columns: 1fr 1fr; }
.gallery.gallery--two figure:first-child { grid-column: auto; }
@media (min-width: 640px) { .gallery.gallery--two { max-width: 760px; } }
