/* ==========================================================================
   Le Pavillon Hamra — style.css
   Direction: Beirut modernism. Limestone, slab-and-pier rhythm, brass hairlines.
   Display: Marcellus (inscriptional roman)   Body: Jost (geometric)
   Data:    DM Mono (architectural spec sheet)
   ========================================================================== */

/* --------------------------------------------------------- 1. Tokens ----- */
:root {
  /* Colour — pulled from the building itself: night stone, travertine, brass */
  --ink-900: #0E0D0B;
  --ink-800: #171612;
  --ink-700: #201E19;
  --ink-600: #2C2924;

  --stone-050: #F3F1EC;
  --stone-100: #EBE7DF;
  --stone-200: #DED8CC;
  --stone-400: #A9A296;
  --stone-600: #6E685D;

  --brass: #D9BD7F;
  --brass-soft: #E7D5A9;
  --brass-deep: #96762F;

  --white: #FCFBF8;

  /* Semantic */
  --bg: var(--ink-800);
  --fg: var(--white);
  --hair: color-mix(in srgb, var(--brass) 26%, transparent);
  --hair-dark: color-mix(in srgb, var(--ink-900) 16%, transparent);

  /* Type */
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-hero: clamp(2.3rem, 5.2vw, 4.6rem);
  --t-h2: clamp(2.1rem, 4.4vw, 3.9rem);
  --t-h3: clamp(1.35rem, 2.2vw, 1.85rem);
  --t-lead: clamp(1.02rem, 1.35vw, 1.22rem);
  --t-body: clamp(0.97rem, 1.05vw, 1.05rem);
  --t-label: 0.7rem;

  /* Space & layout */
  --shell: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --rail: 0px;
  --band: clamp(72px, 9vw, 150px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1180px) {
  :root { --rail: 84px; }
}

/* ----------------------------------------------------------- 2. Base ----- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

::selection { background: var(--brass); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--ink-900);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------- 3. Shared primitives -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  padding-block: var(--band);
  padding-left: var(--rail);
}

.band--light { background: var(--stone-100); color: var(--ink-800); }
.band--stone { background: var(--stone-050); color: var(--ink-800); }
.band--ink { background: var(--ink-800); color: var(--white); }
.band--deep { background: var(--ink-900); color: var(--white); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.band--light .eyebrow, .band--stone .eyebrow { color: var(--brass-deep); }

.section-head {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-bottom: clamp(44px, 6vw, 80px);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    column-gap: clamp(40px, 6vw, 110px);
  }
}

.section-title { font-size: var(--t-h2); margin-top: 18px; }
.lead { font-size: var(--t-lead); line-height: 1.85; max-width: 56ch; }
.band--ink .lead, .band--deep .lead { color: color-mix(in srgb, var(--white) 82%, transparent); }
.band--light .lead, .band--stone .lead { color: var(--stone-600); }

.rule {
  height: 1px;
  background: var(--hair);
  border: 0;
}
.band--light .rule, .band--stone .rule { background: var(--hair-dark); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --btn-fg: var(--ink-900);
  --btn-bg: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--brass); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: color-mix(in srgb, var(--white) 34%, transparent);
}
.btn--ghost:hover { background: var(--brass); color: var(--ink-900); border-color: var(--brass); }

.btn--dark {
  --btn-bg: var(--ink-800);
  --btn-fg: var(--white);
  border-color: var(--ink-800);
}
.btn--dark:hover { background: transparent; color: var(--ink-800); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-more:hover { border-color: var(--brass); gap: 16px; }
.band--light .link-more, .band--stone .link-more { color: var(--brass-deep); }

.arrow { transition: transform 0.35s var(--ease); }

/* ---------------------------------------------------- 4. The left rail --- */
/* Signature: a building elevation drawn down the edge of the page.          */
.rail {
  position: fixed;
  top: 0; left: 0;
  width: var(--rail);
  height: 100vh;
  z-index: 60;
  display: none;
  pointer-events: none;
  background: var(--ink-900);
  border-right: 1px solid color-mix(in srgb, var(--brass) 16%, transparent);
}
@media (min-width: 1180px) { .rail { display: block; } }

.rail__ticks {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%;
  display: grid;
  gap: 9px;
  padding-left: 22px;
}
.rail__tick {
  width: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--brass) 40%, transparent);
  transition: width 0.5s var(--ease), background 0.5s var(--ease);
}
.rail__tick.is-on { width: 30px; background: var(--brass); }

