/* ═════════════════════════════════════════════════════════
   ALTN VISION — Research Station v2.0
   Space is Interface.
   ═════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #06080c;
  --surface: #0b1018;
  --surface-soft: #111722;
  --text: #c2cfe0;
  --text-primary: #c2cfe0;
  --text-secondary: #8794a6;
  --muted: #718096;
  --accent: #62efa1;
  --accent-strong: #62efa1;
  --border: rgba(135, 148, 166, 0.16);
  --ring: rgba(135, 148, 166, 0.08);
  --font-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-sans: 'IBM Plex Sans', var(--font-cjk), -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', var(--font-cjk), monospace;
  --font-serif: 'Playfair Display', Georgia, var(--font-cjk), serif;
  --font-display: var(--font-serif);
  --radius-media: 34px;
  --radius-inset-media: 24px;
  --radius-panel: 4px;
  --radius-control: 3px;
  --radius-button: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
}

body.language-zh {
  font-family: var(--font-sans);
}

body.language-zh .hero-role,
body.language-zh .hero-meta span,
body.language-zh .hero-action,
body.language-zh .track-tag,
body.language-zh .track-sub,
body.language-zh .track-facts dt,
body.language-zh .track-facts dd,
body.language-zh .track-action,
body.language-zh .practice-method-intro span,
body.language-zh .practice-steps span,
body.language-zh .practice-steps small,
body.language-zh .sh-label,
body.language-zh .explore-btn,
body.language-zh .entity-contact a span,
body.language-zh .entity-contact a strong {
  letter-spacing: 0.04em;
}

.body-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .body-copy { font-size: 14px; line-height: 1.65; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── GridScan entry ── */
.grid-scan-intro {
  position: fixed;
  inset: 0;
  z-index: 9997;
  overflow: hidden;
  background: #06080c;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), visibility 600ms step-end;
}

.grid-scan-intro[hidden] { display: none !important; }

body.grid-intro-active { overflow: hidden; }

.grid-scan-intro.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.grid-scan-intro.is-skipping {
  transition-duration: 220ms;
}

.grid-scan-intro__canvas,
.grid-scan-intro__canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grid-scan-intro__canvas {
  opacity: 1;
}

.grid-scan-intro__boot {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  place-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
}

.grid-scan-intro.is-hybrid .grid-scan-intro__boot {
  display: grid;
}

.grid-scan-intro.is-hybrid .grid-scan-intro__canvas {
  opacity: 0.08;
}

.grid-scan-intro.is-hybrid.is-ready .grid-scan-intro__canvas {
  animation: hybrid-grid-reveal 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hybrid-loader {
  width: min(76vw, 620px);
  text-align: center;
  transform: translateY(-1.5vh);
}

.hybrid-loader__brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: rgba(232, 235, 240, 0.9);
  font-size: clamp(36px, 7vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: hybrid-brand-in 480ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}

.hybrid-loader__altn {
  color: rgba(232, 235, 240, 0.38);
}

.hybrid-loader__slash {
  color: #62efa1;
  text-shadow: 0 0 18px rgba(98, 239, 161, 0.45);
  animation: hybrid-slash-signal 900ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
}

.hybrid-loader__ision-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hybrid-loader__ision {
  display: inline-block;
  transform: translateX(-105%);
  animation: hybrid-ision-reveal 440ms cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
}

.hybrid-loader--split .hybrid-loader__brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  opacity: 1;
  transform: none;
  animation: none;
}

.hybrid-loader__word {
  display: flex;
  min-width: 0;
}

.hybrid-loader__word--left {
  justify-content: flex-end;
  color: rgba(232, 235, 240, 0.38);
}

.hybrid-loader__word--right {
  justify-content: flex-start;
  color: rgba(232, 235, 240, 0.9);
}

.hybrid-loader--split .hybrid-loader__slash {
  display: inline-block;
  opacity: 0;
  transform: scale(0.86);
  animation:
    hybrid-axis-in 400ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both,
    hybrid-slash-signal 900ms cubic-bezier(0.16, 1, 0.3, 1) 560ms both;
}

