/* ==========================================================================
   Mayjoy — design system (shared base with psykologisk.info), olive accent
   Apple-inspired: dark glass global nav, oversized type, alternating
   black / white / light-gray chapters, bento grids, restrained motion.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --dark: #161617;
  --dark-2: #1d1d1f;
  --dark-line: #333336;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;

  --accent: #4a5222;
  --accent-hover: #3a4119;
  --accent-soft: #eff1e4;
  --accent-bright: #c9d39a;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Hind Madurai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Poppins", "Montserrat", sans-serif;

  --fs-hero: clamp(2.75rem, 1.2rem + 6.2vw, 6rem);
  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  --fs-headline: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-title: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --fs-statement: clamp(1.5rem, 1.05rem + 1.9vw, 2.625rem);
  --fs-intro: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 1280px;
  --container: 1080px;
  --narrow: 760px;
  --chapter: clamp(5rem, 3.5rem + 7vw, 10rem);
  --nav-h: 60px;
  --nav-gap: 12px;
  --header-space: calc(var(--nav-h) + var(--nav-gap));

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-pill: 980px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --dur: 240ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-space) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.58 var(--font-body);
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 600px) { h1, h2, .statement { -webkit-hyphens: auto; hyphens: auto; } }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1.2rem; border-radius: var(--r-pill); background: #fff; color: var(--ink); }
.skip-link:focus { top: .5rem; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wide) + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.chapter { padding-block: var(--chapter); }
.chapter--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.chapter--flush-top { padding-top: 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--black); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark a { color: #fff; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.headline { font-size: var(--fs-headline); }
.display { font-size: var(--fs-display); letter-spacing: -0.03em; }
.title { font-size: var(--fs-title); letter-spacing: -0.015em; }
.intro { font-size: var(--fs-intro); line-height: 1.45; color: var(--ink-2); }
.bg-dark .intro { color: var(--on-dark-2); }
.intro--ink { color: var(--ink); }
.headline + .intro, .headline + p { margin-top: 1.5rem; }
.muted { color: var(--gray); }

.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-statement);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.bg-dark .statement { color: #fff; }

.head-block { max-width: 820px; margin: 0 auto clamp(2.5rem, 2rem + 3vw, 4.5rem); text-align: center; }
.head-block .intro { margin-top: 1.25rem; }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2rem; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: .72rem 1.45rem;
  border-radius: var(--r-pill); border: 0;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #e8e8ed; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: var(--accent-soft); }
.bg-dark .btn--primary { background: #fff; color: var(--ink); }
.bg-dark .btn--primary:hover { background: #e8e8ed; }

.more {
  display: inline-flex; align-items: center; gap: .2em; min-height: 44px;
  font-size: 1.0625rem; font-weight: 500; color: var(--accent);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.more::after { content: "›"; font-size: 1.35em; line-height: 0; transform: translateY(-.02em); transition: transform var(--dur) var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: .18em; }
.more:hover::after { transform: translate(3px, -.02em); }
.bg-dark .more { color: #fff; }

/* ---------- Global nav — white floating bar ----------
   The bar is fixed and floats above the page with a gap on every side.
   Glass + shadow live on ::before so the bar itself never becomes the
   containing block for the fixed mobile panel. */
.gnav { position: fixed; top: var(--nav-gap); left: 0; right: 0; z-index: 100; pointer-events: none; }
.gnav__inner {
  position: relative; pointer-events: auto;
  width: calc(100% - var(--nav-gap) * 2); max-width: 1240px; margin-inline: auto;
  height: var(--nav-h); padding: 0 .5rem 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  color: var(--ink);
}
.gnav__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.08);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 22px; }
.brand__mark img { width: 18px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: .875rem; letter-spacing: .08em; }
.brand__sub { font-size: .71875rem; color: var(--gray); }
.gnav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.gnav__list li { margin: 0; }
.gnav__link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 .8rem;
  border-radius: 10px; font-size: .875rem; color: var(--ink-2); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.gnav__link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.gnav__link[aria-current="page"] { color: var(--ink); background: var(--bg-alt); font-weight: 600; }
