/* Cocoon House — editorial residential system (locked from Social Media Rebuild) */
:root {
  /* Brand palette — locked tokens */
  --clay: #886143;
  --cream: #E2DED3;
  --linen: #F7F4EE;
  --ink: #1A1A1A;
  --warm-grey: #6B5E52;
  --off-white: #FAF8F3;
  --white: #FFFFFF;

  /* Semantic aliases */
  --bg: var(--cream);
  --bg-elevated: var(--linen);
  --paper: var(--ink);
  --paper-muted: var(--warm-grey);
  --line: rgba(26, 26, 26, 0.12);
  --line-hover: rgba(136, 97, 67, 0.45);
  --accent: var(--clay);
  --accent-soft: rgba(136, 97, 67, 0.35);

  /* Type & motion */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(136, 97, 67, 0.18);
  text-rendering: optimizeLegibility;
}

/* Honour iOS notch / home indicator on full-bleed elements */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem clamp(1.25rem, 4vw, 3rem);
  min-height: var(--header-h);
  height: auto;
  background: transparent;
  color: var(--ink);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  width: 140px;
  height: auto;
  max-width: min(140px, calc(100vw - 11rem));
  display: block;
  opacity: 1;
  transition: opacity 0.45s var(--ease-out);
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 900px) {
  .site-header__end {
    margin-left: 0;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
}

.lang-switch__btn {
  padding: 0.25rem 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.lang-switch__btn::before {
  content: "·";
  margin-right: 0.45rem;
  opacity: 0.5;
}

.lang-switch__btn:first-of-type::before {
  content: "";
  margin-right: 0;
}

.lang-switch__btn:hover {
  opacity: 1;
}

.lang-switch__btn.is-active {
  color: var(--clay);
  opacity: 1;
}

/* Header sits over Cream hero, so active lang stays Clay in all states. */

.nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  color: inherit;
}

.nav a:not(.nav__cta) {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}

.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 0.35s var(--ease-out);
}

.nav a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: inherit;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.site-header:not(.is-scrolled) .nav__cta:hover {
  background: var(--off-white);
  color: var(--ink);
  border-color: var(--off-white);
}

.site-header.is-scrolled .nav__cta:hover {
  background: var(--ink);
  color: var(--off-white);
  border-color: var(--ink);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.site-header.is-open .nav-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.35s;
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.nav-drawer a:last-of-type {
  border-bottom: 0;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none !important;
  }
}

/* Hero — Scene 1: Arrival.
   Full-screen lifestyle video with a tasteful bottom-heavy veil (Vertus model).
   Content anchored to the lower-left, content on dark scrim, off-white text.
   The page steps into Cream from the next section onward. */
/* Hero — two-zone editorial split per brief §6.1.
   Video left ~58%, Cocoon Cream block right ~42%, anchored lower two-thirds.
   No dark veil, no off-white text, min-height 88vh. */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--cream);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

@media (min-width: 900px) {
  .hero__media {
    min-height: 88vh;
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: scale(1.0) translateZ(0);
  animation: ken 28s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes ken {
  from {
    transform: scale(1.0) translate(0, 0);
  }
  to {
    transform: scale(1.03) translate(-0.8%, -0.6%);
  }
}

.hero__panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--cream);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  /* Top third stays empty — Arrested Light "held breath". */
  .hero__panel {
    padding-top: 33vh;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 32rem;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 1;
  margin: 0 0 1.5rem;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__signature {
  display: block;
  width: 4rem;
  height: 1px;
  margin: 0 0 1.75rem;
  background: var(--clay);
  transform-origin: left;
}

.hero__lede {
  max-width: 26rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--warm-grey);
  margin: 0 0 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, filter 0.25s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--clay);
  color: var(--off-white);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.btn--on-dark {
  border-color: rgba(250, 248, 243, 0.6);
  color: var(--off-white);
}

.btn--on-dark:hover {
  border-color: var(--off-white);
  background: rgba(250, 248, 243, 0.08);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}

.section__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 1;
  margin: 0 0 1.25rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

.section__title--light {
  color: var(--off-white);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

/* Intro — attaches to the hero, NOT a full-viewport block (brief §6.2).
   Soft Linen rhythm step, paragraph Cormorant italic Warm Grey,
   welcome at the same size, full Ink. */
.intro {
  background: var(--linen);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.intro__grid {
  width: 100%;
  max-width: 64rem;
}

.intro__copy {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--warm-grey);
  max-width: 48rem;
  margin: 0;
  line-height: 1.55;
  letter-spacing: 0;
}

.intro__copy em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* Welcome line — Cormorant italic at the same size as the paragraph,
   full Ink, sits below as a signed sign-off. */
.intro__welcome {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
  margin: 1.75rem 0 0;
  max-width: 48rem;
  display: block;
}

.intro__welcome.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro__welcome.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro__welcome.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Horizontal rail */
.rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3rem));
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 99px;
}

