/* SAKVIRE — one-pager v3 · rotating hero + standard sections */

@font-face {
  font-family: "Mersad";
  src: url("fonts/mersad-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Mersad";
  src: url("fonts/mersad-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mersad";
  src: url("fonts/mersad-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "FiraGO";
  src: url("fonts/firago-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "FiraGO";
  src: url("fonts/firago-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #f3ece0;
  --ink: #241f1b;
  --night: #0c0b09;
  --pine: #2b4436;
  --terracotta: #c8563c;
  --gold: #c8a96e;
  --page-bg: #14130f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  transition: background 1.2s ease;
  color: var(--cream);
  font-family: "FiraGO", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- site header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  transition:
    background 0.5s ease,
    backdrop-filter 0.5s ease;
}
.site-head.scrolled {
  background: rgba(12, 11, 9, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-word {
  width: clamp(140px, 12vw, 180px);
  height: auto;
  display: block;
  /* terracotta wordmark lifted to cream for dark scenes */
  filter: brightness(0) saturate(100%) invert(94%) sepia(9%) saturate(430%)
    hue-rotate(357deg) brightness(103%);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}
.site-nav a {
  font-family: "Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.78);
  text-decoration: none;
  transition: color 0.25s;
}
.site-nav a:hover {
  color: var(--gold);
}
.site-nav a.cta {
  color: var(--night);
  background: var(--gold);
  padding: 0.55em 1.1em;
  border-radius: 999px;
}
.site-nav a.cta:hover {
  background: var(--cream);
  color: var(--night);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
}
.hero-films video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
  background: #000;
}
.hero-films video.active {
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(8, 7, 5, 0.82) 0%,
    rgba(8, 7, 5, 0.28) 38%,
    rgba(8, 7, 5, 0.12) 70%,
    rgba(8, 7, 5, 0.35) 100%
  );
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(1.4rem, 6vw, 6rem);
  right: clamp(1.4rem, 6vw, 6rem);
  bottom: clamp(6rem, 16svh, 10rem);
  max-width: 56rem;
}
.hero-copy h1 {
  font-family: "Mersad", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.03;
  color: var(--cream);
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(243, 236, 224, 0.82);
  max-width: 36rem;
}
.hero-cta {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: "Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--night);
  background: var(--gold);
  padding: 0.9em 1.7em;
  border-radius: 999px;
  transition: background 0.25s;
}
.hero-cta:hover {
  background: var(--cream);
}
.hero-tabs {
  position: absolute;
  z-index: 1;
  left: clamp(1.4rem, 6vw, 6rem);
  bottom: clamp(1.6rem, 5svh, 3rem);
  display: flex;
  gap: 1.6rem;
}
.hero-tabs button {
  appearance: none;
  background: none;
  border: none;
  padding: 0.4em 0;
  font-family: "Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.hero-tabs button:hover {
  color: var(--cream);
}
.hero-tabs button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- generic scene / reveal ---------- */

.scene {
  position: relative;
}
.cap,
.page-inner {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s ease 0.12s,
    transform 1s ease 0.12s;
}
.scene.inview .cap,
.scene.inview .page-inner {
  opacity: 1;
  transform: none;
}

.eyebrow {
  font-family: "Plex Mono", monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}

/* ---------- functional pages ---------- */

.scene.page {
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 12svh, 9rem) 0;
}
.scene.page.dark {
  color: var(--cream);
}
.scene.page.dark .eyebrow {
  color: var(--gold);
}
.page-inner {
  width: min(72rem, 92vw);
}
.page-title {
  font-family: "Mersad", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.page-lead {
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(36, 31, 27, 0.78);
}
.scene.page.dark .page-lead {
  color: rgba(243, 236, 224, 0.78);
}
.page-lead.centered {
  margin-inline: auto;
}

.thesis {
  text-align: center;
}
.statement {
  font-family: "Mersad", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.statement.dark {
  color: var(--ink);
}

/* ---------- land ---------- */

.survey-figure {
  margin: 2.6rem 0 0;
}

/* live plate: animated video + registered SVG survey on top */
.survey-live {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #1c2416;
  box-shadow: 0 30px 80px -30px rgba(36, 31, 27, 0.45);
}
.survey-live video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.survey-overlay-host,
.survey-overlay-host svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.survey-breath {
  animation: surveyBreath 9s ease-in-out infinite;
}
@keyframes surveyBreath {
  0%,
  100% {
    opacity: 0.76;
  }
  50% {
    opacity: 0.84;
  }
}
.plot {
  cursor: pointer;
  transition:
    fill 0.35s ease,
    stroke 0.35s ease,
    filter 0.35s ease;
}
.plot:hover {
  fill: #c8563c;
  filter: drop-shadow(0 0 6px rgba(200, 86, 60, 0.9))
    drop-shadow(0 0 16px rgba(200, 86, 60, 0.5));
}
.survey-figure figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(36, 31, 27, 0.6);
}
.survey-figure .soon {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: "Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.facts {
  list-style: none;
  padding: 0;
  margin: 2.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.facts.wide {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}
.facts.stack {
  grid-template-columns: 1fr;
  margin: 0 0 1.8rem;
  gap: 1.1rem;
}
.facts li {
  border-top: 2px solid var(--terracotta);
  padding-top: 0.9rem;
}
.scene.page.dark .facts li {
  border-top-color: var(--gold);
}
.facts strong {
  display: block;
  font-family: "Mersad", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.facts span {
  font-size: 0.9rem;
  color: rgba(36, 31, 27, 0.65);
}
.scene.page.dark .facts span {
  color: rgba(243, 236, 224, 0.65);
}

/* ---------- life rows ---------- */

.row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 7svh, 5.5rem);
}
.row.flip {
  grid-template-columns: 1fr 1.15fr;
}
.row.flip .row-media {
  order: 2;
}
.row-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(36, 31, 27, 0.45);
  background: #000;
}
.row-text h3 {
  font-family: "Mersad", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.row-text p:not(.eyebrow) {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: rgba(36, 31, 27, 0.75);
  max-width: 30rem;
}
.scene.page.dark .row-text p:not(.eyebrow) {
  color: rgba(243, 236, 224, 0.75);
}
.scene.page.dark .row-media video {
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}
.row-text .eyebrow {
  margin-bottom: 0.7rem;
}

/* ---------- one-day widget ---------- */

.day-widget {
  margin-top: 2.4rem;
}
.day-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.8);
}
.day-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.day-frame video.active {
  opacity: 1;
}
.day-times {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.day-times button {
  appearance: none;
  background: none;
  border: none;
  border-top: 2px solid rgba(243, 236, 224, 0.18);
  padding: 0.8rem 0.2rem 0.2rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s;
}
.day-times button strong {
  display: block;
  font-family: "Plex Mono", monospace;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.12em;
  color: rgba(243, 236, 224, 0.6);
  transition: color 0.3s;
}
.day-times button span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(243, 236, 224, 0.45);
}
.day-times button:hover strong {
  color: var(--cream);
}
.day-times button.active {
  border-top-color: var(--gold);
}
.day-times button.active strong {
  color: var(--gold);
}

/* ---------- vision ---------- */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.vision-card {
  margin: 0;
}
.vision-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 60px -26px rgba(36, 31, 27, 0.45);
  background: #000;
}
.vision-card h3 {
  font-family: "Mersad", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1rem 0 0.4rem;
}
.vision-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(36, 31, 27, 0.7);
}

/* ---------- amenities ---------- */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.amenity {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.amenity img,
.amenity video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: #000;
}
.amenity:hover img,
.amenity:hover video {
  transform: scale(1.045);
}
.amenity::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 7, 5, 0.65),
    rgba(8, 7, 5, 0) 55%
  );
}
.amenity figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.85rem;
  font-family: "Mersad", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
}
.amenity-more {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(36, 31, 27, 0.6);
  max-width: 46rem;
}