.hybrid-loader__letter {
  --letter-offset: -10px;
  --letter-settle: 1px;
  display: inline-block;
  opacity: 0;
  transform: translateX(var(--letter-offset)) scale(0.9);
  animation: hybrid-letter-out 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

.hybrid-loader__word--left .hybrid-loader__letter {
  --letter-offset: 10px;
  --letter-settle: -1px;
}

.hybrid-loader__word--left .hybrid-loader__letter:nth-child(4),
.hybrid-loader__word--right .hybrid-loader__letter:nth-child(1) { animation-delay: 320ms; }
.hybrid-loader__word--left .hybrid-loader__letter:nth-child(3),
.hybrid-loader__word--right .hybrid-loader__letter:nth-child(2) { animation-delay: 390ms; }
.hybrid-loader__word--left .hybrid-loader__letter:nth-child(2),
.hybrid-loader__word--right .hybrid-loader__letter:nth-child(3) { animation-delay: 460ms; }
.hybrid-loader__word--left .hybrid-loader__letter:nth-child(1),
.hybrid-loader__word--right .hybrid-loader__letter:nth-child(4) { animation-delay: 530ms; }
.hybrid-loader__word--right .hybrid-loader__letter:nth-child(5) { animation-delay: 600ms; }

.hybrid-loader--split .hybrid-loader__phase--map { animation-delay: 820ms; }
.hybrid-loader--split .hybrid-loader__phase--calibrate { animation-delay: 1300ms; }
.hybrid-loader--split .hybrid-loader__phase--ready { animation-delay: 1800ms; }

.hybrid-loader__status {
  position: relative;
  height: 16px;
  margin-top: 26px;
  color: rgba(194, 207, 224, 0.68);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.12em;
}

.hybrid-loader__phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hybrid-loader__phase--map {
  animation: hybrid-status-step 560ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.hybrid-loader__phase--calibrate {
  animation: hybrid-status-step 600ms cubic-bezier(0.16, 1, 0.3, 1) 660ms both;
}

.hybrid-loader__phase--ready {
  color: #62efa1;
  animation: hybrid-status-ready 360ms cubic-bezier(0.16, 1, 0.3, 1) 1160ms forwards;
}

.hybrid-loader__signal {
  width: min(46vw, 252px);
  height: 12px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 0;
}

.hybrid-loader__signal-rail {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  animation: hybrid-signal-rail 680ms cubic-bezier(0.16, 1, 0.3, 1) 820ms both;
}

.hybrid-loader__signal-rail--left {
  background: linear-gradient(90deg, transparent, rgba(98, 239, 161, 0.34) 34%, #62efa1);
  transform-origin: right center;
}

.hybrid-loader__signal-rail--right {
  background: linear-gradient(90deg, #62efa1, rgba(98, 239, 161, 0.34) 66%, transparent);
  transform-origin: left center;
}

.hybrid-loader__signal-rail::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 26px;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #d9ffea 72%, transparent);
  filter: drop-shadow(0 0 4px rgba(98, 239, 161, 0.82));
  animation-duration: 1380ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 1280ms;
  animation-iteration-count: infinite;
}

.hybrid-loader__signal-rail--left::after {
  right: -2px;
  animation-name: hybrid-signal-packet-left;
}

.hybrid-loader__signal-rail--right::after {
  left: -2px;
  animation-name: hybrid-signal-packet-right;
}

.hybrid-loader__brand,
.hybrid-loader__slash,
.hybrid-loader__ision,
.hybrid-loader__letter,
.hybrid-loader__phase,
.hybrid-loader__signal-rail,
.hybrid-loader__signal-rail::after {
  animation-play-state: paused;
}

.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__brand,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__slash,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__ision,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__letter,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__phase,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__signal-rail,
.grid-scan-intro.is-hybrid.is-ready .hybrid-loader__signal-rail::after {
  animation-play-state: running;
}

.gateway-enter {
  display: none;
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 6vh, 68px);
  z-index: 5;
  min-width: 176px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: rgba(232, 235, 240, 0.9);
  font-family: var(--font-mono);
  text-align: center;
  opacity: 0;
  transform: translate3d(-50%, 8px, 0);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  cursor: pointer;
}

.grid-scan-intro.is-gateway .gateway-enter {
  display: grid;
  place-items: center;
  gap: 5px;
}

.grid-scan-intro.is-gateway.is-entry-ready {
  cursor: pointer;
}

.grid-scan-intro.is-gateway.is-entry-ready .gateway-enter {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.gateway-enter__label {
  color: #62efa1;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow: 0 0 14px rgba(98, 239, 161, 0.32);
}

.gateway-enter__hint {
  color: rgba(194, 207, 224, 0.64);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.gateway-enter:focus-visible {
  outline: 0;
  text-shadow: 0 0 18px rgba(98, 239, 161, 0.52);
}

.gateway-enter::after {
  content: '';
  width: 72px;
  height: 1px;
  margin-top: 3px;
  background: linear-gradient(90deg, transparent, rgba(98, 239, 161, 0.58), transparent);
  transform: scaleX(0.72);
  opacity: 0.62;
  transition: transform 260ms ease, opacity 260ms ease;
}

.hybrid-review-controls {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  font-family: var(--font-mono);
}

.grid-scan-intro.is-review .hybrid-review-controls {
  display: flex;
}

.grid-scan-intro.is-gateway .hybrid-review-controls {
  display: none;
}

.hybrid-review-controls__state {
  margin-right: 6px;
  color: rgba(194, 207, 224, 0.52);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.hybrid-review-controls button {
  min-width: 72px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(194, 207, 224, 0.2);
  border-radius: var(--radius-control);
  background: rgba(6, 8, 12, 0.68);
  color: rgba(232, 235, 240, 0.86);
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hybrid-review-controls button:focus-visible {
  border-color: rgba(98, 239, 161, 0.62);
  background: rgba(16, 35, 27, 0.78);
  color: #62efa1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 239, 161, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .gateway-enter:hover .gateway-enter__hint {
    color: rgba(232, 235, 240, 0.78);
  }

  .gateway-enter:hover::after {
    transform: scaleX(1);
    opacity: 0.9;
  }

  .hybrid-review-controls button:hover {
    border-color: rgba(98, 239, 161, 0.62);
    background: rgba(16, 35, 27, 0.78);
    color: #62efa1;
  }
}

@keyframes hybrid-grid-reveal {
  from { opacity: 0.08; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hybrid-brand-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hybrid-ision-reveal {
  to { transform: translateX(0); }
}

@keyframes hybrid-slash-signal {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.42; }
  72% { opacity: 1; }
}

@keyframes hybrid-axis-in {
  0% { opacity: 0; transform: scale(0.86); }
  68% { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes hybrid-letter-out {
  0% { opacity: 0; transform: translateX(var(--letter-offset)) scale(0.9); }
  72% { opacity: 1; transform: translateX(var(--letter-settle)) scale(1.025); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes hybrid-status-step {
  0% { opacity: 0; transform: translateY(4px); }
  22%, 68% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

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

@keyframes hybrid-signal-rail {
  to { transform: scaleX(1); }
}

@keyframes hybrid-signal-packet-left {
  0%, 12% { opacity: 0; transform: translateX(0) scaleX(0.25); }
  24% { opacity: 0.9; }
  72%, 100% { opacity: 0; transform: translateX(-94px) scaleX(1); }
}

@keyframes hybrid-signal-packet-right {
  0%, 12% { opacity: 0; transform: translateX(0) scaleX(0.25); }
  24% { opacity: 0.9; }
  72%, 100% { opacity: 0; transform: translateX(94px) scaleX(1); }
}

.grid-scan-intro.is-fallback {
  background-color: #06080c;
  background-image:
    linear-gradient(rgba(98, 239, 161, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 239, 161, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
}

@media (max-width: 600px) {
  .hybrid-loader {
    width: calc(100vw - 40px);
    transform: translateY(-2vh);
  }

  .hybrid-loader__brand {
    font-size: clamp(34px, 14vw, 58px);
  }

  .hybrid-loader--split .hybrid-loader__brand {
    font-size: clamp(30px, 11.5vw, 44px);
  }

  .hybrid-loader__status {
    margin-top: 22px;
    letter-spacing: 0.08em;
  }

  .hybrid-loader__signal {
    width: min(58vw, 220px);
  }

  .hybrid-review-controls {
    top: 14px;
    right: 14px;
    gap: 6px;
  }

  .hybrid-review-controls__state { display: none; }

  .hybrid-review-controls button {
    min-width: 64px;
    padding-inline: 10px;
  }

  .gateway-enter {
    bottom: 28px;
  }
}

.grid-intro-active .hero-pane img,
.grid-intro-active .concept-route,
.grid-intro-active .concept-node-active,
.grid-intro-active .hero-status .status-dot {
  animation-play-state: paused;
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 72%, transparent);
  transition: width 0.18s ease, height 0.18s ease, background 0.3s;
  opacity: 1;
}
.cursor-ring {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-radius 0.3s, border-color 0.3s, background 0.3s, opacity 0.18s;
  opacity: 1;
}
.cursor-ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-right-color: color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 50%;
  animation: cursor-orbit 3.6s linear infinite;
}
.cursor-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  opacity: 0.36;
  background:
    linear-gradient(90deg, transparent 0 46%, var(--accent) 46% 54%, transparent 54%) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0 46%, var(--accent) 46% 54%, transparent 54%) center / 1px 100% no-repeat;
}
.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}
.cursor-dot.is-hidden,
.cursor-ring.is-hidden {
  opacity: 0;
}
.cursor-ring.hover {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.cursor-ring.hover::before {
  border-radius: 50%;
  animation-duration: 1.8s;
}
.cursor-ring.click {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

@keyframes cursor-orbit {
  to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  html.custom-cursor-active,
  html.custom-cursor-active * { cursor: none !important; }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 69px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

nav .logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0;
}
nav .logo .logo-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
  margin-right: 8px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

nav .nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav .nav-links a,
.language-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
  padding: 0 2px;
}
nav .nav-links a {
  transition: color 0.3s ease;
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}
nav .nav-links a:hover { color: var(--text); }
nav .nav-links a:hover::after { width: 100%; }
nav .nav-links a.active {
  color: var(--accent);
}
nav .nav-links a.active::after {
  width: 100%;
  height: 1.5px;
}

.language-toggle {
  gap: 5px;
  border: 0;
  border-radius: var(--radius-control);
  min-width: 54px;
  padding: 0 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
}

.language-toggle:hover {
  color: var(--text);
}

.language-toggle [data-lang-option] {
  opacity: 0.48;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.language-toggle [data-lang-option].is-active {
  color: var(--accent);
  opacity: 1;
}

.language-toggle-divider {
  color: var(--muted);
  opacity: 0.5;
}

/* ── Archive Page Shell ── */
.archive-hero {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 48px 72px;
}
.archive-hero .archive-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-hero .archive-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.archive-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.archive-hero .archive-desc {
  max-width: 560px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}
.archive-toolbar,
.archive-content {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 48px;
  padding-left: 48px;
}
.archive-toolbar { padding-bottom: 0; }
.archive-content { padding-bottom: 100px; }
.archive-footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px;
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.mobile-menu-btn:hover {
  border-color: var(--accent);
}
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.mm-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mm-link {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.3s ease;
}
.mm-link:hover, .mm-link.active {
  color: var(--accent);
}
.mm-num {
  font-size: 13px;
  color: var(--muted);
  margin-right: 24px;
}
.mm-link .logo-dot {
  display: none;
  margin-left: 16px;
}
.mm-link.active .logo-dot {
  display: inline-block;
}

/* ── Grid Background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(194, 207, 224, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 207, 224, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 15%, transparent 65%);
}

/* ── Glow ── */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.glow-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(34, 240, 160, 0.03);
}
.glow-2 {
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(34, 240, 160, 0.02);
}

/* ── Sector (Generic Section) ── */
.sector {
  position: relative;
  z-index: 1;
  padding: 132px 48px 108px;
  max-width: 1340px;
  margin: 0 auto;
}

.sector-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.sector-header .sh-left .sh-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 72%, var(--muted));
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sector-header .sh-left .sh-label .sh-bracket {
  color: var(--accent);
  opacity: 0.6;
}
.sector-header .sh-left h2 {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #dce6f2;
  line-height: 0.98;
  max-width: 860px;
}
.sector-header .sh-left h2 .sh-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}
.sector-header .sh-left h2 .sh-link:hover {
  color: var(--accent);
}
.sector-header .sh-left .sh-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 18px;
  line-height: 1.8;
}

/* ── Divider Line ── */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Container width helper ── */
.wide { max-width: 1400px; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: max(780px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: #05070a;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: -2;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.36) 0%, rgba(5, 7, 10, 0.08) 34%, rgba(5, 7, 10, 0.82) 78%, #05070a 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.12), transparent 45%, rgba(5, 7, 10, 0.1));
  pointer-events: none;
}

.hero-pane {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-pane + .hero-pane {
  border-left: 1px solid rgba(98, 239, 161, 0.22);
}

.hero-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  animation: hero-image-settle 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-pane-physical img {
  opacity: 0.5;
  filter: grayscale(0.9) contrast(1.14);
}

.hero-pane-interface img {
  opacity: 0.38;
  filter: saturate(0.78) contrast(1.18) hue-rotate(-8deg);
}

.hero-concept-map {
  position: absolute;
  inset: 10% 7% 13%;
  width: 86%;
  height: 77%;
  overflow: visible;
  pointer-events: none;
}

.hero-concept-map path,
.hero-concept-map rect,
.hero-concept-map circle {
  vector-effect: non-scaling-stroke;
}

.hero-concept-map-physical {
  opacity: 0.38;
}

.hero-concept-map-interface {
  opacity: 0.5;
}

.concept-outline,
.concept-void,
.concept-field {
  fill: rgba(5, 7, 10, 0.08);
  stroke: rgba(215, 224, 236, 0.2);
  stroke-width: 0.7;
}

.concept-cut {
  fill: none;
  stroke: rgba(98, 239, 161, 0.48);
  stroke-width: 0.9;
  stroke-dasharray: 3 3;
}

.concept-axis {
  fill: none;
  stroke: rgba(215, 224, 236, 0.14);
  stroke-width: 0.6;
}

.concept-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.15;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: hero-concept-draw 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.concept-range {
  fill: none;
  stroke: rgba(98, 239, 161, 0.12);
  stroke-width: 0.7;
  stroke-dasharray: 2 2;
}

.concept-node {
  fill: #05070a;
  stroke: var(--accent);
  stroke-width: 1;
}

.concept-node-active {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px rgba(98, 239, 161, 0.46));
  animation: pulse-dot 1.8s ease infinite;
}

.hero-concept-legend {
  position: absolute;
  right: 20px;
  bottom: 22%;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(215, 224, 236, 0.58);
  writing-mode: vertical-rl;
}

@keyframes hero-concept-draw {
  to { stroke-dashoffset: 0; }
}

.hero-pane-label {
  position: absolute;
  top: 104px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(194, 207, 224, 0.6);
}

.hero-copy {
  min-height: max(780px, 100svh);
  padding: 138px 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  max-width: 1120px;
}

.hero-identity {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 238, 248, 0.86);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(194, 207, 224, 0.58);
  white-space: nowrap;
}
.hero-status .status-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease infinite;
}
.hero-status .status-label {
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(72px, 10.5vw, 154px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #e2ebf7;
  max-width: 1220px;
  margin-bottom: 30px;
  position: relative;
  text-wrap: balance;
}
.hero-title > span {
  display: block;
}
.hero-title .accent-text {
  color: var(--accent);
}

.hero-lockup {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 1px solid rgba(98, 239, 161, 0.48);
}

.hero-name {
  color: rgba(226, 235, 247, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.1vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-role {
  color: rgba(226, 235, 247, 0.88);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(226, 235, 247, 0.86);
  max-width: 760px;
  line-height: 1.75;
  margin-bottom: 22px;
  position: relative;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin-bottom: 30px;
}

.hero-meta span {
  min-height: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(194, 207, 224, 0.16);
  background: rgba(5, 7, 10, 0.28);
  color: rgba(226, 235, 247, 0.68);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-action {
  --specular-rim: rgba(194, 207, 224, 0.24);
  --specular-hot: rgba(98, 239, 161, 0.62);
  --button-glow: rgba(98, 239, 161, 0.18);
  --specular-x: 50%;
  --specular-y: 0%;
  --specular-power: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(215, 224, 236, 0.76);
  background:
    radial-gradient(circle at var(--specular-x) var(--specular-y), rgba(98, 239, 161, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(5, 7, 10, 0.34);
  border-radius: var(--radius-button);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transition: color 250ms ease, background 250ms ease, transform 180ms ease, box-shadow 250ms ease;
}

.hero-action::before,
.hero-action::after,
.explore-btn::before,
.explore-btn::after,
.entity-about-btn::before,
.entity-about-btn::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.hero-action::before,
.explore-btn::before,
.entity-about-btn::before {
  inset: 0;
  padding: 1px;
  background:
    radial-gradient(circle at var(--specular-x) var(--specular-y), var(--specular-hot), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(315deg, var(--specular-rim), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc(0.42 + var(--specular-power) * 0.58);
  z-index: 1;
}

.hero-action::after,
.explore-btn::after,
.entity-about-btn::after {
  inset: -1px;
  background:
    radial-gradient(circle at var(--specular-x) var(--specular-y), rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(ellipse at 52% 72%, var(--button-glow), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: calc(var(--specular-power) * 0.72);
  transition: opacity 180ms ease;
  z-index: 1;
}

.hero-action > *,
.explore-btn > *,
.entity-about-btn > * {
  position: relative;
  z-index: 2;
}

.hero-action:hover {
  color: #f2f6fa;
  background:
    radial-gradient(circle at var(--specular-x) var(--specular-y), rgba(98, 239, 161, 0.2), transparent 38%),
    linear-gradient(120deg, rgba(98, 239, 161, 0.08), rgba(194, 207, 224, 0.035) 48%, rgba(98, 239, 161, 0.06)),
    rgba(5, 7, 10, 0.6);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(98, 239, 161, 0.1),
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(98, 239, 161, 0.12);
}

.hero-action:hover::after,
.explore-btn:hover::after,
.entity-about-btn:hover::after {
  opacity: calc(0.42 + var(--specular-power) * 0.58);
}

.hero-action:active,
.explore-btn:active,
.entity-about-btn:active {
  transform: scale(0.985);
}

.hero-action-primary {
  --specular-rim: rgba(6, 16, 11, 0.34);
  --specular-hot: rgba(255, 255, 255, 0.6);
  --button-glow: rgba(98, 239, 161, 0.34);
  color: #06100b;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #8af5b9, var(--accent) 62%, #45c985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -10px 28px rgba(6, 16, 11, 0.1),
    0 14px 30px rgba(98, 239, 161, 0.16);
}

.hero-action-primary:hover {
  color: #06100b;
  background:
    radial-gradient(circle at var(--specular-x) var(--specular-y), rgba(255, 255, 255, 0.46), transparent 34%),
    radial-gradient(ellipse at 50% 78%, rgba(98, 239, 161, 0.46), transparent 64%),
    linear-gradient(135deg, #a9ffd0, #62efa1 56%, #31bd7a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 30px rgba(226, 255, 239, 0.28),
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(98, 239, 161, 0.28);
}

@keyframes hero-image-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1.025); }
}

/* ── Practice (Track A/B) ── */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  isolation: isolate;
}
.track-card {
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.92), rgba(9, 14, 22, 0.92));
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease;
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
}
.track-card:hover {
  background: #0e131e;
}

.track-card .track-visual {
  width: 100%;
  height: 176px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-inset-media);
  box-shadow: inset 0 0 0 1px rgba(194, 207, 224, 0.035), 0 18px 44px rgba(0, 0, 0, 0.18);
}
.track-card .track-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 38%, rgba(98, 239, 161, 0.05) 47%, rgba(98, 239, 161, 0.14) 50%, rgba(98, 239, 161, 0.04) 53%, transparent 62%);
  transform: translateX(-125%);
  animation: diagram-scan 7.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.track-card .track-visual .tv-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  z-index: 1;
}
.track-diagram {
  position: absolute;
  inset: 8px 12px 36px;
  width: calc(100% - 24px);
  height: calc(100% - 44px);
  overflow: visible;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(98, 239, 161, 0.06));
}
.track-diagram * {
  vector-effect: non-scaling-stroke;
}
.td-boundary,
.td-contour,
.td-threshold,
.td-signal,
.td-feedback,
.td-rule,
.td-output,
.td-arrow {
  fill: none;
  stroke: rgba(194, 207, 224, 0.28);
  stroke-width: 1;
}
.td-contour { stroke-dasharray: 3 5; }
.td-mass {
  fill: rgba(98, 239, 161, 0.055);
  stroke: rgba(98, 239, 161, 0.42);
  stroke-width: 1;
}
.td-void {
  fill: rgba(6, 8, 12, 0.9);
  stroke: rgba(98, 239, 161, 0.72);
  stroke-width: 1;
}
.td-threshold { stroke-dasharray: 2 4; }
.td-route,
.td-signal,
.td-feedback {
  fill: none;
  stroke: rgba(98, 239, 161, 0.72);
  stroke-width: 1.25;
  stroke-dasharray: 6 5;
  transition: stroke-dashoffset 0.8s ease;
}
.track-card:hover .td-route,
.track-card:hover .td-signal,
.track-card:hover .td-feedback {
  stroke-dashoffset: -22;
}
.td-node,
.td-input {
  fill: rgba(6, 8, 12, 0.9);
  stroke: rgba(98, 239, 161, 0.58);
  stroke-width: 1;
}
.td-node-active,
.td-input-core,
.td-rule-core {
  fill: var(--accent);
  stroke: none;
}
.td-rule-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: diagram-core-pulse 2.4s ease-in-out infinite;
}
.td-pulse {
  fill: var(--accent);
  stroke: rgba(6, 8, 12, 0.82);
  stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(98, 239, 161, 0.9));
}
.td-pulse-secondary { opacity: 0.52; }
.td-rule {
  fill: rgba(98, 239, 161, 0.055);
  stroke: rgba(98, 239, 161, 0.66);
}
.td-output {
  fill: rgba(194, 207, 224, 0.025);
  stroke: rgba(194, 207, 224, 0.26);
  animation: diagram-output-pulse 3s ease-in-out infinite;
}
.td-output-b { animation-delay: 0.45s; }
.td-output-c { animation-delay: 0.9s; }
.td-arrow { stroke: rgba(98, 239, 161, 0.78); }
.td-label {
  fill: rgba(194, 207, 224, 0.54);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.td-label-accent { fill: rgba(98, 239, 161, 0.82); }
.td-label-end { text-anchor: end; }
.track-card .tv-sequence {
  position: absolute;
  inset: auto 14px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 56%, var(--muted));
  z-index: 4;
}
.track-card .tv-sequence::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 8%, transparent));
  opacity: 0.4;
}
.track-card .tv-sequence span:not(:first-child)::before {
  content: '→';
  margin-right: 6px;
  color: var(--muted);
}
.track-card:first-child .track-visual {
  background:
    radial-gradient(circle at 30% 38%, rgba(98, 239, 161, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(34,240,160,0.08) 0%, rgba(6,8,12,1) 70%);
}
.track-card:first-child .tv-pattern {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(34,240,160,0.15) 32px, rgba(34,240,160,0.15) 33px),
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(34,240,160,0.15) 32px, rgba(34,240,160,0.15) 33px);
}
.track-card:nth-child(2) .track-visual {
  background:
    radial-gradient(circle at 62% 48%, rgba(98, 239, 161, 0.09), transparent 32%),
    linear-gradient(135deg, rgba(34,240,160,0.04) 0%, rgba(6,8,12,1) 70%);
}
.track-card:nth-child(2) .tv-pattern {
  background-image:
    radial-gradient(circle at 12px 12px, rgba(34,240,160,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.track-card .track-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  min-height: 12px;
}

.track-card h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  min-height: 50px;
}

.track-card .track-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  min-height: 34px;
}

