/* ==========================================================================
   Miraal Arabia — site stylesheet
   One theme for every page. Change a value here and it changes everywhere.
   ========================================================================== */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand: the two Miraal colours lead everything */
  --ink: #003F52;          /* Miraal teal (colour 1): headings, buttons, dark bands */
  --ink-2: #0B5266;        /* teal, one step lighter: hovers, secondary surfaces */
  --night: #00222D;        /* teal at its deepest: footer, night scenes */
  --olive: #94AB1E;        /* Miraal olive (colour 2): accents, main call to action */
  --olive-ink: #566610;    /* olive dark enough for small text on light grounds */
  --olive-light: #B5C94A;  /* olive light enough for small text on teal */
  --whatsapp: #25D366;     /* WhatsApp green, used only on WhatsApp icons */

  /* Neutrals, tinted from the teal so nothing competes with the brand */
  --shell: #FFFFFF;        /* page */
  --mist: #F1F5F5;         /* alternate sections */
  --stone: #DDE5E4;        /* image placeholders, quiet fills */
  --white: #FFFFFF;

  /* Text */
  --text: #213A41;
  --muted: #4E6469;
  --on-dark: #F3F6F4;
  --on-dark-muted: #AFC5C7;

  --line: rgba(0, 63, 82, .13);
  --line-strong: rgba(0, 63, 82, .26);
  --line-dark: rgba(243, 246, 244, .16);

  /* Type */
  --serif: "Marcellus", "Hanken Grotesk", "Optima", "Candara", "Palatino Linotype", serif;  /* digits fall through to Hanken Grotesk */
  --sans: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --fs-label: .75rem;                                  /* 12, set in capitals */
  --fs-xs: .8125rem;                                   /* 13 */
  --fs-sm: .9375rem;                                   /* 15 */
  --fs-base: 1.0625rem;                                /* 17 */
  --fs-lead: clamp(1.125rem, 1.04rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.18rem + .5vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.3vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.9vw, 4.75rem);

  /* Space */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem;
  --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
  --gutter: clamp(1.25rem, .6rem + 3vw, 3rem);
  --container: 1240px;

  /* Shape: crisp corners, quiet depth */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --shadow-float: 0 30px 60px -30px rgba(0, 34, 45, .45);
  --shadow-card: 0 22px 44px -28px rgba(0, 34, 45, .35);

  --header-h: 92px;        /* header: menu with WhatsApp and email under it */
  --header-total: var(--header-h);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 760px) { :root { --header-h: 68px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-total) + 16px); }
body {
  margin: 0;
  background: var(--shell);
  color: var(--text);
  font: 400 var(--fs-base)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--olive); color: var(--night); }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: var(--r-sm); }
.on-dark :focus-visible, .hero :focus-visible, .site-header.is-over :focus-visible { outline-color: var(--olive-light); }

.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: fixed; left: 16px; top: -80px; z-index: 200; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow-float); font-weight: 500; }
.skip-link:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.bg-mist { background: var(--mist); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); }
.bg-night { background: var(--night); }
.on-dark { color: var(--on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }

/* Section heading: label + title on the left, short text + link on the right */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.sec-head__aside { max-width: 30rem; justify-self: end; }
.sec-head__aside p { color: var(--muted); }
.on-dark .sec-head__aside p:not(.label) { color: var(--on-dark-muted); }
.sec-head__aside .link { margin-top: var(--s4); }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .sec-head__aside { justify-self: center; }
.sec-head h2 { max-width: 18ch; }
.sec-head--center h2 { max-width: 20ch; }
@media (max-width: 760px) { .br-lg { display: none; } }

/* Small label above a heading: the olive dot echoes the dots in the logo */
.label { display: inline-flex; align-items: flex-start; gap: .85em; margin: 0 0 var(--s5); font: 600 var(--fs-label)/1.2 var(--sans); color: var(--olive-ink); letter-spacing: .2em; text-transform: uppercase; }
.label::before { content: ""; width: 6px; height: 6px; margin-top: .3em; border-radius: 50%; background: var(--olive); flex: none; }
.on-dark .label, .hero .label, .page-hero .label { color: var(--olive-light); }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }
.on-dark .lead { color: var(--on-dark-muted); }
.fine-print { margin-top: var(--s6); font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 2.1em; border-radius: var(--r-sm);
  font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-2); }
