:root {
  --bg: #0d0d0f;
  --bg-2: #141417;
  --surface: #1b1b1f;
  --surface-2: #232328;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f2efe9;
  --muted: #a5a29a;
  --dim: #6f6d67;
  --red: #e0262d;
  --red-deep: #b21b21;
  --yellow: #f2b705;
  --white: #f7f5f0;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: 0.005em; margin: 0 0 0.4em; text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.04em; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,15,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(13,13,15,0.92); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 30px; height: 30px; color: var(--white); }
.brand:hover .brand-mark { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-word span { color: var(--red); }
.site-nav > ul { display: flex; align-items: center; gap: .1rem; }
.site-nav > ul > li { position: relative; }
.site-nav a { display: block; padding: .55rem .8rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: 4px; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--white); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.has-menu { display: flex; align-items: center; }
.menu-caret { background: none; border: 0; padding: 0 .45rem 0 0; margin-left: -.5rem; cursor: pointer; color: var(--muted); height: 100%; }
.menu-caret::before { content: ""; display: inline-block; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); position: relative; top: -2px; }
.site-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: .4rem; display: none; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.submenu a { font-size: 1rem; padding: .5rem .8rem; }
.site-nav .has-menu:hover .submenu, .site-nav .has-menu:focus-within .submenu, .site-nav .has-menu.is-open .submenu { display: flex; }
.nav-cta a { color: var(--white); background: var(--red); margin-left: .5rem; border-radius: 4px; padding: .5rem .95rem; }
.nav-cta a:hover { background: var(--red-deep); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); border-top: 1px solid var(--line); display: none; overflow-y: auto; padding: 1rem 1.25rem 3rem; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { font-size: 1.5rem; padding: .9rem .25rem; }
  .has-menu { flex-wrap: wrap; justify-content: space-between; }
  .has-menu > a { flex: 1; }
  .menu-caret { padding: 0 .75rem; margin: 0; }
  .site-nav .submenu { position: static; width: 100%; border: 0; background: none; box-shadow: none; padding: 0 0 .5rem .75rem; }
  .submenu a { font-size: 1.2rem; color: var(--muted); }
  .nav-cta a { margin: 1rem 0 0; text-align: center; }
}

/* typography helpers */
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow-light { color: rgba(255,255,255,.85); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--muted); max-width: 60ch; font-weight: 400; }
.lede strong { color: var(--text); font-weight: 600; }
.accent { color: var(--red); }
.accent-y { color: var(--yellow); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85rem; letter-spacing: .05em; }
.prose { max-width: 68ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul { list-style: square; padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--yellow); border-bottom: 1px solid rgba(242,183,5,.35); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.4rem; border-radius: 4px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--white); }
.btn-light { background: var(--white); color: #111; }
.btn-light:hover { background: #fff; }
.btn::after { content: "→"; font-family: var(--body); font-weight: 600; }

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head p { margin: 0; }
.section-head .lede { max-width: 52ch; }
.section-head .more { font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.section-head .more::after { content: " →"; }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: saturate(1.05) contrast(1.05); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,13,15,.35) 0%, rgba(13,13,15,.15) 35%, rgba(13,13,15,.92) 100%); }
.hero-body { padding: 5rem 0 3.5rem; }
.hero h1 { max-width: 12ch; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { color: #e8e4dc; max-width: 54ch; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-meta { position: absolute; right: 1.25rem; bottom: 1.25rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* marquee */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 3rem; padding: .85rem 0; animation: ticker 40s linear infinite; font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-size: .95rem; }
.ticker-track span::before { content: "◆"; color: var(--red); margin-right: 3rem; font-size: .6em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .brand:hover .brand-mark { animation: none; } }

/* page hero (interior) */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 10% -10%, rgba(224,38,45,.18), transparent 60%); }
.page-hero h1 { max-width: 16ch; }
.page-hero-img { position: relative; min-height: 46vh; display: grid; align-items: end; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero-img .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,15,.2), rgba(13,13,15,.95)); }
.page-hero-img .wrap { padding: 4rem 0 2.5rem; }

