html, body { overflow-anchor: none; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F6F2;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(247, 246, 242, 0.92);
  --text-main: #141414;
  --text-muted: #585854;
  --border-hairline: rgba(20, 20, 20, 0.12);
  --cad-accent: #141414;
  --cad-glow: rgba(20, 20, 20, 0.08);
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1420px;
  --header-offset: 112px;
}

[data-theme="blueprint"] {
  --bg: #0B0F17;
  --bg-surface: #111722;
  --bg-glass: rgba(11, 15, 23, 0.92);
  --text-main: #E2E8F0;
  --text-muted: #8B9BB0;
  --border-hairline: rgba(226, 232, 240, 0.15);
  --cad-accent: #00E5FF;
  --cad-glow: rgba(0, 229, 255, 0.22);
}

html {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding: 0 40px;
  position: relative;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   3-COLUMN HEADER & NAVIGATION
   ========================================================================== */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  transition: padding 0.36s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, box-shadow 0.36s ease;
}

.header-left { display: flex; justify-content: flex-start; align-items: center; }

nav { display: flex; gap: 24px; }
nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--cad-accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
nav a:hover, nav a.active {
  color: var(--text-main);
  font-weight: 500;
}
[data-theme="blueprint"] nav a.active {
  color: var(--cad-accent);
}
nav a:hover::after, nav a.active::after { width: 100%; }

.header-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text-main); cursor: pointer; }

/* ==========================================================================
   KINETIC CHRONO-SNAP LOGO ENGINE
   ========================================================================== */
.brand-symbol-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-symbol-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cad-wire-grid {
  stroke: currentColor;
  stroke-width: 0.75;
  opacity: 0.25;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}

.cad-monogram-core {
  stroke: var(--cad-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, filter 0.3s ease;
}

[data-theme="blueprint"] .cad-monogram-core {
  filter: drop-shadow(0 0 4px var(--cad-accent));
}

.cad-energy-ring {
  fill: none;
  stroke: var(--cad-accent);
  opacity: 0;
  pointer-events: none;
}

.cad-node-halo {
  fill: #00E5FF;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: blur(2.5px);
  pointer-events: none;
}

.cad-snap-node {
  fill: #FFFFFF;
  stroke: var(--cad-accent);
  stroke-width: 1.2;
  opacity: 0.95;
  transform: scale(1);
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="blueprint"] .cad-snap-node {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 3px #00E5FF);
}

[data-theme="alabaster"] .cad-node-halo {
  fill: rgba(20, 20, 20, 0.06) !important;
  filter: blur(1.5px) !important;
}

[data-theme="alabaster"] .cad-energy-ring {
  stroke: rgba(20, 20, 20, 0.25) !important;
}

[data-theme="alabaster"] .cad-snap-node {
  fill: #FFFFFF !important;
  stroke: #141414 !important;
  stroke-width: 1.3 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)) !important;
}

.brand-symbol-wrap.is-snapping .brand-symbol-svg,
.brand-lockup:hover .brand-symbol-svg {
  transform: scale(1.08);
}

.brand-symbol-wrap.is-snapping .cad-wire-grid,
.brand-lockup:hover .cad-wire-grid {
  animation: logoGridPulse 1.9s ease-out;
}

.brand-symbol-wrap.is-snapping .stroke-v,
.brand-lockup:hover .stroke-v {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: traceVectorV 0.65s 0.12s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

.brand-symbol-wrap.is-snapping .stroke-l,
.brand-lockup:hover .stroke-l {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: traceVectorL 0.40s 0.70s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

.brand-symbol-wrap.is-snapping .cad-energy-ring,
.brand-lockup:hover .cad-energy-ring {
  animation: energyRingPulse 0.75s 1.05s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.brand-symbol-wrap.is-snapping .cad-node-halo,
.brand-lockup:hover .cad-node-halo {
  animation: haloBurstGlow 0.85s 1.05s ease-out forwards;
}

.brand-symbol-wrap.is-snapping .dot-top,
.brand-lockup:hover .dot-top { animation: dotSeqStay 1.9s 0.05s ease-out forwards; }
.brand-symbol-wrap.is-snapping .dot-vl,
.brand-lockup:hover .dot-vl { animation: dotSeqStay 1.9s 0.15s ease-out forwards; }
.brand-symbol-wrap.is-snapping .dot-vc,
.brand-lockup:hover .dot-vc { animation: dotSeqStay 1.9s 0.32s ease-out forwards; }
.brand-symbol-wrap.is-snapping .dot-vr,
.brand-lockup:hover .dot-vr { animation: dotSeqStay 1.9s 0.50s ease-out forwards; }
.brand-symbol-wrap.is-snapping .dot-le,
.brand-lockup:hover .dot-le { animation: dotSeqStay 1.9s 0.68s ease-out forwards; }

@keyframes logoGridPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; stroke: var(--cad-accent); }
}
@keyframes traceVectorV { to { stroke-dashoffset: 0; } }
@keyframes traceVectorL { to { stroke-dashoffset: 0; } }
@keyframes energyRingPulse {
  0% { r: 2px; opacity: 0.9; stroke-width: 1.4; }
  60% { opacity: 0.5; stroke-width: 0.8; }
  100% { r: 22px; opacity: 0; stroke-width: 0.2; }
}
@keyframes haloBurstGlow {
  0% { opacity: 0; transform: scale(0.3); }
  40% { opacity: 0.85; transform: scale(1.3); }
  70% { opacity: 0.4; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(0.5); }
}
@keyframes dotSeqStay {
  0% { transform: scale(1); opacity: 0.95; }
  30% { transform: scale(1.55); opacity: 1; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}

.brand-symbol-wrap.is-idle-breathing .cad-snap-node {
  animation: cadIdleTelemetryPulse 4s ease-in-out infinite;
}

@keyframes cadIdleTelemetryPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 6px var(--cad-accent)); }
}

