:root {
  /* Architectural Void Palette */
  --bg-canvas: #000000;
  --bg-surface: #000000;
  --bg-surface-elevated: #0a0a0c;
  --bg-surface-hover: #111114;
  --bg-surface-active: #18181c;

  /* Architectural Hairlines */
  --hairline: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.25);
  --border-hover: rgba(255, 255, 255, 0.4);
  --border-focus: #ffffff;

  /* Typographic Hierarchy */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #a1a1aa;
  --text-dim: #a1a1aa;

  /* Functional Accents */
  --accent-white: #ffffff;
  --accent-black: #000000;

  /* Geometry: Architectural Void Mandate - ZERO SOFT CORNERS */
  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;

  /* Fluid Dimensions & Monumental Typography */
  --header-height: 60px;
  --space-fluid-gutter: clamp(16px, 2vw, 24px);
  --space-fluid-stage: 0px;
  --font-monumental: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-hero: clamp(2.4rem, 4.2vw, 7.2rem);
  --font-statement: clamp(0.78rem, 0.85vw, 0.95rem);

  /* Shadows: Strictly Purged */
  --shadow-preview: none;
  --shadow-drawer: none;
}

/* ==========================================================================
   1. Universal Reset & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px !important;
}

html {
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-canvas);
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

::selection {
  background: #ffffff;
  color: #000000;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

a:hover {
  color: #ffffff;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  background: transparent;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

input, textarea, select {
  background-color: transparent;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  font: inherit;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  padding: 14px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus {
  border-bottom-color: #ffffff;
  background-color: transparent;
}

select {
  background-color: #000000 !important;
  color: var(--text-primary) !important;
  border: none !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  font: inherit;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  padding: 14px 28px 14px 0 !important;
  width: 100%;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color 0.15s ease;
}

select:focus {
  border-bottom-color: #ffffff !important;
}

select option {
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
}

textarea {
  border: 1px solid var(--hairline);
  padding: 12px;
  resize: vertical;
}

textarea:focus {
  border-color: #ffffff;
  background-color: transparent;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Visibility Utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.flex { display: flex !important; }

/* ==========================================================================
   2. Header & Hidden Navigation Drawer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 56px);
  position: relative;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-wordmark span.divider {
  color: var(--text-dim);
  font-weight: 300;
}

/* Minimal Hamburger Trigger */
.nav-hamburger-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-hamburger-btn:hover {
  color: #ffffff;
}

.nav-hamburger-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: currentColor;
}

/* Slide-Out Navigation Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: #000000;
  border-left: 1px solid var(--hairline);
  z-index: 210;
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 6vh, 80px) clamp(32px, 5vw, 64px);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .nav-drawer {
    width: clamp(380px, 45vw, 640px);
  }
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(32px, 6vh, 64px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.drawer-close-btn {
  all: unset;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.drawer-section-title {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  border: none;
  gap: clamp(16px, 2.5vh, 28px);
  margin-bottom: clamp(40px, 6vh, 64px);
}

.drawer-link {
  all: unset;
  font-family: var(--font-monumental);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.1s ease;
}

.drawer-link:hover,
.drawer-link.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.drawer-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: none;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  max-height: none;
  overflow: visible;
}

.drawer-lang-btn {
  all: unset;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.1s ease;
}

.drawer-lang-btn:hover,
.drawer-lang-btn.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   3. Main Canvas & Staggered Architectural Stage
   ========================================================================== */
.main-canvas {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(60px, 8vh, 120px) clamp(24px, 3.5vw, 64px) 80px clamp(24px, 3.5vw, 64px);
  flex: 1;
}

/* Mobile Stage: Natural Flow (Tool on Top, Title Below) */
.stage-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: clamp(64px, 12vh, 120px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.stage-studio {
  container-type: inline-size;
  container-name: studio;
}

.generator-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
  order: 1;
  width: 100%;
}