.gnav__link--cta { margin-left: .5rem; padding: 0 1.1rem; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 500; }
.gnav__link--cta:hover, .gnav__link--cta[aria-current="page"] { background: var(--accent-hover); color: #fff; }
.gnav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.gnav__toggle:hover { background: rgba(0, 0, 0, 0.04); }
.gnav__bars, .gnav__bars::before, .gnav__bars::after { content: ""; display: block; position: relative; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.gnav__bars::before { position: absolute; top: -6px; }
.gnav__bars::after { position: absolute; top: 6px; }
.nav-open .gnav__bars { background: transparent; }
.nav-open .gnav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .gnav__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .gnav__toggle { display: inline-flex; }
  .gnav__menu {
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    padding: .75rem; border-radius: 22px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(0, 0, 0, 0.16);
    max-height: calc(100svh - var(--nav-h) - var(--nav-gap) * 3); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav-open .gnav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__link { display: flex; height: 52px; padding: 0 1rem; border-radius: 14px; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
  .gnav__link--cta { margin: .5rem 0 0; justify-content: center; border-radius: 14px; }
}

/* Pages that don't open with a full-bleed hero get room for the floating bar */
main { padding-top: var(--header-space); }
main.has-hero { padding-top: 0; }

/* ---------- Media helpers ---------- */
.media { overflow: hidden; border-radius: var(--r-lg); background: var(--line-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-wide { aspect-ratio: 21 / 9; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1 { aspect-ratio: 1; }
@media (max-width: 700px) { .ratio-wide { aspect-ratio: 4 / 3; } }

/* ---------- Page heros ---------- */
.hero-type { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-type h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 1.02; }
.hero-type .intro { max-width: 760px; margin-top: 1.5rem; }
.hero-type.center .intro { margin-inline: auto; }

/* Full-bleed photo heroes: ~70% of the viewport (60–80%), header floats on top. */
.hero-photo {
  position: relative; height: 70vh; height: 70svh; min-height: max(420px, 60svh); max-height: 80svh;
  padding-top: var(--header-space);
  display: grid; place-items: center; text-align: center; color: #fff;
  overflow: hidden; isolation: isolate; background: #1d1b1a;
}
.hero-photo__media { position: absolute; inset: 0; z-index: -2; }
.hero-photo__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, rgba(0,0,0,.75)); }
.hero-photo h1 { font-size: clamp(3.25rem, 1.5rem + 8vw, 8rem); letter-spacing: -0.04em; color: #fff; }

/* Home: long headline sits low over the photo, brain stays visible above it */
.hero-photo--home { place-items: end center; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero-photo--home .hero-photo__media img { object-position: center 18%; }
.hero-photo--home::after { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.82) 100%); }
.hero-photo--home h1 { font-size: clamp(2rem, 0.9rem + 3.6vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 22ch; margin-inline: auto; }
.hero-photo--home h1 span { display: block; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; text-align: center; }
.stats li { margin: 0; padding: 0 1.5rem; border-left: 1px solid var(--dark-line); }
.stats li:first-child { border-left: 0; }
.stats__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 1.8rem + 5vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.stats__label { display: block; margin-top: .75rem; color: var(--on-dark-2); font-size: var(--fs-intro); line-height: 1.3; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats li { border-left: 0; padding: 0; }
}

/* ---------- Bento & tiles ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

.door {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--r-lg);
  text-align: center;
}
.door__body { padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) clamp(1.5rem, 1rem + 3vw, 3.5rem) 2rem; }
.door__body h2 { font-size: var(--fs-title); margin-bottom: 1rem; }
.door__body p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.door__body .actions { margin-top: 1.25rem; justify-content: center; }
.door__media { margin-top: auto; aspect-ratio: 16 / 11; overflow: hidden; }
.door__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.door:hover .door__media img { transform: scale(1.03); }

/* Photo tiles (linked) */
.tiles-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles-3 { grid-template-columns: 1fr; } }
.ptile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; color: #fff; isolation: isolate; background: var(--dark); }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease); }
.ptile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
.ptile:hover { text-decoration: none; }
.ptile:hover img { transform: scale(1.04); }
.ptile__label { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ptile__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-title); letter-spacing: -0.02em; line-height: 1.1; }
.ptile__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.ptile:hover .ptile__icon { background: rgba(255,255,255,.35); }
.ptile--card { cursor: pointer; border: 0; padding: 0; text-align: left; width: 100%; font: inherit; }
.ptile--card .ptile__label { flex-direction: column; align-items: flex-start; gap: .9rem; }
/* Hairline-divided heading + text row (Apple spec-sheet style) */
.split-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
.split-head .title { line-height: 1.15; }
@media (max-width: 820px) { .split-head { grid-template-columns: 1fr; } }
.ptile__more { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 500; padding: .45rem .55rem .45rem 1rem; border-radius: var(--r-pill); background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.ptile__more svg { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); padding: 5px; }

/* ---------- Feature cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr; } }
.fcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.bg-alt .fcard { background: #fff; }
.bg .fcard, .fcard--alt { background: var(--bg-alt); }
.fcard__icon { display: block; width: 44px; height: 44px; margin-bottom: 1.5rem; color: var(--ink); }
.fcard h3 { font-size: 1.3125rem; letter-spacing: -0.015em; margin-bottom: .75rem; line-height: 1.25; }
.fcard p { color: var(--ink-2); }
.fcard p > strong:first-child { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; letter-spacing: -0.015em; color: var(--ink); margin-bottom: .5rem; }
.fcard .label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; letter-spacing: -0.015em; color: var(--ink); margin-bottom: .5rem; }
.fcard .more { margin-top: auto; padding-top: 1rem; }

/* App-icon style product mark */
.app-icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); margin-bottom: 1.75rem; transition: transform var(--dur) var(--ease); }
.app-icon:hover { transform: translateY(-2px); }
.app-icon img { width: 64px; height: auto; }

/* ---------- Two-column editorial ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.editorial--flip > :first-child { order: 2; }
.editorial__text p { color: var(--ink-2); }
.bg-dark .editorial__text p { color: var(--on-dark-2); }
.editorial__text h2 { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } .editorial--flip > :first-child { order: 0; } }

.sticky-media { position: sticky; top: calc(var(--header-space) + 2rem); }
@media (max-width: 860px) { .sticky-media { position: static; } }

/* Check grid (symptom lists, examples) */
.checks { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.checks li { margin: 0; display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: var(--bg-alt); border-radius: var(--r-sm); color: var(--ink); line-height: 1.45; }
.bg-alt .checks li { background: #fff; }
.checks li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: .05em; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Link tiles (inspiration) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.link-grid li { margin: 0; }
.link-grid a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  height: 100%; min-height: 150px; padding: 1.25rem 1.25rem 1.1rem;
  background: var(--bg-alt); border-radius: var(--r-sm); color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.link-grid a:hover { background: var(--line-soft); text-decoration: none; }
.link-grid .lbl { font-size: .9375rem; line-height: 1.35; padding-right: 1.5rem; }
.link-grid .url { font-size: .8125rem; color: var(--accent); overflow-wrap: anywhere; line-height: 1.35; }
.link-grid a::after { content: "↗"; position: absolute; top: 1.05rem; right: 1.1rem; color: var(--gray-2); font-size: 1rem; }
@media (max-width: 1000px) { .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .link-grid { grid-template-columns: 1fr; } .link-grid a { min-height: 0; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16.66%; right: 16.66%; height: 1px; background: var(--line); }
.steps li { margin: 0; text-align: center; position: relative; }
.steps__num { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 1.5rem; }
.steps__text { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; max-width: 14ch; margin-inline: auto; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { top: 0; bottom: 0; left: 34px; right: auto; width: 1px; height: auto; }
  .steps li { display: flex; align-items: center; gap: 1.5rem; text-align: left; }
  .steps__num { margin: 0; flex-shrink: 0; }
  .steps__text { margin: 0; max-width: none; }
}

.fine-print { max-width: 640px; margin: 2.5rem auto 0; text-align: center; font-size: var(--fs-small); color: var(--gray); }

/* ---------- Notice (Obs) ---------- */
.notice { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--bg-alt); border-radius: var(--r-lg); overflow: hidden; }
.notice__media img { width: 100%; height: 100%; object-fit: cover; }
.notice__body { padding: clamp(2rem, 1.5rem + 3vw, 4rem); }
.notice__body h2 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-title); margin-bottom: 1.25rem; }
.notice__body h2 svg { color: var(--ink); flex-shrink: 0; }
.notice__body p { color: var(--ink-2); }
@media (max-width: 820px) { .notice { grid-template-columns: 1fr; } .notice__media { aspect-ratio: 16 / 9; } }

/* ---------- Collapsible (Læs mere / Læs mindre) ---------- */
.js .collapsible__content { display: none; }
.js .collapsible.is-open .collapsible__content { display: block; animation: fade var(--dur) var(--ease); }
.collapsible__toggle { margin-top: .5rem; }
.no-js .collapsible__toggle { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Dialog (test details) ---------- */
.sheet {
  width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 4rem);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: auto;
}
.sheet::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 320ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.sheet__body h2 { font-size: var(--fs-title); margin-bottom: 1.25rem; }
.sheet__body p { font-size: 1.125rem; color: var(--ink-2); line-height: 1.6; }
.sheet__close { position: sticky; float: right; top: 1rem; margin: 1rem 1rem -4rem 0; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(29,29,31,.72); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet__close:hover { background: var(--ink); }
.sheet__footer { padding: 0 clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(1.75rem, 1.25rem + 2vw, 3rem); }

/* ---------- Contact (dark) ---------- */
.contact { background: var(--black); color: var(--on-dark); text-align: center; }
.contact__title { font-size: clamp(3rem, 1.5rem + 7vw, 7.5rem); letter-spacing: -0.04em; color: #fff; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.contact__portrait { width: 168px; height: 168px; margin: 0 auto 1.75rem; border-radius: 50%; overflow: hidden; background: var(--dark-2); }
.contact__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; }
.contact__name { font-size: var(--fs-title); color: #fff; margin-bottom: 1.5rem; }
.contact__bio { max-width: 680px; margin-inline: auto; color: var(--on-dark-2); }
.contact__bio p { margin-bottom: 1em; }
.contact__bio a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .2em; }
.contact__lead { color: #fff; font-weight: 500; margin-top: 2rem !important; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.contact__actions a { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 1.125rem; font-weight: 500; transition: background-color var(--dur) var(--ease); }
.contact__actions a:hover { background: #e8e8ed; text-decoration: none; }
.contact__actions svg { color: var(--gray); }
.contact__note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem !important; padding: .5rem 1rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); color: var(--on-dark-2); font-size: var(--fs-small); font-weight: 500; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 1rem; margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); text-align: left; }
.contact__card { background: var(--dark-2); border-radius: var(--r-md); padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.contact__card h3 { font-size: 1.3125rem; letter-spacing: -0.015em; color: #fff; margin-bottom: .6rem; }
.contact__card p { font-size: 1.0625rem; line-height: 1.55; color: var(--on-dark-2); }
.contact__card a { color: #fff; }
.contact__photo { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; min-height: 220px; }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.contact__photo:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr 1fr; } .contact__photo { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .contact__grid { grid-template-columns: 1fr; } .contact__card { min-height: 0; } }

/* ---------- Supervision ---------- */
.offer-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.5rem; }

/* ---------- Insurance ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rule { background: var(--bg-alt); border-radius: var(--r-lg); padding: clamp(2rem, 1.5rem + 2vw, 3rem); }
.rule__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.rule p { color: var(--ink-2); }
.rule em { color: var(--ink); font-style: italic; }
@media (max-width: 820px) { .rules { grid-template-columns: 1fr; } }
.choice { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: space-between; gap: 2rem; background: #fff; border-radius: var(--r-lg); padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.choice p { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; max-width: 22ch; }
.choice__logo { display: inline-block; height: 1.5em; width: auto; vertical-align: -0.35em; margin-left: .15em; }

/* ---------- Booking ---------- */
.booking { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-soft), 0 20px 60px rgba(0,0,0,.06); }
.booking iframe { display: block; width: 100%; height: 1000px; border: 0; }

/* ---------- Cookies ---------- */
.legal h1 { font-size: var(--fs-headline); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--fs-title); margin: 3.5rem 0 1rem; }
.legal h3 { font-size: 1.375rem; margin: 3rem 0 .75rem; letter-spacing: -0.015em; }
.legal p { color: var(--ink-2); }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0 0; font-size: .9375rem; background: var(--bg-alt); border-radius: var(--r-sm); overflow: hidden; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: .9rem 1.1rem; }
.ctable th { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--gray); border-bottom: 1px solid var(--line); }
.ctable td { border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.ctable tr:last-child td { border-bottom: 0; }
.ctable td:first-child { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; color: var(--ink); word-break: break-all; }
@media (max-width: 680px) {
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable td { display: block; width: 100%; }
  .ctable tr { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .ctable tr:last-child { border-bottom: 0; }
  .ctable td { border: 0; padding: .2rem 1.1rem; }
  .ctable td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); font-family: var(--font-body); }
}

