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

:root {
  --bg: #F2F2F2;
  --black: #000000;
  --azure: #2669BA;
  --navy: #0C213F;
  --olive: #3A6B35;
  --cobalt: #023877;
  --white: #ffffff;
  --grey-mid: #888888;
  --grey-light: #DADADA;
  --border: 0.5px solid #000000;
  --border-light: 0.5px solid #DADADA;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Barlow', sans-serif;
  --condensed: 'Barlow Condensed', sans-serif;
  --nav-h: 48px;

  --holo-color: #2669BA;
  --holo-glow: 0 0 8px rgba(38, 105, 186, 0.8), 0 0 15px rgba(38, 105, 186, 0.5);
  --locked-color: #ff003c;
  --locked-glow: 0 0 8px rgba(255, 0, 60, 0.8), 0 0 15px rgba(255, 0, 60, 0.5);
  --hero-holo-bg: linear-gradient(160deg, #050b18 0%, #08142a 48%, #0a1a37 100%);
  --hero-holo-border: rgba(145, 198, 255, 0.26);
  --uniform-radius: 1.25rem;
  --uniform-border-width: 1px;
  --card-glow-scale: 1.08;

  --stagger-dur: 500ms;
  --stagger-distance: 12px;
  --stagger-stagger: 40ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: none;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.preloading {
  overflow: hidden;
}




a { color: inherit; text-decoration: none; cursor: none !important; }
button { background: none; border: none; cursor: none !important; font-family: inherit; }
input { cursor: none !important; }

/* ── VENETIAN BLIND ── */
#blind-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.blind-slat {
  flex: 1;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── SCANLINE ── */
.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: rgba(38, 105, 186, 0.1);
  box-shadow: 0 0 20px rgba(38, 105, 186, 0.2);
  animation: scan 4s linear infinite;
  z-index: 99997;
  pointer-events: none;
  display: none;
}

@keyframes scan { 0% { top: -10px; } 100% { top: 100%; } }

/* ── CUSTOM HOLOGRAPHIC CURSOR ── */
#reticle-crosshair-h,
#reticle-crosshair-v {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  mix-blend-mode: screen;
  background-color: var(--holo-color);
  box-shadow: none;
  opacity: 0.1;
  top: 0; left: 0;
}
#reticle-crosshair-h {
  width: 100vw; height: 1px;
  transform: translateY(-0.5px);
}
#reticle-crosshair-v {
  width: 1px; height: 100vh;
  transform: translateX(-0.5px);
}

#reticle-container {
  position: fixed; top: 0; left: 0;
  width: 50px; height: 50px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99998;
  mix-blend-mode: screen;
  animation: holoFlicker 4s infinite alternate;
  will-change: transform;
}

@keyframes holoFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.7; filter: hue-rotate(5deg); }
  22% { opacity: 0.4; filter: blur(1px); }
}

.reticle-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  transition: transform 0.1s ease-out;
}

#reticle-container.firing .reticle-core { transform: translate(-50%, -50%) scale(1.3); }

.r-dot {
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px;
  background-color: var(--holo-color);
  box-shadow: var(--holo-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.r-cross {
  position: absolute;
  background-color: var(--holo-color);
  box-shadow: var(--holo-glow);
}
.r-cross.v { width: 1px; height: 7px; left: calc(50% - 0.5px); }
.r-cross.h { width: 7px; height: 1px; top: calc(50% - 0.5px); }
.r-cross.top { top: 7px; }
.r-cross.bottom { bottom: 7px; }
.r-cross.left { left: 7px; }
.r-cross.right { right: 7px; }

.r-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--holo-color);
  box-shadow: inset 0 0 10px rgba(38, 105, 186, 0.2), 0 0 10px rgba(38, 105, 186, 0.2);
}
.r-ring.outer {
  width: 34px; height: 34px;
  border-top-color: transparent; border-bottom-color: transparent;
  animation: spinCW 6s linear infinite;
}
.r-ring.inner {
  width: 20px; height: 20px;
  border: 1px dashed var(--holo-color);
  opacity: 0.5;
  animation: spinCCW 8s linear infinite;
}


@keyframes spinCW { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinCCW { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

#reticle-container.locked .r-dot, #reticle-container.locked .r-cross {
  background-color: var(--locked-color);
  box-shadow: var(--locked-glow);
}
#reticle-container.locked .r-ring {
  border-color: var(--locked-color);
  box-shadow: inset 0 0 10px rgba(255, 0, 60, 0.2), 0 0 10px rgba(255, 0, 60, 0.2);
}
#reticle-crosshair-h.locked,
#reticle-crosshair-v.locked {
  background-color: var(--locked-color);
  box-shadow: var(--locked-glow);
}
/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  z-index: 9000;
  pointer-events: none;
}
.progress-bar-fill {
  height: 100%;
  width: 0;
  background: var(--azure);
  transition: width 0.1s linear;
}

@keyframes ticker-holo-text { 0% { background-position: 0% 50% } 100% { background-position: 220% 50% } }
@keyframes ticker { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes glow-pulse {
  0%, 100% {
    border-color: rgba(139, 203, 255, 0.5);
  }
  50% {
    border-color: rgba(139, 203, 255, 1);
  }
}

/* ── NAV ── */
nav {
  position: relative;
  margin: 1rem 2rem 0;
  z-index: 10050;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2rem;
  height: auto;
  overflow: hidden;
  border-radius: var(--uniform-radius);
  backdrop-filter: blur(6px) saturate(120%);
  flex-shrink: 0;
  animation: glow-pulse 3s ease-in-out infinite;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.26), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
}
.nav-left, .nav-right { display: flex; gap: 2rem; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  position: relative;
  transition: filter 0.2s ease;
  background: linear-gradient(90deg, #f6fbff 0%, #9edfff 22%, #d8f3ff 45%, #9fc6ff 68%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 0.5px;
  background: rgba(130, 208, 255, 0.95); transition: width 0.2s;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover {
  filter: brightness(1.15);
  animation: ticker-holo-text 5s linear infinite;
}
.nav-logo {
  font-family: var(--condensed); font-size: 17px; font-weight: 900;
  letter-spacing: 0.22em; text-transform: uppercase; text-align: center; display: flex; align-items: center; justify-content: center;
  color: transparent;
  background: linear-gradient(90deg, #f9fcff 0%, #b4e4ff 28%, #e6f6ff 55%, #9fc6ff 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ticker-holo-text 10s linear infinite;
}
.nav-logo img { height: 20px; }
.nav-search-wrap { display: flex; align-items: center; gap: 6px; position: relative; }
.nav-search-icon {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; transition: color 0.15s; user-select: none; white-space: nowrap; cursor: none;
  color: transparent;
  background: linear-gradient(90deg, #f6fbff 0%, #9edfff 35%, #f3fbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-search-icon:hover { filter: brightness(1.15); }
.nav-search-input {
  background: transparent; border: none; border-bottom: 0.5px solid transparent;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(234, 244, 255, 0.95); width: 0; padding: 2px 0;
  transition: width 0.3s ease, border-color 0.3s ease, padding 0.3s ease; outline: none; cursor: none;
}
.nav-search-input::placeholder { color: rgba(179, 199, 224, 0.72); }
.nav-search-input.open { width: 140px; border-bottom-color: rgba(184, 221, 255, 0.88); padding: 2px 4px; }

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-bottom: none;
  overflow: visible;
  box-sizing: border-box;
  position: relative;
  gap: 1rem;
}

.hero-and-essence-wrapper {
  position: relative;
  background: linear-gradient(160deg, #0C213F 0%, #061126 48%, #000000 100%);
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-preloader {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(7, 23, 48, 0.2), rgba(0, 0, 0, 0.55));
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-preloader.is-exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.hero-preloader.is-hidden {
  display: none;
}

.hero-preloader-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.06em;
  width: min(90vw, 960px);
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 4vw, 2.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196, 228, 255, 0.96);
  text-shadow: 0 0 10px rgba(102, 184, 255, 0.4), 0 0 24px rgba(38, 105, 186, 0.32);
}

.preloader-char {
  display: inline-block;
  min-width: 0.52ch;
  opacity: 0;
  transform: translateY(12px);
}

.preloader-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-preloader.glitching .preloader-char {
  animation: preloader-glitch 220ms steps(2, end) infinite;
}

@keyframes preloader-glitch {
  0% { transform: translate(0, 0); }
  30% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 1px); }
  100% { transform: translate(0, 0); }
}

.hero-reveal-item {
  opacity: 0;
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-reveal-item.is-visible {
  opacity: 1;
}

/* Directional entrance animations */
.hero-reveal-from-top {
  transform: translateY(-48px);
}

.hero-reveal-from-top.is-visible {
  transform: translateY(0);
}

.hero-reveal-from-left {
  transform: translateX(-52px);
  opacity: 0;
}

.hero-reveal-from-left.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.hero-reveal-from-right {
  transform: translateX(52px);
  opacity: 0;
}

.hero-reveal-from-right.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.hero-reveal-from-bottom {
  transform: translateY(48px);
  opacity: 0;
}

.hero-reveal-from-bottom.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Matrix glitch effect */
#matrix-canvas.glitching {
  animation: matrix-glitch 320ms steps(4, end) 1;
}

@keyframes matrix-glitch {
  0% { filter: none; }
  20% { filter: hue-rotate(2deg) brightness(1.08); }
  40% { filter: hue-rotate(-3deg) brightness(0.94); }
  60% { filter: hue-rotate(1deg) brightness(1.04); }
  80% { filter: hue-rotate(-2deg) brightness(0.98); }
  100% { filter: none; }
}

.hero-main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 1.25rem;
  min-height: 0;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.hero-left {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--uniform-radius);
  padding: 1.5rem;
  z-index: 2; /* sit above matrix canvas */
  min-height: 0;
  height: 100%;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  animation: glow-pulse 3s ease-in-out infinite;
  margin: 0 0 0 2rem;
}

.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url('../assets/hero-default.webp') no-repeat center 35% / cover;
  z-index: 0; /* sit below the matrix canvas */
}
.hero-radar {
  display: none;
}

.hero-tv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.48;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.36) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.34) 0px,
      rgba(0, 0, 0, 0.34) 1px,
      rgba(255, 255, 255, 0.06) 2px,
      rgba(0, 0, 0, 0) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      rgba(0, 0, 0, 0) 3px,
      rgba(0, 0, 0, 0) 7px
    );
  background-size: 100% 4px, 100% 100%, 100% 100%;
  animation: tv-flicker 2.8s steps(2, end) infinite, tv-scan-drift 5.2s linear infinite;
  filter: contrast(125%) saturate(84%);
}

.hero-tv-overlay::before,
.hero-tv-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-tv-overlay::before {
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
  animation: tv-noise 0.9s steps(2, end) infinite;
}

.hero-tv-overlay::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.12));
  opacity: 0.18;
}

@keyframes tv-flicker {
  0%, 100% { opacity: 0.38; }
  12% { opacity: 0.5; }
  27% { opacity: 0.34; }
  45% { opacity: 0.56; }
  63% { opacity: 0.37; }
  81% { opacity: 0.48; }
}

@keyframes tv-scan-drift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 12px, 0 0, 0 0; }
}

@keyframes tv-noise {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1px, 1px, 0); }
  50% { transform: translate3d(1px, -1px, 0); }
  75% { transform: translate3d(-1px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.hero-left-top {
  position: relative; z-index: 3; padding: 0; display: flex; align-items: center; gap: 10px;
}
.rec-dot {
  width: 8px; height: 8px; background: var(--azure); border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0.1 } }
.hero-live-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(240, 248, 255, 0.82);
}
.hero-left-content {
  position: relative; z-index: 3; padding: 0;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  gap: 0.9rem; margin-top: 1rem;
}
.hero-top-meta {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--azure); display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem;
}
.hero-top-meta::before {
  content: ''; width: 6px; height: 6px; background: var(--azure); border-radius: 50%; display: block;
}
.hero-title-large {
  font-family: var(--condensed); font-weight: 900; line-height: 0.82;
  letter-spacing: -0.03em; text-transform: uppercase; color: #f7fbff; padding: 0; margin-top: 0;
  margin-left: -0.04em; opacity: 0.62;
}
.hero-title-large .t-line { display: block; overflow: visible; white-space: nowrap; }
.hero-title-large .t-line > span { display: inline-block; transform: translateY(110%); font-size: clamp(3rem, 5.8vw, 9rem); white-space: nowrap; -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.08); }
.hero-title-large .t-accent { color: #ffffff; }
.hero-title-large .t-ghost { color: #ffffff; -webkit-text-stroke: 0; }
.hero-title-large .accent { color: #ffffff; }
.hero-title-large .dark-accent { color: #ffffff; opacity: 1; }
.hero-title-large .transparent { opacity: 1; }
.hero-meta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: auto;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(240, 248, 255, 0.82);
}
.hero-meta-item,
.hero-meta-separator {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-meta-item {
  letter-spacing: 0.16em;
}
.hero-meta-separator {
  color: rgba(200, 225, 255, 0.38);
  transform: translateY(-0.02em);
}


.hero-right {
  display: flex;
  flex-direction: column;
  background: transparent;
  color: rgba(234, 244, 255, 0.92);
  position: relative;
  min-height: 0;
  height: 100%;
  margin: 0 2rem 0 0;
}


#cards-root {
  position: relative;
  z-index: 3; /* ensure cards sit above the matrix canvas and the left image */
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 0;
  height: 100%;
}
.cards-root-wrap, #cards-root {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  position: relative;
  z-index: 3;
  min-height: 0;
  overflow: visible;
}

.cards-grid {
  width: 100%;
  max-width: none;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  padding: 0;
  margin-top: 0;
}

.cards-grid > * {
  height: 100%;
  align-self: stretch;
}

.cards-grid .glass-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius) !important;
  animation: glow-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(172, 214, 255, 0.1), inset 0 0 15px rgba(172, 214, 255, 0.05);
}

.cards-grid .feature-card {
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(1.25rem, 1.65vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card-top-spacer {
  position: relative;
  z-index: 10;
  min-height: 1px;
}

.feature-card-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.5rem 0 0 0.5rem;
  pointer-events: none;
}

.feature-card-canvas-frame {
  width: min(90%, 13.75rem);
  max-width: 13.75rem;
  aspect-ratio: 1;
  opacity: 1;
  mix-blend-mode: screen;
}

.feature-card-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-card-copy {
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.cards-grid .feature-card-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.35vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

.cards-grid .feature-card-description {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 0.78vw, 0.88rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.card-canvas-wrap {
  transform: scale(var(--card-glow-scale));
  transform-origin: left top;
}

/* Card numbering (top-right corner) */
.card-number {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: rgba(220, 235, 255, 0.98);
  background: linear-gradient(180deg, rgba(6,15,42,0.32), rgba(6,15,42,0.18));
  border: var(--uniform-border-width) solid rgba(139,203,255,0.12);
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
}

.card-number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cards-grid .glass-card::before {
  content: '';
  position: absolute;
  /* inset the dots so they don't touch rounded card edges */
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  /* shift the dot grid left so it visually aligns with card content */
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: -1;
}

.cards-grid .glass-card h2 {
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero-right { padding: 1.5rem; }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.hero-message-panel {
  display: grid;
  flex: 1;
  min-height: 0;
  position: relative;
  border-left: 0.5px solid var(--hero-holo-border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  padding: 1rem;
  gap: 0.85rem;
  background: transparent;
}
.hero-message-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  min-height: 160px;
  padding: 1.4rem;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.18);
  border-radius: 1.9rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  box-shadow:
    inset 2px 2px 8px rgba(196, 227, 255, 0.05),
    inset -2px -2px 12px rgba(146, 196, 255, 0.03),
    inset 0 0 10px rgba(188, 222, 255, 0.03),
    0 10px 20px rgba(2, 9, 32, 0.24);
  backdrop-filter: blur(6px) saturate(125%);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
  z-index: 1;
}
.hero-message-tile:nth-child(2n) { border-right: var(--uniform-border-width) solid rgba(224, 242, 255, 0.26); }
.hero-message-tile:nth-last-child(-n + 2) { border-bottom: var(--uniform-border-width) solid rgba(224, 242, 255, 0.26); }
.hero-message-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 8px;
  background: rgba(240, 250, 255, 0.25);
  box-shadow: 0 0 16px rgba(198, 231, 255, 0.32);
  opacity: 0;
  pointer-events: none;
}

.hero-message-tile:hover::after {
  opacity: 1;
  animation: tile-scan 1.8s linear infinite;
}

@keyframes tile-scan {
  0% { top: -12px; }
  100% { top: calc(100% + 12px); }
}
.hero-message-icon {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(221, 242, 255, 0.34);
  border-radius: 999px;
  position: absolute;
  top: 1.05rem;
  left: 1.2rem;
  margin: 0;
  background: radial-gradient(circle at 38% 35%, rgba(174, 225, 255, 0.24), rgba(57, 117, 225, 0.22) 55%, rgba(17, 46, 118, 0.2));
  box-shadow: inset 0 0 18px rgba(200, 234, 255, 0.18);
  overflow: hidden;
}
.hero-message-icon::before,
.hero-message-icon::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 238, 255, 0.3);
  opacity: 0.68;
  transition: transform 0.28s ease, opacity 0.28s ease, border-color 0.28s ease;
}
.hero-message-icon::after {
  inset: 22px;
}
.hero-message-tile:hover .hero-message-icon::before {
  transform: rotate(45deg) scale(1.08);
  border-color: var(--cobalt);
  opacity: 0.9;
}
.hero-message-tile:hover .hero-message-icon::after {
  transform: rotate(-45deg) scale(1.15);
  border-color: var(--azure);
  opacity: 1;
}
.hero-message-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  max-width: none;
  align-self: stretch;
  margin-top: auto;
}
.hero-message-copy h3 {
  font-family: var(--condensed);
  font-size: clamp(1.05rem, 1.3vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f8fcff;
  margin: 0 0 1rem 0;
}
.hero-message-copy p {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(224, 236, 249, 0.9);
  max-width: none;
}

.hero-message-tile:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  transform: translateY(-1px);
}

.hero-message-tile:hover .hero-message-icon {
  border-color: rgba(230, 246, 255, 0.42);
  background: radial-gradient(circle at 38% 35%, rgba(205, 236, 255, 0.34), rgba(81, 140, 240, 0.3) 55%, rgba(22, 58, 140, 0.25));
}

.hero-message-tile:hover .hero-message-icon::before,
.hero-message-tile:hover .hero-message-icon::after {
  border-color: rgba(228, 245, 255, 0.44);
  opacity: 0.82;
}

.hero-message-tile:hover .hero-message-copy h3 {
  color: #ffffff;
}

.hero-message-tile:hover .hero-message-copy p {
  color: rgba(206, 222, 241, 0.88);
}

@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-right { min-height: 420px; }
  .hero-message-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .hero-message-icon {
    width: 64px;
    height: 64px;
  }
  .hero-message-copy h3 { font-size: clamp(0.95rem, 3.8vw, 1.25rem); }
  .hero-message-copy p { font-size: 0.72rem; line-height: 1.4; }
}

/* ── FOOTER BAR ── */
.hero-footer-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  position: relative;
  margin: 0 2rem 1rem 2rem;
  border-radius: var(--uniform-radius);
  z-index: 10050;
  overflow: hidden;
  backdrop-filter: blur(6px) saturate(120%);
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  animation: glow-pulse 3s ease-in-out infinite;
}
.hero-footer-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.26), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
}
.footer-cell {
  padding: 0 2rem; height: 28px; display: flex; align-items: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(219, 235, 255, 0.86);
  border-right: var(--uniform-border-width) solid var(--hero-holo-border);
  opacity: 0;
  position: relative;
  z-index: 2;
}
.footer-cell:last-child { border-right: none; justify-content: flex-end; }
.footer-cell .live { display: flex; align-items: center; gap: 6px; }
.live-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #78d6ff;
  box-shadow: 0 0 7px rgba(120, 214, 255, 0.8);
  animation: blink 2s ease-in-out infinite;
}

/* ── OVERSIZE HEADERS ── */
.oversize-header { padding: 4rem 2rem 2rem 2rem; border-bottom: var(--border); overflow: hidden; }
.oversize-text {
  font-family: var(--condensed); font-size: clamp(5rem, 10vw, 8rem); font-weight: 900;
  line-height: 0.85; text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; margin-left: -4px;
}
.reveal-clip { overflow: hidden; display: block; }
.reveal-clip-inner { display: block; transform: translateY(100%); transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-clip-inner.revealed { transform: translateY(0); }

/* ── SCROLL REVEALS ── */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── SECTIONS ── */
.section { border-bottom: var(--border); }

/* ── TYPOGRAPHY SECTION ── */
.section-typography {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  background: transparent; /* let matrix from .hero-and-essence-wrapper show through */
  border-bottom: none;
}

.section-typography::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}

/* Drifting glow orb */
.section-typography::after {
  content: '';
  position: absolute;
  width: 55%;
  aspect-ratio: 2 / 3;
  top: 10%;
  left: 22%;
  background: radial-gradient(
    ellipse at center,
    rgba(110, 175, 255, 0.32) 0%,
    rgba(70, 135, 220, 0.18) 30%,
    rgba(38, 105, 186, 0.08) 60%,
    transparent 100%
  );
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: spotlight-drift 16s ease-in-out infinite;
}

@keyframes spotlight-drift {
  0%   { transform: translate(0%,    0%);   }
  20%  { transform: translate(28%,  -12%);  }
  40%  { transform: translate(18%,   22%);  }
  60%  { transform: translate(-20%,  18%);  }
  80%  { transform: translate(-10%,  -8%);  }
  100% { transform: translate(0%,    0%);   }
}

.section-typography > * {
  position: relative;
  z-index: 2;
}

/* Header — centered, no border */
.section-typography .oversize-header {
  text-align: center;
  border-bottom: none;
  padding: 3.5rem 2rem 2rem;
}

.section-typography .oversize-text {
  color: var(--white);
}

.section-typography .typography-section-label {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
  letter-spacing: 0.22em;
}

/* Font specimen cards */
.section-typography .grid-3 {
  flex: 1;
  min-height: 0;
  gap: 1.25rem;
  padding: 0 2rem 2rem;
}

.section-typography .type-card {
  position: relative;
  isolation: isolate; /* prevent external blend modes from flickering through the card */
  /* Almost-invisible glass — primarily the backdrop blur defines the surface */
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
  padding: 4.5rem 2rem 4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Dotted grid background matching hero section cards */
.section-typography .type-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
}

/* Glowing edge border */
.section-typography .type-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

/* Centered label inside the card hierarchy — with divider line below */
.section-typography .type-card-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  letter-spacing: 0.22em;
  position: relative;
  z-index: 1;
}

/* Centered weight metadata at bottom of hierarchy — with divider line above */
.section-typography .type-card-weight {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Font name — azure holo gradient, highest hierarchy in the card */
.section-typography .type-name::before,
.section-typography .type-name::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(139, 203, 255, 0.7);
  box-shadow: 0 0 8px rgba(139, 203, 255, 0.5), 0 0 18px rgba(139, 203, 255, 0.25);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 78%, transparent 100%);
  animation: showcase-line-glow 3s ease-in-out infinite;
}

.section-typography .type-name::before { top: 0; }
.section-typography .type-name::after  { bottom: 0; }

.section-typography .type-name {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  line-height: 1;
  margin: 0;
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(90deg, #f9fcff 0%, #b4e4ff 28%, #e6f6ff 55%, #9fc6ff 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ticker-holo-text 10s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(139, 203, 255, 0.35));
}

/* Specimen block — flex: 2 so it takes the largest portion */
.section-typography .type-specimen-block {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.section-typography .type-specimen-row {
  margin: 0;
}

/* Extra space before the lowercase block starts */
.section-typography .type-row-lower {
  margin-top: 1.4rem;
}

/* Numbers row — extra space + tighter tracking + dimmer colour */
.section-typography .type-numbers {
  margin-top: 1.4rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.92em;
}

/* Showcase line — two glowing horizontal rules, top and bottom only */
.section-typography .type-showcase {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 1.85vw, 2.1rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.section-typography .type-showcase::before,
.section-typography .type-showcase::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(139, 203, 255, 0.7);
  box-shadow: 0 0 8px rgba(139, 203, 255, 0.5), 0 0 18px rgba(139, 203, 255, 0.25);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 78%, transparent 100%);
  animation: showcase-line-glow 3s ease-in-out infinite;
}

.section-typography .type-showcase::before { top: 0; }
.section-typography .type-showcase::after  { bottom: 0; }

@keyframes showcase-line-glow {
  0%, 100% {
    background: rgba(139, 203, 255, 0.4);
    box-shadow: 0 0 6px rgba(139, 203, 255, 0.2), 0 0 14px rgba(139, 203, 255, 0.1);
  }
  50% {
    background: rgba(139, 203, 255, 1);
    box-shadow: 0 0 14px rgba(139, 203, 255, 0.65), 0 0 28px rgba(139, 203, 255, 0.3);
  }
}

/* Bottom footer row */
.section-typography .type-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.section-typography .type-card-bottom .label-mono {
  color: rgba(255, 255, 255, 0.5);
}

.section-typography .type-card-bottom .label-mono:last-child {
  color: rgba(255, 255, 255, 0.78);
}
.section-hero-theme {
  position: relative;
  color: var(--white) !important;
  border-bottom: none !important;
  border-top: none !important;
}
.section-hero-theme > * {
  position: relative;
  z-index: 1;
}
.section-hero-theme .oversize-header {
  color: var(--white) !important;
  border-bottom: none !important;
}
.section-hero-theme .cell {
  border-right-color: rgba(139, 203, 255, 0.3) !important;
  background: transparent !important;
}
.section-hero-theme .cell-light,
.section-hero-theme .cell-dark {
  background: rgba(12, 33, 63, 0.4) !important;
  color: var(--white) !important;
  border: 1px solid rgba(139, 203, 255, 0.3) !important;
  border-right: 1px solid rgba(139, 203, 255, 0.3) !important;
}
.section-hero-theme .label-mono {
  color: rgba(219, 235, 255, 0.72) !important;
}
.section-hero-theme .table th {
  color: rgba(219, 235, 255, 0.72) !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.2) !important;
}
.section-hero-theme .table td {
  color: var(--white) !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.1) !important;
}
.section-hero-theme .table-accent {
  color: var(--azure) !important;
}
.section-hero-theme .body-mono {
  color: rgba(234, 244, 255, 0.92) !important;
}
.section-hero-theme .heading-cond {
  color: var(--white) !important;
}
.section-hero-theme .contrast-list li {
  border-bottom: 0.5px solid rgba(255,255,255,0.1) !important;
  color: rgba(234, 244, 255, 0.92) !important;
}

.section-hero-theme .card-number {
  font-size: 20px;
  min-width: 48px;
  height: 48px;
  padding: 9px 13px;
}

.section-hero-theme .label-mono {
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 1.75rem;
}

.section-hero-theme .heading-cond {
  font-size: 3.2rem;
  line-height: 0.92;
}

.section-hero-theme .body-mono {
  font-size: 12px;
  line-height: 1.7;
}

.section-hero-theme .table th,
.section-hero-theme .table td {
  font-size: 16px;
  padding: 1.1rem 0;
}

.section-hero-theme .table th {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.section-hero-theme .contrast-list li {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 0.95rem 0;
}

.section-hero-theme .essence-footnote {
  font-size: 12px;
  line-height: 1.4;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { border-right: var(--border); padding: 3rem 2rem; display: flex; flex-direction: column; }
.cell:last-child { border-right: none; }
.cell-dark { background: var(--navy); color: var(--white); }
.cell-light { background: var(--white); }

/* Typography */
.label-mono { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 1.5rem; }
.heading-cond { font-family: var(--condensed); font-size: 2.5rem; font-weight: 900; text-transform: uppercase; line-height: 0.9; margin-bottom: 1rem; }
.body-mono { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; line-height: 1.8; text-transform: uppercase; }
.body-sans { font-family: var(--sans); font-size: 14px; line-height: 1.6; }

/* Components */
.table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.table th, .table td { padding: 1rem 0; border-bottom: var(--border-light); text-align: left; font-family: var(--sans); font-size: 14px; }
.table th { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-mid); border-bottom: var(--border); }
.table-dark th { border-bottom: 0.5px solid rgba(255,255,255,0.2); }
.table-dark td { border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.table tr:last-child td { border-bottom: none; }
.table-accent { color: var(--azure); font-weight: 700; }

.contrast-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contrast-list li { padding: 0.8rem 0; border-bottom: var(--border-light); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.contrast-list li::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; }
.contrast-list.yes li::before { background: var(--olive); }
.contrast-list.no li::before { background: #b02a2a; }

/* Swatches */
.swatch-fill { height: 280px; width: 100%; margin-bottom: 1.5rem; border: var(--border-light); }
.swatch-hex { font-family: var(--mono); font-size: 11px; font-weight: 700; margin-bottom: 0.5rem; }
.swatch-name { font-family: var(--condensed); font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem; }
.swatch-role { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; color: var(--grey-mid); line-height: 1.6; text-transform: uppercase; }

/* Logo grid */
.logo-display { display: flex; align-items: center; justify-content: center; padding: 6rem; background: var(--white); border-bottom: var(--border); position: relative; }
.logo-display img { max-width: 400px; position: relative; z-index: 2; }
.logo-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--grey-light) 1px, transparent 1px), linear-gradient(to bottom, var(--grey-light) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; pointer-events: none; z-index: 1; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 1rem 2rem; background: var(--azure); color: var(--white); font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--azure); transition: background 0.2s; cursor: none; }
.btn-primary:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

/* Resources */
.resource-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.resource-card:hover {
  border-color: rgba(38, 105, 186, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 30px rgba(38, 105, 186, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.35);
}
.resource-icon { margin-bottom: 2rem; color: var(--azure); }
.resource-badge { display: inline-block; padding: 4px 8px; background: rgba(38, 105, 186, 0.18); border: 1px solid rgba(38, 105, 186, 0.3); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: rgba(139, 203, 255, 0.9); margin-bottom: 1rem; align-self: flex-start; border-radius: 4px; }
.resource-title { font-family: var(--sans); font-size: 18px; font-weight: 700; margin-bottom: auto; padding-bottom: 1rem; }
.resource-action { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--azure); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.75rem; transition: color 0.2s; }
.resource-card:hover .resource-action { color: var(--white); }
.resource-card:hover .resource-action svg { transform: translateX(4px); }
.resource-action svg { transition: transform 0.2s; }

/* Footer */
footer { background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015)); border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7); border-radius: var(--uniform-radius); overflow: hidden; margin: 0 2rem 2rem; backdrop-filter: blur(6px) saturate(150%); -webkit-backdrop-filter: blur(6px) saturate(150%); box-shadow: 0 0 20px rgba(172, 214, 255, 0.1), inset 0 0 15px rgba(172, 214, 255, 0.05); flex-shrink: 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-bottom: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7); }
.footer-col { padding: 1.75rem 2rem; border-right: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7); border-bottom: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7); display: flex; flex-direction: column; }
.footer-col:last-child { border-right: none; }
.footer-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(219, 235, 255, 0.72); margin-bottom: 2rem; }
.footer-brand-blurb { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: rgba(234, 244, 255, 0.92); margin-bottom: 2rem; }
.footer-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; color: rgba(234, 244, 255, 0.92); transition: color 0.2s; }
.footer-link:hover { color: var(--azure); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(219, 235, 255, 0.72); }
.footer-status { display: flex; align-items: center; gap: 8px; }

/* ── BRAND ESSENCE 100VH LAYOUT ── */
.section-hero-theme {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: 2rem;
}

.section-hero-theme .oversize-header {
  flex-shrink: 0;
  padding: 1.5rem 2rem 2.5rem;
}

.essence-bento-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(12rem, auto);
  gap: 1.5rem;
  padding: 0 2rem 0;
}

.essence-card--name,
.essence-card--message,
.essence-card--rule {
  min-width: 0;
}

.essence-card--name {
  grid-column: span 2;
  min-height: 20rem;
}

.essence-card--message {
  grid-column: span 2;
  min-height: 20rem;
}

.essence-card--rule {
  grid-column: span 2;
  min-height: 20rem;
}

.essence-card--name .essence-card-body,
.essence-card--message .essence-card-body {
  justify-content: space-between;
}

.essence-footnote {
  color: rgba(234, 244, 255, 0.8);
  line-height: 1.35;
  max-width: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.essence-bento-grid .essence-card {
  padding: 2.25rem 2.5rem;
  background: linear-gradient(160deg, rgba(5, 11, 24, 0.62) 0%, rgba(8, 20, 42, 0.5) 48%, rgba(10, 26, 55, 0.58) 100%);
  box-shadow: 0 0 18px rgba(172, 214, 255, 0.08), inset 0 0 14px rgba(172, 214, 255, 0.04);
}

.essence-card--name,
.essence-card--message {
  padding: 2.5rem 2.75rem;
}

.essence-card--name .table,
.essence-card--message .table {
  margin-top: 1.25rem;
}

/* ── ESSENCE CARDS (hero glass-card style) ── */
.essence-card {
  position: relative;
  overflow: hidden;
  background: var(--hero-holo-bg);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius);
  animation: glow-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(172, 214, 255, 0.1), inset 0 0 15px rgba(172, 214, 255, 0.05);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.essence-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
}

.essence-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.essence-card .table {
  margin-top: 1rem;
}

/* Keep dotted grid only on card 03 */
.essence-card:not(.essence-card--rule)::before { background-image: none; }

@keyframes scanline-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 3px; }
}

.essence-card--rule .heading-cond {
  font-size: clamp(1.6rem, 2.8vw, 2rem) !important;
  line-height: 0.95;
}

.holo-airspace {
  display: inline;
  background: repeating-linear-gradient(
    180deg,
    #4fc3f7 0px,
    #4fc3f7 2px,
    #1a5f9e 2px,
    #1a5f9e 3px
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(79,195,247,0.75)) drop-shadow(0 0 18px rgba(38,105,186,0.4));
  animation: scanline-scroll 1.2s linear infinite;
}

@media (max-width: 1100px) {
  .essence-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .essence-card--name,
  .essence-card--message,
  .essence-card--rule {
    grid-column: span 1;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .section-hero-theme .oversize-header {
    padding-bottom: 1.5rem;
  }

  .essence-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem 1rem;
  }

  .essence-card--name,
  .essence-card--message,
  .essence-card--rule {
    grid-column: auto;
  }

  .essence-bento-grid .essence-card {
    padding: 1.5rem;
  }

  .essence-card--rule .heading-cond {
    font-size: 2.25rem !important;
  }
}

/* ── COLOR THEME SECTION ── */
.section-color-theme {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: 2rem;
  color: var(--white);
  position: relative;
  border-top: none;
  background: transparent;
}

.section-color-theme > * {
  position: relative;
  z-index: 1;
}

.section-color-theme .oversize-header {
  flex-shrink: 0;
  padding: 1.5rem 2rem 2.5rem;
  border-bottom: none;
  color: var(--white);
}

.section-color-theme .oversize-text {
  color: var(--white);
}

/* ── COLOR BENTO GRID ── */
.color-bento-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr auto;
  gap: 1rem;
  padding: 0 2rem 2rem;
}

/* ── COLOR SWATCH CARDS ── */
.color-swatch-card {
  position: relative;
  border-radius: var(--uniform-radius);
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  animation: glow-pulse 3s ease-in-out infinite;
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  background: linear-gradient(160deg, rgba(5, 11, 24, 0.18) 0%, rgba(8, 20, 42, 0.12) 48%, rgba(10, 26, 55, 0.16) 100%);
  box-shadow: 0 0 20px rgba(172, 214, 255, 0.1), inset 0 0 15px rgba(172, 214, 255, 0.05);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

/* Dot grid overlay matching feature cards */
.color-swatch-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
}

.color-swatch-block {
  flex: 1;
  min-height: 80px;
  border-radius: 0.75rem;
  position: relative;
  z-index: 1;
  opacity: 0.55;
}

.color-swatch-block--light {
  box-shadow: inset 0 0 0 1px rgba(139, 203, 255, 0.25);
}

.color-swatch-info {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.color-swatch-name {
  font-family: var(--condensed);
  font-size: clamp(0.9rem, 1.3vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.color-swatch-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.color-swatch-hex {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 0.8vw, 0.82rem);
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.color-swatch-role {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* Grid placements */
.color-swatch--silver   { grid-column: span 2; }
.color-swatch--gradient { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
.color-swatch--gradient .color-swatch-block { min-height: 4.5rem; }
.color-swatch--gradient .color-swatch-info  { flex-shrink: 0; min-width: 180px; }

/* ── COLOR SECTION RESPONSIVE ── */
@media (max-width: 900px) {
  .color-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
  }
  .color-swatch-card        { min-height: 14rem; }
  .color-swatch--silver     { grid-column: 1 / -1; }
  .color-swatch--gradient   { flex-direction: column; }
  .color-swatch--gradient .color-swatch-info { min-width: 0; }
}

/* ── IDENTITY SECTION ── */
.section-identity {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.section-identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}

.section-identity::after {
  content: '';
  position: absolute;
  width: 55%;
  aspect-ratio: 2 / 3;
  top: 10%;
  right: 8%;
  background: radial-gradient(
    ellipse at center,
    rgba(110, 175, 255, 0.32) 0%,
    rgba(70, 135, 220, 0.18) 30%,
    rgba(38, 105, 186, 0.08) 60%,
    transparent 100%
  );
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: identity-glow-drift 18s ease-in-out infinite;
}

@keyframes identity-glow-drift {
  0%   { transform: translate(0%, 0%); }
  30%  { transform: translate(-22%, 12%); }
  60%  { transform: translate(-12%, -18%); }
  100% { transform: translate(0%, 0%); }
}

.section-identity > * {
  position: relative;
  z-index: 2;
}

.section-identity .oversize-header {
  text-align: center;
  border-bottom: none;
  padding: 3.5rem 2rem 2rem;
}

.section-identity .oversize-text {
  color: var(--white);
}

.section-identity .identity-section-label {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
  letter-spacing: 0.22em;
}

/* Identity bento grid */
.identity-bento {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

/* Logo card — large square spanning full left column */
.identity-logo-card {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.identity-card.identity-logo-card--light {
  background: #F0F0F0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(0,0,0,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 24px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.08);
}

.identity-logo-card::before {
  display: none; /* line grid overlay is enough; no dot grid */
}

.identity-card.identity-logo-card--light::after {
  display: none;
}

.identity-logo-card .logo-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(139, 203, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 203, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
}

.identity-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Statement card — hidden */
.identity-statement-card {
  display: none;
}

/* Identity cards — mirror type-card glass style */
.identity-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
  padding: 2rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) {
  justify-content: flex-start;
  gap: 0;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .label-mono {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .heading-cond {
  font-size: 2rem;
  line-height: 0.95;
  margin-bottom: 0;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .label-mono,
.identity-card:not(.identity-logo-card):not(.identity-statement-card) .heading-cond {
  text-align: center;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .label-mono {
  margin-bottom: 0;
}

.identity-card-icon {
  width: min(10.5rem, 56%);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@keyframes ij-icon-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(100, 180, 255, 0.5))
      drop-shadow(0 0 10px rgba(60, 140, 255, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 12px rgba(139, 203, 255, 1))
      drop-shadow(0 0 28px rgba(80, 160, 255, 0.7))
      drop-shadow(0 0 48px rgba(40, 100, 220, 0.4));
  }
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .identity-card-icon {
  flex: 1;
  min-height: 0;
  width: auto;
  max-width: 42%;
  margin: 1.25rem auto 1.25rem;
  align-self: center;
  object-fit: contain;
  animation: ij-icon-pulse 2.8s ease-in-out infinite;
}

.identity-bento .identity-card:nth-of-type(4) .identity-card-icon,
.identity-bento .identity-card:nth-of-type(5) .identity-card-icon {
  max-width: 58%;
}

.identity-icon-triple {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.identity-icon-triple .identity-card-icon {
  flex: 0 0 auto;
  height: clamp(4rem, 8vw, 7rem);
  width: auto;
  max-width: none;
  margin: 0;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .heading-cond {
  margin-top: 0;
}

.identity-card:not(.identity-logo-card):not(.identity-statement-card) .body-sans {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.6rem;
  font-size: 16px;
  line-height: 1.55;
}

/* Dotted grid overlay */
.identity-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
}

/* Glowing edge border */
.identity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

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

.identity-card .label-mono {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.22em;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  position: relative;
}

/* Glowing holo divider below the label */
.identity-card .label-mono::after {
  display: none;
}

.identity-card .heading-cond {
  color: var(--white);
  margin-top: auto; /* label stays top, heading+body anchor to bottom */
}

.identity-card .body-sans {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.75rem;
}

/* Grid positioning for content cards */
.identity-bento .identity-card:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.identity-bento .identity-card:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.identity-bento .identity-card:nth-of-type(4) {
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.identity-bento .identity-card:nth-of-type(5) {
  grid-column: 3;
  grid-row: 2;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ── SECONDARY AMBIENT ORBS (shared by typography + identity) ── */
.section-orb {
  position: absolute !important;
  z-index: 1 !important;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(70, 140, 230, 0.28) 0%,
    rgba(38, 105, 186, 0.12) 45%,
    transparent 70%
  );
}

.section-orb--bottom-right {
  bottom: 8%;
  right: 6%;
  animation: orb-br-drift 22s ease-in-out infinite;
}

.section-orb--bottom-left {
  bottom: 12%;
  left: 4%;
  animation: orb-bl-drift 19s ease-in-out infinite;
}

@keyframes orb-br-drift {
  0%   { transform: translate(0%,   0%); }
  20%  { transform: translate(-18%,  14%); }
  45%  { transform: translate(-8%,  -16%); }
  70%  { transform: translate(14%,  -8%); }
  100% { transform: translate(0%,   0%); }
}

@keyframes orb-bl-drift {
  0%   { transform: translate(0%,   0%); }
  25%  { transform: translate(20%,  -12%); }
  55%  { transform: translate(10%,   18%); }
  80%  { transform: translate(-14%,  6%); }
  100% { transform: translate(0%,   0%); }
}

@media (max-width: 1100px) {
  .identity-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .section-identity { height: auto; }
  .identity-logo-card { grid-column: 1; grid-row: auto; min-height: 20rem; }
  .identity-statement-card { grid-column: 2; }
}

@media (max-width: 600px) {
  .identity-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 1rem 1rem;
  }
  .identity-logo-card { grid-column: 1; grid-row: auto; min-height: 16rem; }
  .identity-statement-card { grid-column: 1; }
}

/* ── TONE OF VOICE ── */
.section-tov {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-tov::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(110, 175, 255, 0.16) 0%, rgba(70, 135, 220, 0.1) 34%, transparent 70%),
    radial-gradient(ellipse at 20% 100%, rgba(38, 105, 186, 0.12) 0%, transparent 58%);
  filter: blur(42px);
  z-index: 1;
  pointer-events: none;
}

.section-tov .oversize-header {
  border-bottom: none;
  text-align: center;
  overflow: visible;
  padding-top: 5.5rem;
}

.section-tov .oversize-text {
  margin-left: 0;
  color: var(--white);
  text-shadow: 0 0 12px rgba(90, 176, 240, 0.55), 0 0 28px rgba(38, 105, 186, 0.35);
}

.section-tov .reveal-clip {
  overflow: visible;
}

.section-tov > * {
  position: relative;
  z-index: 2;
}

.tov-section-label {
  margin-bottom: 0.4rem;
  color: rgba(130, 213, 255, 0.9);
  text-shadow: 0 0 8px rgba(90, 176, 240, 0.35);
}

.tov-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 0 2rem 5rem;
  min-height: 0;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.tov-left {
  width: min(100%, 54rem);
}

.tov-headline {
  font-family: var(--condensed);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #6ecfff;
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(90, 176, 240, 0.35), 0 0 34px rgba(38, 105, 186, 0.2);
}

.tov-body {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--white);
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── Spectra ── */
.tov-spectra {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: min(100%, 54rem);
}

.tov-spectrum {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tov-poles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: baseline;
}

.tov-pole-l {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(122, 211, 255, 0.96);
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 0 8px rgba(90, 176, 240, 0.3);
}

.tov-pole-m {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(122, 211, 255, 0.34);
  text-transform: uppercase;
  text-align: center;
}

.tov-pole-r {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(122, 211, 255, 0.48);
  text-transform: uppercase;
  text-align: right;
}

.tov-track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

/* Neutral centre tick */
.tov-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, 0.18);
}

.tov-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--azure) 0%, #4a9de0 100%);
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px rgba(38, 105, 186, 0.7), 0 0 3px rgba(74, 157, 224, 0.5);
  position: relative;
}

/* Marker dot at fill tip */
.tov-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ab0f0;
  box-shadow: 0 0 8px rgba(90, 176, 240, 0.9), 0 0 18px rgba(38, 105, 186, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease 0.9s;
}

.tov-fill.animated::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .tov-layout { gap: 2.5rem; padding: 0 1.5rem 3rem; }
  .tov-headline { font-size: 1.65rem; }
}

/* ── IMAGERY & ICONOGRAPHY SECTION ── */
/* ── ICONOGRAPHY SECTION ── */
.section-iconography {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
}

.section-iconography > * {
  position: relative;
  z-index: 2;
}

.section-iconography .oversize-header {
  text-align: center;
  border-bottom: none;
  padding: 3.5rem 2rem 2rem;
}

.section-iconography .oversize-text {
  color: var(--white);
}

.iconography-bento {
  position: relative;
  width: 100%;
  max-width: 96rem;
  height: min(44rem, calc(100dvh - 4rem));
  margin: auto;
  padding: clamp(1rem, 1.4vw, 1.55rem);
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(28rem, 1.22fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1vw, 1.1rem);
  align-content: center;
}

.section-iconography .identity-card {
  border-radius: 18px;
  background:
    linear-gradient(142deg, rgba(39, 87, 139, 0.34), rgba(4, 13, 30, 0.74) 54%),
    radial-gradient(circle at 18% 0%, rgba(139,203,255,0.16), transparent 38%),
    rgba(2, 10, 24, 0.56);
  border-color: rgba(139, 203, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 30px rgba(38, 105, 186, 0.08),
    0 22px 58px rgba(0, 0, 0, 0.28);
}

.section-iconography .identity-card::before {
  inset: 10px;
  opacity: 0.74;
  background-size: 18px 18px;
}

.section-iconography .identity-card::after {
  border-color: rgba(139, 203, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(139, 200, 255, 0.10),
    inset 0 0 24px rgba(139, 200, 255, 0.07),
    0 0 20px rgba(38, 105, 186, 0.12);
}

.section-iconography .identity-card:not(.identity-logo-card):not(.identity-statement-card) .label-mono {
  color: rgba(229, 242, 255, 0.62);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  margin-bottom: 0;
}

/* Anatomy panel */
.icon-anatomy-panel {
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.2vh, 1rem);
}

.icon-anatomy-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.anatomy-icon-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin: 0.35rem 0 0.2rem;
}

.anatomy-sample-icon {
  width: clamp(68px, 5vw, 82px);
  height: clamp(68px, 5vw, 82px);
  border-radius: 18px;
  border: 1px solid rgba(139, 203, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(139, 203, 255, 0.10), rgba(38, 105, 186, 0.035)),
    rgba(3, 14, 34, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 18px rgba(38, 105, 186, 0.12),
    0 0 26px rgba(38, 105, 186, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.anatomy-sample-icon i {
  font-size: clamp(30px, 2.35vw, 38px);
  color: rgba(145, 198, 255, 0.9);
  display: flex;
  animation: ij-icon-pulse 2.8s ease-in-out infinite;
  transition: color 0.05s ease 0.3s;
}

.anatomy-sample-icon:hover {
  border-color: rgba(145, 198, 255, 0.7);
  box-shadow:
    inset 0 0 24px rgba(38, 105, 186, 0.2),
    0 0 28px rgba(38, 105, 186, 0.5),
    0 0 60px rgba(38, 105, 186, 0.18);
}

.anatomy-sample-icon:hover i {
  animation: anatomy-icon-glitch 0.35s steps(1) forwards;
  color: rgba(145, 198, 255, 1);
}

@keyframes anatomy-icon-glitch {
  0%   { transform: translate(0,0);       filter: brightness(1); }
  8%   { transform: translate(-5px,0);    filter: brightness(4) hue-rotate(20deg) saturate(6); }
  14%  { transform: translate(5px,1px);   filter: brightness(1); }
  20%  { transform: translate(-4px,-1px); filter: brightness(3) hue-rotate(-25deg) saturate(0); }
  26%  { transform: translate(4px,0);     filter: brightness(2); }
  34%  { transform: translate(-3px,2px);  filter: brightness(4) hue-rotate(15deg); }
  40%  { transform: translate(3px,-2px);  filter: brightness(1.5) saturate(4); }
  50%  { transform: translate(-2px,1px);  filter: brightness(3); }
  60%  { transform: translate(2px,0);     filter: brightness(1); }
  75%  { transform: translate(-1px,1px);  filter: brightness(2) hue-rotate(10deg); }
  88%  { transform: translate(1px,-1px);  filter: brightness(1); }
  100% { transform: translate(0,0);       filter: brightness(1); }
}

.anatomy-spec-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  justify-content: stretch;
  width: 100%;
  margin-top: 0.1rem;
}

.anatomy-spec-tag {
  font-family: var(--mono);
  font-size: 0.51rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
  text-align: center;
  background: rgba(139,203,255,0.035);
}

.anatomy-icon-outer {
  width: 110px;
  height: 110px;
  border-radius: 30px;
  border: 3px solid var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 105, 186, 0.06);
  box-shadow:
    0 0 0 8px rgba(38, 105, 186, 0.08),
    0 0 32px rgba(38, 105, 186, 0.15);
}

.anatomy-icon-inner svg {
  width: 44px;
  height: 44px;
  stroke: var(--azure);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Stroke Style panel (formerly "style variations") */
.icon-variations-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.2vh, 0.95rem);
  justify-content: center;
}

.icon-variation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  width: 100%;
}

.variation-label {
  min-width: 72px;
  font-size: 2rem;
  line-height: 1;
}

.variation-icons {
  display: flex;
  gap: 0.65rem;
}

.var-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
}

.var-icon i {
  font-size: 16px;
  color: var(--azure);
  display: flex;
}

.var-icon--solid {
  background: var(--azure);
}

.var-icon--solid i {
  color: #fff;
}

.variation-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0;
  width: 100%;
}

.variation-desc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}

.variation-desc p { margin: 0; }

/* Icon grid */
.icon-grid-panel-wrap {
  grid-column: 3;
  grid-row: 1 / 3;
}

.icon-grid-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border: 1px solid rgba(139,203,255,0.22);
  border-radius: 18px;
  overflow: hidden;
  perspective: 700px;
  background:
    linear-gradient(180deg, rgba(139,203,255,0.08), rgba(139,203,255,0.015)),
    rgba(1, 9, 22, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 38px rgba(38,105,186,0.12),
    0 18px 46px rgba(0,0,0,0.24);
}

.icon-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border-right: 1px solid rgba(139,203,255,0.11);
  border-bottom: 1px solid rgba(139,203,255,0.11);
  transition: background 0.25s ease, transform 0.12s ease-out, box-shadow 0.25s ease;
  background:
    linear-gradient(
      160deg,
      rgba(255,255,255,0.075) 0%,
      rgba(45,105,165,0.05) 42%,
      rgba(0,0,0,0.16) 100%
    ),
    radial-gradient(circle at 48% 26%, rgba(139,203,255,0.10), transparent 42%);
  backdrop-filter: blur(18px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.10);
}

.icon-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(139,203,255,0.06) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(139,203,255,0.045) 50%, transparent calc(50% + 0.5px));
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.45;
}

.icon-cell:hover {
  background:
    linear-gradient(
      155deg,
      rgba(145,198,255,0.16) 0%,
      rgba(38,105,186,0.12) 45%,
      rgba(3,18,44,0.20) 100%
    ),
    radial-gradient(circle at 48% 26%, rgba(139,203,255,0.24), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    inset 0 0 18px rgba(140,200,255,0.12),
    0 0 24px rgba(38,105,186,0.22);
}

.icon-cell:hover::before {
  opacity: 1;
}

.icon-cell:nth-child(6n) {
  border-right: none;
}

.icon-cell:nth-last-child(-n+6) {
  border-bottom: none;
}

.icon-cell-number {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  z-index: 1;
}

.icon-cell-name {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: rgba(219,235,255,0.32);
  text-align: center;
  line-height: 1;
  z-index: 1;
  position: relative;
  pointer-events: none;
}

.icon-cell:hover .icon-cell-name {
  color: rgba(145,198,255,0.55);
}

.icon-cell i {
  font-size: clamp(26px, 2.1vw, 34px);
  color: rgba(235,243,255,0.70);
  display: flex;
  transition: color 0.05s ease 0.3s;
  z-index: 1;
  position: relative;
}

.icon-cell:hover i {
  animation: anatomy-icon-glitch 0.35s steps(1) forwards;
  color: rgba(145, 198, 255, 1);
}

/* Icon style / grid rules description text */
.icon-style-desc,
.grid-rules-desc {
  font-family: var(--mono);
  font-size: clamp(0.52rem, 0.58vw, 0.62rem);
  letter-spacing: 0.04em;
  color: rgba(219,235,255,0.44);
  line-height: 1.52;
  text-align: center;
  margin: 0.15rem 0.15rem 0.25rem;
}

/* Grid rules panel */
.icon-grid-rules-panel {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.65rem, 1vh, 0.9rem);
}

.grid-rules-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.grid-rules-svg {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.grid-annot-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.grid-annot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}

.grid-annot-line {
  width: 18px;
  height: 1px;
  flex-shrink: 0;
  background: rgba(139,203,255,0.4);
}

.grid-annot-line--dashed {
  height: 0;
  background: none;
  border-top: 1.5px dashed rgba(139,203,255,0.65);
}

.grid-annot-line--faint {
  height: 0;
  background: none;
  border-top: 1px dashed rgba(139,203,255,0.2);
}

.grid-annot-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(139,203,255,0.28);
  margin-left: 6px;
}

.icon-size-tokens {
  display: flex;
  gap: 0.42rem;
  align-items: flex-end;
  justify-content: center;
}

.size-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.45;
}

.size-token--active {
  opacity: 1;
}

.size-token i {
  color: rgba(139,203,255,0.8);
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.size-token--active i {
  color: rgba(145,198,255,1);
}

.size-token-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1;
}

.size-token--active .size-token-label {
  color: rgba(139,203,255,0.9);
}

/* Stroke comparison rows */
.stroke-comparison {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 0;
}

.stroke-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.45rem;
  padding: 0.52rem 0.68rem;
  border: 1px solid rgba(139,203,255,0.10);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(139,203,255,0.07), rgba(2,10,24,0.18));
}

.stroke-row:last-child {
  border-bottom: 1px solid rgba(139,203,255,0.10);
}

.stroke-weight-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  min-width: 50px;
  flex-shrink: 0;
}

.stroke-icons-col {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.stroke-icons-col i {
  font-size: 18px;
  color: rgba(145,198,255,0.8);
  display: flex;
}

.stroke-use-text {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.28);
  text-align: right;
  flex-shrink: 0;
}

.stroke-note {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: rgba(219,235,255,0.36);
  line-height: 1.45;
  margin: 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid rgba(139,203,255,0.10);
}

/* Illustration language panel */
.icon-illustration-panel {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.55rem, 0.9vh, 0.8rem);
}

.illustration-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
  flex: 0 0 auto;
  justify-content: center;
}

.illust-principle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  color: rgba(229,242,255,0.66);
  line-height: 1;
  min-height: 1.62rem;
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(139,203,255,0.09);
  border-radius: 8px;
  background: rgba(139,203,255,0.035);
}

.illust-principle i {
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  color: rgba(139,203,255,0.8);
}

.illust-dont-item {
  color: rgba(255,255,255,0.42);
  background: rgba(255, 84, 84, 0.035);
  border-color: rgba(255, 100, 100, 0.10);
}

.illust-dont-item i {
  color: rgba(255,100,100,0.6);
}

.illustration-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.illust-vocab-tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139,203,255,0.6);
  border: 1px solid rgba(139,203,255,0.18);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* Iconography refinement — quieter surfaces, clearer hierarchy, denser utility. */
.iconography-bento {
  counter-reset: icon-panel;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(26rem, 1.55fr);
  gap: clamp(0.7rem, 0.9vw, 1rem);
  height: min(44rem, calc(100dvh - 4rem));
}

.section-iconography .identity-card {
  counter-increment: icon-panel;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(17, 43, 76, 0.72), rgba(3, 13, 30, 0.82) 58%),
    rgba(2, 10, 24, 0.72);
  border-color: rgba(139, 203, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 3px 0 0 rgba(91, 166, 238, 0.12),
    0 16px 34px rgba(0, 8, 24, 0.24);
}

.section-iconography .identity-card::before {
  inset: 7px;
  border-radius: 5px;
  opacity: 0.5;
  background-size: 16px 16px;
}

.section-iconography .identity-card::after {
  border-color: rgba(139, 203, 255, 0.25);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 18px rgba(88, 163, 236, 0.045);
}

.section-iconography .identity-card > .label-mono {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(231, 242, 255, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-align: left;
  white-space: nowrap;
}

.section-iconography .identity-card > .label-mono::before {
  content: "0" counter(icon-panel);
  flex: 0 0 auto;
  color: rgba(120, 187, 250, 0.8);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.section-iconography .identity-card > .label-mono::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.22), transparent);
}

.icon-anatomy-panel,
.icon-grid-rules-panel,
.icon-variations-panel,
.icon-illustration-panel {
  justify-content: flex-start;
  gap: clamp(0.55rem, 0.9vh, 0.75rem);
}

.icon-anatomy-panel {
  align-items: stretch;
  text-align: left;
  justify-content: space-between;
}

.anatomy-icon-row {
  width: 100%;
  margin: 0;
  gap: 0.55rem;
}

.anatomy-sample-icon {
  flex: 1;
  width: auto;
  height: clamp(46px, 5.2vh, 58px);
  border-radius: 8px;
  border-color: rgba(139, 203, 255, 0.22);
  background: rgba(82, 148, 214, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.anatomy-sample-icon i {
  font-size: clamp(22px, 1.9vw, 28px);
  color: rgba(178, 216, 251, 0.92);
  animation: none;
  transition: color 180ms ease, transform 180ms ease;
}

.anatomy-sample-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 198, 255, 0.56);
  background: rgba(82, 148, 214, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 20px rgba(0, 10, 28, 0.22);
}

.anatomy-sample-icon:hover i {
  animation: none;
  transform: scale(1.06);
}

.icon-style-desc,
.grid-rules-desc {
  font-size: clamp(0.63rem, 0.72vw, 0.72rem);
  line-height: 1.52;
  letter-spacing: 0.025em;
  color: rgba(224, 237, 252, 0.68);
  text-align: left;
  margin: 0;
  text-wrap: pretty;
}

.anatomy-spec-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
  margin-top: 0;
}

.anatomy-spec-tag {
  border-radius: 5px;
  padding: 0.4rem 0.5rem;
  font-size: 0.56rem;
  color: rgba(223, 237, 252, 0.62);
  background: rgba(139, 203, 255, 0.04);
}

.grid-rules-center {
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  flex: 1;
  min-height: 0;
}

.grid-rules-svg {
  width: clamp(72px, 7vw, 92px);
  height: clamp(72px, 7vw, 92px);
  flex-shrink: 0;
}

.grid-annot-col { gap: 0.5rem; }

.grid-annot {
  gap: 0.42rem;
  font-size: 0.58rem;
  color: rgba(224, 237, 252, 0.62);
  white-space: nowrap;
}

.icon-size-tokens {
  gap: clamp(0.35rem, 0.65vw, 0.65rem);
  justify-content: flex-start;
}

.size-token-label { font-size: 0.54rem; }

.stroke-comparison {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}

.stroke-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border-color: rgba(139, 203, 255, 0.11);
  background: linear-gradient(90deg, rgba(139,203,255,0.065), rgba(2,10,24,0.14));
}

.stroke-weight-tag {
  min-width: 0;
  font-size: 0.58rem;
  color: rgba(229, 241, 255, 0.7);
  letter-spacing: 0.08em;
}

.stroke-icons-col {
  gap: clamp(0.32rem, 0.55vw, 0.52rem);
}

.stroke-icons-col i {
  font-size: clamp(16px, 1.45vw, 20px);
  color: rgba(170, 211, 251, 0.88);
}

.stroke-use-text {
  max-width: 6rem;
  font-size: 0.54rem;
  line-height: 1.3;
  color: rgba(222, 235, 250, 0.5);
  text-align: right;
}

.stroke-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0 0;
  font-size: 0.57rem;
  color: rgba(220, 234, 250, 0.55);
}

.stroke-note span {
  color: rgba(121, 190, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Per-weight row tints — reinforce Regular < Bold < Fill hierarchy */
.stroke-row:nth-child(1) {
  background: linear-gradient(90deg, rgba(139,203,255,0.04), rgba(2,10,24,0.10));
  border-color: rgba(139, 203, 255, 0.09);
}
.stroke-row:nth-child(2) {
  background: linear-gradient(90deg, rgba(100,170,255,0.08), rgba(2,10,24,0.12));
  border-color: rgba(139, 203, 255, 0.14);
}
.stroke-row:nth-child(2) .stroke-weight-tag,
.stroke-row:nth-child(2) .stroke-icons-col i {
  color: rgba(186, 222, 255, 0.92);
}
.stroke-row:nth-child(3) {
  background: linear-gradient(90deg, rgba(70,140,255,0.12), rgba(2,10,24,0.14));
  border-color: rgba(100, 170, 255, 0.2);
}
.stroke-row:nth-child(3) .stroke-weight-tag,
.stroke-row:nth-child(3) .stroke-icons-col i {
  color: rgba(210, 232, 255, 1);
}

.illustration-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  min-height: 0;
  flex: 1;
}

.illustration-group-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.38rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(151, 205, 255, 0.85);
}

.illustration-group-label i {
  font-size: 13px;
}

.illustration-group--avoid .illustration-group-label {
  color: rgba(255, 140, 140, 0.88);
}

.illustration-principles { gap: 0.3rem; }

.illust-principle {
  min-height: 1.56rem;
  padding: 0.32rem 0.52rem;
  border-radius: 5px;
  border-color: rgba(139,203,255,0.1);
  font-size: 0.6rem;
  line-height: 1.25;
  color: rgba(229, 242, 255, 0.72);
}

.illust-dont-item {
  color: rgba(248, 210, 210, 0.72);
  background: rgba(255, 80, 80, 0.05);
  border-color: rgba(255, 110, 110, 0.16);
}

.icon-grid-panel {
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  border-color: rgba(139, 203, 255, 0.24);
  background: rgba(2, 12, 29, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 0 34px rgba(38,105,186,0.07),
    0 18px 40px rgba(0,8,24,0.28);
}

.icon-library-header {
  flex: 0 0 auto;
  min-height: 4.1rem;
  padding: 0.9rem 1.1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(139,203,255,0.16);
  background: linear-gradient(90deg, rgba(69, 139, 207, 0.14), rgba(8, 28, 55, 0.08));
}

.icon-library-header .label-mono {
  margin: 0 0 0.32rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(229, 242, 255, 0.82);
}

.icon-library-header p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.57rem;
  line-height: 1.4;
  color: rgba(218, 234, 251, 0.52);
}

.icon-library-count {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(139,203,255,0.18);
}

.icon-library-count strong {
  font-family: var(--condensed);
  font-size: 2rem;
  line-height: 0.8;
  color: rgba(170, 215, 255, 0.95);
}

.icon-library-count span {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220, 235, 250, 0.4);
}

.icon-library-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.icon-cell {
  gap: 0.34rem;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.045), rgba(35,86,139,0.025) 46%, rgba(0,0,0,0.08));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.icon-cell:hover {
  background:
    linear-gradient(155deg, rgba(145,198,255,0.14), rgba(38,105,186,0.09) 48%, rgba(3,18,44,0.13));
  box-shadow: inset 0 0 18px rgba(140,200,255,0.1);
}

.icon-cell i {
  font-size: clamp(26px, 2.2vw, 34px);
  color: rgba(229, 241, 253, 0.8);
  transition: color 180ms ease, transform 180ms ease;
}

.icon-cell:hover i {
  animation: none;
  color: rgba(158, 207, 253, 1);
  transform: translateY(-2px) scale(1.05);
}

.icon-cell-name {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: rgba(219,235,255,0.45);
}

.icon-cell:hover .icon-cell-name { color: rgba(168, 211, 252, 0.82); }

.icon-cell-number {
  top: 0.46rem;
  left: 0.54rem;
  font-size: 0.5rem;
  color: rgba(188, 219, 248, 0.28);
  font-variant-numeric: tabular-nums;
}

/* Iconography card spacing pass */
.icon-anatomy-panel {
  display: grid;
  grid-template-rows: auto minmax(4.75rem, 1fr) auto auto;
  align-items: stretch;
  align-content: stretch;
  justify-content: stretch;
  gap: clamp(0.85rem, 1.6vh, 1.35rem);
}

.icon-anatomy-panel .anatomy-icon-row {
  height: 100%;
  min-height: 4.75rem;
  align-self: stretch;
}

.icon-anatomy-panel > .icon-style-desc {
  margin-bottom: clamp(1rem, 1.35vh, 1.25rem);
}

.icon-grid-rules-panel {
  display: grid;
  grid-template-rows: auto auto clamp(8.5rem, 20vh, 10rem) auto;
  align-items: stretch;
  align-content: center;
  gap: 0;
}

.icon-grid-rules-panel > .grid-rules-desc {
  margin: 24px 0 0;
}

.icon-grid-rules-panel .grid-rules-center {
  width: 100%;
  justify-content: center;
}

.icon-grid-rules-panel .grid-rules-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.55rem, 0.8vw, 0.8rem);
  margin-block: 24px 36px;
}

.grid-rule-example {
  position: relative;
  min-width: 0;
  min-height: clamp(7rem, 12vh, 9rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.2);
  border-radius: 7px;
  background-color: rgba(38, 105, 186, 0.055);
  background-image: radial-gradient(circle, rgba(139, 203, 255, 0.22) 0.75px, transparent 0.9px);
  background-size: 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.grid-rule-example::before {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(139, 203, 255, 0.52);
  background: rgba(38, 105, 186, 0.07);
}

.grid-rule-example::after {
  content: '';
  position: absolute;
  inset: 10%;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(139, 203, 255, 0.15) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(139, 203, 255, 0.15) 50%, transparent calc(50% + 0.5px));
}

.grid-rule-example i {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3vw, 2.85rem);
  color: rgba(151, 205, 255, 0.9);
  filter: drop-shadow(0 0 14px rgba(70, 145, 230, 0.22));
}

.icon-grid-rules-panel .icon-size-tokens {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  justify-content: stretch;
  gap: 0;
}

.icon-grid-rules-panel .size-token {
  justify-self: center;
}

.icon-illustration-panel > .illustration-groups {
  grid-template-rows: max-content max-content;
  grid-auto-rows: max-content;
  align-content: space-between;
  gap: clamp(1.25rem, 2vh, 1.75rem);
  margin-top: clamp(1rem, 1.65vh, 1.4rem);
}

@media (prefers-reduced-motion: reduce) {
  .anatomy-sample-icon,
  .anatomy-sample-icon i,
  .icon-cell,
  .icon-cell i { transition: none; }
}

@media (max-width: 900px) {
  .iconography-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    padding: 1rem;
  }
  .icon-anatomy-panel,
  .icon-grid-rules-panel,
  .icon-variations-panel,
  .icon-illustration-panel,
  .icon-grid-panel-wrap {
    grid-column: 1;
    grid-row: auto;
  }
  .icon-grid-panel-wrap {
    min-height: 28rem;
  }
  .icon-grid-panel {
    min-height: 38rem;
  }
  .icon-library-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, minmax(5rem, 1fr));
  }
  .icon-cell:nth-child(6n) { border-right: 1px solid rgba(255,255,255,0.07); }
  .icon-cell:nth-last-child(-n+6) { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .icon-cell:nth-child(4n) { border-right: none; }
  .icon-cell:nth-last-child(-n+4) { border-bottom: none; }
}

/* ── RESOURCES SECTION ── */
.section-resources {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(2, 10, 25), rgb(1, 7, 19)),
    rgb(1, 8, 22);
  border-bottom: none;
  border-top: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.section-resources > * {
  position: relative;
  z-index: 2;
}

.section-resources .oversize-header {
  text-align: center;
  border-bottom: none;
  padding: 2rem 2rem 1rem;
}

.section-resources .oversize-text {
  color: var(--white);
}

.resources-downloads {
  margin: 0 var(--section-pad) 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgb(4, 16, 36), rgb(2, 10, 25)),
    rgb(3, 14, 31);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.resources-download-row {
  min-height: 4.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.86rem 1rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.12);
  transition: background 0.2s, border-color 0.2s;
}

.resources-download-row:last-child {
  border-bottom: none;
}

.resources-download-row:hover {
  background: rgba(38, 105, 186, 0.065);
  border-color: rgba(139, 203, 255, 0.22);
}

.resources-download-name {
  min-width: 0;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 0.92vw, 1.08rem);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(234, 244, 255, 0.92);
}

.resources-download-button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  min-width: 7.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(139, 203, 255, 0.38);
  border-radius: 6px;
  background: rgba(41, 121, 255, 0.18);
  color: rgba(234, 244, 255, 0.9);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.resources-download-button:hover,
.resources-download-button:focus-visible {
  background: rgba(41, 121, 255, 0.3);
  border-color: rgba(139, 203, 255, 0.65);
  color: var(--white);
  outline: none;
}

.resources-download-button:active {
  transform: translateY(1px);
}

.resources-download-button i {
  font-size: 0.9rem;
  line-height: 1;
}

.resources-request-banner {
  margin: 0.5rem 2rem 2rem;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.08) 0%, rgba(2, 56, 119, 0.12) 100%);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.resources-request-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.resources-request-icon {
  font-size: 2rem;
  color: var(--electric-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.resources-request-title {
  font-family: var(--condensed);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.resources-request-body {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey-light);
  max-width: 520px;
}

.resources-request-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--electric-blue);
  border: 1px solid rgba(41, 121, 255, 0.35);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.resources-request-cta:hover {
  background: rgba(41, 121, 255, 0.12);
  border-color: rgba(41, 121, 255, 0.6);
  color: var(--white);
}

.resources-request-cta svg {
  transition: transform 0.2s;
}

.resources-request-cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .resources-request-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .resources-downloads { margin: 0 1rem 1.25rem; }
  .resources-download-row {
    min-height: 3.85rem;
    padding: 0.78rem 0.85rem;
  }
  .resources-download-button {
    min-width: 6.55rem;
    padding: 0 0.7rem;
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .resources-request-banner { margin: 0.5rem 1rem 1.5rem; }
}

/* ── PLATFORM SECTION ── */
.section-platform {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.section-platform > * {
  position: relative;
  z-index: 2;
}

.section-platform .oversize-header {
  text-align: center;
  border-bottom: none;
  padding: 3.5rem 2rem 2rem;
}

.section-platform .oversize-text {
  color: var(--white);
}

.platform-bento {
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.identity-card--azure {
  background: rgba(38, 105, 186, 0.15);
  border-color: rgba(38, 105, 186, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(139, 203, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 40px rgba(38, 105, 186, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.30);
}

.platform-list li {
  color: rgba(234, 244, 255, 0.80);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .platform-bento { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
}

/* ── PAGE TOGGLE ── */
.page-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(139, 203, 255, 0.3);
  border-radius: 8px;
  padding: 3px;
}

.page-toggle-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  color: rgba(219, 235, 255, 0.45);
  transition: all 0.2s ease;
  cursor: none;
  white-space: nowrap;
}

.page-toggle-btn--active {
  background: rgba(38, 105, 186, 0.4);
  color: rgba(219, 235, 255, 0.95);
  box-shadow: 0 0 10px rgba(38, 105, 186, 0.35), inset 0 0 6px rgba(139, 203, 255, 0.1);
}

.page-toggle-btn:hover:not(.page-toggle-btn--active) {
  color: rgba(219, 235, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

/* ── PAGE VIEW TOGGLE ── */
.page-view { display: none !important; }
.page-view--active { display: block !important; }

#brand-page.page-view--active {
  min-height: 100dvh;
  overflow: visible;
}

.brand-home-shell {
  height: 100dvh;
  min-height: 100dvh;
}

.brand-home-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0 2rem 1rem;
  overflow: hidden;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius);
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  backdrop-filter: blur(6px) saturate(120%);
  animation: glow-pulse 3s ease-in-out infinite;
}

.brand-home-stage::before {
  content: '';
  position: absolute;
  pointer-events: none;
}

.brand-home-stage::before {
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(139, 203, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 4rem, 4rem 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.brand-home-copy {
  position: relative;
  z-index: 2;
  width: min(78rem, 88%);
  text-align: center;
  transform: translateY(-1.5vh);
}

.brand-home-title {
  position: relative;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(3.25rem, 6.4vw, 7.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #f4f8ff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(38, 105, 186, 0.34);
}

.brand-glitch-fragment {
  position: relative;
  display: block;
  width: fit-content;
  margin-inline: auto;
  white-space: nowrap;
}

.brand-glitch-fragment::before,
.brand-glitch-fragment::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  color: currentColor;
  pointer-events: none;
}

.brand-home-copy.is-glitching .brand-glitch-fragment::before {
  z-index: 1;
  opacity: 0.72;
  color: #8bcfff;
  text-shadow: -2px 0 rgba(38, 105, 186, 0.9);
  animation: brand-copy-glitch-a 720ms steps(2, end) both;
}

.brand-home-copy.is-glitching .brand-glitch-fragment::after {
  z-index: 1;
  opacity: 0.48;
  color: #e8f5ff;
  text-shadow: 2px 0 rgba(139, 203, 255, 0.9);
  animation: brand-copy-glitch-b 640ms 80ms steps(2, end) both;
}

.brand-home-lede {
  margin: clamp(1.55rem, 3.5vh, 2.75rem) auto 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: rgba(225, 237, 251, 0.88);
  text-shadow: 0 0 18px rgba(38, 105, 186, 0.2);
}

@keyframes brand-copy-glitch-a {
  0%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  12% { clip-path: inset(10% 0 68% 0); transform: translateX(-0.045em); }
  28% { clip-path: inset(62% 0 14% 0); transform: translateX(0.035em); }
  44% { clip-path: inset(34% 0 44% 0); transform: translateX(-0.02em); }
  63% { clip-path: inset(76% 0 5% 0); transform: translateX(0.055em); }
  82% { clip-path: inset(18% 0 59% 0); transform: translateX(-0.025em); }
}

@keyframes brand-copy-glitch-b {
  0%, 100% { clip-path: inset(100% 0 0 0); transform: translateX(0); }
  15% { clip-path: inset(72% 0 8% 0); transform: translateX(0.04em); }
  36% { clip-path: inset(22% 0 56% 0); transform: translateX(-0.035em); }
  57% { clip-path: inset(48% 0 30% 0); transform: translateX(0.025em); }
  78% { clip-path: inset(6% 0 74% 0); transform: translateX(-0.05em); }
}

/* Lines start translated down + blurred + invisible; .is-shown
   on the parent flips them to their resting state. The second
   line's transition-delay holds it back by --stagger-stagger
   so the eye lands on the headline first. */
.t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }

.t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Exit decouples from the stagger: same fade for every line,
   no Y return, no blur — so the disappearance reads as a
   single quiet fade instead of a reverse reveal. */
.t-stagger.is-hiding .t-stagger-line {
  opacity: 0;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 200ms ease,
    transform 0s linear,
    filter 0s linear;
  transition-delay: 0s;
}

@media (max-width: 760px) {
  .brand-home-shell > nav {
    grid-template-columns: auto 1fr;
    margin: 1rem 1rem 0;
    padding: 1rem 1.25rem;
  }

  .brand-home-shell > nav .nav-logo {
    justify-content: flex-end;
    font-size: 14px;
  }

  .brand-home-shell > nav .nav-right {
    display: none;
  }

  .brand-home-stage {
    margin: 0 1rem 1rem;
  }

  .brand-home-copy {
    width: 94%;
    transform: translateY(-0.5vh);
  }

  .brand-home-title {
    font-size: clamp(2rem, 7.4vw, 3.5rem);
    line-height: 0.96;
    letter-spacing: 0.005em;
  }

  .brand-home-lede {
    margin-top: 1.35rem;
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-stagger-line { transition: none !important; }

  .brand-home-copy.is-glitching .brand-glitch-fragment::before,
  .brand-home-copy.is-glitching .brand-glitch-fragment::after {
    display: none;
    animation: none;
  }
}

/* ── BRAND STORY / STRUCTURE MAP ── */
.brand-structure-section {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 1rem 2rem;
}

.brand-structure-card {
  position: relative;
  min-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius);
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  backdrop-filter: blur(6px) saturate(120%);
  animation: glow-pulse 3s ease-in-out infinite;
  isolation: isolate;
}

.brand-structure-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 45%, rgba(38, 105, 186, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(5, 17, 39, 0.02), rgba(0, 0, 0, 0.18));
}

.brand-map-visual {
  position: absolute;
  inset: 8% 2% 5%;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.brand-map-base,
.brand-map-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-map-base {
  object-fit: contain;
  opacity: 0.2;
  filter: saturate(0.72) brightness(0.88);
  mix-blend-mode: screen;
}

.brand-map-arcs {
  overflow: visible;
}

.brand-map-route {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.brand-structure-section.is-visible .brand-map-route {
  animation: brand-map-route-draw 1.35s var(--stagger-ease) forwards;
}

.brand-map-route--2 { animation-delay: 120ms !important; }
.brand-map-route--3 { animation-delay: 240ms !important; }
.brand-map-route--4 { animation-delay: 360ms !important; }
.brand-map-route--5 { animation-delay: 480ms !important; }

.brand-map-flow {
  vector-effect: non-scaling-stroke;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.025 0.975;
  stroke-dashoffset: 1;
  opacity: 0;
}

.brand-structure-section.is-visible .brand-map-flow {
  opacity: 0.9;
  animation: brand-map-flow 3.8s linear infinite;
}

.brand-map-flow--2 { animation-delay: -0.75s !important; }
.brand-map-flow--3 { animation-delay: -1.5s !important; }
.brand-map-flow--4 { animation-delay: -2.25s !important; }
.brand-map-flow--5 { animation-delay: -3s !important; }

.brand-map-node {
  opacity: 0;
}

.brand-structure-section.is-visible .brand-map-node {
  opacity: 1;
  transition: opacity 300ms ease 620ms;
}

.brand-map-node-core {
  fill: #f4f8ff;
  stroke: #4dabff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: url(#brandMapGlow);
}

.brand-map-node-pulse {
  fill: rgba(77, 171, 255, 0.12);
  stroke: rgba(139, 203, 255, 0.75);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: brand-map-node-pulse 2.6s ease-out infinite;
}

.brand-map-node--2 .brand-map-node-pulse { animation-delay: -0.4s; }
.brand-map-node--3 .brand-map-node-pulse { animation-delay: -0.8s; }
.brand-map-node--4 .brand-map-node-pulse { animation-delay: -1.2s; }
.brand-map-node--5 .brand-map-node-pulse { animation-delay: -1.6s; }
.brand-map-node--hub .brand-map-node-pulse { animation-delay: -2s; }

.brand-structure-title {
  position: absolute;
  top: 50%;
  left: 4.5%;
  z-index: 3;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(4rem, 7.4vw, 9rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #f4f8ff;
  text-shadow: 0 0 24px rgba(38, 105, 186, 0.45);
  transform: translateY(-50%);
}

.brand-structure-title.scroll-reveal {
  transform: translateY(calc(-50% + 20px));
}

.brand-structure-title.scroll-reveal.revealed {
  transform: translateY(-50%);
}

.brand-structure-title span {
  display: block;
}

.brand-structure-copy {
  position: absolute;
  top: 55%;
  right: 6%;
  z-index: 3;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 2.35rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: rgba(218, 234, 250, 0.76);
  text-shadow: 0 0 18px rgba(38, 105, 186, 0.18);
}

@keyframes brand-map-route-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes brand-map-flow {
  to { stroke-dashoffset: 0; }
}

@keyframes brand-map-node-pulse {
  0% { opacity: 0.95; transform: scale(0.45); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}

@media (max-width: 900px) {
  .brand-structure-section {
    padding: 1rem;
  }

  .brand-structure-card {
    min-height: calc(100dvh - 2rem);
  }

  .brand-map-visual {
    inset: 20% -22% 18%;
  }

  .brand-structure-title {
    top: 27%;
    left: 7%;
    font-size: clamp(3.15rem, 12vw, 6rem);
    transform: none;
  }

  .brand-structure-title.scroll-reveal {
    transform: translateY(20px);
  }

  .brand-structure-title.scroll-reveal.revealed {
    transform: translateY(0);
  }

  .brand-structure-copy {
    top: auto;
    right: 7%;
    bottom: 10%;
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-map-route,
  .brand-map-flow {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .brand-map-node,
  .brand-map-node-pulse {
    opacity: 1;
    transition: none !important;
    animation: none !important;
  }
}

/* ── BRAND STORY / SOVEREIGN AIRSPACE ── */
.brand-sovereign-section {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 1rem 2rem;
}

.brand-sovereign-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  height: calc(100dvh - 2rem);
  min-height: 42rem;
}

.brand-sovereign-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius);
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.055),
    inset 0 -4rem 9rem rgba(0, 0, 0, 0.18);
  isolation: isolate;
  opacity: 0;
  transform: translateY(2.5rem);
  will-change: transform, opacity;
}

.brand-sovereign-section.is-visible .brand-sovereign-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 900ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 900ms cubic-bezier(0.32, 0.72, 0, 1);
}

.brand-sovereign-section.is-visible .brand-sovereign-media-card {
  transition-delay: 120ms;
}

.brand-sovereign-copy-card {
  background:
    radial-gradient(circle at 52% 44%, rgba(38, 105, 186, 0.14), transparent 46%),
    linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
}

.brand-sovereign-copy-card::before,
.brand-sovereign-copy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-sovereign-copy-card::before {
  z-index: 0;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(139, 203, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.09) 1px, transparent 1px);
  background-size: 4.75rem 4.75rem;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.brand-sovereign-copy-card::after {
  z-index: 4;
  opacity: 0;
  background: linear-gradient(112deg, transparent 0 46%, rgba(239, 249, 255, 0.7) 49%, transparent 52% 100%);
  transform: translateX(-115%);
}

.brand-sovereign-section.is-visible .brand-sovereign-copy-card::after {
  animation: brand-sovereign-flash 1.4s cubic-bezier(0.32, 0.72, 0, 1) 420ms both;
}

.brand-sovereign-title {
  position: absolute;
  top: 11%;
  left: 8%;
  right: 8%;
  z-index: 2;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(3.25rem, 4.5vw, 5.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.006em;
  text-transform: uppercase;
  color: #f4f8ff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(38, 105, 186, 0.42);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(2.75rem);
  will-change: transform, opacity, filter;
}

.brand-sovereign-title span {
  display: block;
}

.brand-sovereign-copy {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  z-index: 2;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.65vw, 1.8rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: rgba(218, 234, 250, 0.78);
  text-shadow: 0 0 18px rgba(38, 105, 186, 0.2);
  opacity: 0;
  filter: blur(7px);
  transform: translateY(2rem);
  will-change: transform, opacity, filter;
}

.brand-sovereign-section.is-visible .brand-sovereign-title,
.brand-sovereign-section.is-visible .brand-sovereign-copy {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 900ms cubic-bezier(0.32, 0.72, 0, 1) 120ms,
    transform 900ms cubic-bezier(0.32, 0.72, 0, 1) 120ms,
    filter 900ms cubic-bezier(0.32, 0.72, 0, 1) 120ms;
}

.brand-sovereign-section.is-visible .brand-sovereign-copy {
  transition-delay: 230ms;
}

.brand-sovereign-media-card {
  margin: 0;
  background: #061126;
}

.brand-sovereign-media-card::before,
.brand-sovereign-media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.brand-sovereign-media-card::before {
  background:
    linear-gradient(180deg, rgba(4, 15, 34, 0.08), rgba(4, 15, 34, 0.34)),
    linear-gradient(120deg, rgba(38, 105, 186, 0.18), transparent 52%);
  box-shadow: inset 0 0 0 1px rgba(216, 240, 255, 0.035);
}

.brand-sovereign-media-card::after {
  opacity: 0.18;
  background-image: linear-gradient(rgba(139, 203, 255, 0.16) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

.brand-sovereign-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.72) contrast(1.08) brightness(0.78);
  transform: scale(1.045);
  transition:
    transform 1.4s cubic-bezier(0.32, 0.72, 0, 1),
    filter 700ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.brand-sovereign-section.is-visible .brand-sovereign-media-card img {
  transform: scale(1);
}

.brand-sovereign-media-card:hover img {
  filter: saturate(0.86) contrast(1.05) brightness(0.84);
  transform: scale(1.025);
}

@keyframes brand-sovereign-flash {
  0% { opacity: 0; transform: translateX(-115%); }
  24% { opacity: 0.15; }
  100% { opacity: 0; transform: translateX(115%); }
}

@media (max-width: 900px) {
  .brand-sovereign-section {
    padding: 1rem;
  }

  .brand-sovereign-stack {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(25rem, 52svh) minmax(20rem, 42svh);
    height: auto;
    min-height: calc(100svh - 2rem);
  }

  .brand-sovereign-title {
    top: 8%;
    left: 7%;
    right: 7%;
    font-size: clamp(3rem, 13.6vw, 5.25rem);
    line-height: 0.88;
  }

  .brand-sovereign-copy {
    left: 7%;
    right: 7%;
    bottom: 8%;
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
    line-height: 1.2;
  }

  .brand-sovereign-media-card img {
    object-position: 52% 58%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-sovereign-copy-card::after {
    animation: none !important;
  }

  .brand-sovereign-card,
  .brand-sovereign-title,
  .brand-sovereign-copy {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none !important;
  }

  .brand-sovereign-media-card img {
    transform: none;
    transition: none !important;
  }
}

/* ── BRAND STORY / HEXAGONAL PRINCIPLE ── */
.brand-principle-section,
.brand-discover-section {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 1rem 2rem;
}

.brand-principle-card,
.brand-discover-card {
  position: relative;
  min-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  border-radius: var(--uniform-radius);
  background:
    radial-gradient(circle at 22% 76%, rgba(38, 105, 186, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(143, 196, 255, 0.052), rgba(127, 187, 255, 0.012));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.055),
    inset 0 -5rem 11rem rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.brand-principle-card::before,
.brand-principle-card::after,
.brand-discover-card::before,
.brand-discover-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-principle-card::before,
.brand-discover-card::before {
  z-index: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(139, 203, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.09) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.brand-principle-card::after,
.brand-discover-card::after {
  z-index: 4;
  opacity: 0;
  background: linear-gradient(108deg, transparent 0 46%, rgba(223, 243, 255, 0.55) 49%, transparent 52% 100%);
  transform: translateX(-120%);
}

.brand-principle-section.is-visible .brand-principle-card::after,
.brand-discover-section.is-visible .brand-discover-card::after {
  animation: brand-story-signal-sweep 1.6s cubic-bezier(0.32, 0.72, 0, 1) 420ms both;
}

.brand-principle-meta,
.brand-discover-index {
  position: absolute;
  top: 3.25rem;
  left: 4.5rem;
  right: 4.5rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.7vw, 0.78rem);
  line-height: 1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(184, 215, 245, 0.55);
  opacity: 0;
  transform: translateY(1rem);
}

.brand-principle-title {
  position: absolute;
  top: 17%;
  left: 5.25%;
  z-index: 2;
  margin: 0;
  max-width: 88%;
  font-family: var(--condensed);
  font-size: clamp(3.85rem, 6.5vw, 8.2rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #f4f8ff;
  text-shadow: 0 0 28px rgba(38, 105, 186, 0.34);
  text-wrap: balance;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(2.5rem);
}

.brand-principle-title span {
  color: rgba(194, 221, 246, 0.58);
}

.brand-principle-statement {
  position: absolute;
  right: 5.25%;
  bottom: 10%;
  z-index: 3;
  width: min(34rem, 38%);
  opacity: 0;
  filter: blur(7px);
  transform: translateY(2rem);
}

.brand-principle-statement p {
  margin: 0 0 2rem;
  max-width: 21ch;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.6vw, 3.35rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: rgba(232, 242, 253, 0.9);
  text-wrap: balance;
}

.brand-principle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(139, 203, 255, 0.55);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.8vw, 0.88rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(185, 220, 250, 0.72);
  transition: color 220ms ease, border-color 220ms ease;
}

.brand-principle-link span {
  font-size: 1.15em;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-principle-link:hover,
.brand-principle-link:focus-visible {
  color: #f4f8ff;
  border-color: rgba(197, 230, 255, 0.95);
  outline: none;
}

.brand-principle-link:hover span,
.brand-principle-link:focus-visible span {
  transform: translateX(0.45rem);
}

.brand-principle-geometry {
  position: absolute;
  left: -4%;
  bottom: -10%;
  z-index: 1;
  width: min(57vw, 63rem);
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(38, 105, 186, 0.3));
  transform: translate(-2.5rem, 3rem) scale(0.96);
}

.brand-principle-geometry::before {
  content: '';
  position: absolute;
  inset: -10% 7% 0 4%;
  z-index: -1;
  border: 1px solid rgba(139, 203, 255, 0.18);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: radial-gradient(circle at 50% 52%, rgba(38, 105, 186, 0.14), transparent 56%);
}

.brand-principle-geometry img {
  display: block;
  width: 100%;
  opacity: 0.28;
}

.brand-principle-node {
  position: absolute;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #cce8ff;
  box-shadow: 0 0 0 0.45rem rgba(117, 190, 245, 0.08), 0 0 1.5rem rgba(117, 190, 245, 0.9);
}

.brand-principle-node--one { left: 25%; top: 37%; }
.brand-principle-node--two { left: 53%; top: 55%; }
.brand-principle-node--three { left: 77%; top: 30%; }

.brand-principle-section.is-visible .brand-principle-meta,
.brand-discover-section.is-visible .brand-discover-index,
.brand-principle-section.is-visible .brand-principle-title,
.brand-principle-section.is-visible .brand-principle-statement,
.brand-principle-section.is-visible .brand-principle-geometry {
  opacity: 1;
  filter: none;
  transform: translate(0, 0) scale(1);
  transition:
    opacity 900ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 900ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 900ms cubic-bezier(0.32, 0.72, 0, 1);
}

.brand-principle-section.is-visible .brand-principle-title { transition-delay: 100ms; }
.brand-principle-section.is-visible .brand-principle-geometry { transition-delay: 180ms; }
.brand-principle-section.is-visible .brand-principle-statement { transition-delay: 280ms; }

/* ── BRAND STORY / DISCOVER ── */
.brand-discover-card {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 105, 186, 0.19), transparent 34%),
    linear-gradient(145deg, rgba(143, 196, 255, 0.048), rgba(127, 187, 255, 0.01));
}

.brand-discover-title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(88%, 90rem);
}

.brand-discover-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: var(--condensed);
  font-size: clamp(4.4rem, 9.2vw, 12rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(202, 224, 247, 0.55);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(2.5rem);
  transition: color 350ms ease;
}

.brand-discover-link-line {
  display: flex;
  align-items: center;
  gap: 0.35em;
  color: rgba(240, 247, 255, 0.94);
}

.brand-discover-link b {
  display: inline-block;
  font-weight: 200;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-discover-link:hover,
.brand-discover-link:focus-visible {
  color: rgba(226, 239, 252, 0.9);
  outline: none;
}

.brand-discover-link:hover b,
.brand-discover-link:focus-visible b {
  transform: translateX(0.18em);
}

.brand-discover-section.is-visible .brand-discover-link {
  opacity: 1;
  filter: none;
  transform: translateY(0);
  transition:
    color 350ms ease,
    opacity 1s cubic-bezier(0.32, 0.72, 0, 1) 160ms,
    transform 1s cubic-bezier(0.32, 0.72, 0, 1) 160ms,
    filter 1s cubic-bezier(0.32, 0.72, 0, 1) 160ms;
}

@keyframes brand-story-signal-sweep {
  0% { opacity: 0; transform: translateX(-120%); }
  24% { opacity: 0.12; }
  100% { opacity: 0; transform: translateX(120%); }
}

@media (max-width: 900px) {
  .brand-principle-section,
  .brand-discover-section {
    padding: 1rem;
  }

  .brand-principle-meta,
  .brand-discover-index {
    top: 2rem;
    left: 1.75rem;
    right: 1.75rem;
    font-size: 0.58rem;
  }

  .brand-principle-meta span:last-child,
  .brand-discover-index span:last-child {
    display: none;
  }

  .brand-principle-title {
    top: 15%;
    left: 7%;
    max-width: 86%;
    font-size: clamp(3.25rem, 14.6vw, 5.8rem);
    line-height: 0.88;
  }

  .brand-principle-geometry {
    left: -30%;
    bottom: 13%;
    width: 118%;
  }

  .brand-principle-statement {
    right: auto;
    left: 7%;
    bottom: 7%;
    width: 86%;
  }

  .brand-principle-statement p {
    margin-bottom: 1rem;
    max-width: 17ch;
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .brand-discover-link {
    font-size: clamp(4rem, 20vw, 7.4rem);
    line-height: 0.82;
  }

  .brand-discover-link > span:first-child {
    max-width: 5.5em;
  }

}

@media (prefers-reduced-motion: reduce) {
  .brand-principle-card::after,
  .brand-discover-card::after {
    animation: none !important;
  }

  .brand-principle-meta,
  .brand-principle-title,
  .brand-principle-statement,
  .brand-principle-geometry,
  .brand-discover-index,
  .brand-discover-link {
    opacity: 1;
    filter: none;
    transition: none !important;
  }

  .brand-principle-meta,
  .brand-principle-title,
  .brand-principle-statement,
  .brand-principle-geometry,
  .brand-discover-index,
  .brand-discover-link {
    transform: none;
  }

}
/* ── SYSTEM PAGE ── */
#system-matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
}

#system-page.page-view--active {
  display: grid !important;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(160deg, #0C213F 0%, #061126 48%, #000000 100%);
}

/* Header spans both columns, row 1 */
.system-header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

/* System nav — identical to hero nav */
.system-nav {
  position: relative;
  margin: 1rem 2rem 0;
  z-index: 10050;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.7);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2rem;
  border-radius: var(--uniform-radius);
  backdrop-filter: blur(6px) saturate(120%);
  flex-shrink: 0;
  animation: glow-pulse 3s ease-in-out infinite;
  overflow: hidden;
}

.system-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.26), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
}

.system-nav .nav-left,
.system-nav .nav-right,
.system-nav .nav-logo {
  position: relative;
  z-index: 1;
}

/* ── SYSTEM SIDEBAR NAV — column 1, row 2 ── */
.system-sidenav,
.system-sidenav * {
  text-align: left !important;
  box-sizing: border-box;
}

.system-sidenav {
  grid-column: 1;
  grid-row: 2;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0 2rem;
  margin: 0 0 1rem 2rem;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.04), rgba(127, 187, 255, 0.01));
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.4);
  border-radius: var(--uniform-radius);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 0 20px rgba(172, 214, 255, 0.06), inset 0 0 15px rgba(172, 214, 255, 0.03);
  animation: glow-pulse 3s ease-in-out infinite;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 105, 186, 0.35) transparent;
}

.system-sidenav::-webkit-scrollbar { width: 3px; }
.system-sidenav::-webkit-scrollbar-track { background: transparent; }
.system-sidenav::-webkit-scrollbar-thumb { background: rgba(38, 105, 186, 0.35); border-radius: 2px; }

.sidenav-highlight {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 0;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(38, 105, 186, 0.22), rgba(2, 56, 119, 0.18));
  border: 1px solid rgba(139, 203, 255, 0.45);
  box-shadow: 0 0 14px rgba(38, 105, 186, 0.3), inset 0 0 8px rgba(38, 105, 186, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: top 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.sidenav-highlight.is-visible {
  opacity: 1;
}

.sidenav-nav {
  /* reset global nav styles */
  position: relative;
  margin: 0;
  z-index: auto;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  overflow: visible;
  grid-template-columns: unset;
  /* sidenav layout */
  padding: 1.5rem 0.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.sidenav-nav::before {
  content: none;
}

.sidenav-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border-bottom: none;
}

.sidenav-section:last-child {
  border-bottom: none;
}

.sidenav-section + .sidenav-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sidenav-heading {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(219, 235, 255, 0.55);
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  transition: color 0.18s, background 0.18s;
  position: relative;
}

.sidenav-heading:focus {
  outline: none;
}

.sidenav-heading:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(139, 203, 255, 0.42);
}

.sidenav-heading > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidenav-heading i {
  font-size: 13px;
  flex-shrink: 0;
  color: rgba(139, 203, 255, 0.3);
  transition: color 0.18s;
}

.sidenav-heading:hover {
  color: rgba(219, 235, 255, 0.88);
  background: rgba(139, 203, 255, 0.06);
}

.sidenav-heading:hover i {
  color: rgba(139, 203, 255, 0.65);
}

.sidenav-heading.is-active {
  color: rgba(180, 220, 255, 0.95) !important;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.sidenav-heading.is-active:focus-visible {
  box-shadow: none;
}

.sidenav-heading.is-active i {
  color: rgba(139, 203, 255, 0.85);
}

/* Sub-items hidden by default; shown only when parent heading is active */
.sidenav-items {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.25rem 0;
  background: transparent;
  margin-left: 0;
  position: relative;
}

.sidenav-items::before {
  content: '';
  position: absolute;
  left: 1.28rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: rgba(139, 203, 255, 0.18);
}

.sidenav-heading.is-active + .sidenav-items {
  display: flex;
}

.sidenav-item {
  font-family: var(--mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: rgba(219, 235, 255, 0.42);
  padding: 0.55rem 0.875rem 0.55rem 3.25rem;
  border-radius: 6px;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
  border-left: none;
  background: transparent;
  position: relative;
}

.sidenav-item::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 203, 255, 0.2);
  transform: translateY(-50%);
}

.sidenav-item:hover {
  color: rgba(219, 235, 255, 0.78);
  background: transparent;
}

.sidenav-item:hover::before {
  background: rgba(139, 203, 255, 0.5);
}

.sidenav-item.is-active {
  color: rgba(139, 203, 255, 0.95) !important;
  background: transparent;
}

.sidenav-item.is-active::before {
  background: var(--azure);
  box-shadow: 0 0 5px rgba(38, 105, 186, 0.7);
}

/* ── SYSTEM CONTENT — column 2, row 2 ── */
.system-content {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 2rem 1rem 0;
  background: linear-gradient(145deg, rgba(143, 196, 255, 0.05), rgba(127, 187, 255, 0.015));
  border: var(--uniform-border-width) solid rgba(139, 203, 255, 0.5);
  border-radius: var(--uniform-radius);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 0 20px rgba(172, 214, 255, 0.08), inset 0 0 15px rgba(172, 214, 255, 0.04);
  animation: glow-pulse 3s ease-in-out infinite;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 105, 186, 0.25) transparent;
}

/* ── SYSTEM PAGE: COMPACT SECTION OVERRIDES ── */

/* Force-reveal all section titles — IntersectionObserver doesn't fire inside a nested scroll container */
.system-content .reveal-clip-inner {
  transform: translateY(0) !important;
  transition: none;
}

.system-content .scroll-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Brand overview moved from the home view into the System content rail. */
.system-content .system-brand-overview {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-bottom: var(--border);
  box-sizing: border-box;
}

.system-content .system-brand-overview .hero-main {
  flex: 1;
  min-height: 0;
}

.system-content .system-brand-overview .hero-title-large .t-line > span {
  font-size: clamp(2.75rem, 4.35vw, 6rem);
}

.system-content .system-brand-overview .hero-footer-bar {
  margin-bottom: 1rem;
}

/* All sections: fill glass card, flex column so bento stretches to fill */
.system-content .section-identity,
.system-content .section-color-theme,
.system-content .section-typography,
.system-content .section-iconography,
.system-content .section-resources,
.system-content .section-hero-theme,
.system-content .sys-section-placeholder {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Oversize headers: equal top/bottom, eyebrow text tight to heading */
.system-content .oversize-header {
  padding: 2.5rem 2rem 2rem;
  flex-shrink: 0;
}

.system-content .oversize-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* Eyebrow label sits tight above the heading */
.system-content .oversize-header .label-mono {
  margin-bottom: 0.4rem;
}

/* Bentos fill remaining space, bottom padding matches top */
.system-content .identity-bento {
  flex: 1;
  padding: 0 2rem 2.5rem;
}

.system-content .identity-card {
  min-height: 14rem;
}

.system-content .color-bento-grid {
  flex: 1;
  padding: 0 2rem 2.5rem;
}

.system-content .color-swatch-card {
  min-height: 10rem;
}

.system-content .grid-3 {
  flex: 1;
  padding: 0 2rem 2.5rem;
}

.system-content .type-card {
  padding: 2rem 1.5rem;
}

.system-content .iconography-bento {
  flex: 0 1 auto;
  width: 100%;
  height: min(42rem, calc(100vh - 15rem));
  min-height: min(34rem, calc(100vh - 15rem));
  max-height: none;
  margin: auto;
  padding: 0 clamp(1rem, 1.45vw, 1.55rem);
  align-self: center;
}

.system-content .section-iconography {
  display: grid;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  align-items: center;
  padding: 0;
}

.system-content .section-iconography .identity-card {
  min-height: 0;
  padding: clamp(1.05rem, 1.15vw, 1.48rem);
}

@media (max-width: 900px) {
  .system-content .iconography-bento {
    height: auto;
    max-height: none;
    padding: 1rem;
  }
}

/* Essence cards */
.system-content .section-hero-theme .oversize-header {
  padding: 1rem 2rem 1.25rem;
}

.system-content .essence-bento-grid {
  grid-auto-rows: minmax(8rem, auto);
  gap: 1rem;
  padding: 0 2rem 2rem;
}

.system-content .essence-card--name,
.system-content .essence-card--message,
.system-content .essence-card--rule {
  min-height: 14rem;
}

.system-content .essence-footnote {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* ── PLACEHOLDER SECTIONS ── */
.sys-section-placeholder {
  color: var(--white);
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.08);
}

.sys-section-placeholder .oversize-header {
  padding: 1rem 2rem 1.25rem;
  border-bottom: none;
}

.sys-section-placeholder .oversize-text {
  color: rgba(255, 255, 255, 0.38);
}

.placeholder-body {
  padding: 0 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.placeholder-wip-card {
  border: 0.5px solid rgba(139, 203, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(139, 203, 255, 0.02);
}

.placeholder-badge {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.55);
  border: 0.5px solid rgba(139, 203, 255, 0.2);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 1rem;
}

.placeholder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.placeholder-list li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 235, 255, 0.42);
  padding: 0.55rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.placeholder-list li::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(139, 203, 255, 0.35);
  flex-shrink: 0;
}

.system-content::-webkit-scrollbar { width: 3px; }
.system-content::-webkit-scrollbar-track { background: transparent; }
.system-content::-webkit-scrollbar-thumb { background: rgba(38, 105, 186, 0.25); border-radius: 2px; }

@media (max-width: 760px) {
  #system-page.page-view--active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 0;
  }

  .system-header {
    padding-bottom: 0.75rem;
  }

  .system-nav {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .system-nav {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .system-nav .nav-left,
  .system-nav .nav-logo,
  .system-nav .nav-right {
    justify-content: center;
  }

  .system-nav .nav-right {
    display: none;
  }

  .system-sidenav {
    display: none;
  }

  .system-content {
    grid-column: 1;
    grid-row: 2;
    margin: 0 1rem 1rem;
    border-radius: 1rem;
  }

  .system-content .oversize-header {
    padding: 2rem 1rem 1.35rem;
  }

  .system-content .oversize-text {
    font-size: clamp(1.85rem, 8.6vw, 2.3rem);
    letter-spacing: 0;
    margin-left: 0;
    white-space: normal;
    text-wrap: balance;
  }
}
/* ══════════════════════════════════════════════════
   COLOR SYSTEM — SHARED GLASS CARD MIXIN
   Dotted grid + corner glow dots applied to every
   card across all six colour sections.
══════════════════════════════════════════════════ */

/* Dotted grid overlay ─ same as identity-card::before */
.color-primary-bar::before,
.color-tint-swatches::before,
.color-neutral-card::before,
.color-func-card::before,
.color-specs-table-wrap::before,
.color-specs-note::before,
.color-usage-combos::before,
.color-usage-rules::before,
.color-usage-proportion::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 2;
  mix-blend-mode: screen;
}


/* All direct children sit above pseudo-elements */
.color-primary-bar > *,
.color-neutral-card > *,
.color-func-card > *,
.color-usage-combos > *,
.color-usage-rules > *,
.color-usage-proportion > * {
  position: relative;
  z-index: 3;
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — PRIMARY PALETTE
══════════════════════════════════════════════════ */
.color-primary-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 2rem 2.5rem;
}

.color-primary-bar {
  position: relative;
  isolation: isolate;
  border-radius: var(--uniform-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.color-primary-bar:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(139, 203, 255, 0.08);
}

.color-bar-fill {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.color-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.color-bar-footer {
  flex-shrink: 0;
  padding: 1.25rem;
  background: rgba(5, 11, 24, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.color-bar-num {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(139, 203, 255, 0.45);
  margin-bottom: 0.4rem;
}

.color-bar-name {
  font-family: var(--condensed);
  font-size: clamp(0.85rem, 1.15vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.color-bar-hex {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 0.72vw, 0.74rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 0.35rem;
}

.color-bar-role {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.38);
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — TINTS & SHADES
══════════════════════════════════════════════════ */
.color-tints-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.color-tint-row {
  flex: 1;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 0;
}

.color-tint-label-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.color-tint-color-name {
  font-family: var(--condensed);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.color-tint-base-hex {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(139, 203, 255, 0.4);
}

.color-tint-swatches {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: var(--uniform-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
}

/* No ::after corner dots on tint swatches — they'd obscure the colour steps */
.color-tint-swatches::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
}

.color-tint-cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem 0.65rem;
  min-height: 0;
  z-index: 3;
}

.color-tint-pct {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.color-tint-pct--dark {
  color: rgba(0, 0, 0, 0.35);
}

.color-tint-cell--base .color-tint-pct {
  color: rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — NEUTRAL PALETTE
══════════════════════════════════════════════════ */
.color-neutral-grid {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.color-neutral-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--uniform-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.color-neutral-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(139, 203, 255, 0.07);
}

.color-neutral-swatch {
  flex: 1;
  min-height: 0;
  z-index: 1;
}

.color-neutral-info {
  flex-shrink: 0;
  padding: 1rem;
  background: rgba(5, 11, 24, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.color-neutral-name {
  font-family: var(--condensed);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.color-neutral-hex {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.45rem;
}

.color-neutral-usage {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.36);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — FUNCTIONAL COLOURS
══════════════════════════════════════════════════ */
.color-functional-grid {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.color-func-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--uniform-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.color-func-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(139, 203, 255, 0.07);
}

.color-func-swatch {
  height: 5.5rem;
  flex-shrink: 0;
  z-index: 1;
}

.color-func-info {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.color-func-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
}

.color-func-card--active  .color-func-tag { color: rgba(34,  197,  94, 0.72); }
.color-func-card--alert   .color-func-tag { color: rgba(245, 158,  11, 0.72); }
.color-func-card--critical .color-func-tag { color: rgba(239,  68,  68, 0.72); }
.color-func-card--intel   .color-func-tag { color: rgba(96,  165, 250, 0.72); }

.color-func-name {
  font-family: var(--condensed);
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.color-func-hex {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
}

.color-func-desc {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — SPECIFICATIONS
══════════════════════════════════════════════════ */
.color-specs-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.color-specs-table-wrap {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: var(--uniform-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 105, 186, 0.2) transparent;
}

.color-specs-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 3;
}

.color-specs-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.color-specs-table th {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
  padding: 0.75rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.color-specs-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.color-specs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.color-specs-table td {
  padding: 0.625rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  vertical-align: middle;
}

.specs-swatch-chip {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.specs-mono {
  font-family: var(--mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(255, 255, 255, 0.52) !important;
  white-space: nowrap;
}

.color-specs-note {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--uniform-radius);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.18);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  overflow: hidden;
}

.color-specs-note > * {
  position: relative;
  z-index: 3;
}

/* ══════════════════════════════════════════════════
   COLOR SYSTEM — USAGE GUIDELINES
══════════════════════════════════════════════════ */
.color-usage-section {
  padding-bottom: 0;
}

.section-identity .color-usage-header {
  display: grid;
  grid-template-columns: minmax(29rem, 1fr) minmax(18rem, 24rem);
  align-items: end;
  gap: 2rem;
  text-align: left;
}

.color-usage-title-block {
  min-width: 0;
}

.section-identity .color-usage-title-block .identity-section-label {
  margin-bottom: 0.65rem;
}

.color-usage-intro {
  max-width: 37rem;
  margin: 0 0 0.25rem auto;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(139, 203, 255, 0.28);
  font-family: var(--sans);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: rgba(230, 240, 255, 0.62);
  text-wrap: pretty;
}

.color-usage-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr);
  grid-template-rows: minmax(25rem, 1fr) auto;
  gap: 1rem;
}

.color-usage-combos,
.color-usage-rules,
.color-usage-proportion {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: var(--uniform-radius);
  padding: 1.35rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 105, 186, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(8, 27, 55, 0.7), rgba(2, 11, 25, 0.48));
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 22px 50px rgba(0, 8, 22, 0.3);
  overflow: hidden;
}

.color-usage-combos {
  display: flex;
  flex-direction: column;
}

.color-usage-card-header {
  min-height: 2.25rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.color-usage-card-header .label-mono {
  margin: 0;
  color: rgba(139, 203, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.color-usage-card-header > span,
.color-usage-card-header > div + span {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(219, 235, 255, 0.32);
}

.color-usage-card-header--proportion {
  align-items: end;
  margin-bottom: 0.8rem;
}

.color-usage-card-header--proportion p {
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: rgba(219, 235, 255, 0.48);
}

.color-usage-proportion {
  grid-column: 1 / -1;
  padding-bottom: 1.1rem;
}

.color-combo-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(8rem, 1fr));
  gap: 0.7rem;
}

.color-combo-chip {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  font-family: var(--mono);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.color-combo-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.color-combo-chip--navy-white { background: #0C213F; color: #FFFFFF; }
.color-combo-chip--azure-white { background: #2669BA; color: #FFFFFF; }
.color-combo-chip--black-white { background: #05070B; color: #FFFFFF; }
.color-combo-chip--white-navy { background: #F4F7FA; color: #0C213F; }
.color-combo-chip--navy-azure { background: #0C213F; color: #5DA4F6; }
.color-combo-chip--olive-white { background: #3A6B35; color: #FFFFFF; }

.combo-index {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  z-index: 1;
  font-size: 7px;
  letter-spacing: 0.12em;
  opacity: 0.42;
}

.combo-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.combo-copy strong {
  font-family: var(--condensed);
  font-size: clamp(0.82rem, 1.15vw, 1.05rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.combo-copy small {
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  opacity: 0.48;
  white-space: nowrap;
}

.combo-check {
  position: relative;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  opacity: 0.6;
}

.color-rule-list {
  list-style: none;
  height: calc(100% - 3.1rem);
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(139, 203, 255, 0.1);
}

.color-rule-list li {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.3rem 0.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.09);
}

.color-rule-list li:last-child {
  border-bottom: 0;
}

.rule-number {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: rgba(139, 203, 255, 0.35);
}

.rule-chip {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.rule-chip--navy   { background: #0C213F; border: 1px solid rgba(139,203,255,0.28); }
.rule-chip--azure  { background: #2669BA; }
.rule-chip--olive  { background: #3A6B35; }
.rule-chip--cobalt { background: #023877; border: 1px solid rgba(139,203,255,0.18); }
.rule-chip--white  { background: #FFFFFF; }

.rule-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.rule-copy strong {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 249, 255, 0.88);
}

.rule-copy small {
  font-family: var(--sans);
  font-size: 0.67rem;
  line-height: 1.35;
  color: rgba(219, 235, 255, 0.46);
  text-wrap: pretty;
}

.rule-role {
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.5);
  white-space: nowrap;
}

.color-proportion-bar {
  display: flex;
  height: 4.1rem;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 7, 18, 0.22);
}

.proportion-seg {
  height: 100%;
  min-width: 0;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  text-transform: uppercase;
}

.proportion-seg:last-child {
  border-right: 0;
}

.proportion-seg span {
  min-width: 0;
  overflow: hidden;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
}

.proportion-seg strong {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.proportion-seg--navy  { flex: 0 0 55%; background: #0C213F; color: #FFFFFF; }
.proportion-seg--azure { flex: 0 0 20%; background: #2669BA; color: #FFFFFF; }
.proportion-seg--white { flex: 0 0 15%; background: #F4F7FA; color: #0C213F; }
.proportion-seg--olive { flex: 0 0 10%; background: #3A6B35; color: #FFFFFF; }

.proportion-seg--olive span {
  display: none;
}

.proportion-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.48);
}

.proportion-labels span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proportion-labels .rule-chip {
  display: inline-block;
}

/* ── System-content layout overrides for new color sections ── */
.system-content .color-primary-grid,
.system-content .color-tints-layout,
.system-content .color-neutral-grid,
.system-content .color-functional-grid,
.system-content .color-specs-layout,
.system-content .color-usage-layout {
  flex: 1;
  padding: 0 2rem 2.5rem;
}

/* ── Responsive ── */
@media (max-width: 1600px) {
  .color-usage-layout {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  }

  .color-combo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(6.75rem, 1fr));
  }

  .color-combo-chip {
    grid-column: auto !important;
  }

  .combo-copy small {
    display: none;
  }
}

@media (max-width: 1100px) {
  .color-usage-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .color-usage-proportion {
    grid-column: 1;
  }

  .section-identity .color-usage-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .color-usage-intro {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .color-primary-grid      { grid-template-columns: repeat(2, 1fr); }
  .color-neutral-grid      { grid-template-columns: repeat(3, 1fr); }
  .color-functional-grid   { grid-template-columns: 1fr; grid-template-rows: auto; }
  .color-combo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(8rem, 1fr)); }
  .color-combo-chip { grid-column: auto !important; }
  .color-tint-row          { grid-template-columns: 60px 1fr; }
}

@media (max-width: 560px) {
  .color-usage-layout { padding-left: 1rem; padding-right: 1rem; }
  .color-combo-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 7.5rem); }
  .color-rule-list li { grid-template-columns: 1.25rem 0.8rem minmax(0, 1fr); }
  .rule-role { display: none; }
  .color-proportion-bar { height: 3.4rem; }
  .proportion-seg { padding: 0 0.4rem; justify-content: center; }
  .proportion-seg span { display: none; }
  .proportion-labels { grid-template-columns: 1fr 1fr; }
}
/* Section 1: demo-only layout */
.type-demo-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: flex;
}

.type-demo-layout .type-demo-card {
  flex: 1;
}

/* type-card usable in section-identity sections too */
.section-identity .type-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
  padding: 4.5rem 2rem 4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.section-identity .type-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
  mix-blend-mode: screen;
}

.section-identity .type-card > * { position: relative; z-index: 1; }

/* Secondary: 3 columns — Afacad | JetBrains | When To Use */
.type-sec-layout {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Hierarchy: 2 columns — Barlow Condensed specimen | type scale */
.type-hierarchy-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* Weights: 3 columns — Barlow specimen | BC weights | B weights */
.type-weights-layout {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY SECTIONS 2–6
═══════════════════════════════════════════════════════ */

/* Section 1 grid: demo card in second row */
.section-typography .grid-3 {
  grid-template-rows: 1fr auto;
}

/* ── Demo card (section 1, full-width row) ── */
.type-demo-card {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--uniform-radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 24px 60px rgba(0,0,0,0.32),
    0 4px 16px rgba(0,0,0,0.18);
  overflow: hidden;
  padding: 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.type-demo-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
  mix-blend-mode: screen;
}

.type-demo-label {
  color: rgba(139,203,255,0.45);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.type-demo-headline {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.type-demo-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.925rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 62ch;
  position: relative;
  z-index: 1;
}

.type-demo-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.75rem;
}

.type-demo-meta span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139,203,255,0.4);
}

/* ── Section 2: Secondary Typeface ── */
.type-sec-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.type-mono-card {
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 24px 60px rgba(0,0,0,0.30),
    0 4px 16px rgba(0,0,0,0.15);
  color: var(--white);
  padding: 3rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.type-mono-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
  mix-blend-mode: screen;
}

.type-mono-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.type-mono-specimen {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  color: rgba(255,255,255,0.4);
  line-height: 2.2;
  letter-spacing: 0.06em;
  flex: 1;
  position: relative;
  z-index: 1;
}

.type-mono-showcase {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(139,203,255,0.75);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.type-context-card {
  display: flex;
  flex-direction: column;
}

.type-context-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.type-context-list li {
  font-family: var(--sans);
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.type-context-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(139,203,255,0.65);
}

.type-context-sample {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 2;
  color: rgba(139,203,255,0.75);
  padding: 0.9rem 1rem;
  background: rgba(139,203,255,0.07);
  border-radius: 8px;
  border: 1px solid rgba(139,203,255,0.18);
}

/* Secondary typeface: scale down typography for 1/3-width cards */
.type-sec-layout .type-card .type-specimen-block {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}

.type-sec-layout .type-card .type-showcase {
  font-size: clamp(0.85rem, 1.3vw, 1.15rem);
}

.type-sec-layout .type-card .type-name {
  font-size: clamp(1.2rem, 1.9vw, 2.2rem);
}

/* Hierarchy & Weights: scale down typography for narrow left cards */
.type-hierarchy-layout .type-card .type-specimen-block,
.type-weights-layout .type-card .type-specimen-block {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}

.type-hierarchy-layout .type-card .type-showcase,
.type-weights-layout .type-card .type-showcase {
  font-size: clamp(0.85rem, 1.3vw, 1.15rem);
}

.type-hierarchy-layout .type-card .type-name,
.type-weights-layout .type-card .type-name {
  font-size: clamp(1.2rem, 1.9vw, 2.2rem);
}

/* ── Section 3: Font Hierarchy ── */
.type-hierarchy-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.25rem;
}

.type-scale-table {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.type-scale-row {
  display: grid;
  grid-template-columns: 5rem 1fr 14rem;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.type-scale-row:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.type-scale-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139,203,255,0.5);
  flex-shrink: 0;
}

.type-scale-spec {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.28);
  text-align: right;
}

/* ── Section 4: Font Weights ── */
.type-weights-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.type-weight-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
}

.type-weight-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.type-weight-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(139,203,255,0.5);
  width: 2.5rem;
  flex-shrink: 0;
}

/* ── Section 5: Text Styles ── */
.type-styles-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.type-style-card {
  justify-content: space-between;
  text-align: center;
}

.type-style-tag {
  color: rgba(139,203,255,0.45);
  margin-bottom: 1rem;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-align: center;
}

.type-style-preview {
  flex: 1;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.type-style-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.28);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

/* ── Section 6: Usage Guidelines ── */
.system-content #sys-typography-usage {
  height: 100%;
  min-height: 100%;
  padding-bottom: 0;
}

.type-usage-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.system-content #sys-typography-usage .type-usage-layout {
  flex-basis: 0;
}

.system-content #sys-typography-usage .identity-card {
  min-height: 0;
}

.type-pairing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.5rem 1.25rem;
}

.type-pairing-sample {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.type-pairing-body {
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
}

.type-pairing-spec {
  color: rgba(139,203,255,0.45);
  font-size: 9px;
  padding-top: 0.85rem;
  letter-spacing: 0.14em;
}

.type-rules-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.system-content #sys-typography-usage .type-rules-card {
  padding: clamp(0.9rem, 1.5vh, 1.2rem);
}

/* Right card — rules groups */
.type-rules-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  flex: 1;
  position: relative;
  z-index: 3;
}

.system-content #sys-typography-usage .type-rules-block {
  gap: clamp(0.9rem, 1.7vh, 1.25rem);
}

.type-rules-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.system-content #sys-typography-usage .type-rules-group {
  gap: clamp(0.45rem, 1vh, 0.65rem);
}

.type-rules-group-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}

.type-rules-group-header--dont {
  color: rgba(239,68,68,0.7);
  border-color: rgba(239,68,68,0.15);
}

.type-rules-group-header--do {
  color: rgba(34,197,94,0.7);
  border-color: rgba(34,197,94,0.15);
}

.type-rules-icon {
  font-size: 9px;
}

.system-content #sys-typography-usage .type-rules-group-header {
  padding-bottom: clamp(0.35rem, 0.8vh, 0.5rem);
}

.type-rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 3;
}

.system-content #sys-typography-usage .type-rule-list {
  gap: clamp(0.35rem, 0.85vh, 0.5rem);
}

.type-rule-item {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding-left: 0;
  position: relative;
  line-height: 1.5;
}

.system-content #sys-typography-usage .type-rule-item {
  font-size: clamp(0.72rem, 0.76vw, 0.86rem);
  line-height: 1.32;
}

.type-rule-item.type-rule--dont { color: rgba(255,255,255,0.8); }
.type-rule-item.type-rule--do { color: rgba(255,255,255,0.8); }

.system-content::-webkit-scrollbar { width: 3px; }
.system-content::-webkit-scrollbar-track { background: transparent; }
.system-content::-webkit-scrollbar-thumb { background: rgba(38, 105, 186, 0.25); border-radius: 2px; }

/* ── LOGO SUB-SECTION CONTENT STRETCH ── */
.system-content .logo-sub-layout,
.system-content .logo-var-grid,
.system-content .clearspace-layout,
.system-content .minsize-layout,
.system-content .bg-usage-grid,
.system-content .donts-grid {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
}

/* ── SHARED LOGO UTILS ── */
.logo-sub-eyebrow {
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.18em;
  margin-bottom: 1.1rem;
}

.logo-body-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.logo-rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.logo-rule-list li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139,203,255,0.55);
  padding: 0.6rem 0;
  border-bottom: 0.5px solid rgba(139,203,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.logo-rule-list li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(139,203,255,0.35);
  flex-shrink: 0;
}

/* ── SECONDARY LOGO ── */
.logo-sub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.logo-sub-preview {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 2rem 1.5rem;
  gap: 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.logo-sub-preview--dark {
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-sub-preview--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.logo-sub-preview--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.logo-sub-preview--light { background: #E8E8E8; border-color: rgba(0,0,0,0.08); }

.logo-sub-img-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-sub-preview img {
  max-width: 75%;
  max-height: 200px;
  width: 70%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-sub-bg-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.logo-sub-bg-label--on-light { color: rgba(0,0,0,0.3); }

.logo-sub-info {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-sub-info::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.logo-sub-info::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.logo-sub-info > * { position: relative; z-index: 1; }

.logo-sub-info .logo-sub-eyebrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.logo-sub-info .logo-body-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.logo-sub-info .logo-rule-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  padding: 0.9rem 0;
}

.logo-sub-info .logo-rule-list li::before {
  background: rgba(139, 203, 255, 0.6);
}

/* ── LOGO VARIATIONS ── */
.logo-var-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.logo-var-tile {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 1.5rem;
  gap: 1rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.logo-var-tile:hover { border-color: rgba(139,203,255,0.2); }

.logo-var-tile--dark {
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-var-tile--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.logo-var-tile--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.logo-var-tile--light {
  background: #F0F0F0;
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 24px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.08);
}

.logo-var-tile--light::before,
.logo-var-tile--light::after { display: none; }

.logo-var-tile img {
  max-width: 60%;
  max-height: 160px;
  width: 55%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-var-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}

.logo-var-tag--dark { color: rgba(0,0,0,0.35); }

/* ── CLEAR SPACE ── */
.clearspace-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.clearspace-diagram-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem;
  min-height: 460px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.clearspace-diagram-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.clearspace-diagram-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.cs-diagram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-zone {
  padding: 2.5rem;
  border: 1.5px dashed rgba(38,105,186,0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38,105,186,0.04);
  position: relative;
  overflow: hidden;
}

.cs-logo-img {
  width: 400px;
  height: auto;
  position: relative;
  z-index: 1;
}

.cs-zone .logo-grid-overlay {
  opacity: 0.10;
  background-position: 0 center;
}

.cs-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(38,105,186,0.9);
  background: rgba(5,11,24,0.7);
  padding: 2px 7px;
  border-radius: 3px;
  border: 0.5px solid rgba(38,105,186,0.3);
}

.cs-label--top    { top: -22px; left: 50%; transform: translateX(-50%); }
.cs-label--bottom { bottom: -22px; left: 50%; transform: translateX(-50%); }
.cs-label--left   { left: -32px; top: 50%; transform: translateY(-50%); }
.cs-label--right  { right: -32px; top: 50%; transform: translateY(-50%); }

.clearspace-specs {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.clearspace-specs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.clearspace-specs::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

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

.clearspace-specs .logo-sub-eyebrow {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.clearspace-specs .logo-body-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.cs-spec-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid rgba(139,203,255,0.07);
}

.cs-spec-row:last-child { border-bottom: none; }

.cs-spec-key {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139,203,255,0.65);
  min-width: 52px;
}

.cs-spec-val {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* ── MINIMUM SIZE ── */
.minsize-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.minsize-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.minsize-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.minsize-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.minsize-items-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 5rem;
}

.minsize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.minsize-item--forbidden { opacity: 1; }

.minsize-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.minsize-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.minsize-dim {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

.minsize-badge {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}

.minsize-badge--optimal { background: rgba(38,105,186,0.25); color: rgba(139,203,255,0.9); border: 0.5px solid rgba(38,105,186,0.5); }
.minsize-badge--ok      { background: rgba(58,107,53,0.3);   color: rgba(139,203,139,0.9); border: 0.5px solid rgba(58,107,53,0.55); }
.minsize-badge--warn    { background: rgba(186,140,38,0.25); color: rgba(255,200,80,0.9);  border: 0.5px solid rgba(186,140,38,0.5); }
.minsize-badge--no      { background: rgba(186,38,38,0.25);  color: rgba(255,100,100,0.9); border: 0.5px solid rgba(186,38,38,0.5); }

.minsize-note {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.3);
  padding: 1rem 1.5rem;
  border-left: 2px solid rgba(38,105,186,0.35);
  flex-shrink: 0;
}

/* ── BACKGROUND USAGE ── */
.bg-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.bg-usage-tile {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  border: 1px solid transparent;
  min-height: 200px;
}

.bg-usage-tile img {
  max-width: 72%;
  max-height: 120px;
  object-fit: contain;
  flex: 1;
  min-height: 0;
  margin: auto 0;
}

.bg-tile--navy   { background: var(--navy);   border-color: rgba(255,255,255,0.04); }
.bg-tile--cobalt { background: var(--cobalt); border-color: rgba(255,255,255,0.04); }
.bg-tile--black  { background: #000000;       border-color: rgba(255,255,255,0.04); }
.bg-tile--white  { background: #FFFFFF;       border-color: rgba(0,0,0,0.08); }
.bg-tile--grey   { background: #DADADA;       border-color: rgba(0,0,0,0.06); }
.bg-tile--olive  { background: var(--olive);  border-color: rgba(255,255,255,0.05); }

.bg-tile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.bg-tile-name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.bg-tile-name--dark { color: rgba(0,0,0,0.35); }

.bg-tile-status {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}

.bg-tile-status--ok   { background: rgba(58,107,53,0.35);  color: rgba(139,203,139,0.9); border: 0.5px solid rgba(58,107,53,0.55); }
.bg-tile-status--warn { background: rgba(186,140,38,0.3);  color: rgba(255,200,80,0.9);  border: 0.5px solid rgba(186,140,38,0.5); }
.bg-tile-status--on-light { background: rgba(30,90,30,0.12); color: rgba(20,80,20,0.85); border: 0.5px solid rgba(30,90,30,0.3); }

/* ── DON'TS ── */
.donts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.donts-tile {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s ease;
}

.donts-tile:hover { border-color: rgba(139,203,255,0.2); }

.donts-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -10px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.donts-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(139, 200, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.12),
    inset 1px 0 0 rgba(139, 200, 255, 0.10),
    inset -1px 0 0 rgba(139, 200, 255, 0.10),
    inset 0 0 28px rgba(139, 200, 255, 0.07);
  background: none;
  pointer-events: none;
  z-index: 0;
}

.donts-visual {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.donts-visual--busy {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a3d 50%, #3a2d1a 100%);
}

.donts-visual img {
  max-width: 65%;
  max-height: 100px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   VISUAL LANGUAGE — 01 SHAPE LANGUAGE
══════════════════════════════════════════════════ */

.vis-shape-bento {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

.vis-shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 2rem 1.5rem;
}

.vis-shape-icon {
  width: min(10rem, 70%);
  height: auto;
  display: block;
  margin: 1.5rem auto;
  object-fit: contain;
  flex: 1;
  min-height: 0;
  animation: ij-icon-pulse 2.8s ease-in-out infinite;
}

.vis-shape-name {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.vis-shape-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(219, 235, 255, 0.6);
  flex-shrink: 0;
}

.vis-shape-bento .vis-shape-principles.identity-card {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 1.75rem 2.25rem 2rem;
}

.vis-principles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.14);
}

.vis-principles-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(139, 203, 255, 0.45);
}

.vis-principles-rule-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(139, 203, 255, 0.25);
}

.vis-principles-columns {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}

.vis-principle-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

.vis-principle-col:first-child {
  padding-left: 0;
}

.vis-principle-col:last-child {
  padding-right: 0;
}

.vis-principle-divider {
  width: 0.5px;
  background: rgba(139, 203, 255, 0.12);
  flex-shrink: 0;
  align-self: stretch;
}

.vis-principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(139, 203, 255, 0.4);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.vis-principle-title {
  font-family: var(--condensed);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}

.vis-principle-body {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(219, 235, 255, 0.5);
  margin: 0;
}

/* ══════════════════════════════════════════════════
   VISUAL LANGUAGE — 02 GRID SYSTEM
══════════════════════════════════════════════════ */

.vis-grid-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1rem;
  padding: 0 2rem 2.5rem;
  align-items: stretch;
}

.vis-grid-diagram-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}

.vis-grid-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.75);
}

.vis-grid-col-label { text-align: center; }

.vis-grid-visual {
  display: flex;
  height: 220px;
  border: 1px solid rgba(139, 203, 255, 0.25);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.vis-grid-margin {
  flex: 0 0 6%;
  background: rgba(38, 105, 186, 0.22);
  border-right: 1px dashed rgba(139, 203, 255, 0.4);
}

.vis-grid-margin:last-child {
  border-right: none;
  border-left: 1px dashed rgba(139, 203, 255, 0.4);
}

.vis-grid-cols-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.vis-grid-col {
  border-right: 1px solid rgba(139, 203, 255, 0.18);
  background: rgba(38, 105, 186, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.vis-grid-col:nth-child(odd) {
  background: rgba(38, 105, 186, 0.16);
}

.vis-grid-col:last-child { border-right: none; }

.vis-col-num {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: rgba(139, 203, 255, 0.45);
  user-select: none;
}

.vis-grid-gutter-indicator {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.6);
  text-align: center;
}

.vis-grid-span-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.vis-grid-span-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
}

.vis-grid-span-examples {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 6px;
  padding: 12px;
  background: rgba(8, 16, 40, 0.35);
}

.vis-span-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.vis-span-block {
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(139, 203, 255, 0.18);
  background: rgba(38, 105, 186, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-span-block span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(139, 203, 255, 0.55);
  white-space: nowrap;
}

.vis-span-block.vis-span-accent {
  background: rgba(38, 105, 186, 0.28);
  border-color: rgba(139, 203, 255, 0.3);
}

.vis-span-block.vis-span-accent span {
  color: rgba(139, 203, 255, 0.8);
}

.vis-span-block.vis-span-full {
  background: rgba(38, 105, 186, 0.2);
  border-color: rgba(139, 203, 255, 0.25);
}

.vis-span-block.vis-span-full span {
  color: rgba(139, 203, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 7.5px;
}

.vis-grid-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem;
}

.vis-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.07);
}

.vis-spec-row:last-child { border-bottom: none; }

.vis-spec-key {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(219, 235, 255, 0.75);
}

.vis-spec-val {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.vis-grid-specs .label-mono {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(139, 203, 255, 0.7) !important;
}

.vis-spec-row {
  border-bottom-color: rgba(139, 203, 255, 0.12);
}

/* ══════════════════════════════════════════════════
   VISUAL LANGUAGE — 03 LAYOUT PRINCIPLES
══════════════════════════════════════════════════ */

.vis-layout-bento {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 2rem 2.5rem;
}

.vis-layout-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
}

.vis-layout-num {
  color: rgba(139, 203, 255, 0.38);
  margin-bottom: 0.25rem;
}

.vis-layout-title {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  text-transform: uppercase;
  line-height: 0.92;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.vis-layout-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(219, 235, 255, 0.62);
}

.vis-layout-preview {
  margin-top: auto;
  height: 50%;
  flex-shrink: 0;
  border-radius: 8px;
  border: 0.5px solid rgba(139, 203, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 4px 20px rgba(0,0,0,0.45);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Dark-Dominant preview ── */
.vis-preview--dark {
  background: linear-gradient(145deg, rgba(30,65,130,0.3) 0%, rgba(5,12,28,0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vp-d-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.vp-d-dots { display: flex; gap: 3px; }
.vp-d-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(139,203,255,0.35); }
.vp-d-topbar-title { flex: 1; height: 5px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 0 6px; }
.vp-d-topbar-badge {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: rgba(139,203,255,0.9);
  padding: 1px 4px;
  border: 0.5px solid rgba(139,203,255,0.5);
  border-radius: 2px;
  background: rgba(139,203,255,0.08);
}
.vp-d-body { flex: 1; display: flex; min-height: 0; }
.vp-d-sidebar {
  width: 30px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 0.5px solid rgba(255,255,255,0.07);
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.vp-d-nav-item { height: 3px; border-radius: 1px; background: rgba(255,255,255,0.1); }
.vp-d-nav-item--active { background: rgba(139,203,255,0.6); }
.vp-d-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.vp-d-stats-row { display: flex; gap: 4px; flex-shrink: 0; }
.vp-d-stat {
  flex: 1;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 4px 5px;
}
.vp-d-stat--accent {
  background: rgba(139,203,255,0.1);
  border-color: rgba(139,203,255,0.25);
}
.vp-d-stat-val { height: 6px; width: 70%; background: rgba(255,255,255,0.35); border-radius: 1px; margin-bottom: 3px; }
.vp-d-stat--accent .vp-d-stat-val { background: rgba(139,203,255,0.75); }
.vp-d-stat-key { height: 4px; width: 50%; background: rgba(255,255,255,0.12); border-radius: 1px; }
.vp-d-chart { flex: 1; display: flex; align-items: flex-end; gap: 3px; min-height: 0; padding-top: 4px; }
.vp-d-chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(38,105,186,0.5), rgba(38,105,186,0.2));
  border-radius: 2px 2px 0 0;
  border: 0.5px solid rgba(139,203,255,0.12);
  border-bottom: none;
}
.vp-d-chart-bar--accent {
  background: linear-gradient(to top, rgba(139,203,255,0.6), rgba(139,203,255,0.25));
  border-color: rgba(139,203,255,0.3);
}

/* ── Info Hierarchy preview ── */
.vis-preview--hierarchy {
  background: linear-gradient(145deg, rgba(20,50,110,0.25) 0%, rgba(4,9,26,0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  justify-content: flex-start;
}
.vis-preview--hierarchy::before,
.vis-preview--hierarchy::after { display: none; }

.vp-h-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(100,220,150,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(100,220,150,0.25);
  border-radius: 4px;
  flex-shrink: 0;
}
.vp-h-status-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(100,220,150,0.95); flex-shrink: 0; box-shadow: 0 0 4px rgba(100,220,150,0.6); }
.vp-h-status-label { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 1px; }
.vp-h-status-badge {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: rgba(100,220,150,0.95);
  padding: 1px 4px;
  border: 0.5px solid rgba(100,220,150,0.4);
  border-radius: 2px;
  background: rgba(100,220,150,0.08);
  flex-shrink: 0;
}
.vp-h-data-row { display: flex; gap: 4px; flex-shrink: 0; }
.vp-h-metric {
  flex: 1;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 6px 6px;
}
.vp-h-metric-val { height: 8px; border-radius: 1px; margin-bottom: 4px; background: rgba(255,255,255,0.15); }
.vp-h-metric-val--primary { height: 12px; background: rgba(255,255,255,0.5); width: 75%; }
.vp-h-metric-val--accent { height: 12px; background: rgba(139,203,255,0.7); width: 75%; }
.vp-h-metric-key { height: 3px; width: 55%; background: rgba(255,255,255,0.1); border-radius: 1px; }
.vp-h-divider { height: 0.5px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.vp-h-narrative { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.vp-h-line { height: 3px; background: rgba(255,255,255,0.1); border-radius: 1px; }
.vp-h-line--med { width: 80%; }
.vp-h-line--short { width: 55%; background: rgba(255,255,255,0.06); }

/* ── Bento Structure preview ── */
.vis-preview--bento {
  background: linear-gradient(145deg, rgba(20,45,100,0.25) 0%, rgba(4,9,26,0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.vis-preview--bento::before,
.vis-preview--bento::after { display: none; }

.vp-bento-a {
  grid-column: 1; grid-row: 1;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden; min-height: 0;
}
.vp-bento-b {
  grid-column: 2; grid-row: 1;
  background: rgba(139,203,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(139,203,255,0.15);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.vp-bento-c {
  grid-column: 1; grid-row: 2;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden; min-height: 0;
}
.vp-bento-d {
  grid-column: 2; grid-row: 2;
  background: rgba(139,203,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(139,203,255,0.2);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.vp-bento-label-bar { height: 3px; border-radius: 1px; background: rgba(139,203,255,0.4); flex-shrink: 0; }
.vp-bento-chart-bars {
  flex: 1; min-height: 0;
  display: flex; align-items: flex-end; gap: 2px;
}
.vp-bento-chart-bars > div {
  flex: 1;
  background: linear-gradient(to top, rgba(38,105,186,0.55), rgba(38,105,186,0.2));
  border: 0.5px solid rgba(139,203,255,0.12); border-bottom: none;
  border-radius: 2px 2px 0 0;
}
.vp-bento-chart-bars > div.accent {
  background: linear-gradient(to top, rgba(139,203,255,0.65), rgba(139,203,255,0.25));
  border-color: rgba(139,203,255,0.3);
}
.vp-bento-c-bars {
  flex: 1; min-height: 0;
  display: flex; align-items: flex-end; gap: 3px;
}
.vp-bento-c-bars > div {
  flex: 1;
  background: linear-gradient(to top, rgba(38,105,186,0.45), rgba(38,105,186,0.15));
  border: 0.5px solid rgba(139,203,255,0.1); border-bottom: none;
  border-radius: 2px 2px 0 0;
}
.vp-bento-num { height: 14px; width: 60%; background: rgba(255,255,255,0.3); border-radius: 2px; }
.vp-bento-num--accent { background: rgba(139,203,255,0.55); box-shadow: 0 0 6px rgba(139,203,255,0.2); }
.vp-bento-line { height: 3px; background: rgba(255,255,255,0.12); border-radius: 1px; }
.vp-bento-line + .vp-bento-line { width: 70%; opacity: 0.6; }

/* ── Asymmetric Balance preview ── */
.vis-preview--asymmetric {
  background: linear-gradient(145deg, rgba(25,55,115,0.25) 0%, rgba(4,9,26,0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vis-preview--asymmetric::before,
.vis-preview--asymmetric::after { display: none; }

.vp-asym-topbar { height: 2px; width: 38%; background: rgba(139,203,255,0.7); flex-shrink: 0; box-shadow: 0 0 6px rgba(139,203,255,0.3); }
.vp-asym-content { flex: 1; display: flex; min-height: 0; }
.vp-asym-left {
  width: 54%;
  display: flex; flex-direction: column; gap: 5px; justify-content: center;
  padding: 12px 12px 12px 10px;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.vp-asym-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.vp-asym-right-dot { width: 22px; height: 22px; border-radius: 50%; border: 0.5px solid rgba(139,203,255,0.15); background: rgba(139,203,255,0.04); }
.vp-asym-heading { height: 7px; background: rgba(255,255,255,0.45); border-radius: 1px; }
.vp-asym-heading--short { height: 7px; width: 72%; background: rgba(255,255,255,0.22); }
.vp-asym-rule { height: 0.5px; background: rgba(139,203,255,0.2); }
.vp-asym-body { height: 3px; background: rgba(255,255,255,0.12); border-radius: 1px; }
.vp-asym-body--short { height: 3px; width: 72%; background: rgba(255,255,255,0.07); }
.vp-asym-cta { height: 14px; width: 55%; background: rgba(38,105,186,0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 0.5px solid rgba(139,203,255,0.3); border-radius: 3px; margin-top: 2px; }

/* ══════════════════════════════════════════════════
   VISUAL LANGUAGE — 04 SPACING SYSTEM
══════════════════════════════════════════════════ */

.vis-spacing-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 17vw) minmax(0, 1fr);
  gap: 1rem;
  padding: 0 2rem 2.5rem;
  align-items: stretch;
}

.vis-spacing-layout .identity-card {
  min-height: 0;
}

.vis-spacing-layout .label-mono {
  color: rgba(139, 203, 255, 0.48) !important;
  text-align: left !important;
  margin-bottom: 1rem !important;
  letter-spacing: 0.18em !important;
}

.vis-spacing-rail {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(20.5rem, 0.88fr) minmax(18.5rem, 0.92fr);
  gap: 1rem;
}

.vis-spacing-scale {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.35rem 1.45rem;
  overflow: hidden;
}

.vis-space-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 1.65rem;
  padding: 0.24rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.08);
}

.vis-space-row:last-child { border-bottom: none; }

.vis-space-measure {
  height: 1.12rem;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(139,203,255,0.18) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0));
  background-size: 16px 100%, 100% 100%;
  border-left: 1px solid rgba(139, 203, 255, 0.28);
  border-right: 1px solid rgba(139, 203, 255, 0.08);
}

.vis-space-bar {
  width: var(--space-size);
  min-width: 4px;
  height: 0.58rem;
  background: linear-gradient(90deg, rgba(42, 128, 225, 0.78), rgba(139, 203, 255, 0.92));
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(38, 105, 186, 0.26);
}

.vis-space-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(219, 235, 255, 0.6);
  white-space: nowrap;
}

.vis-spacing-tokens {
  grid-column: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.45rem;
  overflow: hidden;
}

.vis-token-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.12);
}

.vis-spacing-tokens .vis-token-intro.body-sans {
  max-width: 68ch;
  margin: 0.25rem 0 0;
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.45;
  color: rgba(219, 235, 255, 0.58);
}

.vis-token-badge {
  flex-shrink: 0;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(139, 203, 255, 0.18);
  border-radius: 6px;
  background: rgba(38, 105, 186, 0.12);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.78);
  white-space: nowrap;
}

.vis-token-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(14rem, 0.72fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: clamp(1.25rem, 2.1vw, 2.25rem);
}

.vis-token-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  align-self: stretch;
}

.vis-col-token { width: 22%; }
.vis-col-value { width: 13%; }
.vis-col-usage { width: 45%; }
.vis-col-meter { width: 20%; }

.vis-token-table th {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.38);
  text-align: left;
  height: 2.15rem;
  padding: 0 1rem 0.62rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.12);
  vertical-align: bottom;
}

.vis-token-table td {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(219, 235, 255, 0.7);
  padding: 0.72rem 1rem 0.72rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.05);
  vertical-align: middle;
}

.vis-token-table td:nth-child(3) {
  color: rgba(219, 235, 255, 0.38);
  font-size: 9px;
}

.vis-token-table th:last-child,
.vis-token-table td:last-child {
  padding-right: 0;
}

.vis-token-table tr:last-child td { border-bottom: none; }

.vis-token-name {
  color: rgba(139, 203, 255, 0.82) !important;
  white-space: nowrap;
}

.vis-token-meter {
  display: block;
  width: var(--meter);
  min-width: 4px;
  max-width: 96px;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(38,105,186,0.85), rgba(139,203,255,0.94));
  box-shadow: 0 0 14px rgba(38, 105, 186, 0.28);
}

.vis-spacing-specimen {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-left: 1.3rem;
  border-left: 1px solid rgba(139, 203, 255, 0.1);
}

.vis-specimen-head {
  min-height: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  margin-bottom: 0.72rem;
  padding: 0.55rem 0 0.68rem;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.12);
}

.vis-specimen-label {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.42);
}

.vis-specimen-head p {
  max-width: 25rem;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(9px, 0.58vw, 10.5px);
  line-height: 1.25;
  text-align: left;
  color: rgba(219, 235, 255, 0.42);
}

.vis-specimen-frame {
  flex: 1;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 1rem;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(rgba(139,203,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,203,255,0.035) 1px, transparent 1px),
    rgba(255,255,255,0.018);
  background-size: 16px 16px;
}

.vis-example-card {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(139, 203, 255, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(38,105,186,0.2), rgba(6,14,36,0.36)),
    rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.vis-example-tag {
  position: absolute;
  top: 7px;
  right: 9px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.62);
}

.vis-example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vis-example-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vis-example-status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(139, 203, 255, 0.78);
  box-shadow: 0 0 12px rgba(139, 203, 255, 0.32);
  flex-shrink: 0;
}

.vis-example-status strong {
  display: block;
  height: 9px;
  width: clamp(4rem, 7vw, 7.2rem);
  border-radius: 999px;
  background: rgba(219, 235, 255, 0.34);
  overflow: hidden;
  text-indent: -999px;
}

.vis-example-pill {
  width: 46px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 203, 255, 0.2);
  background: rgba(139, 203, 255, 0.09);
}

.vis-example-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vis-example-copy i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(219, 235, 255, 0.22);
}

.vis-example-copy i:first-child { width: 76%; }
.vis-example-copy i:last-child { width: 58%; }

.vis-example-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vis-example-cards div {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(139, 203, 255, 0.18);
  background: rgba(38, 105, 186, 0.22);
}

.vis-example-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.vis-example-footer span {
  height: 24px;
  border-radius: 5px;
  background: rgba(139, 203, 255, 0.13);
}

.vis-example-gap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.vis-example-gap::before {
  content: '';
  width: 1px;
  height: calc(100% - 2px);
  min-height: 8px;
  background: rgba(139, 203, 255, 0.42);
}

.vis-example-gap span {
  margin-left: 0.5rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(3, 8, 24, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(139, 203, 255, 0.72);
}

.vis-example-gap--16 { height: 16px; }
.vis-example-gap--24 { height: 24px; }
.vis-example-gap--32 { height: 32px; }

.vis-example-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.vis-example-legend span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(219, 235, 255, 0.46);
}

.vis-example-legend strong {
  color: rgba(139, 203, 255, 0.86);
  font-size: 9px;
}

.vis-spacing-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(0.55rem, 1vw, 1rem);
  padding-top: clamp(1.3rem, 1.8vw, 2rem);
  border-top: 1px solid rgba(139, 203, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.vis-rhythm-item {
  min-width: 0;
  padding: 0 1rem;
  border-left: 1px solid rgba(139, 203, 255, 0.08);
}

.vis-rhythm-item:first-child {
  padding-left: 0;
  border-left: none;
}

.vis-rhythm-index {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(139, 203, 255, 0.42);
}

.vis-rhythm-item strong,
.vis-rhythm-item em {
  display: block;
}

.vis-rhythm-item strong {
  margin-bottom: 0.25rem;
  font-family: var(--condensed);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.vis-rhythm-item em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(219, 235, 255, 0.5);
}

.vis-spacing-rule {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.15rem 1.45rem;
}

.vis-base-unit-demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.vis-unit-block {
  width: 4.55rem;
  height: 4.55rem;
  background:
    linear-gradient(135deg, rgba(38, 105, 186, 0.32), rgba(139, 203, 255, 0.08)),
    rgba(38, 105, 186, 0.16);
  border: 1px solid rgba(139, 203, 255, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: rgba(139, 203, 255, 0.9);
  letter-spacing: 0;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(38, 105, 186, 0.2);
}

.vis-unit-block span {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.vis-unit-block small {
  margin-top: 0.2rem;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.5);
}

.vis-unit-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.vis-unit-steps span {
  min-width: 0;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 5px;
  background: rgba(139, 203, 255, 0.05);
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(219, 235, 255, 0.52);
}

.vis-unit-text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(219, 235, 255, 0.62);
}

.vis-unit-text strong {
  color: rgba(139, 203, 255, 0.9);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .vis-spacing-layout {
    grid-template-columns: 1fr;
  }

  .vis-spacing-rail {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.62fr);
    grid-template-rows: auto;
  }

  .vis-spacing-tokens {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .vis-spacing-layout {
    padding: 0 1rem 1.5rem;
  }

  .vis-spacing-rail,
  .vis-token-board,
  .vis-spacing-rhythm {
    grid-template-columns: 1fr;
  }

  .vis-token-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vis-spacing-specimen {
    padding-left: 0;
    border-left: none;
  }

  .vis-rhythm-item {
    padding: 0.8rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(139, 203, 255, 0.08);
  }

  .vis-rhythm-item:first-child {
    padding-top: 0;
    border-top: none;
  }

  .vis-token-table th:nth-child(3),
  .vis-token-table td:nth-child(3) {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   VISUAL LANGUAGE — 05 PATTERNS & TEXTURES
══════════════════════════════════════════════════ */

.vis-pattern-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  padding: 0 2rem 2.5rem;
}

.vis-pattern-tile {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12, 33, 63, 0.2), rgba(3, 8, 24, 0.86)),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.vis-pattern-tile:hover {
  border-color: rgba(139, 203, 255, 0.22);
  transform: translateY(-2px);
}

.vis-pattern-tile::before,
.vis-pattern-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vis-pattern-tile::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 24, 0.02) 0%, rgba(3, 8, 24, 0.1) 38%, rgba(3, 8, 24, 0.78) 74%, rgba(3, 8, 24, 0.92) 100%),
    radial-gradient(circle at 48% 42%, rgba(80, 150, 235, 0.18), transparent 46%);
}

.vis-pattern-tile::after {
  z-index: 3;
  border-radius: inherit;
  border: 1px solid rgba(139, 203, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(139, 203, 255, 0.08);
}

.vis-pattern-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.vis-pattern-preview--dot {
  background-color: #0c213f;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(180,220,255,0.2) 1px, transparent 0),
    linear-gradient(135deg, transparent 0 52%, rgba(139,203,255,0.08) 52.4%, transparent 53%);
  background-size: 18px 18px, 160px 160px;
  background-position: -3px -4px, center;
}

.vis-pattern-preview--hex {
  background-color: #0a1929;
  background-image:
    linear-gradient(30deg, rgba(38,105,186,0.24) 12%, transparent 12.5%, transparent 87%, rgba(38,105,186,0.24) 87.5%),
    linear-gradient(150deg, rgba(38,105,186,0.24) 12%, transparent 12.5%, transparent 87%, rgba(38,105,186,0.24) 87.5%),
    linear-gradient(30deg, rgba(38,105,186,0.24) 12%, transparent 12.5%, transparent 87%, rgba(38,105,186,0.24) 87.5%),
    linear-gradient(150deg, rgba(38,105,186,0.24) 12%, transparent 12.5%, transparent 87%, rgba(38,105,186,0.24) 87.5%),
    linear-gradient(60deg, rgba(139,203,255,0.12) 25%, transparent 25.5%, transparent 75%, rgba(139,203,255,0.12) 75%),
    linear-gradient(60deg, rgba(139,203,255,0.12) 25%, transparent 25.5%, transparent 75%, rgba(139,203,255,0.12) 75%);
  background-size: 28px 48px;
  background-position: 0 0, 0 0, 14px 24px, 14px 24px, 0 0, 14px 24px;
}

.vis-pattern-preview--scan {
  background-color: #05101e;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(38, 105, 186, 0.08) 3px, rgba(38, 105, 186, 0.08) 4px),
    linear-gradient(180deg, transparent 0 44%, rgba(139,203,255,0.22) 44.5%, rgba(139,203,255,0.04) 47%, transparent 49%);
  overflow: hidden;
}

.vis-pattern-preview--scan::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, transparent, rgba(139, 203, 255, 0.35), transparent);
  animation: vis-scan-sweep 2.5s linear infinite;
}

@keyframes vis-scan-sweep {
  0%   { top: -4px; }
  100% { top: 100%; }
}

.vis-pattern-preview--topo {
  background-color: #050b14;
}

.vis-pattern-preview--topo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(
      ellipse at 50% 50%,
      transparent,
      transparent 14px,
      rgba(38, 105, 186, 0.14) 15px,
      transparent 16px,
      transparent 30px,
      rgba(38, 105, 186, 0.09) 31px,
      transparent 32px,
      transparent 46px,
      rgba(38, 105, 186, 0.06) 47px,
      transparent 48px
    );
  transform: scale(1.26);
}

.vis-pattern-info {
  position: relative;
  z-index: 2;
  margin-top: auto;
  min-height: 18rem;
  padding: 1.45rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background:
    linear-gradient(180deg, rgba(12,33,63,0.42), rgba(3,8,24,0.74)),
    rgba(6, 14, 36, 0.58);
  border-top: 1px solid rgba(139, 203, 255, 0.1);
  box-shadow: 0 -24px 70px rgba(6, 14, 36, 0.38);
}

.vis-pattern-index {
  position: absolute;
  top: 1.35rem;
  right: 1.45rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(139, 203, 255, 0.32);
}

.vis-pattern-info .label-mono {
  color: rgba(139, 203, 255, 0.65);
  margin-bottom: 0;
  padding-right: 2.5rem;
}

.vis-pattern-info .body-sans {
  max-width: 32ch;
  font-size: clamp(12px, 0.72vw, 13px);
  line-height: 1.55;
  color: rgba(219, 235, 255, 0.64);
}

.vis-pattern-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.vis-pattern-specs span {
  min-width: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.48);
}

.vis-pattern-usage {
  font-size: 8px;
  color: rgba(139, 203, 255, 0.38);
  letter-spacing: 0.13em;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 0.5px solid rgba(139, 203, 255, 0.09);
}

@media (max-width: 1180px) {
  .vis-pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vis-pattern-tile {
    min-height: 28rem;
  }
}

@media (max-width: 760px) {
  .vis-pattern-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
  }

  .vis-pattern-info {
    min-height: 15rem;
  }
}

.donts-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0.75rem 1.25rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   PHOTOGRAPHY SECTION
══════════════════════════════════════════════════ */

.photo-principles-grid {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2.25rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(8.5rem, 0.78fr);
  gap: 0.9rem;
}

.photo-principles-grid .identity-card {
  min-height: 0;
}

.photo-core-panel {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background:
    linear-gradient(180deg, rgba(12, 33, 63, 0.26), rgba(3, 8, 24, 0.82)),
    rgba(255, 255, 255, 0.012);
}

.photo-principles-grid .label-mono {
  text-align: left !important;
  color: rgba(139, 203, 255, 0.52) !important;
  margin-bottom: 0 !important;
  letter-spacing: 0 !important;
}

.photo-core-panel h3 {
  margin: 0.4rem 0 1rem;
  font-family: var(--condensed);
  font-weight: 900;
  font-size: 3.45rem;
  line-height: 1.0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.photo-core-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.68);
}

.photo-core-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(139, 203, 255, 0.1);
}

.photo-core-list li {
  position: relative;
  padding-left: 0.85rem;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(219, 235, 255, 0.58);
}

.photo-core-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 203, 255, 0.65);
  box-shadow: 0 0 10px rgba(139, 203, 255, 0.35);
}

.photo-core-grade {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(139, 203, 255, 0.1);
}

.photo-core-grade span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.4);
}

.photo-rule-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.4);
}

.photo-core-grade strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.photo-frame-panel {
  grid-column: 4 / 9;
  grid-row: 1 / 4;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #050b14;
}

.photo-frame-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.08) brightness(0.72) hue-rotate(196deg);
}

.photo-frame-panel::before,
.photo-frame-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-frame-panel::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 24, 0.1), rgba(3, 8, 24, 0.76)),
    radial-gradient(circle at 48% 36%, transparent 0 34%, rgba(3, 8, 24, 0.45) 78%);
}

.photo-frame-panel::after {
  z-index: 2;
  background:
    linear-gradient(rgba(139,203,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,203,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.photo-frame-grid {
  position: absolute;
  inset: 1.5rem;
  z-index: 3;
  border: 1px solid rgba(139, 203, 255, 0.2);
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(139,203,255,0.16) 33.3%, transparent 33.45%, transparent 66.55%, rgba(139,203,255,0.16) 66.7%, transparent 66.85%),
    linear-gradient(180deg, transparent 49.8%, rgba(139,203,255,0.16) 50%, transparent 50.2%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
  pointer-events: none;
}

.photo-frame-reticle {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 43%;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(139, 203, 255, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 28px rgba(139, 203, 255, 0.18),
    inset 0 0 28px rgba(139, 203, 255, 0.08);
}

.photo-frame-reticle::before,
.photo-frame-reticle::after {
  content: '';
  position: absolute;
  background: rgba(139, 203, 255, 0.38);
}

.photo-frame-reticle::before {
  left: 50%;
  top: -1.2rem;
  bottom: -1.2rem;
  width: 1px;
}

.photo-frame-reticle::after {
  top: 50%;
  left: -1.2rem;
  right: -1.2rem;
  height: 1px;
}

.photo-frame-caption {
  position: absolute;
  z-index: 5;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(139, 203, 255, 0.16);
}

.photo-frame-caption span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.52);
}

.photo-frame-caption strong {
  display: block;
  max-width: 32ch;
  font-family: var(--condensed);
  font-size: 1.45rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.photo-rule-card {
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
}

.photo-rule-card--truth { grid-column: 9 / 11; grid-row: 1; }
.photo-rule-card--dark { grid-column: 11 / 13; grid-row: 1; }
.photo-rule-card--precision { grid-column: 9 / 11; grid-row: 2; }
.photo-rule-card--system { grid-column: 11 / 13; grid-row: 2; }
.photo-rule-card--environment { grid-column: 9 / 13; grid-row: 3; }

.photo-rule-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.photo-rule-meta span {
  color: rgba(139, 203, 255, 0.68);
}

.photo-rule-meta i {
  font-style: normal;
  color: rgba(139, 203, 255, 0.34);
}

.photo-rule-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--condensed);
  font-size: 1.15rem;
  line-height: 1.08;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.photo-rule-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.58);
}

@media (max-width: 1180px) {
  .photo-principles-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .photo-core-panel,
  .photo-frame-panel,
  .photo-rule-card {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-core-panel,
  .photo-frame-panel {
    grid-column: span 3;
    min-height: 28rem;
  }

  .photo-core-panel h3 {
    font-size: 3rem;
  }

  .photo-frame-caption strong {
    font-size: 1.32rem;
  }

  .photo-rule-card {
    grid-column: span 2;
    min-height: 12rem;
  }

  .photo-rule-card h3 {
    font-size: 1.1rem;
  }

  .photo-rule-card p {
    font-size: 10.5px;
  }
}

@media (max-width: 760px) {
  .photo-principles-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
  }

  .photo-core-panel,
  .photo-frame-panel,
  .photo-rule-card {
    grid-column: 1;
  }

  .photo-frame-panel {
    min-height: 24rem;
  }

  .photo-core-panel h3 {
    font-size: 2.85rem;
  }

  .photo-rule-card {
    min-height: 10.5rem;
  }

  .photo-rule-card h3 {
    font-size: 1.28rem;
  }
}

/* Photography principles: evidence-first readability pass */
.section-photography-principles .section-orb {
  display: none;
}

.section-photography-principles::after {
  opacity: 0.42;
  filter: blur(70px);
}

.section-photography-principles .oversize-header {
  padding-bottom: 1.2rem;
}

.photo-principles-grid {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(8.5rem, 0.78fr);
  gap: 0.9rem;
  padding: 0 2rem 2.25rem;
}

.photo-principles-grid .identity-card {
  border-radius: 16px;
  border-color: rgba(170, 209, 245, 0.13);
  background: rgba(6, 14, 28, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.photo-principles-grid .identity-card::before {
  opacity: 0;
}

.photo-principles-grid .identity-card::after {
  border-color: rgba(170, 209, 245, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.photo-principles-grid .label-mono {
  font-size: 9px;
  letter-spacing: 0.1em !important;
  color: rgba(174, 209, 243, 0.68) !important;
}

.photo-core-panel {
  padding: clamp(1.2rem, 1.35vw, 1.55rem);
  gap: 0.68rem;
  background:
    linear-gradient(180deg, rgba(15, 31, 53, 0.88), rgba(4, 10, 21, 0.96)),
    rgba(255, 255, 255, 0.01);
}

.photo-core-panel h3 {
  margin: 0.25rem 0 1.05rem;
  font-size: clamp(3rem, 3.25vw, 3.65rem);
  line-height: 0.94;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.photo-core-panel p {
  max-width: 33ch;
  font-size: 13.5px;
  line-height: 1.48;
  color: rgba(234, 243, 252, 0.78);
}

.photo-core-list {
  flex: 1;
  gap: 0.48rem;
  margin-top: 0.55rem;
  padding-top: 1.08rem;
  border-top-color: rgba(170, 209, 245, 0.16);
}

.photo-core-list li {
  padding-left: 0.9rem;
  font-family: var(--sans);
  font-size: 12.25px;
  line-height: 1.38;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(234, 243, 252, 0.74);
}

.photo-core-list li::before {
  top: 0.58em;
  width: 5px;
  height: 5px;
  background: rgba(151, 195, 235, 0.78);
  box-shadow: none;
}

.photo-core-grade span,
.photo-frame-caption span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(174, 209, 243, 0.68);
}

.photo-core-grade {
  padding-top: 0.8rem;
  border-top-color: rgba(170, 209, 245, 0.16);
}

.photo-core-grade strong {
  margin-top: 0.35rem;
  font-size: 12.5px;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.88);
}

.photo-frame-panel {
  background: #08111d;
}

.photo-frame-panel img {
  filter: saturate(0.62) contrast(1.1) brightness(0.82);
  transform: scale(1.01);
}

.photo-frame-panel::before {
  background:
    linear-gradient(180deg, rgba(7, 18, 34, 0.2) 0%, rgba(7, 18, 34, 0.2) 42%, rgba(3, 8, 18, 0.72) 100%),
    radial-gradient(circle at 50% 39%, transparent 0 38%, rgba(4, 9, 18, 0.28) 86%);
}

.photo-frame-panel::after {
  background:
    linear-gradient(rgba(139,203,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,203,255,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
}

.photo-frame-grid {
  inset: 1.55rem;
  border-color: rgba(170, 209, 245, 0.18);
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(170,209,245,0.105) 33.3%, transparent 33.45%, transparent 66.55%, rgba(170,209,245,0.105) 66.7%, transparent 66.85%),
    linear-gradient(180deg, transparent 49.8%, rgba(170,209,245,0.105) 50%, transparent 50.2%);
  box-shadow: none;
}

.photo-frame-reticle {
  top: 43%;
  width: 5.9rem;
  height: 5.9rem;
  border-color: rgba(170, 209, 245, 0.34);
  opacity: 0.68;
  box-shadow: none;
}

.photo-frame-reticle::before,
.photo-frame-reticle::after {
  background: rgba(170, 209, 245, 0.3);
}

.photo-frame-caption {
  left: 2.15rem;
  right: 1.55rem;
  bottom: 2.2rem;
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
  border-top-color: rgba(170, 209, 245, 0.18);
}

.photo-frame-caption strong {
  max-width: 30ch;
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 1.65vw, 1.75rem);
  line-height: 0.98;
  letter-spacing: -0.004em;
  text-transform: none;
  text-wrap: balance;
}

.photo-rule-card {
  gap: 0;
  padding: 1rem;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(14, 30, 51, 0.82), rgba(4, 10, 20, 0.94)),
    rgba(255, 255, 255, 0.012);
}

.photo-rule-meta {
  margin-bottom: 0;
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: rgba(174, 209, 243, 0.62);
}

.photo-rule-meta span {
  color: rgba(204, 226, 247, 0.88);
}

.photo-rule-meta i {
  color: rgba(174, 209, 243, 0.5);
}

.photo-rule-card h3 {
  margin: auto 0 0.95rem;
  font-size: clamp(1.12rem, 1.22vw, 1.34rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.95);
}

.photo-rule-card p {
  margin: 0;
  max-width: 35ch;
  font-size: 12.85px;
  line-height: 1.42;
  color: rgba(234, 243, 252, 0.7);
}

.photo-rule-card--environment p {
  max-width: none;
}

@media (max-width: 1180px) {
  .photo-principles-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0.9rem;
  }

  .photo-core-panel,
  .photo-frame-panel {
    grid-column: span 3;
    min-height: 28rem;
  }

  .photo-rule-card {
    grid-column: span 2;
    min-height: 12rem;
  }

  .photo-rule-card--environment {
    grid-column: span 2;
  }

  .photo-rule-card p {
    font-size: 11.75px;
  }
}

@media (max-width: 760px) {
  .section-photography-principles .oversize-header {
    padding-bottom: 1rem;
  }

  .photo-principles-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
  }

  .photo-core-panel,
  .photo-frame-panel,
  .photo-rule-card,
  .photo-rule-card--environment {
    grid-column: 1;
    min-height: auto;
  }

  .photo-core-panel h3 {
    font-size: 3rem;
  }

  .photo-core-panel p,
  .photo-core-list li,
  .photo-rule-card p {
    font-size: 13px;
  }

  .photo-frame-panel {
    min-height: 24rem;
  }

  .photo-frame-grid {
    inset: 1rem;
  }

  .photo-frame-reticle {
    width: 5rem;
    height: 5rem;
  }

  .photo-frame-caption {
    left: 1.75rem;
    right: 1.25rem;
    bottom: 1.85rem;
  }

  .photo-frame-caption strong {
    font-size: 1.65rem;
  }
}

/* Product imagery layout */
.photo-style-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 2rem 2.5rem;
}

.photo-specs-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 0;
}

.photo-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.photo-spec-table tr {
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.07);
}

.photo-spec-table tr:last-child { border-bottom: none; }

.photo-spec-table td {
  padding: 0.7rem 0;
  font-size: 13px;
  vertical-align: top;
}

.photo-spec-table td:first-child {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
  width: 32%;
  padding-right: 1rem;
  padding-top: 0.9rem;
}

.photo-spec-table td:last-child {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.8);
}

/* Treatment comparison grid */
.photo-treatment-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-treatment-tile {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 0.5px solid rgba(139, 203, 255, 0.1);
}

.photo-treatment-tile svg {
  width: 100%;
  height: auto;
  display: block;
}

.photo-treat-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem 0.3rem;
}

.photo-treatment--approved .photo-treat-label {
  color: rgba(34, 197, 94, 0.7);
  border-bottom: 0.5px solid rgba(34, 197, 94, 0.12);
}

.photo-treatment--rejected .photo-treat-label {
  color: rgba(239, 68, 68, 0.7);
  border-bottom: 0.5px solid rgba(239, 68, 68, 0.12);
}

.photo-treatment--approved {
  border-color: rgba(34, 197, 94, 0.2);
}

.photo-treatment--rejected {
  border-color: rgba(239, 68, 68, 0.18);
}

.photo-treat-spec {
  font-size: 7.5px;
  color: rgba(139, 203, 255, 0.35);
  padding: 0.4rem 0.75rem 0.6rem;
  letter-spacing: 0.1em;
}

/* Environment style */
.section-photography-environment::after {
  width: 45%;
  top: 20%;
  right: 2%;
  opacity: 0.72;
}

.photo-env-shell {
  flex: 1;
  min-height: 0;
  padding: 0 clamp(1.25rem, 2vw, 2rem) 2.5rem;
  display: grid;
  grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
}

.photo-env-intro {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(170, 209, 245, 0.13);
  background:
    linear-gradient(180deg, rgba(11, 25, 43, 0.82), rgba(3, 8, 18, 0.94)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(220, 238, 255, 0.08);
  padding: clamp(1.2rem, 1.7vw, 1.65rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  min-height: 100%;
}

.photo-env-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.45;
  pointer-events: none;
}

.photo-env-intro::after {
  content: '';
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -5rem;
  bottom: -4rem;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1.2rem rgba(139, 203, 255, 0.018),
    inset 0 0 0 3.2rem rgba(139, 203, 255, 0.014);
  pointer-events: none;
}

.photo-env-intro > * {
  position: relative;
  z-index: 1;
}

.photo-env-kicker,
.photo-env-meta,
.photo-env-coordinates,
.photo-env-notes,
.photo-env-rules {
  font-family: var(--mono);
  text-transform: uppercase;
}

.photo-env-kicker {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: rgba(151, 195, 235, 0.68);
  margin-bottom: clamp(1.2rem, 2.5vw, 2.1rem);
}

.photo-env-statement {
  max-width: 9.6ch;
  font-family: var(--condensed);
  font-size: clamp(2.8rem, 4vw, 4.85rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-wrap: balance;
}

.photo-env-copy {
  max-width: 33ch;
  margin-top: 1.1rem;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.62);
}

.photo-env-rules {
  display: grid;
  gap: 0.55rem;
  font-size: 8.5px;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: rgba(219, 235, 255, 0.62);
}

.photo-env-rules span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(170, 209, 245, 0.11);
}

.photo-env-rules span::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(139, 203, 255, 0.62);
  box-shadow: 0 0 12px rgba(139, 203, 255, 0.36);
  flex: 0 0 auto;
}

.photo-env-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: minmax(15rem, 1fr) minmax(15rem, 1fr);
  gap: 1rem;
}

.photo-env-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(170, 209, 245, 0.12);
  background: #040b17;
  display: flex;
  min-height: 16.5rem;
  box-shadow:
    inset 0 1px 0 rgba(220, 238, 255, 0.07),
    0 18px 44px rgba(1, 7, 17, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-env-tile:hover {
  border-color: rgba(170, 209, 245, 0.28);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(220, 238, 255, 0.1),
    0 22px 54px rgba(1, 7, 17, 0.38);
}

.photo-env-tile--outdoor {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.photo-env-tile--command {
  grid-column: 5 / 9;
  grid-row: 1;
}

.photo-env-tile--urban {
  grid-column: 5 / 7;
  grid-row: 2;
}

.photo-env-tile--field {
  grid-column: 7 / 9;
  grid-row: 2;
}

.photo-env-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 38%, rgba(139, 203, 255, 0.18), transparent 44%),
    linear-gradient(180deg, #07101d, #030711);
}

.photo-env-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.64) contrast(1.1) brightness(0.7);
  transform: scale(1.025);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-env-tile:hover .photo-env-media img {
  transform: scale(1.065);
  filter: saturate(0.7) contrast(1.14) brightness(0.72);
}

.photo-env-tile--outdoor .photo-env-media img {
  object-position: 49% 50%;
}

.photo-env-tile--command .photo-env-media img {
  object-position: 50% 50%;
  filter: saturate(0.66) contrast(1.12) brightness(0.58);
}

.photo-env-tile--urban .photo-env-media img {
  object-position: 50% 43%;
  filter: saturate(0.62) contrast(1.08) brightness(0.6);
}

.photo-env-tile--field .photo-env-media {
  background:
    linear-gradient(180deg, rgba(8, 20, 16, 0.28), rgba(3, 8, 13, 0.78) 70%),
    radial-gradient(ellipse at 52% 82%, rgba(105, 86, 48, 0.4), transparent 62%),
    linear-gradient(165deg, #122016 0%, #09131a 44%, #030711 100%);
}

.photo-env-tile--field .photo-env-media img {
  width: 106%;
  height: 43%;
  margin: 4rem auto auto;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.78) contrast(1.05) brightness(0.72) drop-shadow(0 1.2rem 2rem rgba(0, 0, 0, 0.48));
}

.photo-env-media::before,
.photo-env-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-env-media::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.04) 0%, rgba(2, 7, 14, 0.2) 42%, rgba(2, 7, 14, 0.76) 100%),
    radial-gradient(circle at 52% 48%, transparent 0 36%, rgba(2, 8, 18, 0.18) 74%, rgba(2, 8, 18, 0.62) 100%);
}

.photo-env-media::after {
  z-index: 2;
  background:
    linear-gradient(rgba(170, 209, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 209, 245, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.23;
  mix-blend-mode: screen;
}

.photo-env-frame {
  position: absolute;
  inset: clamp(0.75rem, 1vw, 1rem);
  z-index: 3;
  border: 1px solid rgba(170, 209, 245, 0.2);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(170, 209, 245, 0.12) 33.35%, transparent 33.5%, transparent 66.5%, rgba(170, 209, 245, 0.12) 66.65%, transparent 66.8%),
    linear-gradient(180deg, transparent 49.85%, rgba(170, 209, 245, 0.12) 50%, transparent 50.15%);
  box-shadow: inset 0 0 24px rgba(139, 203, 255, 0.035);
}

.photo-env-coordinates {
  position: absolute;
  top: clamp(1.1rem, 1.4vw, 1.35rem);
  left: clamp(1.1rem, 1.4vw, 1.35rem);
  z-index: 4;
  padding: 0.26rem 0.42rem;
  border: 1px solid rgba(170, 209, 245, 0.16);
  border-radius: 3px;
  background: rgba(3, 8, 18, 0.62);
  color: rgba(220, 238, 255, 0.58);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.13em;
}

.photo-env-content {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  padding: clamp(1rem, 1.45vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(4, 10, 21, 0.18), rgba(4, 10, 21, 0.94) 46%, rgba(4, 10, 21, 0.98) 100%);
}

.photo-env-tile--outdoor .photo-env-content {
  padding-top: clamp(8rem, 14vh, 13rem);
}

.photo-env-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.48rem;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.15em;
  color: rgba(151, 195, 235, 0.66);
}

.photo-env-meta span:last-child {
  color: rgba(220, 238, 255, 0.38);
  text-align: right;
}

.photo-env-title {
  max-width: 13ch;
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(1.65rem, 2.3vw, 2.75rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 0.55rem;
  text-wrap: balance;
}

.photo-env-tile--command .photo-env-title {
  max-width: 14ch;
}

.photo-env-tile--urban .photo-env-title,
.photo-env-tile--field .photo-env-title {
  max-width: none;
  font-size: clamp(1.45rem, 1.85vw, 2.18rem);
}

.photo-env-desc {
  max-width: 56ch;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 0.87vw, 0.95rem);
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.68);
  text-wrap: pretty;
}

.photo-env-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.photo-env-notes span {
  border: 1px solid rgba(170, 209, 245, 0.16);
  border-radius: 3px;
  padding: 0.28rem 0.42rem;
  background: rgba(139, 203, 255, 0.055);
  color: rgba(220, 238, 255, 0.58);
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.photo-env-tile--urban .photo-env-desc,
.photo-env-tile--field .photo-env-desc {
  font-size: 0.82rem;
  line-height: 1.42;
}

@media (max-width: 1280px) {
  .photo-env-shell {
    grid-template-columns: 1fr;
  }

  .photo-env-intro {
    min-height: auto;
  }

  .photo-env-statement {
    max-width: 13ch;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  }

  .photo-env-rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .photo-env-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .photo-env-tile,
  .photo-env-tile--outdoor,
  .photo-env-tile--command,
  .photo-env-tile--urban,
  .photo-env-tile--field {
    grid-column: auto;
    grid-row: auto;
    min-height: 22rem;
  }
}

@media (max-width: 760px) {
  .photo-env-shell {
    padding: 0 1rem 1.5rem;
  }

  .photo-env-grid,
  .photo-env-rules {
    grid-template-columns: 1fr;
  }

  .photo-env-tile,
  .photo-env-tile--outdoor,
  .photo-env-tile--command,
  .photo-env-tile--urban,
  .photo-env-tile--field {
    min-height: 24rem;
  }

  .photo-env-tile--outdoor .photo-env-content {
    padding-top: 9rem;
  }

  .photo-env-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .photo-env-meta span:last-child {
    text-align: left;
  }
}

/* Composition rules: image-led operating frame */
.section-photography-composition .section-orb {
  display: none;
}

.section-photography-composition::after {
  width: 44%;
  top: 18%;
  right: 4%;
  opacity: 0.58;
  filter: blur(72px);
}

.section-photography-composition {
  padding-bottom: 0;
  overflow: hidden;
}

.system-content .section-photography-composition {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.section-photography-composition .oversize-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 1rem;
  padding: clamp(0.95rem, 1.2vw, 1.3rem) 1.5rem 0.5rem;
  text-align: left;
}

.section-photography-composition .oversize-header::after {
  content: 'Frame / vector / plane';
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(190, 219, 246, 0.48);
}

.section-photography-composition .identity-section-label {
  grid-column: 1;
  margin-bottom: 0.32rem;
  text-align: left;
}

.section-photography-composition .oversize-text {
  grid-column: 1;
  font-size: clamp(2.25rem, 3.45vw, 3.85rem);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: normal;
}

.photo-comp-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 0.92fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0 1.5rem 0.75rem;
}

.photo-comp-board,
.photo-comp-rule {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(170, 209, 245, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(11, 25, 43, 0.82), rgba(3, 8, 18, 0.96)),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    inset 0 1px 0 rgba(220, 238, 255, 0.08),
    0 22px 54px rgba(1, 7, 17, 0.3);
}

.photo-comp-board {
  min-height: 0;
  height: 100%;
}

.photo-comp-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #050c17;
}

.photo-comp-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 48%;
  filter: saturate(0.58) contrast(1.13) brightness(0.63);
  transform: scale(1.015);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-comp-board:hover .photo-comp-frame img {
  transform: scale(1.045);
  filter: saturate(0.66) contrast(1.16) brightness(0.68);
}

.photo-comp-frame-wash,
.photo-comp-frame::before,
.photo-comp-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-comp-frame-wash {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.03) 0%, rgba(2, 7, 14, 0.18) 38%, rgba(2, 7, 14, 0.84) 100%),
    radial-gradient(circle at 34% 48%, transparent 0 27%, rgba(2, 8, 18, 0.2) 55%, rgba(2, 8, 18, 0.76) 100%),
    linear-gradient(90deg, rgba(4, 10, 21, 0.34), transparent 34%, transparent 64%, rgba(4, 10, 21, 0.74));
}

.photo-comp-frame::before {
  z-index: 2;
  background:
    linear-gradient(rgba(170, 209, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 209, 245, 0.04) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.24;
  mix-blend-mode: screen;
}

.photo-comp-frame::after {
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(220, 238, 255, 0.06),
    inset 0 -8rem 7rem rgba(3, 8, 18, 0.64);
}

.photo-comp-thirds {
  position: absolute;
  inset: clamp(1.1rem, 1.45vw, 1.6rem);
  z-index: 4;
  border: 1px solid rgba(170, 209, 245, 0.25);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(170, 209, 245, 0.16) 33.35%, transparent 33.5%, transparent 66.5%, rgba(170, 209, 245, 0.16) 66.65%, transparent 66.8%),
    linear-gradient(180deg, transparent 33.2%, rgba(170, 209, 245, 0.12) 33.35%, transparent 33.5%, transparent 66.5%, rgba(170, 209, 245, 0.12) 66.65%, transparent 66.8%);
  box-shadow: inset 0 0 28px rgba(139, 203, 255, 0.045);
  pointer-events: none;
}

.photo-comp-horizon {
  position: absolute;
  left: clamp(1.1rem, 1.45vw, 1.6rem);
  right: clamp(1.1rem, 1.45vw, 1.6rem);
  top: 43%;
  z-index: 5;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0), rgba(139, 203, 255, 0.66), rgba(139, 203, 255, 0));
  box-shadow: 0 0 18px rgba(139, 203, 255, 0.24);
}

.photo-comp-horizon span,
.photo-comp-subject-lock span,
.photo-comp-vector span,
.photo-comp-plane-list span {
  font-family: var(--mono);
  font-size: clamp(9.5px, 0.68vw, 12px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 238, 255, 0.62);
}

.photo-comp-horizon span {
  position: absolute;
  right: clamp(1.2rem, 1.5vw, 1.8rem);
  bottom: 0.65rem;
}

.photo-comp-subject-lock {
  position: absolute;
  left: 32.7%;
  top: 54.4%;
  z-index: 6;
  width: clamp(3.5rem, 4.6vw, 5.35rem);
  height: clamp(3.5rem, 4.6vw, 5.35rem);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(139, 203, 255, 0.62);
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(139, 203, 255, 0.16),
    inset 0 0 24px rgba(139, 203, 255, 0.07);
}

.photo-comp-subject-lock::before,
.photo-comp-subject-lock::after {
  content: '';
  position: absolute;
  background: rgba(139, 203, 255, 0.5);
}

.photo-comp-subject-lock::before {
  left: 50%;
  top: -0.9rem;
  bottom: -0.9rem;
  width: 1px;
}

.photo-comp-subject-lock::after {
  top: 50%;
  left: -0.9rem;
  right: -0.9rem;
  height: 1px;
}

.photo-comp-subject-lock span {
  position: absolute;
  left: calc(100% + 0.7rem);
  top: calc(50% - 1.25rem);
  padding: 0.08rem 0.36rem;
  background: rgba(3, 8, 18, 0.42);
  box-shadow: 0 0 14px rgba(3, 8, 18, 0.4);
  white-space: nowrap;
  transform: none;
}

.photo-comp-vector {
  position: absolute;
  left: 38%;
  top: 54.4%;
  z-index: 6;
  width: min(28rem, 36%);
  height: 1px;
  background: rgba(139, 203, 255, 0.52);
}

.photo-comp-vector::after {
  content: '';
  position: absolute;
  right: -0.2rem;
  top: 50%;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 1px solid rgba(139, 203, 255, 0.7);
  border-right: 1px solid rgba(139, 203, 255, 0.7);
  transform: translateY(-50%) rotate(45deg);
}

.photo-comp-vector span {
  position: absolute;
  right: clamp(0.55rem, 0.8vw, 0.9rem);
  bottom: 0.78rem;
}

.photo-comp-plane-list {
  position: absolute;
  z-index: 6;
  top: clamp(2rem, 2.45vw, 2.75rem);
  left: clamp(2rem, 2.45vw, 2.75rem);
  width: min(14.5rem, 36%);
  padding: clamp(0.58rem, 0.8vw, 0.82rem) clamp(0.72rem, 1vw, 1rem);
  border: 1px solid rgba(170, 209, 245, 0.15);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(3, 8, 18, 0.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.photo-comp-plane-list span {
  display: flex;
  justify-content: space-between;
  padding: 0.48rem 0.28rem;
  border-bottom: 1px solid rgba(170, 209, 245, 0.09);
  color: rgba(220, 238, 255, 0.54);
}

.photo-comp-plane-list span:last-child {
  border-bottom: none;
}

.photo-comp-caption {
  position: absolute;
  z-index: 7;
  left: clamp(2rem, 2.45vw, 2.75rem);
  right: clamp(2rem, 2.45vw, 2.75rem);
  bottom: clamp(1.15rem, 1.55vw, 1.85rem);
  box-sizing: border-box;
  max-width: 52rem;
  padding: clamp(0.85rem, 1.05vw, 1.15rem) clamp(0.72rem, 1vw, 1rem) clamp(0.45rem, 0.65vw, 0.75rem);
  border-top: 1px solid rgba(170, 209, 245, 0.18);
}

.photo-comp-caption-meta,
.photo-comp-rule-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: clamp(9.5px, 0.62vw, 11.5px);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-comp-caption-meta {
  margin-bottom: 0.38rem;
  color: rgba(151, 195, 235, 0.68);
}

.photo-comp-caption-meta span:last-child,
.photo-comp-rule-meta i {
  font-style: normal;
  color: rgba(220, 238, 255, 0.4);
}

.photo-comp-caption h3 {
  width: min(100%, 40rem);
  max-width: none;
  margin: 0 0 0.28rem;
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.85vw, 2.18rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.photo-comp-caption h3 span {
  display: block;
  white-space: nowrap;
}

.photo-comp-caption p {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(0.64rem, 0.72vw, 0.78rem);
  line-height: 1.22;
  color: rgba(219, 235, 255, 0.7);
  text-wrap: pretty;
}

.photo-comp-rules {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.photo-comp-rule {
  min-height: 0;
  padding: clamp(0.85rem, 1vw, 1.15rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.photo-comp-rule:hover {
  transform: translateY(-2px);
  border-color: rgba(170, 209, 245, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(220, 238, 255, 0.11),
    0 26px 62px rgba(1, 7, 17, 0.4);
}

.photo-comp-rule::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.075) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 20%, transparent 96%);
}

.photo-comp-rule > * {
  position: relative;
  z-index: 1;
}

.photo-comp-rule-meta {
  color: rgba(151, 195, 235, 0.72);
  font-size: clamp(7.5px, 0.45vw, 8.5px);
  gap: 0.5rem;
}

.photo-comp-rule-meta span {
  color: rgba(220, 238, 255, 0.88);
}

.photo-comp-rule-visual {
  min-height: 0;
  height: clamp(6.25rem, 13vh, 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: clamp(0.58rem, 0.76vw, 0.85rem) 0 clamp(0.72rem, 0.9vw, 1rem);
  padding: clamp(0.25rem, 0.38vw, 0.42rem);
  border-top: 1px solid rgba(170, 209, 245, 0.1);
  border-bottom: 1px solid rgba(170, 209, 245, 0.1);
}

.photo-comp-rule-visual svg {
  width: auto;
  max-width: min(100%, 16.5rem);
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(139, 203, 255, 0.08));
}

.photo-comp-rule h3 {
  align-self: start;
  margin: 0 0 0.18rem;
  font-family: var(--condensed);
  font-size: clamp(0.92rem, 1.02vw, 1.18rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.photo-comp-rule p {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(0.62rem, 0.68vw, 0.74rem);
  line-height: 1.2;
  color: rgba(219, 235, 255, 0.72);
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .photo-comp-shell {
    grid-template-columns: 1fr;
  }

  .photo-comp-board {
    min-height: 34rem;
  }

  .photo-comp-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .section-photography-composition .oversize-header {
    grid-template-columns: 1fr;
  }

  .section-photography-composition .oversize-header::after {
    display: none;
  }

  .photo-comp-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section-photography-composition .oversize-header {
    padding: 2rem 1rem 1rem;
  }

  .photo-comp-shell {
    padding: 0 1rem 1.5rem;
  }

  .photo-comp-board {
    min-height: 31rem;
  }

  .photo-comp-rules {
    grid-template-columns: 1fr;
  }

  .photo-comp-plane-list {
    width: min(12rem, 52%);
  }

  .photo-comp-subject-lock span,
  .photo-comp-vector span {
    display: none;
  }

  .photo-comp-caption h3 {
    font-size: clamp(2.05rem, 10vw, 3.05rem);
  }
}

/* Treatment comparison: placeholder box (replaces SVG mock) */
.treat-img-ph {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  background: rgba(5, 12, 26, 0.35);
  padding: 1.5rem;
  min-height: 110px;
}

.photo-treatment--approved .treat-img-ph {
  border: 1px dashed rgba(34, 197, 94, 0.22);
}

.photo-treatment--rejected .treat-img-ph {
  border: 1px dashed rgba(239, 68, 68, 0.2);
}

.treat-img-ph i {
  font-size: 1.5rem;
  color: rgba(139, 203, 255, 0.28);
}

.treat-img-ph-label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.4);
}

.treat-img-ph-spec {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.07em;
  color: rgba(139, 203, 255, 0.2);
  line-height: 1.65;
}

/* Product imagery: make the guidance readable and image-led */
#sys-photography-product .section-orb {
  display: none;
}

#sys-photography-product .photo-style-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

#sys-photography-product .photo-specs-card {
  padding: clamp(1.45rem, 1.8vw, 2rem);
  background:
    linear-gradient(180deg, rgba(15, 31, 53, 0.82), rgba(4, 10, 21, 0.94)),
    rgba(255, 255, 255, 0.012);
}

#sys-photography-product .photo-specs-card > .label-mono {
  text-align: left !important;
  align-self: stretch;
  margin-bottom: 1rem !important;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(170, 209, 245, 0.14);
  font-size: 10px;
  letter-spacing: 0.16em !important;
  color: rgba(190, 219, 246, 0.7) !important;
}

#sys-photography-product .photo-spec-table {
  flex: 1;
  height: 100%;
  margin-top: 0;
  table-layout: fixed;
}

#sys-photography-product .photo-spec-table tr {
  height: 14.285%;
  border-bottom-color: rgba(170, 209, 245, 0.1);
}

#sys-photography-product .photo-spec-table td {
  padding: 0.68rem 0;
  vertical-align: middle;
}

#sys-photography-product .photo-spec-table td:first-child {
  width: 30%;
  padding-right: 1.25rem;
  padding-top: 0.68rem;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(151, 195, 235, 0.68);
}

#sys-photography-product .photo-spec-table td:last-child {
  max-width: 56ch;
  font-size: 13.4px;
  line-height: 1.48;
  color: rgba(234, 243, 252, 0.78);
}

#sys-photography-product .photo-treatment-grid {
  gap: 1rem;
  margin-top: 0;
}

#sys-photography-product .photo-treatment-tile {
  border-radius: 10px;
  background: rgba(3, 9, 20, 0.62);
  border-width: 1px;
}

#sys-photography-product .photo-treat-label {
  padding: 0.7rem 0.85rem 0.55rem;
  font-size: 9px;
  letter-spacing: 0.16em;
}

#sys-photography-product .treat-img-ph {
  position: relative;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-end;
  padding: 1rem;
  background: radial-gradient(circle at 50% 42%, rgba(139, 203, 255, 0.16), rgba(5, 12, 26, 0.68) 62%);
}

#sys-photography-product .treat-img-ph::before {
  content: '';
  position: absolute;
  inset: 8% 5% 18%;
  background-image: url("../assets/products/Indrajaal Ranger 1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 0;
}

#sys-photography-product .treat-img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#sys-photography-product .photo-treatment--approved .treat-img-ph {
  border: 1px solid rgba(34, 197, 94, 0.2);
  background:
    linear-gradient(180deg, rgba(5, 13, 25, 0.1), rgba(5, 13, 25, 0.72)),
    radial-gradient(circle at 48% 42%, rgba(139, 203, 255, 0.2), rgba(5, 12, 26, 0.76) 64%);
}

#sys-photography-product .photo-treatment--approved .treat-img-ph::before {
  filter: saturate(0.58) contrast(1.12) brightness(0.78);
}

#sys-photography-product .photo-treatment--approved .treat-img-ph::after {
  background:
    linear-gradient(180deg, rgba(5, 12, 26, 0) 45%, rgba(5, 12, 26, 0.72) 100%),
    linear-gradient(90deg, rgba(139, 203, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(139, 203, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

#sys-photography-product .photo-treatment--rejected .treat-img-ph {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 242, 230, 0.7), rgba(204, 184, 160, 0.72)),
    #f2eee6;
}

#sys-photography-product .photo-treatment--rejected .treat-img-ph::before {
  inset: 12% 4% 20%;
  filter: sepia(0.28) saturate(1.18) contrast(0.84) brightness(1.15);
}

#sys-photography-product .photo-treatment--rejected .treat-img-ph::after {
  background: linear-gradient(180deg, rgba(255, 246, 232, 0.08), rgba(90, 46, 34, 0.22));
}

#sys-photography-product .treat-img-ph i {
  display: none;
}

#sys-photography-product .treat-img-ph-label,
#sys-photography-product .treat-img-ph-spec {
  position: relative;
  z-index: 2;
}

#sys-photography-product .treat-img-ph-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: rgba(220, 238, 255, 0.62);
}

#sys-photography-product .treat-img-ph-spec {
  font-size: 7px;
  line-height: 1.45;
  color: rgba(220, 238, 255, 0.38);
}

#sys-photography-product .photo-treatment--rejected .treat-img-ph-label,
#sys-photography-product .photo-treatment--rejected .treat-img-ph-spec {
  color: rgba(45, 30, 24, 0.52);
}

#sys-photography-product .photo-treat-spec {
  min-height: 3rem;
  padding: 0.72rem 0.85rem 0.8rem;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.15em;
  text-align: center;
  color: rgba(205, 226, 247, 0.54);
}

#sys-photography-product .photo-treatment--approved .photo-treat-spec {
  color: rgba(144, 219, 166, 0.76);
}

#sys-photography-product .photo-treatment--rejected .photo-treat-spec {
  color: rgba(248, 132, 132, 0.74);
}

@media (max-width: 1180px) {
  #sys-photography-product .photo-style-layout {
    grid-template-columns: 1fr;
  }

  #sys-photography-product .photo-spec-table {
    min-height: 32rem;
  }

  #sys-photography-product .photo-treatment-grid {
    min-height: 30rem;
  }
}

@media (max-width: 760px) {
  #sys-photography-product .photo-specs-card {
    padding: 1.25rem;
  }

  #sys-photography-product .photo-spec-table,
  #sys-photography-product .photo-spec-table tbody,
  #sys-photography-product .photo-spec-table tr,
  #sys-photography-product .photo-spec-table td {
    display: block;
    height: auto;
  }

  #sys-photography-product .photo-spec-table {
    min-height: 0;
  }

  #sys-photography-product .photo-spec-table td:first-child {
    width: auto;
    padding: 0.9rem 0 0.3rem;
  }

  #sys-photography-product .photo-spec-table td:last-child {
    padding: 0 0 0.9rem;
    font-size: 13px;
  }

  #sys-photography-product .photo-treatment-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #sys-photography-product .treat-img-ph {
    min-height: 18rem;
  }
}

/* ============================================================
   UI / DIGITAL — Section 01: UI Components
   ============================================================ */

.ui-comp-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: minmax(0, auto) minmax(0, auto);
  gap: 0.55rem;
  padding: 0 clamp(1.25rem, 4.5vw, 5rem) 0;
  align-items: stretch;
}

#sys-ui {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 0;
}

#sys-ui .oversize-header {
  padding: 1.5rem 2rem 1rem;
}

#sys-ui .identity-section-label {
  margin-bottom: 0.6rem;
}

.system-content #sys-ui {
  height: auto;
  min-height: 100%;
  overflow: hidden;
}

.system-content #sys-ui .ui-comp-bento {
  flex: 1 0 auto;
  min-height: min-content;
  grid-template-rows: repeat(2, minmax(max-content, 1fr));
  padding-bottom: clamp(1rem, 2vh, 1.5rem);
}

/* Cards fill their grid row */
.system-content #sys-ui .ui-token-card,
.system-content #sys-ui .ui-color-roles-card,
.system-content #sys-ui .ui-elevation-card,
.system-content #sys-ui .ui-border-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Token card: sections and lists fill height */
.system-content #sys-ui .ui-token-sections {
  flex: 1;
  min-height: 0;
}
.system-content #sys-ui .ui-token-list {
  flex: 1;
  min-height: 0;
  align-content: space-between;
}

/* Colour roles: grid fills height */
.system-content #sys-ui .ui-roles-list {
  flex: 1;
  min-height: 0;
  align-content: stretch;
}

/* Elevation: stack fills height, items stretch equally */
.system-content #sys-ui .ui-elevation-stack {
  flex: 1;
  min-height: 0;
}
.system-content #sys-ui .ui-elev-item {
  flex: 1;
}

/* Border: demos fill height, samples stretch */
.system-content #sys-ui .ui-border-demos {
  flex: 1;
  min-height: 0;
}
.system-content #sys-ui .ui-bdr-sample {
  flex: 1;
}

.system-content #sys-ui .oversize-header {
  padding-top: clamp(0.75rem, 1.4vh, 1.25rem);
  padding-bottom: clamp(0.5rem, 1vh, 0.9rem);
}

.system-content #sys-ui .identity-section-label {
  margin-bottom: 0.6rem;
}

.system-content #sys-ui .oversize-text {
  font-size: clamp(2.45rem, 4.4vw, 3.65rem);
  line-height: 0.9;
}

#sys-ui .identity-card {
  min-height: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(80, 151, 230, 0.14), rgba(4, 12, 28, 0.72) 58%),
    rgba(3, 12, 28, 0.68);
  border-color: rgba(139, 203, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(139, 203, 255, 0.05),
    0 26px 70px rgba(0, 0, 0, 0.32);
}

#sys-ui .identity-card::before {
  inset: 10px;
  opacity: 0.78;
  background-size: 18px 18px;
  -webkit-mask-image:
    linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 52%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 52%, transparent 100%);
}

#sys-ui .identity-card::after {
  border-color: rgba(139, 203, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(139, 200, 255, 0.1),
    0 0 0 1px rgba(38, 105, 186, 0.18),
    0 0 38px rgba(38, 105, 186, 0.16);
}

#sys-ui .ui-border-card {
  min-height: min-content;
}

#sys-ui .identity-card > .label-mono:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(229, 242, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: left;
}

#sys-ui .identity-card > .label-mono:first-child::before,
#sys-ui .identity-card > .label-mono:first-child::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.34));
}

#sys-ui .identity-card > .label-mono:first-child::after {
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.34), transparent);
}

/* Token Card */
.ui-token-card {
  padding: clamp(0.85rem, 1.4vw, 1.15rem);
}
.ui-token-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin-top: 0.55rem;
  min-height: 0;
}
.ui-token-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ui-token-group-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(139, 203, 255, 0.62);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.15);
}
.ui-token-list {
  display: grid;
  gap: 0.28rem;
}
.ui-token-row {
  display: grid;
  grid-template-columns: 44px 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 1.85rem;
  padding: 0.18rem 0.45rem 0.18rem 0;
  border-bottom: 1px solid rgba(139, 203, 255, 0.08);
}
.ui-space-vis {
  justify-self: start;
  align-self: center;
  background: linear-gradient(135deg, rgba(74, 155, 255, 0.95), rgba(38, 105, 186, 0.42));
  box-shadow: 0 0 18px rgba(38, 105, 186, 0.32);
  flex-shrink: 0;
}
.ui-radius-vis {
  width: 26px;
  height: 26px;
  justify-self: start;
  border: 1.5px solid rgba(87, 170, 255, 0.82);
  background: rgba(5, 18, 41, 0.55);
  box-shadow: inset 0 0 14px rgba(38, 105, 186, 0.2);
  flex-shrink: 0;
}
.ui-token-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
}
.ui-token-key {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(139, 203, 255, 0.5);
  text-align: right;
}

/* Colour Roles Card */
.ui-color-roles-card {
  padding: clamp(0.85rem, 1.4vw, 1.15rem);
}
.ui-roles-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
  margin-top: 0.55rem;
}
.ui-role-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 10px;
  background: rgba(2, 10, 24, 0.24);
}
.ui-role-swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.28);
}
.ui-role-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.ui-role-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}
.ui-role-desc {
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.25;
  color: rgba(139, 203, 255, 0.48);
}

/* Elevation Card */
.ui-elevation-card {
  padding: clamp(0.85rem, 1.4vw, 1.15rem);
}
.ui-elevation-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.ui-elev-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
}
.ui-elev-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(139, 203, 255, 0.7);
  min-width: 0;
}
.ui-elev-name {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.84);
}
.ui-elev-css {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(139, 203, 255, 0.42);
  white-space: nowrap;
}

/* Border Card */
.ui-border-card {
  padding: clamp(0.85rem, 1.4vw, 1.15rem);
  min-height: min-content;
  overflow: visible;
}
.ui-border-demos {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.ui-bdr-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.06), rgba(4, 12, 28, 0.18));
}
.ui-bdr-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(139, 203, 255, 0.62);
}
.ui-bdr-use {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.66);
  text-align: right;
}
.ui-radius-demo-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.ui-rdemo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(87, 170, 255, 0.64);
  background: rgba(3, 13, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(139, 203, 255, 0.62);
  box-shadow: inset 0 0 18px rgba(38, 105, 186, 0.12);
}

@media (min-width: 1181px) {
  .ui-token-card {
    grid-column: 1;
    grid-row: 1;
  }

  .ui-color-roles-card {
    grid-column: 2;
    grid-row: 1;
  }

  .ui-elevation-card {
    grid-column: 1;
    grid-row: 2;
  }

  .ui-border-card {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1180px) {
  .ui-comp-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ui-roles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ui-comp-bento {
    padding: 0 1rem 4rem;
  }

  .ui-token-sections,
  .ui-roles-list {
    grid-template-columns: 1fr;
  }

  .ui-token-row {
    grid-template-columns: 38px 3rem minmax(0, 1fr);
  }

  .ui-elev-item {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .ui-elev-css {
    grid-column: 2;
  }
}


/* ============================================================
   UI / DIGITAL — Section 02: Buttons & Forms
   ============================================================ */

.ui-buttons-section {
  height: auto;
  min-height: 100vh;
  padding-bottom: 0;
  overflow: visible;
}

.system-content #sys-ui-buttons {
  height: auto;
  min-height: 100%;
  overflow: hidden;
}

.section-identity .ui-btns-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(1rem, 2.4vh, 2rem) clamp(1.25rem, 4vw, 4.5rem) clamp(1rem, 2vh, 1.6rem);
  text-align: left;
}

.ui-btns-title-block {
  min-width: 0;
}

.section-identity .ui-btns-title-block .identity-section-label {
  margin-bottom: 0.65rem;
  text-align: left;
}

.section-identity .ui-btns-title-block .oversize-text {
  font-size: clamp(3.1rem, 5.2vw, 5.3rem);
  line-height: 0.86;
  text-align: left;
}

.ui-btns-intro {
  max-width: 28rem;
  padding: 0.9rem 0 0.2rem 1.25rem;
  border-left: 1px solid rgba(139, 203, 255, 0.25);
}

.ui-btns-intro > span {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.52);
}

.ui-btns-intro p {
  margin: 0;
  max-width: 46ch;
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.55;
  color: rgba(227, 239, 255, 0.62);
  text-wrap: pretty;
}

.ui-btns-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(34rem, 1.25fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem) clamp(1.25rem, 2.8vh, 2.5rem);
}

.ui-btn-panel,
.ui-form-panel {
  min-height: 0;
  padding: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(64, 138, 224, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(8, 29, 59, 0.82), rgba(2, 12, 28, 0.74));
  border-color: rgba(139, 203, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(139, 203, 255, 0.025),
    0 24px 60px rgba(0, 8, 22, 0.26);
}

.ui-btn-panel::before,
.ui-form-panel::before {
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, black 8%, transparent 58%);
  mask-image: linear-gradient(to bottom, black 8%, transparent 58%);
}

.ui-btn-panel::after,
.ui-form-panel::after {
  border-color: rgba(139, 203, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.ui-specimen-header {
  min-height: 6.7rem;
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.1);
  background: rgba(2, 14, 32, 0.28);
}

.ui-specimen-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(139, 203, 255, 0.2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(139, 203, 255, 0.7);
  background: rgba(38, 105, 186, 0.1);
}

#sys-ui-buttons .identity-card .ui-specimen-header .label-mono {
  margin: 0 0 0.3rem;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.44);
}

.ui-specimen-header h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.65vw, 1.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
}

.ui-specimen-header p {
  margin: 0.42rem 0 0;
  max-width: 49ch;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(219, 235, 255, 0.4);
}

.ui-specimen-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  padding: 0.4rem 0.52rem;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
  background: rgba(12, 33, 63, 0.36);
  white-space: nowrap;
}

.ui-specimen-tag--live {
  color: rgba(123, 214, 151, 0.72);
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.06);
}

.ui-specimen-tag--live i {
  font-size: 0.44rem;
  color: #56cf7f;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* Button specimen: centred presentation hierarchy */
.ui-btn-panel .ui-specimen-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6.5rem;
  padding-right: 6.5rem;
  text-align: center;
}

.ui-btn-panel .ui-specimen-header > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ui-btn-panel .ui-specimen-index,
.ui-btn-panel .ui-specimen-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ui-btn-panel .ui-specimen-index {
  left: 1.35rem;
}

.ui-btn-panel .ui-specimen-tag {
  right: 1.35rem;
  margin-top: 0;
}

#sys-ui-buttons .ui-btn-panel .ui-specimen-header .label-mono {
  text-align: center;
}

.ui-btn-panel .ui-specimen-header p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ui-btn-gallery {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 1px;
  padding: 1px;
  background: rgba(139, 203, 255, 0.08);
}

.ui-btn-row {
  min-height: 5.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: rgba(5, 20, 43, 0.86);
}

.ui-btn-panel .ui-btn-row {
  align-items: center;
  text-align: center;
}

.ui-btn-row:nth-child(7) {
  grid-column: 1 / -1;
  min-height: 5.5rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
}

.ui-btn-panel .ui-btn-row:nth-child(7) {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.ui-btn-row-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.36);
}

/* Buttons */
.ui-btn {
  min-height: 3rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.25rem;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ui-btn--primary {
  background: #2d73c8;
  color: #fff;
  border-color: #3a82d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(24, 85, 156, 0.22);
}

.ui-btn--primary:hover {
  background: #367fd3;
  transform: translateY(-1px);
}

.ui-btn--primary:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.ui-btn--secondary {
  background: rgba(38, 105, 186, 0.09);
  color: rgba(139, 203, 255, 0.85);
  border-color: rgba(85, 158, 238, 0.38);
}

.ui-btn--secondary:hover {
  background: rgba(38, 105, 186, 0.22);
  border-color: rgba(105, 180, 255, 0.62);
  transform: translateY(-1px);
}

.ui-btn--ghost {
  background: transparent;
  color: rgba(139, 203, 255, 0.7);
  border-color: transparent;
}
.ui-btn--ghost:hover {
  color: rgba(139, 203, 255, 1);
  border-color: rgba(38, 105, 186, 0.3);
  background: rgba(38, 105, 186, 0.06);
}

.ui-btn--critical {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(255, 120, 120, 0.9);
  border-color: rgba(239, 68, 68, 0.38);
}

.ui-btn--critical:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(255, 105, 105, 0.6);
}

.ui-btn:active,
.ui-icon-btn:active {
  transform: translateY(1px) scale(0.985);
}

.ui-btn:focus-visible,
.ui-icon-btn:focus-visible,
.ui-input:focus-visible,
.ui-select:focus-visible {
  outline: 2px solid rgba(122, 190, 255, 0.9);
  outline-offset: 2px;
}

.ui-btn--sm {
  min-height: 2.5rem;
  font-size: 0.7rem;
  padding: 0.45rem 0.9rem;
}

.ui-btn--lg {
  min-height: 3.4rem;
  font-size: 0.94rem;
  padding: 0.8rem 1.45rem;
}

.ui-btn-sizes {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ui-btn-panel .ui-btn-sizes,
.ui-btn-panel .ui-icon-btn-group {
  justify-content: center;
}

/* Icon Buttons */
.ui-icon-btn-group {
  display: flex;
  gap: 0.5rem;
}

.ui-icon-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 5px;
  border: 1px solid rgba(38, 105, 186, 0.4);
  background: rgba(38, 105, 186, 0.07);
  color: rgba(139, 203, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.ui-icon-btn:hover {
  color: rgba(195, 226, 255, 0.95);
  border-color: rgba(86, 163, 247, 0.62);
  background: rgba(38, 105, 186, 0.16);
}

.ui-icon-btn--active {
  border-color: rgba(38, 105, 186, 0.8);
  background: rgba(38, 105, 186, 0.25);
  color: rgba(139, 203, 255, 1);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Form */
.ui-form-demo {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1rem 0.95rem;
  align-content: stretch;
  padding: 1.3rem 1.35rem 1.4rem;
}

.ui-form-demo > .ui-field:nth-child(3),
.ui-form-demo > .ui-field:last-child {
  grid-column: 1 / -1;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  min-width: 0;
}

.ui-field-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  flex-wrap: wrap;
}

.ui-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1;
  color: rgba(139, 203, 255, 0.46);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ui-input-wrap {
  position: relative;
}

.ui-input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(139, 203, 255, 0.4);
  font-size: 1rem;
  pointer-events: none;
}
.ui-input {
  width: 100%;
  min-height: 3.25rem;
  background: rgba(4, 21, 45, 0.7);
  border: 1px solid rgba(78, 148, 226, 0.25);
  border-radius: 5px;
  padding: 0.7rem 1rem 0.7rem 2.7rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}

.ui-input:focus {
  border-color: rgba(88, 164, 247, 0.72);
  background: rgba(6, 28, 58, 0.86);
  box-shadow: 0 0 0 3px rgba(38, 105, 186, 0.1);
}

.ui-input::placeholder {
  color: rgba(139, 203, 255, 0.25);
}

.ui-select-wrap {
  position: relative;
}

.ui-select {
  width: 100%;
  min-height: 3.25rem;
  background: rgba(4, 21, 45, 0.7);
  border: 1px solid rgba(78, 148, 226, 0.25);
  border-radius: 5px;
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  appearance: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ui-select:focus {
  border-color: rgba(88, 164, 247, 0.72);
  background: rgba(6, 28, 58, 0.86);
  box-shadow: 0 0 0 3px rgba(38, 105, 186, 0.1);
}

.ui-select-caret {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(139, 203, 255, 0.4);
  font-size: 0.9rem;
  pointer-events: none;
}

.ui-control-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
  border: 1px solid rgba(139, 203, 255, 0.09);
  border-radius: 7px;
  background: rgba(2, 15, 34, 0.34);
}

.ui-control-group > .ui-label {
  display: block;
  margin-bottom: 1rem;
}

.ui-control-group--checks .ui-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

/* Toggle */
.ui-toggle-field {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}
.ui-toggle {
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  transition: all 200ms ease;
}
.ui-toggle--on {
  background: rgba(38, 105, 186, 0.55);
  border-color: rgba(38, 105, 186, 0.8);
}
.ui-toggle-thumb {
  position: absolute;
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  top: 0.17rem;
  left: 0.17rem;
  transition: all 200ms ease;
}

.ui-toggle--on .ui-toggle-thumb {
  left: 1.42rem;
  background: #fff;
}

.ui-toggle-label {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Checkbox */
.ui-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.ui-check-custom {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(38, 105, 186, 0.5);
  border-radius: 3px;
  background: rgba(12, 33, 63, 0.6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-check-custom--checked {
  background: rgba(38, 105, 186, 0.5);
  border-color: rgba(38, 105, 186, 0.9);
}
.ui-check-custom--checked::after {
  content: '';
  width: 0.56rem;
  height: 0.34rem;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

/* Range */
.ui-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.05rem 0;
}

.ui-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
}
.ui-range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #2669BA;
  border-radius: 999px;
}
.ui-range-thumb {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #2669BA;
  border: 2px solid rgba(139, 203, 255, 0.8);
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(38, 105, 186, 0.5);
}
.ui-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(139, 203, 255, 0.35);
}

/* Interaction contract */
.ui-control-rules {
  grid-column: 1 / -1;
  min-height: 6.5rem;
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 2fr);
  align-items: stretch;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 46, 88, 0.72), rgba(4, 17, 37, 0.74)),
    rgba(4, 16, 35, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ui-control-rules-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  border-right: 1px solid rgba(139, 203, 255, 0.1);
}

.ui-control-rules-heading .label-mono {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(139, 203, 255, 0.58);
}

.ui-control-rules-heading p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(219, 235, 255, 0.4);
}

.ui-control-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-control-rule {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0.22rem 0.75rem;
  padding: 0.95rem 1.1rem;
  border-right: 1px solid rgba(139, 203, 255, 0.08);
}

.ui-control-rule:last-child {
  border-right: 0;
}

.ui-control-rule > span {
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(139, 203, 255, 0.28);
}

.ui-control-rule strong {
  font-family: var(--condensed);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.ui-control-rule small {
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.4);
}

.ui-control-rule--critical strong {
  color: rgba(255, 125, 125, 0.88);
}

@media (max-width: 1180px) {
  .section-identity .ui-btns-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ui-btns-intro {
    max-width: 42rem;
  }

  .ui-btns-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ui-control-rules {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .section-identity .ui-btns-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ui-btns-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ui-form-demo {
    grid-template-columns: 1fr;
  }

  .ui-form-demo > .ui-field:nth-child(3),
  .ui-form-demo > .ui-field:last-child {
    grid-column: 1;
  }

  .ui-control-rules {
    grid-template-columns: 1fr;
  }

  .ui-control-rules-heading {
    border-right: 0;
    border-bottom: 1px solid rgba(139, 203, 255, 0.1);
  }

  .ui-control-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-control-rule:nth-child(2) {
    border-right: 0;
  }

  .ui-control-rule:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(139, 203, 255, 0.08);
  }
}

@media (max-width: 480px) {
  .ui-specimen-header {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .ui-specimen-tag {
    display: none;
  }

  .ui-btn-gallery {
    grid-template-columns: 1fr;
  }

  .ui-btn-row:nth-child(7) {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .ui-btn-sizes {
    flex-wrap: wrap;
  }
}


/* ============================================================
   UI / DIGITAL — Section 03: Cards
   ============================================================ */

#sys-ui-cards {
  height: 100%;
  min-height: 100%;
  padding-bottom: 0;
}

#sys-ui-cards .oversize-header {
  padding: clamp(1.35rem, 2.8vh, 2rem) 2rem clamp(0.85rem, 1.7vh, 1.15rem);
}

#sys-ui-cards .identity-section-label {
  margin-bottom: 0.35rem;
}

.ui-cards-bento {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: clamp(0.65rem, 0.9vw, 0.9rem);
  padding: 0 clamp(1.25rem, 5vw, 5.5rem) clamp(0.75rem, 1.6vh, 1rem);
  overflow: hidden;
  counter-reset: card-pattern;
}

.ui-card-example {
  counter-increment: card-pattern;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  gap: 0.45rem;
}

.ui-card-example--glass,
.ui-card-example--status,
.ui-card-example--alert,
.ui-card-example--metric,
.ui-card-example--nav,
.ui-card-example--notes {
  grid-column: auto;
}

.ui-card-ex-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.25rem;
}

.ui-card-index {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  color: rgba(111, 182, 250, 0.75);
}

.ui-card-ex-label {
  align-self: center;
  margin: 0;
  font-size: 0.58rem;
  line-height: 1;
  color: rgba(218, 235, 255, 0.7);
  letter-spacing: 0.14em;
}

.ui-card-role {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.28);
}

.ui-card-role::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.22));
}

.ui-card-role--critical {
  color: rgba(255, 112, 112, 0.55);
}

.ui-card-role--critical::before {
  background: linear-gradient(90deg, transparent, rgba(255, 100, 100, 0.3));
}

/* Base demo card */
.ui-demo-card {
  --ui-card-pad: clamp(1.1rem, 1.45vw, 1.5rem);
  --ui-card-gap: clamp(0.65rem, 1.05vh, 0.9rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(139, 203, 255, 0.17);
  padding: var(--ui-card-pad);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ui-card-gap);
  color: inherit;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 5, 18, 0.3),
    0 18px 38px rgba(0, 7, 22, 0.2);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.ui-demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 86% 0%, rgba(97, 171, 244, 0.12), transparent 38%);
}

.ui-card-example:hover .ui-demo-card {
  transform: translateY(-3px);
  border-color: rgba(139, 203, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 5, 18, 0.3),
    0 22px 48px rgba(0, 7, 22, 0.34),
    0 0 22px rgba(38, 105, 186, 0.08);
}

.ui-demo-card:focus-visible {
  outline: 2px solid rgba(139, 203, 255, 0.85);
  outline-offset: 3px;
}

/* Glass Data Card */
.ui-demo-card--glass {
  background: linear-gradient(135deg, rgba(18, 50, 88, 0.66), rgba(6, 22, 46, 0.5));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  justify-content: flex-start;
}

.ui-demo-card--glass .ui-demo-primary-row {
  align-items: center;
  flex: 0 0 clamp(7rem, 15vh, 8.6rem);
  min-height: 0;
  padding: clamp(0.62rem, 0.9vh, 0.85rem) 0;
  border-top: 1px solid rgba(139, 203, 255, 0.08);
  border-bottom: 1px solid rgba(139, 203, 255, 0.12);
}

.ui-demo-card--glass .ui-demo-progress-head {
  padding-top: 0;
}

.ui-demo-card--glass .ui-demo-data-grid {
  border-color: rgba(139, 203, 255, 0.18);
  background: rgba(139, 203, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.08);
}

.ui-demo-card--glass .ui-demo-data-cell {
  background: rgba(2, 14, 34, 0.82);
}

.ui-demo-card--glass .ui-demo-card-footer {
  margin-top: auto;
  border-top-color: rgba(139, 203, 255, 0.16);
}

.ui-demo-card--glass .ui-demo-card-value {
  font-size: clamp(3.35rem, 4.25vw, 4.55rem);
  line-height: 0.92;
}

.ui-demo-card--glass .ui-demo-card-sub {
  font-size: clamp(0.78rem, 0.7vw, 0.92rem);
}

.ui-demo-card--glass .ui-demo-signal-readout strong {
  font-size: clamp(1.05rem, 1vw, 1.28rem);
  line-height: 1;
}

.ui-demo-card--glass .ui-demo-progress-head span:last-child {
  font-size: clamp(0.78rem, 0.68vw, 0.92rem);
  color: rgba(139, 203, 255, 0.48);
}

.ui-demo-card--glass .ui-demo-data-cell strong {
  font-size: clamp(0.98rem, 0.9vw, 1.18rem);
  line-height: 1.08;
}
.ui-demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.2rem;
  margin-bottom: 0;
}
.ui-demo-card-eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.58vw, 0.72rem);
  line-height: 1.25;
  color: rgba(139, 203, 255, 0.5);
  letter-spacing: 0.08em;
}
.ui-demo-card-icon {
  font-size: 1rem;
  color: rgba(38, 105, 186, 0.7);
}

.ui-demo-card-header-code {
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.48vw, 0.68rem);
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.3);
  white-space: nowrap;
}

.ui-demo-primary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: clamp(4.75rem, 9.5vh, 6.8rem);
}

.ui-demo-card-value {
  font-family: var(--condensed);
  font-size: clamp(2.75rem, 3.5vw, 3.65rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.32rem;
}
.ui-demo-card-value span {
  font-size: clamp(0.78rem, 0.68vw, 0.9rem);
  font-family: var(--mono);
  color: rgba(139, 203, 255, 0.5);
  font-weight: 400;
}
.ui-demo-card-sub {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.58vw, 0.78rem);
  line-height: 1.25;
  color: rgba(34, 197, 94, 0.7);
  margin-bottom: 0;
}

.ui-demo-signal-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  padding-bottom: 0.12rem;
}

.ui-demo-signal-readout span,
.ui-demo-progress-head {
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.48vw, 0.68rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.35);
}

.ui-demo-signal-readout strong {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 0.72vw, 0.96rem);
  font-weight: 500;
  color: rgba(235, 245, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.ui-demo-progress-head {
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.ui-demo-card-bar-wrap {
  height: 3px;
  flex: 0 0 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.ui-demo-card-bar-fill {
  height: 100%;
  background: #2669BA;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(63, 145, 232, 0.55);
}

.ui-demo-data-grid {
  display: grid;
  gap: 1px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 6px;
  background: rgba(139, 203, 255, 0.08);
}

.ui-demo-data-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-demo-data-cell {
  min-width: 0;
  padding: clamp(0.62rem, 0.72vw, 0.8rem) clamp(0.62rem, 0.78vw, 0.82rem);
  background: rgba(3, 17, 38, 0.74);
}

.ui-demo-data-cell span,
.ui-card-contract-grid span {
  display: block;
  overflow: hidden;
  margin-bottom: 0.28rem;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.46vw, 0.68rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(139, 203, 255, 0.36);
}

.ui-demo-data-cell strong,
.ui-card-contract-grid strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.62vw, 0.82rem);
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(232, 243, 255, 0.86);
}

.ui-demo-data-cell--critical strong {
  color: rgba(255, 126, 126, 0.9);
}

.ui-demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.6rem;
  margin-top: auto;
  padding-top: clamp(0.72rem, 0.9vw, 0.9rem);
  border-top: 1px solid rgba(139, 203, 255, 0.08);
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.48vw, 0.68rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: rgba(139, 203, 255, 0.36);
  white-space: nowrap;
}

.ui-demo-card-footer i {
  margin-right: 0.25rem;
  font-size: 0.55rem;
  color: rgba(34, 197, 94, 0.8);
}

/* Status Card */
.ui-demo-card--status {
  background: linear-gradient(145deg, rgba(6, 57, 112, 0.48), rgba(3, 22, 51, 0.62));
}
.ui-demo-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.56vw, 0.74rem);
  line-height: 1.2;
  margin-bottom: 0;
}
.ui-demo-status--active {
  color: rgba(34, 197, 94, 0.8);
}
.ui-demo-status-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: glow-pulse 3s ease-in-out infinite;
}
.ui-demo-card-title {
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.85vw, 1.95rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0;
}

.ui-demo-card-caption {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(0.7rem, 0.58vw, 0.8rem);
  line-height: 1.45;
  color: rgba(139, 203, 255, 0.4);
}
.ui-demo-status-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  justify-content: space-evenly;
  min-height: clamp(5.5rem, 12vh, 7.6rem);
}
.ui-demo-status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.58vw, 0.78rem);
  line-height: 1.25;
  color: rgba(139, 203, 255, 0.5);
  border-bottom: 1px solid rgba(139, 203, 255, 0.075);
  padding: clamp(0.46rem, 0.66vh, 0.62rem) 0;
}
.ui-demo-status-val {
  color: rgba(255, 255, 255, 0.8);
}

/* Alert Card */
.ui-demo-card--alert {
  background:
    linear-gradient(145deg, rgba(101, 24, 40, 0.2), rgba(35, 14, 32, 0.54)),
    rgba(20, 17, 37, 0.6);
  border-color: rgba(239, 68, 68, 0.32);
  justify-content: space-between;
  box-shadow:
    inset 3px 0 0 rgba(239, 68, 68, 0.48),
    inset 0 1px 0 rgba(255, 180, 180, 0.06),
    0 18px 38px rgba(20, 0, 12, 0.2);
}

.ui-demo-card--alert::before {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(239, 68, 68, 0.025) 14px 15px),
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.09), transparent 42%);
}

.ui-card-example--alert:hover .ui-demo-card {
  border-color: rgba(255, 92, 92, 0.55);
  box-shadow:
    inset 3px 0 0 rgba(255, 86, 86, 0.7),
    inset 0 1px 0 rgba(255, 180, 180, 0.08),
    0 22px 46px rgba(35, 0, 17, 0.28);
}
.ui-demo-alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 1rem;
  color: rgba(255, 100, 100, 0.85);
}
.ui-demo-alert-level {
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.56vw, 0.72rem);
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: rgba(255, 100, 100, 0.7);
}

.ui-demo-alert-id {
  margin-left: auto;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.46vw, 0.66rem);
  letter-spacing: 0.1em;
  color: rgba(255, 125, 125, 0.36);
}
.ui-demo-alert-title {
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  font-weight: 600;
  color: rgba(255, 200, 200, 0.9);
  margin-bottom: 0;
}
.ui-demo-alert-body {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 0.66vw, 0.88rem);
  color: rgba(255, 200, 200, 0.55);
  line-height: 1.55;
  margin-bottom: 0;
}

.ui-demo-data-grid--alert {
  margin-top: 0;
  border-color: rgba(255, 100, 100, 0.1);
  background: rgba(255, 100, 100, 0.1);
}

.ui-demo-data-grid--alert .ui-demo-data-cell {
  background: rgba(34, 11, 29, 0.8);
}

.ui-demo-data-grid--alert .ui-demo-data-cell span {
  color: rgba(255, 150, 150, 0.42);
}

.ui-demo-alert-response {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0;
  padding: clamp(0.62rem, 0.78vw, 0.78rem) clamp(0.72rem, 0.9vw, 0.9rem);
  border-left: 2px solid rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.055);
}

.ui-demo-alert-response div span,
.ui-demo-alert-response div strong {
  display: block;
}

.ui-demo-alert-response div span {
  margin-bottom: 0.18rem;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.44vw, 0.68rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 140, 140, 0.42);
}

.ui-demo-alert-response div strong {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 0.56vw, 0.78rem);
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 220, 220, 0.78);
}

.ui-demo-alert-badge {
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(255, 95, 95, 0.25);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.42vw, 0.66rem);
  line-height: 1;
  letter-spacing: 0.09em;
  color: rgba(255, 120, 120, 0.72);
}

.ui-demo-alert-sequence {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: clamp(0.48rem, 0.7vw, 0.7rem);
  margin-top: 0;
  font-family: var(--mono);
  color: rgba(255, 145, 145, 0.35);
}

.ui-demo-alert-sequence span {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  font-size: clamp(0.625rem, 0.42vw, 0.66rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ui-demo-alert-sequence strong {
  font-size: clamp(0.625rem, 0.44vw, 0.68rem);
  font-weight: 500;
  color: rgba(255, 175, 175, 0.6);
}

.ui-demo-alert-sequence i {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 92, 92, 0.28), rgba(255, 92, 92, 0.08));
}

.ui-demo-card-footer--alert {
  border-color: rgba(255, 100, 100, 0.1);
  color: rgba(255, 125, 125, 0.4);
  margin-top: 0;
}

/* Metric Card */
.ui-demo-card--metric {
  background: linear-gradient(155deg, rgba(14, 42, 79, 0.64), rgba(4, 18, 40, 0.55));
}
.ui-demo-metric-label {
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.56vw, 0.74rem);
  line-height: 1.2;
  color: rgba(139, 203, 255, 0.45);
  margin-bottom: 0;
  letter-spacing: 0.06em;
}
.ui-demo-metric-value {
  font-family: var(--condensed);
  font-size: clamp(2.85rem, 3.8vw, 3.95rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.36rem;
}
.ui-demo-metric-change {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.58vw, 0.78rem);
  line-height: 1.25;
  margin-bottom: 0;
}
.ui-demo-metric--up {
  color: rgba(34, 197, 94, 0.75);
}
.ui-demo-sparkline {
  width: 100%;
  height: clamp(4.4rem, 10vh, 6.4rem);
  flex: 1 1 auto;
  min-height: 4.2rem;
  margin-top: 0;
  overflow: visible;
}

.ui-demo-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: -0.12rem;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.42vw, 0.66rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: rgba(139, 203, 255, 0.24);
}

/* Nav Card */
.ui-demo-card--nav {
  background:
    linear-gradient(120deg, rgba(9, 52, 101, 0.55), rgba(3, 19, 43, 0.56)),
    rgba(4, 20, 43, 0.54);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ui-demo-card--nav:hover {
  background:
    linear-gradient(120deg, rgba(11, 66, 128, 0.62), rgba(3, 24, 54, 0.62)),
    rgba(4, 20, 43, 0.62);
}
.ui-demo-nav-icon {
  font-size: 1.32rem;
  color: rgba(38, 105, 186, 0.75);
}
.ui-demo-nav-title {
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.75vw, 1.85rem);
  line-height: 1;
  font-weight: 600;
  color: #fff;
}

.ui-demo-nav-title span {
  display: inline-block;
  margin-left: 0.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(139, 203, 255, 0.4);
  transform: translateY(-0.1rem);
}
.ui-demo-nav-desc {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 0.64vw, 0.88rem);
  color: rgba(139, 203, 255, 0.5);
  line-height: 1.45;
  margin-top: 0;
}

.ui-demo-nav-visual {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: clamp(5rem, 10.5vh, 7rem);
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 6px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.085) 1px, transparent 1px),
    radial-gradient(circle at 52% 52%, rgba(38, 105, 186, 0.3), transparent 48%),
    rgba(2, 14, 34, 0.72);
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.ui-demo-map-label {
  position: absolute;
  left: 0.55rem;
  top: 0.45rem;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.42vw, 0.66rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.34);
}

.ui-demo-map-ring {
  position: absolute;
  left: calc(52% - 1.65rem);
  top: calc(52% - 1.65rem);
  width: 3.3rem;
  height: 3.3rem;
  border: 1px solid rgba(95, 172, 247, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(38, 105, 186, 0.1);
}

.ui-demo-map-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(113, 185, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(70, 153, 235, 0.55);
}

.ui-demo-map-node--one { left: 24%; top: 55%; }
.ui-demo-map-node--two { left: 56%; top: 26%; }
.ui-demo-map-node--three { right: 18%; bottom: 22%; border-color: rgba(255, 100, 100, 0.82); }

.ui-demo-map-sweep {
  position: absolute;
  left: 52%;
  top: 52%;
  width: 5.5rem;
  height: 1px;
  transform-origin: left center;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(83, 165, 244, 0.65), transparent);
}
.ui-demo-nav-cta {
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.56vw, 0.76rem);
  color: rgba(38, 105, 186, 0.8);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0;
  padding-top: 0;
}

.ui-demo-nav-cta i {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-demo-card--nav:hover .ui-demo-nav-cta i {
  transform: translateX(4px);
}

/* Card Anatomy Notes */
.ui-card-notes {
  --ui-card-pad: clamp(1.1rem, 1.45vw, 1.5rem);
  --ui-card-gap: clamp(0.65rem, 1.05vh, 0.9rem);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ui-card-gap);
  padding: var(--ui-card-pad);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(14, 36, 67, 0.72), rgba(3, 14, 31, 0.82)),
    rgba(3, 13, 30, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 38px rgba(0, 7, 22, 0.22);
}

.ui-card-notes::before {
  inset: 8px;
  border-radius: 8px;
  opacity: 0.45;
  background-size: 14px 14px;
}

.ui-card-notes::after {
  border-radius: 14px;
  border-color: rgba(139, 203, 255, 0.18);
}

.ui-card-notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(0.65rem, 0.8vw, 0.82rem);
  border-bottom: 1px solid rgba(139, 203, 255, 0.12);
}

.ui-card-notes-kicker,
.ui-card-notes-code {
  display: block;
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.48vw, 0.68rem);
  line-height: 1.1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.38);
}

.ui-card-notes h3 {
  margin: 0.25rem 0 0;
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 1.7vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(245, 249, 255, 0.94);
}

.ui-card-notes-code {
  padding-top: 0.2rem;
  white-space: nowrap;
}
.ui-card-anatomy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.12rem, 0.35vh, 0.28rem);
  flex: 1 1 auto;
  min-height: 0;
}
.ui-card-anatomy-list li {
  display: grid;
  grid-template-columns: minmax(4.8rem, 0.34fr) 1fr;
  align-items: center;
  gap: clamp(0.65rem, 0.85vw, 0.9rem);
  min-width: 0;
  padding: clamp(0.42rem, 0.62vh, 0.56rem) 0;
  border-bottom: 1px solid rgba(139, 203, 255, 0.065);
  font-family: var(--sans);
  font-size: clamp(0.68rem, 0.56vw, 0.78rem);
  color: rgba(218, 235, 255, 0.52);
  line-height: 1.35;
}

.ui-card-anatomy-list li:last-child {
  border-bottom: 0;
}
.ui-anat-tag {
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.48vw, 0.68rem);
  line-height: 1.1;
  color: rgba(139, 203, 255, 0.72);
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.ui-card-contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 6px;
  background: rgba(139, 203, 255, 0.08);
}

.ui-card-contract-grid > div {
  padding: clamp(0.62rem, 0.72vw, 0.8rem) clamp(0.62rem, 0.78vw, 0.82rem);
  background: rgba(3, 17, 38, 0.78);
}


/* ============================================================
   UI / DIGITAL — Section 04: Dashboard Style
   ============================================================ */

.ui-dashboard-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(24rem, 1fr) auto;
  gap: clamp(0.9rem, 1.4vh, 1.25rem);
  padding: 0 clamp(1.25rem, 5vw, 5.5rem) clamp(1rem, 2.6vh, 1.6rem);
}

/* Dashboard specimen */
.ui-dashboard-frame {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 62% 8%, rgba(38, 105, 186, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(5, 20, 45, 0.9), rgba(2, 8, 22, 0.92));
  background-size: 32px 32px, 32px 32px, auto, auto;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 42px rgba(38, 105, 186, 0.07),
    0 24px 60px rgba(0, 8, 24, 0.3);
}

.ui-dashboard-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 94% 2%, rgba(34, 197, 94, 0.11), transparent 24%);
}

.ui-dash-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: 3.25rem;
  padding: 0.62rem clamp(1rem, 1.6vw, 1.35rem);
  background: rgba(1, 8, 20, 0.78);
  border-bottom: 1px solid rgba(139, 203, 255, 0.1);
}
.ui-dash-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: rgba(183, 221, 255, 0.95);
  white-space: nowrap;
}

.ui-dash-logo i {
  font-size: 0.85rem;
  color: rgba(139, 203, 255, 0.9);
}

.ui-dash-nav-items {
  display: flex;
  gap: clamp(0.7rem, 1.5vw, 1.4rem);
  flex: 1;
  min-width: 0;
}
.ui-dash-nav-item {
  position: relative;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(139, 203, 255, 0.4);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 180ms ease;
}
.ui-dash-nav-item--active {
  color: rgba(139, 203, 255, 0.9);
}

.ui-dash-nav-item--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.86rem;
  height: 2px;
  background: linear-gradient(90deg, #2669BA, rgba(139, 203, 255, 0.12));
  box-shadow: 0 0 12px rgba(38, 105, 186, 0.55);
}

.ui-dash-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ui-dash-ops-code {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.34);
  white-space: nowrap;
}
.ui-dash-live {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: rgba(34, 197, 94, 0.8);
  white-space: nowrap;
}
.ui-dash-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: glow-pulse 3s ease-in-out infinite;
}

.ui-dash-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
}
.ui-dash-sidebar {
  min-width: 0;
  border-right: 1px solid rgba(139, 203, 255, 0.09);
  padding: 0.95rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  background: linear-gradient(180deg, rgba(6, 24, 52, 0.45), rgba(2, 9, 22, 0.1));
}
.ui-dash-sb-item {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2rem;
  padding: 0.48rem 0.58rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(139, 203, 255, 0.42);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.ui-dash-sb-item i {
  font-size: 0.78rem;
  flex: 0 0 auto;
}

.ui-dash-sb-item span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dash-sb-item strong {
  flex: 0 0 auto;
  font-size: 0.48rem;
  font-weight: 500;
  color: rgba(139, 203, 255, 0.34);
}
.ui-dash-sb-item--active {
  color: rgba(215, 237, 255, 0.92);
  background: linear-gradient(90deg, rgba(38, 105, 186, 0.24), rgba(38, 105, 186, 0.06));
  box-shadow: inset 2px 0 0 #58a4f2, inset 0 1px 0 rgba(255,255,255,0.06);
}

.ui-dash-sb-item--alert strong {
  color: rgba(255, 130, 130, 0.72);
}

.ui-dash-sb-item:hover {
  transform: translateX(2px);
  color: rgba(205, 232, 255, 0.8);
  background: rgba(139, 203, 255, 0.045);
}

.ui-dash-sb-bottom {
  margin-top: auto;
}

.ui-dash-sidebar-card {
  margin: 0.6rem 0.15rem 0;
  padding: 0.7rem;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(13, 48, 88, 0.38), rgba(2, 10, 24, 0.48));
}

.ui-dash-sidebar-card span,
.ui-dash-sidebar-card small {
  display: block;
  font-family: var(--mono);
  font-size: 0.47rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.34);
}

.ui-dash-sidebar-card strong {
  display: block;
  margin: 0.32rem 0 0.18rem;
  font-family: var(--condensed);
  font-size: 1rem;
  line-height: 1;
  color: rgba(223, 242, 255, 0.92);
}

.ui-dash-main {
  min-width: 0;
  min-height: 0;
  padding: clamp(0.8rem, 1.4vw, 1.15rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.05vw, 0.9rem);
}

.ui-dash-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 0.86rem;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.055), rgba(2, 10, 24, 0.2));
}

.ui-dash-kicker {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.38);
}

.ui-dash-status-strip h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1;
  color: rgba(242, 248, 255, 0.94);
}

.ui-dash-status-cells {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.55rem;
}

.ui-dash-status-cells span {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 4.5rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(139, 203, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.46rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.34);
}

.ui-dash-status-cells strong {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(235, 245, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

.ui-dash-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.55rem, 0.85vw, 0.75rem);
}
.ui-dash-metric {
  min-width: 0;
  min-height: 5.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(94, 171, 248, 0.12), transparent 42%),
    rgba(2, 56, 119, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
.ui-dash-metric--alert {
  border-color: rgba(239, 68, 68, 0.32);
  background:
    radial-gradient(circle at 88% 0%, rgba(239, 68, 68, 0.16), transparent 44%),
    rgba(239, 68, 68, 0.07);
}

.ui-dash-m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.45rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.36);
}

.ui-dash-m-top span,
.ui-dash-m-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dash-m-top strong {
  flex-shrink: 0;
  font-weight: 500;
  color: rgba(34, 197, 94, 0.78);
}

.ui-dash-metric--alert .ui-dash-m-top strong {
  color: rgba(255, 126, 126, 0.8);
}

.ui-dash-m-val {
  font-family: var(--condensed);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}
.ui-dash-metric--alert .ui-dash-m-val {
  color: rgba(255, 120, 120, 0.9);
}
.ui-dash-m-lbl {
  font-family: var(--mono);
  font-size: 0.5rem;
  color: rgba(139, 203, 255, 0.35);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ui-dash-meter {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ui-dash-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: #2669BA;
  box-shadow: 0 0 14px rgba(80, 159, 244, 0.7);
}

.ui-dash-meter--coverage span {
  width: 98.4%;
}

.ui-dash-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(16rem, 0.85fr);
  gap: clamp(0.55rem, 0.85vw, 0.75rem);
  flex: 1;
  min-height: 0;
}
.ui-dash-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 10px;
  padding: 0.86rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(38, 105, 186, 0.12), transparent 46%),
    rgba(2, 10, 24, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.ui-dash-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  margin-bottom: 0.72rem;
}

.ui-dash-panel-header > span {
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.52);
}

.ui-dash-panel-header div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.44rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.28);
}

.ui-dash-panel-header strong {
  font-weight: 500;
  color: rgba(222, 241, 255, 0.68);
}

.ui-dash-panel-header em {
  font-style: normal;
}

.ui-dash-chart {
  width: 100%;
  height: clamp(7rem, 13vh, 9rem);
  display: block;
  overflow: visible;
}

.ui-dash-panel--wide .ui-dash-chart {
  flex: 1;
  min-height: clamp(8rem, 18vh, 14rem);
  height: auto;
}

.ui-dash-chart-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 0.7rem;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 7px;
  background: rgba(139, 203, 255, 0.08);
}

.ui-dash-chart-meta span {
  min-width: 0;
  padding: 0.46rem 0.55rem;
  background: rgba(3, 16, 36, 0.74);
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-dash-chart-meta strong {
  display: block;
  margin-bottom: 0.16rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(235, 245, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.ui-dash-log-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(139, 203, 255, 0.06);
  font-family: var(--mono);
}
.ui-dash-log-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ui-dash-log-row span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.ui-dash-log-row strong,
.ui-dash-log-row small,
.ui-dash-log-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dash-log-row strong {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.ui-dash-log-row small,
.ui-dash-log-row em {
  font-size: 0.46rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-style: normal;
  color: rgba(139, 203, 255, 0.32);
}

.ui-dash-log-row em {
  justify-self: end;
}

.ui-dash-log--critical .ui-dash-log-pip { background: #EF4444; }
.ui-dash-log--critical strong { color: rgba(255, 150, 150, 0.76); }
.ui-dash-log--alert .ui-dash-log-pip { background: #F59E0B; }
.ui-dash-log--alert strong { color: rgba(255, 200, 100, 0.68); }
.ui-dash-log--active .ui-dash-log-pip { background: #22C55E; }
.ui-dash-log--active strong { color: rgba(139, 203, 255, 0.52); }

.ui-dash-response-card {
  margin-top: auto;
  padding: 0.7rem 0.78rem;
  border-left: 2px solid rgba(239, 68, 68, 0.6);
  border-radius: 0 8px 8px 0;
  background: rgba(239, 68, 68, 0.055);
}

.ui-dash-response-card span,
.ui-dash-response-card small {
  display: block;
  font-family: var(--mono);
  font-size: 0.46rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 145, 145, 0.38);
}

.ui-dash-response-card strong {
  display: block;
  margin: 0.24rem 0 0.14rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255, 218, 218, 0.78);
}

/* Dashboard Principles */
.ui-dash-principles {
  min-height: 0;
  padding: clamp(1rem, 1.4vw, 1.25rem);
  border-color: rgba(139, 203, 255, 0.2);
  border-radius: 18px;
}

.ui-dash-principles-head {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.1);
}

.ui-dash-principles-head .label-mono {
  margin: 0 0 0.35rem;
}

.ui-dash-principles-head h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(245, 249, 255, 0.94);
}

.ui-dash-principles-head p {
  margin: 0;
  max-width: 48rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(218, 235, 255, 0.58);
  text-wrap: pretty;
}

.ui-dash-principle-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.ui-dash-principle-list li {
  min-width: 0;
  min-height: 7rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.4rem;
  padding: 0.76rem;
  border: 1px solid rgba(139, 203, 255, 0.09);
  border-radius: 10px;
  background: rgba(2, 12, 28, 0.42);
  font-family: var(--sans);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ui-dash-principle-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 203, 255, 0.22);
  background: rgba(16, 43, 78, 0.42);
}

.ui-dash-principle-list strong {
  overflow: hidden;
  font-family: var(--condensed);
  font-size: 1.03rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(243, 248, 255, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dash-principle-list li > span:last-child {
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(218, 235, 255, 0.54);
}

.ui-dash-pnum {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1;
  color: rgba(139, 203, 255, 0.5);
}


/* ============================================================
   UI / DIGITAL — Section 05: Data Visualisation
   ============================================================ */

.ui-dataviz-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 5vw 8vh;
}

.ui-viz-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1vh, 0.8rem);
  overflow: hidden;
  padding: clamp(1rem, 1.8vw, 1.35rem);
}

.ui-viz-panel::after,
.ui-viz-principles::after {
  background:
    linear-gradient(135deg, rgba(139, 203, 255, 0.12), transparent 34%),
    radial-gradient(circle at 24% 0%, rgba(84, 156, 232, 0.16), transparent 34%),
    radial-gradient(circle at 74% 100%, rgba(38, 105, 186, 0.12), transparent 40%);
  opacity: 0.55;
}

.ui-viz-panel > .label-mono,
.ui-viz-principles > .label-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1rem;
  margin: 0;
  color: rgba(218, 235, 255, 0.7);
  font-size: clamp(0.58rem, 0.62vw, 0.72rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.ui-viz-panel > .label-mono::before,
.ui-viz-panel > .label-mono::after,
.ui-viz-principles > .label-mono::before,
.ui-viz-principles > .label-mono::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  min-width: clamp(1.8rem, 8vw, 8rem);
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.16));
}

.ui-viz-panel > .label-mono::before,
.ui-viz-principles > .label-mono::before {
  margin-right: clamp(0.75rem, 1.2vw, 1rem);
}

.ui-viz-panel > .label-mono::after,
.ui-viz-principles > .label-mono::after {
  margin-left: clamp(0.75rem, 1.2vw, 1rem);
  transform: scaleX(-1);
}

.ui-viz-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  display: block;
  flex: 1 1 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 9, 24, 0.28));
}

/* Donut */
.ui-donut-wrap {
  display: grid;
  grid-template-columns: minmax(8rem, 0.9fr) minmax(9rem, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}
.ui-donut-svg {
  width: min(100%, 15.5rem);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 32px rgba(0, 8, 24, 0.32));
}
.ui-donut-legend {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.8vh, 0.55rem);
  min-width: 0;
}
.ui-donut-key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  line-height: 1.15;
  color: rgba(218, 235, 255, 0.62);
}
.ui-donut-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Radar */
.ui-radar-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: clamp(0.35rem, 0.8vh, 0.55rem);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}
.ui-radar-svg {
  width: min(100%, 18rem);
  height: 100%;
  min-height: 0;
  filter: drop-shadow(0 18px 34px rgba(28, 107, 197, 0.18));
}
.ui-radar-legend {
  display: flex;
  gap: 1rem;
}

/* Viz Principles */
.ui-viz-principles {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1.55vw, 1.25rem);
}
.ui-viz-principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.55rem, 0.95vw, 0.8rem);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(0.6rem, 1vh, 0.8rem);
}
.ui-viz-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(0.55rem, 0.8vw, 0.7rem);
  min-width: 0;
  padding: clamp(0.65rem, 1vw, 0.85rem);
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 18, 42, 0.44);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 0.72vw, 0.74rem);
  color: rgba(232, 243, 255, 0.66);
  line-height: 1.42;
}
.ui-viz-p-num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(139, 203, 255, 0.16);
  border-radius: 6px;
  background: rgba(38, 105, 186, 0.12);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1;
  color: rgba(139, 203, 255, 0.55);
}


/* ============================================================
   UI / DIGITAL — Section 06: Interaction Patterns
   ============================================================ */

.ui-interaction-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 5vw 8vh;
}

.ui-interact-panel {
  padding: 1.75rem;
}

/* Component States */
.ui-hover-demos {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.ui-hover-demo-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ui-hover-demo-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(139, 203, 255, 0.35);
  min-width: 4.5rem;
  letter-spacing: 0.06em;
}
.ui-hover-elem {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 203, 255, 0.15);
  background: rgba(12, 33, 63, 0.4);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all 200ms ease;
}
.ui-hover-elem--hover {
  border-color: rgba(38, 105, 186, 0.5);
  background: rgba(12, 33, 63, 0.6);
  color: rgba(255, 255, 255, 0.8);
}
.ui-hover-elem--active {
  border-color: rgba(38, 105, 186, 0.85);
  background: rgba(38, 105, 186, 0.15);
  color: rgba(255, 255, 255, 0.95);
  animation: glow-pulse 3s ease-in-out infinite;
}
.ui-hover-elem--focus {
  border-color: rgba(38, 105, 186, 0.8);
  outline: 2px solid rgba(38, 105, 186, 0.3);
  outline-offset: 2px;
  color: rgba(255, 255, 255, 0.85);
}
.ui-hover-elem--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Skeleton */
.ui-skeleton-demos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.ui-skel-card {
  background: rgba(12, 33, 63, 0.4);
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}
.ui-skel-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.ui-skel-block {
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(2, 56, 119, 0.35) 0%, rgba(38, 105, 186, 0.25) 50%, rgba(2, 56, 119, 0.35) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s linear infinite;
  height: 12px;
  flex: 1;
}
.ui-skel-block--sm { width: 40%; flex: none; }
.ui-skel-block--xs { width: 20%; flex: none; }
.ui-skel-block--lg { height: 10px; width: 88%; }
.ui-skeleton-rule {}
.ui-skel-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(139, 203, 255, 0.45);
  line-height: 1.6;
  margin: 0;
}

@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Timing Table */
.ui-timing-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ui-timing-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ui-timing-name {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(139, 203, 255, 0.55);
  min-width: 4rem;
}
.ui-timing-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.ui-timing-bar {
  height: 100%;
  background: rgba(38, 105, 186, 0.5);
  border-radius: 999px;
}
.ui-timing-val {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  min-width: 2.75rem;
  text-align: right;
}
.ui-timing-use {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: rgba(139, 203, 255, 0.35);
  min-width: 7rem;
}
.ui-timing-easing {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(139, 203, 255, 0.08);
}
.ui-easing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: rgba(139, 203, 255, 0.5);
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.05);
}
.ui-easing-val {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Micro-interaction list */
.ui-micro-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ui-micro-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.ui-micro-item--dont {
  color: rgba(255, 200, 200, 0.5);
}
.ui-micro-check {
  color: rgba(34, 197, 94, 0.7);
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.ui-micro-x {
  color: rgba(239, 68, 68, 0.6);
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}


/* ============================================================
   Responsive overrides for all UI/Digital sections
   ============================================================ */

@media (max-width: 1024px) {
  .ui-comp-bento,
  .ui-btns-layout,
  .ui-dataviz-bento,
  .ui-interaction-bento {
    grid-template-columns: 1fr;
  }
  .ui-dashboard-layout {
    grid-template-rows: auto auto;
  }
  .ui-dash-status-strip,
  .ui-dash-principles-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ui-dash-status-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ui-dash-principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #sys-ui-cards {
    height: auto;
    overflow: visible;
  }
  .ui-cards-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 23.5rem;
    height: auto;
    overflow: visible;
  }
  .ui-card-example--glass,
  .ui-card-example--status,
  .ui-card-example--alert,
  .ui-card-example--metric,
  .ui-card-example--nav,
  .ui-card-example--notes { grid-column: auto; }
  .ui-demo-card-footer {
    gap: 0.4rem;
    font-size: 0.625rem;
  }
  .ui-demo-card-footer > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-demo-card-footer > span:last-child {
    text-align: right;
  }
  .ui-dash-metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .ui-dash-content-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ui-dashboard-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ui-dash-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .ui-dash-nav-items {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }
  .ui-dash-nav-right {
    width: 100%;
    justify-content: space-between;
  }
  .ui-dash-body {
    display: block;
  }
  .ui-dash-main {
    padding: 0.85rem;
  }
  .ui-dash-status-cells,
  .ui-dash-metric-row,
  .ui-dash-principle-list {
    grid-template-columns: 1fr;
  }
  .ui-dash-sidebar-card {
    display: none;
  }
  .ui-cards-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #sys-ui-cards .oversize-header {
    padding: 1.35rem 1rem 1rem;
  }
  .ui-card-example--glass,
  .ui-card-example--status,
  .ui-card-example--alert,
  .ui-card-example--metric,
  .ui-card-example--nav,
  .ui-card-example--notes {
    grid-column: 1;
  }
  .ui-card-example {
    min-height: 24.5rem;
  }
  .ui-dash-body {
    flex-direction: column;
  }
  .ui-dash-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 0.5px solid rgba(139, 203, 255, 0.08);
    overflow-x: auto;
    padding: 0.5rem;
  }
  .ui-dash-sb-bottom {
    margin-top: 0;
    margin-left: auto;
  }
  .ui-token-sections {
    flex-direction: column;
  }
  .ui-viz-principle-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   MOTION & ANIMATION
   ═══════════════════════════════════════════════════ */

/* — 01 Principles — */
.motion-principles-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(12rem, 0.86fr) minmax(13rem, 1fr) minmax(8.5rem, 0.52fr);
  gap: clamp(0.9rem, 1.15vw, 1.25rem);
  padding: clamp(1.4rem, 2vw, 2rem);
}

.motion-principle-hero {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(14rem, 0.62fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: start;
  align-content: center;
  column-gap: clamp(1.1rem, 2vw, 2rem);
  row-gap: clamp(0.55rem, 0.85vw, 0.8rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(38, 105, 186, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(18, 50, 88, 0.55), rgba(3, 14, 31, 0.34));
  border-color: rgba(139, 203, 255, 0.24);
}

.motion-principles-bento .motion-principle-hero.identity-card .label-mono {
  text-align: left;
  align-self: flex-start;
  width: auto;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(139, 203, 255, 0.14);
  border-radius: 4px;
  background: rgba(3, 17, 38, 0.4);
  color: rgba(190, 222, 255, 0.72);
}

.motion-principle-hero .label-mono,
.motion-philosophy-statement,
.motion-philosophy-body {
  grid-column: 1;
}

.motion-philosophy-statement {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(2.25rem, 3.65vw, 3.45rem);
  text-transform: uppercase;
  line-height: 0.96;
  color: rgba(234, 244, 255, 0.9);
  max-width: 23ch;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(139, 203, 255, 0.1);
}

.motion-accent {
  color: var(--azure);
  -webkit-text-fill-color: initial;
}

.motion-philosophy-body {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 0.82vw, 1rem);
  line-height: 1.62;
  color: rgba(213, 229, 249, 0.78);
  max-width: 58ch;
}

.motion-system-diagram {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(38, 105, 186, 0.16), transparent 58%),
    rgba(2, 13, 31, 0.42);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 26px rgba(38, 105, 186, 0.12);
}

.motion-system-diagram::before {
  content: '';
  position: absolute;
  inset: 18% 14%;
  border: 1px solid rgba(139, 203, 255, 0.16);
  border-radius: 999px;
  box-shadow:
    0 0 0 18px rgba(38, 105, 186, 0.045),
    inset 0 0 18px rgba(139, 203, 255, 0.08);
}

.motion-system-diagram::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.48), transparent);
}

.motion-system-line {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.36), transparent);
}

.motion-system-line--one { top: 30%; }
.motion-system-line--two { top: 50%; }
.motion-system-line--three { top: 70%; }

.motion-system-node {
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid rgba(139, 203, 255, 0.8);
  border-radius: 999px;
  background: rgba(4, 20, 43, 0.9);
  box-shadow: 0 0 16px rgba(139, 203, 255, 0.34);
}

.motion-system-node--one { left: 22%; top: 27%; }
.motion-system-node--two { right: 26%; top: 47%; }
.motion-system-node--three { left: 42%; top: 67%; }

.motion-principle-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto minmax(3.8rem, 1fr);
  grid-template-areas:
    "num icon"
    "name name"
    "desc desc"
    "visual visual";
  align-content: stretch;
  align-items: start;
  gap: clamp(0.52rem, 0.82vw, 0.78rem);
  position: relative;
  padding: clamp(1.2rem, 1.65vw, 1.7rem);
  background:
    radial-gradient(circle at 76% 100%, rgba(38, 105, 186, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(16, 43, 78, 0.46), rgba(3, 14, 31, 0.34));
  border-color: rgba(139, 203, 255, 0.18);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-principle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 203, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(139, 200, 255, 0.1),
    0 24px 54px rgba(0, 8, 24, 0.36),
    0 0 28px rgba(38, 105, 186, 0.1);
}

.motion-principle-num {
  grid-area: num;
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.52vw, 0.72rem);
  letter-spacing: 0.18em;
  color: rgba(139, 203, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.motion-principle-icon {
  grid-area: icon;
  justify-self: end;
  width: clamp(2.55rem, 2.7vw, 3rem);
  height: clamp(2.55rem, 2.7vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 203, 255, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(139, 203, 255, 0.12), rgba(38, 105, 186, 0.08)),
    rgba(3, 17, 38, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(38, 105, 186, 0.12);
}

.motion-principle-name {
  grid-area: name;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.52vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(234, 244, 255, 0.92);
}

.motion-principle-desc {
  grid-area: desc;
  font-family: var(--sans);
  font-size: clamp(0.82rem, 0.76vw, 0.94rem);
  line-height: 1.58;
  color: rgba(190, 216, 246, 0.76);
  max-width: 62ch;
}

.motion-principle-visual {
  position: relative;
  grid-area: visual;
  align-self: stretch;
  min-height: clamp(4.4rem, 9vh, 8rem);
  overflow: hidden;
  border-top: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.045) 1px, transparent 1px),
    rgba(2, 13, 31, 0.2);
  background-size: 24px 24px, 24px 24px, auto;
  margin-top: clamp(0.2rem, 0.5vw, 0.45rem);
}

.motion-principle-visual::before,
.motion-principle-visual::after,
.motion-principle-visual span {
  content: '';
  position: absolute;
  display: block;
}

.motion-principle-visual--purposeful::before {
  inset: 18% auto auto 12%;
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid rgba(139, 203, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 0 1rem rgba(38, 105, 186, 0.055);
}

.motion-principle-visual--purposeful::after {
  left: 31%;
  right: 9%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.55), rgba(139, 203, 255, 0.08));
}

.motion-principle-visual--purposeful span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(139, 203, 255, 0.78);
  box-shadow: 0 0 14px rgba(139, 203, 255, 0.44);
}

.motion-principle-visual--purposeful span:nth-child(1) { left: 18%; top: 44%; }
.motion-principle-visual--purposeful span:nth-child(2) { left: 58%; top: 44%; opacity: 0.72; }
.motion-principle-visual--purposeful span:nth-child(3) { right: 11%; top: 44%; opacity: 0.36; }

.motion-principle-visual--directional::before {
  left: 10%;
  right: 10%;
  top: 48%;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.08), rgba(139, 203, 255, 0.6));
}

.motion-principle-visual--directional::after {
  right: 10%;
  top: calc(48% - 0.32rem);
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid rgba(139, 203, 255, 0.72);
  border-right: 2px solid rgba(139, 203, 255, 0.72);
  transform: rotate(45deg);
}

.motion-principle-visual--directional span {
  left: 10%;
  height: 1px;
  background: rgba(139, 203, 255, 0.18);
}

.motion-principle-visual--directional span:nth-child(1) { top: 28%; width: 38%; }
.motion-principle-visual--directional span:nth-child(2) { top: 66%; width: 64%; }
.motion-principle-visual--directional span:nth-child(3) { top: 82%; width: 24%; opacity: 0.55; }

.motion-principle-visual--decelerated::before {
  left: 11%;
  right: 11%;
  bottom: 22%;
  height: 58%;
  border-left: 1px solid rgba(139, 203, 255, 0.16);
  border-bottom: 1px solid rgba(139, 203, 255, 0.16);
  border-radius: 0 0 0 4px;
}

.motion-principle-visual--decelerated::after {
  left: 14%;
  right: 12%;
  bottom: 25%;
  height: 54%;
  border-bottom: 2px solid rgba(139, 203, 255, 0.55);
  border-right: 2px solid rgba(139, 203, 255, 0.55);
  border-radius: 0 0 70% 0;
  transform: skewX(-18deg);
  transform-origin: bottom left;
}

.motion-principle-visual--decelerated span {
  bottom: 21%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(139, 203, 255, 0.68);
}

.motion-principle-visual--decelerated span:nth-child(1) { left: 18%; opacity: 0.95; }
.motion-principle-visual--decelerated span:nth-child(2) { left: 38%; opacity: 0.72; }
.motion-principle-visual--decelerated span:nth-child(3) { left: 56%; opacity: 0.48; }
.motion-principle-visual--decelerated span:nth-child(4) { left: 71%; opacity: 0.26; }

.motion-principle-visual--systematic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  padding: 1rem 0.85rem 0.85rem;
}

.motion-principle-visual--systematic::before {
  left: 8%;
  right: 8%;
  top: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.28), transparent);
}

.motion-principle-visual--systematic span {
  position: relative;
  height: var(--motion-step, 42%);
  min-height: 1.2rem;
  border: 1px solid rgba(139, 203, 255, 0.22);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(139, 203, 255, 0.18), rgba(38, 105, 186, 0.05));
}

.motion-principle-visual--systematic span:nth-child(1) { --motion-step: 36%; opacity: 0.54; }
.motion-principle-visual--systematic span:nth-child(2) { --motion-step: 52%; opacity: 0.72; }
.motion-principle-visual--systematic span:nth-child(3) { --motion-step: 68%; opacity: 0.9; }
.motion-principle-visual--systematic span:nth-child(4) { --motion-step: 84%; }

.motion-principles-bento > .motion-principle-card--restrained {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(2.2rem, auto) minmax(3.2rem, auto) minmax(0, 0.9fr) minmax(16rem, 1fr);
  grid-template-areas:
    "num icon name visual"
    "num icon desc visual";
  align-items: center;
  align-content: center;
  column-gap: clamp(0.8rem, 1.2vw, 1.2rem);
  row-gap: 0.25rem;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(38, 105, 186, 0.18), transparent 62%),
    radial-gradient(circle at 94% 50%, rgba(139, 203, 255, 0.16), transparent 28%),
    rgba(3, 17, 38, 0.36);
}

.motion-principles-bento > .motion-principle-card--restrained .motion-principle-num {
  grid-area: num;
  align-self: center;
}

.motion-principles-bento > .motion-principle-card--restrained .motion-principle-icon {
  grid-area: icon;
}

.motion-principles-bento > .motion-principle-card--restrained .motion-principle-name {
  grid-area: name;
}

.motion-principles-bento > .motion-principle-card--restrained .motion-principle-desc {
  grid-area: desc;
  max-width: 78ch;
}

.motion-principle-visual--restrained {
  min-height: clamp(4rem, 7vh, 6.2rem);
  margin-top: 0;
  border: 1px solid rgba(139, 203, 255, 0.1);
  border-radius: 10px;
}

.motion-principle-visual--restrained::before {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.42), rgba(139, 203, 255, 0.28), rgba(239, 68, 68, 0.34));
}

.motion-principle-visual--restrained::after {
  left: 50%;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(139, 203, 255, 0.18);
}

.motion-principle-visual--restrained span {
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
}

.motion-principle-visual--restrained span:nth-child(1) {
  left: 11%;
  width: 24%;
  height: 0.38rem;
  background: rgba(34, 197, 94, 0.34);
}

.motion-principle-visual--restrained span:nth-child(2) {
  left: 42%;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(139, 203, 255, 0.76);
  background: rgba(2, 13, 31, 0.8);
  box-shadow: 0 0 14px rgba(139, 203, 255, 0.35);
}

.motion-principle-visual--restrained span:nth-child(3) {
  right: 11%;
  width: 18%;
  height: 0.28rem;
  background: rgba(239, 68, 68, 0.18);
}

/* ── Motion Principles: Enhancement Layer ────────────────────────── */

/* Hero card — stronger presence */
.motion-principle-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(50, 120, 220, 0.32), transparent 38%),
    radial-gradient(circle at 18% 92%, rgba(38, 85, 165, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(18, 50, 96, 0.62), rgba(3, 14, 31, 0.42));
  border-color: rgba(139, 203, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(139, 203, 255, 0.06),
    0 2px 40px rgba(0, 10, 30, 0.5);
}

/* Hero statement — slightly tighter */
.motion-philosophy-statement {
  font-size: clamp(2.4rem, 3.8vw, 3.65rem);
  line-height: 0.93;
  letter-spacing: -0.01em;
}

/* Hero diagram — scanning radar animation */
@keyframes mp-scan-sweep {
  0%   { transform: translateY(-100%); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.6; }
  100% { transform: translateY(300%); opacity: 0; }
}
@keyframes mp-node-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(139,203,255,0.32), 0 0 0 0 rgba(139,203,255,0.28); }
  50%       { box-shadow: 0 0 22px rgba(139,203,255,0.65), 0 0 0 6px rgba(139,203,255,0.06); }
}
@keyframes mp-radar-ring {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0.72; }
  100% { transform: translate(-50%, -50%) scale(1.7);  opacity: 0; }
}
@keyframes mp-line-draw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.motion-system-diagram {
  border: 1px solid rgba(139,203,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 0 40px rgba(38,105,186,0.16),
    0 0 0 1px rgba(139,203,255,0.04);
}

/* Scan sweep line */
.motion-system-diagram::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(139,203,255,0.65) 40%, rgba(139,203,255,0.85) 50%, rgba(139,203,255,0.65) 60%, transparent 95%);
  box-shadow: 0 0 12px rgba(139,203,255,0.5), 0 4px 20px rgba(139,203,255,0.12);
  top: 0;
  animation: mp-scan-sweep 4.2s cubic-bezier(0.25, 0, 0.75, 1) infinite;
  pointer-events: none;
}

.motion-system-node {
  animation: mp-node-pulse 2.8s ease-in-out infinite;
}
.motion-system-node--two { animation-delay: 0.9s; }
.motion-system-node--three { animation-delay: 1.8s; }

/* Radar ring emanating from node-one */
.motion-system-node--one::after {
  content: '';
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  left: 50%; top: 50%;
  border: 1px solid rgba(139,203,255,0.55);
  border-radius: 50%;
  animation: mp-radar-ring 2.8s ease-out infinite;
  animation-delay: 0.4s;
}

/* ── Principle cards: corner bracket decoration ─── */
.motion-principle-card::before {
  content: '';
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  width: 0.85rem; height: 0.85rem;
  border-top: 1px solid rgba(139,203,255,0.3);
  border-left: 1px solid rgba(139,203,255,0.3);
  pointer-events: none;
}
.motion-principle-card::after {
  content: '';
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  width: 0.85rem; height: 0.85rem;
  border-bottom: 1px solid rgba(139,203,255,0.18);
  border-right: 1px solid rgba(139,203,255,0.18);
  pointer-events: none;
}

/* Restore the last-child visual (restrained) overrides since we used ::before/::after on card */
.motion-principles-bento > .motion-principle-card--restrained::before,
.motion-principles-bento > .motion-principle-card--restrained::after {
  display: none;
}

.motion-principle-card:hover {
  border-color: rgba(139,203,255,0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(139,200,255,0.09),
    0 28px 60px rgba(0,8,24,0.42),
    0 0 36px rgba(38,105,186,0.14);
}

/* Principle num — stronger */
.motion-principle-num {
  font-size: clamp(0.68rem, 0.56vw, 0.76rem);
  color: rgba(139,203,255,0.72);
  letter-spacing: 0.22em;
}

/* Principle name — slightly bolder presence */
.motion-principle-name {
  font-size: clamp(1.45rem, 1.62vw, 1.82rem);
  color: rgba(234,244,255,0.96);
  letter-spacing: 0.01em;
}

/* Icon box — stronger glow */
.motion-principle-icon {
  border-color: rgba(139,203,255,0.32);
  background:
    linear-gradient(145deg, rgba(139,203,255,0.15), rgba(38,105,186,0.10)),
    rgba(3,17,38,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 22px rgba(38,105,186,0.16);
}

/* ── PURPOSEFUL visual: beacon pulse ──────────────── */
@keyframes mp-purposeful-beacon {
  0%   { transform: scale(1);   opacity: 0.9; box-shadow: 0 0 10px rgba(139,203,255,0.5); }
  60%  { transform: scale(1.5); opacity: 0;   box-shadow: 0 0 0   rgba(139,203,255,0); }
  100% { transform: scale(1);   opacity: 0.9; box-shadow: 0 0 10px rgba(139,203,255,0.5); }
}
@keyframes mp-purposeful-line {
  0%   { transform-origin: left; transform: scaleX(0); opacity: 0; }
  20%  { transform-origin: left; transform: scaleX(1); opacity: 1; }
  80%  { transform-origin: left; transform: scaleX(1); opacity: 1; }
  100% { transform-origin: right; transform: scaleX(0); opacity: 0; }
}
.motion-principle-visual--purposeful span:nth-child(1) {
  animation: mp-purposeful-beacon 2.4s ease-in-out infinite;
}
.motion-principle-visual--purposeful span:nth-child(2) {
  animation: mp-purposeful-beacon 2.4s ease-in-out infinite 0.6s;
}
.motion-principle-visual--purposeful span:nth-child(3) {
  animation: mp-purposeful-beacon 2.4s ease-in-out infinite 1.2s;
}
.motion-principle-visual--purposeful::after {
  animation: mp-purposeful-line 2.4s ease-in-out infinite;
}

/* ── DIRECTIONAL visual: sliding arrow ────────────── */
@keyframes mp-directional-arrow {
  0%   { left: -10%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
@keyframes mp-directional-lines {
  0%   { transform: scaleX(0); transform-origin: left; opacity: 0; }
  30%  { transform: scaleX(1); opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0.2; }
}
.motion-principle-visual--directional::before {
  animation: mp-directional-arrow 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.motion-principle-visual--directional span:nth-child(1) { animation: mp-directional-lines 2.8s ease-out infinite 0.2s; }
.motion-principle-visual--directional span:nth-child(2) { animation: mp-directional-lines 2.8s ease-out infinite 0.4s; }
.motion-principle-visual--directional span:nth-child(3) { animation: mp-directional-lines 2.8s ease-out infinite 0.6s; }

/* ── DECELERATED visual: easing curve ────────────── */
@keyframes mp-decelerated-dot {
  0%   { left: 9%;  bottom: 24%; opacity: 1; }
  100% { left: 75%; bottom: 22%; opacity: 0.9; }
}
.motion-principle-visual--decelerated span:nth-child(1) {
  position: absolute;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: rgba(139,203,255,0.92);
  box-shadow: 0 0 14px rgba(139,203,255,0.6), 0 0 28px rgba(139,203,255,0.2);
  animation: mp-decelerated-dot 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}
.motion-principle-visual--decelerated span:nth-child(2),
.motion-principle-visual--decelerated span:nth-child(3),
.motion-principle-visual--decelerated span:nth-child(4) {
  display: none;
}

/* ── SYSTEMATIC visual: stagger bars ────────────── */
@keyframes mp-systematic-bar {
  0%, 15%  { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  45%, 75% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  90%, 100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
.motion-principle-visual--systematic span:nth-child(1) { animation: mp-systematic-bar 3s ease-in-out infinite 0s; }
.motion-principle-visual--systematic span:nth-child(2) { animation: mp-systematic-bar 3s ease-in-out infinite 0.12s; }
.motion-principle-visual--systematic span:nth-child(3) { animation: mp-systematic-bar 3s ease-in-out infinite 0.24s; }
.motion-principle-visual--systematic span:nth-child(4) { animation: mp-systematic-bar 3s ease-in-out infinite 0.36s; }

.motion-principle-visual--systematic span {
  border-color: rgba(139,203,255,0.3);
  background: linear-gradient(180deg, rgba(139,203,255,0.22), rgba(38,105,186,0.08));
}

/* ── RESTRAINED visual: subtle oscillator ────────── */
@keyframes mp-restrained-thumb {
  0%   { left: 42%; }
  40%  { left: 44%; }
  60%  { left: 44%; }
  100% { left: 42%; }
}
.motion-principle-visual--restrained span:nth-child(2) {
  animation: mp-restrained-thumb 3.6s ease-in-out infinite;
}

/* Restrained bottom bar gets a gradient glow */
.motion-principle-visual--restrained {
  border-color: rgba(139,203,255,0.14);
  background:
    linear-gradient(rgba(139,203,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,203,255,0.04) 1px, transparent 1px),
    rgba(2,13,31,0.25);
  background-size: 24px 24px, 24px 24px, auto;
}

/* ── Respect prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .motion-system-diagram::after,
  .motion-system-node,
  .motion-system-node--one::after,
  .motion-principle-visual--purposeful span,
  .motion-principle-visual--purposeful::after,
  .motion-principle-visual--directional::before,
  .motion-principle-visual--directional span,
  .motion-principle-visual--decelerated span,
  .motion-principle-visual--systematic span,
  .motion-principle-visual--restrained span:nth-child(2) {
    animation: none;
  }
}

/* — 02 Timing System — */
.motion-timing-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  padding: 2rem;
}

.motion-timing-scale {
  background: rgba(6, 15, 42, 0.55);
  border: 1px solid rgba(139, 203, 255, 0.15);
  border-radius: var(--uniform-radius);
  padding: 2rem;
}

.motion-timing-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.motion-timing-row {
  display: grid;
  grid-template-columns: 160px 1fr 64px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.07);
}

.motion-timing-row--default .motion-timing-token {
  color: rgba(139, 203, 255, 0.9);
}

.motion-timing-token {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(139, 203, 255, 0.55);
  white-space: nowrap;
}

.motion-timing-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.motion-timing-bar-fill {
  height: 100%;
  background: rgba(139, 203, 255, 0.45);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-timing-bar-fill--accent {
  background: var(--azure);
  box-shadow: 0 0 8px rgba(38, 105, 186, 0.6);
}

.motion-timing-ms {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(234, 244, 255, 0.85);
  white-space: nowrap;
  text-align: right;
}

.motion-timing-use {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(180, 210, 245, 0.6);
}

/* Stagger panel */
.motion-stagger-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.motion-stagger-demo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.stagger-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  background: rgba(38, 105, 186, 0.08);
  border: 1px solid rgba(139, 203, 255, 0.15);
  border-radius: 8px;
  color: rgba(139, 203, 255, 0.4);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease,
              border-color 0.3s ease;
}

.stagger-item.stagger-fired {
  opacity: 1;
  transform: translateX(0);
  color: rgba(234, 244, 255, 0.88);
  border-color: rgba(139, 203, 255, 0.4);
}

.motion-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.7);
  border: 1px solid rgba(139, 203, 255, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  background: rgba(38, 105, 186, 0.08);
  cursor: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  align-self: flex-start;
}

.motion-replay-btn:hover {
  color: rgba(139, 203, 255, 1);
  border-color: rgba(139, 203, 255, 0.6);
  background: rgba(38, 105, 186, 0.18);
}

.motion-stagger-rules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 0.5px solid rgba(139, 203, 255, 0.12);
  padding-top: 1rem;
}

.motion-stagger-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.motion-rule-key {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
}

.motion-rule-val {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(234, 244, 255, 0.75);
}

/* — 03 Easing Curves — */
.motion-easing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem;
  padding-bottom: 0;
}

.motion-easing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.motion-easing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.motion-easing-name {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(234, 244, 255, 0.92);
}

.motion-easing-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(139, 203, 255, 0.1);
  border: 1px solid rgba(139, 203, 255, 0.2);
  color: rgba(139, 203, 255, 0.7);
  white-space: nowrap;
}

.motion-easing-tag--primary {
  background: rgba(38, 105, 186, 0.25);
  border-color: rgba(38, 105, 186, 0.6);
  color: rgba(139, 203, 255, 1);
}

.motion-curve-svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: rgba(6, 15, 42, 0.5);
  border: 1px solid rgba(139, 203, 255, 0.1);
}

.motion-easing-code {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(139, 203, 255, 0.75);
  background: rgba(38, 105, 186, 0.1);
  padding: 5px 8px;
  border-radius: 5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motion-easing-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(180, 210, 245, 0.65);
  flex: 1;
}

.motion-easing-uses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 0.5px solid rgba(139, 203, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: auto;
}

.motion-easing-uses li {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.5);
  padding-left: 0.75rem;
  position: relative;
}

.motion-easing-uses li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(139, 203, 255, 0.3);
}

.motion-easing-rule {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.25rem 2rem 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--uniform-radius);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 200, 200, 0.8);
}

.motion-rule-icon {
  font-size: 1.5rem;
  color: rgba(239, 68, 68, 0.7);
  flex-shrink: 0;
  margin-top: 2px;
}

.motion-easing-rule code {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

/* — 04 Transition Styles — */
.motion-transitions-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem;
}

.motion-transition-card {
  background: rgba(6, 15, 42, 0.55);
  border: 1px solid rgba(139, 203, 255, 0.15);
  border-radius: var(--uniform-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.motion-transition-demo {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 28, 0.7);
  border-bottom: 1px solid rgba(139, 203, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.motion-demo-object {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* Fade demo */
.motion-demo--fade .motion-demo-object { opacity: 0.2; transition: none; }
.motion-demo--fade--active .motion-demo-object {
  opacity: 1;
  transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1);
}

/* Slide demo */
.motion-demo--slide .motion-demo-object { opacity: 0.15; transform: translateY(20px); transition: none; }
.motion-demo--slide--active .motion-demo-object {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clip demo */
.motion-demo--clip {
  overflow: hidden;
}
.motion-demo--clip .motion-demo-object {
  clip-path: inset(0 0 100% 0);
  transition: none;
}
.motion-demo--clip--active .motion-demo-object {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 750ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scan demo */
.motion-demo-scanline {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 3;
}
.motion-demo-scanline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(139, 203, 255, 0.55);
  box-shadow: 0 0 12px rgba(139, 203, 255, 0.4);
  top: -4px;
  opacity: 0;
}
.motion-demo--scan--active .motion-demo-scanline::after {
  opacity: 1;
  animation: demo-scan-sweep 1.8s linear;
}
@keyframes demo-scan-sweep {
  0%   { top: -4px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: calc(100% + 4px); opacity: 0; }
}

.motion-demo-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.6);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(139, 203, 255, 0.08);
  background: rgba(38, 105, 186, 0.06);
  transition: color 0.15s, background 0.15s;
  cursor: none;
  width: 100%;
  justify-content: center;
}

.motion-demo-trigger:hover {
  color: rgba(139, 203, 255, 1);
  background: rgba(38, 105, 186, 0.15);
}

.motion-transition-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.motion-transition-name {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 255, 0.9);
}

.motion-transition-spec {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(139, 203, 255, 0.55);
  text-transform: uppercase;
}

.motion-transition-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(180, 210, 245, 0.65);
  margin-top: 0.25rem;
}

/* — 05 Micro Interactions — */
.motion-micro-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
}

.motion-micro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.motion-micro-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.motion-micro-card--dont {
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.motion-micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.motion-micro-badge--do {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgba(34, 197, 94, 0.85);
}

.motion-micro-badge--dont {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(239, 68, 68, 0.75);
}

.motion-micro-name {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 255, 0.9);
}

.motion-micro-demo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 28, 0.6);
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Glow pulse demo */
.micro-demo-glow-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(38, 105, 186, 0.5);
  box-shadow: 0 0 12px rgba(38, 105, 186, 0.25);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Blink pip demo */
.micro-demo-blink {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(234, 244, 255, 0.7);
}

.micro-blink-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78d6ff;
  box-shadow: 0 0 7px rgba(120, 214, 255, 0.8);
  animation: blink 1.4s ease-in-out infinite;
}

/* Ticker demo */
.micro-demo-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.micro-demo-ticker-track {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.7);
  animation: ticker 12s linear infinite;
  white-space: nowrap;
}

/* Reticle demo */
.micro-demo-reticle {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.micro-reticle-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(38, 105, 186, 0.8);
  transform: translate(-50%, -50%);
}

.micro-reticle-ring--outer {
  width: 44px; height: 44px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spinCW 6s linear infinite;
}

.micro-reticle-ring--inner {
  width: 28px; height: 28px;
  border: 1px dashed rgba(38, 105, 186, 0.5);
  animation: spinCCW 8s linear infinite;
}

.micro-reticle-dot {
  width: 5px; height: 5px;
  background: rgba(38, 105, 186, 0.9);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* Bounce don't demo */
.micro-demo-bounce-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.micro-demo-bounce-block {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--condensed);
  font-weight: 900;
  font-size: 0.9rem;
  color: rgba(239, 68, 68, 0.7);
  animation: bounce-prohibited 2s ease-in-out infinite;
}

@keyframes bounce-prohibited {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-18px); }
  55% { transform: translateY(-14px); }
  65% { transform: translateY(-18px); }
  72% { transform: translateY(-10px); }
  80% { transform: translateY(-14px); }
  88% { transform: translateY(-6px); }
  94% { transform: translateY(-8px); }
}

/* Loader X demo */
.micro-demo-loader-x {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 1.5rem;
}

.micro-loader-x-bar {
  width: 100%;
  height: 3px;
  background: rgba(139, 203, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.micro-loader-x-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 40%;
  height: 100%;
  background: rgba(38, 105, 186, 0.6);
  border-radius: 2px;
}

.micro-loader-x-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 68, 68, 0.6);
  text-align: center;
  line-height: 1.5;
}

.motion-micro-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(180, 210, 245, 0.65);
  flex: 1;
}

.motion-micro-code {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(139, 203, 255, 0.6);
  background: rgba(38, 105, 186, 0.08);
  border: 1px solid rgba(139, 203, 255, 0.1);
  padding: 5px 8px;
  border-radius: 5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reduced motion rule */
.motion-reduced-rule {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.motion-reduced-icon {
  font-size: 1.75rem;
  color: rgba(139, 203, 255, 0.6);
  flex-shrink: 0;
  margin-top: 2px;
}

.motion-reduced-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.motion-reduced-body p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(200, 220, 245, 0.75);
}

.motion-reduced-body code {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(139, 203, 255, 0.65);
  background: rgba(38, 105, 186, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 1100px) {
  .motion-principles-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(12rem, auto);
  }
  .motion-principle-hero {
    grid-column: 1 / -1;
  }
  .motion-easing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .motion-transitions-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .motion-timing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .motion-principles-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(12rem, auto);
  }
  .motion-principle-hero {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .motion-system-diagram {
    grid-column: 1;
    grid-row: auto;
    min-height: 9rem;
  }
  .motion-principles-bento > .motion-principle-card--restrained {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "num"
      "icon"
      "name"
      "desc"
      "visual";
    align-items: start;
  }
  .motion-easing-grid {
    grid-template-columns: 1fr;
  }
  .motion-transitions-layout {
    grid-template-columns: 1fr;
  }
  .motion-micro-grid {
    grid-template-columns: 1fr;
  }
  .motion-timing-row {
    grid-template-columns: 120px 1fr 48px;
  }
  .motion-timing-use {
    display: none;
  }
}

/* ── BRAND APPLICATIONS — 09a-09d ── */

/* 01 Presentation Deck */
.app-deck-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(22rem, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.25rem;
}

.app-deck-feature {
  grid-column: 1;
  grid-row: 1;
  padding: 1.5rem;
  overflow: hidden;
  justify-content: center;
}

.app-deck-feature-img-wrap {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  margin: auto 0;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 44% 24%, rgba(139, 203, 255, 0.12), transparent 31%),
    rgba(4, 12, 30, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.app-deck-feature-img-wrap::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0) 100%);
}

.deck-feature-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.app-deck-feature-caption {
  position: absolute;
  z-index: 3;
  left: clamp(1.1rem, 1.35vw, 1.55rem);
  right: clamp(1.1rem, 1.35vw, 1.55rem);
  bottom: clamp(1rem, 1.3vw, 1.45rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.app-deck-feature-caption span {
  font-family: var(--mono);
  font-size: clamp(10px, 0.82vw, 13px);
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(230, 242, 255, 0.88);
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.86),
    0 0 18px rgba(139, 203, 255, 0.24);
}

.app-deck-rules {
  grid-column: 2;
  grid-row: 1;
  padding: 1.5rem clamp(2.25rem, 2.6vw, 3rem) 1.5rem 1.5rem;
  overflow: hidden;
}

.app-rule-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.app-rule-list li {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 1rem;
  padding: 0.56rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.07);
  font-family: var(--sans);
  font-size: clamp(10.5px, 0.68vw, 12px);
  line-height: 1.38;
  color: rgba(219, 235, 255, 0.8);
}

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

.app-rule-list li span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 203, 255, 0.45);
  padding-top: 0.15rem;
  align-self: start;
}

.app-deck-options-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(139, 203, 255, 0.035), rgba(255, 255, 255, 0.006)),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 1.5rem 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-deck-option-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
}

.app-deck-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.deck-thumb-btn {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.34rem;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 203, 255, 0.10), transparent 32%),
    rgba(4, 12, 30, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: block;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.deck-thumb {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.deck-thumb-btn:hover {
  transform: scale(1.035) translateY(-2px);
  border-color: rgba(139, 203, 255, 0.28);
  box-shadow: 0 8px 28px rgba(38, 105, 186, 0.32);
}

.deck-thumb-btn.is-active {
  border-color: rgba(139, 203, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(139, 203, 255, 0.18),
    0 10px 30px rgba(38, 105, 186, 0.34),
    inset 0 0 18px rgba(139, 203, 255, 0.10);
}

.deck-thumb-btn:focus-visible {
  outline: 2px solid rgba(139, 203, 255, 0.78);
  outline-offset: 3px;
}

/* 02 Social Media */
.app-social-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.25rem;
}

.app-social-feature {
  grid-column: 1;
  grid-row: 1;
  padding: 1.5rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.app-social-feature-img-wrap {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: min(100%, 28rem, 46vh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(139, 203, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 44% 24%, rgba(139, 203, 255, 0.12), transparent 31%),
    rgba(4, 12, 30, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.app-social-feature-img-wrap::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0) 100%);
}

.social-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.app-social-feature-caption {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 1.25vw, 1.35rem);
  right: clamp(1rem, 1.25vw, 1.35rem);
  bottom: clamp(0.9rem, 1.1vw, 1.2rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: clamp(9px, 0.72vw, 12px);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 242, 255, 0.9);
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.86),
    0 0 18px rgba(139, 203, 255, 0.24);
}

.app-social-feature-caption span:last-child {
  color: rgba(139, 203, 255, 0.72);
}

.app-social-rules {
  grid-column: 2;
  grid-row: 1;
  padding: 1.5rem clamp(2.25rem, 2.6vw, 3rem) 1.5rem 1.5rem;
  overflow: hidden;
}

.app-social-rules .photo-spec-table {
  margin-top: 1.1rem;
}

.app-social-rules .photo-spec-table td {
  padding: 0.56rem 0;
}

.app-social-rules .photo-spec-table td:first-child {
  width: 30%;
  padding-right: 1rem;
}

.app-social-options-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(139, 203, 255, 0.035), rgba(255, 255, 255, 0.006)),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 1.5rem 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-social-option-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
}

.app-social-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-thumb-btn {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.34rem;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 203, 255, 0.10), transparent 32%),
    rgba(4, 12, 30, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: block;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.social-thumb {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.social-thumb-btn:hover {
  transform: scale(1.035) translateY(-2px);
  border-color: rgba(139, 203, 255, 0.28);
  box-shadow: 0 8px 28px rgba(38, 105, 186, 0.32);
}

.social-thumb-btn.is-active {
  border-color: rgba(139, 203, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(139, 203, 255, 0.18),
    0 10px 30px rgba(38, 105, 186, 0.34),
    inset 0 0 18px rgba(139, 203, 255, 0.10);
}

.social-thumb-btn:focus-visible {
  outline: 2px solid rgba(139, 203, 255, 0.78);
  outline-offset: 3px;
}

/* 03 Merchandise & Cards */
.app-merch-showcase {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(22rem, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.25rem;
}

.app-merch-feature {
  grid-column: 1;
  grid-row: 1;
  padding: 1.5rem;
  overflow: hidden;
}

.app-merch-feature-img-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin-top: 0.9rem;
  padding: clamp(0.85rem, 1.05vw, 1.15rem);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 44% 26%, rgba(139, 203, 255, 0.16), transparent 31%),
    linear-gradient(135deg, rgba(139, 203, 255, 0.045), rgba(2, 56, 119, 0.08)),
    rgba(4, 12, 30, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.merch-feature-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
  background: #f4f5f5;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.app-merch-specs {
  grid-column: 2;
  grid-row: 1;
  padding: 1.5rem clamp(2.35rem, 2.7vw, 3.1rem) 1.5rem 1.5rem;
  overflow: hidden;
}

.app-merch-specs .photo-spec-table {
  margin-top: 1.1rem;
}

.app-merch-specs .photo-spec-table td {
  padding: 0.68rem 0;
}

.app-merch-specs .photo-spec-table td:first-child {
  width: 30%;
  padding-right: 1rem;
}

.app-merch-options-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(139, 203, 255, 0.035), rgba(255, 255, 255, 0.006)),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 1.5rem 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-merch-option-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
}

.app-merch-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.merch-thumb-btn {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.34rem;
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 203, 255, 0.10), transparent 32%),
    rgba(4, 12, 30, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: block;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.merch-thumb {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.merch-thumb-btn:hover {
  transform: scale(1.035) translateY(-2px);
  border-color: rgba(139, 203, 255, 0.28);
  box-shadow: 0 8px 28px rgba(38, 105, 186, 0.32);
}

.merch-thumb-btn.is-active {
  border-color: rgba(139, 203, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(139, 203, 255, 0.18),
    0 10px 30px rgba(38, 105, 186, 0.34),
    inset 0 0 18px rgba(139, 203, 255, 0.10);
}

.merch-thumb-btn:focus-visible {
  outline: 2px solid rgba(139, 203, 255, 0.78);
  outline-offset: 3px;
}

/* 04 Signage & Spatial */
.app-signage-layout {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 1.25rem;
}

.app-signage-img-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.app-signage-rules {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 1.5rem;
}

.signage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-signage-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(12, 33, 63, 0.88);
  color: rgba(139, 203, 255, 0.68);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0.5px solid rgba(139, 203, 255, 0.14);
}

/* Responsive — brand applications */
@media (max-width: 1024px) {
  .app-merch-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .app-merch-feature { grid-column: 1; grid-row: 1; }
  .app-merch-specs { grid-column: 1; grid-row: 2; }
  .app-merch-options-strip { grid-column: 1; grid-row: 3; }
  .app-merch-feature-img-wrap { min-height: 22rem; }
  .app-merch-thumbs { grid-template-columns: repeat(3, 1fr); }

  .app-deck-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .app-deck-feature { grid-column: 1; grid-row: 1; }
  .app-deck-rules { grid-column: 1; grid-row: 2; }
  .app-deck-options-strip { grid-column: 1; grid-row: 3; }
  .app-deck-feature-img-wrap { min-height: 22rem; }
  .app-deck-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-rule-list { grid-template-columns: minmax(0, 1fr); }

  .app-social-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .app-social-feature { grid-column: 1; grid-row: 1; }
  .app-social-rules { grid-column: 1; grid-row: 2; }
  .app-social-options-strip { grid-column: 1; grid-row: 3; }
  .app-social-feature-img-wrap {
    width: min(100%, 28rem);
    height: auto;
    min-height: 0;
  }
  .app-social-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .app-signage-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 700px) {
  .app-deck-layout { grid-template-columns: 1fr; }
  .app-deck-thumbs { grid-template-columns: 1fr; }
  .app-rule-list { grid-template-columns: 1fr; }
  .app-social-layout { grid-template-columns: 1fr; }
  .app-social-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-merch-thumbs { grid-template-columns: repeat(2, 1fr); }
  .app-deck-feature,
  .app-deck-rules,
  .app-deck-options-strip,
  .app-social-feature,
  .app-social-rules,
  .app-social-options-strip,
  .app-merch-feature,
  .app-merch-specs,
  .app-merch-options-strip { padding: 1rem; }
  .app-deck-feature-img-wrap { min-height: 17rem; }
  .app-social-feature-img-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .app-merch-feature-img-wrap { min-height: 17rem; }
  .deck-thumb-btn { height: auto; }
  .social-thumb-btn { height: auto; }
  .merch-thumb-btn { height: auto; }
  .app-signage-layout { grid-template-columns: 1fr; }
}

/* ─── 14 CO-BRANDING ─────────────────────────────────────────────────────── */

#sys-cobranding {
  height: auto !important;
  overflow: visible !important;
}

.cobrand-layout {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* ── Head: principle + approval chip ── */
.cobrand-unified-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, auto);
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.09);
}

.cobrand-principle-text {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(219, 235, 255, 0.65);
  margin: 0.6rem 0 0;
  max-width: 62ch;
}

/* Approval chip — self-contained pill */
.cobrand-approval-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border: 0.5px solid rgba(139, 203, 255, 0.18);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(139, 203, 255, 0.05) 0%, rgba(139, 203, 255, 0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.1);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(219, 235, 255, 0.7);
  white-space: nowrap;
  transition: border-color 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

.cobrand-approval-chip:hover {
  border-color: rgba(139, 203, 255, 0.3);
}

.cobrand-approval-chip i {
  font-size: 16px;
  color: rgba(139, 203, 255, 0.6);
  flex-shrink: 0;
}

/* ── Main: lockup (full width) then tenets below ── */
.cobrand-unified-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Tenet row — 3 columns horizontal */
.cobrand-tenet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Tenet cards */
.cobrand-tenet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(219, 235, 255, 0.68);
  padding: 0.85rem 1rem;
  background: linear-gradient(145deg, rgba(139, 203, 255, 0.038) 0%, rgba(4, 10, 28, 0.2) 100%);
  border: 0.5px solid rgba(139, 203, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.07);
  transition: border-color 500ms cubic-bezier(0.32, 0.72, 0, 1),
              background 500ms cubic-bezier(0.32, 0.72, 0, 1);
}

.cobrand-tenet:hover {
  border-color: rgba(139, 203, 255, 0.22);
  background: linear-gradient(145deg, rgba(139, 203, 255, 0.06) 0%, rgba(4, 10, 28, 0.15) 100%);
}

.cobrand-tenet i {
  font-size: 20px;
  color: rgba(139, 203, 255, 0.58);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Lockup Panel (full width) ── */
.cobrand-lockup-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

/* Lockup demo */
.cobrand-lockup-demo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem 0 0.4rem;
  background: rgba(3, 8, 22, 0.75);
  border: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: 14px;
  padding: 1.75rem 2.5rem;
  min-height: 100px;
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.09),
              inset 0 -1px 0 rgba(0, 0, 0, 0.2),
              0 0 40px rgba(139, 203, 255, 0.04);
  overflow: hidden;
}

.cobrand-lockup-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 80% at 30% 50%, rgba(139, 203, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cobrand-lockup-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(139, 203, 255, 0.01) 2px,
    rgba(139, 203, 255, 0.01) 3px
  );
  pointer-events: none;
}

/* ── Rules Grid ── */
.cobrand-unified-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 0;
}

.cobrand-rule-group {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: rgba(4, 10, 28, 0.3);
  border: 0.5px solid rgba(139, 203, 255, 0.09);
  border-radius: 14px;
}

.cobrand-rule-group .label-mono {
  margin-bottom: 0.6rem;
}

.cobrand-rule-group .photo-spec-table,
.cobrand-rule-group .app-rule-list {
  margin-top: 0;
}

.cobrand-rule-group .photo-spec-table td {
  padding: 0.55rem 0;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.06);
}

.cobrand-rule-group .photo-spec-table tr:last-child td {
  border-bottom: none;
}

.cobrand-rule-group .photo-spec-table td:first-child {
  padding-right: 1rem;
}

.cobrand-rule-group .photo-spec-table td:last-child {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(219, 235, 255, 0.65);
}

.cobrand-rule-group .app-rule-list li {
  padding: 0.5rem 0;
  font-size: 12px;
  line-height: 1.42;
  border-bottom: 0.5px solid rgba(139, 203, 255, 0.06);
}

.cobrand-rule-group .app-rule-list li:last-child {
  border-bottom: none;
}

.cobrand-rule-group .app-rule-list li span {
  padding-top: 0.05rem;
}

/* ── Lockup mark elements ── */
.cobrand-lockup-ij {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cobrand-ij-mark {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(139, 203, 255, 0.25));
}

.cobrand-ij-wordmark {
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(139, 203, 255, 0.2);
}

.cobrand-lockup-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(139, 203, 255, 0.5) 20%, rgba(139, 203, 255, 0.5) 80%, transparent);
  margin: 0 2.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cobrand-partner-placeholder {
  border: 1px dashed rgba(139, 203, 255, 0.3);
  border-radius: 8px;
  padding: 0.7rem 1.75rem;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(139, 203, 255, 0.38);
  text-align: center;
  line-height: 1.7;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.cobrand-lockup-caption {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: rgba(139, 203, 255, 0.32);
  text-align: center;
  text-transform: uppercase;
}

/* ── Do / Don't Strip ── */
.cobrand-donts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0;
}

/* Example cards */
.cobrand-example-card {
  min-width: 0;
  padding: 1.1rem 1.1rem 1rem;
  border: 0.5px solid rgba(139, 203, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 18, 42, 0.55) 0%, rgba(4, 10, 28, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.07);
  transition: border-color 500ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}

.cobrand-example-card:hover {
  border-color: rgba(139, 203, 255, 0.22);
  transform: translateY(-2px);
}

.cobrand-example-card.motion-micro-card {
  gap: 0.7rem;
}

.cobrand-example-card .motion-micro-name {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.cobrand-example-card .motion-micro-desc {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 0;
  color: rgba(219, 235, 255, 0.48);
}

.cobrand-example-card--dont {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(160deg, rgba(45, 5, 5, 0.45) 0%, rgba(25, 3, 3, 0.28) 100%);
  box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.07);
}

.cobrand-example-card--dont:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

/* Do/Don't demo previews */
.cobrand-dd-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: rgba(3, 8, 22, 0.7);
  border: 0.5px solid rgba(139, 203, 255, 0.09);
  border-radius: 13px;
  overflow: hidden;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.05);
}

.cobrand-dd-demo--darkbg {
  background: #0C213F;
  border-color: rgba(139, 203, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.09);
}

.cobrand-dd-demo--err {
  border-color: rgba(239, 68, 68, 0.16);
  background: rgba(40, 4, 4, 0.6);
  box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.05);
}

.cobrand-dd-ij-block {
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: rgba(219, 235, 255, 0.92);
  flex-shrink: 0;
}

.cobrand-dd-ij-block--rev { color: #ffffff; }

.cobrand-dd-ij-block--small {
  font-size: 11px;
  opacity: 0.65;
}

.cobrand-dd-ij-block--err { color: rgba(239, 100, 100, 0.72); }

.cobrand-dd-sep {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(139, 203, 255, 0.4) 20%, rgba(139, 203, 255, 0.4) 80%, transparent);
  margin: 0 1rem;
  flex-shrink: 0;
}

.cobrand-dd-sep--rev { background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent); }
.cobrand-dd-sep--err { background: linear-gradient(to bottom, transparent, rgba(239, 68, 68, 0.35) 20%, rgba(239, 68, 68, 0.35) 80%, transparent); }

.cobrand-dd-partner-block {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(139, 203, 255, 0.42);
  text-transform: uppercase;
  flex-shrink: 0;
}

.cobrand-dd-partner-block--rev { color: rgba(219, 235, 255, 0.42); }

.cobrand-dd-partner-block--large {
  font-size: 15px;
  font-weight: 700;
  color: rgba(219, 235, 255, 0.78);
  font-family: var(--sans);
  letter-spacing: 0;
}

.cobrand-dd-partner-block--err {
  color: rgba(239, 100, 100, 0.52);
  border: 1px dashed rgba(239, 68, 68, 0.32);
  padding: 3px 8px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .cobrand-unified-card { height: auto; overflow: visible; }
  .cobrand-unified-head { grid-template-columns: 1fr; }
  .cobrand-unified-grid { grid-template-columns: 1fr; }
  .cobrand-tenet-row { grid-template-columns: 1fr; }
  .cobrand-donts-strip { grid-template-columns: repeat(2, 1fr); }
  .cobrand-approval-chip { white-space: normal; }
}

@media (max-width: 700px) {
  .cobrand-donts-strip { grid-template-columns: 1fr; }
  .cobrand-tenet-row { grid-template-columns: 1fr; }
}

/* ============================================================
   15 LEGAL & TRADEMARK
   ============================================================ */

/* ── LEGAL: card grid ── */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0 var(--section-pad) var(--section-pad);
  align-items: start;
}

/* ── lu-card: cobrand card style ── */
.lu-card {
  min-width: 0;
  padding: 1.25rem;
  border: 0.5px solid rgba(139, 203, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 18, 42, 0.55) 0%, rgba(4, 10, 28, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--grey-light);
  transition: border-color 500ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lu-card:hover {
  border-color: rgba(139, 203, 255, 0.22);
  transform: translateY(-2px);
}

/* Trademark + Copyright span 2 cols each */
.lu-card:nth-child(1),
.lu-card:nth-child(2) {
  grid-column: span 2;
}

/* Asset Permissions spans full width */
.lu-card--wide {
  grid-column: 1 / -1;
}

/* Compliance cards span 1 col each (4 across) */
.lu-card--compliance {
  grid-column: span 1;
}

.lu-card-header {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.25rem;
}

/* ── tables ── */
.lu-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lu-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lu-table tr:last-child {
  border-bottom: none;
}

.lu-table td {
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  vertical-align: top;
  color: var(--grey-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lu-table td:first-child {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding-right: 1rem;
  width: 26%;
  padding-top: 0.65rem;
}

/* ── copyright notice ── */
.lu-copyright-notice {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--electric-blue);
  background: rgba(41, 121, 255, 0.07);
  border: 1px solid rgba(41, 121, 255, 0.18);
  border-radius: 5px;
  padding: 0.55rem 0.85rem;
}

/* ── permissions panels ── */
.lu-perm-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lu-perm-panel {
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lu-perm-panel--ok {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.14);
}

.lu-perm-panel--no {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.14);
}

.lu-perm-panel-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lu-perm-panel--ok .lu-perm-panel-label {
  color: rgba(34, 197, 94, 0.75);
}

.lu-perm-panel--no .lu-perm-panel-label {
  color: rgba(239, 100, 100, 0.75);
}

.lu-perm-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lu-perm-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lu-perm-name {
  font-family: var(--condensed);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 255, 0.85);
}

.lu-perm-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(219, 235, 255, 0.48);
}

.lu-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.18rem 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.lu-tag--ok {
  color: var(--electric-blue);
  background: rgba(41, 121, 255, 0.08);
  border: 1px solid rgba(41, 121, 255, 0.2);
}

.lu-tag--no {
  color: rgba(239, 100, 100, 0.85);
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

/* ── do/don't 2×2 — cobrand card style ── */
.lu-dod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lu-dod {
  min-width: 0;
  padding: 1.1rem 1.1rem 1rem;
  border: 0.5px solid rgba(139, 203, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 18, 42, 0.55) 0%, rgba(4, 10, 28, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(139, 203, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 500ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lu-dod:hover {
  border-color: rgba(139, 203, 255, 0.22);
  transform: translateY(-2px);
}

.lu-dod--dont {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(160deg, rgba(45, 5, 5, 0.45) 0%, rgba(25, 3, 3, 0.28) 100%);
  box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.07);
}

.lu-dod--dont:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.lu-dod-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgba(34, 197, 94, 0.85);
}

.lu-dod-badge--dont {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(239, 68, 68, 0.75);
}

.lu-dod-title {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgba(234, 244, 255, 0.9);
}

.lu-dod-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  height: 72px;
  background: rgba(4, 10, 28, 0.6);
  border: 1px solid rgba(139, 203, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  overflow: hidden;
}

.lu-dod-demo--err {
  border-color: rgba(239, 68, 68, 0.1);
}

.lu-dod-eg {
  font-family: var(--condensed);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--electric-blue);
}

.lu-dod-eg--sm {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  line-height: 1.4;
  color: var(--electric-blue);
}

.lu-dod-eg--err {
  color: rgba(239, 100, 100, 0.85);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.4);
  font-style: italic;
}

.lu-dod-sub {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* ── compliance notes ── */
.lu-compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.lu-compliance-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.lu-ci-icon {
  font-size: 1.2rem;
  color: var(--electric-blue);
  line-height: 1;
  flex-shrink: 0;
}

.lu-ci-title {
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 255, 0.9);
}

.lu-ci-body {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(219, 235, 255, 0.55);
  word-wrap: break-word;
}

@media (max-width: 1200px) {
  .legal-layout { grid-template-columns: 1fr 1fr; }
  .lu-card:nth-child(1),
  .lu-card:nth-child(2) { grid-column: span 1; }
  .lu-card--wide { grid-column: 1 / -1; }
  .lu-card--compliance { grid-column: span 1; }
  .lu-dod { grid-column: span 1; }
  .lu-perm-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .lu-card:nth-child(1),
  .lu-card:nth-child(2),
  .lu-card--wide,
  .lu-card--compliance,
  .lu-dod { grid-column: 1 / -1; }
  .lu-perm-list { grid-template-columns: 1fr; }
}

/* ── SYSTEM PAGE: content-only sections ── */
.system-content .oversize-header {
  display: none !important;
}

.system-content :is(
  .section-hero-theme,
  .section-identity,
  .section-color-theme,
  .section-typography,
  .section-iconography,
  .section-resources,
  .sys-section-placeholder
) {
  height: auto;
  min-height: 100%;
  padding: clamp(1rem, 2.2vh, 1.6rem) clamp(1rem, 1.55vw, 2rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.system-content :is(
  .section-hero-theme,
  .section-identity,
  .section-color-theme,
  .section-typography,
  .section-iconography,
  .section-resources,
  .sys-section-placeholder
) > :not(.oversize-header):not(.section-orb) {
  width: 100%;
  min-height: 0;
  margin: 0;
}

.system-content :is(
  .essence-bento-grid,
  .identity-bento,
  .grid-3,
  .iconography-bento,
  .type-demo-layout,
  .type-sec-layout,
  .type-hierarchy-layout,
  .type-weights-layout,
  .type-styles-layout,
  .color-bento-grid,
  .color-primary-grid,
  .color-tints-layout,
  .color-neutral-grid,
  .color-functional-grid,
  .color-specs-layout,
  .color-usage-layout,
  .logo-sub-layout,
  .logo-var-grid,
  .clearspace-layout,
  .minsize-layout,
  .bg-usage-grid,
  .donts-grid,
  .vis-shape-bento,
  .vis-grid-layout,
  .vis-layout-bento,
  .vis-spacing-layout,
  .vis-pattern-grid,
  .photo-principles-grid,
  .photo-style-layout,
  .photo-env-shell,
  .photo-comp-shell,
  .type-usage-layout,
  .ui-comp-bento,
  .ui-btns-layout,
  .ui-cards-layout,
  .ui-cards-bento,
  .ui-dashboard-layout,
  .ui-dash-shell,
  .ui-data-layout,
  .ui-dataviz-bento,
  .ui-interaction-layout,
  .ui-interaction-bento,
  .motion-principles-bento,
  .motion-timing-layout,
  .motion-easing-layout,
  .motion-easing-grid,
  .motion-transitions-layout,
  .motion-transition-grid,
  .motion-micro-layout,
  .app-deck-layout,
  .app-social-layout,
  .app-merch-showcase,
  .app-signage-layout,
  .cobrand-layout,
  .legal-layout,
  .resources-downloads,
  .resources-layout,
  .placeholder-body
) {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.system-content :is(
  .essence-bento-grid,
  .identity-bento,
  .grid-3,
  .iconography-bento,
  .type-demo-layout,
  .type-sec-layout,
  .type-hierarchy-layout,
  .type-weights-layout,
  .type-styles-layout,
  .color-primary-grid,
  .color-tints-layout,
  .color-neutral-grid,
  .color-functional-grid,
  .color-specs-layout,
  .color-usage-layout,
  .logo-sub-layout,
  .logo-var-grid,
  .clearspace-layout,
  .minsize-layout,
  .bg-usage-grid,
  .donts-grid,
  .vis-shape-bento,
  .vis-grid-layout,
  .vis-layout-bento,
  .vis-spacing-layout,
  .vis-pattern-grid,
  .photo-principles-grid,
  .photo-style-layout,
  .photo-env-shell,
  .photo-comp-shell,
  .type-usage-layout,
  .ui-comp-bento,
  .ui-btns-layout,
  .ui-cards-bento,
  .ui-dashboard-layout,
  .ui-dataviz-bento,
  .ui-interaction-bento,
  .motion-principles-bento,
  .motion-timing-layout,
  .motion-easing-grid,
  .motion-transitions-layout,
  .motion-micro-layout,
  .app-deck-layout,
  .app-social-layout,
  .app-merch-showcase,
  .app-signage-layout,
  .cobrand-layout,
  .legal-layout,
  .resources-downloads
) > * {
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.system-content .section-iconography {
  align-items: stretch;
}

.system-content .iconography-bento {
  height: auto;
  max-height: none;
}

.system-content .ui-dashboard-layout {
  grid-template-rows: minmax(0, 1fr) minmax(9.5rem, auto);
  gap: clamp(0.7rem, 1.1vh, 0.9rem);
}

.system-content .ui-dash-nav {
  min-height: 2.75rem;
}

.system-content .ui-dash-metric {
  min-height: 4.75rem;
}

.system-content .ui-dash-principle-list {
  margin-top: 0.65rem;
}

.system-content .ui-dash-principle-list li {
  min-height: 5.75rem;
  padding: 0.62rem;
}

.system-content :is(#sys-typography-usage, #sys-ui, #sys-ui-cards) {
  padding-bottom: clamp(1rem, 2.2vh, 1.6rem);
}

.system-content #sys-typography-usage .type-pairing-card,
.system-content #sys-typography-usage .type-rules-card,
.system-content #sys-ui .identity-card {
  padding: clamp(0.95rem, 1.65vh, 1.2rem);
}

.system-content #sys-ui .ui-comp-bento {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.system-content #sys-ui-cards .ui-cards-bento {
  gap: clamp(0.8rem, 1vw, 1rem);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.system-content #sys-ui-cards .ui-card-example {
  gap: 0;
}

.system-content #sys-ui-cards .ui-card-ex-head {
  display: none;
}

.system-content #sys-ui-cards :is(.ui-demo-card, .ui-card-notes) {
  width: 100%;
  height: 100%;
  padding: clamp(1.05rem, 1.35vw, 1.42rem);
}

.system-content #sys-ui-cards .ui-demo-primary-row {
  min-height: clamp(4.2rem, 9vh, 6.2rem);
}

.system-content #sys-ui-cards .ui-demo-card--glass {
  justify-content: flex-start;
}

.system-content #sys-ui-cards .ui-demo-card--glass .ui-demo-primary-row {
  align-items: center;
  flex: 0 0 clamp(7rem, 15vh, 8.6rem);
  min-height: 0;
  padding: clamp(0.62rem, 0.9vh, 0.85rem) 0;
}

.system-content #sys-ui-cards .ui-demo-status-rows {
  min-height: clamp(5.2rem, 11vh, 7.2rem);
}

.system-content #sys-ui-cards .ui-demo-sparkline {
  min-height: 4rem;
}

.system-content #sys-ui-cards .ui-demo-nav-visual {
  min-height: clamp(4.8rem, 10vh, 6.7rem);
}

.system-content .ui-dataviz-bento,
.system-content .ui-interaction-bento,
.system-content .motion-transitions-layout {
  grid-auto-rows: minmax(0, 1fr);
}

.system-content #sys-ui-data .ui-dataviz-bento {
  grid-template-rows: minmax(0, 1.18fr) minmax(0, 1.18fr) minmax(7.25rem, 0.58fr);
}

.system-content #sys-ui-data :is(.ui-viz-panel, .ui-viz-principles) {
  min-height: 0;
}

.system-content .motion-easing-grid {
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr);
}

.system-content .motion-easing-rule {
  flex: 0 0 auto;
  margin: clamp(0.7rem, 1.1vh, 0.9rem) 0 0 !important;
}

.system-content .resources-downloads {
  flex: 0 0 auto;
  height: auto;
}

.system-content #sys-resources {
  --resources-panel-border: rgba(139, 203, 255, 0.18);
  --resources-panel-divider: rgba(139, 203, 255, 0.12);
  --resources-panel-radius: 10px;
  --resources-panel-bg:
    linear-gradient(180deg, rgb(4, 16, 36), rgb(2, 10, 25)),
    rgb(3, 14, 31);
  --resources-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28);
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 0.62fr) minmax(11.5rem, 0.38fr);
  gap: clamp(1.05rem, 1.7vh, 1.5rem);
  overflow: hidden;
}

.system-content #sys-resources .resources-downloads,
.system-content #sys-resources footer {
  border: 1px solid var(--resources-panel-border);
  border-radius: var(--resources-panel-radius);
  background: var(--resources-panel-bg);
  box-shadow: var(--resources-panel-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.system-content #sys-resources .resources-downloads {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.system-content #sys-resources .resources-download-row {
  flex: 1 1 0;
  min-height: 0;
  padding-block: clamp(0.22rem, 0.48vh, 0.4rem);
  padding-inline: clamp(0.9rem, 1.05vw, 1.12rem) clamp(1.1rem, 1.45vw, 1.55rem);
  border-bottom-color: var(--resources-panel-divider);
}

.system-content #sys-resources .resources-download-name {
  font-size: clamp(0.78rem, 0.7vw, 0.92rem);
}

.system-content #sys-resources .resources-download-button {
  min-height: clamp(1.5rem, 2.45vh, 1.82rem);
  min-width: clamp(6.45rem, 6vw, 6.95rem);
  padding-inline: clamp(0.62rem, 0.75vw, 0.82rem);
  border-color: rgba(139, 203, 255, 0.28);
  border-radius: 5px;
  background: rgba(41, 121, 255, 0.14);
}

.system-content #sys-resources .resources-download-button:hover,
.system-content #sys-resources .resources-download-button:focus-visible {
  border-color: rgba(139, 203, 255, 0.48);
  background: rgba(41, 121, 255, 0.24);
}

.system-content #sys-resources footer {
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.system-content #sys-resources .footer-top {
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 0.72fr));
  min-height: 0;
  border-bottom: 1px solid var(--resources-panel-divider);
}

.system-content #sys-resources .footer-col {
  grid-column: auto !important;
  min-height: 0;
  padding: clamp(0.9rem, 1.45vh, 1.18rem) clamp(0.85rem, 1.12vw, 1.18rem);
  border-right: 1px solid var(--resources-panel-divider);
  border-bottom: none;
}

.system-content #sys-resources .footer-col:last-child {
  border-right: none;
}

.system-content #sys-resources .footer-label {
  margin-bottom: clamp(0.6rem, 1vh, 0.85rem);
  font-size: clamp(0.5rem, 0.52vw, 0.62rem);
}

.system-content #sys-resources .footer-brand-blurb {
  margin-bottom: clamp(0.65rem, 1.1vh, 0.9rem);
  font-size: clamp(0.72rem, 0.74vw, 0.86rem);
  line-height: 1.46;
}

.system-content #sys-resources .footer-col:first-child .footer-link {
  margin-bottom: 0;
}

.system-content #sys-resources .footer-link {
  margin-bottom: clamp(0.42rem, 0.78vh, 0.6rem);
  font-size: clamp(0.5rem, 0.52vw, 0.62rem);
  line-height: 1.2;
}

.system-content #sys-resources .footer-bottom {
  min-height: 0;
  padding: clamp(0.48rem, 0.86vh, 0.68rem) clamp(0.85rem, 1.12vw, 1.18rem);
  font-size: clamp(0.46rem, 0.5vw, 0.58rem);
  line-height: 1.2;
}

.system-content .motion-principles-bento {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 0.84fr) minmax(7.4rem, 0.52fr);
  gap: clamp(0.75rem, 1.05vw, 0.95rem);
}

.system-content .motion-principle-hero {
  gap: clamp(0.55rem, 0.95vh, 0.82rem);
  padding: clamp(1.15rem, 1.55vw, 1.55rem);
}

.system-content .motion-philosophy-statement {
  font-size: clamp(1.72rem, 2.45vw, 2.7rem);
  max-width: 100%;
}

.system-content .motion-philosophy-body {
  font-size: clamp(0.76rem, 0.68vw, 0.9rem);
  line-height: 1.42;
  max-width: 66ch;
}

.system-content .motion-principle-name {
  font-size: clamp(1.12rem, 1.25vw, 1.45rem);
}

.system-content .motion-principle-desc {
  font-size: clamp(0.75rem, 0.68vw, 0.86rem);
  line-height: 1.46;
}

.system-content .motion-principle-card {
  gap: clamp(0.32rem, 0.58vh, 0.56rem);
  padding: clamp(1rem, 1.35vw, 1.35rem);
}

.system-content .motion-principle-visual {
  min-height: clamp(3rem, 6.2vh, 5.8rem);
}

.system-content .motion-principle-card--restrained {
  grid-template-columns: minmax(2rem, auto) minmax(2.8rem, auto) minmax(0, 0.95fr) minmax(12rem, 0.95fr);
  grid-template-areas:
    "num icon name name"
    "num icon desc visual";
  align-content: stretch;
  align-items: center;
  padding-block: clamp(0.9rem, 1.15vw, 1.15rem);
}

.system-content .motion-principle-card--restrained .motion-principle-desc {
  font-size: clamp(0.68rem, 0.62vw, 0.82rem);
  line-height: 1.34;
}

.system-content .motion-principle-card--restrained .motion-principle-visual {
  align-self: stretch;
  height: 100%;
  min-height: clamp(2.35rem, 5vh, 4.6rem);
}

.system-content .identity-card,
.system-content .type-card,
.system-content .essence-card,
.system-content .color-swatch-card,
.system-content .ui-viz-panel,
.system-content .ui-interact-panel,
.system-content .motion-easing-card,
.system-content .motion-transition-card,
.system-content .app-deck-feature,
.system-content .app-social-feature,
.system-content .app-merch-feature,
.system-content .app-merch-specs,
.system-content .app-signage-img-card,
.system-content .resource-card {
  min-height: 0;
  width: 100%;
  height: 100%;
}

.system-content #sys-applications-deck {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.system-content #sys-applications-deck .app-deck-layout {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) minmax(0, auto);
  align-content: start;
}

.system-content #sys-applications-deck .app-deck-feature,
.system-content #sys-applications-deck .app-deck-rules {
  height: 100%;
  min-height: 0;
}

.system-content #sys-applications-deck .app-deck-feature-img-wrap {
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.system-content #sys-applications-social {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.system-content #sys-applications-social .app-social-layout {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) minmax(0, auto);
  align-content: start;
}

.system-content #sys-applications-social .app-social-feature,
.system-content #sys-applications-social .app-social-rules {
  height: 100%;
  min-height: 0;
}

.system-content #sys-applications-social .app-social-feature-img-wrap {
  width: auto;
  height: min(100%, 28rem, 46vh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.system-content .sys-section-placeholder {
  padding-bottom: clamp(1rem, 2.2vh, 1.6rem);
}

@media (max-width: 1024px) {
  .system-content #sys-ui-cards {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .system-content #sys-ui-cards .ui-cards-bento {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(24.5rem, auto);
    overflow: visible;
  }

  .system-content #sys-ui-cards .ui-card-example {
    height: auto;
    min-height: 24.5rem;
  }

  .system-content #sys-ui-cards :is(.ui-demo-card, .ui-card-notes) {
    height: auto;
    min-height: 24.5rem;
  }

  .system-content #sys-ui-cards :is(.ui-demo-data-cell, .ui-card-contract-grid > div) span {
    min-height: 2.3em;
    white-space: normal;
    text-overflow: clip;
  }

  .system-content #sys-cobranding,
  .system-content #sys-cobranding .cobrand-layout,
  .system-content #sys-cobranding .cobrand-unified-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .system-content :is(
    .section-hero-theme,
    .section-identity,
    .section-color-theme,
    .section-typography,
    .section-iconography,
    .section-resources,
    .sys-section-placeholder
  ) {
    min-height: auto;
    padding: 1rem;
  }

  .system-content #sys-ui-cards .ui-cards-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(24.5rem, auto);
  }
}

/* ── Motion Principles: resolved command-console composition ── */
.motion-principles-bento {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
  grid-template-rows: minmax(15.5rem, 1.04fr) minmax(13rem, 0.88fr) minmax(8.25rem, 0.48fr);
  gap: clamp(0.78rem, 0.98vw, 1.08rem);
  background:
    radial-gradient(circle at 25% 18%, rgba(139, 203, 255, 0.075), transparent 21%),
    radial-gradient(circle at 86% 88%, rgba(38, 105, 186, 0.11), transparent 24%),
    linear-gradient(135deg, rgba(139, 203, 255, 0.035), transparent 42%);
}

.motion-principles-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, black 0 48%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 48%, black 0 48%, transparent 76%);
}

.motion-principles-bento::after {
  content: '';
  position: absolute;
  left: 38%;
  top: -10%;
  z-index: 0;
  width: 1px;
  height: 120%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(139, 203, 255, 0.14), transparent);
}

.motion-principles-bento > * {
  position: relative;
  z-index: 1;
}

.motion-principle-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(15rem, 0.62fr);
  grid-template-rows: auto auto auto minmax(2.5rem, 1fr);
  align-content: stretch;
  padding: clamp(1.35rem, 1.9vw, 2.05rem);
  background:
    radial-gradient(circle at 77% 18%, rgba(139, 203, 255, 0.16), transparent 28%),
    radial-gradient(circle at 16% 96%, rgba(38, 105, 186, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(18, 50, 96, 0.72), rgba(3, 14, 31, 0.48));
  border-color: rgba(139, 203, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(139, 203, 255, 0.12),
    0 28px 70px rgba(0, 8, 24, 0.42),
    0 0 0 1px rgba(139, 203, 255, 0.06);
}

.motion-principles-bento .motion-principle-hero.identity-card .label-mono {
  width: max-content;
  max-width: 100%;
  padding: 0.34rem 0.62rem;
  border-color: rgba(139, 203, 255, 0.2);
  background: linear-gradient(90deg, rgba(3, 17, 38, 0.8), rgba(3, 17, 38, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(190, 222, 255, 0.78);
}

.motion-philosophy-statement {
  max-width: 18ch;
  color: rgba(238, 247, 255, 0.96);
  text-shadow:
    0 0 24px rgba(139, 203, 255, 0.16),
    0 14px 48px rgba(0, 8, 24, 0.42);
}

.motion-accent {
  color: rgba(68, 139, 226, 0.96);
  text-shadow: 0 0 20px rgba(38, 105, 186, 0.24);
}

.motion-philosophy-body {
  max-width: 57ch;
  color: rgba(213, 229, 249, 0.82);
}

.motion-philosophy-rail {
  grid-column: 1;
  align-self: end;
  display: grid;
  grid-template-columns: 1.35fr 0.78fr 0.48fr 1fr;
  gap: clamp(0.32rem, 0.46vw, 0.55rem);
  width: min(100%, 34rem);
  min-height: clamp(2.35rem, 4.9vh, 3.65rem);
  margin-top: clamp(0.75rem, 1.3vh, 1.1rem);
  padding: 0.42rem;
  border: 1px solid rgba(139, 203, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.035) 1px, transparent 1px),
    rgba(2, 13, 31, 0.26);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.motion-philosophy-rail span {
  position: relative;
  display: block;
  align-self: stretch;
  min-width: 0;
  border: 1px solid rgba(139, 203, 255, 0.11);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(139, 203, 255, 0.12), rgba(38, 105, 186, 0.04));
  overflow: hidden;
}

.motion-philosophy-rail span::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(139, 203, 255, 0.45);
  box-shadow: 0 0 12px rgba(139, 203, 255, 0.24);
}

.motion-philosophy-rail span:nth-child(2)::after {
  right: 32%;
  background: rgba(139, 203, 255, 0.3);
}

.motion-philosophy-rail span:nth-child(3)::after {
  left: 38%;
  right: 38%;
  background: rgba(234, 244, 255, 0.55);
}

.motion-philosophy-rail span:nth-child(4)::after {
  left: 28%;
  background: rgba(38, 105, 186, 0.6);
}

.motion-system-diagram {
  min-height: 100%;
  border-radius: 16px;
  border-color: rgba(139, 203, 255, 0.2);
  background:
    linear-gradient(rgba(139, 203, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 40% 50%, rgba(38, 105, 186, 0.24), transparent 48%),
    linear-gradient(135deg, rgba(6, 28, 61, 0.7), rgba(2, 11, 27, 0.52));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 44px rgba(38, 105, 186, 0.18),
    0 0 0 1px rgba(139, 203, 255, 0.055);
}

.motion-system-diagram::before {
  inset: 18% 14%;
  border-color: rgba(139, 203, 255, 0.18);
  border-radius: 34% / 50%;
  transform: rotate(-3deg);
  box-shadow:
    0 0 0 1.4rem rgba(38, 105, 186, 0.035),
    inset 0 0 22px rgba(139, 203, 255, 0.08);
}

.motion-system-diagram::after {
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(139, 203, 255, 0.58) 48%, transparent 95%);
  box-shadow:
    0 0 16px rgba(139, 203, 255, 0.42),
    0 5px 24px rgba(139, 203, 255, 0.12);
  animation: mp-scan-sweep 4.8s cubic-bezier(0.25, 0, 0.75, 1) infinite;
}

.motion-system-line {
  left: 14%;
  right: 12%;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.3), transparent);
}

.motion-system-line--one { top: 31%; }
.motion-system-line--two { top: 52%; }
.motion-system-line--three { top: 73%; }

.motion-system-node {
  width: 0.72rem;
  height: 0.72rem;
  border-width: 1px;
  background: rgba(4, 20, 43, 0.96);
  box-shadow:
    0 0 16px rgba(139, 203, 255, 0.42),
    inset 0 0 0 2px rgba(139, 203, 255, 0.12);
}

.motion-system-node--one { left: 21%; top: 28%; }
.motion-system-node--two { right: 25%; top: 47%; }
.motion-system-node--three { left: 44%; top: 67%; }

.motion-principle-card {
  gap: clamp(0.48rem, 0.72vw, 0.72rem);
  padding: clamp(1.16rem, 1.5vw, 1.58rem);
  border-color: rgba(139, 203, 255, 0.22);
  background:
    radial-gradient(circle at 84% 14%, rgba(139, 203, 255, 0.07), transparent 26%),
    radial-gradient(circle at 22% 105%, rgba(38, 105, 186, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(15, 42, 79, 0.56), rgba(3, 14, 31, 0.44));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -1px 0 rgba(139, 203, 255, 0.09),
    0 20px 54px rgba(0, 8, 24, 0.32);
}

.motion-principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(0.85rem, 1.1vw, 1.1rem);
  right: clamp(0.85rem, 1.1vw, 1.1rem);
  display: block;
  width: auto;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(139, 203, 255, 0.5), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.motion-principle-card::after {
  content: '';
  position: absolute;
  top: clamp(0.8rem, 1vw, 1rem);
  right: clamp(0.8rem, 1vw, 1rem);
  bottom: clamp(0.8rem, 1vw, 1rem);
  left: auto;
  display: block;
  width: 1px;
  height: auto;
  border: 0;
  background: linear-gradient(180deg, rgba(139, 203, 255, 0.26), transparent 62%);
  opacity: 0.72;
  pointer-events: none;
}

.motion-principle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 203, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(139, 203, 255, 0.12),
    0 30px 72px rgba(0, 8, 24, 0.45),
    0 0 42px rgba(38, 105, 186, 0.14);
}

.motion-principle-num {
  color: rgba(139, 203, 255, 0.72);
  letter-spacing: 0.22em;
}

.motion-principle-name {
  color: rgba(240, 248, 255, 0.98);
  letter-spacing: 0.005em;
}

.motion-principle-desc {
  color: rgba(199, 220, 246, 0.8);
  line-height: 1.5;
}

.motion-principle-icon {
  border-radius: 14px;
  border-color: rgba(139, 203, 255, 0.32);
  background:
    radial-gradient(circle at 38% 26%, rgba(234, 244, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(139, 203, 255, 0.15), rgba(38, 105, 186, 0.08)),
    rgba(3, 17, 38, 0.7);
}

.motion-principle-icon i {
  display: block;
  font-size: clamp(1.22rem, 1.28vw, 1.55rem);
  line-height: 1;
  color: rgba(139, 203, 255, 0.86);
  text-shadow: 0 0 18px rgba(139, 203, 255, 0.38);
}

.motion-principle-card--purposeful {
  background:
    radial-gradient(circle at 22% 64%, rgba(139, 203, 255, 0.11), transparent 28%),
    linear-gradient(145deg, rgba(15, 42, 79, 0.62), rgba(3, 14, 31, 0.44));
}

.motion-principle-card--directional,
.motion-principle-card--systematic {
  background:
    radial-gradient(circle at 82% 18%, rgba(38, 105, 186, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(12, 36, 70, 0.52), rgba(2, 13, 31, 0.46));
}

.motion-principle-card--decelerated {
  background:
    radial-gradient(circle at 84% 0%, rgba(139, 203, 255, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(22, 57, 99, 0.58), rgba(3, 14, 31, 0.46));
}

.motion-principle-visual {
  min-height: clamp(4.8rem, 9.4vh, 8.2rem);
  margin-top: auto;
  border: 1px solid rgba(139, 203, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(rgba(139, 203, 255, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.044) 1px, transparent 1px),
    radial-gradient(circle at 18% 34%, rgba(38, 105, 186, 0.12), transparent 32%),
    rgba(2, 13, 31, 0.28);
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 22px rgba(38, 105, 186, 0.08);
}

.motion-principle-visual--purposeful::before {
  inset: 18% auto auto 11%;
  width: 3.5rem;
  height: 3.5rem;
  border-color: rgba(139, 203, 255, 0.38);
  box-shadow:
    0 0 0 1rem rgba(38, 105, 186, 0.055),
    inset 0 0 18px rgba(139, 203, 255, 0.08);
}

.motion-principle-visual--purposeful::after {
  left: 29%;
  right: 9%;
  top: 50%;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.68), rgba(139, 203, 255, 0.08));
  animation: mp-purposeful-line-v2 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.motion-principle-visual--purposeful span {
  background: rgba(154, 211, 255, 0.82);
  box-shadow: 0 0 16px rgba(139, 203, 255, 0.46);
}

.motion-principle-visual--purposeful span:nth-child(1) { left: 18%; top: 44%; }
.motion-principle-visual--purposeful span:nth-child(2) { left: 58%; top: 44%; opacity: 0.72; }
.motion-principle-visual--purposeful span:nth-child(3) { right: 11%; top: 44%; opacity: 0.38; }

@keyframes mp-purposeful-line-v2 {
  0% { transform: scaleX(0); opacity: 0; }
  18%, 76% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes mp-directional-line-v2 {
  0% { transform: scaleX(0.08); opacity: 0.16; }
  28%, 72% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.25; }
}

@keyframes mp-directional-head-v2 {
  0% { transform: translateX(-1.2rem) rotate(45deg); opacity: 0; }
  28%, 72% { transform: translateX(0) rotate(45deg); opacity: 1; }
  100% { transform: translateX(0.4rem) rotate(45deg); opacity: 0.2; }
}

.motion-principle-visual--directional::before {
  left: 10%;
  right: 11%;
  top: 48%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(139, 203, 255, 0.08), rgba(139, 203, 255, 0.66));
  animation: mp-directional-line-v2 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.motion-principle-visual--directional::after {
  right: 9.5%;
  top: calc(48% - 0.34rem);
  animation: mp-directional-head-v2 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.motion-principle-visual--directional span {
  background: rgba(139, 203, 255, 0.18);
  transform-origin: left center;
}

.motion-principle-visual--decelerated::after {
  left: 13%;
  right: 13%;
  bottom: 24%;
  height: 57%;
  border-bottom-color: rgba(139, 203, 255, 0.56);
  border-right-color: rgba(139, 203, 255, 0.56);
  opacity: 0.9;
}

@keyframes mp-decelerated-dot-v2 {
  0% { transform: translate3d(0, 0.35rem, 0); opacity: 0.9; }
  100% { transform: translate3d(clamp(8rem, 21vw, 18rem), -0.25rem, 0); opacity: 1; }
}

.motion-principle-visual--decelerated span:nth-child(1) {
  left: 13%;
  bottom: 23%;
  animation: mp-decelerated-dot-v2 2s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.motion-principle-visual--systematic {
  gap: 0.62rem;
  padding: 1rem 0.92rem 0.88rem;
}

.motion-principle-visual--systematic span {
  border-radius: 7px;
  border-color: rgba(139, 203, 255, 0.27);
  background:
    linear-gradient(180deg, rgba(139, 203, 255, 0.25), rgba(38, 105, 186, 0.075));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.motion-principles-bento > .motion-principle-card--restrained {
  grid-template-columns: minmax(2.1rem, auto) minmax(3.25rem, auto) minmax(0, 0.84fr) minmax(18rem, 1.24fr);
  grid-template-areas:
    "num icon name visual"
    "num icon desc visual";
  column-gap: clamp(0.8rem, 1.2vw, 1.25rem);
  background:
    radial-gradient(circle at 92% 50%, rgba(139, 203, 255, 0.16), transparent 27%),
    linear-gradient(90deg, rgba(38, 105, 186, 0.24), rgba(3, 14, 31, 0.36) 58%),
    rgba(3, 17, 38, 0.48);
}

.motion-principles-bento > .motion-principle-card--restrained::before,
.motion-principles-bento > .motion-principle-card--restrained::after {
  display: block;
}

.motion-principle-visual--restrained {
  min-height: clamp(4.2rem, 7.4vh, 6.4rem);
  border-color: rgba(139, 203, 255, 0.16);
  background:
    linear-gradient(rgba(139, 203, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.045), transparent 36%, rgba(239, 68, 68, 0.035)),
    rgba(2, 13, 31, 0.3);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.motion-principle-visual--restrained::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.46), rgba(139, 203, 255, 0.34), rgba(239, 68, 68, 0.32));
}

@keyframes mp-restrained-thumb-v2 {
  0%, 100% { transform: translate3d(-0.24rem, -50%, 0); }
  45%, 62% { transform: translate3d(0.52rem, -50%, 0); }
}

.motion-principle-visual--restrained span:nth-child(2) {
  left: 43%;
  animation: mp-restrained-thumb-v2 3.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .motion-principle-visual--purposeful::after,
  .motion-principle-visual--directional::before,
  .motion-principle-visual--directional::after,
  .motion-principle-visual--decelerated span:nth-child(1),
  .motion-principle-visual--restrained span:nth-child(2) {
    animation: none;
  }
}

.system-content .motion-principles-bento {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
  grid-template-rows: minmax(0, 0.98fr) minmax(0, 0.84fr) minmax(7.7rem, 0.52fr);
  gap: clamp(0.68rem, 0.92vw, 0.86rem);
}

.system-content .motion-principle-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(13.5rem, 0.6fr);
  grid-template-rows: auto auto auto minmax(2rem, 1fr);
  padding: clamp(1rem, 1.42vw, 1.42rem);
}

.system-content .motion-philosophy-statement {
  font-size: clamp(1.78rem, 2.58vw, 2.76rem);
  max-width: 18ch;
}

.system-content .motion-philosophy-body {
  font-size: clamp(0.74rem, 0.66vw, 0.86rem);
  line-height: 1.44;
  max-width: 58ch;
}

.system-content .motion-philosophy-rail {
  min-height: clamp(1.85rem, 4vh, 3rem);
  margin-top: clamp(0.45rem, 0.9vh, 0.8rem);
}

.system-content .motion-principle-card {
  padding: clamp(0.9rem, 1.24vw, 1.2rem);
  gap: clamp(0.28rem, 0.54vh, 0.48rem);
}

.system-content .motion-principle-name {
  font-size: clamp(1.18rem, 1.34vw, 1.52rem);
}

.system-content .motion-principle-desc {
  font-size: clamp(0.7rem, 0.65vw, 0.82rem);
  line-height: 1.38;
}

.system-content .motion-principle-icon {
  width: clamp(2.35rem, 2.35vw, 2.75rem);
  height: clamp(2.35rem, 2.35vw, 2.75rem);
}

.system-content .motion-principle-visual {
  min-height: clamp(3.25rem, 6vh, 5.4rem);
}

.system-content .motion-principle-card--restrained {
  grid-template-columns: minmax(2rem, auto) minmax(2.8rem, auto) minmax(0, 0.9fr) minmax(13rem, 1fr);
  grid-template-areas:
    "num icon name visual"
    "num icon desc visual";
  padding-block: clamp(0.82rem, 1vw, 1.05rem);
}

.system-content .motion-principle-card--restrained .motion-principle-visual {
  min-height: clamp(2.85rem, 5.2vh, 4.9rem);
}

@media (max-width: 1100px) {
  .motion-principles-bento,
  .system-content .motion-principles-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(12rem, auto);
  }

  .motion-principle-hero,
  .system-content .motion-principle-hero,
  .motion-principles-bento > .motion-principle-card--restrained,
  .system-content .motion-principle-card--restrained {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .motion-principles-bento,
  .system-content .motion-principles-bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .system-content #sys-motion {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .system-content .motion-principles-bento {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .motion-principle-hero,
  .system-content .motion-principle-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    min-height: 29.25rem;
  }

  .system-content .motion-principle-card {
    height: auto;
    min-height: 15.5rem;
  }

  .motion-philosophy-rail,
  .system-content .motion-philosophy-rail {
    grid-column: 1;
    width: 100%;
  }

  .motion-system-diagram,
  .system-content .motion-system-diagram {
    grid-column: 1;
    grid-row: auto;
    min-height: 10rem;
  }

  .motion-principles-bento > .motion-principle-card--restrained,
  .system-content .motion-principle-card--restrained {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "num"
      "icon"
      "name"
      "desc"
      "visual";
    align-items: start;
    min-height: 17rem;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .system-content .motion-principles-bento {
    grid-template-rows: minmax(0, 1fr) minmax(0, 0.82fr) minmax(8.3rem, 0.34fr);
    gap: clamp(0.45rem, 0.72vh, 0.62rem);
  }

  .system-content .motion-principle-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(10.5rem, 0.5fr);
    grid-template-rows: auto auto auto;
    padding: clamp(0.72rem, 1.05vw, 0.95rem);
    row-gap: 0.34rem;
  }

  .system-content .motion-philosophy-statement {
    font-size: clamp(1.36rem, 2.05vw, 2.1rem);
    line-height: 0.9;
    max-width: 17ch;
  }

  .system-content .motion-philosophy-body {
    font-size: clamp(0.62rem, 0.58vw, 0.72rem);
    line-height: 1.3;
  }

  .system-content .motion-philosophy-rail {
    display: none;
  }

  .system-content .motion-system-diagram {
    border-radius: 12px;
  }

  .system-content .motion-principle-card {
    padding: clamp(0.68rem, 0.95vw, 0.86rem);
    gap: 0.22rem;
  }

  .system-content .motion-principle-num {
    font-size: 0.58rem;
  }

  .system-content .motion-principle-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
  }

  .system-content .motion-principle-icon i {
    font-size: 1.05rem;
  }

  .system-content .motion-principle-name {
    font-size: clamp(0.98rem, 1.12vw, 1.18rem);
  }

  .system-content .motion-principle-desc {
    font-size: clamp(0.6rem, 0.56vw, 0.7rem);
    line-height: 1.28;
  }

  .system-content .motion-principle-visual {
    min-height: clamp(2.25rem, 4.9vh, 3.25rem);
    border-radius: 9px;
  }

  .system-content .motion-principle-card--restrained {
    grid-template-columns: minmax(1.4rem, auto) minmax(2rem, auto) minmax(0, 1fr) minmax(11rem, 0.88fr);
    padding-block: 0.68rem;
  }

  .system-content .motion-principle-card--restrained .motion-principle-desc {
    font-size: clamp(0.58rem, 0.54vw, 0.68rem);
    line-height: 1.22;
  }

  .system-content .motion-principle-card--restrained .motion-principle-visual {
    min-height: 2.65rem;
  }
}

/* Motion Principles after removing the opening and closing principle sections */
.motion-principles-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(14rem, 1fr));
}

.system-content .motion-principles-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.motion-principles-bento > .motion-principle-card,
.system-content .motion-principles-bento > .motion-principle-card {
  grid-column: auto;
  min-height: 0;
}

@media (max-width: 768px) {
  .motion-principles-bento,
  .system-content .motion-principles-bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .motion-principles-bento > .motion-principle-card,
  .system-content .motion-principles-bento > .motion-principle-card {
    height: auto !important;
    min-height: 25rem;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .system-content .motion-principles-bento {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

/* Motion Principles card rhythm polish */
.motion-principle-card,
.system-content .motion-principle-card {
  grid-template-rows: auto auto auto minmax(8.5rem, 1fr);
  row-gap: 0;
  padding: clamp(1.25rem, 1.55vw, 1.75rem);
}

.motion-principle-card::after {
  display: none;
}

.motion-principle-num,
.system-content .motion-principle-num {
  align-self: center;
  font-size: clamp(1rem, 0.92vw, 1.2rem);
  line-height: 1;
  letter-spacing: 0.18em;
}

.motion-principle-icon,
.system-content .motion-principle-icon {
  align-self: center;
  width: clamp(3.1rem, 3.15vw, 3.9rem);
  height: clamp(3.1rem, 3.15vw, 3.9rem);
}

.motion-principle-icon i,
.system-content .motion-principle-icon i {
  font-size: clamp(1.48rem, 1.48vw, 1.86rem);
}

.motion-principle-name,
.system-content .motion-principle-name {
  margin-top: clamp(0.9rem, 1.25vh, 1.35rem);
  font-size: clamp(1.72rem, 1.95vw, 2.35rem);
  line-height: 0.94;
}

.motion-principle-desc,
.system-content .motion-principle-desc {
  margin-top: clamp(0.62rem, 0.95vh, 0.9rem);
  font-size: clamp(0.98rem, 0.92vw, 1.14rem);
  line-height: 1.48;
  max-width: 68ch;
}

.motion-principle-visual,
.system-content .motion-principle-visual {
  align-self: stretch;
  height: 100%;
  min-height: clamp(7rem, 12vh, 12.5rem);
  margin-top: clamp(1rem, 1.65vh, 1.6rem);
}

.system-content .motion-principles-bento {
  gap: clamp(0.9rem, 1.18vw, 1.15rem);
}

@media (min-width: 769px) and (max-height: 760px) {
  .system-content .motion-principle-card {
    grid-template-rows: auto auto auto minmax(5.9rem, 1fr);
    padding: clamp(0.9rem, 1.2vw, 1.12rem);
  }

  .system-content .motion-principle-num {
    font-size: clamp(0.74rem, 0.72vw, 0.88rem);
  }

  .system-content .motion-principle-icon {
    width: clamp(2.35rem, 2.45vw, 2.75rem);
    height: clamp(2.35rem, 2.45vw, 2.75rem);
  }

  .system-content .motion-principle-icon i {
    font-size: clamp(1.16rem, 1.12vw, 1.32rem);
  }

  .system-content .motion-principle-name {
    margin-top: 0.72rem;
    font-size: clamp(1.2rem, 1.32vw, 1.46rem);
  }

  .system-content .motion-principle-desc {
    margin-top: 0.36rem;
    font-size: clamp(0.72rem, 0.68vw, 0.82rem);
    line-height: 1.34;
  }

  .system-content .motion-principle-visual {
    min-height: clamp(5.7rem, 12vh, 7.6rem);
    margin-top: 0.78rem;
  }
}

@media (max-width: 768px) {
  .motion-principle-card,
  .system-content .motion-principle-card {
    grid-template-rows: auto auto auto minmax(8rem, auto);
    height: auto !important;
    min-height: 25rem;
  }
}

/* Keep Purposeful sample markers optically centered on their guide line. */
.motion-principle-visual--purposeful span,
.motion-principle-visual--purposeful span:nth-child(1),
.motion-principle-visual--purposeful span:nth-child(2),
.motion-principle-visual--purposeful span:nth-child(3) {
  top: calc(50% - 0.275rem);
  transform-origin: center;
}

/* Reduce grid intensity behind the motion examples. */
.motion-principle-visual,
.system-content .motion-principle-visual {
  background:
    linear-gradient(rgba(139, 203, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 203, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 18% 34%, rgba(38, 105, 186, 0.12), transparent 32%),
    rgba(2, 13, 31, 0.28);
  background-size: 26px 26px, 26px 26px, auto, auto;
}
