/* ============================================================
   The Access House — Pre-Launch
   Single-page, calm composition, Architectural Digest tone.
   ============================================================ */

:root {
  --access-green: #0B2520;
  --deep-forest: #081A17;
  --ivory-stone: #F3EEE6;
  --champagne-sand: #D8C7A3;
  --graphite-ink: #1E1E1A;
  --mink-taupe: rgba(216, 199, 163, 0.65);

  --line-soft: rgba(216, 199, 163, 0.18);
  --line-medium: rgba(216, 199, 163, 0.35);

  --font-serif: "EB Garamond", "Hoefler Text", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--deep-forest);
  color: var(--ivory-stone);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle grain / texture overlay across the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.78  0 0 0 0 0.64  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 60px);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 6vw, 80px);
}

/* ============== UNDER CONSTRUCTION TAG ============== */
.construction-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--champagne-sand);
  font-weight: 500;
  opacity: 0.75;
}
.construction-tag__rule {
  display: block;
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: var(--champagne-sand);
  opacity: 0.5;
}
.construction-tag__text {
  padding-left: 0.42em; /* compensate for letter-spacing trailing on the last letter */
}

/* ============== LOGO-STAGE (BUILD-UP ANIMATION) ============== */
.logo-stage {
  display: flex;
  justify-content: center;
}
.logo-build {
  width: 100%;
  max-width: clamp(280px, 36vw, 460px);
  height: auto;
  display: block;
}

/* Setting-out guide circle — faint blueprint construction line */
.logo-build .lg-guide circle {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0;
}

/* Rebar — vertical steel bars */
.logo-build .lg-rebar line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.75;
}

/* Stirrups — horizontal binding rings */
.logo-build .lg-stirrups line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.55;
}

/* Diagonal cross-braces */
.logo-build .lg-braces line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 0.8;
  opacity: 0.3;
  stroke-dasharray: 2 4;
}

/* Concrete shell — the final monogram arc */
.logo-build .lg-shell path {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 10;
  stroke-linecap: butt;
  opacity: 1;
}

/* Eyebrow lines + "THE" */
.logo-build .lg-eyebrow-line {
  stroke: var(--champagne-sand);
  stroke-width: 2;
  opacity: 0;
}
.logo-build .lg-eyebrow-text {
  fill: var(--champagne-sand);
  font-family: var(--font-serif);
  font-size: 66px;
  letter-spacing: 10px;
  opacity: 0;
}

/* Wordmark */
.logo-build .lg-wordmark text {
  fill: var(--champagne-sand);
  font-family: var(--font-serif);
  font-size: 120px;
  letter-spacing: 2px;
  opacity: 0;
}

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
  to { opacity: var(--final-opacity, 1); }
}
@keyframes fade-out {
  to { opacity: 0; }
}

/* Structural strokes start hidden */
.logo-build .lg-rebar line,
.logo-build .lg-stirrups line,
.logo-build .lg-braces line,
.logo-build .lg-shell path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* === SEQUENCE === */

/* 0.3–1.7s: setting-out guide fades in */
.logo-build .lg-guide circle {
  animation: fade-in 1.4s var(--ease) forwards;
  --final-opacity: 0.2;
  animation-delay: 0.3s;
}

/* 1.6–5.0s: vertical rebars draw in, left to right */
.logo-build .lg-rebar line {
  animation: draw-stroke 1.4s var(--ease) forwards;
}
.logo-build .lg-rebar line:nth-child(1) { animation-delay: 1.6s; }
.logo-build .lg-rebar line:nth-child(2) { animation-delay: 1.8s; }
.logo-build .lg-rebar line:nth-child(3) { animation-delay: 2.0s; }
.logo-build .lg-rebar line:nth-child(4) { animation-delay: 2.2s; }
.logo-build .lg-rebar line:nth-child(5) { animation-delay: 2.4s; }
.logo-build .lg-rebar line:nth-child(6) { animation-delay: 2.6s; }
.logo-build .lg-rebar line:nth-child(7) { animation-delay: 2.8s; }
.logo-build .lg-rebar line:nth-child(8) { animation-delay: 3.0s; }
.logo-build .lg-rebar line:nth-child(9) { animation-delay: 3.2s; }

