/* ==========================================================================
   Family farm preview — shared styles
   Palette: warm cream, deep green, charcoal, restrained terracotta accent.
   ========================================================================== */

:root {
  --cream: #f6efe2;
  --cream-deep: #ece1cb;
  --paper: #fbf7ef;
  --green: #23402f;
  --green-ink: #1a3124;
  --green-mid: #4f6b52;
  --green-soft: #dfe4cf;
  --charcoal: #2b2a27;
  --muted: #5b5a54;
  --accent: #a4532b;
  --accent-dark: #86421f;
  --line: rgba(43, 42, 39, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(35, 64, 47, 0.06), 0 10px 30px -12px rgba(35, 64, 47, 0.25);
  --shadow-lift: 0 2px 4px rgba(35, 64, 47, 0.08), 0 22px 44px -16px rgba(35, 64, 47, 0.38);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* HERO CROP — one image, two tuned crops. Adjust these to reposition
     farm-pasture-hero.webp once the real photo is in place.            */
  --hero-pos-desktop: 50% 55%;
  --hero-pos-mobile: 50% 30%;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--green-ink);
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.5rem, 6.2vw + 0.5rem, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 3.25rem); }
h3 { font-size: clamp(1.5rem, 1.6vw + 0.8rem, 2rem); }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }

.lede { font-size: clamp(1.15rem, 0.8vw + 1rem, 1.375rem); color: var(--muted); max-width: 38ch; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: var(--cream); padding: 0.75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1.0625rem/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.button svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(164, 83, 43, 0.7); }
.button--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.button--outline { border-color: currentColor; color: var(--green); }
.button--outline:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.button--light { background: var(--cream); color: var(--green-ink); }
.button--light:hover { background: #fff; color: var(--green-ink); transform: translateY(-1px); }
.on-dark :focus-visible { outline-color: #f2b38f; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--green); text-decoration: none;
  border-bottom: 2px solid rgba(164, 83, 43, 0.45); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--accent); color: var(--accent-dark); }
.text-link svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.nav-open .site-header::before { background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; flex: none;
  color: var(--green-ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--green-ink); }
/* WORDMARK — live text in the headline serif. Swap for Daniel's logo file later (see README). */
.brand__wordmark {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1;
  font-size: clamp(1.45rem, 1vw + 1.15rem, 1.75rem);
  font-variation-settings: "opsz" 72;
}
.site-footer .brand__wordmark { font-size: 1.9rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a {
  position: relative; display: inline-block; padding: 0.5rem 0;
  font-weight: 600; color: var(--charcoal); text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--green-ink); }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 1.5px solid var(--green); border-radius: 999px; background: transparent;
  font: 700 1rem/1 var(--font-body); color: var(--green-ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--green); color: var(--cream); }
.nav-toggle__icon { position: relative; width: 18px; height: 12px; }
.nav-toggle__icon span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s, top 0.25s var(--ease);
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 5px; }
.nav-toggle__icon span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile: without JS the nav stays a visible wrapped list.
   With JS it becomes a full-screen panel opened by the Menu button. */
