/* ========== TOKENS — Meshy (vert) · Chroma (ambre) · Noir ========== */
:root {
  --color-bg: #141414;
  --color-black: #000000;
  --color-surface: #0c0c0c;
  --color-surface-raised: #121212;

  --color-meshy: #22c55e;
  --color-meshy-bright: #4ade80;
  --color-meshy-glow: rgba(34, 197, 94, 0.45);
  --color-meshy-dim: rgba(34, 197, 94, 0.12);

  --color-chroma: #b45309;
  --color-chroma-bright: #d97706;
  --color-chroma-glow: rgba(180, 83, 9, 0.45);
  --color-chroma-dim: rgba(180, 83, 9, 0.12);

  --color-text: #ececec;
  --color-muted: rgba(180, 180, 180, 0.5);
  --color-card: rgba(10, 10, 10, 0.82);
  --color-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius-card: 16px;
  --letterbox-h: clamp(28px, 5vh, 56px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
}

/* ========== MOBILE GATE (showreel desktop only) ========== */
.mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.mobile-gate-active {
  overflow: auto;
}

body.mobile-gate-active .mobile-gate {
  display: flex;
}

body.mobile-gate-active .loader,
body.mobile-gate-active .letterbox,
body.mobile-gate-active .ui,
body.mobile-gate-active #canvas,
body.mobile-gate-active .viewer-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mobile-gate-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  z-index: 1;
}

.mobile-gate-inner {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 26px 28px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mobile-gate-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(217, 119, 6, 0.4));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mobile-gate-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-chroma-bright);
  margin-bottom: 14px;
}

.mobile-gate-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mobile-gate-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 48px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--color-meshy-bright), #fff, var(--color-chroma-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mobile-gate-lead {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.5;
}

.mobile-gate-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.mobile-gate-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-gate-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-gate-link--chroma {
  color: #fff;
  background: rgba(180, 83, 9, 0.22);
  border: 1px solid rgba(217, 119, 6, 0.5);
}

.mobile-gate-link--chroma:hover {
  background: rgba(180, 83, 9, 0.34);
  border-color: rgba(251, 191, 36, 0.7);
}

.mobile-gate-link--meshy {
  color: #fff;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.mobile-gate-link--meshy:hover {
  background: rgba(34, 197, 94, 0.26);
  border-color: rgba(74, 222, 128, 0.75);
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 1;
  touch-action: none;
  cursor: default;
}

canvas.is-grabbing {
  cursor: grabbing !important;
}

body.viewer-grabbing {
  cursor: grabbing !important;
  user-select: none;
}

/* ========== LETTERBOX ========== */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--letterbox-h);
  background: #000;
  z-index: 5;
  pointer-events: none;
}

.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-frame {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader-tag--chroma { color: var(--color-chroma-bright); }
.loader-tag--collab { color: rgba(255, 255, 255, 0.92); }

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-chroma-bright);
  animation: rec-blink 1.2s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.loader-text .char {
  display: inline-block;
  min-width: 0.45em;
  text-align: center;
}

.loader-text .char.glitch {
  color: var(--color-chroma-bright);
  text-shadow: 0 0 12px var(--color-chroma-glow);
}

.loader-text .char.resolved {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
}

.loader-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  z-index: 101;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-scanlines.active { opacity: 1; }

.loader-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.3s ease;
}

.loader-sub.visible { opacity: 1; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Timeline loader — barre de progression (remplace le texte assets) */
.loader-timeline {
  width: min(92vw, 520px);
  margin-top: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
}

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

.loader-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.loader-timeline-tag {
  color: var(--color-chroma-bright);
  text-shadow: 0 0 14px var(--color-chroma-glow);
}

.loader-timeline-pct {
  position: absolute;
  right: 0;
  top: -20px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.loader-timeline-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 77, 0, 0.08);
}

.loader-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--color-chroma) 0%,
    var(--color-chroma-bright) 42%,
    var(--color-meshy-bright) 100%
  );
  box-shadow:
    0 0 16px rgba(255, 77, 0, 0.55),
    0 0 32px rgba(34, 197, 94, 0.25);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-timeline-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  animation: loader-timeline-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes loader-timeline-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