.card {
  flex: 0 0 min(78vw, 380px);
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .card {
    flex-basis: 420px;
  }
}

.card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.02);
}

.card__body {
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  border-top: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.card:hover .card__body {
  border-top-color: var(--line-hover);
}

.card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.card__meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 1;
}

.card__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--warm-grey);
  flex: 1;
}

.card__link {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 2px;
  color: var(--paper);
  transition: color 0.2s, border-color 0.2s;
}

.card__link:hover {
  color: #c8d4c0;
  border-color: #c8d4c0;
}

/* Locale — full-bleed veiled video band (Tay Ho atmosphere).
   Cinematic, restrained — veil sits darker at the bottom so copy stays legible. */
.locale {
  position: relative;
  background: var(--ink);
  color: var(--off-white);
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.locale__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.locale__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: scale(1.0) translateZ(0);
  animation: ken 36s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Quiet veil — darker at the bottom where copy sits, near-clear at the top.
   Restraint: max 0.6α, never the harsh 0.75 of the old build. */
.locale__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.20) 0%,
    rgba(26, 26, 26, 0.15) 35%,
    rgba(26, 26, 26, 0.45) 75%,
    rgba(26, 26, 26, 0.60) 100%
  );
}

.locale__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.locale__eyebrow {
  color: rgba(250, 248, 243, 0.78);
}

.locale__copy {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.85);
}

.locale__copy em {
  color: var(--off-white);
  font-style: italic;
  font-weight: 500;
}

/* Video reviews — Linen per brief §6.6 */
.video-reviews {
  background: var(--linen);
}

.video-reviews__intro {
  margin: 0;
  max-width: 40rem;
  color: var(--warm-grey);
  font-size: 1.02rem;
}

/* Episodes — alternating two-column blocks (Template G applied to web).
   Video left, copy right; direction alternates per episode for rhythm. */
.episodes {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 6.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.episode {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .episode {
    grid-template-columns: 7fr 5fr;
  }
  .episode--reverse {
    grid-template-columns: 5fr 7fr;
  }
  .episode--reverse .episode__media {
    order: 2;
  }
  .episode--reverse .episode__copy {
    order: 1;
  }
}

.episode__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.episode__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.episode__copy {
  max-width: 32rem;
}

.episode__label {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.episode__name {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
}

.episode__signature {
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--clay);
  margin: 0 0 1.5rem;
}

.episode__quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Pull-quotes — quiet typographic punctuation between sections.
   Two static quotes, off-centre, no slider chrome. */
.pullquotes {
  background: var(--cream);
  padding-block: clamp(5rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.pullquote {
  margin: 0;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pullquote--right {
  margin-left: auto;
  text-align: right;
}

.pullquote__text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.pullquote__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.pullquote--right .pullquote__by {
  justify-content: flex-end;
}

.pullquote__signature {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--clay);
  flex-shrink: 0;
}

.pullquote--right .pullquote__signature {
  order: 3;
}

.pullquote__name {
  color: var(--clay);
}

/* Source — same eyebrow scale, but quieter. A hairline middot separates it
   from the name, signalling provenance without competing for weight. */
.pullquote__source {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(136, 97, 67, 0.7);
  font-weight: 500;
}

.pullquote__source::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--clay);
  opacity: 0.55;
}

.pullquote--right .pullquote__source {
  order: 2;
}

/* Life — Cream per brief §6.7 */
.life {
  background: var(--cream);
}

.life__intro {
  margin: 0;
  max-width: 42rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--warm-grey);
}

