/* =====================================================================
   Yamas Greek Eatery — public marketing site design system.
   Matched to the cheersyamas.com brand: Aegean royal blue + mati blues,
   warm parchment + white brick, Cormorant Garamond display serif over
   IBM Plex Sans. Light, editorial, photography-forward. This is NOT the
   hub's design system — no navy glass, no app chrome.
   ===================================================================== */

:root {
  --blue: #27498F;          /* wordmark royal blue */
  --blue-deep: #1B3468;     /* footer / hover */
  --aegean: #2E86AB;        /* mati mid blue — kickers + accents */
  --sky: #5AB6E8;           /* mati light blue */
  --brown: #361A0C;         /* display headings on light */
  --ink: #43311F;           /* body copy */
  --ink-soft: #75695D;      /* secondary text */
  --paper: #FFFFFF;
  --page: #F5F8FB;          /* page background — off-white with a cool Aegean cast */
  --parchment: #F5F1ED;     /* warm section alternation */
  --stone: #E7E1D8;         /* hairlines on parchment */
  --line: #E5E5E5;          /* hairlines on white */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
  --shadow: 0 10px 34px rgba(43, 33, 21, .10);

  /* Liquid-glass tokens — tints derived from the site's own warm surfaces
     (the cream card #FCFAF7 and paper white), never new hues. Tier 0 works
     everywhere; refraction is layered on by html.lg-refract (Chromium). */
  --glass-blur: 14px;
  --glass-saturate: 1.6;
  --glass-tint: rgb(252 250 247 / .58);
  --glass-tint-strong: rgb(252 250 247 / .72);
  --glass-border-hi: rgb(255 255 255 / .60);
  --glass-border-lo: rgb(54 26 12 / .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px; /* clears the fixed header */
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- type ---------- */
.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--aegean); margin-bottom: 14px;
}
.display, h1.display {
  font-family: var(--font-display); font-weight: 600; color: var(--brown);
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: .015em;
  text-transform: uppercase;
}
.title {
  font-family: var(--font-display); font-weight: 600; color: var(--brown);
  font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; letter-spacing: .02em;
  text-transform: uppercase;
}
.subtitle {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 25px);
  color: var(--brown); letter-spacing: .02em;
}
.lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; color: var(--ink); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 14px 28px; border-radius: 3px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
/* On-photo CTAs are glass pills (Tier 0): white-derived tint over imagery,
   fluid press response. Inside .hero .tile they revert to solid variants
   (never stack glass on glass — see the tile rules below). */
.btn.onphoto, .btn.solid-onphoto {
  border-radius: 999px;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: inset 1px 1px 0 var(--glass-border-hi), inset -1px -1px 0 var(--glass-border-lo);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform 240ms cubic-bezier(.2, .9, .3, 1.2);
  contain: layout paint;
}
.btn.onphoto:active, .btn.solid-onphoto:active { transform: scale(.97); }
.btn.onphoto:focus-visible, .btn.solid-onphoto:focus-visible { outline: 2px solid var(--glass-border-hi); outline-offset: 2px; }
.btn.onphoto { border-color: rgb(255 255 255 / .65); background: rgb(255 255 255 / .16); color: #fff; }
.btn.onphoto:hover { background: #fff; color: var(--brown); }
.btn.solid-onphoto { border-color: rgb(255 255 255 / .70); background: rgb(255 255 255 / .82); color: var(--brown); }
.btn.solid-onphoto:hover { background: #fff; color: var(--brown); }
.btn[disabled] { opacity: .55; cursor: default; }
.btnrow { display: flex; gap: 14px; flex-wrap: wrap; }
.btnrow.center { justify-content: center; }

/* ---------- header ---------- */
/* Glass bar — the everyday glass moment. Tint stays the site's own white so it
   reads near-solid over white sections and glassy only over photography. */
.site-header {
  /* fixed (not sticky): persistent on every browser — Safari has flaky
     sticky behavior combined with backdrop-filter/contain */
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transform: translateZ(0); /* own compositor layer — stops iOS fixed+backdrop-filter jitter */
  background: rgb(255 255 255 / .70);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-border-hi);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px; height: 72px;
  display: flex; align-items: center; gap: 26px;
}
.site-header .logo img { height: 30px; width: auto; }
.site-header nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-header nav a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; padding: 6px 0; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--blue); }
.site-header nav a.on { color: var(--blue); border-bottom-color: var(--blue); }
.site-header .order-cta { margin-left: 8px; padding: 11px 20px; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* mobile menu overlay */
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 55;
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: blur(22px) saturate(var(--glass-saturate));
  backdrop-filter: blur(22px) saturate(var(--glass-saturate));
  padding: 28px 26px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--brown); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a.on { color: var(--blue); }