.rail__label {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brass) 80%, transparent);
  white-space: nowrap;
}

.rail__mark {
  position: absolute;
  top: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px;
  opacity: 0.85;
}

/* -------------------------------------------------------- 5. Header ----- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-left: var(--rail);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--ink-900) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: color-mix(in srgb, var(--brass) 18%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.header.is-stuck .header__inner { min-height: 72px; transition: min-height 0.45s var(--ease); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name {
  font-family: var(--display);
  font-size: 1.06rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.brand__sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brass) 85%, transparent);
}

.nav { display: none; }
@media (min-width: 1000px) { .nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); } }

.nav__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  padding-block: 6px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brass); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.header__cta { display: none; }
@media (min-width: 1160px) { .header__cta { display: inline-flex; padding: 12px 22px; } }

.burger {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none;
  border: 1px solid color-mix(in srgb, var(--white) 26%, transparent);
  cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 20px; height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink-900);
  padding: 120px var(--gutter) 48px;
  display: grid;
  align-content: start;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__link {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  padding-block: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 16%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer__link span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--brass);
}
.drawer__foot { margin-top: 34px; display: grid; gap: 14px; justify-items: start; }

/* --------------------------------------------------------- 6. Slider ---- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-left: var(--rail);
  isolation: isolate;
  background: var(--ink-900);
}

.slider { position: relative; min-height: 100svh; overflow: hidden; }

/* Every slide sits in the same grid cell, so the tallest one sets the height
   and nothing is ever clipped on a small screen. */
.slider__track {
  position: relative;
  display: grid;
  min-height: 100svh;
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide__media { position: absolute; inset: 0; z-index: -2; }
.slide__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.slide.is-active .slide__media img { transform: scale(1); }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,13,11,0.72) 0%, rgba(14,13,11,0.18) 34%, rgba(14,13,11,0.88) 100%),
    linear-gradient(90deg, rgba(14,13,11,0.6) 0%, rgba(14,13,11,0) 62%);
}

.slide__body {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  /* top padding clears the fixed header so the headline can never run under it */
  padding: clamp(112px, 15vh, 156px) var(--gutter) clamp(116px, 15vh, 170px);
}
.slide__inner { max-width: 20ch; }
.slide__text-wrap { max-width: 48ch; }

.slide__title {
  font-size: var(--t-hero);
  margin: 22px 0 20px;
  max-width: 17ch;
}
.slide__title em {
  font-style: normal;
  color: var(--brass);
}
.slide__text {
  font-size: var(--t-lead);
  color: color-mix(in srgb, var(--white) 84%, transparent);
  max-width: 46ch;
  margin-bottom: 34px;
}
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Slider controls */
.slider__ui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  background: linear-gradient(180deg, rgba(14,13,11,0) 0%, rgba(14,13,11,0.55) 100%);
}
.slider__ui-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.slider__count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--white) 70%, transparent);
}
.slider__count b { color: var(--brass); font-weight: 400; }

.slider__dots { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 34px; height: 2px;
  background: color-mix(in srgb, var(--white) 26%, transparent);
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--brass);
}
.dot.is-active::after { width: 100%; transition: width 6s linear; }
.dot:hover { background: color-mix(in srgb, var(--white) 50%, transparent); }

.slider__arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  background: none;
  border: 1px solid color-mix(in srgb, var(--white) 24%, transparent);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.arrow-btn:hover { background: var(--brass); color: var(--ink-900); border-color: var(--brass); }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 110px;
  z-index: 5;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 60%, transparent);
  display: none;
}
@media (min-width: 1000px) { .scroll-hint { display: flex; align-items: center; gap: 14px; } }
.scroll-hint::after {
  content: "";
  width: 1px; height: 54px;
  background: linear-gradient(var(--brass), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------------------------------------- 7. Fact band --- */
.facts {
  background: var(--ink-900);
  border-block: 1px solid color-mix(in srgb, var(--brass) 18%, transparent);
  padding-left: var(--rail);
}
.facts__grid {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }

.fact {
  padding: clamp(22px, 3vw, 34px) 18px clamp(22px, 3vw, 34px) 0;
  border-right: 1px solid color-mix(in srgb, var(--brass) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 12%, transparent);
}
@media (min-width: 860px) {
  .fact { border-bottom: 0; }
  .fact:last-child { border-right: 0; }
}
@media (max-width: 859px) {
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}
.fact__num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--brass);
  line-height: 1;
}
.fact__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 62%, transparent);
  margin-top: 12px;
}