/* Features — five Cormorant italic words per brief §6.7.
   The eyebrow word IS the visual: no icons, no labels, no boxes. */
.features {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 3.5rem calc(-1 * clamp(1.25rem, 4vw, 3rem)) 0;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.features::-webkit-scrollbar {
  height: 6px;
}

.features::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
}

.feature {
  flex: 0 0 min(70vw, 260px);
  scroll-snap-align: start;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    overflow: visible;
    margin: 3.5rem 0 0;
    padding: 0;
  }

  .feature {
    flex: 0 1 auto;
  }
}

.feature__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.feature__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--warm-grey);
}

/* Gallery — Off-white per brief §6.8 (1 of 9 "section-of-rest") */
.gallery {
  background: var(--off-white);
}

.gallery-carousel {
  max-width: 56rem;
  margin: 2rem auto 0;
}

.gallery-carousel__viewport {
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  touch-action: pan-y pinch-zoom;
}

.gallery-carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.gallery-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-carousel__slide img {
  width: 100%;
  height: min(72vh, 560px);
  object-fit: cover;
  display: block;
}

.gallery-carousel__zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 2px;
  border: 1px solid rgba(250, 248, 243, 0.6);
  background: rgba(26, 26, 26, 0.45);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s, transform 0.22s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.gallery-carousel__slide:hover .gallery-carousel__zoom {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  background: rgba(26, 26, 26, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.lightbox-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem 5rem;
  box-sizing: border-box;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-out);
  display: block;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(250, 248, 243, 0.5);
  background: transparent;
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 1;
}

.lightbox__close:hover {
  border-color: var(--off-white);
  color: var(--off-white);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(250, 248, 243, 0.5);
  background: transparent;
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  z-index: 1;
}

.lightbox__arrow--prev { left: 1.25rem; }
.lightbox__arrow--next { right: 1.25rem; }

.lightbox__arrow:hover {
  border-color: var(--off-white);
  color: var(--off-white);
}

.lightbox__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.75);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lightbox__frame {
    padding: 4rem 1rem;
  }
  .lightbox__arrow--prev { left: 0.5rem; }
  .lightbox__arrow--next { right: 0.5rem; }
}

.gallery-carousel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-carousel__mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.gallery-carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.gallery-carousel__arrow:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.gallery-carousel__arrow:active {
  transform: scale(0.94);
}

.gallery-carousel__counter {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-grey);
  flex-shrink: 0;
}

.gallery-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-carousel__dots::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__dot {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1px;
  padding: 0.45rem 0;
  background: rgba(26, 26, 26, 0.22);
  background-clip: content-box;
  scroll-snap-align: center;
  transition: background 0.2s;
}

.gallery-carousel__dot:hover {
  background: var(--line-hover);
  background-clip: content-box;
}

.gallery-carousel__dot.is-active {
  background: var(--clay);
  background-clip: content-box;
}

/* Contact — inline concierge section per brief §6.9.
   Two-column Cream: editorial copy (cols 1-5) + form (cols 7-12).
   Hairline-underlined direct links separated by Clay · — no icon chips. */
.contact {
  background: var(--cream);
}

.contact__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 5fr 7fr;
  }
}