.track-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 400px;
  min-height: 108px;
}

.track-facts {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.track-facts > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.track-facts dt,
.track-facts dd {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
}
.track-facts dt {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.track-facts dd { color: var(--text-secondary); }

.track-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}
.track-action:hover {
  gap: 12px;
  color: var(--accent-strong);
}

@keyframes diagram-scan {
  0%, 16% { transform: translateX(-125%); opacity: 0; }
  24% { opacity: 1; }
  48%, 100% { transform: translateX(125%); opacity: 0; }
}

@keyframes diagram-core-pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.62; }
  50% { transform: scale(1.28); opacity: 1; }
}

@keyframes diagram-output-pulse {
  0%, 100% { fill: rgba(194, 207, 224, 0.025); stroke: rgba(194, 207, 224, 0.22); }
  42% { fill: rgba(98, 239, 161, 0.075); stroke: rgba(98, 239, 161, 0.52); }
}

.practice-method {
  grid-column: 1 / -1;
  padding: 28px;
  background: rgba(34, 240, 160, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  overflow: hidden;
}
.practice-method-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.practice-method-intro span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.practice-method-intro p {
  font-size: 13px;
  color: var(--muted);
}
.practice-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-radius: var(--radius-inset-media);
  overflow: hidden;
  background: rgba(5, 7, 10, 0.14);
}
.practice-steps li {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-left: 1px solid var(--border);
}
.practice-steps li:first-child { padding-left: 0; border-left: 0; }
.practice-steps li:last-child { padding-right: 0; }
.practice-steps span,
.practice-steps small {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.practice-steps strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}
.practice-steps small { letter-spacing: 0; text-transform: none; }