.mobile-menu a.btn {
  margin-top: 22px; width: 100%; font-family: var(--font-body); font-size: 13px;
  letter-spacing: .15em; color: #fff; border-bottom: 0;
}
body.menu-open { overflow: hidden; }
@media (max-width: 920px) {
  .site-header nav { display: none; }
  .menu-toggle { display: block; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; }
.hero.short { min-height: 56vh; }
.hero .bg { position: absolute; inset: 0; overflow: hidden; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,8,.42) 0%, rgba(20,14,8,.30) 45%, rgba(20,14,8,.58) 100%);
}
.hero .inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 110px 22px 80px; width: 100%; }
/* Tile behind the hero text for legibility over photography.
   Styled as a warm printed card in the site's own palette (parchment, brown
   serif, Aegean rule) — NOT the hub's navy glass. Text and buttons inside
   flip to their on-light variants. */
.hero .tile {
  display: inline-block; max-width: 660px;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--stone);
  border-top: 3px solid var(--aegean);
  border-radius: 6px; padding: 38px 42px;
  box-shadow: 0 18px 50px rgba(30, 20, 10, .30),
    inset 1px 1px 0 var(--glass-border-hi),
    inset -1px -1px 0 var(--glass-border-lo);
  contain: layout paint;
}
/* Tier 1 (Chromium only, set by site.js): the hero card refracts — the photo
   visibly bends at the card's edges. (An earlier "renderer hang" blamed on
   this filter turned out to be a test artifact: the probe used rAF in a
   hidden page, where rAF never fires.) */
