/* ============ Tokens ============ */
:root {
  --ink-0: #0a0d0b;
  --ink-1: #10140f;
  --ink-2: #171c14;
  --text: #e9e6dc;
  --text-dim: #98a192;
  --amber: #e0a43c;
  --line: rgba(233, 230, 220, 0.12);
  --line-soft: rgba(233, 230, 220, 0.07);
  --display: "Goldman", sans-serif;
  --body: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad: clamp(20px, 5vw, 72px);
}

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

/* height:auto is required: the width/height attributes on every <img> would
   otherwise beat aspect-ratio and render images at their intrinsic height. */
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
}

h2 { font-size: clamp(30px, 4.6vw, 58px); letter-spacing: -0.02em; }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: 0; }

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 18px;
}

.section { padding: clamp(80px, 12vh, 150px) var(--pad); }

a { color: inherit; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-0);
  background: var(--amber);
  padding: 15px 28px;
  border: 1px solid var(--amber);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: #f0b954; border-color: #f0b954; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(233, 230, 220, 0.06); color: var(--text); border-color: var(--text-dim); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { width: 26px; height: 26px; color: var(--amber); }
.logo-word {
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.logo-word em { font-style: normal; color: var(--amber); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-scene, .hero-scene .scene-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(52px, 11.5vw, 190px);
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: -0.12em;
  user-select: none;
}
.hero-title span { display: block; }
.hero-title-line2 {
  color: transparent;
  -webkit-text-stroke: 2px rgba(233, 230, 220, 0.55);
  letter-spacing: 0.28em;
  font-size: 0.52em;
  margin-top: 0.08em;
}

.scene-fore {
  position: absolute;
  z-index: 3;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-58%);
  width: min(760px, 82vw);
  height: auto;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 0 var(--pad) 11vh;
  max-width: 560px;
}
.hero-sub { color: var(--text-dim); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll-cue {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}
.hero-scroll-cue .mono { writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.cue-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* dust motes */
.hero-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: drift 9s linear infinite;
}
.hero-dust span:nth-child(1) { left: 18%; bottom: 22%; animation-delay: 0s; }
.hero-dust span:nth-child(2) { left: 30%; bottom: 14%; animation-delay: 1.6s; }
.hero-dust span:nth-child(3) { left: 46%; bottom: 26%; animation-delay: 3.1s; }
.hero-dust span:nth-child(4) { left: 61%; bottom: 12%; animation-delay: 4.4s; }
.hero-dust span:nth-child(5) { left: 74%; bottom: 24%; animation-delay: 6s; }
.hero-dust span:nth-child(6) { left: 86%; bottom: 16%; animation-delay: 7.5s; }
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.5; }
  85% { opacity: 0.25; }
  100% { transform: translate(-46px, -110px); opacity: 0; }
}

/* ============ Approach ============ */
.section-head { max-width: 900px; margin-bottom: clamp(36px, 6vh, 64px); }

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.approach-copy p { color: var(--text-dim); max-width: 58ch; }
.approach-copy p + p { margin-top: 1.2em; }

.approach-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact-label { color: var(--text-dim); text-transform: uppercase; font-size: 12px; }
.fact-value { font-family: var(--display); text-transform: uppercase; font-size: 17px; }

/* ============ Build timeline ============ */
.timeline-wrap {
  position: relative;
  height: 520vh;
  background: var(--ink-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 90px var(--pad) 28px;
  overflow: hidden;
}
.timeline-head { flex: none; }
.timeline-head h2 { margin-top: 4px; }

.timeline-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
}
#buildSvg {
  width: 100%;
  height: 100%;
  max-height: 62vh;
}

/* line-drawing strokes */
#buildSvg .draw, #buildSvg .grade, .project-art .pline path, .project-art .pgrade {
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#buildSvg .grade { stroke: var(--text); stroke-width: 2.5; }
#buildSvg .fill { opacity: 0; }
#buildSvg .winfill { fill: url(#winGlow); }