/* ── Works / Project Grid ── */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.3s ease;
  border-radius: var(--radius-control);
}
.filter-bar .filter-btn:hover {
  color: var(--text);
  border-color: rgba(34, 240, 160, 0.2);
}
.filter-bar .filter-btn.active {
  color: var(--accent);
  border-color: rgba(34, 240, 160, 0.3);
  background: rgba(34, 240, 160, 0.04);
}

body.mode-arch .filter-bar .filter-btn.active {
  color: var(--accent-strong);
  border-color: rgba(128, 107, 76, 0.34);
  background: rgba(128, 107, 76, 0.06);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 88px;
  grid-auto-flow: dense;
  gap: 14px;
}

.project-card {
  position: relative;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
  border-radius: var(--radius-media);
  border: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  display: block;
  grid-column: span 4;
  grid-row: span 3;
  min-height: 250px;
}
a.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-media);
}
.project-card.featured {
  grid-column: span 6;
  grid-row: span 5;
}
.project-card.wide {
  grid-column: span 6;
  grid-row: span 3;
}
.project-card.tall {
  grid-column: span 3;
  grid-row: span 5;
}
.project-card.compact {
  grid-column: span 3;
  grid-row: span 3;
}
.project-card.hidden {
  display: none;
}

.project-card .pc-visual {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .pc-visual {
  transform: scale(1.04);
}
.project-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}
.project-card .pc-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.project-card .pc-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,8,12,0.92) 0%, rgba(6,8,12,0.18) 58%, rgba(6,8,12,0.02) 100%),
    linear-gradient(180deg, rgba(194, 207, 224, 0.07), transparent 18%);
  z-index: 1;
}