/* ---------- Blog (newsroom) ---------- */
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: .35rem 1rem; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 500; }
a.chip { background: var(--bg-alt); color: var(--ink); }
a.chip:hover { background: var(--line-soft); text-decoration: none; }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news__item { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--r-md); overflow: hidden; color: var(--ink); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.news__item:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.news__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.news__title { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.25; }
.news__meta { margin-top: auto; padding-top: 1.25rem; font-size: var(--fs-small); color: var(--gray); }
.news__item--feature { grid-column: span 2; grid-row: span 2; }
.news__item--feature .news__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.news__item--feature .news__title { font-size: var(--fs-title); }
.news__item--feature .news__body { flex: 0; padding: 2rem 2rem 2.25rem; }
@media (max-width: 900px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news__item--feature { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

.article__head { max-width: var(--narrow); margin: 0 auto; padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.article__head h1 { font-size: var(--fs-display); letter-spacing: -0.035em; margin-top: 1.75rem; }
.article__meta { margin-top: 1.25rem; color: var(--gray); font-size: var(--fs-small); }
.article__cover { max-width: var(--wide); margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) auto; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .article__cover { aspect-ratio: 4 / 3; } }
.article__body { max-width: 680px; margin: 0 auto; font-size: 1.1875rem; line-height: 1.72; }
.article__body p, .article__body li { color: var(--ink-2); }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body > p:first-child { font-size: 1.375rem; line-height: 1.55; color: var(--ink); }
.article__body h2 { font-size: 1.625rem; letter-spacing: -0.015em; margin: 2.5em 0 .7em; }
.article__body ol, .article__body ul { padding-left: 1.4em; margin: 1.5em 0; }
.article__body li { margin-bottom: .9em; padding-left: .25em; }
.article__body li::marker { color: var(--accent); font-weight: 600; }
.article__body figure { margin: 3rem 0 0; }
.article__body figure img { border-radius: var(--r-md); width: 100%; }
.article__body .gap { height: 1rem; }
.article__body ol.values { columns: 3 11rem; column-gap: 2rem; padding: 1.5rem 1.5rem 1.5rem 3rem; background: var(--bg-alt); border-radius: var(--r-md); font-size: 1rem; }
.article__body ol.values li { margin-bottom: .35em; break-inside: avoid; color: var(--ink); }

.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.related-head h2 { font-size: var(--fs-title); }

/* ---------- Message pages ---------- */
.message { text-align: center; }
.message h1 { font-size: var(--fs-hero); letter-spacing: -0.04em; }
.message .intro { margin-top: 1.25rem; }
.message .actions { justify-content: center; }

/* ---------- Footer ---------- */
.gfoot { background: var(--bg-alt); color: var(--gray); font-size: .8125rem; line-height: 1.5; padding: 3rem 0 2.5rem; }
.gfoot__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.gfoot__logo { width: 190px; height: auto; mix-blend-mode: multiply; }
.gfoot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 1.75rem; }
.gfoot h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: .6rem; }
.gfoot p { margin: 0 0 .35rem; }
.gfoot a { color: var(--ink-2); }
.gfoot a:hover { color: var(--ink); }
@media (max-width: 700px) { .gfoot__cols { grid-template-columns: 1fr; gap: 1.5rem; } .gfoot__top { flex-direction: column; align-items: flex-start; } }