/* 5.0–7.5s: stirrups appear, top-down */
.logo-build .lg-stirrups line {
  animation: draw-stroke 0.9s var(--ease) forwards;
}
.logo-build .lg-stirrups line:nth-child(1) { animation-delay: 5.0s; }
.logo-build .lg-stirrups line:nth-child(2) { animation-delay: 5.3s; }
.logo-build .lg-stirrups line:nth-child(3) { animation-delay: 5.6s; }
.logo-build .lg-stirrups line:nth-child(4) { animation-delay: 5.9s; }
.logo-build .lg-stirrups line:nth-child(5) { animation-delay: 6.2s; }
.logo-build .lg-stirrups line:nth-child(6) { animation-delay: 6.5s; }
.logo-build .lg-stirrups line:nth-child(7) { animation-delay: 6.8s; }

/* 7.5–9.0s: diagonal cross-braces */
.logo-build .lg-braces line {
  animation: draw-stroke 1.2s var(--ease) forwards;
}
.logo-build .lg-braces line:nth-child(1) { animation-delay: 7.5s; }
.logo-build .lg-braces line:nth-child(2) { animation-delay: 7.9s; }

/* 9.0–12.5s: concrete shell — the monogram arc draws heavily */
.logo-build .lg-shell path {
  animation: draw-stroke 3.4s var(--ease) forwards;
  animation-delay: 9.2s;
}

/* 13.0–14.5s: skeleton fades out, only the clean monogram remains */
.logo-build .lg-rebar line {
  animation: draw-stroke 1.4s var(--ease) forwards,
             fade-out 1.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s), 13.0s;
}
.logo-build .lg-rebar line:nth-child(1) { --delay: 1.6s; }
.logo-build .lg-rebar line:nth-child(2) { --delay: 1.8s; }
.logo-build .lg-rebar line:nth-child(3) { --delay: 2.0s; }
.logo-build .lg-rebar line:nth-child(4) { --delay: 2.2s; }
.logo-build .lg-rebar line:nth-child(5) { --delay: 2.4s; }
.logo-build .lg-rebar line:nth-child(6) { --delay: 2.6s; }
.logo-build .lg-rebar line:nth-child(7) { --delay: 2.8s; }
.logo-build .lg-rebar line:nth-child(8) { --delay: 3.0s; }
.logo-build .lg-rebar line:nth-child(9) { --delay: 3.2s; }

.logo-build .lg-stirrups line {
  animation: draw-stroke 0.9s var(--ease) forwards,
             fade-out 1.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s), 13.0s;
}
.logo-build .lg-stirrups line:nth-child(1) { --delay: 5.0s; }
.logo-build .lg-stirrups line:nth-child(2) { --delay: 5.3s; }
.logo-build .lg-stirrups line:nth-child(3) { --delay: 5.6s; }
.logo-build .lg-stirrups line:nth-child(4) { --delay: 5.9s; }
.logo-build .lg-stirrups line:nth-child(5) { --delay: 6.2s; }
.logo-build .lg-stirrups line:nth-child(6) { --delay: 6.5s; }
.logo-build .lg-stirrups line:nth-child(7) { --delay: 6.8s; }

.logo-build .lg-braces line {
  animation: draw-stroke 1.2s var(--ease) forwards,
             fade-out 1.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s), 13.0s;
}
.logo-build .lg-braces line:nth-child(1) { --delay: 7.5s; }
.logo-build .lg-braces line:nth-child(2) { --delay: 7.9s; }

.logo-build .lg-guide circle {
  animation: fade-in 1.4s var(--ease) forwards,
             fade-out 1.4s var(--ease) forwards;
  animation-delay: 0.3s, 13.0s;
  --final-opacity: 0.2;
}

/* 14.5–16.0s: eyebrow lines + "THE" fade in */
.logo-build .lg-eyebrow-line {
  animation: fade-in 1.2s var(--ease) forwards;
  --final-opacity: 1;
}
.logo-build .lg-eyebrow-line--left { animation-delay: 14.5s; }
.logo-build .lg-eyebrow-line--right { animation-delay: 14.7s; }
.logo-build .lg-eyebrow-text {
  animation: fade-in 1.2s var(--ease) forwards;
  animation-delay: 14.9s;
  --final-opacity: 1;
}

/* 16.0–17.5s: wordmark fades in — the final reveal */
.logo-build .lg-wordmark text {
  animation: fade-in 1.5s var(--ease) forwards;
  animation-delay: 16.0s;
  --final-opacity: 1;
}

