/* ============ Bespoke Refit Manager — marketing site ============ */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #04080d;
  --bg-alt: #070d14;
  --panel: #0b141d;
  --panel-2: #0f1a25;
  --border: #1c2b3b;
  --text: #e6edf4;
  --text2: #94a5b6;
  --accent: #4a90d9;
  --green: #5cb98a;
  --red: #e05252;
  --gold: #c9a860;
  --gold-soft: rgba(201, 168, 96, 0.14);
  --radius: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
  background: linear-gradient(115deg, #f2ede2 35%, #e8d5a4 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .gold { color: var(--gold); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

h3 { font-size: 1.15rem; margin-bottom: 10px; }

p { color: var(--text2); }

a { color: inherit; text-decoration: none; }

.gold { color: var(--gold); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-lede {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

.btn-gold { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn-gold:hover {
  background: #d9ba74;
  border-color: #d9ba74;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(201, 168, 96, 0.35);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-small { padding: 8px 18px; font-size: 0.85rem; background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn-small:hover { background: #d9ba74; }

.btn-large { padding: 15px 38px; font-size: 1.05rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--text2); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

/* ============ Film grain ============ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
}
.hero > .container { position: relative; z-index: 1; }

/* faint blueprint grid, fading out from the top */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 144, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 217, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 75%);
}

/* aurora blobs */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.blob.b1 { width: 560px; height: 560px; background: #10304f; top: -220px; right: -100px; animation: drift1 19s ease-in-out infinite alternate; }
.blob.b2 { width: 440px; height: 440px; background: #241d0e; bottom: -160px; left: -140px; animation: drift2 23s ease-in-out infinite alternate; }
.blob.b3 { width: 380px; height: 380px; background: #0a2033; top: 30%; left: 42%; animation: drift3 27s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(80px, -60px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-70px, -50px) scale(0.92); } }

.hero-copy { max-width: 760px; margin-bottom: 56px; }
.hero-copy .lede { font-size: 1.12rem; margin: 24px 0 32px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ App demo frame ============ */
.demo-wrap { max-width: 1160px; perspective: 1500px; }
/* the reveal blur would flatten the 3D tilt — keep this wrapper filter-free */
.demo-wrap.reveal, .demo-wrap.reveal.in { filter: none; }

.app-frame {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* traveling light beam around the frame border */
.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--angle),
    transparent 0deg, transparent 250deg,
    rgba(201, 168, 96, 0.9) 300deg,
    rgba(74, 144, 217, 0.55) 330deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: beam 7s linear infinite;
}
@keyframes beam { to { --angle: 360deg; } }

/* cursor glare */
.app-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(640px circle at var(--gx, 50%) var(--gy, 50%), rgba(232, 213, 164, 0.05), transparent 45%);
}
.demo-wrap:hover .app-frame::after { opacity: 1; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.app-id { display: flex; align-items: center; gap: 12px; }
.app-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.app-logo svg { width: 20px; height: 20px; }
.app-title { font-weight: 700; font-size: 15px; }
.app-sub { color: var(--text2); font-size: 11.5px; }
.app-actions { display: flex; gap: 8px; }

.app-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.app-btn-blue { color: var(--accent); border: 1px solid rgba(74,144,217,0.4); background: transparent; }
.app-btn-green { background: #2e9e5b; color: #fff; }
.app-btn-red { background: rgba(224,82,82,0.2); color: #ef8a8a; padding: 3px 10px; }
.app-btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; }

.app-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.app-search {
  flex: 1;
  min-width: 120px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 12px;
  color: var(--text2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.app-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 2px solid var(--accent);
  position: relative;
}
.app-tab {
  border: none;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 7px;
  background: var(--panel);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.app-tab:hover { color: var(--text); }
.app-tab.active { background: var(--accent); color: #fff; }

.tab-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0;
}
.tab-progress.run { animation: tabprog 7s linear forwards; }
@keyframes tabprog { from { width: 0; } to { width: 100%; } }

.app-panel { display: none; }
.app-panel.active { display: block; animation: panelIn 0.35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.app-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  flex-wrap: wrap;
}

/* ===== Gantt panel ===== */
.gantt-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
}
.gantt-today-chip { background: var(--red); color: #fff; padding: 2px 9px; border-radius: 4px; font-weight: 700; }
.gantt-months { display: flex; flex: 1; }
.gantt-months span { flex: 1; text-align: center; }

.gantt-body { position: relative; padding: 12px 0; }

.gantt-grid {
  position: absolute;
  inset: 0 0 0 220px;
  display: flex;
  pointer-events: none;
}
.gantt-grid span { flex: 1; border-left: 1px solid rgba(37, 53, 70, 0.55); }

.gantt-todayline {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(220px + (100% - 220px) * 0.46);
  width: 2px;
  background: var(--red);
  z-index: 3;
}
.gantt-todayline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: todaypulse 2.4s ease-in-out infinite;
}
@keyframes todaypulse { 0%,100% { opacity: 0.2; box-shadow: 0 0 0 0 rgba(224,82,82,0.5); } 50% { opacity: 0.7; box-shadow: 0 0 10px 1px rgba(224,82,82,0.45); } }
.gantt-todayline span {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
}

.g-row {
  display: flex;
  align-items: center;
  height: 30px;
  border-bottom: 1px solid rgba(37, 53, 70, 0.4);
  position: relative;
}
.g-label {
  width: 220px;
  flex-shrink: 0;
  padding: 0 14px;
  color: var(--text2);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--border);
  z-index: 2;
  background: var(--bg-alt);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}
.g-label i { font-style: normal; color: #52708f; }

.g-bar {
  position: absolute;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2c4a6e, #223a57);
  border: 1px solid #3c6288;
  width: 0;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.3, 1);
}
/* --x / --w are unitless percentages of the timeline area (row width minus label column) */
.g-row .g-bar { left: 220px; margin-left: calc((100% - 220px) * var(--x) / 100); }
.gantt.animated .g-bar { width: calc((100% - 220px) * var(--w) / 100); }
.g-bar.late { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(224,82,82,0.35); }
.g-bar.done { background: linear-gradient(180deg, #2a5b41, #1f4432); border-color: #3f7f5c; }

/* ===== Job panel ===== */
.job-card { padding: 18px 22px; }
.job-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.job-head h4 { font-size: 16px; }
.job-close { color: var(--text2); }

.job-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.job-field label { display: block; color: var(--text2); font-size: 10.5px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.job-input {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-permits label, .job-steps label { display: block; color: var(--text2); font-size: 10.5px; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.job-permits { margin-bottom: 16px; }

.permit-row { display: flex; flex-wrap: wrap; gap: 7px; }
.permit {
  padding: 3px 11px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.permit.sm { padding: 2px 8px; font-size: 10px; }
.permit.hw { background: #e0762b; color: #fff; }
.permit.ei { background: #e04f9d; color: #fff; }
.permit.wa { background: rgba(74,144,217,0.25); color: #7db4e8; }
.permit.os { background: rgba(92,185,138,0.2); color: var(--green); }
.permit.gov { background: var(--gold-soft); color: var(--gold); }
.permit.dim { background: var(--panel-2); color: #5b7189; }

.steps-progress {
  height: 5px;
  background: var(--panel-2);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}
.steps-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #6aa8e6);
  transition: width 1.1s ease;
}
.app-panel.animated .steps-progress span { width: var(--p); }

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 11px;
  margin-bottom: 6px;
  font-size: 12px;
}
.step-owner { margin-left: auto; color: var(--text2); font-size: 10.5px; }
.step-check {
  width: 15px; height: 15px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: all 0.25s;
}
.step.ticked .step-check { background: var(--green); border-color: var(--green); }
.step.ticked .step-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #0b131b;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step.pending { opacity: 0.55; }

.job-update {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 12px 14px;
}
.ju-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-update p { color: var(--text); font-size: 12.5px; margin: 8px 0 10px; }
.ju-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== Contractors panel ===== */
.ctr-wrap { padding: 18px 22px 0; }
.ctr-title { font-size: 15px; margin-bottom: 14px; }
.ctr-group {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 14px;
  overflow: hidden;
}
.ctr-group-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel);
  font-weight: 600;
  font-size: 13px;
}
.ctr-count { color: var(--accent); font-size: 11px; border: 1px solid rgba(74,144,217,0.4); border-radius: 5px; padding: 1px 8px; }
.ctr-job { padding: 11px 14px; border-top: 1px solid rgba(37,53,70,0.5); }
.ctr-job-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ctr-id { color: #52708f; font-size: 11px; }
.ctr-name { font-weight: 600; font-size: 12.5px; flex: 1; }
.ctr-job-mid { display: flex; align-items: center; gap: 7px; margin: 6px 0; flex-wrap: wrap; }
.ctr-dates { color: var(--text2); font-size: 10.5px; font-family: ui-monospace, monospace; }
.ctr-prog label { color: var(--text2); font-size: 10.5px; display: block; margin-bottom: 3px; }

.pbar { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; max-width: 220px; }
.pbar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 1s ease 0.15s; }
.app-panel.animated .pbar span, .in .pbar span { width: var(--p); }

/* ===== Safety panel ===== */
.safety-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 18px 22px; }
.safety-plan {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  padding: 12px;
}
.safety-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.deckplan { width: 100%; height: auto; }
.dp-label { fill: #52708f; font-size: 10px; font-family: var(--font-body); letter-spacing: 0.08em; }
.dp-dot { fill: var(--green); }
.dp-dot.hot { fill: #e0762b; animation: dotpulse 1.8s ease-in-out infinite; }
.dp-dot.ok { fill: var(--green); }
.dp-dot.pulse { fill: var(--accent); animation: dotpulse 2.2s ease-in-out infinite; }
.dp-dot.pulse.d2 { animation-delay: 0.5s; }
.dp-dot.pulse.d3 { animation-delay: 1s; }
.dp-dot.pulse.d4 { animation-delay: 1.5s; }
@keyframes dotpulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.safety-side { display: flex; flex-direction: column; gap: 12px; }
.watch-box {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  padding: 12px 14px;
}
.watch-box h5 { font-size: 12px; margin-bottom: 9px; }
.watch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(37,53,70,0.5);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.watch-area { font-weight: 600; }
.watch-who { color: var(--accent); }
.watch-row .app-btn-red { margin-left: auto; }

.area-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.area {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text2);
  font-size: 10.5px;
  font-weight: 600;
}
.area.on { background: rgba(92,185,138,0.15); color: var(--green); }

.demo-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text2);
  margin-top: 18px;
}

/* ============ Chips (shared) ============ */
.mock-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mock-chip.pending { background: var(--gold-soft); color: var(--gold); }
.mock-chip.verify { background: rgba(74, 144, 217, 0.15); color: var(--accent); }
.mock-chip.ok { background: rgba(92, 185, 138, 0.15); color: var(--green); }
.mock-chip.gold { background: var(--gold); color: #14100a; }
.mock-time { color: var(--text2); font-size: 10.5px; }

/* ============ Capabilities ticker ============ */
.ticker-band {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: tickerMove 38s linear infinite;
}
.ticker span {
  color: var(--text2);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ============ Card spotlight ============ */
.pillar, .module, .edition, .roadmap-card, .challenge-feature { position: relative; overflow: hidden; }
.pillar::after, .module::after, .edition::after, .roadmap-card::after, .challenge-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(74, 144, 217, 0.09), transparent 65%);
}
.edition::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 168, 96, 0.09), transparent 65%);
}
.pillar:hover::after, .module:hover::after, .edition:hover::after,
.roadmap-card:hover::after, .challenge-feature:hover::after { opacity: 1; }

/* ============ Stats band ============ */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.9rem;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label { color: var(--text2); font-size: 0.88rem; }

/* ============ Sections ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Daily loop */
.loop-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 48px;
}
.loop-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}
.loop-step.lit { opacity: 1; transform: none; border-color: var(--gold); }
.loop-step h3 { font-size: 1.02rem; }
.loop-step p { font-size: 0.88rem; }
.loop-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.loop-arrow { align-self: center; color: var(--gold); font-size: 1.3rem; opacity: 0.6; }

/* Modules — bento layout */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.module-grid .module:nth-child(1),
.module-grid .module:nth-child(4) { grid-column: span 2; }
.module {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.module:hover { border-color: var(--accent); }
.module p { font-size: 0.92rem; }

.mini-visual {
  margin-top: auto;
  padding-top: 18px;
}
.mini-gantt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
}
.mini-bar {
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2c4a6e, #223a57);
  border: 1px solid #3c6288;
  margin-left: var(--x);
  width: 0;
  transition: width 0.9s ease;
}
.in .mini-bar { width: var(--w); }
.mini-bar.late { border-color: var(--red); }
.mini-bar.alt { background: linear-gradient(180deg, #2a5b41, #1f4432); border-color: #3f7f5c; }
.mini-today {
  position: absolute;
  top: 8px; bottom: 8px;
  left: 55%;
  width: 2px;
  background: var(--red);
  opacity: 0.7;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--text2);
}
.mini-row span:first-child { flex: 1; color: var(--text); }
.mini-row .pbar { flex: 1.2; }
.mini-row em { font-style: normal; font-size: 10.5px; }

/* Challenges */
.challenge-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 44px;
}
.challenge-text h3 { color: var(--gold); font-size: 1.25rem; }

.vat-pipeline { display: flex; align-items: center; gap: 10px; }
.vat-stage {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  opacity: 0.4;
  transform: scale(0.97);
  transition: all 0.5s ease;
}
.vat-stage.lit { opacity: 1; transform: none; border-color: var(--gold); }
.vat-stage h5 { font-size: 0.85rem; margin: 8px 0 3px; }
.vat-stage p { font-size: 0.75rem; }
.vat-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transition: background 0.4s;
}
.vat-stage.lit .vat-dot { background: var(--gold); }
.vat-line { width: 26px; height: 2px; background: var(--border); flex-shrink: 0; }

.challenge-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 8px;
}
.challenge { border-top: 1px solid var(--border); padding-top: 24px; }
.challenge h3 { color: var(--gold); }
.challenge.wide { grid-column: 1 / -1; }

.history-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.hist-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12px;
}
.hist-item .mock-time { display: block; margin-bottom: 6px; }
.hist-item p { margin-top: 7px; color: var(--text); font-size: 11.5px; }

/* Local editions */
.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.edition {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.edition h3 { font-size: 1.05rem; }
.edition p { font-size: 0.9rem; }
.edition-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.edition-visual { margin-top: auto; padding-top: 18px; }

.deadline-track {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--text2);
}
.deadline-track .dt-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.deadline-track .dt-head b { color: var(--text); font-weight: 600; }
.deadline-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.deadline-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #e0b96e); transition: width 1s ease 0.2s; }
.in .deadline-bar span { width: var(--p); }
.deadline-track .dt-foot { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; }
.deadline-track .dt-warn { color: var(--gold); font-weight: 600; }

.edition-note {
  margin-top: 36px;
  text-align: center;
  font-size: 1rem;
  color: var(--text2);
}
.edition-note b { color: var(--gold); font-weight: 600; }

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.roadmap-card {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.roadmap-card h3 { margin-top: 14px; }
.roadmap-card p { font-size: 0.92rem; }

.vessel-profile { width: 100%; height: auto; margin-top: 20px; }

/* 3D exploded deck view */
.deck3d { width: 100%; height: auto; margin-top: 20px; }
.deck-face { fill: rgba(74, 144, 217, 0.07); stroke: #2d4560; stroke-width: 1.5; }
.deck-side { fill: #060c13; stroke: #2d4560; stroke-width: 1.5; }
.deck-conn { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.5; }
.deck-callout-box { fill: var(--panel); stroke: var(--gold); stroke-width: 1; }
.deck-callout-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.dp-title { fill: var(--text); font-size: 11.5px; font-weight: 600; font-family: var(--font-body); }
.dp-sub { fill: var(--gold); font-size: 9.5px; font-family: var(--font-body); letter-spacing: 0.04em; }
.dp-dot.gold { fill: var(--gold); animation: dotpulse 1.8s ease-in-out infinite; }

.fin-mock { margin-top: 20px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.fin-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid rgba(37,53,70,0.5);
  font-size: 12px;
}
.fin-row.head { border-top: none; background: var(--bg-alt); color: var(--text2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.fin-row span:nth-child(2) { font-family: ui-monospace, monospace; color: var(--text2); }

/* Bespoke band */
.bespoke-band { text-align: center; max-width: 720px; }
.bespoke-band p { font-size: 1.1rem; }

/* Contact */
.section-contact {
  background:
    radial-gradient(ellipse 800px 400px at 50% 120%, rgba(201, 168, 96, 0.1), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-inner { max-width: 640px; }
.contact-inner .section-lede { margin: 0 auto 36px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-note { font-size: 0.85rem; }
.footer-note a { color: var(--gold); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(7px);
  transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .loop-step, .vat-stage { opacity: 1; transform: none; filter: none; transition: none; }
  .gantt .g-bar, .mini-bar, .pbar span, .steps-progress span { transition: none; }
  .dp-dot.hot, .dp-dot.pulse, .dp-dot.gold, .gantt-todayline::after { animation: none; }
  .blob, .ticker, .app-frame::before { animation: none; }
  .app-frame { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .loop-flow { grid-template-columns: 1fr 1fr; }
  .loop-arrow { display: none; }
  .challenge-feature { grid-template-columns: 1fr; gap: 26px; }
  .history-strip { grid-template-columns: repeat(2, 1fr); }
  .safety-wrap { grid-template-columns: 1fr; }
  .job-meta { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

@media (max-width: 900px) {
  .module-grid, .challenge-list, .roadmap-grid, .edition-grid { grid-template-columns: 1fr; }
  .module-grid .module:nth-child(1),
  .module-grid .module:nth-child(4) { grid-column: auto; }
  .challenge.wide { grid-column: auto; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; }
  .nav-links .btn { margin-top: 8px; }
}

@media (max-width: 640px) {
  .loop-flow { grid-template-columns: 1fr; }
  .g-label { width: 150px; }
  .gantt-grid { inset: 0 0 0 150px; }
  .gantt-todayline { left: calc(150px + (100% - 150px) * 0.46); }
  .g-row .g-bar { left: 150px; margin-left: calc((100% - 150px) * var(--x) / 100); }
  .gantt.animated .g-bar { width: calc((100% - 150px) * var(--w) / 100); }
  .vat-pipeline { flex-direction: column; }
  .vat-line { width: 2px; height: 20px; }
  .app-searchbar .app-btn:nth-child(n+4) { display: none; }
}
