/* ============================================================
   LAVIVA APART OTEL — v2 design system
   "Mediterranean Editorial" · warm bone + deep sea + clay
   Instrument Serif display / Hanken Grotesk text · cinematic motion
   ============================================================ */

:root {
  /* curated palette (overridable by Tweaks via data-palette) */
  --bone:    oklch(0.967 0.008 84);
  --bone-2:  oklch(0.945 0.012 80);
  --sand:    oklch(0.905 0.020 76);
  --ink:     oklch(0.255 0.020 245);
  --ink-2:   oklch(0.405 0.022 242);
  --ink-3:   oklch(0.560 0.022 242);
  --sea:     oklch(0.430 0.058 226);
  --sea-2:   oklch(0.335 0.052 230);
  --clay:    oklch(0.615 0.115 47);
  --clay-2:  oklch(0.545 0.115 42);

  --line:    color-mix(in oklch, var(--ink) 16%, transparent);
  --line-2:  color-mix(in oklch, var(--ink) 30%, transparent);

  /* surfaces resolve from semantic tokens; switched per-section */
  --bg: var(--bone);
  --fg: var(--ink);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 72px);
  --radius: 3px;
  --radius-lg: 16px;
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-soft: cubic-bezier(0.33, 0, 0.13, 1);
  --rev: 0.95s;
}

/* ---- type variants ---- */
[data-type="cormorant"] { --serif: "Cormorant", Georgia, serif; }
[data-type="fraunces"]  { --serif: "Fraunces", Georgia, serif; }

/* ---- palette variants ---- */
[data-palette="kil"] {           /* clay & olive */
  --bone: oklch(0.962 0.014 78); --bone-2: oklch(0.938 0.018 72); --sand: oklch(0.90 0.026 68);
  --ink: oklch(0.27 0.022 60); --ink-2: oklch(0.42 0.024 58); --ink-3: oklch(0.57 0.022 58);
  --sea: oklch(0.435 0.055 145); --sea-2: oklch(0.34 0.05 148);
  --clay: oklch(0.60 0.125 45); --clay-2: oklch(0.53 0.125 40);
}
[data-palette="gece"] {          /* bone & midnight + brass */
  --bone: oklch(0.965 0.006 90); --bone-2: oklch(0.94 0.008 88); --sand: oklch(0.905 0.012 84);
  --ink: oklch(0.235 0.028 268); --ink-2: oklch(0.40 0.03 265); --ink-3: oklch(0.56 0.026 265);
  --sea: oklch(0.315 0.06 270); --sea-2: oklch(0.245 0.055 272);
  --clay: oklch(0.66 0.10 80); --clay-2: oklch(0.58 0.10 78);
}
[data-palette="lagun"] {         /* airy aegean */
  --bone: oklch(0.972 0.010 200); --bone-2: oklch(0.95 0.014 200); --sand: oklch(0.915 0.022 198);
  --ink: oklch(0.27 0.03 235); --ink-2: oklch(0.42 0.032 232); --ink-3: oklch(0.57 0.03 232);
  --sea: oklch(0.50 0.085 215); --sea-2: oklch(0.39 0.075 218);
  --clay: oklch(0.66 0.10 35); --clay-2: oklch(0.58 0.10 32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.js { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--clay); color: var(--bone); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bone-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 10px; border: 3px solid var(--bone-2); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
[id] { scroll-margin-top: 92px; }
.section { padding-block: clamp(72px, 11vw, 168px); position: relative; }
.section.on-sea { background: var(--sea); color: var(--bone); --line: color-mix(in oklch, var(--bone) 22%, transparent); --line-2: color-mix(in oklch, var(--bone) 40%, transparent); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: clamp(11px, 0.78vw, 12.5px);
  font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.55; }
.eyebrow.no-rule::before { display: none; }
.on-sea .eyebrow { color: color-mix(in oklch, var(--clay) 55%, var(--bone)); }

.display {
  font-family: var(--serif); font-weight: 400;
  line-height: 0.96; letter-spacing: -0.015em;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-feature-settings: "liga" 1;
}
.h1 { font-family: var(--serif); font-weight: 400; line-height: 1.0; letter-spacing: -0.01em; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.008em; font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.serif-i { font-style: italic; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.28rem); line-height: 1.62; color: var(--ink-2); font-weight: 400; max-width: 54ch; }
.on-sea .lead { color: color-mix(in oklch, var(--bone) 86%, transparent); }
.kicker { font-size: 0.96rem; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.12em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 28px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--e-out), border-color 0.5s var(--e-out), background 0.5s var(--e-out);
}
.btn svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: 0; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--e-out); }
.btn--clay { background: var(--clay); color: var(--bone); }
.btn--clay::after { background: var(--clay-2); transform: scaleX(0); }
.btn--clay:hover::after { transform: scaleX(1); }
.btn--clay:hover { color: var(--bone); }
.btn--line { border-color: var(--line-2); color: var(--fg); }
.btn--line::after { background: var(--fg); }
.btn--line:hover { color: var(--bg); border-color: var(--fg); }
.btn--line:hover::after { transform: scaleX(1); }
.on-sea .btn--line { color: var(--bone); }
.on-sea .btn--line:hover { color: var(--sea); }
.btn--block { width: 100%; justify-content: center; }

