/* =========================================================
   The Palais Monte Carlo — public theme
   Ivory · ink · terracotta · brass. Serif display, airy sans body.
   ========================================================= */

:root {
  --ink: #1F1A17;
  --ink-2: #2B2420;
  --paper: #FAF6F0;
  --sand: #F1E8DC;
  --stone: #E4D8C8;
  --accent: #9C4A2F;
  --gold: #B08D57;
  --muted: #6E625A;
  --line: rgba(31, 26, 23, .14);
  --on-dark: #F4EDE3;
  --on-dark-muted: rgba(244, 237, 227, .7);
  --line-dark: rgba(244, 237, 227, .18);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --sec: clamp(72px, 10vw, 148px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

:lang(ar) { --serif: "Noto Naskh Arabic", "Cormorant Garamond", serif; --sans: "Noto Naskh Arabic", "Jost", system-ui, sans-serif; }
:lang(zh) { --sans: "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; --serif: "Cormorant Garamond", "Songti SC", "SimSun", serif; }
:lang(ja) { --sans: "Jost", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 17px/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { padding: 0; margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #fff; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .85rem; color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow {
  font: 400 .72rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4em; display: flex; align-items: center; gap: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow, .sec-head.center .eyebrow { justify-content: center; }
.eyebrow a { text-decoration: none; }
.display {
  font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(2rem, 4.2vw, 3.6rem); text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }
.display-lg { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.display-xl { font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 1.02; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.lede.center, .center .lede { margin-inline: auto; }
.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head.center { text-align: center; }
.sec-head + .lede { margin-top: calc(-1 * clamp(12px, 2vw, 28px)); margin-bottom: clamp(28px, 4vw, 52px); }

.prose { max-width: 70ch; }
.prose h2 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.15 var(--serif); margin: 1.6em 0 .6em; }
.prose h3 { font: 500 1.35rem/1.25 var(--serif); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding-inline-start: 1.2em; border-inline-start: 2px solid var(--gold); font: italic 1.35rem/1.5 var(--serif); }
.prose img { margin: 1.6em 0; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6em .4em; text-align: start; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 30px; border: 1px solid transparent; border-radius: var(--radius);
  font: 400 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-link { padding: 0; min-height: 0; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: .68rem; }
.btn-block { width: 100%; }
.theme-dark .btn-primary, .has-hero .site-header:not(.is-solid) .btn-primary, .b-hero .btn-primary { background: var(--paper); color: var(--ink); }
.theme-dark .btn-primary:hover, .b-hero .btn-primary:hover { background: var(--gold); color: #fff; }
.theme-dark .btn-ghost:hover, .b-hero .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link-arrow { display: inline-block; margin-top: .6em; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.has-hero .site-header:not(.is-solid) { background: transparent; color: #fff; border-color: transparent; }
.has-hero .site-header:not(.is-solid)::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0,0,0,.38), transparent); pointer-events: none; z-index: -1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: 1480px; }
body:not(.has-hero) main { padding-top: var(--header-h); }

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-inline-end: auto; }
.logo-mark { font: 500 1.35rem/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.logo-place { font: 400 .58rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; margin-top: 6px; opacity: .75; }
.logo-img { height: 46px; width: auto; }
.logo-light { display: none; }
.has-hero .site-header:not(.is-solid) .logo-light { display: block; }
.has-hero .site-header:not(.is-solid) .logo:has(.logo-light) .logo-dark { display: none; }

.nav-list { list-style: none; display: flex; gap: clamp(16px, 2vw, 34px); }
.nav-list > li { position: relative; }
.nav-list a { text-decoration: none; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; display: inline-block; position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current]::after { transform: scaleX(1); }
.sub { list-style: none; position: absolute; top: 100%; inset-inline-start: -22px; min-width: 260px; background: var(--paper); color: var(--ink); padding: 14px 22px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 0; font-size: .7rem; border-bottom: 1px solid var(--line); }
.sub li:last-child a { border: 0; }
.sub-toggle { display: none; }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang-btn { background: none; border: 0; font-size: .74rem; letter-spacing: .16em; padding: 8px 4px; display: flex; align-items: center; gap: 6px; }
.lang-btn::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); }
.lang-list { list-style: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 8px 0; min-width: 160px; opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.lang.is-open .lang-list { opacity: 1; visibility: visible; }
.lang-list a { display: block; padding: 8px 18px; text-decoration: none; font-size: .92rem; }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--sand); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 1px; background: currentColor; transition: .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Sections & themes ---------- */
.section { padding-block: var(--sec); position: relative; }
.section.sp-compact { padding-block: calc(var(--sec) * .55); }
.section.sp-none { padding-block: 0; }
.theme-sand { background: var(--sand); }
.theme-paper { background: var(--paper); }
.theme-dark { background: var(--ink); color: var(--on-dark); }
.theme-dark .lede, .theme-dark .small, .theme-dark .card-text, .theme-dark .feature p { color: var(--on-dark-muted); }
.theme-dark .eyebrow, .theme-dark .display em { color: var(--gold); }
.theme-dark .ticks li::before { background: var(--gold); }
.has-bg { overflow: hidden; }
.sec-bg { position: absolute; inset: 0; z-index: 0; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; }
.sec-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,16,13,.78), rgba(20,16,13,.86)); }
.has-bg > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.b-hero { padding: 0; color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.b-hero.hero-tall { min-height: 82vh; min-height: 82svh; }
.b-hero.hero-medium { min-height: 64vh; min-height: 64svh; }
.b-hero.hero-plain { min-height: 0; background: var(--sand); color: var(--ink); padding: calc(var(--header-h) + 80px) 0 70px; }
.hero-media, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 18s ease-out forwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,.25) 0%, rgba(20,16,13,.05) 35%, rgba(20,16,13,.55) 75%, rgba(20,16,13,.78) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(64px, 10vh, 120px); }
.b-hero .eyebrow { color: #fff; }
h1 .eyebrow, h2 .eyebrow { display: flex; }
.b-hero .display em { color: #F0DDBF; }
.hero-plain .eyebrow { color: var(--accent); }
.hero-plain .display em { color: var(--accent); }
.hero-text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 54ch; margin-top: 1.4rem; opacity: .92; }
.hero-badge { margin-top: 2rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; display: inline-flex; gap: 10px; align-items: center; }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.b-hero .btn-ghost { color: #fff; }
.hero-plain .btn-ghost { color: var(--ink); }
.hero-scroll { position: absolute; z-index: 2; bottom: 28px; inset-inline-end: var(--gutter); width: 1px; height: 64px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero-scroll span { position: absolute; top: -40%; left: 0; width: 1px; height: 40%; background: #fff; animation: drop 2.2s var(--ease) infinite; }
@keyframes kenburns { to { transform: scale(1); } }
@keyframes drop { to { top: 110%; } }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .74rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs-bar { padding-top: 22px; }
.crumbs-bar .crumbs { margin: 0; }
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(28px, 4vw, 48px); background: var(--sand); }
.page-head .lede { margin-top: 1rem; }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.split.is-left .split-media { order: -1; }
.split-media img { width: 100%; object-fit: cover; }
.arch { position: relative; margin: 0; }
.arch img { border-radius: 50% 50% 0 0 / 30% 30% 0 0; aspect-ratio: 4 / 5; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: 50% 50% 0 0 / 30% 30% 0 0; opacity: .55; pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); }
.stat { padding: 28px 18px 0; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat dt { font: 400 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--serif); color: var(--accent); }
.stat dd { margin: 10px 0 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Grids & mobile rails ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.rail-ui { display: none; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.theme-paper .card, .section:not(.theme-sand):not(.theme-dark) .card { background: #fff; }
.theme-dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card-media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.theme-dark .card-tag { color: var(--gold); }
.card-title { font: 400 clamp(1.45rem, 2vw, 1.8rem)/1.15 var(--serif); margin-bottom: .5em; }
.card-title a { text-decoration: none; }
.card-sub { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-text { color: var(--muted); font-size: .98rem; }
.card-price { order: 5; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.cards-image .card-price { order: 0; border: 0; padding: 0 0 12px; }
.card-price small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-price strong { font: 500 1.7rem/1 var(--serif); color: var(--accent); }
.menu-price { order: 0; border: 0; padding: 4px 0 14px; }
.menu-price strong { font-size: 2.6rem; }
.cards-menu .card { text-align: center; }
.cards-menu .card-body { align-items: center; }
.cards-menu .card-tag { order: 9; margin: 16px 0 0; color: var(--muted); letter-spacing: .12em; }
.cards-text .card { border-width: 0 0 0 1px; background: transparent !important; }
.cards-text .card-body { padding-block: 6px; }
.card-link { margin-top: auto; padding-top: 18px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
.card-link:hover { text-decoration: underline; }
.ticks { list-style: none; margin: 14px 0 6px; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: 9px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.ticks strong { font-weight: 500; }
.footnote { margin-top: clamp(24px, 3vw, 40px); font-size: .9rem; color: var(--muted); max-width: 80ch; }
.theme-dark .footnote { color: var(--on-dark-muted); }

/* ---------- Features ---------- */
.features { counter-reset: f; }
.feature { padding-top: 26px; border-top: 1px solid var(--line); }
.theme-dark .feature { border-color: var(--line-dark); }
.feature-num { display: block; font: italic 400 2rem/1 var(--serif); color: var(--gold); margin-bottom: 16px; }
.feature h3 { font: 400 1.5rem/1.2 var(--serif); margin-bottom: .5em; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 34px; margin-bottom: 26px; background: var(--ink); color: var(--on-dark); }
.price-banner .eyebrow { color: var(--gold); margin-bottom: .4em; }
.price-banner p { margin: 0; }
.price-banner .price strong { font: 400 2.6rem/1 var(--serif); }
.price-banner .price small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.tier { padding: clamp(26px, 3vw, 40px); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.theme-sand .tier { background: var(--paper); }
.tier.is-featured { border-color: var(--gold); box-shadow: 0 30px 60px -40px rgba(80, 50, 20, .45); }
.tier .eyebrow { margin-bottom: 1em; }
.tier-price { margin: 0 0 18px; }
.tier-price small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tier-price strong { font: 400 2.8rem/1 var(--serif); color: var(--ink); }
.tier-extras { background: transparent !important; border-style: dashed; }
.tier-note { color: var(--muted); font-size: .95rem; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(30px, 4vw, 52px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.notes dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.notes dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Lists ---------- */
.lists-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 90px); align-items: end; margin-bottom: clamp(32px, 4vw, 60px); }
.lists-head .sec-head { margin: 0; }
.group { padding: 28px 0 0; border-top: 1px solid var(--line); }
.group h3 { font: 400 1.4rem/1.2 var(--serif); margin-bottom: 14px; }
.group ul { list-style: none; }
.group li { padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: .95rem; color: var(--muted); }

/* ---------- Carousel ---------- */
.carousel-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 90px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.carousel-head .sec-head { margin: 0; }
.carousel-head .lede { margin: 0; }
.carousel-track {
  display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 min(62vw, 880px); margin: 0; scroll-snap-align: start; position: relative; }
.carousel-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel-slide figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font: 400 1.25rem/1.3 var(--serif); }
.carousel-slide small { font: 400 .72rem/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.carousel-nav { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.carousel-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.1rem; transition: .3s; }
.carousel-nav button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.c-progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.c-progress span { position: absolute; inset-block: -1px; inset-inline-start: 0; width: 20%; background: var(--ink); transition: width .3s, inset-inline-start .3s; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; }
.gallery-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-grid .g-item { aspect-ratio: 1; }
.gallery-mosaic { display: block; columns: 3 260px; column-gap: 12px; }
.gallery-mosaic .g-item { break-inside: avoid; margin-bottom: 12px; }
.gallery-mosaic .g-item img { height: auto; }
.g-item { display: block; overflow: hidden; position: relative; background: var(--stone); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.04); }

/* ---------- Location & NAP ---------- */
.distances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.distances dt { font: 400 2.6rem/1 var(--serif); color: var(--accent); }
.distances dt span { font-size: 1.1rem; margin-inline-start: 2px; }
.distances dd { margin: 8px 0 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nap { margin-top: 24px; font-size: .95rem; line-height: 1.8; }
.nap a { text-decoration: none; }
.nap a:hover { color: var(--accent); }
.map { position: relative; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.map img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- Inquiry form ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: 300 1rem/1.5 var(--sans); color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.fld select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { color: var(--ink); }
.theme-dark .fld input, .theme-dark .fld select, .theme-dark .fld textarea { border-color: var(--line-dark); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: .95rem; }
.form-status.ok { color: #8FB996; } .form-status.err { color: #E59A83; }
.section:not(.theme-dark) .form-status.ok { color: #2F6B3B; } .section:not(.theme-dark) .form-status.err { color: #A53A1F; }
.contact-lines { list-style: none; margin-top: 28px; }
.contact-lines li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font: 400 1.3rem/1.3 var(--serif); }
.contact-lines a { text-decoration: none; }
.section:not(.theme-dark) .contact-lines li { border-color: var(--line); }

/* ---------- Quote ---------- */
.b-quote blockquote { margin: 0; }
.quote-text { font: italic 400 clamp(1.4rem, 2.4vw, 2rem)/1.45 var(--serif); }
.quote-text p { margin-bottom: .6em; }
.b-quote footer { margin-top: 28px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.b-quote .container::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 26px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0l4.2 10.2L34 6l-4.2 9.8L40 20l-10.2 4.2L34 34l-9.8-4.2L20 40l-4.2-10.2L6 34l4.2-9.8L0 20l10.2-4.2L6 6l9.8 4.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0l4.2 10.2L34 6l-4.2 9.8L40 20l-10.2 4.2L34 34l-9.8-4.2L20 40l-4.2-10.2L6 34l4.2-9.8L0 20l10.2-4.2L6 6l9.8 4.2z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 400 1.35rem/1.3 var(--serif); }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--accent); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding-bottom: 24px; color: var(--muted); }

/* ---------- CTA ---------- */
.b-cta .lede { margin-inline: auto; }

/* ---------- Link cards (silo) ---------- */
.link-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line); position: relative; transition: border-color .3s; }
.theme-sand .link-card { background: var(--paper); }
.link-card:hover { border-color: var(--gold); }
.link-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.link-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.link-card:hover figure img { transform: scale(1.05); }
.link-card-title { font: 400 1.45rem/1.2 var(--serif); padding: 22px 24px 6px; }
.link-card-text { font-size: .92rem; color: var(--muted); padding: 0 24px 22px; }
.link-card .link-arrow { margin: auto 24px 22px; align-self: flex-start; border: 0; color: var(--accent); font-size: 1.1rem; }
.cols-2.link-cards { grid-template-columns: repeat(2, 1fr); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.theme-sand .post-card { background: var(--paper); }
.post-card-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--stone); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-meta { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips a { text-decoration: none; padding: 9px 18px; border: 1px solid var(--line); border-radius: 40px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.chips a[aria-current], .chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; }
.pager span { background: var(--ink); color: var(--paper); }

.post-head { padding: calc(var(--header-h) + 56px) 0 56px; background: var(--sand); position: relative; }
.post-head.has-cover { color: #fff; min-height: 78vh; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.post-head.has-cover .container { position: relative; z-index: 2; }
.post-head.has-cover .crumbs, .post-head.has-cover .post-meta, .post-head.has-cover .lede { color: rgba(255,255,255,.85); }
.post-head.has-cover .eyebrow { color: #F0DDBF; }
.post-cover { position: absolute; inset: 0; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
body.tpl-post:not(.has-hero) main { padding-top: 0; }
.post-layout { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 40px; padding-block: clamp(48px, 6vw, 90px); }
.post-layout:has(.toc) { grid-template-columns: 260px minmax(0, 720px); justify-content: center; justify-items: stretch; }
.post-body { font-size: 1.08rem; max-width: 720px; }
.post-body > p:first-child::first-letter { float: inline-start; font: 400 4.6rem/.85 var(--serif); color: var(--accent); margin: .08em .1em 0 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; }
.toc summary { font: 400 1.1rem/1.3 var(--serif); margin-bottom: 12px; cursor: pointer; }
.toc ol { list-style: none; border-inline-start: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 14px; text-decoration: none; color: var(--muted); }
.toc li a:hover { color: var(--accent); }
.toc .toc-l3 a { padding-inline-start: 28px; font-size: .85rem; }

/* ---------- Testimonials / video ---------- */
.testimonial { margin: 0; padding: 34px; border: 1px solid var(--line); background: var(--paper); }
.testimonial blockquote { margin: 0 0 20px; font: italic 1.3rem/1.5 var(--serif); }
.testimonial figcaption strong { display: block; font-weight: 500; }
.testimonial figcaption span { font-size: .8rem; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video img, .video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-size: 1.4rem; backdrop-filter: blur(4px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 8vw, 110px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo-mark { font-size: 1.7rem; }
.footer-tagline { font: italic 1.25rem/1.4 var(--serif); color: var(--gold); margin-top: 22px; }
.footer-title { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-title:not(:first-child) { margin-top: 28px; }
.site-footer .nap { margin: 0; color: var(--on-dark-muted); }
.site-footer .nap strong { color: var(--on-dark); font-weight: 400; }
.footer-links, .footer-langs, .footer-legal { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-langs a, .footer-legal a { text-decoration: none; color: var(--on-dark-muted); transition: color .3s; }
.footer-links a:hover, .footer-langs a:hover, .footer-legal a:hover, .footer-langs a[aria-current] { color: var(--on-dark); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .8rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }

/* ---------- Mobile bar, cookie, lightbox ---------- */
.mobile-bar { display: none; }
.cookie { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; max-width: 520px; background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); font-size: .9rem; }
.cookie p { margin: 0; }
.cookie .btns { margin-top: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(16,12,10,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; color: var(--on-dark-muted); }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; margin: 0 auto 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; width: 60px; height: 60px; }
.lb-close { top: 12px; inset-inline-end: 12px; }
.lb-prev { inset-inline-start: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 8px; top: 50%; transform: translateY(-50%); }

.page-404 { padding-top: calc(var(--sec) + var(--header-h)); min-height: 70vh; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide img { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .nav-list { gap: 18px; }
  .nav-list a { font-size: .68rem; letter-spacing: .14em; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Mobile: burger menu + horizontal swipe rails instead of long scroll
   ========================================================= */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink); color: var(--on-dark);
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
    display: flex; flex-direction: column;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--on-dark) !important; background: transparent !important; border-color: transparent !important; }
  .nav-open .site-header .logo-light { display: block; } .nav-open .site-header .logo:has(.logo-light) .logo-dark { display: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-list > li > a { font: 400 1.9rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 16px 0; flex: 1; }
  .nav-list > li > a::after { display: none; }
  .sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; position: relative; }
  .sub-toggle span::before, .sub-toggle span::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 1px; background: currentColor; transition: .3s; }
  .sub-toggle span::after { transform: rotate(90deg); }
  .sub-toggle[aria-expanded="true"] span::after { transform: rotate(0); }
  .sub { position: static; flex-basis: 100%; min-width: 0; background: none; color: inherit; border: 0; box-shadow: none; padding: 0 0 12px 4px; opacity: 1; visibility: visible; transform: none; display: none; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { font-size: .78rem; border-color: var(--line-dark); color: var(--on-dark-muted); }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; font-size: .95rem; color: var(--on-dark-muted); }
  .nav-mobile-extra a { text-decoration: none; }
  .logo-mark { font-size: 1.15rem; }
  .logo-place { font-size: .5rem; }

  .split, .lists-head, .carousel-head { grid-template-columns: 1fr; }
  .split.is-left .split-media { order: 0; }
  .split-media { max-width: 520px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat dt { font-size: 2.6rem; }
  .notes { grid-template-columns: 1fr; gap: 16px; }
  .distances { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .price-banner { flex-direction: column; align-items: flex-start; padding: 24px; }

  /* Swipe rails: grids become horizontal, snap-scrolling strips */
  .rail {
    display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 4px;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .rail.gallery > * { flex-basis: 78%; height: 62vw; max-height: 420px; }
  .rail.gallery > .is-portrait { flex-basis: 56%; }
  .rail.groups > *, .rail.features > * { flex-basis: 80%; border: 1px solid var(--line); padding: 24px; background: var(--paper); }
  .theme-sand .rail.groups > *, .theme-sand .rail.features > * { background: var(--paper); }
  .theme-dark .rail.features > * { background: var(--ink-2); border-color: var(--line-dark); }
  .cards-text .rail > .card { border: 1px solid var(--line); padding: 16px 4px; }
  .rail-ui { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
  .rail-dots { display: flex; gap: 6px; flex: 1; }
  .rail-dots button { width: 22px; height: 2px; padding: 0; border: 0; background: var(--line); transition: background .3s, width .3s; }
  .theme-dark .rail-dots button { background: var(--line-dark); }
  .rail-dots button[aria-current="true"] { background: var(--accent); width: 34px; }
  .theme-dark .rail-dots button[aria-current="true"] { background: var(--gold); }
  .rail-count { font-size: .72rem; letter-spacing: .18em; color: var(--muted); }
  .rail-hint { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
  .rail-hint::after { content: "→"; animation: nudge 1.6s var(--ease) infinite; }
  [dir="rtl"] .rail-hint::after { content: "←"; }
  @keyframes nudge { 50% { transform: translateX(5px); } }

  .gallery-grid:not(.rail) { grid-template-columns: repeat(2, 1fr); }
  .gallery-mosaic:not(.rail) { columns: 2; column-gap: 8px; }
  .gallery-mosaic:not(.rail) .g-item { margin-bottom: 8px; }
  .rail.gallery .g-item img { height: 100%; }

  .carousel-slide { flex-basis: 86vw; }
  .carousel-slide figcaption { flex-direction: column; gap: 2px; font-size: 1.1rem; }
  .carousel-nav button { width: 44px; height: 44px; }

  .post-layout:has(.toc) { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--line); padding: 16px 18px; }
  .toc details:not([open]) ol { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .mobile-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 60;
    inset-inline: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; text-decoration: none; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
  .mobile-bar svg { width: 20px; height: 20px; fill: currentColor; }
  .mobile-bar a.is-primary { background: var(--ink); color: var(--paper); }
  .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .has-hero .site-header:not(.is-solid)::before { bottom: -20px; }
}

@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .btns .btn { flex: 1 1 100%; }
  .btns.center .btn { flex: 0 1 auto; }
  .hero-inner .btns .btn { flex: 1 1 auto; }
  .arch::after { inset: -8px; }
  .display-xl { font-size: clamp(2.5rem, 11vw, 3.4rem); }
}

@media print {
  .site-header, .mobile-bar, .cookie, .site-footer, .hero-scroll { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
