/* ============================================================
   Skyline — Above the Fog · property showcase
   Built on BayBuild tokens (tokens.css). Adds an editorial
   serif display face for a refined, high-end real-estate feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- Type primitives ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}
.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.04;
}
.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 246, 243, 0.86);
  -webkit-backdrop-filter: saturate(1.1);
  backdrop-filter: saturate(1.1);
  padding-block: 14px;
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color 0.3s; }
.nav.scrolled .brand { color: var(--color-text-primary); }
.brand b {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 6px;
  padding-left: 2px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: var(--fs-13);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}
.nav.scrolled .nav-links a { color: var(--color-text-secondary); }
.nav-links a:hover { color: var(--color-accent); }
.nav-links a.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  color: #fff;
}
.nav.scrolled .nav-links a.nav-cta { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.nav-links a.nav-cta:hover { background: var(--color-accent); border-color: var(--color-accent); color: #1E2430; }
.nav-burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: var(--color-accent); color: #1E2430; }
.btn-gold:hover { background: var(--color-accent-hover); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--color-text-primary); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--color-text-primary); border-color: var(--color-border-strong); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f1218;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-ridge.png') center 38% / cover no-repeat;
  transform: scale(1.06);
  animation: kenburns 28s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.12) translateY(1.5%); }
  to   { transform: scale(1.0) translateY(0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,18,24,0.26) 0%, rgba(15,18,24,0) 24%),
    linear-gradient(0deg, rgba(10,13,18,0.72) 0%, rgba(10,13,18,0.5) 24%, rgba(15,18,24,0.14) 54%, rgba(15,18,24,0) 76%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(170px, calc(16vh + 50px), 230px);
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: var(--fs-12);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--color-accent);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 22ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero h1 .keep-line { white-space: nowrap; }
.hero h1 em { font-style: italic; color: var(--color-brand-gold-tint); }
.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  max-width: 46ch;
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: rgba(255,255,255,0.7);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
}
.scroll-hint i {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: scrolldrop 2.2s var(--ease-out) infinite;
}
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.band { padding-block: clamp(72px, 11vh, 132px); }
.band-dark { background: var(--color-dark-bg); color: #fff; }

.sec-head { max-width: 760px; }
.sec-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.band-dark .eyebrow { color: var(--color-accent); }
.sec-head p { margin: 22px 0 0; }

/* ============================================================
   FILM (cinematic dark)
   ============================================================ */
.film-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.film-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.film-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.film-stage:hover .poster { transform: scale(1.04); }
.film-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,24,0.1), rgba(15,18,24,0.5)); }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 2;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.film-stage:hover .play { transform: scale(1.08); background: var(--color-accent); border-color: var(--color-accent); }
.play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.film-stage:hover .play svg { color: #1E2430; }
.film-tag { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.film-tag b { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.film-copy h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; margin: 16px 0 0; }
.film-copy p { color: rgba(255,255,255,0.72); line-height: 1.65; margin: 20px 0 28px; font-size: var(--fs-16); }

/* ============================================================
   GALLERIES
   ============================================================ */
.gal-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.gal { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.gal.big { grid-column: span 7; }
.gal.tall { grid-column: span 5; }
.gal.half { grid-column: span 6; }
.gal-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gal:hover .gal-img { transform: scale(1.04); }
.gal.big .gal-img, .gal.tall .gal-img { aspect-ratio: 16/11; }
.gal.half .gal-img { aspect-ratio: 16/9; }
.gal-cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(15,18,24,0.78) 8%, rgba(15,18,24,0) 100%);
  color: #fff;
  pointer-events: none;
}
.gal-cap h4 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; margin: 0; line-height: 1.1; }

/* ============================================================
   INQUIRY
   ============================================================ */