/* grids and cards */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-img.tall { aspect-ratio: 3 / 4; }
.card-img.wide { aspect-ratio: 16 / 9; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.card-foot { margin-top: auto; padding-top: .7rem; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); font-size: .95rem; }
.card-foot::after { content: " →"; color: var(--red); }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .5rem; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); margin-right: .3rem; }
.tag-red { border-color: var(--red); color: var(--red); }
.tag-yellow { border-color: var(--yellow); color: var(--yellow); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 1.3rem 1.2rem; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--white); }
.stat b small { font-size: .45em; color: var(--yellow); margin-left: .15em; }
.stat span { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; }

/* ledger table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); position: sticky; top: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.year { font-family: var(--mono); color: var(--yellow); white-space: nowrap; }
td.name { font-weight: 600; color: var(--white); white-space: nowrap; }
td.note { color: var(--muted); }
tr.current td.name::after { content: "IN THE GARAGE"; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; color: var(--red); border: 1px solid var(--red); border-radius: 3px; padding: .1rem .35rem; margin-left: .55rem; vertical-align: middle; }

/* feature split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.split.flip { grid-template-columns: .9fr 1.1fr; }
.split.flip > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: .6rem .8rem; font-size: .85rem; color: var(--muted); }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-2 img { aspect-ratio: 16/9; }
@media (max-width: 560px) { .gallery .span-2 { grid-column: span 1; } .gallery .span-2 img { aspect-ratio: 4/3; } }

/* road list */
.road { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.road:last-child { border-bottom: 1px solid var(--line); }
.road-n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--dim); }
.road h3 { margin-bottom: .2rem; }
.road-where { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: .6rem; }
.road p { color: var(--muted); margin: 0; max-width: 64ch; }
.road-specs { display: grid; gap: .35rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); text-align: right; min-width: 150px; }
.road-specs b { color: var(--white); font-weight: 600; }
@media (max-width: 720px) { .road { grid-template-columns: 1fr; gap: .6rem; } .road-n { font-size: 1.6rem; } .road-specs { text-align: left; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem; } }

/* project log */
.log { border-left: 2px solid var(--line-strong); padding-left: 1.4rem; display: grid; gap: 1.4rem; }
.log-item { position: relative; }
.log-item::before { content: ""; position: absolute; left: calc(-1.4rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.log-item.todo::before { background: var(--bg); border: 2px solid var(--dim); }
.log-item h4 { margin: 0 0 .2rem; }
.log-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.status { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--muted); }
.status-live { border-color: var(--yellow); color: var(--yellow); }
.status-done { border-color: #3fb950; color: #3fb950; }
.status-plan { border-color: var(--line-strong); }

/* bands */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band-red { background: linear-gradient(120deg, var(--red-deep), var(--red)); color: #fff; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band-h { color: #fff; max-width: 20ch; }
.band-p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0; }

/* manifesto */
.manifesto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.manifesto h3 { color: var(--white); }
.manifesto h3::before { content: counter(m, decimal-leading-zero); counter-increment: m; display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; color: var(--red); margin-bottom: .6rem; }
.manifesto { counter-reset: m; }
.manifesto p { color: var(--muted); margin: 0; }

/* callout / notice */
.notice { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted); background: rgba(255,255,255,.02); }
.notice b { color: var(--white); }

/* definition rows */
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; font-size: .95rem; }
.spec-list dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; }
.spec-list dd { margin: 0; color: var(--text); }

/* form */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { display: grid; gap: .35rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select { font: inherit; font-family: var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; padding: .75rem .9rem; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; background: var(--bg-2); color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand { font-size: 1.6rem; color: var(--white); margin-bottom: .6rem; }
.footer-tag { max-width: 34ch; }
.footer-h { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: .8rem; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a:hover { color: var(--white); }
.footer-small { font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
