/* Prana Veda Bali Sanctuary, rebuilt. Starter stylesheet from tools/scaffold.mjs: keep its rules, change its values.
   Their look, from their Elementor kit (--e-global-*): cream #F9F4EE / #F5EEE6 / #EADFD0, olive gold #8C7A46 (primary),
   sand #CBB180 (accent), sage #647974 and #B5C4AF, text #3D3D3D. Type: Noto Serif Display 300 for headings, Work Sans for text.
   Their olive fails 4.5:1 for small text on cream (3.85:1), so text and buttons use the same hue a shade deeper (#6e5f33);
   the exact olive stays for lines, stars and the map dot.
   Rules this file already follows (BUILD-BRIEF.md): one radius token; only .btn--main gets an arrow; one hover
   (lift + a fading ::after shadow) and only on a card that IS the link; inner links answer with an arrow that eases in
   (.more); header buttons share one treatment and the links show from 1024px; every button's text changes on hover;
   grids keep rows balanced (no orphaned card) and never scroll sideways; grid tracks are minmax(0, 1fr);
   reveals use `translate`, hovers use `transform` (and revealed elements keep their hover transitions);
   [hidden] always wins; media rules live at the END. */
@view-transition { navigation: auto; }

:root {
  --head: 'Noto Serif Display', Georgia, serif;
  --text: 'Work Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --paper: #f9f4ee;
  --paper-2: #f2e9dd;
  --surface: #fffdf9;
  --ink: #3d3d3d;
  --ink-2: #5c574d;
  --head-ink: #6e5f33;
  --olive: #8c7a46;
  --sand: #cbb180;
  --sage: #647974;
  --accent: #6e5f33;
  --accent-ink: #6e5f33;
  --on-accent: #fff;
  --line: color-mix(in srgb, #8c7a46 24%, transparent);
  --nav-bg: color-mix(in srgb, #f9f4ee 86%, transparent);
  --shadow: 0 1px 2px rgb(60 50 20 / 0.06), 0 22px 44px -24px rgb(60 50 20 / 0.32);

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --section: clamp(56px, 7vw, 88px);
  --r: 8px; /* THE one corner radius: every card, photo and button. Chips, dots and round buttons are round (999px). */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161714; --paper-2: #1d1f1b; --surface: #22241f;
    --ink: #e9e3d8; --ink-2: #bdb5a6; --head-ink: #dcc796;
    --accent: #cbb180; --accent-ink: #d8c293; --on-accent: #1d1a10;
    --line: rgb(203 177 128 / 0.2); --nav-bg: rgb(22 23 20 / 0.84);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 44px -24px rgb(0 0 0 / 0.85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.6 var(--text); overflow-x: clip; }
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--head); color: var(--head-ink); font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.lede { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }

/* header: full width, frosted, sticky. Logo hard left, actions hard right, links between. */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); padding-inline: var(--gutter); }
.nav__logo { flex: none; display: flex; align-items: center; min-width: 0; }
.nav__logo img { height: 54px; width: auto; }
.nav__links { display: none; flex: 1; justify-content: center; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.nav__links a { text-decoration: none; font-size: 0.95rem; transition: color 160ms var(--ease); }
.nav__links a:hover { color: var(--accent-ink); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* every header button shares ONE treatment with .btn--sm: same radius, height, type; fills on hover with the text turning */
.nav__menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r); background: none; color: inherit; box-shadow: inset 0 0 0 1px var(--line); font: 500 0.92rem/1 var(--text); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
/* the menu and close buttons are icons (Lucide menu / x, drawn by /_shared/mark.js) */
.nav__menu .mark, .sheet__close .mark { width: 20px; height: 20px; }
.nav__menu:hover { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* language: the same header-button treatment, a flag and DE/EN; its menu is a popover (outside click and Escape close it, site.js closes it on scroll) */
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r); background: none; color: inherit; box-shadow: inset 0 0 0 1px var(--line); font: 500 0.92rem/1 var(--text); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
.lang__btn:hover { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lang img { flex: none; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1); }
.lang__menu { position: fixed; inset: auto; margin: 0; padding: 6px; min-width: 170px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; translate: 0 -6px; transition: opacity 200ms var(--ease), translate 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.lang__menu:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .lang__menu:popover-open { opacity: 0; translate: 0 -6px; } }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: calc(var(--r) - 2px); text-decoration: none; font-size: 0.95rem; }
.lang__menu a:hover { background: var(--paper-2); }
.lang__menu a[aria-current] { font-weight: 500; color: var(--accent-ink); }

