/* Street Truck Garage — showcase site (static build)
   Colors/fonts/tokens ported verbatim from the live storefront's
   tailwind.config.js + src/styles/globals.css. */

:root {
  --black: #0d0d0f;
  --panel: #17171b;
  --line: #2b2b32;
  --red: #6b262b;
  --red-bright: #8a333a;
  --red-bright-hover: #9c3b43;
  --maroon: #431619;
  --silver: #c9ccce;
  --fg: #ececed;
  --fg-subtle: #b3b5b9;
  --fg-muted: #83858a;
  --interactive: #e05a5f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(138, 51, 58, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 500px at 100% 100%, rgba(255, 255, 255, 0.03), transparent 55%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

::selection { background-color: var(--red-bright); color: #fff; }

:focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.content-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--red-bright);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.55);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(138,51,58,0.35), 0 8px 28px -6px rgba(138,51,58,0.45);
  transform: translateY(-2px);
}

/* ===== header / nav ===== */
.topbar { height: 3px; background: var(--red-bright); position: sticky; top: 0; z-index: 51; }
.site-header {
  position: sticky;
  top: 3px;
  z-index: 50;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }
.logo-lg img { height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
}
.nav-links a:hover { color: var(--fg); }

/* ===== hero ===== */
.hero { padding-top: 24px; padding-bottom: 8px; }
.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 50, 0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.55);
  min-height: 360px;
  display: flex;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(13,13,15,0.8) 55%, rgba(13,13,15,0.25) 100%);
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 40px;
  max-width: 560px;
}
.hero-eyebrow {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 600;
}
.hero-h1 { font-size: 40px; line-height: 1.1; color: var(--fg); }
.hero-sub { color: var(--fg-subtle); font-size: 15px; }
.hero-cta { margin-top: 4px; }
.hero-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--fg);
}
.hero-chip:hover { color: var(--red-bright); }
.hero-chip-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--red-bright); }
@media (max-width: 640px) { .hero-chip { display: none; } }

/* ===== page head / builds ===== */
.page-pad { padding-top: 48px; padding-bottom: 64px; }
.page-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.page-head-left { text-align: left; margin: 0 0 40px; max-width: 640px; }
.page-head h1 { font-size: 32px; margin-bottom: 16px; }
.page-lead { color: var(--fg-muted); margin-top: 8px; }