.inq { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.inq-copy h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.04; margin: 18px 0 0; }
.inq-copy p { color: rgba(255,255,255,0.7); line-height: 1.65; margin: 22px 0 0; font-size: var(--fs-16); }
.inq-meta { margin-top: 34px; display: grid; gap: 16px; }
.inq-meta a, .inq-meta div { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,0.9); font-size: var(--fs-15); }
.inq-meta svg { width: 18px; height: 18px; color: var(--color-accent); }
.form {
  background: var(--color-dark-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: var(--fs-12); letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.34); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.form .btn-gold { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: var(--fs-12); color: rgba(255,255,255,0.45); text-align: center; margin: 14px 0 0; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .ck { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .ck svg { width: 28px; height: 28px; color: #1E2430; }
.form-success h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 8px; color: #fff; }
.form-success p { color: rgba(255,255,255,0.7); margin: 0; font-size: var(--fs-14); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: #0a0d12; color: rgba(255,255,255,0.6); padding-block: 60px 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot .brand { color: #fff; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-nav a { font-size: var(--fs-13); color: rgba(255,255,255,0.7); }
.foot-nav a:hover { color: var(--color-accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: var(--fs-12); color: rgba(255,255,255,0.4); line-height: 1.6; }
.foot-bottom p { margin: 0; max-width: 62ch; }

/* ============================================================
   MODAL (film)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--color-overlay); }
.modal.open { display: flex; }
.modal-box { width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: var(--radius-xl); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-box video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.modal-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,0.7); padding: 30px; }
.modal-empty .eyebrow { color: var(--color-accent); }
.modal-empty p { margin: 12px 0 0; font-size: var(--fs-14); max-width: 38ch; }
.modal-close { position: absolute; top: -46px; right: 0; background: none; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: var(--fs-13); }
.modal-close svg { width: 18px; height: 18px; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav {
    padding: 16px var(--gutter);
  }
  .nav.scrolled {
    padding-block: 12px;
  }
  .nav.scrolled .nav-burger svg line {
    stroke: var(--color-text-primary);
  }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-bg {
    background-position: center 42%;
  }
  .hero-inner {
    padding-bottom: clamp(108px, 18vh, 152px);
  }
  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }
  .band {
    padding-block: clamp(58px, 9vh, 92px);
  }
  .film-wrap { grid-template-columns: 1fr; }
  .film-stage {
    aspect-ratio: 16 / 9;
  }
  .inq { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root {
    --gutter: clamp(18px, 5vw, 28px);
  }
  .brand b {
    font-size: 1.22rem;
    letter-spacing: 0.04em;
  }
  .btn {
    min-height: 48px;
    padding: 13px 20px;
  }
  .hero {
    min-height: 92svh;
  }
  .hero-bg {
    background-position: 56% 42%;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(15,18,24,0.3) 0%, rgba(15,18,24,0) 22%),
      linear-gradient(0deg, rgba(10,13,18,0.8) 0%, rgba(10,13,18,0.6) 30%, rgba(15,18,24,0.2) 60%, rgba(15,18,24,0) 82%);
  }
  .hero-inner {
    padding-bottom: 96px;
  }
  .hero-eyebrow {
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    line-height: 1.45;
  }
  .hero-eyebrow::before {
    width: 24px;
    margin-top: 0.72em;
  }
  .hero h1 {
    font-size: clamp(2.12rem, 9.4vw, 3rem);
    line-height: 1.02;
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 34ch;
  }
  .scroll-hint {
    display: none;
  }
  .gal.big, .gal.tall, .gal.half { grid-column: span 12; }
  .gal-grid {
    gap: 12px;
    margin-top: 30px;
  }
  .gal-cap {
    padding: 18px;
  }
  .gal-cap h4 {
    font-size: 1.25rem;
  }
  .sec-head h2,
  .film-copy h2,
  .inq-copy h2 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .lede,
  .film-copy p,
  .inq-copy p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .play {
    width: 64px;
    height: 64px;
  }
  .play svg {
    width: 24px;
    height: 24px;
  }
  .film-tag {
    left: 14px;
    bottom: 13px;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }
  .inq-meta {
    margin-top: 24px;
    gap: 13px;
  }
  .inq-meta a,
  .inq-meta div {
    align-items: flex-start;
    font-size: var(--fs-14);
    line-height: 1.45;
  }
  .form {
    padding: 24px;
  }
  .form .row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .foot {
    padding-block: 42px 30px;
  }
  .foot-top {
    gap: 26px;
    padding-bottom: 28px;
  }
  .foot-nav {
    gap: 18px;
  }
  .modal {
    padding: 16px;
  }
  .modal-box {
    width: 100%;
    border-radius: var(--radius-lg);
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.35rem);
  }
  .hero-sub {
    max-width: 30ch;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .form {
    padding: 20px;
  }
}
@media (hover: none) {
  .film-stage:hover .poster,
  .gal:hover .gal-img {
    transform: none;
  }
  .film-stage:hover .play {
    transform: none;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.55);
  }
  .film-stage:hover .play svg {
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1); }
  .scroll-hint i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
