/* Epic Light shared tokens and type. Both versions load this first. */
:root {
  --charcoal: #1a1612;
  --night: #12100d;
  --ink-2: #221d18;
  --teal: #3d8f8a;
  --teal-deep: #2f706d;
  --burgundy: #982426;
  --red-orange: #cc431f;
  --burnt: #d96827;
  --amber: #e7a91c;
  --cream: #e7e1db;
  --cream-dim: #b9b1a8;
  --cream-faint: #7d756c;
  --line: rgba(231, 225, 219, 0.16);
  --line-strong: rgba(231, 225, 219, 0.34);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--charcoal); }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(44px, 7.4vw, 124px); }
h2 { font-size: clamp(36px, 5.2vw, 84px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--cream-dim); max-width: 34em; }
.muted { color: var(--cream-dim); }

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

/* Logo stripes, used as a rule and as accents */
.stripes { display: grid; gap: 3px; width: 72px; }
.stripes i { display: block; height: 4px; }
.stripes i:nth-child(1) { background: var(--teal); }
.stripes i:nth-child(2) { background: var(--burgundy); }
.stripes i:nth-child(3) { background: var(--red-orange); }
.stripes i:nth-child(4) { background: var(--amber); }

/* Buttons: sharp, 1px, no shadows */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--charcoal);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--amber); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--cream); }
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.solid { background: rgba(18, 16, 13, 0.92); border-bottom-color: var(--line); }
.site-head.hide { transform: translateY(-100%); }
.site-head .logo img { height: 40px; width: auto; }
.site-head nav { display: flex; gap: 28px; font-size: 14px; }
.site-head nav a { text-decoration: none; color: var(--cream-dim); transition: color 200ms; }
.site-head nav a:hover { color: var(--cream); }
.site-head .right { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.site-head .phone { text-decoration: none; color: var(--cream-dim); }
.site-head .btn { padding: 11px 18px; }
@media (max-width: 960px) {
  .site-head nav, .site-head .phone { display: none; }
  .site-head .logo img { height: 32px; }
}

/* Parallax media frames */
.frame { position: relative; overflow: hidden; background: var(--ink-2); }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame [data-depth] { position: absolute; inset: -12% 0; height: 124%; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.form label { display: block; border-bottom: 1px solid var(--line-strong); padding: 14px 0 10px; }
.form label:nth-child(odd):not(.full) { border-right: 1px solid var(--line-strong); padding-right: 16px; }
.form label:nth-child(even):not(.full) { padding-left: 16px; }
.form .full { grid-column: 1 / -1; }
.form span { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); }
.form input, .form textarea {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--cream);
  font: 400 18px/1.4 var(--sans); padding: 6px 0 2px; resize: vertical;
}
.form input:focus, .form textarea:focus { color: #fff; }
.form label:focus-within span { color: var(--amber); }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding-top: 24px; flex-wrap: wrap; }
.form .note { font-size: 14px; color: var(--cream-faint); }
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form label:nth-child(odd):not(.full) { border-right: 0; padding-right: 0; }
  .form label:nth-child(even):not(.full) { padding-left: 0; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--cream-faint); }
.site-foot .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; color: var(--cream-dim); }
.site-foot a:hover { color: var(--cream); }

:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Word split wrappers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wi { display: inline-block; will-change: transform; }

.split-chars .ch { display: inline-block; }
.split-chars .w { overflow: visible; }
/* data-reveal="line": rule draws via --line */
[data-reveal="line"] { position: relative; border-top-color: transparent !important; }
[data-reveal="line"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-strong); transform-origin: 0 50%; transform: scaleX(var(--line, 1)); }