/* arrow link */
.alink { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.alink svg { width: 16px; height: 16px; transition: transform 0.45s var(--e-out); }
.alink:hover svg { transform: translateX(6px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gut);
  transition: transform 0.55s var(--e-out), background 0.5s var(--e-out), padding 0.5s var(--e-out), border-color 0.5s var(--e-out), color 0.5s var(--e-out);
  border-bottom: 1px solid transparent;
  color: var(--bone);
  mix-blend-mode: normal;
}
.nav[data-solid="true"] {
  background: color-mix(in oklch, var(--bone) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 14px; color: var(--ink);
}
.nav[data-hidden="true"] { transform: translateY(-104%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.brand__rule { width: 1px; height: 22px; background: currentColor; opacity: 0.35; }
.brand__sub { font-size: 9.5px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.85; line-height: 1.3; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; position: relative; padding-block: 4px; opacity: 0.92; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--clay); transition: width 0.4s var(--e-out); }
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.lang { display: inline-flex; gap: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; }
.lang button { padding: 4px 3px; opacity: 0.45; transition: opacity 0.3s; position: relative; }
.lang button[data-active="true"] { opacity: 1; color: var(--clay); }
.lang span { opacity: 0.35; }
.nav__toggle { display: none; }
.nav__toggle svg { width: 26px; height: 26px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--sea); color: var(--bone); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--gut); transform: translateY(-100%); transition: transform 0.6s var(--e-out); }
.drawer[data-open="true"] { transform: translateY(0); }
.drawer__close { position: absolute; top: 22px; right: var(--gut); }
.drawer__close svg { width: 30px; height: 30px; }
.drawer a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); padding-block: 7px; border-bottom: 1px solid color-mix(in oklch, var(--bone) 22%, transparent); }

/* ---------- reveal / motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity var(--rev) var(--e-out), transform var(--rev) var(--e-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"]   { transform: translateY(34px); }
.js [data-reveal="rise"] { transform: translateY(64px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"]{ transform: translateX(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* line mask reveal for headlines */
.lines { display: block; }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.js .line > * { display: block; transform: translateY(110%); transition: transform 1.05s var(--e-out); transition-delay: var(--d, 0s); }
.js .line.is-in > * { transform: none; }

/* real media fill any frame */
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide[data-active="true"] { opacity: 1; }