.booked-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  background: rgba(217, 119, 6, 0.1);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
}
.booked-dot { color: #eab308; font-size: 18px; }

.builds-section { margin-bottom: 40px; }
.builds-section h2 { font-size: 20px; margin-bottom: 12px; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 512px) { .thumb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .thumb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .thumb-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1440px) { .thumb-grid { grid-template-columns: repeat(6, 1fr); } }

.thumb-grid-small { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 512px) { .thumb-grid-small { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .thumb-grid-small { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .thumb-grid-small { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1440px) { .thumb-grid-small { grid-template-columns: repeat(8, 1fr); } }

.thumb-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(43, 43, 50, 0.5);
  transition: border-color 0.2s;
}
.thumb-card:hover { border-color: rgba(138, 51, 58, 0.6); }
.thumb-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.thumb-card:hover img { transform: scale(1.1); }
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1) 60%, transparent);
}
.thumb-caption { position: absolute; bottom: 8px; left: 10px; right: 10px; }
.thumb-title { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-desc { color: rgba(255,255,255,0.7); font-size: 11px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== build detail ===== */
.back-link { color: var(--fg-muted); font-size: 13px; display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: var(--fg); }
.build-head { margin-bottom: 32px; }
.build-status {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(236, 237, 237, 0.5);
  font-size: 12px;
  font-weight: 600;
}
.build-head h1 { font-size: 32px; margin-top: 8px; }
.build-desc { color: var(--fg-subtle); max-width: 640px; margin-top: 12px; white-space: pre-line; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 { font-size: 20px; margin-bottom: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== videos ===== */
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 48px;
  max-width: 720px;
  background: linear-gradient(to bottom right, var(--red-bright), rgba(138,51,58,0.7));
  transition: background 0.3s;
}
.channel-card:hover { background: linear-gradient(to bottom right, var(--red-bright), rgba(138,51,58,0.9)); }
@media (min-width: 640px) { .channel-card { flex-direction: row; align-items: center; justify-content: space-between; } }
.channel-card-left { display: flex; align-items: center; gap: 16px; }
.channel-play {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-title { font-size: 17px; font-weight: 600; color: #fff; }
.channel-sub { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 4px; }
.channel-subscribe {
  background: #fff;
  color: var(--red-bright);
  font-weight: 600;
  border-radius: 9999px;
  padding: 10px 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.videos-count { font-size: 24px; margin-bottom: 24px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 512px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-grid-wide { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 512px) { .video-grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid-wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .video-grid-wide { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .video-grid-wide { grid-template-columns: repeat(5, 1fr); } }

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 43, 50, 0.6);
  transition: border-color 0.2s;
}
.video-card:hover { border-color: rgba(138, 51, 58, 0.6); }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover img { transform: scale(1.05); }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.1)); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play svg { height: 56px; width: 56px; border-radius: 50%; background: rgba(138, 51, 58, 0.9); padding: 17px; box-sizing: border-box; }
.video-caption { position: absolute; bottom: 8px; left: 10px; right: 10px; display: flex; flex-direction: column; }
.video-title { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-sub { color: rgba(255,255,255,0.7); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
  padding: 64px 24px;
}
@media (min-width: 512px) { .footer-grid { flex-direction: row; } }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--fg); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-list { list-style: none; margin: 4px 0 0; padding: 0; color: var(--fg-subtle); display: flex; flex-direction: column; gap: 4px; }
.footer-list a:hover { color: var(--red-bright); }
.footer-list-2col { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.footer-contact { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.footer-contact a { color: var(--fg-subtle); }
.footer-contact a:hover { color: var(--red-bright); }
.footer-social { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.footer-social a { color: var(--fg-subtle); font-size: 12px; }
.footer-social a:hover { color: var(--red-bright); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 24px 8px;
  color: var(--fg-muted);
  font-size: 13px;
}
@media (min-width: 512px) { .footer-bottom { flex-direction: row; } }
.footer-tagline {
  display: flex;
  justify-content: space-between;
  padding: 8px 24px 64px;
  color: var(--fg-muted);
  font-size: 13px;
}

/* ---- Homepage sections -------------------------------------------------
   The homepage was a hero and a footer; these carry the builds grid, the
   finished work and the contact band beneath it. Cards themselves reuse
   .thumb-card / .thumb-grid from the Builds gallery rather than a second
   near-identical set of classes. */

.home-sections { padding-bottom: 24px; }

.home-section { margin-bottom: 48px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Matches .hero-eyebrow so section openers read in the same voice as the
   hero rather than introducing a second label style. */
.section-eyebrow {
  display: block;
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.section-link {
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover { color: var(--interactive); }

.home-band {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(to bottom right, var(--panel), rgba(67, 22, 25, 0.55));
  padding: 28px 24px;
  margin-bottom: 56px;
}

.home-band-sub {
  color: var(--fg-subtle);
  font-size: 15px;
  margin-top: 8px;
  max-width: 54ch;
}

.home-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.home-band-link {
  color: var(--fg-subtle);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.home-band-link:hover { color: var(--interactive); }

@media (min-width: 640px) {
  .section-title { font-size: 26px; }
  .home-band { padding: 32px; }
}

@media (min-width: 1024px) {
  .home-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .home-band-actions { justify-content: flex-end; }
}


/* ---- Build page chapters -----------------------------------------------
   Before / The work / Finished, as three obvious numbered runs rather than
   one undifferentiated wall of photos. The numbers are legitimate here:
   a truck comes in, gets worked on, goes out — they describe a real
   sequence rather than decorating the page. */

.stage-block { margin-bottom: 56px; }

.stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Big ghosted number — the thing that makes the three runs read as
   stages at a glance when scrolling past. */
.stage-no {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--red-bright);
  flex: none;
}

.stage-titles { flex: none; }

.stage-eyebrow {
  display: block;
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.stage-head h2 {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.stage-rule { flex: 1; height: 1px; background: var(--line); }

.stage-count {
  flex: none;
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

/* Nothing curated yet. Deliberately a real panel rather than an empty
   page: the build is worth looking at, there just isn't a selection
   ready, and saying so beats publishing every unsorted shot. */
.stage-soon {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 40px 28px;
  margin-bottom: 56px;
  text-align: center;
}

.stage-soon h2 {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 4px 0 10px;
}

.stage-soon p {
  color: var(--fg-subtle);
  font-size: 15px;
  max-width: 46ch;
  margin: 0 auto;
}

.stage-soon a { color: var(--interactive); }
.stage-soon a:hover { text-decoration: underline; }

/* Caption over the photo, revealed on hover — there for whoever wants the
   detail, invisible to everyone just looking at pictures. */
.gallery-tile { position: relative; }

.tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(8, 8, 9, 0.88), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-tile:hover .tile-cap { opacity: 1; }

@media (hover: none) { .tile-cap { opacity: 1; } }

@media (min-width: 640px) {
  .stage-no { font-size: 44px; }
  .stage-head h2 { font-size: 26px; }
  .stage-soon { padding: 56px 32px; }
}

/* ---- One row per stage -------------------------------------------------
   Overrides the generic .gallery-grid ladder so a full stage of ten lands
   on a SINGLE line on a desktop screen. That's the whole point of the
   three-chapter layout: before, work, finished read as three rows you can
   take in at once rather than three blocks that wrap. Thumbs come out
   ~128px at 1440 — small, which is fine, because clicking one opens it
   full size. Narrow screens still wrap; there's no honest way to fit ten
   across a phone. */

.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

@media (min-width: 512px)  { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(8, 1fr); gap: 10px; } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(10, 1fr); } }

/* The tile is an <a> to the full-size image, so it still works with no
   JavaScript — the viewer below just intercepts the click. */
a.gallery-tile { display: block; cursor: zoom-in; }
a.gallery-tile:hover { border-color: rgba(138, 51, 58, 0.6); }
a.gallery-tile img { transition: transform 0.3s; }
a.gallery-tile:hover img { transform: scale(1.06); }

/* At ten-across the caption strip is unreadable, and the photo is the
   point — captions move to the full-size viewer instead. */
@media (min-width: 1024px) { .tile-cap { display: none; } }

/* ---- Full-size viewer --------------------------------------------------
   Opens the clicked photo at full size and steps left/right through THAT
   stage's run only — moving from the last "before" shot into the work
   shots would quietly break the chapter you were looking at. */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.94);
  padding: 56px 16px 72px;
}

.lightbox[data-open] { display: flex; }
body.lb-open { overflow: hidden; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23, 23, 27, 0.88);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lb-btn:hover { background: var(--red-bright); border-color: var(--red-bright); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23, 23, 27, 0.88);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lb-close:hover { background: var(--red-bright); border-color: var(--red-bright); }

.lb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  padding: 0 70px;
  pointer-events: none;
}

.lb-stage {
  font-family: 'Oswald', Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 600;
  color: var(--red-bright);
}

.lb-cap { display: block; color: var(--fg-subtle); font-size: 13px; margin-top: 3px; }
.lb-count { display: block; color: var(--fg-muted); font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lightbox { padding: 64px 80px 80px; }
}