.btn--olive { background: var(--olive); color: var(--night); }
.btn--olive:hover { background: var(--olive-light); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 1.4em; font-size: .75rem; letter-spacing: .12em; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em;
  text-decoration-color: var(--olive);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: var(--olive); color: var(--ink); }
.on-dark .link, .link--light { color: var(--on-dark); }
.on-dark .link:hover, .link--light:hover { color: var(--white); text-decoration-color: var(--olive-light); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s6); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-total);
  transition: box-shadow .35s var(--ease);
}
/* The frosted background sits on a layer of its own: a backdrop-filter on the
   header itself would trap the fixed mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto; height: var(--header-h); z-index: -1;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity .35s var(--ease);
}
.site-header.is-over::before { opacity: 0; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.brand { position: relative; display: block; flex: none; width: 176px; aspect-ratio: 640 / 229; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.brand__light { opacity: 0; }
.site-header.is-over .brand__light { opacity: 1; }
.site-header.is-over .brand__dark { opacity: 0; }

.header-main { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav { margin-left: 0; }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, .2rem + 1.2vw, 1.75rem); }
.nav__link { position: relative; display: block; padding: .5rem 0; font: 500 .9375rem/1 var(--sans); color: var(--ink); letter-spacing: .015em; white-space: nowrap; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--olive); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { opacity: 1; transform: none; }
.site-header.is-over .nav__link { color: var(--white); }
.header-cta { flex: none; }
.nav__extra { display: none; }

/* About menu: Our Story and Journal */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: .35em; cursor: pointer; }
.nav__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__toggle.is-current::after { opacity: 1; transform: none; }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: -1.25rem; min-width: 210px; z-index: 5;
  background: var(--white); border-top: 2px solid var(--olive); border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-float); padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.nav__item--menu:hover > .nav__menu, .nav__item--menu:focus-within > .nav__menu, .nav__toggle[aria-expanded="true"] + .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__sublink { display: block; padding: .7rem 1.25rem; font: 500 .9375rem/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.nav__sublink:hover { background: var(--mist); color: var(--ink); }
.nav__sublink[aria-current="page"] { color: var(--olive-ink); box-shadow: inset 2px 0 0 var(--olive); }

/* WhatsApp and email, on a small line under the menu */
.header-contact { display: flex; align-items: center; gap: var(--s5); font-size: .8125rem; color: var(--muted); letter-spacing: .01em; transition: color .3s; }
.wa-link, .mail-link { display: inline-flex; align-items: center; gap: .5em; }
.wa-link strong, .mail-link span { font-weight: 500; }
.mail-link svg { width: 16px; height: 16px; flex: none; color: var(--olive-ink); }
.header-contact .wa-link > span { display: none; }
.wa-glyph { color: var(--whatsapp); line-height: 1; }
.header-contact .wa-glyph { font-size: 1.25rem; }
.header-contact .mail-link { padding-left: var(--s5); border-left: 1px solid var(--line-strong); }
.header-contact a:hover strong, .header-contact a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--olive); }
.site-header.is-over .header-contact { color: rgba(243, 246, 244, .86); }
.site-header.is-over .header-contact .mail-link { border-left-color: rgba(243, 246, 244, .3); }
.site-header.is-over .header-contact .mail-link svg { color: var(--olive-light); }
.site-header.is-over .header-contact a:hover strong, .site-header.is-over .header-contact a:hover span { color: var(--white); }