/* the phone menu: a sheet that rises from the bottom, choreographed both ways */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: 0; border: 0; border-radius: var(--r) var(--r) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); translate: 0 100%; transition: translate 420ms var(--ease), overlay 420ms allow-discrete, display 420ms allow-discrete; }
.sheet[open] { translate: 0 0; }
@starting-style { .sheet[open] { translate: 0 100%; } }
.sheet::backdrop { background: rgb(0 0 0 / 0); transition: background 420ms var(--ease), overlay 420ms allow-discrete, display 420ms allow-discrete; }
.sheet[open]::backdrop { background: rgb(0 0 0 / 0.35); }
@starting-style { .sheet[open]::backdrop { background: rgb(0 0 0 / 0); } }
.sheet__in { position: relative; padding: 64px var(--gutter) 32px; overflow-y: auto; max-height: 88dvh; scrollbar-width: none; }
.sheet__close { position: absolute; top: 14px; right: var(--gutter); display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r); background: var(--surface); color: inherit; box-shadow: inset 0 0 0 1px var(--line); font: 500 0.92rem/1 var(--text); cursor: pointer; }
.sheet__nav { display: grid; gap: 4px; }
.sheet__nav a { padding: 10px 0; text-decoration: none; font-size: 1.15rem; border-bottom: 1px solid var(--line); }