.contact__info {
  max-width: 32rem;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.contact__text {
  margin: 0 0 2rem;
  color: var(--warm-grey);
  max-width: 30rem;
}

.contact__direct-label {
  margin: 2rem 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Direct contact list — plain hairline-underlined per brief §6.9. */
.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.22s, border-color 0.22s;
}

.contact__link:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.contact__link-name {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.contact__link-value {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
}

.contact__link:hover .contact__link-value {
  color: var(--clay);
}

/* Social row — plain text links separated by Clay · . */
.contact__social {
  margin: 2rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact__social-link {
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.22s, border-color 0.22s;
}

.contact__social-link:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.contact__social-sep {
  color: var(--clay);
}

/* ── Contact form — hairline fields per brief §6.9 ───────── */
.contact__form-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 899px) {
  .contact__form-wrap {
    border-top: 1px solid var(--line);
    padding-top: clamp(1.5rem, 4vw, 2.25rem);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  width: 100%;
  outline: none;
  transition: border-color 0.25s var(--ease-out);
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(26, 26, 26, 0.35);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--clay);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-bottom-color: rgba(180, 50, 50, 0.75);
}

.form-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-date-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-date-col__label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.form-field input[type="date"] {
  color-scheme: light;
  cursor: pointer;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form__submit {
  width: 100%;
  margin-top: 0.25rem;
  justify-content: center;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form__error {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(220, 100, 100, 0.9);
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: fadeSlideUp 0.55s var(--ease-out) both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-success__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.form-success__text {
  color: var(--warm-grey);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.form-success__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── GALLERY CLOSING BLOCK — Cocoon Journal sign-off at end of gallery ─── */
/* ── QUICK ENQUIRE MODAL — apt-card trigger only ──────────────────────────
   Lightweight Cream panel; canonical contact form lives in the inline
   #contact section. Modal offers fast direct-message channels + a link
   to the full form. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.modal[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  width: 100%;
  max-width: 32rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 2px;
  transform: translateY(1rem);
  transition: transform 0.5s var(--ease-out);
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.modal__close:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.modal__close:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.modal__body {
  display: flex;
  flex-direction: column;
}

.modal__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.modal__text {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--warm-grey);
}

.modal__channels {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal__channel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.22s, border-color 0.22s;
}

.modal__channel:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.modal__channel-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.modal__channel-value {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: inherit;
}

.modal__form-link {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.22s, border-color 0.22s;
}

.modal__form-link:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

body.modal-is-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__panel {
    transition: none;
  }
  .modal__panel {
    transform: none;
  }
}

/* ── GALLERY CLOSING BLOCK ─────────────────────────────────────────────── */
.gallery__close {
  max-width: 38rem;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  text-align: left;
}

.gallery__close-signature {
  display: block;
  width: 4rem;
  height: 1px;
  margin: 0 0 1.5rem;
  background: var(--clay);
  transform-origin: left;
}

.gallery__close-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 2rem;
}

.gallery__close-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s, border-color 0.25s;
}

.gallery__close-cta:hover {
  color: var(--clay);
  border-color: var(--clay);
}

/* Footer */
.site-footer {
  background: var(--cream);
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--warm-grey);
}

.site-footer__logo {
  margin: 0 auto 1rem;
  height: 2rem;
  width: auto;
  opacity: 0.85;
}

.site-footer__socials {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  margin: 0.85rem 0 1rem;
}

.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}

.site-footer__social:hover {
  opacity: 1;
  border-color: var(--line-hover);
  color: var(--clay);
}

.site-footer__address {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--warm-grey);
  margin: 0.35rem 0 0.75rem;
}

.site-footer__address a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__address a:hover {
  color: var(--clay);
}

.site-footer__copy {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--warm-grey);
  opacity: 0.75;
}

/* ── Motion vocabulary ─────────────────────────────────────────────────────
   The page's "score" — a small, consistent set of gestures used everywhere.
   Reveal: translateY(12px) + opacity, 0.9s cubic-bezier(0.22, 1, 0.36, 1).
   Stagger: 120–160ms between siblings via --reveal-i.
   Hairline draw: 1px Clay line scales from 0 → 1 over 600ms, left origin.
   Image bloom: 92% → 100% opacity over 1.4s when entering viewport.
   ──────────────────────────────────────────────────────────────────────── */

/* Reveal — base */
.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 0.12s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hairline draw — used for section signatures, the hero clay rule, hover underlines */
.hairline-draw {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 0.12s);
}

.hairline-draw.is-visible {
  transform: scaleX(1);
}