.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border-radius: 50%; color: var(--ink); align-items: center; justify-content: center; }
.site-header.is-over .menu-toggle { color: var(--white); }
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .i-close { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; margin-left: var(--s3); }
  .header-main { flex-direction: row; align-items: center; }
  body.menu-open .site-header .header-contact { color: var(--muted); }
  body.menu-open .site-header .header-contact .mail-link { border-left-color: var(--line-strong); }
  body.menu-open .site-header .header-contact .mail-link svg { color: var(--olive-ink); }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-total) 0 0; margin: 0; z-index: 99;
    background: var(--white); padding: var(--s6) var(--gutter) calc(var(--s7) + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .site-header.is-over .nav__link { color: var(--ink); font: 400 clamp(1.6rem, 1.2rem + 2vw, 2.2rem)/1.1 var(--serif); padding: .55em 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { left: auto; right: 4px; top: 50%; margin: -3px 0 0; width: 7px; height: 7px; }
  .nav__extra { display: grid; gap: var(--s5); margin-top: auto; padding-top: var(--s7); }
  .nav__contact { display: grid; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink); }
  .nav__contact .wa-link { font-weight: 600; }
  .nav__contact .wa-glyph { font-size: 1.5rem; width: 22px; text-align: center; }
  .nav__contact svg { width: 22px; height: 22px; color: var(--olive-ink); }
  .nav__toggle, .site-header.is-over .nav__toggle { width: 100%; justify-content: space-between; text-align: left; }
  .nav__toggle.is-current::after { display: none; }
  .nav__chev { width: 22px; height: 22px; }
  .nav__menu { position: static; display: none; min-width: 0; padding: 0 0 var(--s3) var(--s4); border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__menu::before { display: none; }
  .nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
  .nav__sublink { font: 400 clamp(1.25rem, 1.05rem + 1vw, 1.5rem)/1.2 var(--serif); padding: .55em 0; border-bottom: 1px solid var(--line); }
  .nav__sublink:hover { background: none; }
  .nav__sublink[aria-current="page"] { box-shadow: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header::before { opacity: 1; background: var(--white); }
  body.menu-open .site-header .nav__link { color: var(--ink); }
  body.menu-open .site-header .brand__light { opacity: 0; }
  body.menu-open .site-header .brand__dark { opacity: 1; }
  body.menu-open .site-header .menu-toggle { color: var(--ink); }
  body.menu-open .menu-toggle .i-menu { display: none; }
  body.menu-open .menu-toggle .i-close { display: block; }
}
@media (max-width: 760px) {
  .brand { width: 136px; }
  /* phones: WhatsApp and email become icon buttons next to the menu */
  .header-contact { gap: 0; }
  .header-contact strong, .header-contact .mail-link span { display: none; }
  .header-contact a { width: 42px; height: 42px; justify-content: center; }
  .header-contact .mail-link { padding-left: 0; border-left: 0; }
  .header-contact .wa-glyph { font-size: 1.65rem; }
  .header-contact .mail-link svg { width: 22px; height: 22px; }
  .menu-toggle { margin-left: 0; }
}

/* Pages without a full-bleed hero start below the fixed header */
.page-top { padding-top: var(--header-total); }

/* --------------------------------------------------------------------------
   Image frames (every image slot)
   -------------------------------------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--stone); border-radius: var(--r-md); isolation: isolate; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
/* A thin olive keyline set off a feature image: used once or twice per page */
.frame--keyline { overflow: visible; background: none; }
.frame--keyline > img { border-radius: var(--r-md); }
.frame--keyline::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 1px solid var(--olive); border-radius: var(--r-md); pointer-events: none; }
.frame--bleed { border-radius: 0; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: max(640px, min(100svh, 960px)); display: flex; align-items: center; color: var(--on-dark); overflow: hidden; background: var(--night); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 34, 45, .72) 0%, rgba(0, 34, 45, .38) 42%, rgba(0, 34, 45, .05) 72%),
    linear-gradient(180deg, rgba(0, 34, 45, .5) 0%, rgba(0, 34, 45, 0) 24%, rgba(0, 34, 45, 0) 66%, rgba(0, 34, 45, .45) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: calc(var(--header-total) + var(--s6)) calc(var(--s8) + 2.5rem); }
.hero__content > * { max-width: 40rem; }
.hero h1 { font-size: clamp(2.75rem, min(1.5rem + 4.9vw, 8.4vh + 1rem), 5.75rem); color: var(--white); line-height: 1.04; max-width: 9.6em; }
.hero .lead { color: rgba(243, 246, 244, .88); max-width: 31rem; margin-top: var(--s5); }