/* buttons: ONE main call to action gets the arrow (.btn--main). Every other button and link: none. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #000); color: var(--on-accent); }
.btn--sm { min-height: 40px; height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--accent); } /* no dead hovers: the text turns with the fill */
.btn--main::after { content: ''; width: 16px; height: 16px; background: currentColor; transition: translate 180ms var(--ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn--main:hover::after { translate: 3px 0; }
/* inner links ("See all classes", "Explore"): at rest no arrow; on hover the text steps aside and an arrow eases in.
   Use .more for every link that sits inside a card or under a section; the card around it stays still. */
.more { position: relative; display: inline-flex; align-items: center; width: fit-content; padding-right: 0; color: var(--accent-ink); font-weight: 500; text-decoration: none; transition: padding 220ms var(--ease), color 160ms var(--ease); }
.more::after { content: ''; position: absolute; right: 0; top: 50%; width: 1em; height: 1em; margin-top: -0.5em; background: currentColor; opacity: 0; translate: -0.4em 0; transition: opacity 220ms var(--ease), translate 220ms var(--ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.more:hover, .more:focus-visible, a.card:hover .more { padding-right: 1.4em; }
.more:hover::after, .more:focus-visible::after, a.card:hover .more::after { opacity: 1; translate: 0 0; }
@media (hover: none) { /* touch: no hover, so the arrow shows at rest (small) and the link reads as one */
  .more { padding-right: 1.4em; }
  .more::after { opacity: 1; translate: 0 0; scale: 0.85; }
}
.center { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* hero */
.hero { position: relative; display: grid; min-height: min(calc(100dvh - var(--nav-h)), 860px); align-items: end; overflow: clip; color: #fff; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 18 10 / 0.72), rgb(20 18 10 / 0.18) 58%, rgb(20 18 10 / 0.12)), linear-gradient(to right, rgb(20 18 10 / 0.4), transparent 60%); }
.hero__copy { position: relative; display: grid; justify-items: start; gap: 20px; padding: 64px var(--gutter) clamp(120px, 12vw, 150px); max-width: 920px; } /* bottom room: the floating preview card sits over the hero's foot */
.hero__title { color: inherit; display: grid; font-size: clamp(3rem, 1.8rem + 5.6vw, 6rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; font-weight: 300; }
.hero__kicker { font: 500 0.82rem/1.4 var(--text); letter-spacing: 0.16em; margin-bottom: 14px; opacity: 0.92; }
.hero__lede { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); max-width: 34ch; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: #fff; color: #3d3418; box-shadow: inset 0 0 0 1px #fff; }
.btn--light:hover { background: #f2e9dd; color: #2b2412; }
.btn--ghost { background: rgb(255 255 255 / 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: #3d3418; }

/* 1 · Ein Ort, der berührt: text beside the traced map, four photos under */
.place__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.place__text { display: grid; gap: 16px; justify-items: start; }
.place__text p:not(.eyebrow):not(.lede) { color: var(--ink-2); max-width: 60ch; }
.map { margin: 0; display: grid; gap: 10px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__land { fill: color-mix(in srgb, var(--sand) 22%, transparent); stroke: none; }
.map__coast { fill: none; stroke: var(--olive); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.map__pin circle { fill: var(--olive); }
.map__pin text { font: 500 22px/1 var(--text); fill: var(--ink-2); letter-spacing: 0.02em; }
.map__pin--quiet circle { fill: var(--paper); stroke: var(--olive); stroke-width: 2; }
.map__pin--home text { font: 400 30px/1 var(--head); fill: var(--head-ink); }
.map__halo { fill: none !important; stroke: var(--olive); stroke-width: 1.5; opacity: 0.45; }
.map figcaption { font-size: 0.9rem; color: var(--ink-2); text-align: center; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-top: clamp(36px, 5vw, 60px); }
.mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }

/* bands: their cream blocks */
.band { background: var(--paper-2); }
.card.card--photo { padding: 0 0 clamp(20px, 2.4vw, 26px); gap: 10px; align-content: start; }
.card.card--photo img { border-radius: var(--r) var(--r) 0 0; aspect-ratio: 3 / 2; }
.card.card--photo > :not(img) { margin-inline: clamp(18px, 2.2vw, 24px); }
.card h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem); }
.card p { color: var(--ink-2); }
.card .card__meta { font-size: 0.9rem; color: var(--accent-ink); font-weight: 500; }
.card.card--lead { box-shadow: 0 0 0 1px var(--olive); }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #6e5f33; color: #fff; font: 500 0.72rem/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.35em; }
.detox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: clamp(20px, 3vw, 28px); padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 28px); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.detox h3 { font-size: 1.25rem; margin-bottom: 4px; }
.detox p { color: var(--ink-2); max-width: 70ch; }

/* 4 · the film band (creative risk): their sunset still; their film plays in place only when asked */
.film__frame { position: relative; width: 100%; height: clamp(340px, 42vw, 78dvh); overflow: clip; background: #111; }
.film__poster, .film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(10 10 8 / 0.15), rgb(10 10 8 / 0.5)); transition: opacity 400ms var(--ease); }
.film__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.film__btn { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 999px; background: rgb(255 255 255 / 0.14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease); }
.film__btn svg { width: 26px; height: 26px; fill: currentColor; translate: 2px 0; }
.film__play:hover .film__btn { transform: scale(1.06); background: #fff; color: #3d3418; }
.film__title { font: 300 clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem)/1.1 var(--head); text-shadow: 0 2px 24px rgb(0 0 0 / 0.35); }
.film.is-playing .film__veil, .film.is-playing .film__play, .film.is-playing .film__poster { opacity: 0; pointer-events: none; }
.sanctuary__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sanctuary__in > div { display: grid; gap: 16px; justify-items: start; }
.sanctuary__in img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* 5 · reviews: five-star cards in a calm wall */
.head--center { justify-items: center; text-align: center; margin-inline: auto; }
.rating { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.95rem; text-decoration: none; transition: color 160ms var(--ease); }
.rating:hover { color: var(--accent-ink); }
.stars { display: inline-flex; gap: 3px; color: var(--olive); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.wall { columns: 3; column-gap: clamp(16px, 2.4vw, 24px); }
.review { break-inside: avoid; display: grid; gap: 14px; margin: 0 0 clamp(16px, 2.4vw, 24px); padding: clamp(20px, 2.4vw, 26px); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgb(60 50 20 / 0.35); }
.review blockquote { margin: 0; font: 400 1.125rem/1.55 var(--text); color: var(--ink); }
.review figcaption { font-size: 0.88rem; color: var(--ink-2); }

/* 6 · FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq .head { margin-bottom: 0; justify-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 300 clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem)/1.35 var(--head); color: var(--head-ink); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary i { flex: none; width: 18px; height: 18px; background: currentColor; transition: rotate 220ms var(--ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq__list details[open] summary i { rotate: 45deg; }
.faq__list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.faq__list details p a { color: var(--accent-ink); }
.faq__list details::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* 7 · the close over their garden path */
.close { position: relative; display: grid; min-height: clamp(380px, 52vw, 560px); align-items: center; overflow: clip; color: #fff; text-align: center; }
.close__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close__veil { position: absolute; inset: 0; background: rgb(20 18 10 / 0.5); }
.close__in { position: relative; display: grid; justify-items: center; gap: 22px; padding-block: var(--section); }
.close .title { color: #fff; max-width: 20ch; }
.close__note { max-width: 46ch; opacity: 0.92; font-size: 0.95rem; }

/* grids: rows stay balanced, never an orphaned card (no 2 + 1, no 3 + 1), and never a sideways scroll. Columns follow
   the count: 2 → 2; 3, 5, 6 → 3 (three stay side by side down to tablet, smaller); 4, 8 → 4 then 2; 7 → the first card
   (the flagship) spans two. Phones: one column. Show the best three to six. */
.grid { --cols: 3; display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.grid:has(> :last-child:nth-child(1)) { --cols: 1; }
.grid:has(> :last-child:nth-child(2)) { --cols: 2; }
.grid:has(> :last-child:nth-child(4)), .grid:has(> :last-child:nth-child(7)), .grid:has(> :last-child:nth-child(8)) { --cols: 4; }
.grid:has(> :last-child:nth-child(7)) > :first-child { grid-column: span 2; }

/* cards: a card that IS the link (<a class="card">) answers the pointer with a gentle lift and a fading shadow.
   A card that merely holds a link stays still (no :has(a:hover)); its link answers with .more's arrow. */
.card { position: relative; display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform 200ms var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow); opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); }
a.card:hover::after { opacity: 1; }
.card img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* text over photos: a veil so the words read and the subject stays clear; labels sit on the image */
.photo-label { position: relative; overflow: clip; border-radius: var(--r); color: #fff; }
.photo-label::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.62), transparent 60%); z-index: 1; }
.photo-label > :not(img) { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }

/* quotes: real quote marks, a first name and the source */
.quote { font: 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem)/1.35 var(--head); }
.quote cite { display: block; margin-top: 12px; font: 400 0.9rem/1.4 var(--text); font-style: normal; color: var(--ink-2); }

/* footer: ends the page, nothing under it */
.foot { margin-top: auto; padding-block: clamp(48px, 6vw, 72px) 24px; background: var(--paper-2); border-top: 1px solid var(--line); font-size: 0.95rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.foot__brand img { height: 64px; width: auto; }
.foot h3 { font: 500 0.78rem/1.4 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.foot p { color: var(--ink-2); line-height: 1.9; }
.foot a { text-decoration: none; transition: color 160ms var(--ease); }
.foot a:hover { color: var(--accent-ink); }
.foot__social { display: flex; gap: 8px; }
.foot__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: color 160ms var(--ease), background 160ms var(--ease); }
.foot__social a:hover { background: var(--accent); color: var(--on-accent); }
.foot__social svg { width: 18px; height: 18px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__base p { font-size: 0.85rem; line-height: 1.6; }
.sheet__group { margin: 18px 0 4px; font: 500 0.75rem/1.4 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.sheet__group:first-child { margin-top: 0; }

/* motion: choreographed, gentle; nothing pops. Reveals use translate, so hovers can own transform. */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: settle 1800ms var(--ease) both; }
  .hero__copy > :not(h1) { animation: rise 900ms var(--ease) both; animation-delay: calc(200ms + var(--d, 0) * 110ms); } /* the headline is usually the LCP: never fade it in */
  .hero__copy > :nth-child(2) { --d: 1; } .hero__copy > :nth-child(3) { --d: 2; } .hero__copy > :nth-child(4) { --d: 3; }
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity 700ms var(--ease), translate 800ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  /* .js .reveal is more specific than .card / .btn, so once revealed it must carry their hover transitions too, with no
     delay, or every revealed card's lift snaps */
  .js .reveal.is-in { opacity: 1; translate: 0 0; transition: opacity 700ms var(--ease), translate 800ms var(--ease), transform 200ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s; }
  /* the signature: the coast draws in once, then the dot settles at Bondalem; nothing keeps moving */
  .js .map__coast { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .map__land { opacity: 0; transition: opacity 1400ms var(--ease) 2200ms; }
  .js .map__pin { opacity: 0; transition: opacity 700ms var(--ease); }
  .js .map__halo { scale: 0.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .js .map.is-in .map__coast { animation: coast 3200ms cubic-bezier(0.45, 0, 0.25, 1) forwards; }
  .js .map.is-in .map__land { opacity: 1; }
  .js .map.is-in .map__pin--quiet { opacity: 1; transition-delay: 2600ms; }
  .js .map.is-in .map__pin--home { opacity: 1; transition-delay: 3000ms; }
  .js .map.is-in .map__halo { animation: halo 1600ms var(--ease) 3200ms forwards; }
}
@keyframes coast { to { stroke-dashoffset: 0; } }
@keyframes halo { 0% { scale: 0.4; opacity: 0; } 40% { opacity: 0.7; } 100% { scale: 1; opacity: 0.45; } }
@keyframes settle { from { scale: 1.05; opacity: 0.6; } to { scale: 1; opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* ═══════════ Media rules: ALL of them here, after the base rules they override (cascade order). ═══════════ */
@media (min-width: 1024px) {
  .nav__links { display: flex; } /* laptops show the real links (fewer than ~7); Menu is for phones and tablets only */
  .nav__menu { display: none; }
}
@media (max-width: 1023px) {
  .grid:has(> :last-child:nth-child(4)), .grid:has(> :last-child:nth-child(7)), .grid:has(> :last-child:nth-child(8)) { --cols: 2; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid:has(> :last-child:nth-child(7)) > :first-child { grid-column: auto; }
}
@media (max-width: 520px) {
  .nav__end .btn { display: none; }
}
@media (max-width: 900px) {
  .place__in, .sanctuary__in, .faq { grid-template-columns: minmax(0, 1fr); }
  .map { max-width: 560px; justify-self: center; width: 100%; }
  .wall { columns: 2; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { columns: 1; }
  .film__frame { height: min(110vw, 78dvh); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { gap: 16px; }
}