/* ---------- Spacing utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 1.25rem; }
.mt-m { margin-top: 2.5rem; }
.mt-l { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.mb-m { margin-bottom: 2.5rem; }
.maxw-text { max-width: 62ch; }
.maxw-statement { max-width: 30ch; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.list-reset > li { margin: 0; }
.editorial--top { align-items: start; }
.checks--1 { grid-template-columns: 1fr; }
.center.eyebrow, .eyebrow.center { text-align: center; }
.head-block .statement { margin-inline: auto; }

/* ---------- Scroll reveals (classes set by site.js) ---------- */
.reveal-on [data-r] { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0ms); }
.reveal-on [data-r="up"] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-on [data-r="fade"] { opacity: 0; transform: scale(1.04); transition: opacity 1400ms var(--ease-out), transform 1800ms var(--ease-out); transition-delay: 250ms; }
.reveal-on [data-r="img"] { clip-path: inset(7% 7% 7% 7% round var(--r-lg)); transition: clip-path 1300ms var(--ease-out); }
.reveal-on [data-r="img"] img { transform: scale(1.14); transition: transform 1600ms var(--ease-out); }
.reveal-on [data-r].is-in { opacity: 1; transform: none; }
.reveal-on [data-r="img"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.reveal-on [data-r="img"].is-in img { transform: none; }
.reveal-on .door__media[data-r="img"], .reveal-on .notice__media[data-r="img"] { clip-path: inset(10% 0 0 0); }
.reveal-on .door__media[data-r="img"].is-in, .reveal-on .notice__media[data-r="img"].is-in { clip-path: inset(0 0 0 0); }
/* hover zoom on door images keeps working once revealed */
.reveal-on .door:hover .door__media.is-in img { transform: scale(1.03); }

@media print { .reveal-on [data-r] { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .gnav, .gfoot, .btn, .more { display: none !important; }
  .js .collapsible__content { display: block; }
}

/* ==========================================================================
   Mayjoy components
   ========================================================================== */
.brand__word { font-family: var(--font-brand); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); }

/* Hero content: logo + headline + action, centred over the photo */
.hero-photo__content { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(420px, 70vw); height: auto; margin-bottom: clamp(.5rem, 2vh, 1.5rem); filter: drop-shadow(0 2px 18px rgba(0,0,0,.25)); }
.hero-logo--sm { width: min(300px, 56vw); }
.hero-photo--home h1, .hero-photo--kuld h1 { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; font-weight: 600; }
.hero-photo--home .hero-photo__media img { object-position: center 68%; }
.hero-photo--home::after, .hero-photo--kuld::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.6) 100%); }
.hero-photo .actions { margin-top: 1.5rem; }

