/* KRYO° — écran d'entrée. Indépendant du reste du site : supprimer ce fichier et intro.js suffit à le retirer. */
html.ki-lock, html.ki-lock body { overflow: hidden; }

#kintro {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  /* Même grille que le canvas thermique du site : pas 14 px, tuile 12 px */
  background-color: #121215;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 12px, #08080A 12px 14px),
    repeating-linear-gradient(180deg, transparent 0 12px, #08080A 12px 14px);
  color: var(--text, #E6E7EA);
  font: 400 12px/1.55 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .55s ease .55s;
}
#kintro.ki-out { opacity: 0; pointer-events: none; }

/* Mot-marque géant, derrière la veste */
.ki-word {
  position: absolute; left: 50%; top: 26%; transform: translate(-50%, -50%);
  display: flex; align-items: flex-start; white-space: nowrap;
  font: 700 min(23vw, 40vh)/1 'Silkscreen', 'JetBrains Mono', monospace; letter-spacing: .02em;
  color: #FF6B00; opacity: 0;
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.7, 0, .2, 1);
  user-select: none;
}
.ki-word.ki-on { opacity: .9; }
.ki-word i { display: inline-block; width: .3em; height: .3em; border: .08em solid currentColor; margin-left: .03em; margin-top: .06em; }
.ki-out .ki-word { opacity: 0; transform: translate(-50%, -50%) scale(1.08); transition-delay: 0s; }

/* Veste : extérieur + rayons-X superposés */
.ki-jacket {
  position: absolute; left: 50%; top: 56%; width: min(84vw, 70vh); aspect-ratio: 1542 / 1444;
  transform: translate(-50%, -50%); transform-origin: 0 0; will-change: transform;
}
.ki-jacket img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ki-ext { clip-path: inset(0 0 100% 0); }
.ki-xray { clip-path: inset(0 0 100% 0); }
.ki-line {
  position: absolute; left: -9%; width: 118%; height: 1px; top: 0; opacity: 0;
  background: #FF6B00; box-shadow: 0 0 18px 2px rgba(255, 107, 0, .75), 0 0 60px 8px rgba(255, 107, 0, .25);
}

/* Habillage façon viseur, identique au hero */
.ki-hud { position: absolute; inset: 18px var(--gutter, 24px); display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; transition: opacity .4s ease; pointer-events: none; }
.ki-out .ki-hud { opacity: 0; }
.ki-corner { position: absolute; width: 16px; height: 16px; border: 0 solid currentColor; opacity: .75; }
.ki-corner.a { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.ki-corner.b { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.ki-corner.c { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.ki-corner.d { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.ki-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ki-row.top { align-items: flex-start; }
.ki-row .right { text-align: right; }
.ki-muted { color: var(--muted, #8C9099); }
.ki-read { min-width: 0; }
.ki-temp { display: block; font: 700 clamp(30px, 5vw, 58px)/1 'Silkscreen', 'JetBrains Mono', monospace; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ki-temp i { display: inline-block; width: .3em; height: .3em; border: .08em solid #FF6B00; margin-left: .08em; vertical-align: .55em; }
.ki-bar { width: min(240px, 40vw); height: 1px; background: var(--line-hi, #4A4C53); margin-top: 10px; }
.ki-bar b { display: block; height: 100%; width: 0; background: #FF6B00; }
.ki-mention { font-size: 10px; margin-top: 8px; }

.ki-enter {
  pointer-events: auto; flex: none; background: rgba(8, 8, 10, .6); border: 1px solid var(--line-hi, #4A4C53); color: var(--muted, #8C9099);
  padding: 15px 22px; min-width: 190px; display: inline-flex; justify-content: space-between; gap: 22px;
  font: 500 12px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.ki-enter:hover { color: #fff; border-color: #fff; }
.ki-enter.ki-ready { background: #FF6B00; border-color: #FF6B00; color: #000; box-shadow: 0 0 34px rgba(255, 107, 0, .45); }
.ki-enter.ki-ready:hover { background: #fff; border-color: #fff; color: #000; box-shadow: 0 0 34px rgba(255, 255, 255, .3); }

@media (max-width: 620px) {
  .ki-hud { inset: 10px; padding: 14px 12px; }
  .ki-word { top: 20%; font-size: 21.5vw; }
  .ki-jacket { width: 92vw; top: 51%; }
  .ki-row.top { font-size: 10.5px; }
  .ki-row.bottom { flex-direction: column; align-items: stretch; gap: 14px; }
  .ki-enter { width: 100%; }
  .ki-bar { width: 100%; }
}
