/* 404SPEED v2 — dark cinematic theme, multi-page */

:root {
  --bg: #0b0b0d;
  --bg-alt: #101014;
  --panel: #141419;
  --line: #232329;
  --text: #f4f4f2;
  --muted: #a9a9b0;
  --faint: #6d6d75;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --gold: #ffc63a;
  --font-display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --radius: 14px;
}

* { 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: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--accent); color: #0b0b0d; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 800px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px 32px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 11, 13, 0.88); backdrop-filter: blur(14px); border-color: var(--line); padding: 12px 32px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 0.04em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-ig { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.nav-ig:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- HOME HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.25) 40%, rgba(11,11,13,0.88) 100%),
    radial-gradient(1100px 520px at 78% 18%, rgba(255, 90, 31, 0.14), transparent 60%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px 28px 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 11vw, 148px); line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.lede { font-size: clamp(18px, 2.4vw, 23px); color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 15px 30px; border-radius: 999px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.btn-primary { background: var(--accent); color: #0b0b0d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 90, 31, 0.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { font-size: 18px; padding: 18px 46px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 44px; border: 2px solid var(--faint); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; z-index: 2; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: 0.3; } }

/* ---------- MARQUEE ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marquee-track { display: inline-flex; gap: 34px; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.marquee-track .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 54px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: -36px 0 54px; }

/* ---------- BUILD CARDS (home) ---------- */
.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.build-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: block; }
.build-card:hover { transform: translateY(-6px); border-color: #3a3a42; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.build-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #17171d; }
.build-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.build-card:hover .build-media img { transform: scale(1.04); }
.build-media.ph { display: flex; align-items: center; justify-content: center; background: radial-gradient(420px 200px at 70% 20%, rgba(255,90,31,0.22), transparent 65%), radial-gradient(500px 300px at 20% 90%, rgba(70,90,180,0.16), transparent 60%), linear-gradient(160deg, #17171d 0%, #0e0e12 100%); }
.build-outline { font-family: var(--font-display); font-weight: 900; font-size: clamp(72px, 8vw, 118px); letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.16); user-select: none; }
.build-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #0b0b0d; background: var(--accent); padding: 7px 14px; border-radius: 999px; }
.build-body { padding: 28px 28px 30px; }
.build-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; margin-bottom: 4px; }
.build-sub { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
.build-body p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.build-link { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.build-card:hover .build-link { color: var(--accent); }

/* ---------- BUILD PAGE HERO ---------- */
.page-hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-shade { background: linear-gradient(180deg, rgba(11,11,13,0.45) 0%, rgba(11,11,13,0.15) 45%, rgba(11,11,13,0.94) 100%); }
.page-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 140px 28px 70px; }
.crumb { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 14px; }
.page-hero h1 span { color: var(--accent); }
.page-hero .tagline { font-size: clamp(18px, 2.4vw, 24px); color: var(--muted); max-width: 620px; margin-bottom: 30px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid var(--line); background: rgba(20,20,25,0.72); backdrop-filter: blur(8px); border-radius: 999px; padding: 10px 20px; font-size: 14px; }
.chip strong { color: var(--accent); font-weight: 700; margin-right: 8px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.photo-credit { position: absolute; right: 24px; bottom: 20px; z-index: 3; font-size: 12px; letter-spacing: 0.08em; color: rgba(244,244,242,0.55); }

/* ---------- SPECS ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.spec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.spec .k { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.spec .v { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: 0.01em; }
.spec .v small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.spec .v .tbd { color: var(--faint); font-size: 20px; }

/* ---------- MOD LISTS ---------- */
.mod-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mod-cat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px; }
.mod-cat h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.mod-cat h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.mod-list { list-style: none; }
.mod-list li { position: relative; padding: 10px 0 10px 4px; border-bottom: 1px dashed #26262c; color: var(--muted); font-size: 15.5px; line-height: 1.55; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.mod-list li:last-child { border-bottom: 0; }
.mod-list .st { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.mod-list .st.done { color: #7de2a8; border-color: rgba(125,226,168,0.35); }
.mod-list .st.plan { color: var(--gold); border-color: rgba(255,198,58,0.35); }
.mod-list .st.idea { color: var(--muted); }

/* ---------- STORY ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.story-copy p { color: var(--muted); font-size: 18px; margin-bottom: 20px; }
.story-copy p strong { color: var(--text); }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--panel); margin: 0; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 8 / 3.4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery-credit { margin-top: 18px; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,0.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid var(--line); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; background: none; border: 1px solid var(--line); color: var(--text); width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox .lb-close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,20,25,0.8); border: 1px solid var(--line); color: var(--text); width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- STABLE / ABOUT / CTA / CONTACT / FOOTER ---------- */
.stable-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stable-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--panel); transition: border-color 0.25s ease, transform 0.25s ease; }
.stable-grid li:hover { border-color: var(--accent); transform: translateY(-4px); }
.stable-grid strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.stable-grid span { color: var(--faint); font-size: 14px; }
.about-copy p { color: var(--muted); font-size: 19px; margin-bottom: 22px; }
.about-copy p:last-child { margin-bottom: 0; }
.ig-cta { position: relative; text-align: center; padding: 120px 0; overflow: hidden; background: radial-gradient(700px 340px at 50% 110%, rgba(255,90,31,0.18), transparent 65%), var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ig-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin-bottom: 32px; }
.ig-note { margin-top: 18px; color: var(--faint); font-size: 14px; letter-spacing: 0.06em; }
.contact-copy { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.contact-email { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 4vw, 40px); color: var(--text); text-decoration: none; letter-spacing: 0.01em; border-bottom: 3px solid var(--accent); padding-bottom: 6px; transition: color 0.2s; }
.contact-email:hover { color: var(--accent); }
.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note { color: var(--faint); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- CALLOUT ---------- */
.callout { border: 1px solid rgba(255,198,58,0.3); background: rgba(255,198,58,0.06); border-radius: var(--radius); padding: 22px 26px; color: var(--muted); font-size: 15.5px; margin-top: 34px; }
.callout strong { color: var(--gold); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .build-grid { grid-template-columns: 1fr; }
  .stable-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-cats { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); z-index: 60; flex-direction: column; gap: 8px; padding: 90px 36px; background: #101014; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.32s ease; margin-left: 0; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 18px; padding: 10px 0; }
  .nav-ig { display: none; }
  .nav-toggle { display: block; z-index: 70; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .hero-inner, .page-hero-inner { padding-top: 110px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
}
@media (max-width: 520px) {
  .stable-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
  .photo-credit { display: none; }
}
