/* Hallmark · shape: shopfront then aisles, a red front, the shelves in order, the branch board, the counter · genre: editorial · theme: custom · job: visit · idea: "The page answers the shopper's one question first, which Dragon Mart is open right now, then walks the shelves like the store does" · vibe: "lacquer red shopfront, warm paper, calm aisles"
 * paper: oklch(97.5% 0.005 40) · accent: oklch(47% 0.165 27) · display: Zodiak · body: Switzer · hero: red field, two-line head, live branch board beside the lede bridging into a full-bleed produce band · nav: sticky bar, red over the hero then paper, a call-the-store button · footer: night ground, branch directory table beside the wordmark · imagery: photographs, Wikimedia Commons 22, natural · signature: the live "Today in Pokhara" board showing which branch is open now
 * axes: light/roman-serif/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · hero-review: skipped · finish-review: subagent · 8 findings · 8 resolved · gap: none */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: S, stock produce could be any grocer; the live Pokhara-time branch board and the place names carry the specificity */
/* Hallmark · waive 83 · category photos, a product grid and a gallery were all asked for by name · the user's brief lists each picture-led section for this supermarket */
/* Hallmark · waive 42 · footer is a branch directory table, not link columns · a supermarket footer has to carry the branch addresses and phones */
/* Hallmark · answered F4 · each surface has one filled ink button; the hero and branch cards repeat the same style · Dragon Mart pages need a directions action per branch */
/* Hallmark · copy: verbatim · watermark "DEMO - Dragon Mart - Achyut" is the user's exact text */
/* Hallmark · waive 39b · gallery frames are buttons that open the photo viewer · the whole Pokhara gallery photo is the hit area */
/* Hallmark · dismissed 23 · posture committed, the dragon red hero is the shopfront field */
/* Hallmark · dismissed 25 · footer brand line is one sentence, 40ch suits it */
@import url("./tokens.css");
@import url("./base.css");

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--space-md)); }
body { font-size: var(--text-md); }
h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-section); line-height: 1.06; max-width: 22ch; }
strong { font-weight: 600; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 40ch; }
.icon { flex-shrink: 0; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Buttons: one filled style (ink), one quiet style that inherits its surface's text colour. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 45%, transparent); }
.btn--quiet:hover { background: color-mix(in oklab, currentColor 9%, transparent); border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-accent); color: var(--color-accent-ink); --color-focus: var(--color-accent-ink); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav.is-scrolled { background: var(--color-paper); color: var(--color-ink); --color-focus: var(--color-signal-focus); box-shadow: 0 1px 0 var(--color-rule); }
.nav__bar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-height); }
.wordmark { font: 700 1.0625rem/1 var(--font-outlier); text-transform: uppercase; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { font-size: var(--text-md); text-decoration: none; padding: var(--space-xs) 0; text-underline-offset: 0.4em; }
.nav__links a:hover, .nav__links a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav__links a:focus-visible { outline-offset: 4px; }
.nav__cta { min-height: 44px; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; padding: 0; border: 0; border-radius: var(--radius-input); background: transparent; color: inherit; cursor: pointer; }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); }

@media (max-width: 60rem) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { margin-left: auto; }
  .nav__cta + .nav__toggle { margin-left: 0; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: var(--space-xs) var(--gutter) var(--space-lg); background: inherit; color: inherit; box-shadow: 0 1px 0 var(--color-rule); }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: flex; align-items: center; min-height: 48px; font-size: var(--text-lg); border-bottom: 1px solid color-mix(in oklab, currentColor 18%, transparent); }
}
@media (max-width: 30rem) { .nav__cta { width: 48px; padding: 0; } .nav__cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ---------- Hero ---------- */
.hero { background: var(--color-accent); color: var(--color-accent-ink); --color-focus: var(--color-accent-ink); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; padding-top: var(--space-2xl); padding-bottom: var(--space-xl); }
.hero__title { grid-column: 1 / -1; font-size: var(--text-display); line-height: 1; }
.hero__lede { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.hero__lede .lead { color: var(--color-on-accent-2); }
.hero__lede .btn--quiet { color: var(--color-accent-ink); }

.today { grid-column: 7 / -1; position: relative; z-index: var(--z-raised); margin-top: var(--space-xl); margin-bottom: calc(-1 * var(--space-4xl)); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); --color-focus: var(--color-signal-focus); }
.today__title { display: flex; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.today__title time { font-variant-numeric: tabular-nums; }
.today__list { margin: 0; padding: 0; list-style: none; }
.today__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding: var(--space-xs) var(--space-sm); margin-inline: calc(-1 * var(--space-sm)); border-radius: var(--radius-input); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.today__list li + li .today__row { border-top: 1px solid var(--color-rule); border-radius: 0; }
.today__row:hover { background: var(--color-paper-2); }
.today__name { font: 700 var(--text-title)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.today .status { font-size: var(--text-md); }

.status { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); text-align: right; }
.status[data-state]::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--color-muted); }
.status[data-state="open"]::before { background: var(--color-open); }
.status[data-state="soon"]::before { background: var(--color-soon); }
.status[data-state="unknown"]::before { display: none; }
.status[data-state="open"] { color: var(--color-ink); font-weight: 600; }