/* Reduced motion: show final state immediately */
@media (prefers-reduced-motion: reduce) {
  .logo-build * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .logo-build .lg-guide circle,
  .logo-build .lg-rebar line,
  .logo-build .lg-stirrups line,
  .logo-build .lg-braces line { opacity: 0 !important; }
  .logo-build .lg-shell path,
  .logo-build .lg-eyebrow-line,
  .logo-build .lg-eyebrow-text,
  .logo-build .lg-wordmark text { opacity: 1 !important; }
}

/* ============== HERO ============== */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.6vw, 32px);
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

/* ============== MONOGRAM — REINFORCED-CONCRETE BUILD-UP ==============
   The TAH monogram is constructed from the inside out, like a real
   reinforced-concrete column: vertical rebar bars, horizontal stirrups,
   diagonal cross-braces, then the heavy concrete shell wraps everything.
   Total cycle ~14 seconds. */
/* Old .monogram styles kept harmless — element no longer in DOM */
.monogram .mg-guide circle {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
  opacity: 0;
}

/* Rebar (vertical) — fine, like thin steel bars */
.monogram .mg-rebar line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.7;
}

/* Stirrups (horizontal) — slightly stronger, the binding rings */
.monogram .mg-stirrups line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 0.75;
  stroke-linecap: round;
  opacity: 0.55;
}

/* Cross-bracing (diagonal) — very subtle truss accent */
.monogram .mg-braces line {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 0.4;
  opacity: 0.25;
  stroke-dasharray: 1 3;
}

/* Concrete shell — the heavy monogram arc that wraps everything */
.monogram .mg-shell path {
  fill: none;
  stroke: var(--champagne-sand);
  stroke-width: 8;
  stroke-linecap: butt;
  opacity: 1;
}

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
  to { opacity: var(--final-opacity, 1); }
}

/* All structural strokes start hidden */
.monogram .mg-rebar line,
.monogram .mg-stirrups line,
.monogram .mg-braces line,
.monogram .mg-shell path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

/* Step 0: setting-out circle fades in (0.0-1.5s) */
.monogram .mg-guide circle {
  animation: fade-in 1.4s var(--ease) forwards;
  --final-opacity: 0.18;
  animation-delay: 0.3s;
}

/* Step 1: vertical rebars draw upward, staggered (1.5-5.5s) */
.monogram .mg-rebar line {
  animation: draw-stroke 1.6s var(--ease) forwards;
  transform-origin: center bottom;
}
.monogram .mg-rebar line:nth-child(1) { animation-delay: 1.6s; }
.monogram .mg-rebar line:nth-child(2) { animation-delay: 1.8s; }
.monogram .mg-rebar line:nth-child(3) { animation-delay: 2.0s; }
.monogram .mg-rebar line:nth-child(4) { animation-delay: 2.2s; }
.monogram .mg-rebar line:nth-child(5) { animation-delay: 2.4s; }
.monogram .mg-rebar line:nth-child(6) { animation-delay: 2.6s; }
.monogram .mg-rebar line:nth-child(7) { animation-delay: 2.8s; }
.monogram .mg-rebar line:nth-child(8) { animation-delay: 3.0s; }
.monogram .mg-rebar line:nth-child(9) { animation-delay: 3.2s; }

/* Step 2: horizontal stirrups appear, top-down (5.5-8.5s) */
.monogram .mg-stirrups line {
  animation: draw-stroke 1.0s var(--ease) forwards;
}
.monogram .mg-stirrups line:nth-child(1) { animation-delay: 5.5s; }
.monogram .mg-stirrups line:nth-child(2) { animation-delay: 5.8s; }
.monogram .mg-stirrups line:nth-child(3) { animation-delay: 6.1s; }
.monogram .mg-stirrups line:nth-child(4) { animation-delay: 6.4s; }
.monogram .mg-stirrups line:nth-child(5) { animation-delay: 6.7s; }
.monogram .mg-stirrups line:nth-child(6) { animation-delay: 7.0s; }
.monogram .mg-stirrups line:nth-child(7) { animation-delay: 7.3s; }

/* Step 3: diagonal cross-braces — truss tension (8.5-10s) */
.monogram .mg-braces line {
  animation: draw-stroke 1.4s var(--ease) forwards;
}
.monogram .mg-braces line:nth-child(1) { animation-delay: 8.6s; }
.monogram .mg-braces line:nth-child(2) { animation-delay: 9.0s; }

