:root {
  --ink: #14181f;
  --ink-2: #3a414c;
  --muted: #6b7380;
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --line: #d9d2c4;
  --accent: #e8a317;
  --accent-ink: #1a1405;
  --header-h: 80px;
  --sky-top: #bcd3e0;
  --sky-bottom: #f1e7d6;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1; margin: 0; letter-spacing: .005em; }
a { color: inherit; }
strong { font-weight: 700; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(20, 24, 31, .88);
  backdrop-filter: blur(10px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; height: 58px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav-cta { background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 999px; opacity: 1 !important; font-weight: 700; }

/* Layout: content left, sticky building right */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.content { grid-column: 1; grid-row: 1; }
.stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 72%);
}
.stage svg { position: absolute; inset: var(--header-h) 0 0 0; width: 100%; height: calc(100% - var(--header-h)); }

.stage-hud { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.stage-chip {
  align-self: flex-start; display: flex; gap: 10px; align-items: baseline;
  background: rgba(20, 24, 31, .86); color: #fff; padding: 8px 14px; border-radius: 8px;
  font: 600 18px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
}
.stage-num { color: var(--accent); font-weight: 800; }
.stage-bar { height: 4px; background: rgba(20, 24, 31, .18); border-radius: 4px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Panels */
.panel {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 8vh) clamp(20px, 6vw, 88px) 10vh;
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line);
  max-width: 760px; margin-left: auto;
}
.panel > * { max-width: 600px; }
.eyebrow, .step {
  margin: 0 0 18px; font: 700 14px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.step { color: #a8720a; }
.hero h1 { font-size: clamp(56px, 7.4vw, 112px); font-weight: 800; text-transform: uppercase; }
.hero h1 .hl { color: var(--accent); }
.hero h1 .eyebrow { display: block; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); margin: 28px 0 32px; }
h2 { font-size: clamp(40px, 4.6vw, 68px); font-weight: 800; text-transform: uppercase; margin-bottom: 24px; }
h3 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.panel p { margin: 0 0 16px; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { border: 2px solid var(--ink); }

.scroll-hint { display: flex; align-items: center; gap: 12px; margin-top: 56px !important; font-size: 14px; color: var(--muted) !important; }
.scroll-hint span { width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative; flex: none; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

.timeline { list-style: none; padding: 0; margin: 8px 0 24px; border-left: 3px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); }
.timeline time { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #a8720a; }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { margin: 0; }
.note { background: var(--ink); color: #e9e6df !important; padding: 18px 20px; border-radius: 10px; border-left: 4px solid var(--accent); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -16px rgba(20, 24, 31, .35); }
.card p { font-size: 15px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; transition: background .2s; }
.contact-item span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
a.contact-item:hover { background: #262d38; }
.contact-list .contact-item { margin: 0; color: #fff; }

.site-footer { padding: 40px clamp(20px, 6vw, 88px) 60px; font-size: 14px; color: var(--muted); max-width: 760px; margin-left: auto; }
.site-footer p, .site-footer address { margin: 0 0 6px; font-style: normal; }

/* Reveal (main.js) */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* SVG scene text */
#site text { font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; }

/* Tablet & mobile: building pinned on top, content below */
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-logo { height: 46px; }
  .layout { grid-template-columns: 1fr; }
  .stage { grid-column: 1; grid-row: 1; top: var(--header-h); height: 42vh; height: 42svh; z-index: 10; margin-top: var(--header-h); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
  .stage svg { inset: 0; height: 100%; }
  .stage-hud { left: 12px; right: 12px; bottom: 10px; gap: 6px; }
  .stage-chip { font-size: 14px; padding: 6px 10px; }
  .content { grid-row: 2; }
  .panel { min-height: 82svh; padding: 6vh 20px 8vh; max-width: none; justify-content: flex-start; }
  .contact { min-height: auto; }
  .hero { min-height: 62svh; padding-top: 6vh; }
  .scroll-hint { margin-top: 32px !important; }
  .cards, .grid-2, .contact-list { grid-template-columns: 1fr; }
  .site-footer { max-width: none; padding-bottom: 32px; }
  .stage { transition: height .4s ease; }
  .stage.is-done { height: 28vh; height: 28svh; }
  #site .lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
