/* ─── Can Angulo — design system (from the presentation) ─── */
:root {
  --cream: #f1ece1;
  --cream-deep: #e9e2d3;
  --ink: #38302a;
  --ink-soft: #5c5248;
  --terracotta: #a5683f;
  --white: #fdfcf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: 0.01em; }
p { color: var(--ink-soft); max-width: 34em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow--light { color: rgba(255,255,255,0.92); }
.rule { border: 0; border-top: 1px solid var(--terracotta); width: 3.2rem; margin: 1.8rem 0; opacity: 0.7; }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.4rem;
  transform: translateY(-100%); transition: transform 0.45s ease, background 0.3s;
  background: rgba(241,236,225,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56,48,42,0.08);
}
.nav.is-visible { transform: translateY(0); }
.nav__brand { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; transition: color 0.2s;
}
.nav__links a:hover { color: var(--terracotta); }
.nav__cta { border: 1px solid var(--terracotta); color: var(--terracotta) !important; padding: 0.55em 1.4em; }
.nav__cta:hover { background: var(--terracotta); color: var(--cream) !important; }
.nav__burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--ink); text-decoration: none; }

/* ─── Hero ─── */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.28) 0%, rgba(20,16,12,0.05) 35%, rgba(20,16,12,0.38) 100%);
}
.hero__topbar {
  position: absolute; z-index: 2; top: 2.2rem; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 3rem;
}
.hero__content {
  position: absolute; z-index: 2; left: 3rem; bottom: 4rem; color: var(--white);
}
.hero__rule { display: block; width: 2.6rem; border-top: 1px solid rgba(255,255,255,0.7); margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(4rem, 11vw, 9.5rem); font-weight: 400; color: var(--white);
  letter-spacing: 0.015em; margin: 0 0 0.4rem -0.05em; line-height: 1;
}
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: rgba(255,255,255,0.95); margin-bottom: 1.6rem; }
.hero__scroll {
  position: absolute; z-index: 2; right: 3rem; bottom: 4rem; width: 1px; height: 72px;
  overflow: hidden;
}
.hero__scroll span {
  display: block; width: 1px; height: 100%; background: rgba(255,255,255,0.75);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop { 0% { transform: translateY(-100%);} 55% { transform: translateY(0);} 100% { transform: translateY(100%);} }

/* ─── Split sections ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--stack { display: grid; grid-template-rows: 1fr 1fr; }
.split__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vw, 8rem);
}
.split__text .eyebrow { margin-bottom: 1.6rem; }
.split--reverse .split__text { order: -1; }

.facts { margin-top: 2.6rem; }
.facts > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; border-top: 1px solid rgba(56,48,42,0.14);
}
.facts dt { font-family: var(--serif); font-size: 1.7rem; color: var(--terracotta); }
.facts dd { color: var(--ink-soft); }

.lines { list-style: none; margin-top: 2.4rem; }
.lines li { padding: 1.1rem 0; border-bottom: 1px solid rgba(56,48,42,0.14); color: var(--ink-soft); }
.lines li:first-child { border-top: 1px solid rgba(56,48,42,0.14); }

/* ─── Full-bleed ─── */
.bleed { position: relative; min-height: 96vh; overflow: hidden; display: flex; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.18), rgba(20,16,12,0.42));
}
.bleed__overlay { position: relative; z-index: 2; color: var(--white); align-self: flex-end; padding: clamp(2.5rem, 6vw, 6rem); max-width: 620px; }
.bleed__overlay h2 { color: var(--white); margin: 1.2rem 0 1.4rem; }
.bleed__overlay p { color: rgba(255,255,255,0.92); }
.bleed__overlay--top { align-self: flex-start; padding-top: clamp(4rem, 9vw, 8rem); }
.bleed__overlay--center {
  align-self: center; margin: 0 auto; text-align: center; max-width: 760px;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.bleed__note {
  position: absolute; z-index: 2; right: clamp(2rem, 5vw, 5rem); bottom: 3rem;
  color: rgba(255,255,255,0.92); max-width: 240px; font-size: 0.95rem; text-align: right;
}
.bleed--tall { min-height: 100vh; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.2rem; max-width: none; }
.features p {
  color: rgba(255,255,255,0.92); font-size: 0.95rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.45);
}
#outdoors .bleed__overlay { max-width: 1100px; width: 100%; margin: 0 auto; }

