@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --black: #050608;
  --black-raised: #090b0f;
  --carbon: #101319;
  --carbon-light: #171b22;
  --steel: #727985;
  --steel-dark: #292f38;
  --line: rgba(190, 199, 210, 0.2);
  --line-hot: rgba(239, 31, 50, 0.58);
  --white: #f6f3ef;
  --ink: #c3c8cf;
  --ink-dim: #858c96;
  --red: #d8142b;
  --red-hot: #ff3348;
  --red-dark: #7f0717;
  --green: #53d49d;
  --shadow-deep: 0 32px 80px rgba(0, 0, 0, 0.62);
  --shadow-red: 0 18px 54px rgba(173, 7, 29, 0.2);
  --cut: 18px;
  --font-display: "Orbitron", "Arial Black", sans-serif;
  --font-copy: "Rajdhani", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.72, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--font-copy);
  font-size: 1.08rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 78% 9%, rgba(216, 20, 43, 0.2), transparent 24rem),
    radial-gradient(circle at 8% 55%, rgba(216, 20, 43, 0.08), transparent 32rem),
    linear-gradient(145deg, #040506 0%, #080a0e 48%, #050608 100%);
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.022) 22px 23px),
    linear-gradient(90deg, transparent 0 8%, rgba(216, 20, 43, 0.25) 8% calc(8% + 1px), transparent calc(8% + 1px));
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "PRE-PRODUCTION // D1T";
  position: fixed;
  right: -4.5rem;
  top: 48%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font: 700 clamp(2.5rem, 6vw, 6rem) / 1 var(--font-display);
  letter-spacing: 0.08em;
  transform: rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
  pointer-events: none;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(28vw, 380px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-hot));
  box-shadow: 0 0 18px rgba(255, 51, 72, 0.72);
}

.site-shell,
.site-main,
.footer-content {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding-left: 1rem;
  color: var(--white);
  font: 800 1rem / 1.1 var(--font-display);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -0.25rem auto -0.25rem 0;
  width: 4px;
  background: var(--red-hot);
  clip-path: polygon(0 0, 100% 8px, 100% 100%, 0 calc(100% - 8px));
  box-shadow: 0 0 15px rgba(255, 51, 72, 0.55);
}

.brand span {
  margin-top: 0.32rem;
  color: var(--ink-dim);
  font: 600 0.62rem / 1 var(--font-copy);
  letter-spacing: 0.26em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.nav-links a {
  position: relative;
  padding: 0.8rem 0.66rem;
  color: var(--ink-dim);
  font: 600 0.67rem / 1 var(--font-display);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  bottom: 0.42rem;
  height: 2px;
  background: var(--red-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: linear-gradient(90deg, rgba(216, 20, 43, 0.15), transparent);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--line-hot);
  border-radius: 0;
  color: var(--white);
  background: rgba(216, 20, 43, 0.1);
  font: 600 0.72rem / 1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.site-main {
  position: relative;
  padding: clamp(2.5rem, 5vw, 5.5rem) 0 5rem;
}

.site-main::before {
  content: "00 // SECTR";
  position: absolute;
  top: 2rem;
  left: 0;
  color: var(--red-hot);
  font: 600 0.62rem / 1 var(--font-display);
  letter-spacing: 0.22em;
}

body[data-page="home"] .site-main::before { content: "01 // OVERVIEW"; }
body[data-page="d1t"] .site-main::before { content: "02 // PRODUCT"; }
body[data-page="themes"] .site-main::before { content: "03 // INTERFACES"; }
body[data-page="compatibility"] .site-main::before { content: "04 // EFI SYSTEMS"; }
body[data-page="about"] .site-main::before { content: "05 // COMPANY"; }
body[data-page="contact"] .site-main::before { content: "06 // INQUIRY"; }
body[data-page="privacy"] .site-main::before { content: "07 // PRIVACY"; }

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 5.7vw, 5.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

p {
  color: var(--ink);
  line-height: 1.62;
}

.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin: 0 0 0.4rem;
  color: var(--red-hot);
  font: 600 0.67rem / 1.2 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.status-pill::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(255, 51, 72, 0.55);
}

.status-pill {
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line-hot);
  background: rgba(216, 20, 43, 0.08);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: min(660px, 74vh);
  margin-bottom: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hero-panel,
.content-card,
.panel,
.page-hero,
.theme-card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 32%),
    linear-gradient(160deg, rgba(14, 17, 23, 0.96), rgba(6, 8, 11, 0.96));
  box-shadow: var(--shadow-deep);
}