/* One orchestrated moment: the scene settles and the words follow */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: settle 2.6s var(--ease) both; }
  .hero__content > * { animation: rise 1s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .12s; }
  .hero__content > :nth-child(3) { animation-delay: .24s; }
  .hero__content > :nth-child(4) { animation-delay: .36s; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Quick choice under the hero */
.quick { position: relative; z-index: 2; margin-top: -4.5rem; }
.quick__panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border-radius: var(--r-md); border-top: 3px solid var(--olive); box-shadow: var(--shadow-float); overflow: hidden; }
.quick__item { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6); transition: background-color .25s; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item:hover { background: var(--mist); }
.quick__thumb { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--olive); }
.quick__thumb img { width: 100%; height: 100%; object-fit: cover; }
.quick__text strong { display: block; font: 400 1.3rem/1.2 var(--serif); color: var(--ink); }
.quick__text span { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.quick__chev { margin-left: auto; width: 20px; height: 20px; color: var(--ink); opacity: .45; transition: transform .25s var(--ease), opacity .25s; }
.quick__item:hover .quick__chev { transform: translateX(3px); opacity: 1; }

/* Philosophy statement */
.statement { text-align: center; }
.statement h2 { max-width: 22ch; margin-inline: auto; }
.statement p:not(.label) { max-width: 36rem; margin: var(--s5) auto 0; }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero { position: relative; min-height: max(540px, min(78svh, 760px)); display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; background: var(--night); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 34, 45, .5) 0%, rgba(0, 34, 45, 0) 26%, rgba(0, 34, 45, .05) 50%, rgba(0, 34, 45, .72) 100%),
    linear-gradient(90deg, rgba(0, 34, 45, .58) 0%, rgba(0, 34, 45, .2) 45%, rgba(0, 34, 45, 0) 70%);
}
.page-hero--light-art .page-hero__media::after {
  background:
    linear-gradient(180deg, rgba(0, 34, 45, .55) 0%, rgba(0, 34, 45, .1) 30%, rgba(0, 34, 45, .25) 55%, rgba(0, 34, 45, .8) 100%),
    linear-gradient(90deg, rgba(0, 34, 45, .7) 0%, rgba(0, 34, 45, .3) 50%, rgba(0, 34, 45, 0) 75%);
}
.page-hero__content { position: relative; z-index: 1; padding-block: calc(var(--header-total) + var(--s7)) clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero__content > * { max-width: 44rem; }
.page-hero h1 { color: var(--white); max-width: 15ch; }
.page-hero .lead { color: rgba(243, 246, 244, .88); margin-top: var(--s5); max-width: 36rem; }
.page-hero .actions { margin-top: var(--s6); }

.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: var(--fs-xs); letter-spacing: .04em; color: rgba(243, 246, 244, .78); margin-bottom: var(--s6); }
.crumbs a { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: rgba(243, 246, 244, .35); }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .6; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { text-decoration-color: var(--line); }
.crumbs--dark a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Tour cards and rails
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tour-card { container-type: inline-size; position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease); }
.tour-card:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-card); }
.on-dark .tour-card { box-shadow: none; }
.tour-card[hidden] { display: none; }
.tour-card__media { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--stone); }
.cards--2 .tour-card__media { aspect-ratio: 16 / 10; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.03); }
.tour-card__tag { position: absolute; left: 0; top: 18px; padding: .55em 1em .5em 1.25em; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--white); color: var(--ink); font: 600 .6875rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.tour-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem var(--s5) var(--s5); }
.tour-card .tour-card__title { font-size: clamp(1.3rem, 1.18rem + .45vw, 1.5rem); line-height: 1.18; color: var(--ink); min-height: 2.3em; }
.cards--2 .tour-card .tour-card__title { min-height: 0; }
.cards--2 .tour-card__desc { min-height: 0; }
.tour-card__title a:hover { color: var(--olive-ink); }
.tour-card__desc { margin-top: var(--s3); min-height: 4.8em; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: var(--fs-sm); color: var(--text); }
.facts li { display: inline-flex; align-items: center; gap: .45em; }
.facts svg { width: 17px; height: 17px; color: var(--olive-ink); flex: none; }
.tour-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: auto; padding-top: var(--s5); }
.tour-card__body > .facts { padding-bottom: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: 0; }
/* Narrow cards (four across) stack the price above a full-width button */
@container (max-width: 300px) {
  .tour-card__foot { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .tour-card__foot .btn { width: 100%; }
  .price { flex-direction: row !important; align-items: baseline; gap: .5em; }
}
.price { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; margin: 0; }
.price small { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price strong { font: 400 1.15rem/1.3 var(--serif); color: var(--ink); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filter { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 1.2em; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; font-size: var(--fs-sm); transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter span { font-size: var(--fs-xs); min-width: 1.6em; padding: .1em .45em; border-radius: var(--r-sm); background: var(--mist); color: var(--ink); text-align: center; }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter.is-active span { background: rgba(255, 255, 255, .16); color: var(--white); }

/* --------------------------------------------------------------------------
   Film
   -------------------------------------------------------------------------- */
.film { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; min-height: 420px; border-radius: var(--r-md); overflow: hidden; background: var(--night); color: var(--white); text-align: left; }
.film > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 34, 45, .05) 30%, rgba(0, 34, 45, .7) 100%), linear-gradient(90deg, rgba(0, 34, 45, .45), rgba(0, 34, 45, 0) 60%); }
.film:hover > img { transform: scale(1.03); }
.film__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--night); border: 0; box-shadow: 0 0 0 12px rgba(148, 171, 30, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .35s var(--ease), background-color .35s; }
.film__play svg { width: 28px; height: 28px; margin-left: 4px; }
.film:hover .film__play, .film:focus-visible .film__play { transform: scale(1.06); background: var(--olive-light); }
.film__caption { position: absolute; z-index: 1; left: clamp(1.25rem, .5rem + 3vw, 3rem); bottom: clamp(1.25rem, .5rem + 2.5vw, 2.5rem); right: 1.25rem; display: flex; flex-direction: column; gap: 4px; }
.film__caption strong { font: 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.2 var(--serif); }
.film__caption span { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-light); }