.btn {
  display: inline-block; margin-top: 2rem; padding: 0.95em 2.6em;
  border: 1px solid rgba(255,255,255,0.85); color: var(--white);
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--white); color: var(--ink); }
.bleed__sign { margin-top: 3.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bleed__sign em { font-family: var(--serif); font-size: 1.9rem; }

/* ─── Chapter dividers ─── */
.chapter { position: relative; height: 96vh; min-height: 560px; overflow: hidden; }
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0.1), rgba(20,16,12,0.45)); }
.chapter__overlay { position: absolute; z-index: 2; left: clamp(2.5rem, 6vw, 6rem); bottom: 4.5rem; color: var(--white); }
.chapter__overlay h2 { font-size: clamp(3rem, 7vw, 5.6rem); color: var(--white); margin-top: 1rem; }
.chapter__overlay p { color: rgba(255,255,255,0.92); margin-top: 1.2rem; }
.chapter__overlay p em { font-family: var(--serif); font-size: 1.3em; }
.chapter__overlay--right { left: auto; right: clamp(2.5rem, 6vw, 6rem); text-align: right; }
.chapter__overlay--right p { margin-left: auto; }

/* ─── Collages ─── */
.collage { padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem); }
.collage__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.collage__head h2 { margin-top: 1rem; }
.collage__head p { text-align: right; max-width: 24em; }
.collage__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.2rem;
  height: min(78vh, 760px);
}
.collage__grid figure { position: relative; overflow: hidden; }
.collage__grid img { width: 100%; height: 100%; object-fit: cover; }
.collage__main { grid-row: span 2; }
.tag {
  position: absolute; left: 1.3rem; bottom: 1.1rem; color: var(--white);
  font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trio figure { overflow: hidden; aspect-ratio: 3/3.6; }
.trio img, .duo img { width: 100%; height: 100%; object-fit: cover; }
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.duo figure { overflow: hidden; aspect-ratio: 4/3.1; }

/* ─── Gallery ─── */
.gallery { padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem); background: var(--cream-deep); }
.gallery__head { text-align: center; margin-bottom: 2.6rem; }
.gallery__head h2 { margin-top: 1rem; }
.gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin-bottom: 2.8rem; }
.gallery__filters button {
  background: none; border: 0; cursor: pointer; padding: 0.4em 0.2em;
  font-family: var(--sans); font-weight: 300; font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.gallery__filters button:hover { color: var(--terracotta); }
.gallery__filters button.is-active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.gallery__grid { columns: 3; column-gap: 1rem; }
.gallery__grid a { display: block; margin-bottom: 1rem; break-inside: avoid; overflow: hidden; }
.gallery__grid img { width: 100%; transition: transform 0.6s ease, opacity 0.4s; opacity: 0.98; }
.gallery__grid a:hover img { transform: scale(1.03); }
.gallery__more {
  display: block; margin: 2.6rem auto 0; padding: 0.95em 2.8em; cursor: pointer;
  background: none; border: 1px solid var(--terracotta); color: var(--terracotta);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.gallery__more:hover { background: var(--terracotta); color: var(--cream); }

/* ─── Location ─── */
.location { padding: clamp(5rem, 11vw, 10rem) clamp(1.5rem, 6vw, 7rem); }
.location h2 { margin-top: 1.2rem; }
.location__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.location__stats > div { border-left: 1px solid rgba(56,48,42,0.18); padding-left: 1.8rem; }
.location__stats strong { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; color: var(--terracotta); display: block; margin-bottom: 0.4rem; }
.location__stats p { font-size: 0.95rem; }

/* ─── Footer ─── */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 2.2rem clamp(1.5rem, 5vw, 5rem); border-top: 1px solid rgba(56,48,42,0.1);
  font-size: 0.85rem; color: var(--ink-soft);
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(24,20,16,0.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: rgba(255,255,255,0.85);
  cursor: pointer; font-family: var(--serif); transition: color 0.2s;
}
.lightbox button:hover { color: #fff; }
.lightbox__close { top: 1.4rem; right: 2rem; font-size: 2.6rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 0 1.4rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }
.lightbox__count {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.72rem; letter-spacing: 0.3em;
}

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav__burger span { width: 26px; height: 1px; background: var(--ink); }
  .split, .split--reverse { grid-template-columns: 1fr; min-height: 0; }
  .split--reverse .split__text { order: 0; }
  .split__media { height: 60vh; }
  .split__media--stack { height: 90vh; }
  .collage__grid { display: flex; flex-direction: column; height: auto; }
  .collage__grid figure { height: 52vh; }
  .collage__head p { text-align: left; }
  .trio { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .location__stats { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; }
  .hero__topbar { padding: 0 1.5rem; }
  .hero__content { left: 1.5rem; right: 1.5rem; bottom: 3rem; }
  .hero__scroll { display: none; }
  .bleed__note { display: none; }
}
@media (max-width: 540px) { .gallery__grid { columns: 1; } }