[data-theme="alabaster"] .brand-symbol-wrap.is-idle-breathing .cad-snap-node {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25)) !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.brand-name { font-family: var(--font-sans); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; }
.brand-discipline { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); line-height: 1.2; }

.header-right { display: flex; justify-content: flex-end; align-items: center; }
.header-controls { display: flex; align-items: center; gap: 16px; }

/* THEME TOGGLE */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 12px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-radius: 2px;
  animation: cadBorderPulse 3.6s infinite ease-in-out;
}
.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 0 12px var(--cad-glow);
  animation: none;
}

.theme-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cad-accent);
  flex-shrink: 0;
  animation: cadLedPulse 2s infinite ease-in-out;
}

.theme-contrast-icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.theme-toggle-btn:hover .theme-contrast-icon {
  transform: rotate(180deg);
  opacity: 1;
}

@keyframes cadBorderPulse {
  0%, 100% { border-color: var(--border-hairline); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  50% { border-color: var(--text-main); box-shadow: 0 0 8px var(--cad-glow); }
}

@keyframes cadLedPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 3px var(--cad-accent)); }
}

.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover { color: var(--text-main); }
.lang-btn.active {
  color: var(--text-main);
  font-weight: 600;
  background-color: rgba(120, 120, 120, 0.14);
  border-color: var(--border-hairline);
}

/* ==========================================================================
   FLOATING RIGHT RAIL — CAD VERTICAL DATUM RULER
   ========================================================================== */
.floating-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-hairline);
  width: 215px;
  box-sizing: border-box;
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.55;
}

