/* Utility: html.js gating note — never hide content in CSS alone; initial hidden states for animations are applied by JS only. Include .no-anim fallback making everything visible. */
.no-anim * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  /* JS will toggle .no-anim on <html> to keep all content visible */
}
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--clr-gold);
  color: #000;
}

/* Type Scale & Variables */
:root {
  /* Colors */
  --clr-bg: #0B0B0C;
  --clr-gold: #C6A15B;
  --clr-text: #F3EFE7;
  --clr-muted: #A79E8E;
  --border-color: rgba(198,161,91,.25);

  /* Typography */
  --type-display: clamp(3rem,9vw,7.5rem);
  --type-heading: clamp(2rem,5vw,3.75rem);
  --type-body: 1rem;
  --type-caption: .875rem;

  /* Spacing */
  --space-xxs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Easing */
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
}

/* Base Typography */
h1 {
  font-family: 'Fraunces', serif;
  font-size: var(--type-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--clr-text);
  overflow: hidden;
}
.line {
  overflow: hidden;
  position: relative;
}
.line-inner {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  transition: transform .6s ease-out;
}

/* Gold Italic */
.gold-i {
  font-style: italic;
  color: var(--clr-gold);
}

/* Hero Copy */
.hero-copy {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--clr-text);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: 2rem;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cue-line {
  position: relative;
  width: 120px;
  height: 2px;
  background: var(--clr-gold);
  animation: pulse 2s ease-in-out infinite alternate;
}
@keyframes pulse {
  0% { opacity: .5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: .5; transform: scale(0.8); }
}

/* Text */
.text {
  color: var(--clr-text);
  font-size: 1rem;
}

/* Progress Bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--clr-gold);
  transform-origin: left;
  z-index: 9999;
  transition: transform .3s ease-out;
  transform: scaleX(0);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: backdrop-filter .3s ease, filter .3s ease;
  z-index: 1000;
  filter: blur(0);
}
.site-header.scrolled {
  backdrop-filter: blur(12px);
  filter: blur(8px) brightness(0.9);
}

/* Logo & Wordmark */
.site-header .logo img {
  height: 40px;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--clr-gold);
  letter-spacing: .1em;
  margin-left: .5rem;
}

/* Navigation Links */
.site-header .nav .nav-link {
  position: relative;
  padding: var(--space-sm) 1rem;
  color: var(--clr-text);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-header .nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--clr-gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.site-header .nav .nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-gold {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--clr-gold);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 2px;
  transition: background .3s ease;
}
.btn-gold:hover {
  background: #b5944c;
}
.btn-ghost {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 1px solid var(--clr-gold);
  color: var(--clr-text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 2px;
  transition: all .3s ease;
}
.btn-ghost:hover {
  background: var(--clr-gold);
  color: #000;
}

/* Header Lite Variant */
.site-header-lite {
  position: relative;
  backdrop-filter: none;
  background: transparent;
  filter: none;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--clr-gold);
  margin-bottom: .5rem;
}
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem,9vw,7.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--clr-text);
  overflow: hidden;
}
.line {
  overflow: hidden;
  position: relative;
}
.line-inner {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  transition: transform .6s ease-out;
}

/* Gold Italic (repeated for safety) */
.gold-i {
  font-style: italic;
  color: var(--clr-gold);
}

/* Hero Buttons (repeated) */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: 2rem;
}