/* ---------------------------------------------------------- 8. Intro ---- */
.intro__grid { display: grid; gap: clamp(36px, 5vw, 90px); }
@media (min-width: 940px) {
  .intro__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
}
.intro__statement {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.16;
  max-width: 18ch;
}
.intro__statement em { font-style: normal; color: var(--brass-deep); }

.intro__body p + p { margin-top: 20px; }
.intro__body { color: var(--stone-600); max-width: 54ch; }

.keylist { margin-top: 40px; display: grid; }
.keylist__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--hair-dark);
}
.keylist__item:last-child { border-bottom: 1px solid var(--hair-dark); }
.keylist__key {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.keylist__val { color: var(--ink-800); }

/* ------------------------------------------------------- 9. Unit grid --- */
.units {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .units { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .units { grid-template-columns: repeat(6, 1fr); } }

/* first row: 3 across / second row: 2 across, on the 6-col grid */
@media (min-width: 1080px) {
  .unit:nth-child(-n+3) { grid-column: span 2; }
  .unit:nth-child(n+4) { grid-column: span 3; }
}

.unit {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ink-700);
  border: 1px solid color-mix(in srgb, var(--brass) 14%, transparent);
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
  container-type: inline-size;
}
.unit:hover { border-color: color-mix(in srgb, var(--brass) 46%, transparent); }

.unit__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.unit__media picture { position: absolute; inset: 0; }
.unit__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.9) brightness(0.88);
}
.unit:hover .unit__media img { transform: scale(1.05); filter: saturate(1) brightness(1); }

.unit__tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--ink-900);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.unit__body {
  padding: clamp(22px, 2.4vw, 32px);
  display: grid;
  align-content: start;
  gap: 14px;
}
.unit__title { font-size: var(--t-h3); }
.unit__spec {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.unit__text {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: 0.95rem;
  line-height: 1.7;
}
.unit__link { margin-top: 6px; justify-self: start; }

@container (min-width: 520px) {
  .unit__body { padding-block: clamp(26px, 3vw, 40px); }
  .unit__text { max-width: 46ch; }
}

/* -------------------------------------------------- 10. Amenity list ---- */
.amenities {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair-dark);
}
@media (min-width: 820px) { .amenities { grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 6vw, 100px); } }

.amenity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--hair-dark);
}
.amenity__icon {
  width: 26px; height: 26px;
  color: var(--brass-deep);
  flex: none;
  margin-top: 4px;
}
.amenity__title {
  font-family: var(--display);
  font-size: 1.24rem;
  margin-bottom: 8px;
}
.amenity__text { color: var(--stone-600); font-size: 0.97rem; line-height: 1.7; }

/* ------------------------------------------------------ 11. Location ---- */
.location__grid { display: grid; gap: clamp(38px, 5vw, 74px); align-items: start; }
@media (min-width: 960px) { .location__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

.distances { display: grid; }
.distance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.98rem;
}
.distance:first-child { border-top: 1px solid var(--hair); }
.distance__name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.distance__icon {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
  opacity: 0.85;
}
.distance__time {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  white-space: nowrap;
}

.map {
  border: 1px solid var(--hair);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-700);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.86); }

/* ------------------------------------------------------- 12. Contact ---- */
.contact__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: end; } }

.contact__title { font-size: var(--t-h2); max-width: 14ch; }
.contact__phone {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: var(--brass);
  display: inline-block;
  margin-block: 22px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  padding-bottom: 8px;
  transition: border-color 0.3s var(--ease);
}
.contact__phone:hover { border-color: var(--brass); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact__note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55%, transparent);
  margin-top: 26px;
}