/* Image bloom — held breath. Image opacity climbs from 92% to 100% as it lands. */
.image-bloom {
  opacity: 0.92;
  transition: opacity 1.4s var(--ease-out);
}

.image-bloom.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__video,
  .locale__video {
    animation: none;
    transform: none;
  }
  .video-carousel__track {
    transition: none;
  }
  .gallery-carousel__track {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hairline-draw {
    transform: scaleX(1);
    transition: none;
  }
  .image-bloom {
    opacity: 1;
    transition: none;
  }
  .quote.is-active {
    animation: none;
  }
}

/* Reveal stagger — sequential beats for hero, intro, section heads */
[data-reveal-delay="1"] { transition-delay: 0.16s; }
[data-reveal-delay="2"] { transition-delay: 0.32s; }
[data-reveal-delay="3"] { transition-delay: 0.48s; }
[data-reveal-delay="4"] { transition-delay: 0.64s; }

/* Rail cards — slower stagger so each "moment in time" lands like a clock beat. */
.rail .card.reveal {
  transition-delay: calc(var(--reveal-i, 0) * 0.22s);
}

/* Hairline draw needs its own delays — they layer over the same attribute */
.hairline-draw[data-reveal-delay="1"] { transition-delay: 0.16s; }
.hairline-draw[data-reveal-delay="2"] { transition-delay: 0.32s; }
.hairline-draw[data-reveal-delay="3"] { transition-delay: 0.48s; }
.hairline-draw[data-reveal-delay="4"] { transition-delay: 0.64s; }

/* ── Floating contact — Cream circle, Ink icon, Clay hairline border per §6.11.
   Hidden over the hero, fades in once intro/page content begins (JS toggles
   `.float-contact.is-visible`). No shadow. */
.float-contact {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.float-contact.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(136, 97, 67, 0.45);
  opacity: 0.85;
  transition: opacity 0.22s, border-color 0.22s, color 0.22s;
}

.float-contact__btn:hover {
  opacity: 1;
  border-color: var(--clay);
  color: var(--clay);
}

.float-contact__btn svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: currentColor;
}

.float-contact__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .float-contact {
    bottom: 1.25rem;
    right: 1rem;
  }
}

/* ── APARTMENTS — Linen background per brief §6.4 ─────────────────────── */
.apartments {
  background: var(--linen);
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.apartments__intro {
  max-width: 52ch;
  font-family: var(--serif);
  font-style: italic;
  color: var(--warm-grey);
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

/* Tab controls — Cormorant editorial tabs */
.apt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-block: 2.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.apt-tabs::-webkit-scrollbar {
  display: none;
}

.apt-tab {
  position: relative;
  padding: 0.85rem 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--warm-grey);
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}

.apt-tab:first-child {
  padding-left: 0;
}

.apt-tab::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.apt-tab:hover {
  color: var(--ink);
}

.apt-tab.is-active {
  color: var(--ink);
}

.apt-tab.is-active::after {
  transform: scaleX(1);
}

/* Panel layout */
.apt-panel {
  padding-top: 3rem;
}

.apt-panel__layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "view"
    "info";
  gap: 1rem 3rem;
}

@media (min-width: 900px) {
  .apt-panel__layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media info"
      "view  info";
    grid-template-rows: auto 1fr;
    column-gap: 5vw;
    row-gap: 0.85rem;
    align-items: start;
  }
}

.apt-panel__media { grid-area: media; }
.apt-panel__view-link { grid-area: view; }
.apt-panel__info { grid-area: info; }

/* Media — single magazine image, clickable to open gallery */
.apt-panel__media {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  outline: 0;
}

.apt-panel__media:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.apt-panel__main-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.apt-panel__media:hover .apt-panel__main-img {
  transform: scale(1.02);
}

/* View gallery — hairline-underlined text label below the apartment image.
   No badge, no icon. Restraint per Don'ts §13. */
.apt-panel__view-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--warm-grey);
  align-self: start;
  justify-self: start;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.apt-panel__media:hover ~ .apt-panel__view-link,
.apt-panel__view-link:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

