/* ============================================================
   Overscan Industries / Broadcast Standard
   Hand-rolled. No frameworks. Zero JavaScript.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('fonts/martian-mono-var.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --paper: #F4F3EE;
  --paper-deep: #E9E8E0;
  --ink: #17161B;
  --ink-soft: #5C5A63;
  --rule: #CBC9C0;
  --magenta: #BF00BF;
  --magenta-deep: #8C008C;

  --gutter: 24px;
  --maxw: 1200px;
  --rhythm: 64px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 48px;
    --rhythm: 96px;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--magenta); text-decoration: none; transition: color 120ms ease-out; }
a:hover { color: var(--magenta-deep); }
h1, h2, p, dl, dd { margin: 0; }

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

/* ---- Layout helpers ---- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Shared type ---- */
.kicker {
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-bottom: calc(var(--rhythm) * 0.5);
}
.hero-bleed {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: clamp(28px, 5vw, 64px);
}
.wordmark {
  width: max-content;
  margin-left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wght' 900, 'wdth' 125;
  font-size: 15.1vw;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark-suffix {
  display: block;
  /* the wordmark bleeds past the viewport, so cap the suffix to the
     visible gutter width and center it within the h1 */
  width: min(100%, 75vw);
  margin-inline: auto;
  white-space: normal;
  /* the spaces between letters absorb the justification, spreading
     INDUSTRIES edge-to-edge across the visible frame */
  text-align: justify;
  text-align-last: justify;
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: clamp(10px, 1.3vw, 28px);
  line-height: 1;
  letter-spacing: 0;
  margin-top: clamp(10px, 1.6vw, 34px);
  color: var(--ink);
}
.hero-content {
  position: relative;
  margin-top: clamp(40px, 6vw, 120px);
  padding-block: clamp(32px, 3vw, 60px);
}
.hero-copy {
  /* copy sits inset from the left brackets, not flush with them */
  padding-left: clamp(24px, 8vw, 160px);
}
.hero-lede {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  max-width: 20em;
  margin-top: 18px;
}
.corner {
  position: absolute;
  width: clamp(16px, 1.7vw, 34px);
  height: clamp(16px, 1.7vw, 34px);
}
.corner-tl {
  top: 0;
  left: var(--gutter);
  border-left: 3px solid var(--magenta);
  border-top: 3px solid var(--magenta);
}
.corner-tr {
  top: 0;
  right: var(--gutter);
  border-right: 3px solid var(--magenta);
  border-top: 3px solid var(--magenta);
}
.corner-bl {
  bottom: 0;
  left: var(--gutter);
  border-left: 3px solid var(--magenta);
  border-bottom: 3px solid var(--magenta);
}
.corner-br {
  bottom: 0;
  right: var(--gutter);
  border-right: 3px solid var(--magenta);
  border-bottom: 3px solid var(--magenta);
}

/* ============================================================
   Roster
   ============================================================ */
.roster {
  overflow-x: hidden;
  padding-block: var(--rhythm);
}
.titleblock {
  border-top: 1px solid var(--rule);
  margin-bottom: calc(var(--rhythm) * 0.55);
}
.titleblock-label {
  display: inline-block;
  transform: translateY(-50%);
  background: var(--paper);
  padding-right: 14px;
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.entry { position: relative; }
.entry + .entry {
  margin-top: calc(var(--rhythm) * 0.75);
}

.entry-index {
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 22px;
  color: var(--magenta);
  margin-bottom: 14px;
}
.entry-name {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.entry-body {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.redaction { display: inline-block; background: var(--ink); vertical-align: baseline; }
.redaction-name { height: 0.75em; width: 5ch; }
.redaction-inline { height: 0.75em; width: 6ch; }

.specs {
  margin-top: 30px;
  max-width: 34em;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
}
.spec-row:last-child { border-bottom: 1px solid var(--rule); }
.spec-row dt {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.spec-row dd {
  color: var(--ink);
  text-align: right;
  letter-spacing: 0.02em;
}

.entry-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
}
.entry-links a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.entry-links a:hover { text-decoration: underline; }

/* Rewind two-column with right-edge bleed */
@media (min-width: 860px) {
  .entry-rewind {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }
  .entry-rewind .entry-text {
    flex: 0 1 55%;
    min-width: 0;
  }
  .entry-rewind .entry-media {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
    /* extend media's right edge out to the viewport edge */
    margin-right: calc(50% - 50vw);
    min-width: 0;
  }
  .entry-rewind .entry-media img {
    max-width: none;          /* override the global img cap */
    height: 560px;
    width: auto;
    border: 1px solid var(--ink);
    /* push ~15% of the image off the right viewport edge (the overscan move) */
    transform: translateX(15%);
  }
}

/* Rewind image on mobile: full-bleed right, reduced height */
@media (max-width: 859px) {
  .entry-rewind .entry-media {
    margin-top: 36px;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
    /* pull the right edge out to the viewport edge */
    margin-right: calc(var(--gutter) - 50vw + 50%);
  }
  .entry-rewind .entry-media img {
    max-width: none;
    height: 400px;
    width: auto;
    border: 1px solid var(--ink);
    transform: translateX(18%);
  }
}

/* ============================================================
   Statement
   ============================================================ */
.statement {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  padding-block: var(--rhythm);
}
.statement-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  max-width: 21em;
  color: var(--ink);
}
@media (min-width: 860px) {
  .statement-text {
    margin-left: 38%;
  }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding-block: var(--rhythm);
}
.contact-inner {
  max-width: 34em;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.field-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 14px 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.field-input::placeholder {
  color: var(--ink-soft);
}
.field-input:hover {
  border-color: var(--ink-soft);
}
.field-input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta);
}
.field-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}
.btn-transmit {
  appearance: none;
  -webkit-appearance: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 28px;
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}
.btn-transmit:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}
.btn-transmit:active {
  background: var(--magenta-deep);
  border-color: var(--magenta-deep);
}
.btn-transmit:disabled {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border-color: var(--rule);
  cursor: default;
}

.contact-status {
  font-family: 'Martian Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.contact-status-error {
  color: var(--magenta-deep);
}

.contact-success {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 28px;
}
.contact-success-title {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-success-body {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}
.footer-mail {
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-mail:hover { text-decoration: underline; }
.footer-legal {
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.footer-copy {
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.calibration {
  display: flex;
  width: 100%;
  height: 50px;
}
.calibration span {
  flex: 1 1 0;
  height: 100%;
}

/* ---- Motion: none ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