.rail-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.rail-label {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.floating-rail:hover .rail-label {
  opacity: 1;
  transform: translateX(0);
}

.rail-item:hover {
  opacity: 1;
  transform: translateX(-4px);
}

[data-theme="blueprint"] .rail-item:hover {
  color: #00E5FF !important;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

[data-theme="blueprint"] .rail-item:hover .rail-num {
  color: #00E5FF !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

[data-theme="alabaster"] .rail-item:hover,
[data-theme="alabaster"] .rail-item:hover .rail-num {
  color: #141414 !important;
}

.rail-item.active {
  opacity: 1;
  font-weight: 600;
  color: var(--text-main);
}

.rail-item.active::before {
  content: '';
  position: absolute;
  left: -15px;
  width: 2px;
  height: 14px;
  background-color: var(--cad-accent);
  border-radius: 1px;
}

[data-theme="blueprint"] .rail-item.active::before {
  box-shadow: 0 0 8px #00E5FF;
}

@media (max-width: 1280px) {
  .floating-rail { display: none; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero { max-width: var(--max-width); margin: 10px auto 35px auto; padding: 0 4px; display: flex; flex-direction: column; }
.hero-cartouche {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}
.cartouche-tag { display: inline-flex; align-items: center; gap: 8px; }
.cartouche-dot { width: 6px; height: 6px; background-color: #27ae60; display: inline-block; border-radius: 50%; box-shadow: 0 0 6px rgba(39, 174, 96, 0.4); }
.cartouche-telemetry { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-muted); }

.hero-canvas-stage {
  position: relative;
  width: 100%;
  height: 54vh;
  min-height: 400px;
  max-height: 560px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid transparent;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: pan-y;
}

.hero-cad-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  display: flex;
  gap: 6px;
}
.cad-ctrl-btn {
  background: rgba(247, 246, 242, 0.92);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 10px;
  backdrop-filter: blur(8px);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cad-ctrl-btn:hover { color: var(--text-main); border-color: var(--text-main); }
[data-theme="blueprint"] .cad-ctrl-btn { background: rgba(17, 23, 34, 0.92); border-color: rgba(226, 232, 240, 0.22); }
[data-theme="blueprint"] .cad-ctrl-btn:hover { color: var(--cad-accent); border-color: var(--cad-accent); box-shadow: 0 0 10px var(--cad-glow); }

/* HERO CAD AFFORDANCE HINT */
.hero-cad-hint {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 25;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-cad-hint::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--cad-accent);
  flex-shrink: 0;
}

[data-theme="blueprint"] .hero-cad-hint { color: #CBD5E1; }
[data-theme="blueprint"] .hero-cad-hint::before { box-shadow: 0 0 6px var(--cad-accent); }
.hero-cad-hint.is-hidden { opacity: 0; visibility: hidden; }

.hero-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  position: relative;
  z-index: 2;
}
.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.matrix-item:hover {
  background-color: rgba(120, 120, 120, 0.05);
  transform: translateY(-1px);
}
.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 4px;
}
.matrix-title { font-weight: 600; color: var(--text-main); transition: color 0.2s ease; }
.matrix-code { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); opacity: 0.75; white-space: nowrap; }
[data-theme="blueprint"] .matrix-item:hover .matrix-title { color: var(--cad-accent); }
.matrix-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar {
  max-width: var(--max-width);
  margin: 24px auto 14px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: none;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.filter-btn:hover { color: var(--text-main); border-color: var(--text-main); }
.filter-btn.active { background-color: var(--text-main); color: var(--bg); border-color: var(--text-main); font-weight: 500; }
[data-theme="blueprint"] .filter-btn.active {
  background-color: var(--cad-accent);
  color: #0B0F17;
  border-color: var(--cad-accent);
  box-shadow: 0 0 12px var(--cad-glow);
}

/* ==========================================================================
   WORKS PLATES, SCROLL-REVEAL & VISIBLE TECHNICAL SPECS STRIP
   ========================================================================== */
.works { max-width: var(--max-width); margin: 0 auto; }
.plate {
  padding: 26px 0 48px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.plate.hidden { display: none !important; }

/* Scroll-Reveal Architectural Choreography */
.plate.plate-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.plate.plate-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

#hero-section,
#works,
.works,
#works-container,
.filter-bar,
.plate,
#index,
.index-section,
#profile,
#studio,
.studio-section,
footer,
#contact {
  scroll-margin-top: var(--header-offset, 118px);
}

.plate-header {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

.plate-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--cad-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.45;
}
.plate.is-revealed .plate-header::after {
  transform: scaleX(1);
}

.plate-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); }
.plate-title {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-main);
}
.plate-specs {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-wrapper { position: relative; width: 100%; margin: 8px 0 14px 0; display: flex; flex-direction: column; gap: 10px; }

.showcase-main-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 680px;
  background-color: #EBEAE5;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  cursor: zoom-in;
  user-select: none;
  touch-action: pan-y;
}
[data-theme="blueprint"] .showcase-main-frame { background-color: #161F2E; }

.showcase-main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.showcase-main-frame:hover .showcase-main-img { transform: scale(1.015); }

.showcase-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(15, 17, 23, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 2;
}

/* INTERACTIVE CAD LOUPE / EXPAND BADGE */
.showcase-expand-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.showcase-expand-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}
.showcase-main-frame:hover .showcase-expand-badge,
.showcase-expand-badge:hover {
  background-color: #00E5FF;
  color: #0B0F17;
  border-color: #00E5FF;
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
[data-theme="alabaster"] .showcase-main-frame:hover .showcase-expand-badge,
[data-theme="alabaster"] .showcase-expand-badge:hover {
  background-color: #141414;
  color: #FFFFFF;
  border-color: #141414;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.showcase-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 17, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  opacity: 0.92;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .showcase-nav-arrow:hover {
    background: var(--cad-accent);
    color: var(--bg);
    border-color: var(--cad-accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
}
.showcase-nav-arrow:active { transform: translateY(-50%) scale(0.95); }
.showcase-nav-arrow.prev { left: 14px; }
.showcase-nav-arrow.next { right: 14px; }

.showcase-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  gap: 16px;
  min-height: 22px;
}
.showcase-area-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px 2px;
}
.showcase-filmstrip::-webkit-scrollbar { display: none; }
.showcase-thumb {
  flex: 0 0 100px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border-hairline);
  background-color: #EBEAE5;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