/* Info side */
.apt-panel__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.apt-panel__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}

.apt-panel__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.apt-panel__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--warm-grey);
  margin: 0;
}

.apt-panel__signature {
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--clay);
  margin: 0.5rem 0;
}

/* Specs — magazine label / value rows, Clay hairline rhythm */
.apt-specs {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.apt-spec {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.apt-spec strong {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.apt-spec span {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Price row — Cormorant italic */
.apt-spec--price span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--ink);
}

.apt-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE — focused refinements for narrow viewports.
   The defaults are mobile-first; this block tightens the details that
   matter most on phones: tap-target hygiene, breathing room, alignment.
   ────────────────────────────────────────────────────────────────────── */

/* Tablet & phone (under desktop grid breakpoint) */
@media (max-width: 899px) {
  /* Hero — keep the cream panel sitting close under the video on phones,
     so the eyebrow + headline land just below the fold rather than below
     a long blank cream block. */
  .hero {
    min-height: auto;
  }
  .hero__media {
    min-height: 56vh;
    min-height: 56svh;
  }
  .hero__panel {
    padding-top: clamp(2.25rem, 7vw, 3rem);
    padding-bottom: clamp(2.5rem, 7vw, 3.5rem);
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero__actions .btn {
    width: 100%;
  }

  /* Intro paragraph — restore some breathing room above when it sits
     right below the hero on phones. */
  .intro {
    padding-top: clamp(3rem, 7vw, 4rem);
  }

  /* Apartments — stack the spec rows on phones so labels don't crowd
     against narrow value columns. */
  .apt-spec {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.85rem 0;
  }

  /* Pull-quotes — read consistently left-to-right on mobile.
     The right-aligned variant feels off-rhythm at narrow widths. */
  .pullquote--right {
    margin-left: 0;
    text-align: left;
  }
  .pullquote--right .pullquote__by {
    justify-content: flex-start;
  }
  .pullquote--right .pullquote__signature {
    order: 0;
  }
  .pullquote--right .pullquote__source {
    order: 0;
  }

  /* Episodes — single column on phones (already grid-driven), with the
     video first and copy below. Tighten the gap so each episode reads
     as one composition. */
  .episode {
    gap: 1.5rem;
  }
  .episode__copy {
    max-width: 100%;
  }

  /* Life features rail — tighten card width on small phones. */
  .feature {
    flex-basis: min(78vw, 240px);
  }

  /* Contact — stack with the form first under the editorial copy. */
  .contact__info {
    max-width: 100%;
  }
  .contact__form-wrap {
    width: 100%;
  }
}

/* Phone-only refinements (≤ 640px) */
@media (max-width: 640px) {
  /* Site container padding — bring inner content closer to edge for
     real estate, but not so close it feels cramped. */
  .section {
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
  }
  .locale {
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
  }
  .hero__panel {
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
  }

  /* Site header — denser logo + nav-toggle on small phones. */
  .site-header {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }

  /* Quick enquire modal — give the panel breathing room around safe-area. */
  .modal {
    padding: 1rem;
    align-items: flex-end;
  }
  .modal__panel {
    padding: 2.5rem 1.25rem 1.75rem;
    max-height: calc(100svh - 1rem);
    overflow-y: auto;
  }

  /* Pull-quote text — slightly tighter on phones so it lands as a single
     editorial breath rather than a wall of italic. */
  .pullquote__text {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.32;
  }

  /* Episode quote — same treatment, prevent over-large display copy. */
  .episode__quote {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  }

  /* Floating contact — keep clear of the iOS home indicator. */
  .float-contact {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  /* Footer — softer vertical rhythm on phones. */
  .site-footer {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
  .site-footer__logo {
    height: 1.85rem;
  }
}

/* Very small phones (≤ 380px) — final guard rail */
@media (max-width: 380px) {
  /* Tame the hero headline so it doesn't break across 3+ lines on the
     narrowest devices. */
  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }
  .hero__lede {
    font-size: 1rem;
  }
  /* Section titles drop one notch */
  .section__title {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }
}