.lg-refract .hero .tile {
  -webkit-backdrop-filter: url(#lg-glass) blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: url(#lg-glass) blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.hero .tile .kicker { color: var(--aegean); opacity: 1; }
.hero .tile h1 { color: var(--brown); text-shadow: none; }
.hero .tile p.sub { color: var(--ink); opacity: 1; }
.hero .tile .btn.solid-onphoto, .hero .tile .btn.onphoto {
  border-radius: 3px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: none;
}
.hero .tile .btn.solid-onphoto { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero .tile .btn.solid-onphoto:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.hero .tile .btn.onphoto { background: transparent; border-color: var(--blue); color: var(--blue); }
.hero .tile .btn.onphoto:hover { background: var(--blue); color: #fff; }
@media (max-width: 560px) { .hero .tile { padding: 26px 24px; } }
.hero .kicker { color: #fff; opacity: .92; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 6.5vw, 74px); line-height: 1.04; letter-spacing: .02em;
  max-width: 15ch; text-shadow: 0 2px 22px rgba(0,0,0,.35);
}
.hero p.sub { margin: 20px 0 30px; font-size: clamp(16px, 1.8vw, 19px); max-width: 56ch; opacity: .95; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.parchment { background: var(--parchment); }
.section.brick { background: #fff url("../img/texture-white-brick.jpg") center/cover; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .rule {
  width: 54px; height: 2px; background: var(--aegean); margin: 18px auto 0;
}

/* ---------- cards & grids ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* Cards sit on flat backgrounds, where glass is invisible — per the
   flat-background rule they stay near-solid and only pick up the specular
   inner border, so the material language matches the true glass surfaces. */
.card {
  background: var(--paper); border: 1px solid var(--stone); border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 1px 1px 0 var(--glass-border-hi), inset -1px -1px 0 var(--glass-border-lo);
}
.card .photo { aspect-ratio: 4 / 3; overflow: hidden; }
.card .photo.tall { aspect-ratio: 3 / 3.6; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .photo img { transform: scale(1.035); }
.card .body { padding: 24px 24px 28px; }
.card .body h3 {
  font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 4px;
}
.card .body .tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--aegean); margin-bottom: 10px; }
.card .body p { font-size: 15px; color: var(--ink); }

/* split feature (photo + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .photo { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split.flip .photo { order: 2; }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; gap: 30px; } .split.flip .photo { order: 0; } }

/* ---------- quotes ---------- */
.quote {
  background: var(--paper); border: 1px solid var(--stone); border-top: 3px solid var(--aegean);
  border-radius: 6px; padding: 30px 28px;
  box-shadow: var(--shadow), inset 1px 1px 0 var(--glass-border-hi), inset -1px -1px 0 var(--glass-border-lo);
}
.quote p {
  font-family: var(--font-display); font-size: 19.5px; line-height: 1.5; color: var(--brown);
  font-style: italic;
}
.quote .who { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-style: normal; font-family: var(--font-body); }

/* ---------- location cards ---------- */
.loc-card .meta { display: grid; gap: 6px; margin: 14px 0 20px; font-size: 15px; }
.loc-card .meta a { color: var(--blue); text-decoration: none; }
.loc-card .meta a:hover { text-decoration: underline; }
.loc-card .hours { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ---------- menu page ---------- */
.menu-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 40px; }
.menu-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; padding: 9px 16px; border: 1px solid var(--stone);
  border-radius: 999px; background: var(--paper);
}
.menu-nav a:hover { border-color: var(--blue); color: var(--blue); }
.menu-cat { margin-bottom: 54px; }
.menu-cat h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brown); text-align: center; margin-bottom: 8px;
}
.menu-cat .rule { width: 44px; height: 2px; background: var(--aegean); margin: 0 auto 30px; }
.menu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 46px; }
@media (max-width: 760px) { .menu-items { grid-template-columns: 1fr; } }
.mi { break-inside: avoid; }
.mi .row { display: flex; align-items: baseline; gap: 10px; }
.mi .nm { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--brown); letter-spacing: .015em; }
.mi .dots { flex: 1; border-bottom: 1px dotted #C9BBA8; transform: translateY(-4px); }
.mi .pr { font-weight: 600; color: var(--blue); font-size: 16.5px; white-space: nowrap; }
.mi .ds { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; max-width: 52ch; }

/* ---------- news / posts ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .photo { aspect-ratio: 16 / 10; }
.post-card time { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.badge.special { background: rgba(46,134,171,.12); color: var(--aegean); }
.badge.announcement { background: rgba(39,73,143,.10); color: var(--blue); }
.badge.loc { background: var(--parchment); color: var(--ink-soft); }

/* ---------- gallery ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; }
.masonry img { width: 100%; }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--stone); border-top: 3px solid var(--blue);
  border-radius: 6px; padding: 36px 34px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-card label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font: 15px/1.45 var(--font-body); color: var(--ink);
  background: #FCFAF7; border: 1px solid var(--stone); border-radius: 4px; padding: 12px 13px;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--aegean); }
.form-card textarea { resize: vertical; min-height: 92px; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-card .row2 { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; margin-top: 26px; }
.form-err { color: #B3402A; font-size: 14px; margin-top: 12px; text-align: center; min-height: 20px; }
.form-ok { text-align: center; padding: 26px 6px; }
.form-ok .big { font-size: 44px; }
.form-ok h3 { font-family: var(--font-display); font-size: 26px; color: var(--brown); margin: 10px 0 8px; }
.form-ok p { color: var(--ink-soft); }

/* ---------- order chooser overlay ---------- */
.order-overlay {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(27, 20, 12, .55); padding: 22px;
}
.order-overlay.open { display: flex; }
.order-box {
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-saturate));
  backdrop-filter: blur(20px) saturate(var(--glass-saturate));
  box-shadow: var(--shadow), inset 1px 1px 0 var(--glass-border-hi), inset -1px -1px 0 var(--glass-border-lo);
  border-radius: 8px; max-width: 560px; width: 100%;
  padding: 40px 36px; text-align: center; position: relative;
  contain: layout paint;
}
/* Tier 1 (Chromium, set by site.js): the one signature refraction moment —
   safe here because the overlay's backdrop is static while it's open. */