[data-theme="blueprint"] .showcase-thumb { background-color: #161F2E; }
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.showcase-thumb.active { opacity: 1; border-color: var(--cad-accent); outline: 2px solid var(--cad-accent); }
.plate-text {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.75;
  font-weight: 300;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* VISIBLE 4-COLUMN ARCHITECTURAL SPECS STRIP ON EVERY PLATE */
.plate-specs-strip {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plate-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.plate-spec-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}
[data-theme="blueprint"] .plate-spec-lbl {
  color: var(--cad-accent);
  opacity: 0.9;
}
.plate-spec-val {
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.45;
}

/* ==========================================================================
   INDEX SECTION
   ========================================================================== */
.index-section {
  max-width: var(--max-width);
  margin: 72px auto;
  border-top: 1px solid var(--border-hairline);
  padding-top: 28px;
  position: relative;
}
.section-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px; display: block; }
.index-table-wrap { width: 100%; overflow-x: auto; }
.index-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.index-table tr { border-bottom: 1px solid var(--border-hairline); transition: background-color 0.2s ease, opacity 0.25s ease; cursor: pointer; }
.index-table tr.hidden { display: none !important; }
.index-table tr:hover { background-color: rgba(120, 120, 120, 0.06); }
.index-table td { padding: 18px 10px; font-weight: 300; vertical-align: middle; }
.index-table td.col-year { width: 14%; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; white-space: nowrap; }
.index-plate-tag { opacity: 0.75; }

.index-table td.col-name,
.index-table td.col-name a,
.index-project-link {
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: inline-block !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.index-table tr:hover td.col-name a,
.index-table tr:hover .index-project-link {
  transform: translateX(6px) !important;
}

[data-theme="blueprint"] .index-table tr:hover td.col-name a {
  color: var(--cad-accent) !important;
}

.index-table td.col-loc { width: 24%; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.index-table td.col-type { width: 32%; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; }

@media (hover: hover) and (pointer: fine) {
  #index-floating-preview {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99990;
    width: 260px;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-hairline);
    background-color: var(--bg-surface);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translate3d(-1000px, -1000px, 0);
    transition: opacity 0.2s ease;
    overflow: hidden;
    display: none;
    will-change: transform, opacity;
  }
  [data-theme="blueprint"] #index-floating-preview {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 18px var(--cad-glow);
  }
  #index-floating-preview.active { opacity: 1; }
  #index-floating-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .preview-cad-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4px 8px;
    background: rgba(11, 15, 23, 0.8);
    color: #E2E8F0;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(6px);
    z-index: 2;
  }
}
@media (hover: none), (pointer: coarse) { #index-floating-preview { display: none !important; } }

/* ==========================================================================
   PROFILE SECTION
   ========================================================================== */
.studio-section {
  max-width: var(--max-width);
  margin: 80px auto;
  border-top: 1px solid var(--border-hairline);
  padding-top: 32px;
}
.studio-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.studio-bio h2 { font-family: var(--font-serif); font-size: clamp(2.3rem, 3.8vw, 3.1rem); font-weight: 300; line-height: 1.15; margin-bottom: 20px; }
.studio-bio p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 18px;
  opacity: 0.92;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.studio-bio .bio-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 22px;
  line-height: 1.48;
  opacity: 0.98;
  text-align: left;
}
.cv-download-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--border-hairline);
  background-color: rgba(120, 120, 120, 0.05);
  border-radius: 2px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  flex-wrap: wrap;
}
.cv-download-wrapper:hover {
  border-color: var(--text-main);
  background-color: rgba(120, 120, 120, 0.08);
}
.cv-download-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-main);
}
.cv-lang-selector { display: flex; align-items: center; gap: 8px; }
.cv-lang-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cad-accent);
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cv-lang-link:hover { color: var(--text-main); text-decoration: underline; }
.cv-lang-divider { font-size: 0.68rem; color: var(--text-muted); opacity: 0.45; }