.loader-timeline-head-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(255, 77, 0, 0.65);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-timeline-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.loader-timeline-steps li {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.loader-timeline-steps li.is-done {
  background: linear-gradient(90deg, var(--color-chroma-bright), var(--color-meshy-bright));
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.35);
}

.loader-timeline-steps li.is-active {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  animation: loader-step-pulse 1s ease-in-out infinite;
}

@keyframes loader-step-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.loader-timeline-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.loader-timeline.is-ready .loader-timeline-fill {
  width: 100% !important;
}

.loader-timeline.is-ready .loader-timeline-head-marker {
  left: 100% !important;
}

/* ========== UI ========== */
.ui {
  position: fixed;
  inset: var(--letterbox-h) 0;
  z-index: 10;
  pointer-events: none;
  padding: clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

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

.ui > * { pointer-events: none; }

.ui a,
.ui button,
.ui .collab-toggle,
.ui .skills-block,
.ui .collab-panel,
.ui .collab-link,
.ui .lighting-panel,
.ui .lighting-panel input,
.ui .rotation-toggle {
  pointer-events: auto;
}

.hero {
  grid-column: 1;
  grid-row: 1;
  max-width: 420px;
  align-self: start;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-chroma-bright);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.06em;
  max-width: 520px;
}

.hero-meshy { color: var(--color-meshy-bright); }
.hero-x {
  color: #fff;
  font-size: 0.95em;
  letter-spacing: 0.06em;
  padding: 0 0.1em;
  line-height: 1;
  align-self: center;
}
.hero-chroma { color: var(--color-chroma-bright); }

.hero-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 340px;
  margin-bottom: 0;
}

.hero-controls {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.35s;
}

.hero-controls.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.hero-controls .lighting-panel {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  margin-top: 0;
  width: 148px;
  opacity: 1;
  pointer-events: auto;
}

.rotation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rotation-toggle.is-active {
  color: var(--color-meshy-bright);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(8, 18, 12, 0.88);
}

.rotation-toggle-icon {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.rotation-toggle.is-active .rotation-toggle-icon {
  animation: rotation-toggle-spin 2.4s linear infinite;
}

.rotation-toggle:not(.is-active) .rotation-toggle-icon {
  transform: rotate(45deg);
  opacity: 0.55;
}

@keyframes rotation-toggle-spin {
  to { transform: rotate(360deg); }
}

.rotation-toggle:focus-visible {
  outline: 2px solid var(--color-meshy-bright);
  outline-offset: 2px;
}

/* Zone transparente — desktop uniquement */
.viewer-lane {
  display: none;
}

/* Wrapper mobile — transparent sur desktop */
.mobile-dock {
  display: contents;
}

/* ========== SKILLS COLUMN + COLLAB PANEL ========== */
.skills-column {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

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

.collab-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.collab-toggle:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.collab-toggle[aria-expanded="true"] {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}

.collab-toggle-label {
  background: linear-gradient(90deg, var(--color-meshy-bright), var(--color-chroma-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.collab-toggle-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1;
  color: var(--color-muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease, border-color 0.25s ease;
}

.collab-toggle[aria-expanded="true"] .collab-toggle-icon {
  transform: rotate(45deg);
  color: var(--color-meshy-bright);
  border-color: rgba(34, 197, 94, 0.35);
}

.collab-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition:
    grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.collab-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.collab-panel-inner {
  overflow: hidden;
  min-height: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  padding: 0 20px;
  position: relative;
}

.collab-panel.is-open .collab-panel-inner {
  padding: 20px 22px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.collab-panel-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(217, 119, 6, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.collab-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.collab-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.collab-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-muted);
}

.collab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-meshy-bright);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, gap 0.2s ease;
}

.collab-link:hover {
  color: #fff;
  gap: 10px;
}

/* ========== SKILLS BLOCK ========== */
.skills-block {
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --holo-x: 50%;
  --holo-y: 40%;
  --holo-angle: 45;
}

.skills-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-chroma-bright);
  margin-bottom: 18px;
}

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.skills-list.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.skill-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-meshy-bright);
  flex-shrink: 0;
}