.hero__photo { position: relative; height: clamp(240px, 34dvh, 440px); margin: 0; }
.hero__photo picture, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 45%; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero__title, .hero__lede, .today { animation: rise 640ms var(--ease-out) both; }
.hero__lede { animation-delay: 80ms; }
.today { animation-delay: 160ms; }

@media (max-width: 60rem) {
  .hero__lede, .today { grid-column: 1 / -1; }
  .today { margin-bottom: 0; }
  .hero__grid { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
}

/* ---------- Sections ---------- */
.about, .shelves, .products, .branches, .contact { padding-block: var(--section-gap); }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.section-head p { max-width: 48ch; color: var(--color-ink-2); font-size: var(--text-lead); }
.section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap-columns); }
@media (max-width: 60rem) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* About: the statement, then the one fact worth setting large. */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: end; }
.about__text { grid-column: 1 / span 6; display: grid; gap: var(--space-xl); }
.statement { font-size: var(--text-statement); line-height: 1.08; max-width: 21ch; }
.about__text p { max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.early { grid-column: 8 / -1; margin: 0; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.early__time { font: 700 clamp(5rem, 11vw, 10rem)/0.9 var(--font-display); letter-spacing: -0.03em; color: var(--color-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.early__time span { margin-left: 0.08em; font-size: 0.24em; letter-spacing: 0; }
.early figcaption { margin-top: var(--space-md); color: var(--color-ink-2); }
@media (max-width: 60rem) { .about__text, .early { grid-column: 1 / -1; } }

/* Shelves: an uneven mosaic, fresh produce largest. */
.shelf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.shelf { display: flex; }
.shelf--fresh { grid-column: 1 / span 7; grid-row: span 2; }
.shelf--imported, .shelf--kitchen { grid-column: 8 / span 5; }
.shelf--household { grid-column: 1 / span 5; }
.shelf--beverages { grid-column: 6 / span 7; }
.shelf__link { display: flex; flex-direction: column; gap: var(--space-md); width: 100%; text-decoration: none; border-radius: var(--radius-card); }
.shelf__link:focus-visible { outline-offset: 6px; }
.shelf__photo { position: relative; display: block; flex: 1; min-height: clamp(200px, 17vw, 250px); overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.shelf--household .shelf__photo, .shelf--beverages .shelf__photo { min-height: clamp(260px, 26vw, 380px); }
.shelf__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shelf__cue { position: absolute; left: var(--space-md); bottom: var(--space-md); z-index: 2; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
/* Pointer devices reveal the cue on hover; touch and no-script always show it. */
@media (hover: hover) { .js .shelf__link:not(:hover, :focus-visible) .shelf__cue { opacity: 0; transform: translateY(8px); } }
.shelf__text { display: grid; gap: var(--space-2xs); }
.shelf__name { font: 700 var(--text-title)/1.15 var(--font-display); letter-spacing: var(--tracking-display); }
.shelf__line { color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf--fresh, .shelf--beverages { grid-column: 1 / -1; grid-row: auto; }
  .shelf--imported, .shelf--kitchen, .shelf--household { grid-column: auto; }
  .shelf--household { grid-column: 1 / -1; }
  .shelf__photo, .shelf--household .shelf__photo, .shelf--beverages .shelf__photo { min-height: 0; flex: none; aspect-ratio: 4 / 3; }
  .shelf--fresh .shelf__photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 30rem) { .shelf-grid { grid-template-columns: minmax(0, 1fr); } .shelf--imported, .shelf--kitchen { grid-column: 1 / -1; } }

/* Products: sample listings on a tinted well. */
.products { background: var(--color-paper-2); }
.filters { display: flex; gap: var(--space-xs); margin-bottom: var(--space-xl); overflow-x: auto; scrollbar-width: none; padding-block: var(--space-2xs); }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.chip:hover { border-color: var(--color-ink-2); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.product { display: flex; flex-direction: column; }
.product__photo { aspect-ratio: 1; overflow: hidden; margin-bottom: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-3); }
.product__photo img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-size: var(--text-title); line-height: 1.15; }
.product__line { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.tag { padding: var(--space-3xs) var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink-2); }
.product__price { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.product[hidden] { display: none; }
@media (max-width: 40rem) { .filters { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 60rem) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); } }

/* Why: the second red field. */
.why { padding-block: var(--section-gap-s); background: var(--color-accent); color: var(--color-accent-ink); --color-focus: var(--color-accent-ink); }
.why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.why h2 { grid-column: 1 / span 5; max-width: 12ch; }
.reasons { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.reasons li { padding-top: var(--space-lg); border-top: 1px solid color-mix(in oklab, var(--color-accent-ink) 35%, transparent); }
.reasons h3 { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-title); line-height: 1.15; }
.reasons p { margin-top: var(--space-sm); color: var(--color-on-accent-2); }
@media (max-width: 60rem) { .why h2, .reasons { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* Branches: two photo-led cards that mirror each other, then two plain ones side by side. */
.branch--photo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.branch--photo + .branch--photo { margin-top: var(--space-3xl); }
.branch__photo { grid-column: 1 / span 7; height: clamp(320px, 38vw, 540px); margin: 0; border-radius: var(--radius-card); }
.branch__photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.branch__photo figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); z-index: 2; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper); font-size: var(--text-sm); }
.branch--photo .branch__body { grid-column: 9 / -1; }
.branch--flip .branch__photo { grid-column: 6 / -1; grid-row: 1; }
.branch--flip .branch__body { grid-column: 1 / span 4; grid-row: 1; }
.branch__name { font-size: var(--text-section); line-height: 1; }
.branch .status--chip { margin-top: var(--space-md); }
.branch__facts { display: grid; gap: var(--space-md); margin: var(--space-xl) 0; }
.branch__facts > div { padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.branch__facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.branch__facts dd { margin: var(--space-2xs) 0 0; font-size: var(--text-lg); }
.branch__facts a { text-decoration-color: var(--color-accent); }
.branch--row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.branch--row + .branch--row { margin-top: var(--space-xl); }
.branch--row .branch__name { grid-column: 1 / span 4; font-size: var(--text-2xl); }
.branch--row .branch__facts { grid-column: 5 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); margin: 0; }
.branch--row .branch__facts > div { padding-top: 0; border-top: 0; }
.branch--row .actions, .branch--row .branch__note { grid-column: 5 / -1; }
.branch__note { color: var(--color-ink-2); }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 60rem) {
  .branch__photo, .branch--photo .branch__body, .branch--flip .branch__photo, .branch--flip .branch__body { grid-column: 1 / -1; grid-row: auto; }
  .branch__photo { height: auto; aspect-ratio: 4 / 3; }
  .branch--row .branch__name, .branch--row .branch__facts, .branch--row .actions, .branch--row .branch__note { grid-column: 1 / -1; }
  .branch--row .branch__facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
}

/* Gallery: night ground, two large frames over four. */
.gallery { padding-block: var(--section-gap); background: var(--color-night); color: var(--color-on-night); --color-focus: var(--color-on-night); }
.gallery .section-head p { color: var(--color-on-night-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.gallery__item { grid-column: span 3; }
.gallery__item:nth-child(-n + 2) { grid-column: span 6; }
.gallery__open { display: grid; gap: var(--space-sm); width: 100%; padding: 0; border: 0; border-radius: var(--radius-card); background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.gallery__open:focus-visible { outline-offset: 6px; }
.gallery__photo { display: block; height: clamp(200px, 20vw, 300px); border-radius: var(--radius-card); }
.gallery__item:nth-child(-n + 2) .gallery__photo { height: clamp(280px, 32vw, 480px); }
.gallery__caption { font-size: var(--text-sm); color: var(--color-on-night-2); transition: color var(--dur-short) var(--ease-out); }
.gallery__open:hover .gallery__caption, .gallery__open:focus-visible .gallery__caption { color: var(--color-on-night); text-decoration: underline; text-underline-offset: 0.2em; }
.gallery [data-slot] { background: var(--color-night-2); }
@media (max-width: 60rem) { .gallery__item, .gallery__item:nth-child(-n + 2) { grid-column: span 6; } .gallery__item:nth-child(-n + 2) .gallery__photo, .gallery__photo { height: auto; aspect-ratio: 4 / 3; } }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--space-2xl) var(--space-3xl); border: 0; background: color-mix(in oklab, var(--color-night) 96%, transparent); color: var(--color-on-night); --color-focus: var(--color-on-night); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: color-mix(in oklab, var(--color-night) 70%, transparent); }
.lightbox__figure { position: relative; display: grid; place-items: center; gap: var(--space-md); margin: 0; }
.lightbox__figure img { max-width: min(100%, 1600px); max-height: calc(100dvh - 200px); width: auto; height: auto; border-radius: var(--radius-card); transition: opacity var(--dur-short) var(--ease-out); }
.lightbox__figure.is-loading img { opacity: 0; }
.lightbox__figure figcaption { font-size: var(--text-md); color: var(--color-on-night-2); }
.spinner--lg { position: absolute; inset: 0; width: 32px; height: 32px; margin: auto; }
.lightbox__figure.is-loading .spinner--lg { display: block; }
.lightbox__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid color-mix(in oklab, var(--color-on-night) 30%, transparent); border-radius: 50%; background: var(--color-night-2); color: var(--color-on-night); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lightbox__btn:hover { background: var(--color-ink-2); }
.lightbox__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lightbox__close { top: var(--space-lg); right: var(--space-lg); }
.lightbox__prev { left: var(--space-lg); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-lg); top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) { .lightbox { padding: var(--space-3xl) var(--space-md); } .lightbox__prev, .lightbox__next { top: auto; bottom: var(--space-lg); transform: none; } }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.contact__info { grid-column: 1 / span 5; }
.contact__list { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 0; }
.contact__list > div { padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.contact__list dt { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.contact__list dd { margin: var(--space-2xs) 0 0; font-size: var(--text-lg); overflow-wrap: anywhere; }
.contact__list a { text-decoration-color: var(--color-accent); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; text-decoration: none; font-weight: 600; }
.social a:hover { text-decoration: underline; }
.form { grid-column: 7 / -1; display: grid; gap: var(--space-md); align-content: start; }
.field { display: grid; align-content: start; gap: var(--space-2xs); min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field__msg { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.field__msg.is-error { color: var(--color-error); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); }
.form__status { min-height: 1lh; max-width: 46ch; font-size: var(--text-sm); }
.form__status.is-ok { color: var(--color-success); }
.form__status.is-error { color: var(--color-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 60rem) { .contact__info, .form { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.footer { padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-night); color: var(--color-on-night); --color-focus: var(--color-on-night); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-night-2); }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand .wordmark { font-size: 1.375rem; }
.footer__brand p { margin-top: var(--space-md); color: var(--color-on-night-2); max-width: 40ch; }
.directory { grid-column: 6 / -1; width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.directory th, .directory td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--color-night-2); text-align: left; vertical-align: top; }
.directory thead th { font-size: var(--text-sm); font-weight: 400; color: var(--color-on-night-2); white-space: nowrap; }
.directory tbody th { font-weight: 600; }
.directory td { color: var(--color-on-night-2); }
.directory a { color: var(--color-on-night); }
.footer__bottom { display: grid; gap: var(--space-md); padding-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-on-night-2); }
.footer__bottom a { color: var(--color-on-night); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-md); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.credits summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--color-on-night); }
.credits summary:focus-visible { outline: 2px solid var(--color-focus); }
.credits p { max-width: 75ch; line-height: 1.6; }
.credits a { white-space: nowrap; }
@media (max-width: 60rem) { .footer__brand, .directory { grid-column: 1 / -1; } }
@media (max-width: 40rem) {
  .directory thead { display: none; }
  .directory tr { display: grid; padding-block: var(--space-sm); border-bottom: 1px solid var(--color-night-2); }
  .directory th, .directory td { padding: 0; border: 0; }
}
.footer { padding-bottom: var(--space-3xl); }
a[href^="tel:"] { white-space: nowrap; }

/* The demo watermark: fixed, small, never in the way of a click. */
.watermark { position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: var(--z-toast); margin: 0; padding: var(--space-xs) var(--space-md); border: 1px solid color-mix(in oklab, var(--color-on-night) 22%, transparent); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-night) 88%, transparent); color: var(--color-on-night); font-size: var(--text-xs); font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; user-select: none; }

/* One reveal: rows settle in once as they enter. Visible without script. */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__lede, .today { animation: none; }
  .btn, .chip, .shelf__cue, .nav { transition: none; }
}