.lg-refract .order-box {
  -webkit-backdrop-filter: url(#lg-glass) blur(20px) saturate(var(--glass-saturate));
  backdrop-filter: url(#lg-glass) blur(20px) saturate(var(--glass-saturate));
}
.order-box .close { position: absolute; top: 12px; right: 16px; font-size: 26px; line-height: 1; background: none; border: 0; color: var(--ink-soft); cursor: pointer; }
.order-box h3 { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; letter-spacing: .03em; color: var(--brown); margin-bottom: 6px; }
.order-box p { color: var(--ink-soft); margin-bottom: 24px; }
.order-box .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .order-box .choices { grid-template-columns: 1fr; } }

/* ---------- banner CTA ---------- */
.banner {
  position: relative; color: #fff; text-align: center; padding: 96px 22px; overflow: hidden;
}
.banner .bg { position: absolute; inset: 0; }
.banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.banner .bg::after { content: ""; position: absolute; inset: 0; background: rgba(23, 16, 9, .55); }
.banner .inner { position: relative; z-index: 1; }
.banner h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 26px; text-shadow: 0 2px 18px rgba(0,0,0,.4); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.86); margin-top: 0; }
.site-footer .top {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 22px 50px;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr; gap: 40px;
}
@media (max-width: 920px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }
.site-footer .mati { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 16px; }
.site-footer h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer p, .site-footer a { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .links a { display: block; padding: 3px 0; }
.site-footer .social { display: flex; gap: 12px; margin-top: 14px; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font-size: 15px;
}
.site-footer .social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.16); text-align: center; padding: 20px 22px;
  font-size: 13px; color: rgba(255,255,255,.62);
}

/* ---------- glass accessibility fallbacks ---------- */
/* Reduced transparency: every glass surface goes solid in the site's own paper
   color; nothing else about the design changes. */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .hero .tile, .lg-refract .hero .tile, .order-box, .mobile-menu,
  .btn.onphoto, .btn.solid-onphoto {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header { background: rgba(255, 255, 255, .97); }
  .hero .tile, .order-box, .mobile-menu { background: #FCFAF7; }
  .btn.solid-onphoto { background: #fff; }
  .btn.onphoto { background: rgba(20, 14, 8, .55); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.onphoto:active, .btn.solid-onphoto:active { transform: none; }
}

/* ---------- motion ---------- */
/* Parallax: hero/banner photos get vertical bleed and are translated slower than
   the scroll by site.js, so the page appears to slide over a photo sitting behind it. */
.hero .bg img, .banner .bg img {
  height: 144%; top: -22%; position: relative;
  will-change: transform;
}
/* card photos float over their frames: slight over-scale gives the parallax
   drift (written by site.js) room to move without exposing edges */
.card .photo { isolation: isolate; }
.site-footer { overflow: hidden; }
.site-footer .top { will-change: transform; }
/* Scroll-driven parallax (compositor-side — buttery on iOS Safari, where the
   JS scroll/rAF path stutters during momentum scrolling). When the browser
   supports animation-timeline, site.js skips its JS parallax entirely and
   these animations own the exact same movements. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .bg img, .banner .bg img {
      animation: lg-par-bg linear both;
      animation-timeline: view(block);
      animation-range: cover 0% cover 100%;
    }
    .card .photo img {
      animation: lg-par-card linear both;
      animation-timeline: view(block);
      animation-range: cover 0% cover 100%;
    }
    .site-footer .top {
      animation: lg-par-foot linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes lg-par-bg { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
@keyframes lg-par-card { from { transform: translateY(3.5%) scale(1.12); } to { transform: translateY(-3.5%) scale(1.12); } }
@keyframes lg-par-foot { from { transform: translateY(-52px); } to { transform: translateY(0); } }

/* Scroll reveal: .anim is added by site.js only (no-JS users see everything),
   .in arrives from an IntersectionObserver. Stagger via --anim-delay. */
@media (prefers-reduced-motion: no-preference) {
  .anim {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s ease, transform .75s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--anim-delay, 0s);
  }
  .anim.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg img, .banner .bg img { height: 100%; top: 0; }
}

/* ---------- utilities ---------- */
.spacer-s { height: 18px; }
.note { font-size: 13.5px; color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; }