.skill-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-chroma) 0%, var(--color-meshy) 100%);
  box-shadow: 0 0 12px var(--color-meshy-glow);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-fill.is-filled {
  width: var(--skill-level);
}

/* ========== SHINY HOLO SKILLS (Super Filmmaker) ========== */
.skills-block.is-shiny {
  border-color: rgba(255, 210, 120, 0.55);
  box-shadow:
    0 0 28px rgba(255, 190, 90, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.skills-block.is-shiny::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #ffd93d,
    #6bff8e,
    #6bc5ff,
    #c86bff,
    #ff9ef0,
    #ff6b6b
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  animation: holo-border-hue 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.skills-block.is-shiny::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255, 245, 200, 0.42) 0%, transparent 42%),
    linear-gradient(
      calc(var(--holo-angle) * 1deg),
      transparent 28%,
      rgba(120, 220, 255, 0.14) 40%,
      rgba(255, 170, 220, 0.22) 50%,
      rgba(170, 255, 150, 0.14) 60%,
      transparent 72%
    ),
    repeating-linear-gradient(
      calc(var(--holo-angle) * 1deg + 90deg),
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.025) 3px,
      rgba(255, 255, 255, 0.025) 4px
    );
  mix-blend-mode: color-dodge;
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
  transition: background 0.12s ease-out;
  animation: holo-shimmer 3.5s ease-in-out infinite;
}

.skills-block.is-shiny .skills-label,
.skills-block.is-shiny .skills-list {
  position: relative;
  z-index: 2;
}

.skills-block.is-shiny .skills-label {
  background: linear-gradient(90deg, #ffe566, #ff9ef0, #7ef0ff, #b8ff80, #ffe566);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo-text-shift 3s linear infinite;
  text-shadow: none;
}

.skills-block.is-shiny .skill-name {
  color: rgba(255, 252, 240, 0.96);
  text-shadow: 0 0 12px rgba(255, 220, 140, 0.25);
}

.skills-block.is-shiny .skill-value {
  background: linear-gradient(90deg, #fff5c0, #ffc8f0, #b8f0ff, #fff5c0);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  animation: holo-text-shift 2.5s linear infinite;
}

.skills-block.is-shiny .skill-track {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 6px rgba(255, 215, 100, 0.22);
}

.skills-block.is-shiny .skill-fill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ff8ec7 22%,
    #7ee8ff 45%,
    #c8ff80 68%,
    #ffd700 100%
  );
  background-size: 220% 100%;
  animation: holo-bar-shift 2.2s ease-in-out infinite;
  box-shadow:
    0 0 16px rgba(255, 220, 120, 0.55),
    0 0 4px rgba(255, 255, 255, 0.45);
}

.skills-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.skills-block.is-shiny .skills-shimmer {
  opacity: 1;
  visibility: visible;
}

.skills-shimmer::before {
  content: '';
  position: absolute;
  top: -90%;
  left: -80%;
  width: 58%;
  height: 280%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 36%,
    rgba(255, 255, 255, 0.62) 47%,
    rgba(255, 236, 170, 0.48) 50%,
    rgba(190, 235, 255, 0.42) 53%,
    rgba(255, 200, 240, 0.35) 56%,
    rgba(255, 255, 255, 0.1) 62%,
    transparent 72%
  );
  transform: rotate(16deg);
  mix-blend-mode: overlay;
  animation: skills-shimmer-sweep 3.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.skills-shimmer::after {
  content: '';
  position: absolute;
  top: -90%;
  left: -80%;
  width: 38%;
  height: 280%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 62%
  );
  transform: rotate(16deg);
  mix-blend-mode: soft-light;
  animation: skills-shimmer-sweep 3.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  animation-delay: 0.12s;
}

.skills-block.is-shiny .skill-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.15) 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: skill-bar-shimmer 2.6s ease-in-out infinite;
}

.skills-block.is-shiny .skill-item:nth-child(2n) .skill-fill::after {
  animation-delay: 0.35s;
}

.skills-block.is-shiny .skill-item:nth-child(3n) .skill-fill::after {
  animation-delay: 0.7s;
}