.curriculum-group { margin-bottom: 42px; }
.curriculum-group:last-child { margin-bottom: 0; }
.group-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.cv-item { display: grid; grid-template-columns: 120px 1fr; margin-bottom: 20px; font-size: 0.85rem; line-height: 1.6; gap: 14px; }
.cv-period { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.cv-role { font-weight: 500; color: var(--text-main); }
.cv-institution { color: var(--text-muted); font-weight: 300; font-size: 0.8rem; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.skill-tag {
  font-size: 0.72rem;
  padding: 6px 14px;
  background-color: rgba(120, 120, 120, 0.07);
  border: 1px solid var(--border-hairline);
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* ==========================================================================
   FOOTER & SOCIALS
   ========================================================================== */
footer {
  max-width: var(--max-width);
  margin: 72px auto 48px auto;
  border-top: 1px solid var(--border-hairline);
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 36px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p, .footer-col a { color: var(--text-muted); text-decoration: none; line-height: 1.8; display: block; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-main); }

.footer-socials { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px 0; }
.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-link svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.85; transition: fill 0.2s ease; }
.social-link:hover { color: var(--cad-accent) !important; transform: translateX(3px); }
.social-link:hover svg { opacity: 1; fill: var(--cad-accent); }
.social-link .ext-arrow { font-size: 0.65rem; opacity: 0.6; }

/* ==========================================================================
   FULLSCREEN LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 24px 32px;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.lightbox-modal.active { display: flex; opacity: 1; }

.lightbox-top-bar {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 2030;
  flex-shrink: 0;
}
.lightbox-meta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 3px 8px;
  border-radius: 2px;
}
.lightbox-project-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #E2E8F0;
  text-transform: uppercase;
}
.lightbox-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* [FULLSCREEN] BADGE ON TOP-RIGHT OF THE PHOTO INSIDE LIGHTBOX */
.lightbox-fs-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2060;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background-color: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.40);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lightbox-fs-btn svg {
  width: 12px;
  height: 12px;
  stroke: #00E5FF;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  pointer-events: none;
  transition: stroke 0.2s ease;
}
.lightbox-fs-btn span {
  pointer-events: none;
}
.lightbox-fs-btn:hover {
  color: #0B0F17;
  background: #00E5FF;
  border-color: #00E5FF;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}
.lightbox-fs-btn:hover svg {
  stroke: #0B0F17;
}
.lightbox-close {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  background: rgba(22, 31, 46, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 2px;
  cursor: pointer;
  z-index: 2040;
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: #00E5FF;
  color: #0B0F17;
  border-color: #00E5FF;
}

.lightbox-stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 90vw;
  max-height: 62vh;
  position: relative;
  margin: auto 0;
}

.lightbox-image-wrap {
  max-width: 82vw;
  max-height: 62vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.lightbox-content {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
  cursor: zoom-in;
}

.lightbox-thumbs-dock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2025;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 4px;
}
.lightbox-thumbs-dock::-webkit-scrollbar { display: none; }

.lb-thumb {
  position: relative;
  width: 76px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: #111722;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 1px;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb-tag {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  background: rgba(11, 15, 23, 0.85);
  color: #E2E8F0;
  padding: 1px 3px;
  border-radius: 1px;
  pointer-events: none;
}
.lb-thumb:hover {
  opacity: 0.9;
  transform: translateX(-3px) scale(1.04);
  border-color: #00E5FF;
}
.lb-thumb.active {
  opacity: 1;
  border-color: #00E5FF;
  outline: 2px solid #00E5FF;
  transform: translateX(-4px);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 31, 46, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.25);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2025;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-nav-btn:hover {
    background: #00E5FF;
    color: #0B0F17;
    border-color: #00E5FF;
    transform: translateY(-50%) scale(1.06);
  }
}
.lightbox-nav-btn:active { transform: translateY(-50%) scale(0.95); }
.lightbox-nav-btn.prev { left: 24px; }
.lightbox-nav-btn.next { right: 24px; }

.lightbox-caption-text {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #CBD5E1;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 840px;
  flex-shrink: 0;
}
.lightbox-spec-sheet {
  margin-top: 12px;
  width: 100%;
  max-width: 1040px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: #E2E8F0;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: #00E5FF; }
.spec-val { font-weight: 300; line-height: 1.4; color: #CBD5E1; }

/* FULLSCREEN IMMERSIVE MODE */
.lightbox-modal.is-fullscreen {
  padding: 0 !important;
  background-color: #030508 !important;
  justify-content: center !important;
}
.lightbox-modal.is-fullscreen .lightbox-top-bar {
  position: fixed !important;
  top: 16px !important;
  left: 24px !important;
  right: 24px !important;
  width: auto !important;
  max-width: none !important;
}
.lightbox-modal.is-fullscreen .lightbox-stage-row,
.lightbox-modal.is-fullscreen .lightbox-image-wrap {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
}
.lightbox-modal.is-fullscreen .lightbox-content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  box-shadow: none !important;
  cursor: zoom-out !important;
}
.lightbox-modal.is-fullscreen .lightbox-fs-btn {
  position: fixed !important;
  top: 16px !important;
  right: 74px !important;
  z-index: 2160 !important;
}
.lightbox-modal.is-fullscreen .lightbox-caption-text,
.lightbox-modal.is-fullscreen .lightbox-spec-sheet,
.lightbox-modal.is-fullscreen .lightbox-thumbs-dock {
  display: none !important;
}

/* ==========================================================================
   EXPORT PLATE BUTTON & DIN A4 PRINT ENGINE
   ========================================================================== */
.export-plate-btn {
  background: none;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.export-plate-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
  background-color: rgba(120, 120, 120, 0.08);
}
[data-theme="blueprint"] .export-plate-btn:hover {
  color: var(--cad-accent);
  border-color: var(--cad-accent);
  box-shadow: 0 0 10px var(--cad-glow);
}

#print-sheet-stage { display: none; }

@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  body > *:not(#print-sheet-stage) { display: none !important; }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }

  #print-sheet-stage {
    display: block !important;
    width: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
  }

  .print-sheet-page {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 297mm !important;
    height: 196mm !important;
    max-width: 297mm !important;
    max-height: 196mm !important;
    padding: 6mm 10mm !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    color: #141414 !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-sheet-page:not(:last-child) {
    page-break-after: always !important;
    break-after: page !important;
  }

  .print-sheet-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1pt solid #141414;
    padding-bottom: 2.5mm;
    height: 14mm;
    box-sizing: border-box;
    flex-shrink: 0 !important;
  }

  .print-brand-group { display: flex; align-items: center; gap: 3.5mm; }
  .print-logo-box { width: 9.5mm; height: 9.5mm; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .print-logo-box svg { width: 100% !important; height: 100% !important; max-width: 9.5mm !important; max-height: 9.5mm !important; display: block !important; color: #141414 !important; filter: none !important; }
  .print-logo-box svg * { filter: none !important; }
  .print-logo-box svg [stroke] { stroke: #141414 !important; }
  .print-logo-box svg [fill]:not([fill="none"]) { fill: #141414 !important; }
  .print-logo-box svg [fill="none"] { fill: none !important; }

  .print-brand-title { font-size: 11pt; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.1; }
  .print-brand-sub { font-size: 6.8pt; letter-spacing: 0.1em; color: #555; text-transform: uppercase; margin-top: 1.5mm; font-weight: 500; }
  .print-cartouche-right { text-align: right; font-size: 7pt; letter-spacing: 0.08em; line-height: 1.35; font-weight: 500; }

  .print-body {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 10mm;
    height: 146mm !important;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  .print-media-col { display: flex; flex-direction: column; justify-content: space-between; height: 146mm !important; }
  .print-hero-clean-wrap { width: 100%; height: 137mm !important; border: 0.5pt solid #141414; background: #FAFAF8; overflow: hidden; box-sizing: border-box; }
  .print-hero-clean-wrap img { width: 100%; height: 100%; object-fit: cover !important; object-position: center; display: block; }

  .print-legend-line {
    height: 6.5mm;
    margin-top: 2mm;
    border-top: 0.5pt solid #141414;
    padding-top: 1.5mm;
    font-size: 6.8pt;
    letter-spacing: 0.06em;
    color: #141414;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .print-sidebar { display: flex; flex-direction: column; justify-content: space-between; height: 146mm !important; }
  .print-project-title { font-size: 13.5pt; font-weight: 700; line-height: 1.15; margin-bottom: 2mm; }
  .print-project-meta { font-size: 7pt; color: #555; text-transform: uppercase; margin-bottom: 3.5mm; letter-spacing: 0.06em; font-weight: 600; }
  .print-project-desc { font-size: 8pt; line-height: 1.52; color: #222; text-align: justify; margin-bottom: 3.5mm; }

  .print-specs-table { width: 100%; border-collapse: collapse; font-size: 6.8pt; border-top: 0.5pt solid #141414; }
  .print-specs-table td { padding: 2.8mm 0; border-bottom: 0.5pt solid #EAEAEA; vertical-align: top; }
  .print-specs-lbl { text-transform: uppercase; color: #666; font-weight: 600; letter-spacing: 0.05em; width: 32%; }
  .print-specs-val { color: #141414; font-weight: 500; }

  .print-appendix-body { width: 100%; height: 146mm !important; overflow: hidden !important; }
  .print-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4mm 8mm; height: 146mm !important; }
  .print-appendix-unit { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
  .print-appendix-img-wrap { width: 100%; flex-grow: 1; border: 0.5pt solid #141414; background: #FAFAF8; overflow: hidden; }
  .print-appendix-img-wrap img { width: 100%; height: 100%; object-fit: cover !important; object-position: center; display: block; }
  .print-appendix-cap-row { margin-top: 2.2mm; font-size: 6.8pt; line-height: 1.35; color: #333; display: flex; align-items: baseline; gap: 6px; }
  .print-fig-tag { font-weight: 700; letter-spacing: 0.06em; color: #141414; white-space: nowrap; flex-shrink: 0; }
  .print-fig-desc { color: #444; }

  .print-appendix-seal-unit { border: 0.5pt dashed #141414; background: #FAFAF8; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 5mm; height: 100%; }
  .seal-logo-box { width: 12mm; height: 12mm; margin-bottom: 2mm; display: flex; align-items: center; justify-content: center; }
  .seal-logo-box svg { width: 100% !important; height: 100% !important; color: #141414 !important; }
  .seal-logo-box svg [stroke] { stroke: #141414 !important; }
  .seal-logo-box svg [fill]:not([fill="none"]) { fill: #141414 !important; }
  .seal-title { font-size: 8pt; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.5mm; }
  .seal-meta { font-size: 6.2pt; color: #555; line-height: 1.5; letter-spacing: 0.05em; }

  .print-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.75pt solid #141414;
    padding-top: 2mm;
    height: 7mm;
    font-size: 6.5pt;
    color: #555;
    letter-spacing: 0.06em;
    font-weight: 500;
    flex-shrink: 0 !important;
  }
}

/* ==========================================================================
   SYNTHESIS TOAST HUD & 3D EXHIBITION STEPPER (< PL. XX | PL. YY >)
   ========================================================================== */
.synthesis-toast {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 20;
  max-width: 740px;
  width: 90%;
  padding: 10px 18px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.9);
  border: 1px solid var(--cad-accent);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 229, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 2px;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

[data-theme="alabaster"] .synthesis-toast {
  background: rgba(248, 248, 248, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

.synthesis-toast.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-badge-pill {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cad-accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.synthesis-statement {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 2px 0 7px 0;
}

.toast-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toast-step-btn {
  background: rgba(120, 120, 120, 0.08);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.toast-step-btn:hover {
  color: var(--text-main);
  border-color: var(--cad-accent);
  background: rgba(120, 120, 120, 0.15);
}
[data-theme="blueprint"] .toast-step-btn:hover {
  color: #0B0F17;
  background: var(--cad-accent);
  border-color: var(--cad-accent);
  box-shadow: 0 0 10px var(--cad-glow);
}

.toast-plate-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cad-accent) !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 2px 6px;
  font-weight: 500;
  animation: pulsePlateBeacon 1.8s infinite ease-in-out;
}

@keyframes pulsePlateBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.98); }
}

.toast-plate-link:hover {
  animation-play-state: paused;
  opacity: 1 !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   CAD DATUM "BACK TO TOP" FLOATING BENCHMARK
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 950;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  border-radius: 2px;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-3px);
}

[data-theme="blueprint"] .back-to-top-btn:hover {
  color: var(--cad-accent);
  border-color: var(--cad-accent);
  box-shadow: 0 0 16px var(--cad-glow);
}

.back-to-top-icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.back-to-top-btn:hover .back-to-top-icon { transform: translateY(-2px); }
.back-to-top-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; font-weight: 500; line-height: 1; text-transform: uppercase; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  :root { --header-offset: 175px; }
  body { padding: 0 20px; }
  header { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
  .header-left, .header-right { width: 100%; justify-content: center; }
  .plate-specs-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .studio-grid { grid-template-columns: 1fr; gap: 44px; }
  .lightbox-stage-row { flex-direction: column; gap: 10px; max-height: 60vh; }
  .lightbox-thumbs-dock {
    flex-direction: row;
    max-width: 90vw;
    max-height: 52px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .lb-thumb { width: 64px; height: 42px; }
  .lb-thumb:hover, .lb-thumb.active { transform: translateY(-2px); }
  .lightbox-spec-sheet { grid-template-columns: 1fr 1fr; gap: 14px; }
  footer { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-offset: 103px; }

  /* Fixed top padding on body prevents ANY document height jump when header morphs! */
  body {
    padding: 184px 5px 0 5px;
  }
  .hero { margin: 8px auto 26px auto; padding: 0; }

  /* ========================================================================
     ZERO-JITTER FIXED MOBILE HEADER WITH CONTINUOUS GPU TRANSITIONS
     ======================================================================== */
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 10px 6px 8px 6px !important;
    transition: padding 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease, background-color 0.25s ease !important;
  }

  .header-center {
    order: 1 !important;
    width: 100% !important;
    position: relative;
    z-index: 5;
  }

  .brand-lockup {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .brand-symbol-wrap {
    width: 42px;
    height: 42px;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), margin-bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .brand-text {
    max-height: 38px;
    opacity: 1;
    margin-top: 4px;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, margin-top 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .header-right {
    order: 2 !important;
    width: 100% !important;
    max-height: 38px;
    opacity: 1;
    margin-top: 8px;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, margin-top 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .header-left {
    order: 3 !important;
    width: 100% !important;
    border-top: 1px solid var(--border-hairline);
    padding-top: 8px;
    padding-left: 0px;
    margin-top: 8px;
    transition: padding-left 0.38s cubic-bezier(0.22, 1, 0.36, 1), padding-top 0.36s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.36s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.36s ease !important;
  }

  /* COMPACT MORPH STATE: Logo glides smoothly to left slot beside Nav! */
  /* COMPACT MORPH STATE: Imperial Centered Crest at Top + Symmetrical Full-Width Nav Below */
  header.is-compact {
    padding: 6px 6px 6px 6px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  }
  [data-theme="blueprint"] header.is-compact {
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 229, 255, 0.22);
  }

  header.is-compact .brand-symbol-wrap {
    margin-bottom: 0px;
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  header.is-compact .brand-text {
    max-height: 0px !important;
    opacity: 0 !important;
    margin-top: 0px !important;
    transform: translate3d(0, -6px, 0) !important;
    pointer-events: none !important;
  }

  header.is-compact .header-right {
    max-height: 0px !important;
    opacity: 0 !important;
    margin-top: 0px !important;
    transform: translate3d(0, -6px, 0) !important;
    pointer-events: none !important;
  }

  header.is-compact .header-left {
    border-top: 1px solid var(--border-hairline) !important;
    padding-top: 5px !important;
    margin-top: 4px !important;
    padding-left: 0px !important;
  }

  nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    margin: 0 !important;
    overflow: hidden !important;
    gap: 4px !important;
  }
  nav a {
    flex: 1 1 auto !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    padding: 6px 2px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* Compact Single-Line Cartouche on Mobile */
  .hero-cartouche {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    font-size: 0.60rem !important;
  }
  .cartouche-telemetry,
  #ui-hero-archive {
    display: none !important;
  }

  /* Spacious 3D Canvas Stage on Mobile */
  .hero-canvas-stage {
    touch-action: pan-y;
    height: 58vh !important;
    min-height: 420px !important;
    max-height: 520px !important;
    margin-bottom: 12px;
  }

  /* Clean Centered Bottom Controls & Hint on Mobile */
  .hero-cad-controls {
    top: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 35 !important;
    display: flex !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  .hero-cad-hint {
    bottom: 44px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 12px) !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.07em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Synthesis Toast -> Compact HUD Capsule with Stepper on Mobile */
  .synthesis-toast {
    top: 6px !important;
    width: calc(100% - 14px) !important;
    max-width: 420px !important;
    padding: 6px 10px !important;
    border-radius: 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: normal !important;
  }
  .synthesis-toast .synthesis-statement { display: none !important; }
  .toast-badge-pill {
    margin-bottom: 0 !important;
    display: block !important;
    font-size: 0.56rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
  }
  .toast-actions-row {
    gap: 6px !important;
    width: 100%;
    justify-content: space-between;
  }
  .toast-step-btn {
    font-size: 0.58rem !important;
    padding: 2px 6px !important;
  }
  .toast-plate-link {
    display: inline-block !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.08em !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  .hero-matrix { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .matrix-item { margin: 0; padding: 6px 4px; }

  .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-pills { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .filter-btn { text-align: center; padding: 7px 6px; font-size: 0.64rem; letter-spacing: 0.06em; }

  .plate { padding: 24px 0 36px 0; }
  .plate-header { grid-template-columns: 1fr; gap: 6px; margin-bottom: 10px; }
  .plate-specs {
    justify-content: space-between;
    width: 100%;
    text-align: left;
    font-size: 0.68rem;
  }
  .export-plate-btn { margin-left: auto; flex-shrink: 0; white-space: nowrap; }

  .showcase-main-frame { height: auto; aspect-ratio: 16 / 10; }
  .showcase-badge { top: 10px; left: 10px; font-size: 0.65rem; padding: 3px 7px; }
  .showcase-expand-badge { top: 10px; right: 10px; font-size: 0.6rem; padding: 3px 8px; }
  .showcase-nav-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .showcase-nav-arrow.prev { left: 8px; }
  .showcase-nav-arrow.next { right: 8px; }
  .showcase-thumb { flex: 0 0 76px; height: 50px; }

  .plate-specs-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 16px;
    padding-top: 12px;
  }
  .plate-spec-lbl { font-size: 0.56rem; }
  .plate-spec-val { font-size: 0.72rem; }

  /* Index Table Mobile */
  .index-table td.col-type { display: none; }
  .index-table td { padding: 15px 6px; }
  .index-table td.col-year { width: 24%; font-size: 0.68rem; }
  .index-table td.col-name { width: 46%; }
  .index-table td.col-loc { width: 30%; font-size: 0.68rem; text-align: right; }

  /* Profile Section Mobile */
  .studio-section { margin: 60px auto; }
  .cv-item { grid-template-columns: 1fr; gap: 3px; margin-bottom: 18px; }

  /* Lightbox Mobile: Keep [FULLSCREEN] / [EXIT FULLSCREEN] always visible at top right! */
  .lightbox-modal { padding: 14px 10px 18px 10px; }
  .lightbox-top-bar { gap: 8px; }
  .lightbox-meta-group { gap: 8px; flex: 1 1 auto; min-width: 0; }
  .lightbox-counter { font-size: 0.65rem; padding: 2px 6px; }
  .lightbox-project-title { font-size: 0.62rem; max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lightbox-actions-group { gap: 6px; flex-shrink: 0; }
  .lightbox-fs-btn {
    top: 10px;
    right: 10px;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    padding: 4px 8px !important;
  }
  .lightbox-modal.is-fullscreen .lightbox-fs-btn {
    top: 14px !important;
    right: 60px !important;
  }
  .lightbox-close { width: 36px; height: 36px; font-size: 1.6rem; }
  .lightbox-image-wrap { max-width: 96vw; max-height: 50vh; }
  .lightbox-content { max-height: 50vh; }
  .lightbox-nav-btn { top: 40%; width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-nav-btn.prev { left: 8px; }
  .lightbox-nav-btn.next { right: 8px; }
  .lightbox-caption-text { font-size: 0.74rem; margin-top: 8px; }
  .lightbox-spec-sheet {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    padding-top: 10px !important;
    margin-top: 8px !important;
  }
  .lightbox-spec-sheet .spec-label { font-size: 0.58rem !important; letter-spacing: 0.1em !important; }
  .lightbox-spec-sheet .spec-val { font-size: 0.68rem !important; line-height: 1.3 !important; }

  .back-to-top-btn {
    bottom: 20px;
    right: 14px;
    width: 38px;
    height: 44px;
  }
}