.hero-copy {
  z-index: 2;
  grid-column: 1 / 7;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(2rem, 4vw, 4.5rem);
  border-left: 3px solid var(--red);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.hero-copy::after {
  content: "CAN // GPS // I/O";
  position: absolute;
  right: 1.4rem;
  top: 1.1rem;
  color: rgba(195, 200, 207, 0.34);
  font: 600 0.56rem / 1 var(--font-display);
  letter-spacing: 0.17em;
}

.hero-copy > p:not(.eyebrow):not(.highlight) {
  max-width: 56ch;
  margin: 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  margin: 0;
  border: 1px solid rgba(190, 199, 210, 0.26);
  background:
    linear-gradient(135deg, rgba(216, 20, 43, 0.24), transparent 38%),
    #090b0f;
  box-shadow: var(--shadow-deep), var(--shadow-red);
  clip-path: none;
}

.hero > .hero-image {
  z-index: 1;
  grid-column: 6 / 13;
  grid-row: 1;
  min-height: 0;
  aspect-ratio: auto;
}

body[data-page="home"] .hero {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 1.25rem;
  align-items: stretch;
}

body[data-page="home"] .hero-copy {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
}

body[data-page="home"] .hero > .hero-image {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

figure.hero-image {
  min-height: 0;
  aspect-ratio: auto;
}

img.hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.hero-image::before,
.theme-card::before {
  content: none;
}

.hero-image::after {
  content: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: var(--black);
}

.hero-caption {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: rgba(5, 6, 8, 0.86);
  border-left: 3px solid var(--red);
  font: 600 0.875rem / 1.4 var(--font-copy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.asset-pending {
  min-height: 320px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(216, 20, 43, 0.28) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(216, 20, 43, 0.28) 50%, transparent 50.2%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px),
    #090b0f;
}

.asset-pending::after {
  content: "SECTR PRODUCT VISUAL // ASSET READY";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: max-content;
  max-width: 78%;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  border: 1px solid var(--line-hot);
  background: rgba(5, 6, 8, 0.9);
  font: 600 0.62rem / 1.3 var(--font-display);
  letter-spacing: 0.14em;
  text-align: center;
  transform: translate(-50%, -50%);
}

.theme-card.asset-pending::after {
  top: 28%;
}

.highlight {
  position: relative;
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 1.25rem;
  color: var(--white);
  border-left: 3px solid var(--red-hot);
  background: linear-gradient(90deg, rgba(216, 20, 43, 0.13), transparent);
  font-size: 1.08em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--red-hot);
  border-radius: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--red-dark), var(--red) 65%, #b00b20);
  box-shadow: 0 10px 30px rgba(216, 20, 43, 0.18);
  font: 700 0.68rem / 1 var(--font-display);
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.button::after {
  content: ">";
  margin-left: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 36px rgba(216, 20, 43, 0.3);
}

.button.alt {
  border-color: var(--line);
  color: var(--white);
  background: rgba(8, 10, 14, 0.84);
  box-shadow: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  min-width: 0;
  padding: 0.9rem;
  background: rgba(5, 6, 8, 0.92);
}

.stat .label,
.stat .value {
  margin: 0;
}

.label {
  color: var(--ink-dim);
  font: 600 0.56rem / 1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value {
  margin-top: 0.45rem !important;
  color: var(--white);
  font: 600 0.82rem / 1.2 var(--font-display);
  text-wrap: balance;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  counter-reset: section-card;
}

.content-grid > .content-card {
  grid-column: span 6;
}

.content-grid > .content-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.content-grid > .content-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.content-card {
  min-width: 0;
  padding: clamp(1.35rem, 2.8vw, 2.35rem);
  counter-increment: section-card;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.content-card::before {
  content: "0" counter(section-card);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(255, 51, 72, 0.34);
  font: 700 0.66rem / 1 var(--font-display);
  letter-spacing: 0.12em;
}

.content-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(34%, 150px);
  height: 2px;
  background: var(--red-hot);
}

.content-card h2,
.content-card h3,
.panel h2 {
  padding-right: 2rem;
}

.section-title {
  margin-bottom: 0.6rem;
}

.panel {
  margin-top: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  overflow: hidden;
  border-left: 3px solid var(--red);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.panel::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -7%;
  width: 34%;
  height: 190%;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(135deg, rgba(216, 20, 43, 0.18) 0 8px, transparent 8px 18px);
  transform: rotate(8deg);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.page-hero {
  min-height: 340px;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border-left: 4px solid var(--red);
  background:
    linear-gradient(100deg, rgba(216, 20, 43, 0.17), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.017) 0 8px, transparent 8px 18px),
    linear-gradient(155deg, #11141a, #06080b 78%);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-hero::before {
  content: "";
  position: absolute;
  left: clamp(2rem, 5vw, 4.5rem);
  top: 0;
  width: 96px;
  height: 3px;
  background: var(--red-hot);
  box-shadow: 0 0 22px rgba(255, 51, 72, 0.55);
}

.page-hero::after {
  content: "SECTR // DIGITAL CLUSTER SYSTEMS";
  position: absolute;
  right: -1rem;
  bottom: 2.8rem;
  color: rgba(255, 255, 255, 0.045);
  font: 700 clamp(1.6rem, 4vw, 4.2rem) / 1 var(--font-display);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero > p {
  max-width: 68ch;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.page-hero > .hero-image {
  margin-top: 2rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.split > :first-child {
  grid-column: span 7;
}

.split > :last-child {
  grid-column: span 5;
}

body[data-page="d1t"] .site-main > .split {
  grid-template-columns: 1fr;
}

body[data-page="d1t"] .site-main > .split > :first-child {
  grid-column: 1 / -1;
  grid-row: 2;
}

body[data-page="d1t"] .site-main > .split > :last-child {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
}

body[data-page="d1t"] .site-main > .split > .hero-image {
  clip-path: none;
}

.panel .split {
  align-items: center;
}

.panel .split > :first-child {
  grid-column: span 9;
}

.panel .split > :last-child {
  grid-column: span 3;
  justify-self: end;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.4rem 0 1.8rem;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.spec-list li {
  display: grid;
  gap: 0.4rem;
  min-height: 92px;
  padding: 1rem;
  background: rgba(5, 6, 8, 0.96);
}

.spec-list li strong {
  width: auto;
  color: var(--red-hot);
  font: 600 0.6rem / 1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-list li span {
  color: var(--white);
  line-height: 1.25;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
  counter-reset: theme-card;
}

.theme-card {
  grid-column: span 6;
  min-width: 0;
  padding-top: 0.75rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease;
  counter-increment: theme-card;
  clip-path: none;
}

.theme-card:first-child {
  grid-column: span 6;
}

.theme-preview {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--black);
  text-decoration: none;
}

.theme-card::after {
  content: none;
}

.theme-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: contain;
  background: var(--black);
}

.theme-card:first-child img {
  aspect-ratio: 8 / 3;
}

.theme-body {
  padding: 1.15rem 0 0;
}

.theme-body h2,
.theme-body h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.image-band img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow-deep);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.compat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
  background: var(--line);
}

.compat-table th,
.compat-table td {
  padding: clamp(1rem, 2.4vw, 1.8rem);
  border: 0;
  text-align: left;
  vertical-align: top;
  background: rgba(5, 6, 8, 0.96);
}

.compat-table thead th {
  color: var(--white);
  background: linear-gradient(90deg, rgba(216, 20, 43, 0.3), rgba(8, 10, 14, 0.98));
  border-top: 2px solid var(--red-hot);
  font: 600 0.7rem / 1.3 var(--font-display);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.compat-table ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compat-table li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.4rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(190, 199, 210, 0.1);
}

.compat-table li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--red-hot);
  transform: rotate(45deg);
}

.compat-table td:first-child li::before {
  border-color: var(--green);
  background: rgba(83, 212, 157, 0.18);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row:nth-of-type(7),
.form-grid > .small-note,
.form-grid > .status {
  grid-column: 1 / -1;
}

label {
  color: var(--white);
  font: 600 0.63rem / 1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 49px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  background: rgba(5, 6, 8, 0.86);
  caret-color: var(--red-hot);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

textarea {
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-hot);
  background: rgba(12, 14, 19, 0.96);
  box-shadow: inset 3px 0 0 var(--red);
}

input::placeholder,
textarea::placeholder {
  color: #6f7782;
}

.small-note {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.status {
  min-height: 1.4rem;
  margin: 0;
}

.status.success { color: var(--green); }
.status.error { color: #ff747f; }

.clean-list {
  margin: 0.8rem 0 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 1.2rem;
}

.clean-list li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--red-hot);
  font-weight: 700;
}

.clean-list li + li {
  margin-top: 0.45rem;
}

body[data-page="privacy"] .content-grid {
  width: min(900px, 100%);
  margin-inline: auto;
}

body[data-page="privacy"] .content-grid > .content-card {
  grid-column: span 6;
}

.site-footer {
  position: relative;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 7px, transparent 7px 15px),
    rgba(5, 6, 8, 0.88);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 20vw;
  height: 2px;
  background: var(--red-hot);
}

.footer-content {
  min-height: 120px;
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.footer-content p {
  margin: 0;
}

.footer-content a,
.social-list a {
  color: var(--white);
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.social-list {
  display: flex;
  gap: 0.85rem;
}

@keyframes instrument-settle {
  from {
    opacity: 0.2;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Instrument chrome surrounds the original artwork, never covers it. */
.hero-copy {
  background:
    radial-gradient(ellipse at 100% 0, rgba(216, 20, 43, 0.13), transparent 65%),
    linear-gradient(160deg, var(--carbon), var(--black-raised));
}

.theme-body h2::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 0.65rem;
  vertical-align: middle;
  background: var(--theme-mark, var(--red-hot));
}

.theme-card:nth-child(1) { --theme-mark: #d78b19; }
.theme-card:nth-child(2) { --theme-mark: linear-gradient(90deg, #9755b5 50%, #e27c10 50%); }
.theme-card:nth-child(3) { --theme-mark: #c94ebb; }
.theme-card:nth-child(4) { --theme-mark: #ed2638; }

.theme-open-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--black-raised);
  font: 600 0.875rem / 1.4 var(--font-copy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.theme-open-label::after {
  content: "+";
  color: var(--red-hot);
  font-size: 1.3rem;
}

.theme-card:focus-within { border-top-color: var(--red-hot); }
.theme-preview:focus-visible { outline-offset: 4px; }
.theme-preview:focus-visible .theme-open-label { color: var(--white); }

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.17) 50%, transparent 75%);
  transform: translateX(-130%);
}

@keyframes control-sheen {
  to { transform: translateX(130%); }
}

body.preview-open { overflow: hidden; }

.theme-viewer {
  width: min(1560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--white);
  border: 1px solid var(--steel-dark);
  border-top: 2px solid var(--red-hot);
  background:
    radial-gradient(ellipse at 100% 0, rgba(216, 20, 43, 0.1), transparent 45%),
    var(--black-raised);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
}

.theme-viewer::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.viewer-header,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.viewer-header { margin-bottom: 1.25rem; }
.viewer-header > div { min-width: 0; }
.viewer-header h2 { font-size: clamp(1.15rem, 3vw, 2rem); }
.viewer-index {
  margin: 0 0 0.5rem;
  color: var(--red-hot);
  font: 600 0.875rem / 1.4 var(--font-copy);
  letter-spacing: 0.15em;
}

.viewer-figure { margin: 0; }
.viewer-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 8 / 3;
  max-height: 60vh;
  border: 1px solid var(--line);
  background: #000;
}
.viewer-screen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.viewer-description {
  max-width: 80ch;
  margin: 1rem 0 1.5rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}
.viewer-footer { padding-top: 1rem; border-top: 1px solid var(--line); }
.viewer-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.viewer-control {
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--carbon);
  color: var(--white);
  font: 600 0.875rem / 1.3 var(--font-copy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.viewer-control:hover,
.viewer-control[aria-pressed="true"] {
  border-color: var(--red-hot);
  background: rgba(216, 20, 43, 0.18);
}
.viewer-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-color: var(--red-hot);
}

@media (hover: hover) and (pointer: fine) {
  .theme-card:hover { border-top-color: var(--line-hot); }
  .theme-preview:hover .theme-open-label { color: var(--white); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > h1,
  .page-hero > h1,
  .content-card.section-entered,
  .panel.section-entered,
  .theme-card.section-entered .theme-body,
  .theme-viewer[open] {
    animation: instrument-settle 850ms var(--ease-out) backwards;
    animation-delay: var(--entrance-delay, 0ms);
  }
  .button:focus-visible::before { animation: control-sheen 550ms ease-out; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button:hover::before { animation: control-sheen 550ms ease-out; }
}

@media (max-width: 1100px) {
  .theme-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-grid > .theme-card { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .site-shell,
  .site-main,
  .footer-content {
    width: min(100% - 40px, 940px);
  }

  .site-nav {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    padding: 0.7rem 0 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    padding: 1rem;
    border-left: 1px solid var(--line);
    background: rgba(10, 12, 16, 0.95);
  }

  .nav-links a::after {
    left: 1rem;
    right: auto;
    bottom: 0.68rem;
    width: 42px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    order: 2;
    margin: -2.25rem 1rem 0;
  }

  .hero > .hero-image {
    order: 1;
    min-height: 0;
  }

  .content-grid > .content-card,
  .content-grid > .content-card:nth-child(3n + 1),
  .content-grid > .content-card:nth-child(3n + 2),
  body[data-page="privacy"] .content-grid > .content-card {
    grid-column: span 12;
  }

  .split > :first-child,
  .split > :last-child,
  body[data-page="d1t"] .split > :first-child,
  body[data-page="d1t"] .split > :last-child,
  .panel .split > :first-child,
  .panel .split > :last-child {
    grid-column: span 12;
    justify-self: stretch;
  }

  .split > .hero-image {
    order: -1;
  }

  .theme-card,
  .theme-card:first-child {
    grid-column: span 6;
  }

  .theme-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .theme-viewer {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 1rem;
  }

  .viewer-choices { order: 3; width: 100%; }
  .viewer-original { order: 4; }

  body {
    font-size: 1rem;
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
  }

  body::after {
    display: none;
  }

  .site-shell,
  .site-main,
  .footer-content {
    width: min(100% - 24px, 620px);
  }

  .site-main {
    padding-top: 3.4rem;
  }

  .brand {
    max-width: 220px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
    line-height: 1;
  }

  body[data-page="home"] .hero-copy h1 {
    font-size: clamp(1.65rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.3rem, 8vw, 1.8rem);
  }

  .hero {
    margin-bottom: 3.5rem;
  }

  .hero > .hero-image {
    min-height: 0;
  }

  .hero-copy {
    margin: -1.25rem 0.5rem 0;
    padding: 1.45rem;
  }

  .hero-copy::after,
  .page-hero::after {
    display: none;
  }

  .stats,
  .spec-list,
  .panel-grid,
  .form-grid,
  .image-band {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row:nth-of-type(7),
  .form-grid > .small-note,
  .form-grid > .status {
    grid-column: 1;
  }

  .page-hero {
    min-height: 300px;
    padding: 2rem 1.35rem;
  }

  .page-hero::before {
    left: 1.35rem;
  }

  .page-hero > .hero-image,
  .hero-image {
    min-height: 0;
  }

  .theme-card,
  .theme-card:first-child {
    grid-column: 1 / -1;
  }

  .theme-card img,
  .theme-card:first-child img {
    aspect-ratio: 8 / 3;
  }

  .theme-body {
    min-height: 0;
  }

  .compat-table,
  .compat-table tbody,
  .compat-table tr,
  .compat-table td {
    display: block;
    width: 100%;
  }

  .compat-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compat-table td::before {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--white);
    font: 600 0.65rem / 1.2 var(--font-display);
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .compat-table td:first-child::before {
    content: "Validated / Available";
    color: var(--green);
  }

  .compat-table td:nth-child(2)::before {
    content: "Unvalidated / Planned";
    color: var(--red-hot);
  }

  .panel::after {
    opacity: 0.2;
  }

  .panel .button,
  .cta-row .button {
    width: 100%;
  }

  .footer-content {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* A segmented reading indicator echoes the cluster's tachometer. */
.reading-track {
  position: absolute;
  inset: auto 0 -5px;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(114, 121, 133, 0.2);
  mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px);
}

.reading-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red) 65%, var(--red-hot));
  transform: scaleX(0);
  transform-origin: left;
}

/* The glow is a separate layer below copy, never an image overlay. */
.pointer-lit {
  isolation: isolate;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.pointer-lit > :not(.panel-light) { position: relative; z-index: 1; }
.pointer-lit > .panel-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(160px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(255, 72, 88, 0.17), transparent 80%),
    radial-gradient(430px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(230, 16, 44, 0.15), transparent 78%);
  transition: opacity 160ms ease;
}
.pointer-lit.light-active > .panel-light { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pointer-lit.light-active {
    border-color: var(--red-hot);
    box-shadow: var(--shadow-deep), 0 0 44px rgba(216, 20, 43, 0.12), inset 0 0 0 1px rgba(255, 51, 72, 0.175);
  }
}

.spec-list li {
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.spec-list li:focus-visible,
.spec-list li:focus-within {
  background: #1c0d14;
  box-shadow: inset 3px 0 var(--red-hot), inset 0 0 0 1px var(--line-hot);
  outline: 2px solid var(--red-hot);
  outline-offset: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .spec-list li:hover {
    background: #1c0d14;
    box-shadow: inset 3px 0 var(--red-hot), inset 0 0 0 1px var(--line-hot);
  }
}

@keyframes startup-accent {
  from { opacity: 0.1; transform: scaleY(0.05); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes startup-heading {
  from {
    opacity: 0.15;
    transform: translateY(28px);
    text-shadow: 0 0 32px rgba(255, 51, 72, 0.6);
  }
  to {
    opacity: 1;
    transform: none;
    text-shadow: 0 0 0 transparent;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-startup .brand::before {
    transform-origin: bottom;
    animation: startup-accent 900ms var(--ease-out) backwards;
  }
  .home-startup .hero-copy > h1 { animation: none; }
  .home-startup .hero-copy.section-entered > h1 {
    animation: startup-heading 1100ms var(--ease-out) 100ms backwards;
  }
  .home-startup .hero-copy.section-entered > .eyebrow::before {
    transform-origin: left;
    animation: startup-accent 700ms var(--ease-out) backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-light { display: none; }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