@keyframes skills-shimmer-sweep {
  0% {
    left: -80%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    left: 130%;
    opacity: 1;
  }
  55% {
    opacity: 0;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

@keyframes skill-bar-shimmer {
  0%, 18% {
    transform: translateX(-120%);
  }
  55%, 100% {
    transform: translateX(220%);
  }
}

@keyframes holo-border-hue {
  to { filter: hue-rotate(360deg); }
}

@keyframes holo-shimmer {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes holo-text-shift {
  to { background-position: 220% center; }
}

@keyframes holo-bar-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skills-block.is-shiny::before,
  .skills-block.is-shiny::after,
  .skills-block.is-shiny .skills-label,
  .skills-block.is-shiny .skill-value,
  .skills-block.is-shiny .skill-fill,
  .skills-shimmer::before,
  .skills-shimmer::after,
  .skills-block.is-shiny .skill-fill::after {
    animation: none;
  }
}

.widgets {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(340px, 34vw);
}

/* ========== HUB COLLABORATIF (holo + shimmer) ========== */
.hub-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 210, 120, 0.4);
  box-shadow:
    0 0 24px rgba(255, 190, 90, 0.12),
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  --holo-x: 50%;
  --holo-y: 50%;
  --holo-angle: 45;
}

.hub-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #ffd93d,
    #6bff8e,
    #6bc5ff,
    #c86bff,
    #ff9ef0,
    #ff6b6b
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.88;
  animation: holo-border-hue 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hub-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255, 245, 200, 0.38) 0%, transparent 48%),
    linear-gradient(
      calc(var(--holo-angle) * 1deg),
      transparent 30%,
      rgba(120, 220, 255, 0.12) 42%,
      rgba(255, 170, 220, 0.2) 50%,
      rgba(170, 255, 150, 0.12) 58%,
      transparent 70%
    );
  mix-blend-mode: color-dodge;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  transition: background 0.12s ease-out;
  animation: holo-shimmer 3.5s ease-in-out infinite;
}

.hub-btn-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.hub-btn-shimmer::before,
.hub-btn-shimmer::after {
  content: '';
  position: absolute;
  top: -90%;
  left: -80%;
  width: 55%;
  height: 280%;
  transform: rotate(16deg);
  pointer-events: none;
}

.hub-btn-shimmer::before {
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 36%,
    rgba(255, 255, 255, 0.58) 47%,
    rgba(255, 236, 170, 0.45) 50%,
    rgba(190, 235, 255, 0.38) 53%,
    rgba(255, 255, 255, 0.08) 62%,
    transparent 72%
  );
  mix-blend-mode: overlay;
  animation: skills-shimmer-sweep 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.hub-btn-shimmer::after {
  width: 35%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 62%
  );
  mix-blend-mode: soft-light;
  animation: skills-shimmer-sweep 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  animation-delay: 0.14s;
}

.hub-btn-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.hub-btn-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffe566, #ff9ef0, #7ef0ff, #b8ff80, #ffe566);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo-text-shift 3s linear infinite;
}

.hub-btn-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: rgba(255, 252, 240, 0.9);
  transition: transform 0.25s ease, color 0.25s ease;
}

.hub-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 160, 0.65);
  box-shadow:
    0 0 32px rgba(255, 190, 90, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hub-btn:hover .hub-btn-arrow {
  transform: translateX(4px);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hub-btn::before,
  .hub-btn::after,
  .hub-btn-shimmer::before,
  .hub-btn-shimmer::after,
  .hub-btn-label {
    animation: none;
  }
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-tag,
.card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-chroma-bright);
}

.card-timecode {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
}

.card-prompt {
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.32);
}

.usecase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.usecase-list li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}

.usecase-list strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 2px;
}

.card--cta {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 18px;
  color: #fff;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card--cta:hover {
  color: #fff;
  border-color: rgba(74, 222, 128, 0.85);
  background: rgba(34, 197, 94, 0.26);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2), 0 0 28px rgba(34, 197, 94, 0.22);
  transform: translateX(4px);
}

.card--cta-chroma {
  background: rgba(180, 83, 9, 0.2);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.1), 0 4px 20px rgba(0, 0, 0, 0.35);
}