/* Dogs: alternating editorial rows */
.dogs { display: grid; gap: clamp(4rem, 3rem + 5vw, 8rem); }
.dog { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: start; }
.dog--flip .dog__media { order: 2; }
.dog__media { position: sticky; top: calc(var(--header-space) + 2rem); aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); }
.dog__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease), transform 1200ms var(--ease); }
.dog__img--alt { opacity: 0; transform: scale(1.04); }
.dog__media:hover .dog__img--alt, .dog__media.is-alt .dog__img--alt { opacity: 1; transform: none; }
.dog__name { font-size: var(--fs-title); letter-spacing: -0.02em; line-height: 1.15; }
.dog__reg { margin-top: .75rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.dog__ped { font-weight: 500; color: var(--ink); }
.dog__text { font-size: var(--fs-intro); line-height: 1.5; color: var(--ink-2); margin-top: 1.25rem; }
.results { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.results li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; margin: 0; border-bottom: 1px solid var(--line-soft); font-size: .9688rem; color: var(--ink); }
.results time { flex-shrink: 0; color: var(--gray); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .dog { grid-template-columns: 1fr; }
  .dog--flip .dog__media { order: 0; }
  .dog__media { position: relative; top: 0; }
}

/* Carousel: full-bleed scroll-snap strip */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2)); padding: 0 max(var(--gutter), calc((100vw - var(--wide)) / 2)); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 min(62vw, 820px); margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); }
.carousel__item img { width: 100%; height: 100%; object-fit: cover; }
.carousel__nav { display: flex; justify-content: flex-end; gap: .5rem; max-width: calc(var(--wide) + var(--gutter) * 2); margin: 1.25rem auto 0; padding-inline: var(--gutter); }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.carousel__btn:hover { background: var(--line-soft); }
@media (max-width: 700px) { .carousel__item { flex-basis: 86vw; } }