/* image clip reveal + zoom */
.frame { position: relative; overflow: hidden; }
.js .frame[data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--e-soft); transition-delay: var(--d,0s); transform: none; }
.js .frame[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.frame img, .frame video, .frame .ph { transition: transform 1.3s var(--e-out); }
.js .frame[data-reveal="clip"] .ph, .js .frame[data-reveal="clip"] img, .js .frame[data-reveal="clip"] video { transform: scale(1.18); }
.js .frame[data-reveal="clip"].is-in .ph, .js .frame[data-reveal="clip"].is-in img, .js .frame[data-reveal="clip"].is-in video { transform: scale(1); }
.frame.hoverable:hover .ph, .frame.hoverable:hover img, .frame.hoverable:hover video { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  html.js { scroll-behavior: auto; }
  .js [data-reveal], .js .line > *, .js .frame[data-reveal="clip"] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* frozen-clock / no-animation fallback: show everything immediately */
.js.motion-off [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.js.motion-off .line > * { transform: none !important; transition: none !important; }
.js.motion-off .frame[data-reveal="clip"] { clip-path: none !important; transition: none !important; }
.js.motion-off .frame[data-reveal="clip"] .ph,
.js.motion-off .frame[data-reveal="clip"] img,
.js.motion-off .frame[data-reveal="clip"] video { transform: none !important; }

/* ---------- placeholder ---------- */
.ph {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 5%, transparent) 0 16px, color-mix(in oklch, var(--ink) 9%, transparent) 16px 32px),
    var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.on-sea .ph { background: repeating-linear-gradient(135deg, color-mix(in oklch, var(--bone) 6%, transparent) 0 16px, color-mix(in oklch, var(--bone) 11%, transparent) 16px 32px), color-mix(in oklch, var(--sea-2) 80%, var(--bone)); }
.ph__label { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklch, var(--ink) 60%, transparent); padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 2px; background: color-mix(in oklch, var(--bone) 55%, transparent); }
.on-sea .ph__label { color: color-mix(in oklch, var(--bone) 75%, transparent); background: color-mix(in oklch, var(--sea-2) 50%, transparent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--sea-2); }
.hero__media { position: absolute; inset: -8% 0 0 0; z-index: 0; will-change: transform; }
.hero__media .ph { height: 116%; background: repeating-linear-gradient(135deg, color-mix(in oklch, var(--bone) 6%, transparent) 0 18px, color-mix(in oklch, var(--bone) 10%, transparent) 18px 36px), linear-gradient(160deg, var(--sea) 0%, var(--sea-2) 60%, oklch(0.22 0.04 250) 100%); }
.hero__media .ph__label { color: color-mix(in oklch, var(--bone) 70%, transparent); background: color-mix(in oklch, var(--sea-2) 45%, transparent); border-color: color-mix(in oklch, var(--bone) 24%, transparent); position: absolute; right: 20px; bottom: 22px; opacity: 0.6; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in oklch, var(--sea-2) 55%, transparent) 0%, transparent 26%, transparent 50%, color-mix(in oklch, var(--sea-2) 88%, transparent) 100%); }
.hero__grain { position: absolute; inset: 0; z-index: 2; opacity: 0.5; pointer-events: none; background-image: radial-gradient(color-mix(in oklch, var(--bone) 7%, transparent) 0.5px, transparent 0.5px); background-size: 3px 3px; mix-blend-mode: overlay; }
.hero__inner { position: relative; z-index: 3; width: 100%; color: var(--bone); padding-bottom: clamp(54px, 8vh, 104px); padding-top: 150px; }
.hero__eyebrow { color: color-mix(in oklch, var(--clay) 60%, var(--bone)); }
.hero__title { margin: 24px 0 0; max-width: 15ch; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.hero__sub { max-width: 42ch; color: color-mix(in oklch, var(--bone) 88%, transparent); font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__cta .btn--line { border-color: color-mix(in oklch, var(--bone) 45%, transparent); color: var(--bone); }
.hero__cta .btn--line:hover { color: var(--sea); border-color: var(--bone); }
.scrollcue { position: absolute; left: var(--gut); bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 12px; color: color-mix(in oklch, var(--bone) 75%, transparent); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; }
.scrollcue__bar { width: 46px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scrollcue__bar::after { content: ""; position: absolute; inset: 0; background: var(--clay); transform: translateX(-100%); animation: cue 2.6s var(--e-out) infinite; }
@keyframes cue { 0% { transform: translateX(-100%);} 55%,100% { transform: translateX(100%);} }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--bone); padding: 18px 0; overflow: hidden; white-space: nowrap; border-block: 1px solid transparent; }
.marquee__track { display: inline-flex; align-items: center; gap: 42px; animation: marq 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 42px; }
.marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); display: inline-block; }
@keyframes marq { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- about / intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro__head { max-width: 18ch; }
.intro__body p { color: var(--ink-2); font-size: clamp(1.04rem, 1.25vw, 1.2rem); line-height: 1.68; margin-top: 22px; }
.intro__body p:first-child { margin-top: 0; }
.intro__media { position: relative; }
.intro__media .frame { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
.intro__badge { position: absolute; left: -28px; bottom: 34px; background: var(--clay); color: var(--bone); width: clamp(120px, 14vw, 168px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; box-shadow: 0 24px 50px -18px color-mix(in oklch, var(--ink) 50%, transparent); }
.intro__badge b { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.intro__badge span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.92; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; margin-top: clamp(48px, 7vw, 96px); }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 0.9; color: var(--sea); }
.on-sea .stat__num { color: var(--bone); }
.stat__lbl { font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 12px; max-width: 16ch; }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- section header ---------- */
.shead { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 28px 50px; margin-bottom: clamp(40px, 6vw, 76px); }
.shead__t { max-width: 30ch; }
.shead__t .h2 { margin-top: 18px; }
.shead__aside { justify-self: end; max-width: 38ch; text-align: right; }
@media (max-width: 820px) { .shead { grid-template-columns: 1fr; } .shead__aside { justify-self: start; text-align: left; } }

/* ---------- rooms (editorial list) ---------- */
.rooms__list { display: flex; flex-direction: column; }
.room {
  display: grid; grid-template-columns: 78px 1.15fr 1fr; gap: clamp(20px, 4vw, 64px);
  align-items: center; padding: clamp(26px, 4vw, 46px) 0; border-top: 1px solid var(--line);
  position: relative;
}
.room:last-child { border-bottom: 1px solid var(--line); }
.room__idx { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-3); align-self: start; }
.room__main { display: flex; flex-direction: column; gap: 16px; }
.room__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); }
.room__name { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -0.01em; }
.room__desc { color: var(--ink-2); max-width: 46ch; font-size: 1.02rem; }
.room__feats { display: flex; flex-wrap: wrap; gap: 8px; }
.tagsm { font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-2); padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; }
.room__right { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.room__frame { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-lg); }
.room__cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.room__price { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.room__price b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--fg); font-weight: 400; margin-top: 2px; }
@media (max-width: 920px) {
  .room { grid-template-columns: 44px 1fr; }
  .room__right { grid-column: 2; }
  .room__frame { aspect-ratio: 16/9; }
}
@media (max-width: 560px) { .room { grid-template-columns: 1fr; } .room__right { grid-column: 1; } .room__idx { display: none; } }