.video-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: var(--s8); align-items: center; }
.video-split .film { aspect-ratio: 16 / 10; min-height: 0; }

/* --------------------------------------------------------------------------
   City / story cards
   -------------------------------------------------------------------------- */
.arch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, .5rem + 2.5vw, 3rem); }
.arch-card .frame { aspect-ratio: 4 / 5; }
.arch-card__body { padding-top: var(--s5); }
.arch-card__body p:not(.label) { margin-top: var(--s3); color: var(--muted); }
.arch-card__body .link { margin-top: var(--s4); }
.arch-card:nth-child(2) { margin-top: var(--s8); }
.arch-card h3 { padding-top: var(--s4); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Media teaser (home) and gallery (media page)
   -------------------------------------------------------------------------- */
.media-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: var(--s8); align-items: center; }
.mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(.75rem, .4rem + 1vw, 1.25rem); aspect-ratio: 6 / 5; }
.mosaic .frame:first-child { grid-row: span 2; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 10vw + 80px, 260px); gap: clamp(.75rem, .4rem + 1vw, 1.25rem); }
.gallery__item { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--stone); text-align: left; }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(5) { grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption, .gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(180deg, rgba(0, 34, 45, 0), rgba(0, 34, 45, .7)); color: var(--white); font-size: var(--fs-sm); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }

/* Social media tiles (media page) */
.social-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, .4rem + 1vw, 1.25rem); }
.social-tile { display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); color: var(--on-dark-muted); transition: background-color .25s, border-color .25s; }
.social-tile:hover { background: rgba(243, 246, 244, .05); border-color: var(--olive); }
.social-tile__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(181, 201, 74, .55); color: var(--white); font-size: 1.35rem; margin-bottom: var(--s5); transition: background-color .25s, color .25s, border-color .25s; }
.social-tile:hover .social-tile__icon { background: var(--olive); border-color: var(--olive); color: var(--night); }
.social-tile__name { font: 400 1.4rem/1.2 var(--serif); color: var(--on-dark); }
.social-tile__text { margin-top: var(--s3); font-size: var(--fs-sm); line-height: 1.55; }
.social-tile__cta { margin-top: auto; padding-top: var(--s5); font: 600 var(--fs-label)/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olive-light); }
@media (max-width: 1100px) {
  .social-tiles { display: flex; flex-wrap: wrap; justify-content: center; }
  .social-tiles > li { flex: 0 1 calc((100% - 2 * clamp(.75rem, .4rem + 1vw, 1.25rem)) / 3); }
}
@media (max-width: 760px) {
  .social-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .social-tile { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name cta" "icon text text"; align-items: center; column-gap: var(--s4); padding: 1rem 1.1rem; }
  .social-tile__icon { grid-area: icon; width: 46px; height: 46px; margin: 0; font-size: 1.15rem; }
  .social-tile__name { grid-area: name; font-size: 1.2rem; }
  .social-tile__text { grid-area: text; margin-top: 2px; font-size: var(--fs-xs); }
  .social-tile__cta { grid-area: cta; margin: 0; padding: 0; }
}

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.note { padding-top: var(--s6); border-top: 2px solid var(--ink); }
.note__icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--olive-ink); margin-bottom: var(--s5); }
.note__icon svg { width: 22px; height: 22px; }
.note p:not(.label) { margin-top: var(--s3); color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: var(--s8); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-total) + var(--s6)); }
.faq__intro p:not(.label) { margin-top: var(--s5); color: var(--muted); }
.faq__intro .link { margin-top: var(--s5); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 1.35rem 0; cursor: pointer; list-style: none; font: 400 clamp(1.125rem, 1.04rem + .35vw, 1.3rem)/1.35 var(--serif); color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--olive-ink); }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); transition: background-color .25s, border-color .25s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--olive); border-color: var(--olive); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--night); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 3.5rem 1.5rem 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer { animation: rise .45s var(--ease) both; }
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.closing { position: relative; overflow: hidden; color: var(--on-dark); background: var(--night); text-align: center; }
.closing__media { position: absolute; inset: 0; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.closing__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 47, 59, .2), rgba(2, 47, 59, .55)); }
.closing__inner { position: relative; z-index: 1; padding-block: clamp(6rem, 4rem + 8vw, 11rem); }
.closing h2 { color: var(--white); max-width: 14ch; margin-inline: auto; font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem); }
.closing p:not(.label) { max-width: 32rem; margin: var(--s5) auto 0; color: rgba(243, 246, 244, .85); font-size: var(--fs-lead); }
.closing .actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-block: var(--s9) var(--s6); font-size: var(--fs-sm); border-top: 3px solid var(--olive); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s7); }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p:not(.label) { margin-top: var(--s5); max-width: 22rem; }
.footer-brand .social-title { margin-top: var(--s6); font: 600 var(--fs-label)/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-light); }
/* Social media icons */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); font-size: 1.05rem; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--olive); border-color: var(--olive); color: var(--night); transform: translateY(-2px); }
.footer-col h2 { font: 600 var(--fs-label)/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-light); margin-bottom: var(--s5); }
.footer-col ul { display: grid; gap: var(--s3); }
.footer-col a { transition: color .2s; }
.footer-col--contact .wa-link, .footer-col--contact .mail-link { display: flex; color: var(--on-dark); margin-bottom: var(--s3); }
.footer-col--contact .wa-glyph { font-size: 1.4rem; width: 22px; text-align: center; flex: none; }
.footer-col--contact .mail-link svg { width: 22px; height: 22px; color: var(--olive-light); }
.footer-col--contact .wa-link > span { display: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }
.footer-bottom em { font-style: normal; font-family: var(--serif); font-size: var(--fs-sm); color: var(--on-dark); }

/* Floating WhatsApp button, bottom right on every page */
.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom)); z-index: 95;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(0, 34, 45, .6), 0 0 0 6px rgba(37, 211, 102, .18);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 34px -12px rgba(0, 34, 45, .6), 0 0 0 8px rgba(37, 211, 102, .24); }
.wa-float .wa-glyph { color: var(--white); font-size: 2.1rem; }
.wa-float__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  padding: .55em .9em; border-radius: var(--r-sm); background: var(--night); color: var(--white);
  font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* Mobile booking bar */
.booking-bar { display: none; }
.no-booking-bar .booking-bar { display: none !important; }
@media (max-width: 760px) {
  .booking-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .booking-bar.is-visible { transform: none; }
  .booking-bar .btn { width: calc(100% - 66px); }
  .wa-float { width: 52px; height: 52px; right: var(--gutter); bottom: calc(10px + env(safe-area-inset-bottom)); }
  .wa-float .wa-glyph { font-size: 1.8rem; }
  body:not(.no-booking-bar) { padding-bottom: 76px; }
  body.menu-open .booking-bar { transform: translateY(110%); }
}

/* --------------------------------------------------------------------------
   Page-specific pieces
   -------------------------------------------------------------------------- */

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.compare th, .compare td { padding: 1.2rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font: 600 var(--fs-label)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--mist); }
.compare tbody th { font: 400 1.2rem/1.3 var(--serif); color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover { background: var(--mist); }
.compare td:last-child { text-align: right; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: .2rem 0; border: 0; text-align: left; }
  .compare td:last-child { text-align: left; padding-top: .6rem; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Photo diary pair */
.diary { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1rem, .5rem + 1.5vw, 2rem); align-items: end; }
.diary .frame:first-child { aspect-ratio: 16 / 11; }
.diary .frame:last-child { aspect-ratio: 4 / 5; }

/* Three moments / approach steps */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.moment__art { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s5); background: var(--stone); }
.moment__art img { width: 100%; height: 100%; object-fit: cover; }
.moment p:not(.label) { margin-top: var(--s3); color: var(--muted); }
.moments-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s7); counter-reset: step; }
.step { position: relative; padding-top: var(--s6); border-top: 2px solid var(--ink); }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--olive); color: var(--olive-ink); font: 400 1.125rem/1 var(--serif); margin-bottom: var(--s5); }
.step p:not(.label) { margin-top: var(--s3); color: var(--muted); }