/* Litters: date + masonry gallery + lightbox */
.litter__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.litter__title { font-size: var(--fs-headline); letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.litter__title span { display: block; font-size: .5em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); margin-top: .5rem; }
.litter__date { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-title); color: var(--gray); font-variant-numeric: tabular-nums; }
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry__item { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: var(--line-soft); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry__item img { width: 100%; height: auto; transition: transform 900ms var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 8, .94); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade 240ms var(--ease); }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__btn { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.lightbox__close:hover, .lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__btn--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* Contact page: photo + form split */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-space)); }
.contact-page__media { position: relative; margin: 0 0 var(--nav-gap) var(--nav-gap); border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); }
.contact-page__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-page__form { display: flex; align-items: center; justify-content: center; padding: clamp(2.5rem, 2rem + 4vw, 6rem) var(--gutter); }
.mform { width: 100%; max-width: 460px; display: grid; gap: 1.1rem; }
.mform h1 { font-size: var(--fs-display); letter-spacing: -0.03em; margin-bottom: .75rem; }
.mform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.mform__send { justify-self: start; margin-top: .5rem; min-width: 140px; }
@media (max-width: 860px) {
  .contact-page { grid-template-columns: 1fr; min-height: 0; }
  .contact-page__media { aspect-ratio: 4 / 3; margin: 0 var(--nav-gap); }
}
@media (max-width: 460px) { .mform__row { grid-template-columns: 1fr; } }

