/* Utopia Std — self-hosted. Upright serif uses Regular; italic serif uses
   the Semibold Display Italic cut. */
@font-face {
  font-family: "Utopia Std";
  src: url("../assets/fonts/UtopiaStd-Regular.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Utopia Std";
  src: url("../assets/fonts/UtopiaStd-SemiboldDisplayItalic.otf") format("opentype");
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #080808;
  --surface: #161616;
  --ink: #f3efe7;
  --muted: #a9a9a9;
  --line: #262626;
  --accent: #efe6c4;
  --serif: "Utopia Std", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.97);
  padding: 14px 32px;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
/* When over the hero (not scrolled), make header text white */
.site-header:not(.scrolled).over-hero,
.site-header:not(.scrolled).over-hero a { color: #fff; }
.site-header:not(.scrolled).over-hero .brand small { color: rgba(255,255,255,0.8); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  /* Buttons don't inherit color by default; force it so the icon matches
     the logo/tab colour (white over the hero, cream when scrolled, dark on
     the Design page) instead of falling back to system black. */
  color: inherit;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
body.nav-open .nav-toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.84);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero img.hero-bg {
  animation: slowzoom 18s var(--ease) forwards;
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 34px;
}
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 38px;
  margin: 10px auto 0;
  background: #fff;
  animation: cue 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 1px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  /* <button> elements don't inherit color by default — force it so button
     .btns match link .btns instead of falling back to system black. */
  color: inherit;
}
.btn:hover { background: var(--accent); color: #080808; border-color: var(--accent); }
.btn-dark { border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); color: #080808; border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 0;
}

/* ---------- Collections grid ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--line);
}
.collection-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card .label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 18px 40px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0) 78%
  );
  text-align: center;
}
.collection-card .label h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  font-size: 1.9rem;
  margin: 0;
}
.collection-card .label span {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---------- About teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.about-teaser img { width: 100%; height: auto; display: block; }
.about-teaser h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 0 0 20px;
}
.about-teaser p { color: var(--muted); margin: 0 0 18px; max-width: 46ch; }

/* About carousel — js/main.js sizes the frame per slide: portraits share one
   uniform shape (and render smaller), the landscape stays true to its ratio. */
.about-carousel-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.about-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--line);
  transition: width 0.45s var(--ease), height 0.45s var(--ease);
}
.about-carousel .ac-track {
  position: absolute;
  inset: 0;
  display: flex;
  cursor: pointer;
  transition: transform 0.55s var(--ease);
}
.about-carousel .ac-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
}
.about-carousel .ac-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover; /* frame matches each photo's ratio, so no actual crop */
  display: block;
}
.about-carousel .ac-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(12, 11, 10, 0.42);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.about-carousel:hover .ac-btn { opacity: 1; }
.about-carousel .ac-btn:hover { background: rgba(12, 11, 10, 0.7); }
.about-carousel .ac-prev { left: 10px; }
.about-carousel .ac-next { right: 10px; }
.about-carousel .ac-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.about-carousel .ac-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.about-carousel .ac-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Masonry gallery ---------- */
.gallery-intro { text-align: center; padding: 130px 0 24px; }
.gallery-intro .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
.gallery-intro h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  color: var(--accent);
  font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 12px 0 8px;
}
.gallery-intro p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.masonry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 40px;
}
.masonry .gallery-row {
  display: flex;
  gap: 12px;
}
.masonry figure {
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  flex: 0 0 auto;
}
.masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
  opacity: 0;
}
.masonry img.loaded { opacity: 1; }
.masonry figure:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 11, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img,
.lightbox video.lb-video {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox video.lb-video[hidden] { display: none; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.25s var(--ease);
  padding: 16px;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: 0.7;
  font-size: 0.72rem; letter-spacing: 0.2em;
}

/* ---------- Forms ---------- */
.form-wrap { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  text-align: center;
  font-size: 0.9rem;
  margin: 18px 0 0;
  min-height: 1.2em;
}
.form-status.is-success { color: #3f7d52; }
.form-status.is-error { color: #b4453a; }
button[disabled] { opacity: 0.6; cursor: progress !important; }

/* ---------- Booking embed ---------- */
.booking-embed {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- Generic prose ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--muted); margin: 0 0 20px; }
.lead { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}
.site-footer .brand { font-size: 1.7rem; margin-bottom: 14px; font-style: italic; color: var(--accent); }
.site-footer .social { display: flex; gap: 26px; justify-content: center; margin: 18px 0; }
.site-footer .social a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.site-footer .social a:hover { color: var(--ink); }
.site-footer .copy { font-size: 0.72rem; color: var(--muted); margin-top: 18px; letter-spacing: 0.08em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .collections { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; gap: 32px; }
  /* Stacked view: center the picture, and center the text block as a column
     while keeping the text itself left-aligned. */
  .about-carousel-wrap { justify-content: center; }
  .about-teaser > :last-child { text-align: left; max-width: 52ch; margin-inline: auto; }
}
/* Collapse the nav into a hamburger as soon as the full row can't fit.
   The hamburger lines use currentColor, so they always match the tab
   colour of the page they're on. The open menu is a contained dropdown
   panel under the header bar — not a full-screen takeover. */
@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 60; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 10px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 14px 32px;
    text-align: center;
    font-size: 0.95rem;
  }
  .nav a::after { display: none; }
  /* Solidify the header bar so the bar + dropdown read as one panel. */
  body.nav-open .site-header { background: var(--bg); backdrop-filter: blur(10px); }
}
@media (max-width: 640px) {
  .site-header { padding: 16px 20px; }
  .collections { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}
