/* Steal This Station — site styles */

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

:root {
    --hull: #14181e;       /* page background: the shadow side of the sketch art */
    --plate: #1c222a;      /* raised panels */
    --seam: #2e3742;       /* borders and rules */
    --chalk: #eceef0;      /* text and the sketch highlights */
    --graphite: #9aa4ae;   /* secondary text */
    --loot: #f2b73f;       /* the gold coins in the vault: used only for "open now" */
    --company: #391756;    /* Machine Thoughts purple: the studio band only */

    --display: 'Orbitron', 'Barlow', sans-serif;
    --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

    --header-h: 64px;
    --measure: 64ch;
    --wide: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    background: var(--hull);
    color: var(--chalk);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--chalk);
    outline-offset: 3px;
}

.skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--chalk); color: var(--hull); padding: 8px 14px; z-index: 2000;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
    background: rgba(20, 24, 30, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 238, 240, 0.08);
}
.site-header .inner {
    max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-right: auto; }
.site-nav a {
    font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--graphite);
    transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chalk); }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { padding-top: var(--header-h); flex: 1; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
    text-decoration: none; padding: 15px 26px; border: 2px solid var(--chalk);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-solid { background: var(--chalk); color: var(--hull); }
.btn-solid:hover { box-shadow: 0 0 28px rgba(236, 238, 240, 0.35); }
.btn-line { background: rgba(20, 24, 30, 0.45); color: var(--chalk); }
.btn-line:hover { background: rgba(236, 238, 240, 0.12); }
.btn-small { padding: 9px 16px; font-size: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: min(86vh, 860px);
    display: grid; align-items: end;
    background: var(--hull) url('img/hero.jpg') center 18% / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(20,24,30,0.15) 0%, rgba(20,24,30,0.35) 45%, rgba(20,24,30,0.96) 88%, var(--hull) 100%);
}
.hero-inner {
    width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px 72px;
    display: grid; justify-items: center; text-align: center; gap: 22px;
}
.hero-logo { width: min(620px, 86vw); filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6)); }
.hero h1 {
    font-family: var(--body); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.3; max-width: 34ch; text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.hero .btn-row { justify-content: center; margin-top: 6px; }
.status { color: var(--graphite); font-size: 1rem; }
.status strong { color: var(--loot); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 96px 24px; }
.section > .inner { max-width: var(--wide); margin: 0 auto; }
.section-plate { background: var(--plate); border-block: 1px solid var(--seam); }

h2 {
    font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 18px;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 10px; }
.lede { color: var(--graphite); max-width: var(--measure); font-size: 1.2rem; }
p + p { margin-top: 1em; }

/* Trailer */
.trailer-frame {
    margin-top: 32px; border: 1px solid var(--seam); background: #000;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.trailer-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* The statement: the one loud thing on the page */
.statement {
    padding: 120px 24px 40px; text-align: center;
}
.statement p {
    font-family: var(--display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(2rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em;
    max-width: 15ch; margin: 0 auto;
    background: linear-gradient(180deg, var(--chalk) 55%, #7c8691 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement .sub {
    font-family: var(--body); text-transform: none; font-weight: 400; letter-spacing: 0;
    font-size: 1.2rem; line-height: 1.5; color: var(--graphite); background: none; max-width: 46ch;
    margin-top: 24px; -webkit-text-fill-color: var(--graphite);
}

/* Build / Defend / Invade */
.loop { display: grid; gap: 88px; padding-top: 56px; }
.loop-row {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center;
}
.loop-row:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.loop-row:nth-child(even) .shot { order: 2; }
.shot { border: 1px solid var(--seam); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.loop-row h3 {
    font-size: clamp(2.2rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 16px;
}
.loop-row p { color: #c9ced4; max-width: 48ch; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.class-card { background: var(--hull); border: 1px solid var(--seam); }
.class-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.class-card .body { padding: 22px 22px 26px; }
.class-card .role { color: var(--graphite); font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.class-card p { color: #c9ced4; font-size: 1.05rem; }
.gear-note { margin-top: 36px; color: var(--graphite); max-width: var(--measure); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.gallery button {
    display: block; padding: 0; border: 1px solid var(--seam); background: none; cursor: zoom-in;
    overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.gallery button:hover img { transform: scale(1.04); }

dialog.viewer {
    border: none; background: transparent; max-width: 96vw; max-height: 96vh; margin: auto; padding: 0;
}
dialog.viewer::backdrop { background: rgba(8, 10, 13, 0.92); }
dialog.viewer img { max-height: 88vh; width: auto; margin: 0 auto; border: 1px solid var(--seam); }
dialog.viewer .viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; color: var(--graphite); }
dialog.viewer button {
    font: inherit; color: var(--chalk); background: none; border: 1px solid var(--seam); padding: 8px 14px; cursor: pointer;
}
dialog.viewer button:hover { background: rgba(236,238,240,0.1); }

/* Community */
.community { text-align: center; }
.community .lede { margin: 0 auto 28px; }
.community .btn-row { justify-content: center; }

/* ---------- Plain pages (press kit, contact, privacy) ---------- */
.page-head {
    padding: 88px 24px 48px; border-bottom: 1px solid var(--seam);
    background: linear-gradient(180deg, rgba(20,24,30,0.7), var(--hull)), url('img/hero.jpg') center 22% / cover no-repeat;
}
.page-head .inner { max-width: var(--wide); margin: 0 auto; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.page-head p { color: #c9ced4; margin-top: 12px; max-width: var(--measure); }

.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 48px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { color: #d3d7dc; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.8em 0; }
.prose li + li { margin-top: 0.4em; }
.prose a:not(.btn) { color: var(--chalk); text-underline-offset: 3px; }
.prose .meta { color: var(--graphite); font-size: 1rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--seam); }
.prose th { color: var(--graphite); font-weight: 600; }

/* Press kit */
.kit { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.facts { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--seam); background: var(--plate); padding: 24px; }
.facts dl { display: grid; gap: 14px; }
.facts dt { color: var(--graphite); font-size: 0.9rem; font-weight: 600; }
.facts dd { font-size: 1rem; }
.facts dd a { text-underline-offset: 3px; }
.facts .btn { width: 100%; margin-top: 22px; }
.kit-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.kit-shots a { display: block; border: 1px solid var(--seam); }
.downloads { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.downloads a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--seam); text-decoration: none; background: var(--plate); }
.downloads a:hover { border-color: var(--graphite); }
.downloads span { color: var(--graphite); white-space: nowrap; }
.logo-swatches { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin: 16px 0; }
.logo-swatches a { display: grid; place-items: center; padding: 28px; border: 1px solid var(--seam); background: #2a313a; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.field .hint { color: var(--graphite); font-size: 0.9rem; }
.field input, .field select, .field textarea {
    font: inherit; font-size: 1.05rem; color: var(--chalk); background: var(--plate);
    border: 1px solid var(--seam); padding: 12px 14px; border-radius: 0; width: 100%;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--chalk); }
.form .btn { justify-self: start; font-size: 0.95rem; }
.form .privacy-note { color: var(--graphite); font-size: 0.95rem; }
.aside-block { border-left: 2px solid var(--seam); padding-left: 24px; }
.aside-block + .aside-block { margin-top: 36px; }
.aside-block h2 { font-size: 1.2rem; margin-bottom: 8px; }
.aside-block p { color: #c9ced4; font-size: 1.05rem; }
.aside-block a { text-underline-offset: 3px; }

/* ---------- Footer: the studio band ---------- */
.site-footer { background: var(--company); padding: 48px 24px; }
.site-footer .inner {
    max-width: var(--wide); margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.studio { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.studio img { width: 44px; height: 44px; }
.studio span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.studio small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.9rem; color: #d9cdee; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; }
.footer-links a { color: #e6dbff; text-decoration: none; font-size: 1rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.copyright { width: 100%; color: #c4b5dd; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .loop-row, .loop-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
    .loop-row:nth-child(even) .shot { order: 0; }
    .classes { grid-template-columns: 1fr; max-width: 560px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .kit, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .facts { position: static; }
}
@media (max-width: 720px) {
    .site-nav { display: none; }
    .site-header .inner { justify-content: space-between; }
    .brand img { height: 30px; }
    .section { padding: 64px 20px; }
    .hero { min-height: 0; background-image: url('img/hero-tall.jpg'); background-position: center top; background-size: 100% auto; }
    .hero::before { background: linear-gradient(180deg, rgba(20,24,30,0) 0, rgba(20,24,30,0) 44vw, rgba(20,24,30,0.9) 72vw, var(--hull) 82vw); }
    .hero-inner { padding-top: 66vw; }
    .hero-inner { padding-bottom: 48px; }
    .btn-row .btn { flex: 1 1 100%; }
    .loop { gap: 56px; }
    .gallery { grid-template-columns: 1fr; }
    .kit-shots, .logo-swatches { grid-template-columns: 1fr; }
}