/* -------------------------------------------------------- 13. Footer ---- */
.footer {
  background: var(--ink-900);
  border-top: 1px solid color-mix(in srgb, var(--brass) 20%, transparent);
  padding-left: var(--rail);
}
.footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 84px) var(--gutter) 32px;
  display: grid;
  gap: clamp(34px, 4vw, 60px);
}
@media (min-width: 880px) {
  .footer__inner { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}
.footer__brand { display: grid; gap: 18px; justify-items: start; }
.footer__logo { width: 54px; }
.footer__about {
  color: color-mix(in srgb, var(--white) 60%, transparent);
  max-width: 40ch;
  font-size: 0.94rem;
}
.footer__col-title {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}
.footer__list { list-style: none; display: grid; gap: 12px; }
.footer__list a {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: 0.94rem;
  transition: color 0.3s var(--ease);
}
.footer__list a:hover { color: var(--brass); }

.footer__bar {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 34px;
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 45%, transparent);
}

/* --------------------------------------------- 14. Interior page parts -- */
.page-hero {
  position: relative;
  min-height: clamp(460px, 74vh, 720px);
  display: grid;
  align-items: end;
  padding-left: var(--rail);
  isolation: isolate;
  background: var(--ink-900);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,13,11,0.78) 0%, rgba(14,13,11,0.3) 40%, rgba(14,13,11,0.92) 100%);
}
.page-hero__body {
  max-width: var(--shell);
  margin-inline: auto;
  width: 100%;
  padding: 0 var(--gutter) clamp(52px, 7vw, 84px);
}
.page-hero__title { font-size: clamp(2.6rem, 6vw, 5rem); margin: 20px 0 20px; }
.page-hero__text { font-size: var(--t-lead); max-width: 50ch; color: color-mix(in srgb, var(--white) 84%, transparent); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 60%, transparent);
  list-style: none;
  padding-top: clamp(110px, 14vh, 150px);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--brass); }
.crumbs a:hover { color: var(--brass); }

.spec-table {
  display: grid;
  border-top: 1px solid var(--hair-dark);
}
@media (min-width: 720px) { .spec-table { grid-template-columns: repeat(2, 1fr); column-gap: clamp(30px, 5vw, 80px); } }
.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--hair-dark);
}
.spec__key {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.spec__val { font-size: 1rem; text-align: right; }

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--stone-600);
}
.checklist li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 10px;
  border: 1px solid var(--brass-deep);
  transform: rotate(45deg);
}
.band--ink .checklist li, .band--deep .checklist li { color: color-mix(in srgb, var(--white) 74%, transparent); }
.band--ink .checklist li::before, .band--deep .checklist li::before { border-color: var(--brass); }

.detail__grid { display: grid; gap: clamp(38px, 5vw, 80px); align-items: start; }
@media (min-width: 940px) { .detail__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

.figure { border: 1px solid var(--hair-dark); overflow: hidden; }
.figure picture { display: block; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-600);
  padding: 14px 18px;
  border-top: 1px solid var(--hair-dark);
}

.related { display: grid; gap: 16px; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .related { grid-template-columns: repeat(4, 1fr); } }
.related__card {
  border: 1px solid color-mix(in srgb, var(--brass) 16%, transparent);
  padding: 26px 24px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.related__card:hover { background: var(--ink-700); border-color: color-mix(in srgb, var(--brass) 40%, transparent); }
.related__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.related__title { font-family: var(--display); font-size: 1.28rem; }
.related__meta { font-size: 0.88rem; color: color-mix(in srgb, var(--white) 62%, transparent); }

.cta-strip {
  background: var(--brass);
  color: var(--ink-900);
  padding-left: var(--rail);
}
.cta-strip__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 78px) var(--gutter);
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 860px) { .cta-strip__inner { grid-template-columns: 1fr auto; } }
.cta-strip__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; }
.cta-strip__sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 12px;
  color: color-mix(in srgb, var(--ink-900) 72%, transparent);
}