/* Quad vs buggy */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.choice-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.choice-card .frame { border-radius: 0; aspect-ratio: 16 / 8; }
.choice-card__body { padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); display: flex; flex-direction: column; }
.choice-card__body > p { margin-top: var(--s3); color: var(--muted); }
.ticks { display: grid; gap: var(--s3); margin: var(--s5) 0 var(--s6); }
.ticks li { display: flex; gap: .7em; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: .2em; color: var(--olive-ink); }
.choice-card .link { margin-top: auto; align-self: flex-start; }

/* Safety band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s8); align-items: center; }
.band p:not(.label) { font-size: var(--fs-lead); }
.band .btn { margin-top: var(--s5); }

/* City: two sides */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, .5rem + 3vw, 4rem); align-items: start; }
.side .frame { aspect-ratio: 1 / 1; }
.side:nth-child(2) { margin-top: var(--s9); }
.side__body { padding-top: var(--s5); max-width: 30rem; }
.side__body p:not(.label) { margin-top: var(--s3); color: var(--muted); }

/* Empty states (city collection, journal) */
.empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.empty .frame { border-radius: 0; min-height: 320px; height: 100%; }
.empty__body { padding: clamp(2rem, 1rem + 3vw, 4rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.empty__body p:not(.label) { margin-top: var(--s4); color: var(--muted); }
.empty__body .btn, .empty__body .link { margin-top: var(--s6); }

/* Banner with image */
.banner { position: relative; overflow: hidden; color: var(--on-dark); background: var(--night); }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 34, 45, .78) 0%, rgba(0, 34, 45, .35) 55%, rgba(0, 34, 45, .1) 100%); }
.banner__inner { position: relative; z-index: 1; padding-block: clamp(5rem, 3rem + 7vw, 9rem); }
.banner__inner > * { max-width: 34rem; }
.banner h2 { color: var(--white); }
.banner p:not(.label) { margin-top: var(--s5); color: rgba(243, 246, 244, .88); font-size: var(--fs-lead); }

