/* ============================================
   TOKENS
   ============================================ */
:root {
  --graphite: #0A0B0D;
  --graphite-2: #14161A;
  --panel: #181B20;
  --off-white: #EDEAE2;
  --steel: #8A9099;
  --steel-dim: #3A3F45;
  --chrome: #C9CDD2;
  --blue: #2E6BFF;
  --blue-dim: #1A3F99;
  --blue-glow: rgba(46, 107, 255, 0.45);
  --gold: #E8B84B;
  --gold-glow: rgba(232, 184, 75, 0.38);
  --hairline: rgba(237, 234, 226, 0.1);
  --hairline-bright: rgba(201, 205, 210, 0.22);

  --display: 'Oswald', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--off-white);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

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

/* scroll-reveal: disabled — sections always visible */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* faint film-grain texture over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-inner.narrow { max-width: 800px; }

.section { padding: 100px 0; position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  text-shadow: 0 0 10px var(--gold-glow);
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 48px;
  color: var(--off-white);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  box-shadow: 0 0 12px var(--blue-glow);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-bright);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}
.mark span {
  color: var(--blue);
  text-shadow: 0 0 14px var(--blue-glow);
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s ease;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--off-white); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.nav-active { color: var(--off-white); }
.main-nav a.nav-active::after { width: 100%; box-shadow: 0 0 8px var(--blue-glow); background: var(--blue); }

@media (max-width: 640px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 11px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, var(--graphite-2), var(--graphite));
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0.1) 0%, rgba(10,11,13,0.6) 55%, var(--graphite) 100%);
}
/* ambient glow disc — like headlight/taillight wash at night */
.hero-glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 38%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
  opacity: 0.55;
  filter: blur(10px);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 56px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 18px;
  text-shadow: 0 0 12px var(--gold-glow);
  opacity: 0;
  min-height: 1.4em; /* reserve space while typing */
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.25s;
}
.hero-title .accent {
  color: var(--blue);
  text-shadow: 0 0 30px var(--blue-glow), 0 0 60px var(--blue-glow);
}
.hero-sub {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--off-white);
  opacity: 0;
  margin: 18px 0 0;
  animation: fade-up 0.7s ease forwards 0.45s;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-sub { animation: none; opacity: 1; }
}

/* gauge strip — signature element: instrument cluster with start-up sweep */
.gauge-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-bright);
  background: rgba(8, 9, 10, 0.65);
  backdrop-filter: blur(6px);
}
.gauge {
  padding: 18px 20px;
  border-right: 1px solid var(--hairline-bright);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.gauge::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.gauge.swept::before { transform: scaleY(1); }
.gauge:last-child { border-right: none; }
.gauge-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.gauge-value {
  font-family: var(--mono);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  color: var(--off-white);
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 0.6s ease, color 0.6s ease;
}
.gauge.swept .gauge-value {
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
}

@media (max-width: 720px) {
  .gauge-strip { grid-template-columns: repeat(2, 1fr); }
  .gauge:nth-child(2) { border-right: none; }
  .gauge:nth-child(odd) { border-right: 1px solid var(--hairline); }
}

/* ============================================
   STORY
   ============================================ */
.story {
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '"';
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--display);
  font-size: 320px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.story-content p {
  font-size: 18px;
  color: var(--off-white);
  opacity: 0.88;
  margin: 0 0 20px;
}
.story-content p:first-of-type {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: 0.005em;
  opacity: 1;
  line-height: 1.35;
  color: var(--off-white);
  border-left: 3px solid var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
  padding: 16px 24px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, rgba(46,107,255,0.07), transparent 70%);
  border-left: 3px solid var(--blue);
  box-shadow: 0 0 40px -20px var(--blue-glow);
}