.stage-hero {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.hero-title {
  font-family: var(--font-monumental);
  font-size: var(--font-hero);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.84;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  white-space: normal;
}

.hero-statement {
  font-family: var(--font-mono);
  font-size: var(--font-statement);
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop Stage: Monumental 3-Zone Horizon (Left Title, Center Big QR, Right Controls) */
@media (min-width: 1024px) {
  .stage-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "hero qr controls";
    align-items: start;
    justify-content: center;
    gap: clamp(28px, 3.5vw, 64px);
    margin-bottom: clamp(100px, 16vh, 180px);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .generator-stage-wrap {
    display: contents;
  }

  .stage-hero {
    grid-area: hero;
    order: initial;
    width: 100%;
    min-width: 0;
    justify-self: start;
  }

  .stage-center-qr {
    grid-area: qr;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(340px, 32vw, 520px);
  }

  .stage-right-controls {
    grid-area: controls;
    justify-self: end;
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   4. Zone 3: Vertical Type Selector & Input Controls
   ========================================================================== */
.stage-right-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .stage-right-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: clamp(16px, 2.5vw, 32px);
    align-items: start;
  }
}

/* Vertical Types Navigation Menu */
.type-vertical-menu {
  order: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  border: none;
}

@media (min-width: 1024px) {
  .type-vertical-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
  }
}

.type-vertical-menu .type-nav-pill {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.type-vertical-menu .type-nav-pill:hover {
  color: #ffffff;
}

.type-vertical-menu .type-nav-pill.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.type-vertical-menu .type-idx {
  font-size: 0.85rem;
  color: #71717a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.type-vertical-menu .type-nav-pill.active .type-idx {
  color: #ffffff;
}

.type-vertical-menu .type-name {
  color: inherit;
}

/* Form Controls & Accordion Container */
.controls-form-wrap {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Active Input Panel Island - Elevated above canvas on hover */
.controls-form-wrap > .field-group:not(.hidden) {
  position: relative;
  z-index: 50;
  background: #000000;
  padding: 4px 0;
}

.controls-form-wrap input,
.controls-form-wrap textarea,
.controls-form-wrap select {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--border-default) !important;
}

.controls-form-wrap input:focus,
.controls-form-wrap textarea:focus,
.controls-form-wrap select:focus {
  border-bottom-color: #ffffff !important;
}

/* Baseline Hairline Monolith Input */
.hero-input-field {
  width: 100%;
  height: 56px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-default) !important;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  letter-spacing: 0.02em;
  outline: none !important;
  transition: border-color 0.15s ease;
}

.hero-input-field:focus {
  border-bottom-color: #ffffff !important;
}

/* Form Groups & Multi-Column Inputs */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .field-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Minimalist Customization Accordion */
.customization-details {
  border: none;
  background: transparent;
  padding-top: 16px;
  position: relative;
  z-index: 1;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Hide design accordion on hover inversion */
body:has(#btn-download-primary:hover) .customization-details,
body.unpack-hovered .customization-details {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.customization-summary {
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.customization-summary:hover {
  color: #ffffff;
}

.customization-summary svg {
  transition: transform 0.15s ease;
  color: var(--text-muted);
}

.customization-details[open] .customization-summary svg {
  transform: rotate(180deg);
}

.customization-body {
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInOptions 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInOptions {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: transparent;
}

.option-select-btn {
  all: unset;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.1s ease;
  padding: 4px 0;
}

.option-select-btn:hover {
  color: #ffffff;
}

.option-select-btn.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Swatches */
.swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 0 !important;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch-circle:hover {
  border-color: #ffffff;
}

.swatch-circle.active {
  border-color: #ffffff;
  outline: 1px solid #ffffff;
  outline-offset: 2px;
}

/* Color Pickers */
.color-picker-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-label {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 0;
}

.color-picker-input::-moz-color-swatch {
  border: none;
  border-radius: 0;
}

.color-picker-input:hover,
.color-picker-input:focus {
  border-color: #ffffff !important;
}

.color-hex-label {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   5. Zone 2: Center Hero QR Code & Constrained Controls
   ========================================================================== */
.stage-center-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.qr-stage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(340px, 32vw, 520px);
  max-width: 100%;
}

/* Monumental White Square QR Stage */
.qr-canvas-stage {
  width: clamp(340px, 32vw, 520px);
  height: clamp(340px, 32vw, 520px);
  background: #ffffff;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 50;
  box-shadow: 0 0 0 2px #000000;
}

.qr-canvas-stage svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Controls Constrained strictly to QR Width & Centered */
.qr-under-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.print-size-gauge {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 2px;
}

.resolution-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.resolution-title {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.resolution-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.res-btn {
  all: unset;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 500;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.1s ease;
  letter-spacing: 0.04em;
  padding: 4px 0;
}

.res-btn:hover {
  color: #ffffff;
}

.res-btn.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Primary Stark Download Trigger */
.btn-download-primary {
  width: 100%;
  height: 64px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  z-index: 50;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn-download-primary:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #000000;
}

/* Secondary Actions Constrained to QR Width */
.action-grid-3 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0 2px;
}

.btn-action-ghost {
  all: unset;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 0.1s ease;
  padding: 4px 0;
}

.btn-action-ghost:hover {
  color: #ffffff;
}

/* Procedural Pixel Unpack Canvas & Stacking Context */
#pixel-unpack-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
}

/* ==========================================================================
   6. Monumental Information Grid Sections (Zero Accordions, Stark Hairline Columns)
   ========================================================================== */
.monument-section {
  width: 100%;
  margin-top: clamp(140px, 22vh, 240px);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vh, 110px);
  box-sizing: border-box;
}

.monument-heading {
  font-family: var(--font-monumental);
  font-size: clamp(2.8rem, 5.5vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: var(--text-primary);
  margin: 0;
}

.monument-grid {
  display: grid;
  width: 100%;
  align-items: stretch;
}

.monument-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.monument-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.monument-col {
  padding: 0 clamp(24px, 3vw, 56px);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.monument-col:first-child {
  border-left: none;
  padding-left: 0;
}

.monument-col-title {
  font-family: var(--font-monumental);
  font-size: clamp(1.4rem, 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 0;
}

.monument-col-text {
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 991px) {
  .monument-grid-3,
  .monument-grid-4 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .monument-col {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding: 32px 0 0 0;
  }
  .monument-col:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   7. Site Footer (Pure Distance Transition)
   ========================================================================== */
.site-footer {
  margin-top: clamp(80px, 15vh, 160px);
  border-top: none;
  background: transparent;
  padding: 0 clamp(24px, 3.5vw, 64px) clamp(48px, 6vh, 80px) clamp(24px, 3.5vw, 64px);
  box-sizing: border-box;
  width: 100%;
}

.footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 3vh, 36px);
}

@media (min-width: 860px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.1s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-copy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   8. Architectural Void Content (Blog, Article, Legal, Support & Contact)
   ========================================================================== */

/* Blog Index */
.blog-index-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.blog-post-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 4.5vh, 52px) 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s ease;
  box-sizing: border-box;
}

.blog-post-row:first-child {
  border-top: 1px solid var(--hairline);
}

.blog-post-row:hover {
  opacity: 0.85;
}

.blog-post-idx {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.9vw, 1rem);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-post-title {
  font-family: var(--font-monumental);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.blog-post-row:hover .blog-post-title {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.blog-post-desc {
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.blog-post-link {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-top: 6px;
  width: fit-content;
}

.blog-post-link:hover {
  color: #ffffff;
  text-underline-offset: 6px;
}

/* Article Container & Typography */
.article-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 52px);
  box-sizing: border-box;
}

.article-title {
  font-family: var(--font-monumental);
  font-size: clamp(2.4rem, 5.2vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.article-figure {
  margin: clamp(16px, 3vh, 32px) 0;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 0 !important;
  overflow: hidden;
  background: #000000;
  position: relative;
  box-sizing: border-box;
}

.article-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.article-figcaption {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.8vw, 0.85rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  background: #000000;
}

.article-content {
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: var(--font-monumental);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: clamp(32px, 4vh, 48px);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.article-content h2 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.1;
}

.article-content h3 {
  font-size: clamp(1.3rem, 1.8vw, 2.1rem);
  line-height: 1.2;
}

.article-content p {
  margin: 0;
  color: var(--text-secondary);
}

.article-content strong {
  color: #ffffff;
  font-weight: 700;
}

.article-content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: #ffffff;
  text-underline-offset: 6px;
}

.article-content ul,
.article-content ol {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-content li {
  color: var(--text-secondary);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 0 !important;
  color: #ffffff;
}

.article-content pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: #0a0a0c;
  border: 1px solid var(--hairline);
  padding: 24px;
  overflow-x: auto;
  border-radius: 0 !important;
  color: #ffffff;
}

.article-content blockquote {
  border-left: 2px solid #ffffff;
  padding: 8px 0 8px 24px;
  margin: 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-cta {
  margin-top: clamp(48px, 8vh, 96px);
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--hairline);
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 0 !important;
  box-sizing: border-box;
}

.article-cta h3 {
  font-family: var(--font-monumental);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

.article-cta p {
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.article-cta a,
.article-cta button {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background: #ffffff;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0 !important;
}

.article-cta a:hover,
.article-cta button:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* Legal Pages */
.legal-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 3.5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 48px);
  box-sizing: border-box;
}

.legal-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-title {
  font-family: var(--font-monumental);
  font-size: clamp(2.4rem, 5.2vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.legal-body {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-body h2,
.legal-body h3 {
  font-family: var(--font-monumental) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  margin-top: clamp(28px, 3.5vh, 44px) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.legal-body h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.5rem) !important;
  line-height: 1.1 !important;
}

.legal-body h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.8rem) !important;
  line-height: 1.2 !important;
}

.legal-body p {
  margin: 0;
  color: var(--text-secondary) !important;
}

.legal-body strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.legal-body a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  font-weight: 600 !important;
}

.legal-body ul,
.legal-body ol {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-body li {
  color: var(--text-secondary) !important;
}

/* Support & Contact */
.support-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 80px);
  box-sizing: border-box;
}

.contact-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 56px);
  box-sizing: border-box;
}

.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0 !important;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  padding: 16px 0;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.contact-input:focus {
  border-bottom-color: #ffffff;
  background: transparent;
}

textarea.contact-input {
  border: 1px solid var(--hairline);
  padding: 16px;
  resize: vertical;
  min-height: 120px;
}

textarea.contact-input:focus {
  border-color: #ffffff;
  background: transparent;
}

.contact-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background: #ffffff;
  padding: 18px 36px;
  cursor: pointer;
  border: 1px solid #ffffff;
  border-radius: 0 !important;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  width: 100%;
  text-align: center;
}

.contact-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

.contact-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