/* ---------- amenities ---------- */
.amen__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.amen__item { background: var(--bg); padding: clamp(28px, 3vw, 42px) clamp(24px, 2.6vw, 34px) clamp(36px,4vw,52px); position: relative; transition: background 0.5s var(--e-out); min-height: 230px; display: flex; flex-direction: column; }
.amen__item:hover { background: var(--bone-2); }
.on-sea .amen__item { background: var(--sea); } .on-sea .amen__item:hover { background: var(--sea-2); }
.amen__no { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-3); }
.amen__icon { width: 34px; height: 34px; color: var(--clay); margin-top: auto; margin-bottom: 16px; }
.amen__icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.amen__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; margin-bottom: 9px; }
.amen__desc { font-size: 0.92rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 880px) { .amen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .amen__grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 13vw, 200px); gap: 16px; }
.gallery__grid .frame { border-radius: var(--radius-lg); }
.g1 { grid-column: span 5; grid-row: span 2; }
.g2 { grid-column: span 4; grid-row: span 1; }
.g3 { grid-column: span 3; grid-row: span 2; }
.g4 { grid-column: span 4; grid-row: span 1; }
.g5 { grid-column: span 4; grid-row: span 2; }
.g6 { grid-column: span 4; grid-row: span 1; }
.g7 { grid-column: span 4; grid-row: span 1; }
.g8 { grid-column: span 8; grid-row: span 1; }
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { grid-column: span 1; grid-row: span 1; }
  .g1, .g8 { grid-column: span 2; }
}