@media (max-width: 859px) {
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .site-nav { width: 100%; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--cream);
    padding: 2rem var(--gutter) 3rem;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js.nav-open .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .site-nav a { display: block; padding: 1.1rem 0; font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current="page"] { color: var(--accent-dark); }
  .nav-open body { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  min-height: min(calc(100vh - var(--header-h)), 860px);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  background: var(--green);
  color: var(--cream);
}
.hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos-mobile); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(22, 40, 29, 0.94) 0%, rgba(22, 40, 29, 0.82) 38%, rgba(22, 40, 29, 0.25) 66%, rgba(22, 40, 29, 0) 82%);
}
.hero__content { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.hero h1 { color: var(--cream); margin-bottom: 1.25rem; text-wrap: balance; }
.hero__sub { font-size: clamp(1.15rem, 1vw + 0.95rem, 1.45rem); color: rgba(246, 239, 226, 0.9); max-width: 32ch; margin-bottom: 2rem; }
.hero .eyebrow { color: #f0c4a6; }

@media (min-width: 900px) {
  .hero__media img { object-position: var(--hero-pos-desktop); }
  .hero::before {
    background:
      linear-gradient(100deg, rgba(22, 40, 29, 0.9) 0%, rgba(22, 40, 29, 0.72) 38%, rgba(22, 40, 29, 0.1) 70%, rgba(22, 40, 29, 0) 100%),
      linear-gradient(to top, rgba(22, 40, 29, 0.55) 0%, rgba(22, 40, 29, 0) 45%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__content > * { animation: rise 0.9s var(--ease) both; }
  .js .hero__content > *:nth-child(2) { animation-delay: 0.1s; }
  .js .hero__content > *:nth-child(3) { animation-delay: 0.2s; }
  .js .hero__content > *:nth-child(4) { animation-delay: 0.3s; }
  .js .hero__media img { animation: settle 1.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; }
  .section-head .lede { justify-self: end; margin-bottom: 0.5rem; }
}
.section-head h2 { margin: 0; }

/* Product tiles (home) */
.tiles { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile__body { display: grid; gap: 0.35rem; padding: clamp(1.25rem, 3vw, 2rem); }
.tile__title { font-family: var(--font-display); font-size: clamp(1.9rem, 2vw + 1rem, 2.5rem); font-weight: 600; line-height: 1.1; color: var(--green-ink); margin: 0; }
.tile__text { color: var(--muted); margin: 0; }
.tile__cta { display: inline-flex; align-items: center; gap: 0.45em; margin-top: 0.75rem; font-weight: 700; color: var(--accent-dark); }
.tile__cta svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(164, 83, 43, 0.4); }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.04); }
.tile:hover .tile__cta svg, .tile:focus-visible .tile__cta svg { transform: translateX(5px); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* Family story (home) — offset portrait + text on a deeper cream band */
.story { background: var(--cream-deep); position: relative; overflow: hidden; }
.story__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) { .story__grid { grid-template-columns: 0.85fr 1fr; } }
.story__media { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.story__media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--green-mid); border-radius: var(--radius); opacity: 0.5;
}
.story__media img { position: relative; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.story__text p { max-width: 36ch; font-size: 1.15em; }
.story__text h2 { max-width: 14ch; }

/* Where-to-buy band */
.band { background: var(--green); color: var(--cream); }
.band h2 { color: var(--cream); }
.band__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .band__grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.band__ways { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
@media (min-width: 560px) { .band__ways { grid-template-columns: 1fr 1fr; } }
.band__ways li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.25rem; border: 1px solid rgba(246, 239, 226, 0.2); border-radius: var(--radius);
  background: rgba(246, 239, 226, 0.05);
}
.band__ways svg { width: 2rem; height: 2rem; flex: none; color: #f0c4a6; }
.band__ways strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.band__ways span { color: rgba(246, 239, 226, 0.78); font-size: 0.98rem; }
.band__lede { color: rgba(246, 239, 226, 0.85); max-width: 34ch; font-size: 1.15em; }
.band .eyebrow { color: #f0c4a6; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem;
  border-radius: 50%; border: 2px solid rgba(79, 107, 82, 0.18); pointer-events: none;
}
.page-hero h1 { max-width: 16ch; text-wrap: balance; }
.jump-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.jump-links a {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; padding: 0.5rem 1.15rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; color: var(--green-ink); text-decoration: none; transition: border-color 0.2s, background-color 0.2s;
}
.jump-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Product sections (Eggs & Lamb page) — alternating split ---------- */
.product { padding-block: var(--section-y); }
.product + .product { border-top: 1px solid var(--line); }
.page-hero + .product, .page-hero + .pickup { padding-top: clamp(2.5rem, 5vw, 4rem); }
.product__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) {
  .product__grid { grid-template-columns: 1.1fr 1fr; }
  .product--flip .product__media { order: 2; }
}
.product__media { position: relative; }
.product__media img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.product__tag {
  position: absolute; left: 1.25rem; bottom: -0.95rem; box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--green); color: var(--cream); padding: 0.35rem 0.9rem; border-radius: 999px;
}
.product__text h2 { font-size: clamp(2.5rem, 4vw + 0.8rem, 4rem); }
.product__text p { max-width: 38ch; }
.product__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.75rem; }

