/* ============================================
   INTERFACE — CSS
   ============================================ */

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

/* --- Theme Variables --- */
:root {
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Libre Baskerville', serif;
  --fs-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --fs-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-xl: clamp(2.5rem, 2rem + 2.5vw, 5rem);
  --fs-hero: clamp(3.5rem, 3rem + 4vw, 9rem);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-section: clamp(4rem, 3rem + 5vw, 10rem);
  --max-width: 1200px;
  --nav-height: 3.5rem;
  --color-accent-1: #1abc9c;
  --color-accent-2: #00b0ff;
  --color-accent-3: #FFD600;
  --brand-color: #D93B2D;
}

[data-theme="dark"] {
  --color-bg: #000000;
  --color-surface: #0A0A0A;
  --color-surface-2: #141414;
  --color-text: #F2F2F2;
  --color-text-muted: #888888;
  --color-border: #222222;
  --color-bg-rgb: 0, 0, 0;
  --color-ca: rgba(255, 255, 255, 0.85);
  --color-ca-dim: rgba(255, 255, 255, 0.35);
}


/* --- Base --- */
html {
  font-family: var(--font-mono);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 769px) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

/* --- Generative Background Canvas (full page) --- */
#gen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--ca-opacity, 0.18);
}

/* --- CA Background Variants --- */

/* #1 — Slow breath: opacity pulses in and out */
#gen-bg.ca--1 { animation: caBreathe 6s ease-in-out infinite; }
@keyframes caBreathe {
  0%, 100% { opacity: var(--ca-pulse-min, 0.1); }
  50% { opacity: var(--ca-pulse-max, 0.3); }
}

/* #2 — Flash reveal: starts bright, fades to default */
#gen-bg.ca--2 { animation: caFlashIn 1.2s ease-out forwards; }
@keyframes caFlashIn {
  0% { opacity: var(--ca-flash-start, 0.7); }
  100% { opacity: var(--ca-opacity, 0.18); }
}

/* #3 — High contrast static */
#gen-bg.ca--3 { opacity: var(--ca-opacity, 0.12); filter: contrast(1.7); }

/* #4 — Bold: heavy presence */
#gen-bg.ca--4 { opacity: var(--ca-opacity, 0.35); }

/* #5 — Horizontal bands: visible in stripes */
#gen-bg.ca--5 {
  opacity: var(--ca-opacity, 0.25);
  -webkit-mask-image: repeating-linear-gradient(to bottom, rgba(0,0,0,1) 0px, rgba(0,0,0,1) 150px, rgba(0,0,0,0.03) 150px, rgba(0,0,0,0.03) 300px);
  mask-image: repeating-linear-gradient(to bottom, rgba(0,0,0,1) 0px, rgba(0,0,0,1) 150px, rgba(0,0,0,0.03) 150px, rgba(0,0,0,0.03) 300px);
}

/* #6 - Whisper: low-opacity full-page texture */
#gen-bg.ca--6 {
  opacity: var(--ca-opacity, 0.06);
  filter: contrast(0.8);
}

/* #7 - Quiet center: keeps text areas calmer, leaves texture near edges */
#gen-bg.ca--7 {
  opacity: var(--ca-opacity, 0.14);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0.72) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0.72) 100%);
}

/* #8 - Letterbox windows: CA appears in a few wide horizontal fields */
#gen-bg.ca--8 {
  opacity: var(--ca-opacity, 0.16);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.06) 12%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 28%, rgba(0,0,0,0.04) 36%, rgba(0,0,0,0.04) 52%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.05) 80%, rgba(0,0,0,0.05) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.06) 12%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 28%, rgba(0,0,0,0.04) 36%, rgba(0,0,0,0.04) 52%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.05) 80%, rgba(0,0,0,0.05) 100%);
}

/* #9 - Scanline veil: thin visible rows with most rows reduced */
#gen-bg.ca--9 {
  opacity: var(--ca-opacity, 0.12);
  -webkit-mask-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.85) 0px, rgba(0,0,0,0.85) 1px, rgba(0,0,0,0.12) 1px, rgba(0,0,0,0.12) 14px);
  mask-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.85) 0px, rgba(0,0,0,0.85) 1px, rgba(0,0,0,0.12) 1px, rgba(0,0,0,0.12) 14px);
}

/* #10 - Side rails: center content stays quiet */
#gen-bg.ca--10 {
  opacity: var(--ca-opacity, 0.15);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 18%, rgba(0,0,0,0.08) 36%, rgba(0,0,0,0.08) 64%, rgba(0,0,0,0.55) 82%, rgba(0,0,0,0.85) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 18%, rgba(0,0,0,0.08) 36%, rgba(0,0,0,0.08) 64%, rgba(0,0,0,0.55) 82%, rgba(0,0,0,0.85) 100%);
}