/* ---------- films reel ---------- */

.wide-inner {
  width: min(84rem, 94vw);
}
.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(430px, 74vw);
  gap: 1.1rem;
  margin-top: 2.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 169, 110, 0.4) transparent;
}
.reel::-webkit-scrollbar {
  height: 6px;
}
.reel::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 110, 0.35);
  border-radius: 3px;
}
.reel-card {
  margin: 0;
  scroll-snap-align: start;
}
.reel-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.8);
}
.reel-card figcaption {
  margin-top: 0.7rem;
  font-family: "Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.55);
}
.reel-hint {
  margin-top: 0.6rem;
  font-family: "Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
}

/* ---------- closer / visit ---------- */

.scene.film {
  isolation: isolate;
  min-height: 100svh;
  display: grid;
}
.scene.film > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: #000;
}
.scene.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 7, 5, 0.85) 0%,
    rgba(8, 7, 5, 0.45) 45%,
    rgba(8, 7, 5, 0.15) 100%
  );
  pointer-events: none;
}
.cap {
  position: absolute;
  z-index: 1;
  left: clamp(1.4rem, 6vw, 6rem);
  right: clamp(1.4rem, 6vw, 6rem);
  bottom: clamp(2.2rem, 7svh, 5.5rem);
}
.closer-cap {
  left: 0;
  right: 0;
  bottom: 50%;
  transform: translateY(50%) !important;
  text-align: center;
}
.brandmark {
  width: clamp(200px, 26vw, 360px);
  height: auto;
  display: inline-block;
}
.closer-mark {
  width: clamp(180px, 20vw, 300px);
  filter: drop-shadow(0 10px 40px rgba(8, 7, 5, 0.55));
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pillars {
  margin-top: 2rem;
  font-family: "Plex Mono", monospace;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  letter-spacing: 0.5em;
  color: var(--cream);
}
.tagline {
  margin-top: 1.4rem;
  font-family: "Plex Mono", monospace;
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  letter-spacing: 0.18em;
  color: var(--gold);
}
.contact {
  margin-top: 2rem;
  font-family: "Plex Mono", monospace;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  letter-spacing: 0.1em;
}
.contact a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.5);
  transition: color 0.25s;
}
.contact a:hover {
  color: var(--gold);
}
.fine {
  margin-top: 4rem;
  font-family: "Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(243, 236, 224, 0.45);
}
.fine .ka {
  color: var(--gold);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-nav a:not(.cta) {
    display: none;
  }
  .row,
  .row.flip {
    grid-template-columns: 1fr;
  }
  .row.flip .row-media {
    order: 0;
  }
  .facts,
  .facts.wide {
    grid-template-columns: 1fr 1fr;
  }
  .amenity-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }
  .day-times {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-tabs {
    gap: 1rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cap,
  .page-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-films video,
  .day-frame video {
    transition: none;
  }
  .survey-breath {
    animation: none;
  }
}