.cta-strip { background: var(--green); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-strip__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta-strip h2 { color: var(--cream); margin: 0; font-size: clamp(1.75rem, 2.4vw + 0.8rem, 2.5rem); max-width: 22ch; }

/* ---------- Pickup & Markets page — cards + schedule ---------- */
.ways-nav { display: grid; gap: 1rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .ways-nav { grid-template-columns: 1fr 1fr; max-width: 46rem; } }

.pickup { padding-block: var(--section-y); }
.pickup__card {
  display: grid; gap: 2rem; padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
@media (min-width: 860px) { .pickup__card { grid-template-columns: auto 1fr; align-items: start; gap: 3rem; } }
.pickup__icon {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
}
.pickup__icon svg { width: 2.6rem; height: 2.6rem; }
.pickup__card h2 { margin-bottom: 0.4em; }
.pickup__card p { max-width: 46ch; }
.notice {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent); background: rgba(164, 83, 43, 0.06); border-radius: 0 10px 10px 0;
  color: var(--charcoal);
}
.notice svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.2rem; color: var(--accent-dark); }

.markets { padding-block: var(--section-y); background: var(--cream-deep); }
.markets__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .markets__grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.markets__media img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 960px) { .markets__media { position: sticky; top: calc(var(--header-h) + 2rem); } }

.schedule { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.schedule__empty {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.5rem; border: 2px dashed rgba(79, 107, 82, 0.4); border-radius: var(--radius);
  background: rgba(251, 247, 239, 0.6); font-weight: 600; color: var(--green-ink); margin: 1.5rem 0 0;
}
.schedule__empty svg { width: 2rem; height: 2rem; flex: none; color: var(--green-mid); }
.market {
  display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem;
  padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.market__date {
  grid-row: span 3; display: grid; place-items: center; align-content: center;
  width: 4.5rem; height: 4.5rem; border-radius: 12px; background: var(--green); color: var(--cream);
  font-family: var(--font-display); line-height: 1; text-align: center;
}
.market__date .m { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.market__date .d { font-size: 1.9rem; font-weight: 600; }
.market__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--green-ink); margin: 0; }
.market__meta { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: rgba(246, 239, 226, 0.82); padding-block: 3.5rem 2rem; font-size: 0.98rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand:hover { color: var(--cream); }
.footer-tag { margin: 0.9rem 0 0; max-width: 34ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 760px) { .footer-nav ul { justify-items: end; } }
.footer-nav a { color: var(--cream); text-decoration: none; font-weight: 600; padding: 0.25rem 0; display: inline-block; }
.footer-nav a:hover { color: #f0c4a6; text-decoration: underline; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 239, 226, 0.15);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.875rem; color: rgba(246, 239, 226, 0.6);
}
.site-footer :focus-visible { outline-color: #f2b38f; }

/* ---------- Scroll reveals (JS only; content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .stagger > * { opacity: 0; transform: translateY(34px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; transition-delay: calc(var(--i, 0) * 140ms); }
  .js .stagger.is-visible > * { opacity: 1; transform: none; }
  .js .stagger.is-visible > .tile:hover, .js .stagger.is-visible > .tile:focus-visible { transform: translateY(-6px); transition-delay: 0s; }
  .reveal-fallback .reveal, .reveal-fallback .stagger > * { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .tile:hover, .tile:focus-visible { transform: none; }
  .tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: none; }
}