/* #11 - Soft focus: keeps the CA present but less sharp */
#gen-bg.ca--11 {
  opacity: var(--ca-opacity, 0.1);
  filter: blur(0.7px) contrast(0.7);
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  background: rgba(var(--color-bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.nav__logo {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--color-text); }


/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-section) var(--space-md);
}

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: none;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.section--hero .hero__title,
.section--hero .hero__tagline {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

/* --- Hero interactive letters --- */
.hero__letter {
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* --- "face" highlight variants --- */
/* CRT block-select flicker on "face" */
.hero__accent {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.08em;
  color: var(--color-bg);
  z-index: 1;
}
.hero__accent::before {
  content: '';
  position: absolute;
  inset: -0.02em 0;
  background: var(--brand-color, #D93B2D);
  z-index: -1;
  }
@keyframes crtFlicker {
  0%, 49% { opacity: 1; }
  50%, 99% { opacity: 0; }
  100% { opacity: 1; }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  max-width: 600px;
}

.section__heading {
  font-size: var(--fs-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: none;
}

.gen-divider-text {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--brand-color, #D93B2D);
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: var(--space-xs);
  line-height: 1;
  opacity: 0.8;
}

.section p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  max-width: 65ch;
  line-height: 1.8;
  color: #FFFFFF;
}

/* --- Grid --- */
.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- Cards --- */
.card {
  position: relative;
  overflow: hidden;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--brand-color, #D93B2D); }

.card h3 {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: var(--fs-sm);
  color: #DDDDDD;
  line-height: 1.7;
  text-align: justify;
}

/* --- Team Cards --- */
.team-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.team-card__avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-color, #D93B2D);
}

.team-card__img {
  width: 100%;
  height: 100%;
  background-size: 500%;
  background-repeat: no-repeat;
  filter: grayscale(0.3);
  transition: filter 0.3s;
}

.team-card:hover .team-card__img {
  filter: grayscale(0);
}

.team-card h3 {
  margin-bottom: var(--space-sm);
}

.team-card p {
  text-align: justify;
}

/* --- Phase Cards (Roadmap) --- */
.phase-list {
  list-style: none;
  padding: 0;
}

.phase-list li {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: #DDDDDD;
  line-height: 1.7;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: justify;
}

.phase-list li:last-child {
  border-bottom: none;
}

/* --- Roadmap Thread --- */
.roadmap-chain {
  --thread-offset: var(--space-lg);
  counter-reset: roadmap;
  list-style: none;
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
  position: relative;
}

.roadmap-chain::before {
  content: '';
  position: absolute;
  top: var(--space-sm);
  bottom: var(--space-sm);
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--brand-color, #D93B2D) 10%, var(--brand-color, #D93B2D) 90%, transparent);
  opacity: 0.7;
}

.roadmap-chain li {
  counter-increment: roadmap;
  position: relative;
  width: calc(50% - var(--thread-offset));
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: rgba(10, 10, 10, 0.92);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: #DDDDDD;
  text-align: left;
}

.roadmap-chain li:nth-child(odd) {
  justify-self: start;
}

.roadmap-chain li:nth-child(even) {
  justify-self: end;
}

.roadmap-chain li::before {
  content: counter(roadmap, decimal-leading-zero);
  position: absolute;
  top: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-color, #D93B2D);
  background: var(--color-bg);
  color: var(--brand-color, #D93B2D);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  z-index: 1;
}

.roadmap-chain li::after {
  content: '';
  position: absolute;
  top: calc(var(--space-md) + 1.25rem);
  width: var(--thread-offset);
  height: 1px;
  background: var(--brand-color, #D93B2D);
  opacity: 0.55;
}

.roadmap-chain li:nth-child(odd)::before {
  right: calc(-1 * var(--thread-offset) - 1.25rem);
}

.roadmap-chain li:nth-child(odd)::after {
  right: calc(-1 * var(--thread-offset));
}

.roadmap-chain li:nth-child(even)::before {
  left: calc(-1 * var(--thread-offset) - 1.25rem);
}

.roadmap-chain li:nth-child(even)::after {
  left: calc(-1 * var(--thread-offset));
}

/* --- Form --- */
.form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
}

.form input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.form input:focus { border-color: var(--color-accent-1); }

.form button {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form button:hover { opacity: 0.8; }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
  text-align: center;
}

.footer__logo {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
}

/* --- Selection --- */
.hero__title::selection {
  background: var(--color-accent-1);
  color: var(--color-bg);
}

::selection {
  background: var(--color-accent-2);
  color: var(--color-bg);
}

/* --- Section reveal animation --- */
.section--hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Brand Brief --- */
.brand-brief p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  max-width: 60ch;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.brand-brief__pull {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--color-text);
  border-left: 3px solid var(--brand-color, #D93B2D);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  max-width: 55ch;
}

/* --- Custom Dropdown --- */
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.custom-select__trigger {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: var(--space-xs) var(--space-sm);
  padding-right: 28px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
  transition: border-color 0.2s;
}

.custom-select__trigger:hover,
.custom-select.open .custom-select__trigger {
  border-color: var(--color-text);
}

.custom-select__trigger::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  transition: transform 0.15s;
}

.custom-select.open .custom-select__trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select__options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select.open .custom-select__options {
  display: block;
}

.custom-select__option {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.1s, color 0.1s;
}

.custom-select__option:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.custom-select__option.active {
  color: var(--color-text);
  border-left: 2px solid var(--brand-color, #D93B2D);
}

/* Hide native select used as fallback */
.type-select { display: none; }

/* --- Logo Geometry --- */
.logo-geo {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
}

.logo-geo__canvas {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 0;
  bottom: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.logo-geo__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: 0.5;
}

.logo-geo__clearspace {
  position: absolute;
  top: 12.5%;
  left: 12.5%;
  right: 12.5%;
  bottom: 12.5%;
  border: 1px dashed var(--brand-color, #D93B2D);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-geo__mark {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}

/* Rulers */
.logo-geo__ruler {
  position: absolute;
  display: flex;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-muted);
}

.logo-geo__ruler--top {
  top: 10px;
  left: 30px;
  right: 0;
  justify-content: space-between;
  padding: 0 2px;
}

.logo-geo__ruler--left {
  top: 30px;
  left: 0;
  bottom: 0;
  width: 20px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 4px;
}

/* Dimension annotations */
.logo-geo__dim {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-geo__dim-line {
  flex: 1;
  border-top: 1px solid var(--brand-color, #D93B2D);
  opacity: 0.6;
}

.logo-geo__dim-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brand-color, #D93B2D);
  white-space: nowrap;
}

.logo-geo__dim--h {
  bottom: -20px;
  left: 30px;
  right: 0;
}

.logo-geo__dim--v {
  top: 30px;
  right: -50px;
  bottom: 0;
  flex-direction: column;
}

.logo-geo__dim--v .logo-geo__dim-line {
  border-top: none;
  border-left: 1px solid var(--brand-color, #D93B2D);
  width: 0;
  flex: 1;
}

.logo-geo__dim--clear {
  top: 30px;
  left: -55px;
  height: 12.5%;
  flex-direction: column;
  align-items: center;
}

.logo-geo__dim--clear .logo-geo__dim-line {
  border-top: none;
  border-left: 1px dashed var(--brand-color, #D93B2D);
  width: 0;
  flex: 1;
}

.logo-geo__dim--clear .logo-geo__dim-label {
  white-space: nowrap;
  font-size: 8px;
}

/* Crosshairs */
.logo-geo__crosshair--h {
  position: absolute;
  top: calc(50% + 15px);
  left: 30px;
  right: 0;
  height: 0;
  border-top: 1px dashed var(--color-text-muted);
  opacity: 0.25;
}

.logo-geo__crosshair--v {
  position: absolute;
  top: 30px;
  left: calc(50% + 15px);
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--color-text-muted);
  opacity: 0.25;
}

/* Separator box outline */
.logo-geo__sep-box {
  position: absolute;
  top: calc(37% + 30px);
  left: calc(50% + 15px - 12%);
  width: 10%;
  height: 26%;
  border: 1px dashed var(--brand-color, #D93B2D);
  pointer-events: none;
  opacity: 0.7;
}

/* Separator box dimension lines */
.logo-geo__sep-dim {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
}

.logo-geo__sep-dim--w {
  top: calc(63% + 32px);
  left: calc(50% + 15px - 12%);
  width: 10%;
}

.logo-geo__sep-dim--h {
  top: calc(37% + 30px);
  left: calc(50% + 15px + 0%);
  height: 26%;
  flex-direction: column;
}

.logo-geo__sep-dim--h .logo-geo__dim-line {
  border-top: none;
  border-left: 1px solid var(--brand-color, #D93B2D);
  width: 0;
  flex: 1;
}

/* Cap height and baseline markers */
.logo-geo__capline {
  position: absolute;
  left: 30px;
  right: 0;
  height: 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
}

.logo-geo__capline--top { top: calc(37% + 30px); }
.logo-geo__capline--base { top: calc(63% + 30px); }

.logo-geo__cap-label {
  position: absolute;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.logo-geo__cap-label--top { top: calc(37% + 22px); }
.logo-geo__cap-label--base { top: calc(63% + 32px); }

@media (max-width: 768px) {
  .logo-geo { max-width: 100%; }
  .logo-geo__dim--v { right: -35px; }
  .logo-geo__dim--clear { left: -30px; }
  .logo-geo__sep-dim { display: none; }
  .logo-geo__cap-label { display: none; }
}

/* --- Controls Table --- */
.controls-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.controls-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.controls-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
  line-height: 1.6;
}

.controls-table td:first-child {
  white-space: nowrap;
}

.controls-table kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  margin: 0 0.15em;
}

/* --- Brand Kit Specific --- */
.logo-display {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: baseline;
}

.logo-display__monogram {
  font-size: clamp(4rem, 3rem + 5vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-display__wordmark {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.logo-display__wordmark-slash {
  color: var(--brand-color, #D93B2D);
  display: inline-block;
  margin-right: 0.18em;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.swatch {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xs);
  font-size: var(--fs-xs);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.15s;
}

.swatch:hover { transform: scale(1.03); }

.swatch__label { opacity: 0.8; }

.type-scale__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.type-scale__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.gen-demo {
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: #000;
}

.gen-demo canvas {
  display: block;
}

.gen-demo__controls {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}


/* --- Space floor plan --- */
.space-plan-wrap {
  max-width: 700px;
}
.space-plan {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
}

/* --- Export --- */
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.export-card {
  border: 1px solid var(--color-border);
  padding: var(--space-sm);
}

.export-card canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-sm);
}

/* --- Logo --- */
.logo__sep {
  background: var(--brand-color, #D93B2D);
  color: var(--color-bg);
  padding: 0 0.08em;
  margin: 0 0.08em 0 0.12em;
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}
.logo__sep-char {
  display: inline-block;
  transition: opacity 0.15s ease;
}

/* --- Hero text readability --- */
.section--hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(var(--color-bg-rgb), 0.6) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* --- Generative Section Dividers --- */
.gen-divider {
  display: block;
  width: 100%;
  height: 16px;
  margin-top: var(--space-xs);
  opacity: 0.6;
}

/* --- Heading Micro Compositions --- */
.heading__gen {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: var(--space-xs);
  opacity: 0.7;
}

/* --- Card Generative Accents --- */
.card__gen {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 60px;
  height: 60px;
  opacity: 0.4;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* --- Footer Generative Strip --- */
.footer__gen-strip {
  display: block;
  width: 100%;
  height: 24px;
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}

/* --- Responsive --- */
/* --- Hamburger menu --- */
.nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-base);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-family: var(--font-mono);
  line-height: 1;
}

.nav__hamburger:hover { border-color: var(--color-text); }
.nav__hamburger { z-index: 1000; position: relative; }

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    z-index: 999;
  }
  .nav__links.nav__links--open { display: flex; }
  .nav__links.nav__links--always { display: flex !important; position: static; background: none; border: none; padding: 0; padding-right: var(--space-sm); flex-direction: row; gap: var(--space-sm); flex-shrink: 0; }
  .nav { padding: 0 var(--space-sm); }
  .nav__links a { font-size: var(--fs-xs); letter-spacing: 0.1em; }
  .section--hero { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .section { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--platform { grid-template-columns: 1fr; }
  .roadmap-chain {
    --thread-offset: 2.75rem;
    gap: var(--space-sm);
  }
  .roadmap-chain::before {
    left: 1rem;
  }
  .roadmap-chain li,
  .roadmap-chain li:nth-child(odd),
  .roadmap-chain li:nth-child(even) {
    width: calc(100% - var(--thread-offset));
    justify-self: end;
  }
  .roadmap-chain li::before,
  .roadmap-chain li:nth-child(odd)::before,
  .roadmap-chain li:nth-child(even)::before {
    left: calc(-1 * var(--thread-offset));
    right: auto;
    width: 2rem;
    height: 2rem;
  }
  .roadmap-chain li::after,
  .roadmap-chain li:nth-child(odd)::after,
  .roadmap-chain li:nth-child(even)::after {
    left: calc(-1 * var(--thread-offset) + 2rem);
    right: auto;
    width: calc(var(--thread-offset) - 2rem);
  }
  .form { flex-direction: column; }
  .logo-display { flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .brand-brief p { max-width: 100%; }
  .brand-brief__pull { max-width: 100%; }
  .controls-table { font-size: 0.6rem; }
  .controls-table td:nth-child(3) { display: none; }
  .gen-demo { max-width: 100%; }
  .hero__title { font-size: clamp(2.5rem, 8vw, 5rem); }
  .footer { flex-direction: column; gap: var(--space-xs); }
}
