/* ═══════════════════════════════════════════
   ROOT & RESET
═══════════════════════════════════════════ */
:root {
  --black:       #080807;
  --charcoal:    #131210;
  --warm-dark:   #1c1a17;
  --ivory:       #f2ede3;
  --beige:       #e4d9c8;
  --warm-gray:   #8c8278;
  --gold:        #c09050;
  --gold-light:  #d4a96a;
  --text-dim:    #706860;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   GRAIN OVERLAY
═══════════════════════════════════════════ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ═══════════════════════════════════════════
   CURSOR GLOW (desktop)
═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,144,80,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.32s; }
.reveal:nth-child(5) { transition-delay: 0.44s; }

/* Fade-in for hero elements */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
}
.fade-in.active {
  animation: fadeUp 1.2s var(--ease) forwards;
}

/* ═══════════════════════════════════════════
   SECTION LABEL
═══════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section-label.light { color: var(--gold-light); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -15%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
  background-color: #1a1710;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(8,8,7,0.65) 0%,
    rgba(8,8,7,0.45) 45%,
    rgba(8,8,7,0.80) 100%
  );
}

/* Hero floating geometry */
.hero-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.geo-line {
  position: absolute;
  opacity: 0.5;
}
.geo-1 {
  width: 300px;
  top: 15%;
  left: 5%;
  animation: geoFloat 12s ease-in-out infinite alternate;
}
.geo-2 {
  width: 200px;
  bottom: 20%;
  right: 8%;
  animation: geoFloat 15s ease-in-out infinite alternate-reverse;
}
.geo-3 {
  width: 250px;
  top: 50%;
  right: 15%;
  animation: geoRotate 25s linear infinite;
}
@keyframes geoFloat {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-20px) rotate(3deg); }
}
@keyframes geoRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 920px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 11vw, 10rem);
  font-weight: 300;
  line-height: 0.92;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--beige);
}

.title-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 2.25rem auto;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--beige);
  margin-bottom: 0.85rem;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 2.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(192, 144, 80, 0.55);
  padding: 15px 40px;
  cursor: pointer;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease, gap 0.35s ease;
}
.btn-arrow {
  transition: transform 0.35s var(--ease);
  font-size: 1rem;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn-primary:hover {
  color: var(--black);
  border-color: var(--gold);
}
.btn-primary:hover::before {
  transform: scaleX(1);
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint span {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.scroll-bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--warm-gray), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   PHILOSOPHY
═══════════════════════════════════════════ */
.philosophy {
  position: relative;
  padding: 10rem 2rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.philosophy-image {
  position: absolute;
  inset: -15%;
  background-image: url('images/philosophy.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.philosophy-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19,18,16,0.92) 0%,
    rgba(19,18,16,0.88) 50%,
    rgba(19,18,16,0.95) 100%
  );
}

/* architectural grid overlay */
.philosophy::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,144,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,144,80,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.philosophy-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ivory);
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-bottom: 4.5rem;
}
.philosophy-body p {
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--warm-gray);
}

.philosophy-pillars {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(192,144,80,0.14);
}
.pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
.pillar-number {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.6;
}
.pillar-word {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ivory);
}
.pillar-desc {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.pillar-sep {
  width: 1px;
  height: 52px;
  background: rgba(192,144,80,0.2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   IN PROGRESS
═══════════════════════════════════════════ */
.in-progress {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.progress-bg {
  position: absolute;
  inset: -15%;
  background-image: url('images/construction.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
  background-color: #111009;
}

.progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,7,0.86);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: url('images/blueprint.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.motion-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.mline {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192,144,80,0.18), transparent);
  animation: lineMove linear infinite;
}
.ml1 { width: 65%; top: 18%; animation-duration: 9s;  animation-delay: 0s;  }
.ml2 { width: 42%; top: 35%; animation-duration: 12s; animation-delay: -3s; }
.ml3 { width: 75%; top: 55%; animation-duration: 10s; animation-delay: -5s; }
.ml4 { width: 35%; top: 72%; animation-duration: 14s; animation-delay: -2s; }
.ml5 { width: 50%; top: 88%; animation-duration: 11s; animation-delay: -7s; }

@keyframes lineMove {
  from { left: -80%; }
  to   { left: 120%; }
}

.in-progress-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  padding: 6rem 2rem;
  text-align: center;
}

.progress-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}
.progress-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.progress-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 4rem;
}

.build-progress { width: 100%; margin-bottom: 3.5rem; }

.build-track {
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: visible;
  margin-bottom: 0.85rem;
}
.build-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transition: width 3s var(--ease);
  position: relative;
}
.build-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px 2px rgba(212,169,106,0.5);
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(212,169,106,0.5); }
  50%      { box-shadow: 0 0 18px 4px rgba(212,169,106,0.8); }
}
.build-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.build-pct {
  color: var(--gold-light);
  font-weight: 500;
}

/* Pulse markers (milestones) */
.pulse-markers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}
.pulse-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dot-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  position: relative;
}
.pulse-dot.active .dot-ring {
  border-color: var(--gold);
  background: var(--gold);
  animation: ringPulse 2.5s ease infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,144,80,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(192,144,80,0); }
}
.dot-label {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.pulse-dot.active .dot-label { color: var(--gold-light); }
.pulse-line {
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.08);
}
.pulse-line.done { background: var(--gold); }
.pulse-line.active-line {
  background: linear-gradient(to right, var(--gold), rgba(255,255,255,0.08));
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
  background: var(--ivory);
  padding: 9rem 2rem;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact .section-label { color: var(--gold); }

.contact-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 4.5rem;
}
.contact-headline em {
  font-style: italic;
  color: var(--gold);
}

.contact-grid {
  border-top: 1px solid rgba(0,0,0,0.09);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 1.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
.contact-item:hover {
  padding-left: 12px;
}
.contact-icon {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}
a.contact-value:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(192,144,80,0.1);
}
.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ivory);
}
.footer-brand em {
  font-style: italic;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.social-link {
  color: var(--warm-gray);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
}
.social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-copy {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 680px) {
  .philosophy { padding: 6rem 1.5rem; }
  .philosophy-pillars {
    flex-direction: column;
    gap: 2.25rem;
  }
  .pillar-sep {
    width: 36px;
    height: 1px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .philosophy-quote {
    padding-left: 1.25rem;
    font-size: 1.35rem;
  }
  .progress-headline { font-size: 2.4rem; }
  .contact-headline  { font-size: 2.4rem; }
  .hero-geometry { display: none; }
  .pulse-markers { gap: 0; }
  .dot-label { font-size: 0.5rem; }
  .cursor-glow { display: none; }
  .geo-3 { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.8rem; }
  .btn-primary { padding: 13px 30px; font-size: 0.65rem; }
  .in-progress-inner { padding: 4rem 1.5rem; }
  .contact { padding: 6rem 1.5rem; }
}