.card--cta-chroma:hover {
  border-color: rgba(251, 191, 36, 0.8);
  background: rgba(180, 83, 9, 0.34);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25), 0 0 28px rgba(180, 83, 9, 0.28);
}

.card--cta-chroma .cta-prefix,
.card--cta-chroma .cta-arrow,
.card--cta-chroma .cta-text {
  color: #fff;
}

.cta-prefix {
  font-family: var(--font-mono);
  color: var(--color-meshy-bright);
  font-weight: 600;
  font-size: 13px;
}

.cta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: 1;
  color: #fff;
  font-weight: 500;
}

.cta-arrow {
  color: var(--color-meshy-bright);
  font-size: 14px;
  font-weight: 600;
}

.brand-meshy { color: var(--color-meshy-bright); }
.brand-chroma { color: var(--color-chroma-bright); }

.footer {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-sep { opacity: 0.4; }

/* ========== VIEWER ARROWS ========== */
.viewer-nav {
  position: fixed;
  top: var(--letterbox-h);
  bottom: var(--letterbox-h);
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 54vw);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.35s;
}

.viewer-nav.visible { opacity: 1; }

.viewer-arrow {
  appearance: none;
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.42);
  background: rgba(8, 14, 10, 0.78);
  backdrop-filter: blur(14px);
  color: var(--color-meshy-bright);
  font-family: var(--font-mono);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 28px rgba(34, 197, 94, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  --holo-x: 50%;
  --holo-y: 50%;
  --holo-angle: 45;
}

.viewer-arrow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #ffd93d,
    #6bff8e,
    #6bc5ff,
    #c86bff,
    #ff9ef0,
    #ff6b6b
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.82;
  animation: holo-border-hue 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.viewer-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255, 245, 200, 0.34) 0%, transparent 46%),
    linear-gradient(
      calc(var(--holo-angle) * 1deg),
      transparent 28%,
      rgba(120, 220, 255, 0.14) 42%,
      rgba(255, 170, 220, 0.22) 50%,
      rgba(170, 255, 150, 0.14) 58%,
      transparent 72%
    );
  mix-blend-mode: color-dodge;
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
  transition: background 0.12s ease-out;
  animation: holo-shimmer 3.5s ease-in-out infinite;
}

.viewer-arrow-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.viewer-arrow-shimmer::before,
.viewer-arrow-shimmer::after {
  content: '';
  position: absolute;
  top: -90%;
  left: -80%;
  width: 55%;
  height: 280%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(180, 255, 220, 0.28) 50%,
    rgba(255, 255, 255, 0.14) 52%,
    transparent 62%
  );
  transform: rotate(18deg);
  animation: holo-bar-shift 2.2s ease-in-out infinite;
}

.viewer-arrow-shimmer::after {
  animation-delay: 1.1s;
  opacity: 0.65;
}

.viewer-arrow-glyph {
  position: relative;
  z-index: 3;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.55);
  animation: holo-text-shift 3s linear infinite;
}

.viewer-arrow:hover {
  color: #fff;
  border-color: rgba(74, 222, 128, 0.72);
  background: rgba(12, 24, 16, 0.88);
  box-shadow:
    0 0 36px rgba(34, 197, 94, 0.32),
    0 10px 28px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}

.viewer-arrow:active:not(:disabled) { transform: scale(0.96); }

.viewer-nav:not(.is-ready) .viewer-arrow {
  opacity: 0.35;
  cursor: wait;
  pointer-events: none;
}

.viewer-arrow:focus-visible {
  outline: 2px solid var(--color-meshy-bright);
  outline-offset: 3px;
}