/* ------------------------------------------------------- 15. Motion ----- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.line-grow { transform: scaleX(0); transform-origin: left; }
.line-grow.is-in { transform: scaleX(1); transition: transform 1.1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .line-grow { transform: none; }
  .slide__media img { transform: none; }
}

/* ---------------------------------------------------- 16. Print / misc -- */
@media print {
  .header, .rail, .slider__ui, .drawer, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------- 17. FAQ ----- */
.faq { display: grid; border-top: 1px solid var(--hair); }
.band--light .faq, .band--stone .faq { border-top-color: var(--hair-dark); }
.faq__item {
  border-bottom: 1px solid var(--hair);
  padding-block: 4px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  transition: color 0.3s var(--ease);
}
.band--light .faq__item, .band--stone .faq__item { border-bottom-color: var(--hair-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brass); }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--brass);
  flex: none;
  transition: transform 0.35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { color: var(--brass); }
.faq__answer {
  padding-bottom: 26px;
  max-width: 62ch;
  color: color-mix(in srgb, var(--white) 74%, transparent);
}
.band--light .faq__answer, .band--stone .faq__answer { color: var(--stone-600); }

/* -------------------------------------------------- 18. WhatsApp pill --- */
.wa {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--ink-900);
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.wa:hover { background: var(--brass); color: var(--ink-900); }
.wa svg { width: 18px; height: 18px; flex: none; }
.wa span { display: none; }
@media (min-width: 600px) { .wa span { display: inline; } }

/* ----------------------------------------------------- 19. Instagram ---- */
.social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 12px 20px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  color: var(--brass);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.social:hover { background: var(--brass); color: var(--ink-900); border-color: var(--brass); }
.social svg { width: 20px; height: 20px; flex: none; }
.social__text { display: grid; line-height: 1.25; text-align: left; }
.social__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.72;
}
.social__handle {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.footer__list a { display: inline-flex; align-items: center; gap: 9px; }
.footer__list svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }

/* --------------------------------------- 20. Detail image gallery ------- */
/* A .figure becomes a slider only when main.js finds extra photos.
   Until then, and with JS off, the figure keeps its original single image. */

.figure--gal { position: relative; }

.gal__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-900);
}

.gal__track { position: absolute; inset: 0; }

.gal__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}
.gal__slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s var(--ease), visibility 0s;
}
.gal__slide picture { display: block; height: 100%; }
.figure--gal .gal__slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

/* Arrows --------------------------------------------------------------- */
.gal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid;
  place-content: center;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  background: color-mix(in srgb, var(--ink-900) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 26%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gal__nav svg { width: 19px; height: 19px; }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }

.figure--gal:hover .gal__nav,
.figure--gal:focus-within .gal__nav { opacity: 1; }

.gal__nav:hover {
  background: var(--brass);
  color: var(--ink-900);
  border-color: var(--brass);
}
.gal__nav:focus-visible { opacity: 1; outline: 2px solid var(--brass); outline-offset: 2px; }

/* Touch devices have no hover — keep the arrows visible there */
@media (hover: none) {
  .gal__nav { opacity: 1; }
}

/* Counter -------------------------------------------------------------- */
.gal__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--white);
  background: color-mix(in srgb, var(--ink-900) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  padding: 5px 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Thumbnails ----------------------------------------------------------- */
.gal__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--hair-dark);
  background: color-mix(in srgb, var(--stone-050) 70%, transparent);
}
.gal__thumbs::-webkit-scrollbar { height: 4px; }
.gal__thumbs::-webkit-scrollbar-thumb { background: var(--stone-400); }

.gal__thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 54px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gal__thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}
.gal__thumb:hover { opacity: 0.85; }
.gal__thumb.is-on { opacity: 1; border-color: var(--brass-deep); }
.gal__thumb:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }

/* On dark bands the strip should read dark, not light */
.band--ink .gal__thumbs, .band--deep .gal__thumbs {
  background: color-mix(in srgb, var(--ink-900) 55%, transparent);
  border-top-color: color-mix(in srgb, var(--brass) 18%, transparent);
}
.band--ink .gal__thumb.is-on, .band--deep .gal__thumb.is-on { border-color: var(--brass); }

@media (max-width: 520px) {
  .gal__thumb { width: 62px; height: 46px; }
  .gal__nav { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .gal__slide, .gal__nav, .gal__thumb { transition: none; }
}