/* ============================================
   SPEC SHEET — styled like a window sticker
   ============================================ */
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--hairline-bright);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 60px -30px rgba(255,27,61,0.08);
}
@media (max-width: 720px) {
  .spec-sheet { grid-template-columns: 1fr; }
}
.spec-group {
  padding: 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.spec-group:nth-child(2n) { border-right: none; }
@media (max-width: 720px) {
  .spec-group { border-right: none; }
}
.spec-group h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
  text-shadow: 0 0 10px var(--blue-glow);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--hairline);
  font-size: 14px;
  transition: background 0.2s ease;
}
.spec-row:hover { background: rgba(255, 27, 61, 0.06); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--steel); }
.spec-row .v {
  font-family: var(--mono);
  text-align: right;
  color: var(--off-white);
}

/* ============================================
   LOGBOOK
   ============================================ */
.logbook { display: flex; flex-direction: column; gap: 16px; }
.log-entry {
  padding: 28px 28px 28px 30px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.log-entry:hover {
  border-left-color: var(--blue);
  box-shadow: 0 0 40px -20px var(--blue-glow), inset 0 0 0 0 transparent;
  background: linear-gradient(90deg, rgba(46,107,255,0.05), var(--panel) 40%);
}
.log-meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.log-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(232,184,75,0.1);
  padding: 3px 10px;
  border: 1px solid rgba(232,184,75,0.2);
}
.log-odo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
}
.log-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.log-body {
  font-size: 15px;
  color: var(--off-white);
  opacity: 0.78;
  margin: 0 0 14px;
  line-height: 1.65;
}
.log-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.log-photos img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--hairline-bright);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.log-photos img:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px -8px var(--blue-glow);
}
.log-empty, .gallery-empty {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--steel);
  padding: 20px 0;
}

/* ============================================
   GALLERY
   ============================================ */
/* Gallery images are ALWAYS visible — reveal only animates the section wrapper */
.photo-grid figure,
.photo-grid img {
  opacity: 1 !important;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.photo-grid figure {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  transition: box-shadow 0.3s ease;
}
.photo-grid figure:hover {
  box-shadow: inset 0 0 0 1px var(--blue), 0 0 30px -6px var(--blue-glow);
  z-index: 1;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), filter 0.4s ease;
  filter: saturate(0.92) contrast(1.02);
}
.photo-grid figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.06);
}
.photo-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--off-white);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.photo-grid figure:hover figcaption { opacity: 1; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 11, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--hairline-bright);
  box-shadow: 0 0 60px -10px var(--blue-glow);
}
.lightbox-caption {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
  margin-top: 16px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--blue); }

/* ============================================
   BUILD LIST — categorized parts/mods sheet
   ============================================ */
.build-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-bright);
  border: 1px solid var(--hairline-bright);
}
@media (max-width: 980px) {
  .build-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .build-list { grid-template-columns: 1fr; }
}
.build-category {
  background: var(--panel);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
}
.build-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.build-category-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
  margin: 0;
}
.build-category-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  white-space: nowrap;
}
.build-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.build-item {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--off-white);
  opacity: 0.9;
  padding: 7px 0 7px 18px;
  border-bottom: 1px dashed var(--hairline);
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}
.build-item:last-child { border-bottom: none; }
.build-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue-glow);
}
.build-item:hover {
  opacity: 1;
  padding-left: 22px;
}
.build-list-empty {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--steel);
  padding: 20px 26px;
}
.build-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(46,107,255,0.08), transparent);
  border-left: 3px solid var(--blue);
}
.build-total-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  color: var(--blue);
  text-shadow: 0 0 20px var(--blue-glow);
  line-height: 1;
}
.build-total-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  padding: 60px 0 40px;
  border-top: 1px solid var(--hairline-bright);
  overflow: hidden;
}
.site-footer::before {
  content: '2JZ';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 180px;
  color: var(--blue);
  opacity: 0.035;
  letter-spacing: -0.02em;
  pointer-events: none;
  white-space: nowrap;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.footer-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.footer-title span { color: var(--blue); text-shadow: 0 0 20px var(--blue-glow); }
.footer-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin: 4px 0;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel-dim);
  margin: 0;
  opacity: 0.6;
}