/* ========== RESPONSIVE — mobile portrait : hero haut, dock bas, centre libre ========== */
@media (max-width: 960px) {
  :root {
    --mobile-header-h: 108px;
    --mobile-dock-max: min(44vh, 400px);
    --mobile-viewer-center: calc(
      var(--letterbox-h) + var(--mobile-header-h) +
      (100vh - var(--letterbox-h) * 2 - var(--mobile-header-h) - var(--mobile-dock-max)) / 2
    );
  }

  .ui {
    display: block;
    position: fixed;
    inset: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .ui > * {
    pointer-events: auto;
  }

  .hero {
    position: fixed;
    top: var(--letterbox-h);
    left: 0;
    right: 0;
    z-index: 12;
    max-width: none;
    padding: 8px 14px 20px;
    text-align: center;
    background: linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.94) 0%,
      rgba(20, 20, 20, 0.72) 55%,
      rgba(20, 20, 20, 0) 100%
    );
  }

  .hero-eyebrow {
    margin-bottom: 2px;
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .hero-title {
    font-size: clamp(28px, 8.5vw, 42px);
    margin-bottom: 0;
    line-height: 0.92;
    justify-content: center;
    max-width: none;
  }

  .hero-desc {
    display: none;
  }

  .viewer-lane {
    display: none !important;
  }

  .mobile-dock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--letterbox-h);
    z-index: 12;
    max-height: var(--mobile-dock-max);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(
      0deg,
      rgba(8, 8, 10, 0.98) 0%,
      rgba(8, 8, 10, 0.94) 55%,
      rgba(8, 8, 10, 0.55) 85%,
      rgba(8, 8, 10, 0) 100%
    );
    pointer-events: auto;
  }

  .widgets {
    width: 100%;
    gap: 8px;
  }

  .skills-column {
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .skills-column.visible {
    opacity: 1;
    transform: none;
  }

  .skills-block {
    padding: 14px 16px;
  }

  .skills-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .footer {
    padding: 2px 0 0;
  }

  .card {
    padding: 12px 14px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-prompt {
    font-size: 11px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hub-btn {
    padding: 11px 14px;
  }

  .card--usecase {
    display: none;
  }

  .card--cta {
    padding: 11px 14px;
  }

  .viewer-nav {
    position: fixed;
    width: min(340px, 84vw);
    top: var(--mobile-viewer-center);
    bottom: auto;
    height: 68px;
    transform: translate(-50%, -50%);
    z-index: 11;
  }

  .viewer-arrow {
    width: 56px;
    height: 56px;
  }

  .viewer-arrow-glyph {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --letterbox-h: 16px;
    --mobile-header-h: 96px;
    --mobile-dock-max: min(46vh, 360px);
  }

  .hero-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .skills-list {
    grid-template-columns: 1fr;
  }
}

/* ========== Visionneuse 3D (mode inspect) ========== */
.inspect-viewer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.inspect-viewer-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 65% at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.inspect-back {
  position: fixed;
  top: calc(var(--letterbox-h) + 18px);
  left: clamp(16px, 3vw, 32px);
  z-index: 16;
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.inspect-back:hover {
  border-color: rgba(255, 140, 42, 0.55);
  background: rgba(20, 18, 16, 0.88);
  transform: translateX(-2px);
}

.inspect-hint {
  position: fixed;
  bottom: calc(var(--letterbox-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ui.is-inspect-hidden,
.viewer-nav.is-inspect-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.inspect-mode-active #canvas {
  cursor: grab;
}

body.inspect-mode-active #canvas.is-grabbing {
  cursor: grabbing;
}

body.inspect-mode-active .letterbox {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

/* ========== Panneau éclairage — dans le hero, sous la description ========== */
.lighting-panel {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 10, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.lighting-panel.is-collapsed .lighting-panel-body {
  display: none;
}

.lighting-panel.is-collapsed .lighting-panel-chevron {
  transform: rotate(-90deg);
}

.lighting-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--color-chroma-bright);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.lighting-panel-chevron {
  display: inline-block;
  transition: transform 0.25s ease;
  color: rgba(255, 255, 255, 0.55);
}

.lighting-panel-body {
  padding: 0 10px 10px;
  display: grid;
  gap: 8px;
}

.lighting-control {
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.lighting-control-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.lighting-control-value {
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.lighting-control input[type='range'] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--color-chroma-bright);
  cursor: pointer;
}

.lighting-control input[type='color'] {
  width: 100%;
  height: 22px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.lighting-reset {
  margin-top: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lighting-reset:hover {
  border-color: rgba(255, 140, 42, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

body.mobile-gate-active .hero-controls {
  display: none;
}

@media (max-width: 960px) {
  .hero-controls {
    display: none;
  }
}