/* ---------- location ---------- */
.loc__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.loc__map { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.loc__map { min-width: 0; }
.loc__map .frame { aspect-ratio: 5/4; width: 100%; }
.loc__iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
/* görünür yedek: iframe yüklenmezse arkadan görünür */
.loc__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 5%, transparent) 0 16px, color-mix(in oklch, var(--ink) 9%, transparent) 16px 32px), var(--sand);
}
.loc__fallback-go { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.loc__pin { position: absolute; top: 46%; left: 52%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.loc__pin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 6px color-mix(in oklch, var(--clay) 28%, transparent), 0 0 0 16px color-mix(in oklch, var(--clay) 12%, transparent); }
.loc__pin-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bone); color: var(--ink); padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--ink) 40%, transparent); }
.dist { margin-top: 34px; }
.dist__row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.dist__row:last-child { border-bottom: 1px solid var(--line); }
.dist__place { font-size: 1.1rem; }
.dist__place span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.on-sea .dist__place span { color: color-mix(in oklch, var(--bone) 65%, transparent); }
.dist__val { font-family: var(--serif); font-size: 1.6rem; color: var(--clay); white-space: nowrap; }
.on-sea .dist__val { color: color-mix(in oklch, var(--clay) 50%, var(--bone)); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 86px); }
.contact__cards { display: flex; flex-direction: column; margin-top: 34px; }
.cc { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); transition: padding-left 0.45s var(--e-out); }
.cc:last-child { border-bottom: 1px solid var(--line); }
.cc:hover { padding-left: 10px; }
.cc__ic { width: 22px; height: 22px; color: var(--clay); flex-shrink: 0; }
.cc__ic svg { width: 100%; height: 100%; }
.cc__lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.cc__val { font-size: 1.08rem; margin-top: 3px; }
.cc__arrow { margin-left: auto; color: var(--ink-3); transition: transform 0.45s var(--e-out), color 0.45s; }
.cc__arrow svg { width: 18px; height: 18px; }
.cc:hover .cc__arrow { transform: translate(4px,-4px); color: var(--clay); }

.form { background: var(--bone-2); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.on-sea .form { background: color-mix(in oklch, var(--sea-2) 60%, var(--bone)); border-color: var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select { font-family: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; width: 100%; transition: border-color 0.3s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); }
.field textarea { resize: vertical; min-height: 96px; }
.form__note { font-size: 12px; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--sea-2); color: var(--bone); padding-top: clamp(60px, 8vw, 110px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 54px; }
.footer__about { color: color-mix(in oklch, var(--bone) 78%, transparent); margin-top: 22px; max-width: 34ch; font-size: 0.98rem; }
.footer__col h4 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklch, var(--clay) 55%, var(--bone)); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; color: color-mix(in oklch, var(--bone) 80%, transparent); font-size: 0.98rem; padding-block: 6px; transition: color 0.3s; }
.footer__col a:hover { color: var(--bone); }
.footer__wordmark { font-family: var(--serif); font-size: clamp(4.5rem, 22vw, 19rem); line-height: 0.82; letter-spacing: -0.02em; padding-block: clamp(20px, 3vw, 40px) 0; color: color-mix(in oklch, var(--bone) 96%, transparent); white-space: nowrap; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid color-mix(in oklch, var(--bone) 18%, transparent); flex-wrap: wrap; }
.footer__bottom p { font-size: 12.5px; color: color-mix(in oklch, var(--bone) 62%, transparent); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ---------- whatsapp float ---------- */
.wafloat { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 11px; background: #1FAE54; color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em; padding: 14px 20px 14px 15px; border-radius: 999px; box-shadow: 0 18px 44px -12px color-mix(in oklch, oklch(0.6 0.16 150) 70%, transparent); transition: transform 0.5s var(--e-out), box-shadow 0.5s var(--e-out); }
.wafloat:hover { transform: translateY(-3px); }
.wafloat svg { width: 23px; height: 23px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; }
  .intro__media .frame { aspect-ratio: 16/11; }
  .loc__grid, .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .nav { padding-inline: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__row { flex-direction: column; align-items: flex-start; }
}