/* About */
.manifesto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s6) var(--s8); }
.manifesto__big { font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.45 var(--serif); color: var(--ink); margin-bottom: var(--s6); }
.manifesto p:not(.label) { color: var(--muted); }
.manifesto .link { margin-top: var(--s5); }
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6) var(--s8); align-items: center; }
.editorial .frame { aspect-ratio: 4 / 5; }
.editorial__body p:not(.label) { color: var(--muted); }
.editorial__body h2 { margin-bottom: var(--s5); }
.quote { margin: var(--s6) 0 0; padding: var(--s5) 0 0 var(--s5); border-left: 2px solid var(--olive); font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.45 var(--serif); color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, .5rem + 3vw, 4rem); align-items: start; }
.contact__head { padding-block: var(--s7) var(--s7); }
.contact__head h1 { max-width: 16ch; }
.contact__head .lead { margin-top: var(--s5); max-width: 36rem; }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.form-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.form-card__intro { margin-top: var(--s3); color: var(--muted); }
.form { display: grid; gap: var(--s5); margin-top: var(--s6); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field > span { font-size: .875rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field .req { color: var(--olive-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1px solid rgba(0, 63, 82, .22); background: var(--shell); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003F52' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; padding-right: 2.6rem; }
.field input::placeholder, .field textarea::placeholder { color: #8A9799; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(0, 63, 82, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(148, 171, 30, .35); }
.form__help { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.consent { display: flex; gap: .75em; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: 20px; height: 20px; margin-top: .15em; accent-color: var(--ink); flex: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 1rem 1.25rem; border-radius: var(--r-sm); background: var(--mist); color: var(--ink); font-size: var(--fs-sm); }
.form__status.is-shown { display: block; }
.contact-aside { position: sticky; top: calc(var(--header-total) + var(--s5)); display: grid; gap: var(--s5); }
.contact-aside .frame { aspect-ratio: 4 / 5; }
.contact-aside__card { background: var(--ink); color: var(--on-dark-muted); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.contact-aside__card h2 { color: var(--on-dark); font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.contact-aside__card p:not(.label) { margin-top: var(--s3); }
.detail { display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-dark); }
a.detail:hover strong { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--olive-light); }
.detail .wa-glyph { font-size: 1.5rem; width: 22px; text-align: center; flex: none; }
.detail svg { width: 22px; height: 22px; color: var(--olive-light); flex: none; margin-top: 2px; }
.detail span { display: block; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.detail strong { display: block; font-weight: 500; color: var(--on-dark); }
.promise { text-align: center; }
.promise h2 { max-width: 16ch; margin-inline: auto; }
.promise p:not(.label) { margin: var(--s5) auto 0; max-width: 32rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Dialogs (gallery viewer, film)
   -------------------------------------------------------------------------- */
.viewer { width: min(100% - 2rem, 1200px); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); overflow: hidden; }
.viewer::backdrop { background: rgba(1, 20, 27, .82); backdrop-filter: blur(4px); }
.viewer__stage { position: relative; aspect-ratio: 16 / 10; max-height: calc(100svh - 7rem); background: #01202A; }
.viewer__stage img, .viewer__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.viewer__bar { display: flex; align-items: center; gap: var(--s4); padding: .85rem 1rem .85rem 1.5rem; }
.viewer__caption { margin: 0 auto 0 0; font-size: var(--fs-sm); }
.viewer__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); border: 1px solid var(--line-dark); transition: background-color .2s; }
.viewer__btn:hover { background: rgba(255, 255, 255, .1); }
.viewer__btn svg { width: 20px; height: 20px; }
.viewer__note { position: absolute; inset: auto 0 0; padding: 1.25rem 1.5rem; background: linear-gradient(180deg, rgba(0, 34, 45, 0), rgba(0, 34, 45, .85)); font-size: var(--fs-sm); }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: rise .35s var(--ease) both; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .media-teaser, .video-split { grid-template-columns: 1fr; gap: var(--s6); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 26vw, 280px); }
  .gallery__item:nth-child(5) { grid-row: span 1; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head__aside { justify-self: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-card:nth-child(2) { margin-top: 0; }
  .faq { grid-template-columns: 1fr; gap: var(--s6); }
  .faq__intro { position: static; }
  .moments, .steps, .notes { grid-template-columns: 1fr; }
  .moment { display: grid; grid-template-columns: 140px 1fr; gap: var(--s5); align-items: start; }
  .moment__art { margin: 0; }
  .band, .manifesto, .editorial, .contact, .empty { grid-template-columns: 1fr; }
  .contact-aside { position: static; grid-template-columns: 1fr 1fr; }
  .contact-aside .frame { aspect-ratio: auto; height: 100%; }
  .quick__item { padding: var(--s4); gap: var(--s3); }
  .quick__thumb { width: 52px; height: 52px; }
  .quick__chev { display: none; }
  .empty .frame { min-height: 240px; }
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero__media img { object-position: 70% 62%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0, 34, 45, .5) 0%, rgba(0, 34, 45, .05) 30%, rgba(0, 34, 45, .25) 55%, rgba(0, 34, 45, .82) 100%); }
  .hero__content { padding-bottom: 7.5rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .quick { margin-top: -5rem; }
  .quick__panel { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
  .quick__chev { display: block; }
  .cards--2 { grid-template-columns: 1fr; }
  .arch-cards { grid-template-columns: none; }
  .arch-card .frame { aspect-ratio: 4 / 5; }
  .film { aspect-ratio: 4 / 5; min-height: 0; border-radius: var(--r-md); }
  .film__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .mosaic { aspect-ratio: 1 / 1.05; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(5) { grid-row: span 1; }
  .diary { grid-template-columns: 1fr; }
  .diary .frame:last-child { aspect-ratio: 16 / 11; }
  .choice { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .side:nth-child(2) { margin-top: 0; }
  .moment { grid-template-columns: 96px 1fr; gap: var(--s4); }
  .form__row { grid-template-columns: 1fr; }
  .contact-aside { grid-template-columns: 1fr; }
  .contact-aside .frame { aspect-ratio: 16 / 10; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .faq__answer { padding-right: 0; }
  .page-hero { min-height: max(520px, 82svh); }
}

/* On phones and tablets, card rows become a swipeable rail so the page stays short */
@media (max-width: 900px) {
  .rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); grid-template-columns: none;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .rail .tour-card:hover { transform: none; }
}

@media (max-width: 760px) { .frame--keyline::after { inset: 10px -10px -10px 10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