/* Scroll Cue (repeated) */
.scroll-cue {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cue-line {
  position: relative;
  width: 120px;
  height: 2px;
  background: var(--clr-gold);
  animation: pulse 2s ease-in-out infinite alternate;
}

/* Text (repeated) */
.text {
  color: var(--clr-text);
  font-size: 1rem;
}

/* Standard Section */
#standard {
  padding: clamp(5rem,12vw,9rem) 0;
  text-align: center;
}
.standard-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem,5vw,3.75rem);
  color: var(--clr-gold);
  margin-bottom: 1rem;
}
.standard-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--clr-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* Scale Wrapper */
.scale-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Scale SVG */
.scale-svg {
  width: min(680px, 90vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Scale Beam */
.scale-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 320px 120px;
  transition: transform .6s cubic-bezier(0.4,0,0.2,1);
}

/* Pan Left */
.pan-l {
  position: absolute;
  top: 125px;
  left: 110px;
  transform-origin: 110px 125px;
  transition: transform .6s cubic-bezier(0.4,0,0.2,1);
}

/* Pan Right */
.pan-r {
  position: absolute;
  top: 125px;
  right: 110px;
  transform-origin: 530px 125px;
  transition: transform .6s cubic-bezier(0.4,0,0.2,1);
}

/* Columns */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Column */
.column {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}
.column > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Shell */
.section-shell {
  padding: clamp(5rem,12vw,9rem) 0;
  max-width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Data Reveal */
[data-reveal] {
  /* JS will handle animation; no CSS hiding */
}

#doors .door { border-top: 1px solid #C6A15B; margin-top: 3rem; }
#doors .door .index { font-family: 'Fraunces', serif; font-style: italic; color: #C6A15B; font-size: 1.5rem; }
#doors .door .title { font-family: 'Fraunces', serif; text-transform: uppercase; font-size: clamp(2.2rem,6vw,4.5rem); margin-top: .5rem; }
#doors .door .copy { color: #A79E8E; max-width: 45rem; line-height: 1.6; margin-top: 1rem; }
#doors .gold-rule { height: 2px; background: #C6A15B; width: 100%; margin: 0; transition: width 0.5s ease; }
#doors .title:hover .gold-rule { box-shadow: 0 0 8px #C6A15B; }
#doors .gold-rule:hover { box-shadow: 0 0 8px #C6A15B; }

#why .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
#why .grid .principle { border-top: 1px solid #A79E8E; padding-top: 2rem; }
#why .grid .principle h3 { font-family: 'Fraunces', serif; color: #C6A15B; margin-bottom: .5rem; }
#why .grid .principle p { color: #A79E8E; line-height: 1.6; }

#areas .areas-heading { font-family: 'Fraunces', serif; font-size: 2.5rem; color: #C6A15B; margin-bottom: 1rem; }
#areas .areas-sub { color: #A79E8E; margin-bottom: 2rem; }
#areas .states { display: flex; flex-wrap: wrap; gap: 1rem; }
#areas .state { display: inline-block; padding: .5rem 1rem; border: 1px solid #C6A15B; border-radius: 9999px; color: #C6A15B; font-family: 'Fraunces', serif; transition: background .3s, color .3s; }
#areas .state:hover { background: #0B0B0C; color: #C6A15B; }

#start #inquiry-form { max-width: 640px; margin: 0 auto; }
#start .field { margin-bottom: 1.5rem; }
#start .field label { display: block; font-size: .85rem; color: #A79E8E; text-transform: uppercase; margin-bottom: .5rem; }
#start .field input, #start .field textarea, #start .field select { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); background: #141416; color: #F3EFE7; font-family: 'Inter', sans-serif; }
#start .field input:focus, #start .field textarea:focus, #start .field select:focus { border-color: #C6A15B; box-shadow: 0 0 0 4px rgba(198,161,91,.2); outline: none; }
#start .consent { display: flex; align-items: center; margin-top: 1rem; }
#start .consent input { width: 20px; height: 20px; border: 2px solid #C6A15B; border-radius: 4px; margin-right: .5rem; }
#start .consent label { color: #A79E8E; font-size: .85rem; }
#start .consent a { color: #C6A15B; text-decoration: underline; }
#start #inquiry-form .btn-gold { width: 100%; }

#form-success { border: 2px solid #C6A15B; padding: 2rem; margin: 2rem 0; }
#form-success h2 { font-family: 'Fraunces', serif; font-size: 2rem; color: #C6A15B; margin-bottom: 1rem; }

#contact .contact-heading { font-family: 'Fraunces', serif; font-size: 2rem; color: #C6A15B; margin-bottom: 1rem; }
#contact .contact-phone { font-family: 'Fraunces', serif; font-size: clamp(2rem,6vw,4rem); color: #C6A15B; text-decoration: none; }
#contact .contact-phone:hover { text-decoration: underline; }
#contact .contact-email { color: #A79E8E; text-decoration: none; }
#contact .contact-email:hover { color: #C6A15B; text-decoration: underline; }

.site-footer { border-top: 1px solid #A79E8E; padding: 2rem 0; }
.site-footer .footer-logo img { height: 34px; vertical-align: middle; }
.site-footer .footer-logo .wordmark { font-family: 'Fraunces', serif; font-size: 1rem; color: #C6A15B; margin-left: .5rem; }
.site-footer .tagline { font-family: 'Fraunces', serif; font-style: italic; color: #C6A15B; margin: 1rem 0; }
.site-footer .footer-nav a { color: #A79E8E; text-decoration: none; transition: color .3s; }
.site-footer .footer-nav a:hover { color: #C6A15B; }
.site-footer .legal { font-size: .85rem; color: #A79E8E; line-height: 1.6; }

.legal-page main { max-width: 760px; margin: 0 auto; padding-top: 4rem; }
.legal-page h1 { font-family: 'Fraunces', serif; font-size: clamp(2.4rem,6vw,3.8rem); color: #C6A15B; margin-bottom: 1rem; }
.legal-page .legal-updated { font-family: 'Inter', sans-serif; font-size: .85rem; color: #A79E8E; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2rem; }
.legal-page section h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: #C6A15B; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-page p, .legal-page li { font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.75; color: #D8D2C4; margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page strong { color: #F3EFE7; }
.legal-page a { color: #C6A15B; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.consent-quote { border-left: 4px solid #C6A15B; background: #0B0B0C; padding: 1.5rem; margin: 2rem 0; }
.consent-quote blockquote { margin: 0; font-family: 'Fraunces', serif; color: #F3EFE7; }

@media (max-width: 860px) {
  .site-header nav a { display: none; }
  .site-header .btn-gold { display: inline-block; }
  .hero { padding: 4rem 1rem; }
  .columns { flex-direction: column; }
  .columns > .col { width: 100%; }
  #why .grid { grid-template-columns: 1fr; }
  .title { font-size: clamp(1.8rem,5vw,3.5rem); }
  #inquiry-form { max-width: none; width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0.5rem; }
  .footer-nav a { font-size: .9rem; }
  .state { padding: .4rem .8rem; font-size: .9rem; }
  .consent input { width: 18px; height: 18px; }
  .form-success { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none !important; }
  .marquee, .gold-rule, .btn-gold, .footer-nav a, .state, .principle, .areas-heading, .areas-sub, .states .state, .door .title, .door .copy, .form-success, .contact-phone, .contact-email, .tagline, .footer-nav a, .legal, .consent-quote { transition: none !important; }
}

@media print {
  .legal-page main { background: #fff; color: #000; }
  .legal-page * { background: transparent; }
}

/* --- desk patch (Hermes pass 5) --- */
#standard {
  padding-left: max(4vw, calc((100vw - 1200px) / 2));
  padding-right: max(4vw, calc((100vw - 1200px) / 2));
}
section:not(.hero) {
  padding: clamp(5rem,12vw,9rem) max(4vw, calc((100vw - 1200px) / 2));
}
.marquee {
  overflow:hidden;
  white-space:nowrap;
}
.marquee-track {
  display:flex;
  width:max-content;
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}
.start-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem,6vw,4rem);
  color: #F3EFE7;
  margin-bottom: .5em;
}
.start-copy {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: #A79E8E;
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.door .gold-rule {
  transform-origin: left;
  will-change: transform;
}
.legal a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid #C6A15B;
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid #C6A15B;
  outline-offset: 3px;
}

/* --- mobile pass (desk, 2026-11-04) --- */
@media (max-width: 860px) {
  html, body { overflow-x: clip; }
  section:not(.hero) { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .site-header { padding: .65rem 1rem; }
  #start .field input, #start .field textarea, #start .field select { font-size: 16px; min-height: 48px; }
  #start .field textarea { min-height: 96px; }
  .btn-gold, .btn-ghost { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  #start .consent { align-items: flex-start; }
  #start .consent label { line-height: 1.55; }
  .site-footer .footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; }
  .site-footer .contact-phone { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-gold, .hero-buttons .btn-ghost { width: 100%; text-align: center; }
  .hero-content { padding-bottom: 3rem; }
  #doors .door .title { font-size: 1.9rem; }
  .start-heading { font-size: 2.1rem; }
}