.project-card .pc-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 22px 22px;
  z-index: 2;
}
.project-card .pc-info .pc-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.13em;
  color: color-mix(in srgb, var(--accent) 56%, var(--muted));
  margin-bottom: 7px;
  text-transform: uppercase;
}
.project-card .pc-info h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: #e4edf8;
  margin-bottom: 4px;
  letter-spacing: 0;
  line-height: 1.08;
}
.project-card .pc-info .pc-meta {
  font-size: 13px;
  color: rgba(194, 207, 224, 0.64);
}

/* Project card gradient variations */
.pc-visual-1 { background: url('../images/projects/page-06-hero.jpg') center/cover no-repeat; }
.pc-visual-2 { background: url('../images/projects/page-14-hero.jpg') center/cover no-repeat; }
.pc-visual-3 { background: url('../images/projects/infinitas/hero.jpg') center/cover no-repeat; }
.pc-visual-infinitas-app {
  background:
    url('../projects/emotion-muse/prototype/assets/prototype-mobile.jpg') 96% 42% / 22% auto no-repeat,
    url('../projects/emotion-muse/prototype/assets/prototype-desktop.jpg') 4% 42% / 78% auto no-repeat,
    linear-gradient(135deg, #11191a, #05090a);
}
.pc-visual-4 { background: url('../images/projects/restrained/hero.jpg') center/cover no-repeat; }
.pc-visual-5 { background: url('../images/projects/page-08-hero.jpg') center/cover no-repeat; }
.pc-visual-weique { background: url('https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/cf5647241456595.695bf61b2271b.jpeg') center/cover no-repeat; }
.pc-visual-goodafternoon { background: url('https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/bff141241370389.69563e0c00cda.png') center/cover no-repeat; }
.pc-visual-chengdu-logistics { background: url('../projects/nda-assets/chengdu-cross-border-trade-blurred.jpg') center/cover no-repeat; }
.pc-visual-yangtze { background: url('../projects/nda-assets/yangtze-river-conservation-blurred.jpg') center/cover no-repeat; }
.pc-visual-nanjing-0607 { background: url('../projects/nda-assets/nanjing-xinmin-substation-blurred.jpg') center/cover no-repeat; }
.pc-visual-dubai-square-interior { background: url('../projects/nda-assets/dubai-square-mall-interior-boulevard-blurred.jpg') center/cover no-repeat; }
.pc-visual-dubai-creek-junctions { background: url('../projects/nda-assets/dubai-creek-junction-points-blurred.jpg') center/cover no-repeat; }
.pc-visual-dubai-square-facade { background: url('../projects/nda-assets/dubai-square-mall-facade-blurred.jpg') center/cover no-repeat; }
.pc-visual-findme { background: linear-gradient(135deg, #0f1a1a, #1a2420); }
.pc-visual-kaloop { background: linear-gradient(135deg, #1a1520, #201a1a); }
.pc-visual-tripmind,
.wc-visual-tripmind {
  background:
    radial-gradient(circle at 84% 10%, rgba(69, 136, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #e7edf0 0%, #f7f3eb 54%, #dce5e8 100%);
}
.tripmind-product-showcase {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}
.tripmind-product-screen {
  position: absolute;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #0f1d22;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  box-shadow: 0 18px 44px rgba(17, 33, 39, 0.2);
}
.tripmind-product-screen-desktop {
  width: 70%;
  height: 68%;
  top: 8%;
  left: 5%;
}
.tripmind-product-screen-foldable {
  width: 19%;
  height: 30%;
  top: 8%;
  right: 4%;
  z-index: 2;
}
.tripmind-product-screen-mobile {
  width: 19%;
  height: 30%;
  top: 46%;
  right: 4%;
  z-index: 3;
}
.tripmind-product-label {
  position: absolute;
  top: 5%;
  right: 4%;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid rgba(19, 41, 50, 0.14);
  border-radius: 999px;
  background: rgba(250, 252, 252, 0.88);
  color: #17303b;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.work-card .tripmind-product-screen-desktop {
  width: 90%;
  left: 5%;
}
.work-card .tripmind-product-screen-foldable,
.work-card .tripmind-product-screen-mobile {
  display: none;
}
.work-card .tripmind-product-label {
  top: 5%;
  right: 5%;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .project-card .tripmind-product-screen-desktop {
    width: 90%;
    left: 5%;
  }
  .project-card .tripmind-product-screen-foldable,
  .project-card .tripmind-product-screen-mobile {
    display: none;
  }
}
.pc-visual-nova,
.wc-visual-nova {
  background:
    linear-gradient(135deg, rgba(2, 8, 10, 0.02), rgba(2, 8, 10, 0.46)),
    url('../images/projects/nova-autonomous-journey-hero.png') center 52%/cover no-repeat;
}
.pc-visual-quietbar,
.wc-visual-quietbar {
  background:
    radial-gradient(circle at 72% 25%, rgba(98,202,164,.35), transparent 28%),
    url('../quietbar/icon.png') center/92px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.05) 39px),
    linear-gradient(145deg, #18211d, #090c0b 72%);
}
.pc-visual-spatial-critic {
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(185,243,107,0.7) 49.8%, rgba(185,243,107,0.7) 50.2%, transparent 50.4%),
    radial-gradient(circle at 22% 27%, #b9f36b 0 3px, transparent 4px),
    radial-gradient(circle at 78% 68%, #b9f36b 0 3px, transparent 4px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(194,207,224,0.08) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(194,207,224,0.08) 32px),
    linear-gradient(135deg, #101510, #070a08);
}

.pc-visual-nda {
  filter: none;
  -webkit-filter: none;
  transition: transform 0.3s ease;
}

/* ── Video cards ── */
.pc-visual-video {
  overflow: hidden;
}
.pc-visual-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-tag-nda {
  color: #ff6b6b !important;
  border-color: rgba(255,107,107,0.3) !important;
}

.pc-nda {
  opacity: 0.85;
}
.pc-nda:hover .pc-visual {
  transform: scale(1.02);
}
.pc-nda-note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #ff6b6b;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ── Explore Button ── */
.explore-btn {
  --specular-rim: rgba(194, 207, 224, 0.22);
  --specular-hot: rgba(98, 239, 161, 0.46);
  --specular-x: 50%;
  --specular-y: 0%;
  --specular-power: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  min-height: 46px;
  padding: 0 28px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-button);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
  transition: color 0.3s ease, background 0.3s ease, transform 180ms ease, box-shadow 0.3s ease;
}
.explore-btn:hover {
  background: rgba(194, 207, 224, 0.08);
  color: #f2f6fa;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.22);
}
.explore-btn-arrow {
  transition: transform 0.3s ease;
}
.explore-btn:hover .explore-btn-arrow {
  transform: translateX(4px);
}

/* ── Field Notes / Accordion Gallery ── */
.field-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 48px;
}

.accordion-gallery {
  --ag-accent: var(--accent);
  --ag-gap: 10px;
  --ag-radius: var(--radius-media);
  --ag-active-grow: 4.333;
  display: flex;
  flex-direction: row;
  gap: var(--ag-gap);
  width: 100%;
  height: clamp(380px, 42vw, 540px);
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.ag-panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ag-radius);
  background: #090b0f;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transform: perspective(1400px) rotateY(var(--ag-tilt, 0deg));
  transform-origin: center;
  transition: flex-grow 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: flex-grow, transform;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel--active {
  flex-grow: var(--ag-active-grow);
  --ag-tilt: 0deg;
}

.ag-panel:not(.ag-panel--active):has(~ .ag-panel--active) { --ag-tilt: 5deg; }
.ag-panel--active ~ .ag-panel:not(.ag-panel--active) { --ag-tilt: -5deg; }

.ag-panel:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ag-accent);
}

.ag-panel__frame,
.ag-panel__media,
.ag-panel__overlay {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.ag-panel__media {
  inset: 50% auto auto 50%;
  width: max(440px, 120%);
  height: 100%;
  transform: translate(-50%, -50%) translateX(var(--ag-shift, 0));
  filter: grayscale(1);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
  will-change: transform, filter;
}

.ag-panel--active .ag-panel__media {
  --ag-shift: 0;
  filter: grayscale(0);
}

.ag-panel:not(.ag-panel--active):has(~ .ag-panel--active) .ag-panel__media { --ag-shift: -18px; }
.ag-panel--active ~ .ag-panel:not(.ag-panel--active) .ag-panel__media { --ag-shift: 18px; }

.ag-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ag-panel__overlay {
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 38%, rgba(6, 8, 12, 0.82) 100%),
    rgba(6, 8, 12, 0.36);
  transition: background-color 600ms ease;
}

.ag-panel--active .ag-panel__overlay {
  background:
    linear-gradient(180deg, transparent 38%, rgba(6, 8, 12, 0.82) 100%),
    rgba(6, 8, 12, 0.02);
}

.ag-panel__label {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 360ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ag-panel--active .ag-panel__label {
  opacity: 1;
  transform: translateX(0);
}

.ag-panel__bar {
  flex: 0 0 auto;
  width: 3px;
  height: 30px;
  border-radius: 3px;
  background: var(--ag-accent);
  box-shadow: 0 0 12px rgba(34, 240, 160, 0.48);
}

.ag-panel__label strong,
.ag-panel__label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-panel__label strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.ag-panel__label small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.76);
}

/* ── Transmission / Article List ── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-row {
  display: grid;
  grid-template-columns: 48px 1fr 140px;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
}
a.article-row:hover {
  border-color: rgba(34, 240, 160, 0.08);
  background: #0e131e;
}

.article-row .ar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  opacity: 0.5;
}
.article-row .ar-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
a.article-row:hover .ar-title { color: var(--accent); }
.article-row .ar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.article-row .ar-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.article-row .ar-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Entity / About ── */
.entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.entity-left .entity-role {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 64%, var(--muted));
  margin-bottom: 18px;
}
.entity-left .entity-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 560px;
}

/* ── Entity Contact ── */
.entity-contact {
  display: grid;
  gap: 8px;
}
.entity-contact a {
  color: rgba(226, 235, 247, 0.76);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 60px;
  padding: 12px 44px 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: linear-gradient(90deg, rgba(17, 23, 34, 0.58), rgba(17, 23, 34, 0.2));
}
.entity-contact a span,
.entity-contact a strong {
  font-family: var(--font-mono);
  font-weight: 400;
}
.entity-contact a span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.entity-contact a strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.entity-contact a::after {
  content: '↗';
  position: absolute;
  top: 13px;
  right: 14px;
  color: var(--accent);
  opacity: 0.58;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.entity-contact a:hover {
  color: var(--text);
  border-color: rgba(98, 239, 161, 0.28);
  background: rgba(98, 239, 161, 0.04);
}
.entity-contact a:hover::after {
  transform: translate(2px, -2px);
  opacity: 1;
}

.entity-about-btn {
  --specular-rim: rgba(194, 207, 224, 0.18);
  --specular-hot: rgba(98, 239, 161, 0.42);
  --specular-x: 50%;
  --specular-y: 0%;
  --specular-power: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: none;
  color: #888;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 22px rgba(0, 0, 0, 0.12);
  transition: color 0.3s ease, background 0.3s ease, transform 180ms ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.entity-about-btn:hover {
  color: #ccc;
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}
footer .ft-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .ft-location {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
footer .ft-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
footer .ft-email {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 82px;
    gap: 16px;
  }
  .project-card.featured {
    grid-column: 1 / -1;
    grid-row: span 4;
  }
  .project-card,
  .project-card.wide,
  .project-card.tall,
  .project-card.compact {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 768px) {
  nav { height: 61px; padding: 0 16px; }
  nav .nav-links { gap: 8px; overflow-x: visible; }
  nav .nav-links a { display: none; }
  .language-toggle {
    min-width: 50px;
    padding: 0 2px;
    font-size: 13px;
  }
  .mobile-menu-btn { display: flex; }
  .mobile-menu-overlay { padding: 0 24px; }
  .archive-hero { padding: 100px 16px 40px; }
  .archive-hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .archive-hero .archive-desc { font-size: 13px; }
  .archive-toolbar,
  .archive-content {
    padding-right: 16px;
    padding-left: 16px;
  }
  .archive-content { padding-bottom: 56px; }
  .archive-footer { padding: 24px 16px; }
  .hero {
    min-height: max(820px, 100svh);
    background: #05070a;
  }
  .hero-media {
    display: block;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.12) 0%, rgba(5, 7, 10, 0.04) 35%, rgba(5, 7, 10, 0.7) 56%, #05070a 69%, #05070a 100%),
      linear-gradient(90deg, rgba(5, 7, 10, 0.14), transparent 68%);
  }
  .hero-pane {
    position: absolute;
  }
  .hero-pane-physical {
    top: 61px;
    right: 0;
    left: 0;
    height: clamp(360px, 51svh, 460px);
  }
  .hero-pane-interface {
    top: clamp(150px, 20svh, 190px);
    right: 16px;
    width: 43vw;
    height: clamp(180px, 25svh, 230px);
    z-index: 2;
    border: 1px solid rgba(98, 239, 161, 0.42);
    background: #07100c;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
  }
  .hero-pane + .hero-pane {
    border-left: 1px solid rgba(98, 239, 161, 0.42);
  }
  .hero-pane-physical img {
    opacity: 0.66;
    object-position: 47% center;
  }
  .hero-pane-interface img {
    opacity: 0.7;
  }
  .hero-copy {
    min-height: max(820px, 100svh);
    padding: clamp(530px, 66svh, 620px) 16px 30px;
    justify-content: flex-start;
  }
  .hero-top {
    position: absolute;
    top: 84px;
    right: 16px;
    left: 16px;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    display: none;
  }
  .hero-identity {
    max-width: 205px;
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-status {
    display: none;
  }
  .hero-title {
    position: absolute;
    top: clamp(330px, 44svh, 405px);
    right: 16px;
    left: 16px;
    z-index: 4;
    font-size: clamp(54px, 15vw, 66px);
    line-height: 0.86;
    letter-spacing: -0.052em;
    margin: 0;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  }
  .hero-lockup {
    position: absolute;
    top: 88px;
    right: 16px;
    left: 16px;
    z-index: 5;
    gap: 7px;
    max-width: 280px;
    margin: 0;
    padding-left: 12px;
  }
  .hero-name {
    font-size: 23px;
  }
  .hero-role {
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.55;
  }
  .hero-sub {
    max-width: 38ch;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.65;
  }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .hero-meta span {
    min-height: 38px;
    padding: 10px 0;
    border-width: 1px 0 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.4;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-meta span:nth-child(4) { display: none; }
  .hero-pane-label {
    top: auto;
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 20px);
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-pane-interface .hero-pane-label {
    bottom: 9px;
    left: 9px;
    font-size: 13px;
  }
  .hero-pane-physical .hero-pane-label { display: none; }
  .hero-pane-physical .hero-concept-map {
    inset: 17% 7% 22%;
    width: 86%;
    height: 61%;
    opacity: 0.42;
  }
  .hero-pane-interface .hero-concept-map {
    inset: 10% 7% 18%;
    width: 86%;
    height: 72%;
  }
  .hero-concept-legend { display: none; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .hero-action {
    min-height: 48px;
    padding: 0 14px;
    gap: 8px;
    font-size: 13px;
  }
  .sector { padding: 72px 16px 48px; }
  .sector-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sector-header .sh-left h2 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .sector-header .sh-desc { font-size: 13px; max-width: 100%; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { padding: 24px 16px; }
  .track-card .track-tag,
  .track-card h3,
  .track-card .track-sub,
  .track-card p {
    min-height: 0;
  }
  .track-action {
    margin-top: 26px;
    padding-top: 0;
  }
  .practice-method { padding: 20px 16px; }
  .practice-method-intro {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
  }
  .practice-steps { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .practice-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  .project-card,
  .project-card.featured,
  .project-card.wide,
  .project-card.tall,
  .project-card.compact {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
  .project-card .pc-info { padding: 32px 16px 16px; }
  .project-card .pc-info h3 { font-size: 18px; }
  .entity-grid { grid-template-columns: 1fr; gap: 32px; }
  .entity-contact { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 12px; }
  .article-row .ar-right { display: none; }
  .explore-btn {
    min-height: 44px;
    padding: 0 24px;
    font-size: 13px;
    margin-top: 24px;
  }
  .accordion-gallery {
    flex-direction: column;
    height: 630px;
    gap: 6px;
    perspective: none;
  }
  .ag-panel {
    min-height: 72px;
    transform: none;
  }
  .ag-panel__media {
    inset: 50% 0 auto 0;
    width: 100%;
    height: max(260px, 100%);
    transform: translateY(-50%) translateY(var(--ag-shift-y, 0));
  }
  .ag-panel:not(.ag-panel--active):has(~ .ag-panel--active) .ag-panel__media { --ag-shift-y: -10px; }
  .ag-panel--active ~ .ag-panel:not(.ag-panel--active) .ag-panel__media { --ag-shift-y: 10px; }
  .ag-panel__label { right: 16px; bottom: 16px; left: 16px; }
  .ag-panel__label strong { font-size: 18px; }
  .filter-bar { gap: 6px; margin-bottom: 24px; }
  .filter-bar .filter-btn { padding: 0 14px; font-size: 13px; }
  footer { padding: 24px 16px; }
  footer .ft-content { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .filter-bar .filter-btn { padding: 0 12px; font-size: 13px; }
  .track-card { padding: 24px 20px; }
  .track-card .track-visual { height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { cursor: auto; }
  .grid-scan-intro { display: none; }
  body.grid-preview-active .grid-scan-intro { display: block; }
  .hybrid-loader--split .hybrid-loader__slash,
  .hybrid-loader--split .hybrid-loader__letter {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hybrid-loader--split .hybrid-loader__phase {
    opacity: 0;
    transform: none;
    animation: none;
  }
  .hybrid-loader--split .hybrid-loader__phase--ready { opacity: 1; }
  .hybrid-loader--split .hybrid-loader__signal-rail {
    transform: scaleX(1);
    animation: none;
  }
  .hybrid-loader--split .hybrid-loader__signal-rail::after { display: none; }
  .gateway-enter {
    transform: translate3d(-50%, 0, 0);
    transition: opacity 180ms linear;
  }
  .cursor-dot,
  .cursor-ring { display: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ag-panel,
  .ag-panel__media,
  .ag-panel__label {
    transition: none;
    will-change: auto;
  }
  .hero-pane img,
  .concept-route,
  .concept-node-active,
  .hero-status .status-dot {
    animation: none;
  }
  .track-card .track-visual::after,
  .td-rule-core,
  .td-output {
    animation: none;
  }
  .td-pulse { display: none; }
  .track-card:hover .td-route,
  .track-card:hover .td-signal,
  .track-card:hover .td-feedback {
    stroke-dashoffset: 0;
  }
  .hero-pane img {
    transform: scale(1.025);
  }
  .concept-route { stroke-dashoffset: 0; }
}

/* ═════════════════════════════════════════════════════════
   MODE TOGGLE + ARCHITECTURE VIEW
   ═════════════════════════════════════════════════════════ */

/* ── Toggle Button ── */
.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  margin-left: 0;
  position: relative;
}
.mode-toggle:hover {
  color: var(--accent);
}
.mode-toggle .mt-icon {
  position: absolute;
  display: flex;
  width: 18px;
  height: 18px;
  line-height: 1;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.35s ease;
}
.mode-toggle .mt-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mode-toggle .mt-icon-dark {
  color: var(--accent);
  opacity: 1;
  transform: scale(1);
}
.mode-toggle .mt-icon-arch {
  color: var(--muted);
  opacity: 0;
  transform: rotate(-35deg) scale(0.65);
}

/* ── Logo separator ── */
.logo-sep {
  display: inline-block;
  font-weight: 700;
  transform: scaleX(1.4) translateX(1px);
  opacity: 0.9;
  margin-right: 0;
  letter-spacing: -0.05em;
}
.logo-v {
  display: inline-block;
  transform: scaleX(0.85);
  letter-spacing: -0.05em;
  margin-left: 2px;
}

/* ── Architecture Mode Override ── */
body.mode-arch {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #2c2c2c;
  --text-primary: #2c2c2c;
  --text-secondary: #5c5c5c;
  --muted: #71685f;
  --accent: #b8a88a;
  --accent-strong: #786343;
  --border: rgba(44, 44, 44, 0.08);
  --ring: rgba(44, 44, 44, 0.1);
}

body.mode-arch .mode-toggle .mt-icon-dark { opacity: 0; color: var(--muted); transform: rotate(35deg) scale(0.65); }
body.mode-arch .mode-toggle .mt-icon-arch { opacity: 1; color: var(--accent-strong); transform: rotate(0) scale(1); }
body.mode-arch .mode-toggle:hover { color: var(--accent-strong); }
body.mode-arch .language-toggle:hover {
  color: var(--text);
}
body.mode-arch .language-toggle [data-lang-option].is-active { color: var(--accent-strong); }

body.mode-arch .grid-bg,
body.mode-arch .glow { opacity: 0 !important; }

body.mode-arch nav {
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.mode-arch nav .nav-links a.active { color: var(--accent-strong); }
body.mode-arch a:focus-visible,
body.mode-arch button:focus-visible { outline-color: var(--accent-strong); }

body.mode-arch .hero-title {
  color: #f1eee6;
  font-weight: 400;
}
body.mode-arch .sector-header .sh-left h2 {
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  color: var(--text);
}
body.mode-arch .hero-meta span {
  background: rgba(247, 246, 242, 0.12);
  border-color: rgba(241, 238, 230, 0.2);
  color: rgba(241, 238, 230, 0.72);
}
body.mode-arch .hero-action,
body.mode-arch .explore-btn,
body.mode-arch .entity-about-btn {
  --specular-rim: rgba(128, 107, 76, 0.24);
  --specular-hot: rgba(184, 168, 138, 0.5);
}
body.mode-arch .hero-action-primary {
  --specular-rim: rgba(80, 63, 38, 0.28);
  --specular-hot: rgba(255, 255, 255, 0.56);
  color: #21190f;
}
body.mode-arch .hero-identity,
body.mode-arch .hero-status,
body.mode-arch .hero-sub { color: rgba(241, 238, 230, 0.74); }
body.mode-arch .hero-status .status-label { color: var(--accent); }
body.mode-arch .sh-desc { color: var(--text-secondary); }
body.mode-arch .sector-header .sh-left .sh-label,
body.mode-arch .sector-header .sh-left h2 .sh-link:hover,
body.mode-arch .practice-method-intro span,
body.mode-arch .entity-left .entity-role { color: var(--accent-strong); }

body.mode-arch ::selection { background: var(--accent-strong); color: #fff; }

body.mode-arch .cursor-ring.hover {
  border-color: rgba(184, 168, 138, 0.3);
  background: rgba(184, 168, 138, 0.05);
}

body.mode-arch .track-card {
  background: linear-gradient(180deg, rgba(22, 27, 35, 0.98), rgba(12, 16, 22, 0.98));
  border-color: rgba(184, 168, 138, 0.24);
}
body.mode-arch .track-card:hover { background: #151a22; }
body.mode-arch .track-card h3 { color: #f1eee6; }
body.mode-arch .track-card p,
body.mode-arch .track-facts dd { color: rgba(241, 238, 230, 0.76); }
body.mode-arch .track-card .track-tag,
body.mode-arch .track-card .track-sub,
body.mode-arch .track-facts dt { color: rgba(241, 238, 230, 0.62); }
body.mode-arch .track-facts,
body.mode-arch .track-facts > div { border-color: rgba(241, 238, 230, 0.14); }
body.mode-arch .track-action { border-color: rgba(184, 168, 138, 0.42); }
body.mode-arch .track-card .track-visual {
  box-shadow: inset 0 0 0 1px rgba(241, 238, 230, 0.055), 0 18px 44px rgba(0, 0, 0, 0.22);
}
body.mode-arch .track-diagram { filter: drop-shadow(0 0 8px rgba(184, 168, 138, 0.08)); }
body.mode-arch .track-card .track-visual::after {
  background: linear-gradient(104deg, transparent 38%, rgba(184, 168, 138, 0.05) 47%, rgba(184, 168, 138, 0.16) 50%, rgba(184, 168, 138, 0.04) 53%, transparent 62%);
}
body.mode-arch .track-card:first-child .track-visual {
  background:
    radial-gradient(circle at 30% 38%, rgba(184, 168, 138, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(184, 168, 138, 0.08) 0%, rgba(8, 11, 16, 1) 70%);
}
body.mode-arch .track-card:nth-child(2) .track-visual {
  background:
    radial-gradient(circle at 62% 48%, rgba(184, 168, 138, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(184, 168, 138, 0.05) 0%, rgba(8, 11, 16, 1) 70%);
}
body.mode-arch .track-card:first-child .tv-pattern {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(184, 168, 138, 0.16) 32px, rgba(184, 168, 138, 0.16) 33px),
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(184, 168, 138, 0.16) 32px, rgba(184, 168, 138, 0.16) 33px);
}
body.mode-arch .track-card:nth-child(2) .tv-pattern {
  background-image: radial-gradient(circle at 12px 12px, rgba(184, 168, 138, 0.13) 1px, transparent 1px);
}
body.mode-arch .td-mass,
body.mode-arch .td-rule {
  fill: rgba(184, 168, 138, 0.075);
  stroke: rgba(184, 168, 138, 0.62);
}
body.mode-arch .td-void,
body.mode-arch .td-node,
body.mode-arch .td-input {
  fill: rgba(8, 11, 16, 0.92);
  stroke: rgba(184, 168, 138, 0.66);
}
body.mode-arch .td-route,
body.mode-arch .td-signal,
body.mode-arch .td-feedback { stroke: rgba(184, 168, 138, 0.78); }
body.mode-arch .td-arrow { stroke: rgba(184, 168, 138, 0.88); }
body.mode-arch .td-label-accent { fill: rgba(205, 190, 161, 0.94); }
body.mode-arch .td-pulse {
  stroke: rgba(8, 11, 16, 0.84);
  filter: drop-shadow(0 0 5px rgba(184, 168, 138, 0.9));
}
body.mode-arch .td-output { animation-name: diagram-output-pulse-arch; }
body.mode-arch .practice-method {
  background: rgba(184, 168, 138, 0.04);
  border-color: rgba(184, 168, 138, 0.15);
}

body.mode-arch .project-card {
  background: transparent;
  box-shadow: none;
}
body.mode-arch a.project-card:focus-visible { outline-color: #8a7656; }
body.mode-arch .project-card .pc-overlay {
  background: linear-gradient(to top, rgba(14, 13, 11, 0.96) 0%, rgba(14, 13, 11, 0.78) 48%, rgba(14, 13, 11, 0.18) 76%, rgba(14, 13, 11, 0.03) 100%);
}
body.mode-arch .project-card .pc-info .pc-tag { color: rgba(210, 195, 165, 0.92); }
body.mode-arch .project-card .pc-info h3 { color: #f5f1e8; }
body.mode-arch .project-card .pc-info .pc-meta { color: rgba(245, 241, 232, 0.72); }
body.mode-arch .pc-nda { opacity: 1; }
body.mode-arch .article-list { gap: 8px; }
body.mode-arch .article-row {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(44, 44, 44, 0.1);
}
body.mode-arch a.article-row:hover {
  background: #f0ece3;
  border-color: rgba(128, 107, 76, 0.34);
}
body.mode-arch a.article-row:hover .ar-title { color: var(--accent-strong); }
body.mode-arch .article-row .ar-num { opacity: 0.82; }
body.mode-arch .article-row .ar-tag { background: rgba(128, 107, 76, 0.04); }
body.mode-arch .entity-contact a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(44, 44, 44, 0.12);
}
body.mode-arch .entity-contact a::after {
  color: var(--accent-strong);
  opacity: 0.78;
}
body.mode-arch .entity-contact a:hover {
  color: var(--text);
  background: #f0ece3;
  border-color: rgba(128, 107, 76, 0.42);
}
body.mode-arch .entity-about-btn {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.45);
}
body.mode-arch .entity-about-btn:hover {
  color: var(--text);
  background: #f0ece3;
}
body.mode-arch .divider-line { background: rgba(44,44,44,0.06); }
body.mode-arch .sh-bracket { color: var(--accent); }

@keyframes diagram-output-pulse-arch {
  0%, 100% { fill: rgba(241, 238, 230, 0.025); stroke: rgba(241, 238, 230, 0.24); }
  42% { fill: rgba(184, 168, 138, 0.09); stroke: rgba(184, 168, 138, 0.62); }
}

@media (prefers-reduced-motion: reduce) {
  body.mode-arch .track-card .track-visual::after,
  body.mode-arch .td-rule-core,
  body.mode-arch .td-output { animation: none; }
}

@media (max-width: 768px) {
  .mode-toggle { margin-left: 0; }
  body.mode-arch .sector-header .sh-left h2 {
    font-size: clamp(28px, 9vw, 42px);
  }
}

/* Accessibility legibility floor for shared portfolio surfaces. */
.skip-link,
nav .logo,
nav .nav-links a,
.language-toggle,
.hero-identity,
.hero-status,
.hero-role,
.hero-meta,
.hero-pane-label,
.sector-header .sh-left .sh-label,
.track-card .track-tag,
.track-card .track-sub,
.track-card p,
.track-facts dt,
.track-facts dd,
.track-action,
.practice-method-intro span,
.practice-method-intro p,
.practice-steps span,
.practice-steps small,
.project-card .pc-info .pc-tag,
.project-card .pc-info .pc-meta,
.pc-nda-note,
.explore-btn,
.ag-panel__label small,
.article-row .ar-num,
.article-row .ar-tag,
.article-row .ar-date,
.entity-left .entity-role,
.entity-contact a span,
.entity-contact a strong,
.entity-about-btn,
.archive-label,
.filter-bar .filter-btn,
.work-card .wc-tag,
.work-card .wc-meta,
.work-card .wc-nda-note,
.work-card .wc-more,
footer .ft-location,
footer .ft-copy,
footer .ft-email {
  font-size: 13px;
}

.track-card .tv-sequence {
  font-size: 13px;
}

.td-label {
  display: none;
}

.hero-concept-legend,
.hero-concept-legend span {
  font-size: 13px;
}

.hero-action-primary {
  background-color: var(--accent);
}

.hero-action span {
  font-size: inherit;
}

.hero-action {
  font-size: 13px;
}

.archive-label,
.work-card .wc-tag,
.work-card .wc-meta,
.work-card .wc-nda-note,
.work-card .wc-more {
  font-size: 13px !important;
}

.filter-bar .filter-btn,
.entity-about-btn {
  min-height: 44px;
}

@media (max-width: 768px) {
  .mobile-menu-btn .mm-icon,
  .mobile-menu-btn .mm-text,
  .hero-pane-label,
  .filter-bar .filter-btn {
    font-size: 13px !important;
  }

  .track-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .project-card.featured,
  .project-card.wide,
  .project-card.tall,
  .project-card.compact {
    width: 100%;
    min-width: 0;
  }
}