.phase-copy {
  position: absolute;
  right: 0;
  top: 0;
  width: min(360px, 38%);
}
.phase {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.phase.active { opacity: 1; transform: none; }
.phase-num { color: var(--amber); display: block; margin-bottom: 10px; text-transform: uppercase; }
.phase h3 { margin-bottom: 10px; }
.phase p { color: var(--text-dim); font-size: 15px; }

.phase-bar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 22px;
}
.phase-bar .seg i {
  display: block;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.phase-bar .seg i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.phase-bar .seg span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ Stats ============ */
.stats { border-bottom: 1px solid var(--line-soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { border-left: 1px solid var(--line); padding-left: 22px; }
.stat-value {
  display: block;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.stat-label { color: var(--text-dim); font-size: 14px; }

/* ============ Projects ============ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project {
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project:hover { border-color: var(--line); transform: translateY(-4px); }
.project-art { padding: 20px 16px 0; }
.project-art svg { width: 100%; height: auto; display: block; }
.project-art .pwin rect { fill: var(--amber); opacity: 0.8; }
.project-meta { padding: 18px 22px 24px; border-top: 1px solid var(--line-soft); }
.project-meta .mono { color: var(--text-dim); margin-top: 6px; font-size: 12px; }

/* ============ CTA ============ */
.cta-band { padding-bottom: clamp(90px, 14vh, 170px); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  padding: clamp(44px, 7vw, 90px);
  text-align: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 120%;
  background: radial-gradient(ellipse at center bottom, rgba(224, 164, 60, 0.13), transparent 65%);
  pointer-events: none;
}
.cta-sub {
  color: var(--text-dim);
  max-width: 52ch;
  margin: 16px auto 32px;
}
.cta-card .hero-actions { justify-content: center; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px var(--pad);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 28px;
  color: rgba(152, 161, 146, 0.6);
  font-size: 11px;
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .timeline-sticky { padding-top: 76px; }
  .timeline-stage { align-items: center; }
  #buildSvg { max-height: 44vh; }
  .phase-copy {
    position: static;
    width: 100%;
    order: 2;
    min-height: 150px;
    margin-top: 8px;
  }
  .timeline-stage { flex-direction: column; align-items: stretch; }
  #buildSvg { flex: none; }
  .phase { position: absolute; }
  .phase-copy { position: relative; }
  .phase-bar .seg span { font-size: 9px; letter-spacing: 0; }
  .hero-copy { padding-bottom: 14vh; }
  .hero-scroll-cue { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cue-line, .hero-dust span { animation: none; }
  .phase { transition: none; }
}

/* ---- back-link to the showcase (added for Vexil Studio) ---- */
.demo-tag{
  position:fixed; right:16px; bottom:16px; z-index:60;
  display:flex; flex-direction:column; gap:1px;
  background:#E0A43C; color:#0A0D0B;
  padding:10px 15px; border-radius:2px; text-decoration:none;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px; letter-spacing:.05em; line-height:1.5;
  box-shadow:0 6px 22px rgba(0,0,0,.45);
}
.demo-tag span{ opacity:.68; text-transform:uppercase; font-size:9.5px; letter-spacing:.13em; }
.demo-tag strong{ font-weight:500; font-size:12px; }
.demo-tag:hover{ background:#EDEDE7; }

/* ============================================================
   Night Pour — rework pass, 2026-08-17
   Scene: the jobsite at 4am, one worklight, the pour about to start.
   This demo already ran the system the others were rebuilt onto — a single
   amber accent, square edges, no elevation, display type at real scale. What
   was inconsistent: section headings sat well below the hero's scale, and the
   back-link broke the page's own no-shadow / no-radius rule.
   ============================================================ */

/* Ceiling raised to match the hero's scale. The floor stays at 30px — at 34px
   the longest heading pushed 8px past the right edge on a 375px screen. */
h2 { font-size: clamp(30px, 6vw, 78px); letter-spacing: -0.03em; }
h3 { font-size: clamp(19px, 2.2vw, 27px); }

/* nothing on this page is raised, and nothing is rounded */
.demo-tag{
  border-radius:0;
  box-shadow:none;
  border:1px solid var(--ink-0);
}


/* ---- finished work, photographed. Amber stays the only colour in the system,
   so the photographs are warmed and dimmed to sit inside it rather than fight it. */
.project-art img{
  width:100%; aspect-ratio:3/2; object-fit:cover; display:block;
  filter:brightness(.82) contrast(1.06) sepia(.18) saturate(.9);
  transition:filter .35s ease;
}
.project-art:hover img{ filter:brightness(1) contrast(1) sepia(0) saturate(1); }
