/* ============ STRATA Construction Group ============ */
:root {
  --paper: #efeae2;
  --paper-92: rgba(239, 234, 226, 0.94);
  --ink: #16140f;
  --ink-60: rgba(22, 20, 15, 0.64);
  --orange: #e8490f;
  --concrete: #c9c2b4;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Anton', Impact, sans-serif;
  --body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* ============ SCENE ============ */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.scene svg { width: 100%; height: 100%; display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  mix-blend-mode: normal;
}
.logo {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-block { width: 12px; height: 12px; background: var(--orange); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { border-bottom-color: var(--orange); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 16px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--orange); }

/* ============ PHASE RAIL ============ */
.phase-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phase {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.phase i {
  width: 9px; height: 9px;
  border: 1.5px solid currentColor;
  display: inline-block;
  transition: background 0.3s, transform 0.3s;
}
.phase.done i { background: var(--ink); }
.phase.active { color: var(--orange); font-weight: 700; }
.phase.active i { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }

/* ============ HUD ============ */
.hud {
  position: fixed;
  left: 32px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-92);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.hud-bar {
  width: 130px; height: 10px;
  border: 1.5px solid var(--ink);
  display: inline-block;
  overflow: hidden;
}
#hudFill { display: block; height: 100%; width: 0%; background: var(--orange); }
.hud-pct { min-width: 40px; font-weight: 700; }

/* ============ SECTIONS ============ */
main { position: relative; z-index: 10; }
.section {
  min-height: 132vh;
  display: flex;
  align-items: center;
  padding: 120px 7vw;
}
.section.hero {
  min-height: 100vh;
  position: relative;
}
.section-right { justify-content: flex-start; }

.panel {
  max-width: 620px;
  background: var(--paper-92);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 44px 46px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.panel.in { opacity: 1; transform: translateY(0); }
.panel-wide { max-width: 860px; }
.panel-clear {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 700px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.kicker::before { content: "▮ "; }

h1 {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.panel p, .lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 56ch;
}
.lede { font-size: 19px; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 16px 26px;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(22,20,15,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.btn:hover { background: var(--orange); border-color: var(--orange); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(22,20,15,0.3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.scroll-cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; color: var(--orange); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ ABOUT ============ */
.media { margin: 26px 0 8px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.media img { width: 100%; display: block; }
.media figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.stats { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.stat strong {
  font-family: var(--display);
  font-size: 46px;
  display: block;
  color: var(--orange);
  line-height: 1;
}
.stat span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ============ SERVICES ============ */
.services { list-style: none; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.services li {
  display: flex;
  gap: 14px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(22,20,15,0.25);
}
.services .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  padding-top: 3px;
}
.services p { font-size: 13.5px; line-height: 1.5; color: var(--ink-60); }

/* ============ PROJECTS ============ */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.project {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
}
.project-hero { grid-column: 1 / -1; }
.project img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.project:not(.project-hero) img { aspect-ratio: 4/3; }
.project figcaption {
  padding: 12px 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.project figcaption strong { font-size: 15px; }
.project figcaption span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ============ TIMELINE ============ */
.timeline { list-style: none; margin-top: 24px; }
.timeline li {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 2px solid var(--ink);
  margin-left: 6px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 3px;
  width: 12px; height: 12px;
  background: var(--orange);
  border: 2px solid var(--ink);
}
.timeline strong {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.timeline p { font-size: 14px; color: var(--ink-60); line-height: 1.55; }

/* ============ AMENITIES ============ */
.callout {
  margin-top: 28px;
  border: 2px solid var(--ink);
  background: #dff0ef;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 26px;
  display: flex;
  gap: 22px;
  align-items: center;
}
.callout-num {
  font-family: var(--display);
  font-size: 64px;
  color: var(--orange);
  line-height: 1;
}
.callout p { font-size: 14px; line-height: 1.55; }

/* ============ CONTACT ============ */
.contact-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.contact-form input, .contact-form textarea {
  font-family: var(--mono);
  font-size: 13px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  width: 100%;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--orange); outline-offset: -1px; }
.contact-meta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
}
.footer {
  position: absolute;
  bottom: 18px;
  right: 7vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* night mode — flipped once the dusk scrub passes halfway */
body.night .logo,
body.night .nav-links a:not(.nav-cta) { color: var(--paper); }
body.night .nav-cta { background: var(--orange); }
body.night .phase { color: rgba(239, 234, 226, 0.6); }
body.night .phase.done i { background: var(--paper); }
body.night .phase.active { color: var(--orange); }
body.night .footer { color: rgba(239, 234, 226, 0.75); }
body.night .scroll-cue { color: var(--paper); }
#contact { position: relative; padding-bottom: 160px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .phase-rail { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 90px 6vw; min-height: 120vh; }
  .panel { padding: 30px 26px; box-shadow: 6px 6px 0 var(--ink); }
  .services { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hud { left: 16px; bottom: 16px; padding: 8px 10px; }
  .hud-bar { width: 70px; }
  .hud-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transition: none; }
  .scroll-cue span { animation: none; }
}