/* ---------- 3D homes: scroll-scrubbed orbit video (shared/homes.js) ---------- */
.homes { position: relative; height: 480vh; }
.homes-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0b1230; }
.homes-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease); }
.homes-vid video.on { opacity: 1; }
.homes-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(18,16,13,0.85) 0%, rgba(18,16,13,0) 42%), linear-gradient(to bottom, rgba(18,16,13,0.55) 0%, rgba(18,16,13,0) 26%); }
.homes-top { position: absolute; left: var(--gutter); right: var(--gutter); top: 96px; display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap; }
.homes-top h2 { font-size: clamp(30px, 3.4vw, 52px); margin-top: 12px; max-width: 12em; }
.seg { display: grid; border: 1px solid var(--line-strong); background: rgba(18,16,13,0.55); }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg button { background: transparent; color: var(--cream-dim); border: 0; padding: 13px 18px; font: 500 13px/1.2 var(--sans); cursor: pointer; transition: background-color 200ms, color 200ms; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--charcoal); }
.homes-say { position: absolute; left: var(--gutter); bottom: 108px; width: min(520px, calc(100% - 2 * var(--gutter))); min-height: 7em; }
.homes-say div { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateX(-24px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.homes-say div.on { opacity: 1; transform: none; }
.homes-say strong { display: block; font: 400 clamp(28px, 3vw, 46px)/1.08 var(--serif); margin-bottom: 12px; }
.homes-say p { margin: 0; color: var(--cream-dim); }
.homes-rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; display: grid; grid-template-columns: 40fr 32fr 28fr; border-top: 1px solid var(--line-strong); }
.homes-rail span { padding-top: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); transition: color 250ms; }
.homes-rail span.on { color: var(--cream); }
.homes-rail span.holiday.on { background: linear-gradient(90deg, #ff3b3b, #3bd16f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.homes-rail i { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.homes-try { position: absolute; right: var(--gutter); bottom: 108px; font-size: 14px; color: var(--cream-dim); }
.homes-try a { color: var(--amber); }
@media (max-width: 860px) {
  .homes-top { top: 76px; }
  .homes-top h2 { font-size: 26px; }
  .homes-try { display: none; }
  .homes-say { bottom: 84px; }
  .homes-vid video { object-position: 50% 50%; }
}
.reduced .homes { height: auto; }
.reduced .homes-stage { position: relative; min-height: 100vh; }

/* ---------- Breakers (shared/breakers.js) ---------- */
.brk-edge { position: relative; height: clamp(60px, 9vw, 140px); margin: -1px 0; overflow: hidden; }
.brk-edge svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.brk-roof { position: relative; padding: clamp(96px, 12vw, 180px) 0 clamp(48px, 7vw, 100px); overflow: hidden; }
.brk-roof-svg { display: block; width: 100%; height: auto; padding: 0 var(--gutter); overflow: visible; }
.brk-roof .ln { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brk-roof .wash { opacity: 0; transition: opacity 500ms var(--ease); }
.brk-roof .wash.on { opacity: 1; }
.brk-roof .pane { fill: #ffc35a; opacity: 0; transition: opacity 500ms var(--ease); }
.brk-roof .pane.on { opacity: 0.32; }
.brk-roof .ln.thin { stroke-width: 1.1; opacity: 0.7; }
.brk-roof .bulb { fill: #4a4239; transition: fill 160ms; }
.brk-roof .bulb.on { fill: #ffe2a0; }
.brk-roof .halo { fill: var(--amber); opacity: 0; transition: opacity 260ms; }
.brk-roof .halo.on { opacity: 0.3; }
.brk-say { text-align: center; font-family: var(--serif); font-size: clamp(24px, 3vw, 44px); line-height: 1.15; margin: 40px auto 0; max-width: 20em; padding: 0 var(--gutter); }

.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark-svg { position: absolute; left: -6%; width: 112%; pointer-events: none; overflow: visible; }
.mark-svg.underline { bottom: -0.32em; height: 0.5em; }
.mark-svg.circle { top: -0.42em; height: 1.75em; left: -7%; width: 114%; }
.mark-ln { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }

svg.doodle { position: absolute; pointer-events: none; overflow: visible; }
svg.doodle .ln { fill: none; stroke: var(--cream-dim); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Cream "paper" sections: the same components, inverted */
.paper { background: #e7e1db; color: #1a1612;
  --cream: #1a1612; --cream-dim: #4a423a; --cream-faint: #7a7066; --night: #e7e1db; --ink-2: #ddd5cc;
  --line: rgba(26, 22, 18, 0.14); --line-strong: rgba(26, 22, 18, 0.32); }
.paper .eyebrow { color: var(--teal-deep); }
.paper .mark-ln { stroke: var(--red-orange); }
.paper ::selection { background: var(--charcoal); color: #e7e1db; }
.paper .steps .n, .paper .num, .paper .count { color: var(--red-orange); }