/* Blog empty state */
.blog-empty { min-height: 50vh; display: grid; place-items: center; }

/* Footer (dark) */
.mfoot { background: #11120e; color: #a6a89c; font-size: .875rem; padding: 4rem 0 3rem; }
.mfoot a { color: #e9eadf; }
.mfoot a:hover { color: #fff; }
.mfoot__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid #2a2b24; }
.mfoot__logo img { width: 200px; height: auto; }
.mfoot__badges { display: flex; align-items: center; gap: 1rem; }
.mfoot__badges img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }
.mfoot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; }
.mfoot h2 { font-family: var(--font-body); font-size: .875rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: .6rem; }
.mfoot p { margin: 0 0 .35rem; }
.mfoot__legal { text-align: right; }
@media (max-width: 700px) { .mfoot__cols { grid-template-columns: 1fr; } .mfoot__legal { text-align: left; } .mfoot__top { flex-direction: column; align-items: flex-start; } }

/* ---------- Cookie consent banner ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; justify-content: center; padding: 0 var(--nav-gap, 12px) var(--nav-gap, 12px); pointer-events: none; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms; }
.cc.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.cc__card { pointer-events: auto; width: 100%; max-width: 760px; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.18); }
.cc__title { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: .5rem; }
.cc__text { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
.cc__text a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.cc__prefs { display: grid; gap: .5rem; margin-top: 1.1rem; }
.cc__pref { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--bg-alt); cursor: pointer; }
.cc__pref-text { display: grid; gap: .15rem; font-size: .875rem; color: var(--ink-2); }
.cc__pref-text strong { font-size: .9375rem; color: var(--ink); }
.cc__switch { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; background: #d2d2d7; position: relative; cursor: pointer; transition: background-color 180ms var(--ease); margin: 0; }
.cc__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 180ms var(--ease); }
.cc__switch:checked { background: var(--accent); }
.cc__switch:checked::after { transform: translateX(18px); }
.cc__switch:disabled { opacity: .55; cursor: default; }
.cc__switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1.1rem; }
.cc__btn { min-height: 44px; }
@media (max-width: 560px) {
  .cc__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc__actions [data-cc="all"] { grid-column: 1 / -1; order: -1; }
}

/* Placeholder for content that waits for consent (e.g. booking iframe) */
.consent-ph { display: grid; place-items: center; text-align: center; gap: 1rem; min-height: 420px; padding: 2.5rem 1.5rem; background: var(--bg-alt); border-radius: inherit; }
.consent-ph p { max-width: 46ch; color: var(--ink-2); margin: 0; }
.consent-ph .actions { margin-top: 0; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; text-underline-offset: .18em; }
.cc [hidden] { display: none !important; }
