/* Great Lakes Builds: site styles */

:root {
  --ink: #0a111d;
  --ink-2: #0f1a2b;
  --ink-3: #172540;
  --paper: #f2eee6;
  --paper-2: #e6dfd2;
  --text: #eef1f6;
  --muted: #9aa6b8;
  --text-dark: #141a24;
  --muted-dark: #5b6474;
  --amber: #f0a94b;
  --amber-2: #ffd08c;
  --bp: #0c2746;
  --bp-line: #a9cdf3;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(20, 26, 36, .14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 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(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; color: var(--amber); }
address { font-style: normal; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--amber);
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 14ch;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 28px; }

/* split-text masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--amber);
  transition: transform .4s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--amber-2); }
.btn:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.btn-small { padding: 11px 18px; font-size: 13px; }
.btn-big { padding: 20px 34px; font-size: 17px; }

/* Intro curtain */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--ink);
}
.intro-mark { width: 120px; opacity: 0; transform: translateY(16px); }
.intro-name { font: 500 13px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.intro-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.no-js .intro, .reduced .intro { display: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(10, 17, 29, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span { font: 600 11px/1.25 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(238, 241, 246, .8); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* HERO */
.hero { position: relative; height: 340vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: #6f8fae url(assets/hero/d/001.webp) center/cover no-repeat;
}
@media (max-aspect-ratio: 9/10) {
  .hero-canvas { background-image: url(assets/hero/m/001.webp); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 29, .55) 0%, rgba(10, 17, 29, .05) 30%, rgba(10, 17, 29, .1) 55%, rgba(10, 17, 29, .9) 100%),
    linear-gradient(90deg, rgba(10, 17, 29, .55) 0%, rgba(10, 17, 29, 0) 60%);
}
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  max-width: 980px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(50px, 9vw, 140px);
  line-height: .92;
  letter-spacing: -.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-copy .eyebrow { text-shadow: 0 1px 10px rgba(10, 17, 29, .9), 0 0 2px rgba(10, 17, 29, .6); }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(238, 241, 246, .88); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-night {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  text-align: center; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
}
.hero-night-line { font: 500 clamp(34px, 5.6vw, 84px)/1.02 var(--serif); text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.hero-night-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-night-meta span { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(255, 208, 140, .4); border-radius: 999px; color: var(--amber-2); background: rgba(10, 17, 29, .35); }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(238, 241, 246, .7);
}
.hero-scroll i { width: 1px; height: 60px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--amber); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.hero-clock { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.hero-clock-fill { display: block; height: 100%; background: linear-gradient(90deg, #8fc3ff, var(--amber)); transform: scaleX(0); transform-origin: left; }

/* Marquee */
.marquee { background: var(--amber); color: var(--ink); overflow: hidden; padding: 18px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font: 500 clamp(22px, 2.6vw, 34px)/1 var(--serif); white-space: nowrap; }
.marquee b { font-size: 16px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* STORY */
.story { position: relative; height: 480vh; background: var(--ink-2); }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 90px);
  padding: 90px var(--gutter) 40px; max-width: 1400px; margin: 0 auto;
}
.story-count { font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--muted); margin-bottom: 28px; }
.story-num { color: var(--text); }
.story-steps { display: grid; }
.step { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.step.is-active { opacity: 1; visibility: visible; }
.step h2 { font: 500 clamp(40px, 5vw, 76px)/1 var(--serif); }
.step p { margin-top: 22px; color: var(--muted); max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); }
.story-progress { margin-top: 44px; height: 2px; width: min(320px, 100%); background: var(--line); }
.story-progress span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

.stage {
  position: relative; justify-self: center;
  width: min(100%, calc((100svh - 150px) * .8));
  aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden;
  background: var(--bp);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
  color: var(--bp-line);
}
.bp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(169, 205, 243, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 205, 243, .14) 1px, transparent 1px),
    linear-gradient(rgba(169, 205, 243, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 205, 243, .06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-foundation { clip-path: inset(100% 0 0 0); }
.ph-exterior { opacity: 0; transform: scale(1.12); }
.ph-kitchen { clip-path: inset(0 0 0 100%); }
.stage-shade { position: absolute; inset: 0; background: rgba(8, 20, 38, .0); pointer-events: none; }
.elev { position: absolute; inset: 0; width: 100%; height: 100%; }
.elev .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.elev .anno, .elev .labels, .elev .titleblock { opacity: 0; }
.elev .labels text { font: 500 12px var(--mono); letter-spacing: .08em; }
.elev .labels text.small { font-size: 10px; opacity: .8; }
.elev .fills { opacity: .9; }
.elev .glow rect { fill: var(--amber-2); opacity: .55; }
.stage-caption {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(10, 17, 29, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.stage-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(240, 169, 75, .25); flex: none; }

/* PROJECT 1,000 */
.p1000 { padding: clamp(100px, 14vw, 180px) 0; background: var(--ink); position: relative; }
.p1000-head { display: grid; gap: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-num { font: 500 clamp(40px, 5vw, 76px)/1 var(--serif); color: var(--text); white-space: nowrap; }
.stat-num small { font-size: .45em; color: var(--muted); margin-left: 4px; }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--muted); }
.source { margin-top: 22px; font-size: 13px; color: rgba(154, 166, 184, .75); max-width: 80ch; }

/* HOMES (light section) */
.homes, .underway { background: var(--paper); color: var(--text-dark); }
.homes { padding: clamp(100px, 13vw, 170px) 0 40px; }
.homes .lede, .underway .lede { color: var(--muted-dark); }
.homes em, .underway em { color: #b5651d; }
.homes .eyebrow, .underway .eyebrow { color: #b5651d; }
.home { margin-top: clamp(70px, 9vw, 120px); }
.home-head {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: end; gap: 18px 40px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-dark);
}
.home-index { font: 500 13px/1 var(--mono); letter-spacing: .14em; color: var(--muted-dark); align-self: start; padding-top: 10px; }
.home-title h3 { font: 500 clamp(36px, 4.6vw, 66px)/1 var(--serif); }
.home-title p { margin-top: 8px; color: var(--muted-dark); font-size: 15px; }
.specs { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.specs li { display: grid; gap: 4px; }
.specs b { font: 600 clamp(22px, 2.2vw, 30px)/1 var(--serif); }
.specs span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-done { background: #1d3b2c; color: #9be3b4; }
.chip-wip { background: rgba(240, 169, 75, .16); color: #b5651d; }
.chip-wip::before { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

.rail { margin-top: 34px; overflow: hidden; }
.rail-track { display: flex; gap: clamp(12px, 1.4vw, 20px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail figure { margin: 0; width: clamp(230px, 24vw, 340px); flex: none; }
.rail figure img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.rail figcaption { margin-top: 10px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

/* UNDERWAY */
.underway { padding: clamp(90px, 11vw, 150px) 0 clamp(100px, 13vw, 170px); }
.underway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.wip-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; background: #fbf9f4;
}
.wip-house {
  width: 100%; aspect-ratio: 16 / 9; padding: 8% 22%;
  color: #1d4f86;
  background-color: #e8eef6;
  background-image: linear-gradient(rgba(29, 79, 134, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 79, 134, .08) 1px, transparent 1px);
  background-size: 20px 20px;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sketch 6s var(--ease) infinite;
}
@keyframes sketch { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.wip-body { padding: 26px 28px 30px; }
.wip-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wip-top .home-index { padding-top: 0; }
.wip-body h3 { margin-top: 18px; font: 500 clamp(30px, 3vw, 44px)/1 var(--serif); }
.wip-body p { margin-top: 10px; color: var(--muted-dark); font-size: 15px; }

/* WHY */
.why { padding: clamp(100px, 13vw, 170px) 0; background: var(--ink-2); }
.pillars { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars li { padding: 30px 26px 0 0; }
.pillars li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.p-num { font: 500 12px/1 var(--mono); color: var(--amber); letter-spacing: .14em; }
.pillars h3 { margin-top: 22px; font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.pillars p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* CONTACT */
.contact { position: relative; padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; text-align: center; }
.contact-bg {
  position: absolute; inset: -10% 0;
  background: linear-gradient(180deg, var(--ink-2) 0%, rgba(10, 17, 29, .55) 35%, rgba(10, 17, 29, .7) 100%), url(assets/hero/d/057.webp) center/cover no-repeat;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact-logo { width: clamp(110px, 11vw, 160px); height: auto; }
.contact-wordmark { margin: 18px 0 48px; font: 600 clamp(15px, 1.4vw, 19px)/1.25 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: rgba(238, 241, 246, .9); }
.contact-title { font: 500 clamp(44px, 7vw, 110px)/.98 var(--serif); max-width: 13ch; }
.contact .lede { color: rgba(238, 241, 246, .8); margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.contact address { margin-top: 30px; font: 500 13px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 241, 246, .75); }

/* FOOTER */
.footer { background: #070c15; padding: 40px 0 46px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.footer-brand img { width: 36px; height: auto; }
.footer a { text-decoration: none; color: var(--text); }
.footer-note { font-size: 12px; color: rgba(154, 166, 184, .7); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(n+3) { margin-top: 30px; border-top: 1px solid var(--line); }
  .home-head { grid-template-columns: auto 1fr auto; }
  .specs { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero { height: 300vh; }
  .hero-scroll { display: none; }
  .hero-copy { bottom: 44px; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 17, 29, .5) 0%, rgba(10, 17, 29, 0) 26%, rgba(10, 17, 29, .25) 50%, rgba(10, 17, 29, .92) 82%);
  }

  /* story: full-bleed stage with text over it */
  .story { height: 460vh; }
  .story-sticky { display: block; padding: 0; }
  .stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .stage-shade { background: linear-gradient(180deg, rgba(8, 20, 38, 0) 35%, rgba(8, 15, 28, .85) 72%) !important; }
  .elev { top: 118px; height: calc(55% - 50px); }
  .stage-caption { top: 76px; bottom: auto; left: var(--gutter); }
  .story-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 2; }
  .story-text .eyebrow { margin-bottom: 12px; }
  .story-count { margin-bottom: 16px; }
  .step h2 { font-size: 40px; }
  .step p { margin-top: 12px; font-size: 15px; color: rgba(238, 241, 246, .8); }
  .story-progress { margin-top: 24px; }

  .stat + .stat { padding-left: 16px; }
  .stat { padding-right: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .home-head { grid-template-columns: 1fr auto; gap: 14px 16px; }
  .home-index { display: none; }
  .specs { gap: 22px; flex-wrap: wrap; }
  .rail figure { width: 62vw; }
  .underway-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li + li { padding: 26px 0 0; border-left: 0; }
  .pillars li + li { margin-top: 26px; border-top: 1px solid var(--line); }
  .btn-big { width: 100%; }
  .contact-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-scroll i::after, .wip-house, .chip-wip::before { animation: none; }
  .wip-house { stroke-dashoffset: 0; }
}