/* Step 4: concrete shell wraps everything — the final monogram arc.
   Drawn slowly and heavily to feel like a poured envelope. */
.monogram .mg-shell path {
  animation: draw-stroke 3.6s var(--ease) forwards;
  animation-delay: 10.4s;
}

/* Reduced motion: skip animation, show final state */
@media (prefers-reduced-motion: reduce) {
  .monogram * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: var(--final-opacity, 1) !important;
  }
  .monogram .mg-guide circle { opacity: 0.18 !important; }
  .monogram .mg-rebar line   { opacity: 0.7 !important; }
  .monogram .mg-stirrups line{ opacity: 0.55 !important; }
  .monogram .mg-braces line  { opacity: 0.25 !important; }
  .monogram .mg-shell path   { opacity: 1 !important; }
}

/* ============== HEADLINE + SUB ============== */
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ivory-stone);
}
.hero__title em {
  font-style: italic;
  color: var(--champagne-sand);
  font-weight: 500;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(243, 238, 230, 0.78);
  max-width: 56ch;
  margin: 0 auto;
  font-weight: 300;
}

/* ============== COUNTDOWN ============== */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  margin: clamp(8px, 1.6vw, 18px) 0;
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
  max-width: 560px;
}
.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}
.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--champagne-sand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  font-weight: 400;
}
.countdown__sep {
  color: var(--line-medium);
  font-size: 1.2rem;
  align-self: flex-start;
  margin-top: 8px;
}

/* ============== NEWSLETTER ============== */
.newsletter {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(4px, 1vw, 12px);
}
.newsletter__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-sand);
  font-weight: 500;
  text-align: center;
}
.newsletter__row {
  display: flex;
  gap: 0;
  background: rgba(243, 238, 230, 0.04);
  border: 1px solid var(--line-medium);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.newsletter__row:focus-within {
  border-color: var(--champagne-sand);
  background: rgba(243, 238, 230, 0.06);
}
.newsletter__input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ivory-stone);
  font-weight: 300;
  outline: none;
  min-width: 0;
}
.newsletter__input::placeholder {
  color: rgba(243, 238, 230, 0.4);
  font-style: italic;
}
.newsletter__button {
  background: var(--champagne-sand);
  border: 0;
  color: var(--access-green);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.newsletter__button:hover { background: var(--ivory-stone); }
.newsletter__button .arrow {
  transition: transform 0.2s var(--ease);
}
.newsletter__button:hover .arrow { transform: translateX(3px); }
.newsletter__hint {
  font-size: 0.78rem;
  color: rgba(243, 238, 230, 0.55);
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.55;
  font-weight: 300;
}
.newsletter__success,
.newsletter__error {
  display: none;
  font-size: 0.85rem;
  text-align: center;
  margin: 8px 0 0;
  padding: 12px 16px;
  border-radius: 2px;
  font-weight: 400;
}
.newsletter__success {
  background: rgba(216, 199, 163, 0.10);
  color: var(--champagne-sand);
  border: 1px solid var(--line-medium);
}
.newsletter__error {
  background: rgba(226, 75, 74, 0.10);
  color: #E8A8A7;
  border: 1px solid rgba(226, 75, 74, 0.4);
}
.newsletter.is-success .newsletter__row,
.newsletter.is-success .newsletter__hint { display: none; }
.newsletter.is-success .newsletter__success { display: block; }
.newsletter.is-error .newsletter__error { display: block; }

/* ============== FOOTER ============== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: rgba(243, 238, 230, 0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne-sand);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.footer__social:hover { color: var(--ivory-stone); }
.footer__social svg { display: block; }
.footer__legal {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.footer__legal a {
  color: rgba(243, 238, 230, 0.55);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
}
.footer__legal a:hover { color: var(--ivory-stone); border-bottom-color: var(--champagne-sand); }

/* ============== RESPONSIVE ============== */
@media (max-width: 600px) {
  .countdown {
    padding: 16px 12px;
    gap: 4px;
  }
  .countdown__block { min-width: 50px; }
  .countdown__sep { font-size: 1rem; margin-top: 4px; }
  .newsletter__row { flex-direction: column; }
  .newsletter__button {
    padding: 14px 18px;
    justify-content: center;
    border-top: 1px solid var(--line-medium);
  }
  .footer { flex-direction: column; text-align: center; }
}
