/* ==========================================================================
   Léa Datin — Portfolio
   ========================================================================== */

:root {
  --bg: #05070d;         /* noir */
  --bg-2: #0b1530;       /* bleu foncé */
  --text: #f4f6fb;
  --muted: #8a95ad;
  --line: rgba(160, 185, 255, 0.14);
  --accent: #ffd23f;      /* jaune */
  --accent-2: #2f6bff;    /* bleu */
  --accent-3: #0f2a6b;    /* bleu nuit */

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-style: normal; }

::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  transition: transform 1s var(--ease-in-out);
}

.loader__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.24rem, 3.72vw, 3.1rem);
  letter-spacing: -0.03em;
  overflow: hidden;
  display: flex;
}

.loader__name span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderLetter 0.8s var(--ease-out) forwards;
}

.loader__name span:nth-child(1) { animation-delay: 0.05s; }
.loader__name span:nth-child(2) { animation-delay: 0.1s; }
.loader__name span:nth-child(3) { animation-delay: 0.15s; }
.loader__name span:nth-child(4) { animation-delay: 0.2s; }
.loader__name span:nth-child(5) { animation-delay: 0.25s; }
.loader__name span:nth-child(6) { animation-delay: 0.3s; }
.loader__name span:nth-child(7) { animation-delay: 0.35s; }
.loader__name span:nth-child(8) { animation-delay: 0.4s; }
.loader__name span:nth-child(9) { animation-delay: 0.45s; }

@keyframes loaderLetter { to { transform: translateY(0); } }

.loader__count {
  align-self: flex-end;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 9.9vw, 8.8rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

body.is-loaded .loader { transform: translateY(-100%); }

/* ---------- Cursor ---------- */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  border-radius: 50%;
}

.cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--text);
  display: grid;
  place-items: center;
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out),
    background-color 0.3s, border-color 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursor__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--text);
}

.cursor.has-label {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}

.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label ~ .cursor-dot,
.cursor.is-hover ~ .cursor-dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header.is-hidden { transform: translateY(-100%); }

.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.4s, color 0.4s, transform 0.6s var(--ease-out);
}

.logo:hover .logo__mark {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(360deg);
}

.nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(11, 21, 48, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__link {
  position: relative;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--bg); background: var(--text); }

.header__right { display: flex; align-items: center; gap: 16px; }

.header-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.header-cv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.header-cv:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.header-cv:hover svg { transform: translateY(2px); }
@media (max-width: 420px) { .header-cv span { display: none; } .header-cv { padding: 9px 11px; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch__label { color: var(--muted); transition: color 0.4s; }
.lang-switch:not(.is-en) .lang-switch__label--fr,
.lang-switch.is-en .lang-switch__label--en { color: var(--text); }

.lang-switch__track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: background 0.4s, border-color 0.4s;
}

.lang-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.5);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.25s;
}

.lang-switch:active .lang-switch__knob { width: 24px; }
.lang-switch.is-en .lang-switch__track { background: var(--accent-2); border-color: var(--accent-2); }
.lang-switch.is-en .lang-switch__knob { transform: translateX(22px); }
.lang-switch.is-en:active .lang-switch__knob { transform: translateX(16px); }
.lang-switch:hover .lang-switch__track { border-color: var(--accent); }
.lang-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}

.burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 45px) 43px);
  transition: clip-path 0.8s var(--ease-in-out);
}

.menu.is-open { clip-path: circle(150% at calc(100% - 45px) 43px); }

.menu__nav { display: flex; flex-direction: column; gap: 8px; }

.menu__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 8.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out), color 0.3s;
}

.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.32s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.39s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.46s; }
.menu__link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::before { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary::before { background: var(--text); }

.btn--ghost { border: 1px solid var(--line); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); }

.btn__icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px) rotate(-45deg); }

.magnetic { will-change: transform; }

/* ---------- Eyebrow & titles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow span:first-child {
  color: var(--accent);
  font-family: var(--font-display);
}

.eyebrow span:first-child::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin-left: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.49rem, 4.34vw, 3.72rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-title em {
  font-family: var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.section-head { margin-bottom: clamp(48px, 8vw, 96px); }
.section-foot { margin-top: 56px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.link-arrow::after { content: "→"; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Split text ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.16em; }
.split-word { display: inline-block; white-space: nowrap; }

.split .char {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 0.035s + var(--d, 0s));
}

.split.is-visible .char { transform: none; }

/* ---------- Reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal-up.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(40px, 7vw, 80px);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  top: 20%;
  left: 55%;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 60%),
    radial-gradient(circle at 70% 60%, var(--accent-3), transparent 55%),
    radial-gradient(circle at 50% 80%, var(--accent), transparent 50%);
  filter: blur(60px);
  opacity: 0.55;
  animation: morph 14s ease-in-out infinite;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 1.2s var(--ease-out);
  pointer-events: none;
}

.hero__blob--2 {
  top: auto;
  bottom: -20%;
  left: -10%;
  width: 30vw;
  height: 30vw;
  opacity: 0.3;
  animation-duration: 18s;
  animation-direction: reverse;
  translate: calc(var(--mx, 0) * -1) calc(var(--my, 0) * -1);
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; transform: rotate(120deg) scale(1.1); }
  66% { border-radius: 30% 70% 38% 62% / 62% 44% 56% 38%; transform: rotate(240deg) scale(0.95); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  background: rgba(11, 21, 48, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease-out) infinite;
}

@keyframes pulse { to { transform: scale(3.5); opacity: 0; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.48rem, min(10.45vw, 14.85vh), 9.9rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.line--indent { padding-left: clamp(0px, 12vw, 200px); }

.split--outline .char {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  transition: transform 1.1s var(--ease-out), color 0.4s;
}

.split--outline .char:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.hero__bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.hero__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.04rem, 1.92vw, 1.6rem);
  line-height: 1.2;
}

.hero__role > span:first-child { display: block; color: var(--muted); font-weight: 500; }

.rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--accent);
}

.rotator__word {
  display: inline-block;
  transition: transform 0.6s var(--ease-in-out), opacity 0.6s;
}

.rotator__word.is-out { transform: translateY(-100%); opacity: 0; }
.rotator__word.is-in { transform: translateY(100%); opacity: 0; transition: none; }

.hero__desc { color: var(--muted); max-width: 380px; }

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  top: 130px;
  right: var(--gutter);
  z-index: 2;
}

.scroll-hint__circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
}

.scroll-hint svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 14s linear infinite;
  fill: var(--text);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.scroll-hint__arrow {
  font-size: 1.26rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 50% { transform: translateY(6px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 28px 0;
  background: var(--accent);
  color: var(--bg);
  transform: rotate(-2deg) scale(1.04);
  margin: 40px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.26rem, 2.8vw, 2.45rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee__content i { font-style: normal; font-size: 0.6em; display: inline-block; animation: spin 6s linear infinite; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 16vw, 200px) 0; }

.manifesto__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.26rem, 3.22vw, 2.94rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 1200px;
}

.manifesto__text .word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.3s, color 0.3s;
}

.manifesto__text .word.is-lit { opacity: 1; }
.manifesto__text .word.is-key { color: var(--accent); }

/* ---------- Skills ---------- */
.skills { padding: clamp(60px, 10vw, 120px) 0; }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.card {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color 0.4s, opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.card.is-tilting { transition: border-color 0.4s, transform 0.15s linear; }
.card:hover { border-color: rgba(255, 210, 63, 0.45); }

.card:nth-child(2) { --d: 0.1s; }
.card:nth-child(3) { --d: 0.2s; }
.card:nth-child(4) { --d: 0.3s; }

.card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 210, 63, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover .card__glow { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin: 40px 0 auto;
  transform: translateZ(40px);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke 0.4s;
}

.card__icon .fill { fill: var(--accent); stroke: none; }
.card:hover .card__icon svg { stroke: var(--accent); animation: draw 1.2s var(--ease-out); }

@keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 32px 0 12px;
  transform: translateZ(30px);
}

.card__text {
  color: var(--muted);
  font-size: 0.95rem;
  transform: translateZ(20px);
}

/* ---------- Projects (horizontal scroll) ---------- */
.projects {
  position: relative;
  height: 400vh; /* recalculated in JS */
}

.projects__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.projects__head { margin-bottom: clamp(24px, 4vw, 48px); }
.projects__head .eyebrow { margin-bottom: 16px; }

.projects__track {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.project {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: border-radius 0.6s var(--ease-out);
}

.project:hover .project__visual { border-radius: 80px; }

.project__visual--1 { background: linear-gradient(135deg, #2f6bff, #0f2a6b); }
.project__visual--2 { background: linear-gradient(135deg, #ffd23f, #f5a300); }
.project__visual--3 { background: linear-gradient(135deg, #0b1530, #2f6bff); }
.project__visual--4 { background: linear-gradient(135deg, #5b9bff, #13306e); }

.project__shape {
  width: 45%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 1s var(--ease-out), border-radius 1s var(--ease-out);
}

.shape--circle { border-radius: 50%; }
.shape--square { border-radius: 24px; transform: rotate(12deg); }
.shape--drop { border-radius: 50% 50% 0 50%; }
.shape--leaf { border-radius: 0 50% 50% 50%; }

.project__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.project:hover .project__visual img,
.work-card:hover .project__visual img { transform: scale(1.06); }

.project:hover .project__shape,
.work-card:hover .project__shape { transform: scale(1.2) rotate(-45deg); border-radius: 30%; }

.project__meta { display: flex; flex-direction: column; gap: 8px; }

.tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--alt { border-color: #5b9bff; color: #5b9bff; }

.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 1.76vw, 1.6rem);
  line-height: 1.1;
}

.project__desc { color: var(--muted); font-size: 0.95rem; max-width: 440px; }

.project--all {
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 3 / 4;
  align-self: flex-start;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}

.project--all__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.44rem, 2.4vw, 2.24rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.project--all__arrow { font-size: 1.6rem; transition: transform 0.5s var(--ease-out); }
.project--all:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.project--all:hover .project--all__arrow { transform: translateX(10px) rotate(-45deg); }

.projects__progress {
  margin: clamp(24px, 4vw, 48px) var(--gutter) 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.projects__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Process ---------- */
.process { padding: clamp(100px, 14vw, 180px) 0 clamp(60px, 10vw, 120px); }

.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 36px 28px 36px 0;
}

.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step:nth-child(2) { --d: 0.1s; }
.step:nth-child(3) { --d: 0.2s; }
.step:nth-child(4) { --d: 0.3s; }

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}

.step:hover::before { transform: scaleX(1); }

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.5vw, 3.15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.step:hover .step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 24px 0 8px;
}

.step__text { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.cta .container { position: relative; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.76rem, 7.15vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
}

.split--gradient .char {
  background: linear-gradient(90deg, var(--accent-2), #8fbaff, var(--accent-2), #1d4ed8, var(--accent-2));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift { to { background-position: 300% 0; } }

.cta__text {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 56px;
}

.cta__button {
  display: inline-grid;
  place-items: center;
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta__button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.6s var(--ease-out);
}

.cta__button:hover::before { transform: scale(1); }
.cta__button-inner { padding: 0 24px; }

.cta__mail {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  font-family: var(--font-display);
  font-size: clamp(0.99rem, 2.16vw, 1.62rem);
  font-weight: 700;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
  word-break: break-all;
}

.cta__mail:hover { background-size: 100% 2px; color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__social { display: flex; gap: 24px; }

.hover-line {
  position: relative;
  transition: color 0.3s;
}

.hover-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.hover-line:hover { color: var(--text); }
.hover-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__ctas { grid-column: 1 / -1; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .burger { display: block; }
  .scroll-hint { display: none; }
  .hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero__title { font-size: clamp(2.2rem, 13.2vw, 5.5rem); }
  .line--indent { padding-left: 8vw; }
  .split--outline .char { -webkit-text-stroke-width: 1.5px; }
  .project { width: 78vw; }
  .project--all { width: 60vw; }
}

@media (max-width: 560px) {
  .skills__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 0; }
  .process__list { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   Shared UI: transitions, toast, menu footer
   ========================================================================== */
html.no-scroll, html.no-scroll body { overflow: hidden; }

body.no-loader .loader { display: none; }

.transition {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--accent-2);
  display: grid;
  place-items: center;
  transform: translateY(100%);
  pointer-events: none;
}

.transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: translateY(100%);
}

.transition__logo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.86rem, 6.2vw, 4.34rem);
  color: var(--accent);
  letter-spacing: -0.04em;
}

body.is-leaving .transition { animation: transIn 0.65s var(--ease-in-out) forwards; pointer-events: all; }
body.is-leaving .transition::before { animation: transIn 0.65s 0.08s var(--ease-in-out) forwards; }
body.is-entering .transition { animation: transOut 0.8s 0.05s var(--ease-in-out) both; }
body.is-entering .transition::before { transform: none; animation: transOut 0.8s var(--ease-in-out) both; }

@keyframes transIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes transOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 160;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
  pointer-events: none;
}

.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.menu { flex-direction: column; justify-content: center; align-items: flex-start; gap: 48px; }

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s 0.5s;
}

.menu.is-open .menu__foot { opacity: 1; }
.menu__link.is-active { color: var(--accent); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(140px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.page-hero .hero__blob { top: -10%; left: 50%; opacity: 0.45; }
.page-hero .container { position: relative; z-index: 2; }

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.87rem, 5.5vw, 4.95rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-title--xl { font-size: clamp(2.2rem, 8.8vw, 8.25rem); line-height: 0.85; }

.page-title__count {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.15em;
  font-size: 0.18em;
  letter-spacing: 0;
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.page-hero__lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
}

.page-hero__ctas,
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.cta__row { justify-content: center; }

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

/* Portrait */
.portrait { position: relative; justify-self: center; width: min(100%, 440px); }

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-2), transparent 55%),
    radial-gradient(circle at 80% 90%, var(--accent), transparent 45%),
    var(--bg-2);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: bottom center;
  z-index: 1;
  transition: transform 1.2s var(--ease-out);
}

.portrait:hover .portrait__img { transform: scale(1.05); }

.portrait__initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 6.6vw, 4.95rem);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.sticker {
  position: absolute;
  left: -40px;
  bottom: 40px;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
}

.sticker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--bg);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  animation: spin 12s linear infinite;
}

.sticker__star { font-size: 1.6rem; animation: spin 6s linear infinite reverse; }

/* ==========================================================================
   About
   ========================================================================== */
.manifesto--tight { padding: clamp(60px, 10vw, 140px) 0; }

.values { padding: clamp(40px, 8vw, 100px) 0; }

.values__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value {
  position: relative;
  padding: 36px 32px 40px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s, opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.value::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.8s var(--ease-in-out);
}

.value:hover { color: var(--bg); }
.value:hover::before { clip-path: circle(150% at 100% 0%); }
.value:nth-child(2) { --d: 0.1s; }
.value:nth-child(3) { --d: 0.2s; }

.value__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.45rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  transition: -webkit-text-stroke-color 0.5s;
}

.value:hover .value__num { -webkit-text-stroke-color: var(--bg); }

.value__title {
  font-family: var(--font-display);
  font-size: 1.62rem;
  margin: 40px 0 10px;
}

.value__text { opacity: 0.75; }

/* Timeline */
.timeline-section { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }

.timeline {
  position: relative;
  max-width: 900px;
  --progress: 0;
}

.timeline__line {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline__line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform-origin: top;
  transform: scaleY(var(--progress));
}

.timeline__list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }

.tl-item { position: relative; padding-left: 56px; }

.tl-item__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.tl-item.is-active .tl-item__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.18);
}

.tl-item__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.tl-item__period {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.tl-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.76rem);
  line-height: 1.1;
}

.tl-item__place { color: var(--text); opacity: 0.8; font-weight: 500; margin: 4px 0 10px; }
.tl-item__text { color: var(--muted); max-width: 620px; }

/* Toolbox */
.toolbox { padding: clamp(80px, 12vw, 160px) 0; }

.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), transparent 70%);
}

.skill-group__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.skill-group__title span { font-size: 0.85rem; color: var(--accent); }

.skill-group__list,
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.pill:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-3px) rotate(-2deg);
}

.languages {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.languages__title { font-family: var(--font-display); font-size: 1.17rem; }
.languages__list { display: flex; gap: 32px; flex-wrap: wrap; }
.languages__title--sep { margin-left: auto; }
.interests { display: flex; gap: 8px; flex-wrap: wrap; }
.languages__list li { display: flex; flex-direction: column; }
.languages__list span { font-weight: 600; }
.languages__list em { color: var(--muted); font-size: 0.9rem; }

.cta--small { padding: clamp(80px, 12vw, 140px) 0; }
.cta--small .cta__title { font-size: clamp(1.65rem, 5.5vw, 4.4rem); }

/* ==========================================================================
   Projects page
   ========================================================================== */
.work { padding-bottom: clamp(60px, 10vw, 120px); }

.filters {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: clamp(40px, 6vw, 64px);
  background: rgba(11, 21, 48, 0.4);
}

.filters__pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 100px;
  background: var(--accent);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
}

.filters__btn {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.4s;
}

.filters__btn:hover { color: var(--text); }
.filters__btn.is-active { color: var(--bg); }
.filters__btn sup { font-size: 0.7em; opacity: 0.7; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 32px);
  transition: opacity 0.3s, transform 0.3s;
}

.work__grid.is-switching { opacity: 0; transform: translateY(20px); }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  border-radius: var(--radius);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.work-card.is-tilting { transition: transform 0.15s linear; }
.work-card.is-hidden { display: none; }
.work-card:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.work-card:nth-child(even).reveal-up { --d: 0.1s; }

.work-card__visual { aspect-ratio: 5 / 4; width: 100%; }
.work-card:hover .work-card__visual { border-radius: 80px; }

.work-card__meta { display: flex; flex-direction: column; gap: 8px; }
.work-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-card__year { color: var(--muted); font-family: var(--font-display); font-weight: 700; }

.work-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.08vw, 1.76rem);
  line-height: 1.1;
}

.work-card__desc { color: var(--muted); }

.work-card__more {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.work-card__more i { font-style: normal; transition: transform 0.4s var(--ease-out); }
.work-card:hover .work-card__more i { transform: translateX(6px) rotate(-45deg); }

.work-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  transition: visibility 0s 0.8s;
}

.modal.is-open { visibility: visible; transition: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.6s;
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(720px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.8s var(--ease-in-out), opacity 0.2s;
}

.modal.is-open .modal__panel { transform: none; }
.modal__panel.is-swapping { opacity: 0; }

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}

.modal__close:hover { background: var(--accent); color: var(--bg); transform: rotate(90deg); }

.modal__visual .project__visual { border-radius: 0; aspect-ratio: 16 / 10; }

.modal__body { padding: clamp(24px, 5vw, 48px); }
.modal__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.24rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.modal__summary { font-size: 1.15rem; color: var(--muted); margin-bottom: 40px; }

.modal__sections { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }

.modal__sections h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.modal__nav button { font-weight: 600; color: var(--muted); transition: color 0.3s; }
.modal__nav button:hover { color: var(--accent); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.wave {
  display: inline-block;
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 0.2em;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.contact { padding-bottom: clamp(80px, 12vw, 160px); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 16px; }

.contact__intro {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 16px;
}

.info-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.info-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.info-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.info-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  word-break: break-all;
  transition: color 0.3s;
}

.info-card__value:hover { color: var(--accent); }
.info-card__links { display: flex; gap: 8px; flex-wrap: wrap; }
.info-card__status { display: flex; align-items: center; gap: 12px; font-weight: 500; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-btn:hover,
.copy-btn.is-done { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.pill-link {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.pill-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Form */
.form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), rgba(11, 21, 48, 0.3));
  overflow: hidden;
}

.form.shake { animation: shake 0.5s; }

@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-weight: 600; margin-bottom: 14px; }

.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: scale(1.04); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  padding: 26px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  resize: vertical;
  border-radius: 0;
}

.field textarea { min-height: 140px; }

.field label {
  position: absolute;
  left: 0;
  top: 26px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(0.8); color: var(--accent); }

.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.field:has(textarea)::after { top: auto; bottom: 30px; }
.field:focus-within::after { transform: scaleX(1); }

.field__error {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: #ff7a7a;
  font-size: 0.85rem;
  transition: max-height 0.3s, margin 0.3s;
}

.field.has-error input,
.field.has-error textarea { border-bottom-color: #ff7a7a; }
.field.has-error label { color: #ff7a7a; }
.field.has-error .field__error { max-height: 40px; margin-top: 6px; }

.field__count { display: block; text-align: right; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.btn--submit { align-self: flex-start; padding: 18px 32px; font-size: 1rem; }
.form__note { font-size: 0.85rem; color: var(--muted); margin-top: -12px; }

.form__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background: var(--bg-2);
  clip-path: circle(0% at 50% 100%);
  transition: clip-path 0.9s var(--ease-in-out);
}

.form.is-sent .form__success { clip-path: circle(150% at 50% 100%); }

.form__success-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.6rem;
  font-weight: 800;
  transform: scale(0);
  transition: transform 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form.is-sent .form__success-icon { transform: scale(1); }
.form__success h3 { font-family: var(--font-display); font-size: 1.6rem; }
.form__success p { color: var(--muted); max-width: 380px; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.notfound .hero__blob { left: 30%; top: 10%; }
.notfound .container { position: relative; z-index: 2; }

.notfound__code {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 19.25vw, 14.3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.notfound__code::before,
.notfound__code::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
}

.notfound__code::before { color: var(--accent); animation: glitch 2.5s infinite steps(2); clip-path: inset(0 0 60% 0); }
.notfound__code::after { color: var(--accent-2); animation: glitch 2s infinite steps(2) reverse; clip-path: inset(55% 0 0 0); }

@keyframes glitch {
  0%, 85%, 100% { transform: translate(0); }
  88% { transform: translate(-8px, 3px); }
  92% { transform: translate(8px, -3px); }
  96% { transform: translate(-4px, 0); }
}

.notfound__text { font-size: 1.2rem; color: var(--muted); margin: 16px 0 40px; }

/* ==========================================================================
   Inner pages responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 380px); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .values__list { grid-template-columns: 1fr; }
  .toolbox__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
  .form__row { grid-template-columns: 1fr; }
  .sticker { left: -10px; width: 110px; height: 110px; }
}

@media (max-width: 560px) {
  .filters { display: flex; border-radius: 24px; }
  .filters__btn { padding: 10px 14px; font-size: 0.9rem; }
  .modal__nav { flex-direction: column; align-items: flex-start; }
  .btn--submit { align-self: stretch; justify-content: center; }
}

/* ==========================================================================
   Story pages (projects & passions)
   ========================================================================== */
.s-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(48px, 7vw, 90px);
  overflow: hidden;
}

.s-hero__inner { position: relative; z-index: 2; }

.s-back {
  display: block;
  width: fit-content;
  margin-bottom: 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

.s-back:hover { color: var(--accent); transform: translateX(-6px); }

.s-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, min(9.35vw, 14.3vh), 8.8rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.s-title--long { font-size: clamp(1.65rem, min(6.05vw, 11vh), 5.5rem); line-height: 0.98; }

.s-tagline {
  max-width: 620px;
  font-size: clamp(0.95rem, 1.44vw, 1.17rem);
  color: var(--muted);
  margin-bottom: 36px;
}

.s-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.s-facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-facts dd { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.s-bigword {
  position: absolute;
  right: -2vw;
  top: 90px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 16.5vw, 16.5rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 185, 255, 0.14);
  pointer-events: none;
  animation: floatY 9s ease-in-out infinite;
}

@keyframes floatY { 50% { transform: translateY(-24px); } }

/* ---------- Eclipse hero ---------- */
.eclipse {
  --size: min(44vw, 56vh);
  position: absolute;
  top: 13%;
  right: 3%;
  width: var(--size);
  height: var(--size);
  pointer-events: none;
}

.eclipse__sun,
.eclipse__moon,
.eclipse__corona { position: absolute; inset: 0; border-radius: 50%; }

.eclipse__sun {
  background: radial-gradient(circle at 40% 40%, #ffe7a3, #ffb23f 40%, #ff6a13 78%);
  box-shadow: 0 0 60px 8px rgba(255, 120, 30, 0.6), 0 0 200px 60px rgba(120, 60, 255, 0.3);
}

.eclipse__corona {
  inset: -18%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 140, 40, 0.6), transparent 20%, rgba(110, 60, 255, 0.5), transparent 45%, rgba(255, 190, 60, 0.5), transparent 70%, rgba(90, 50, 220, 0.45), transparent);
  filter: blur(24px);
  opacity: calc(0.2 + var(--p, 0) * 0.8);
  animation: spin 16s linear infinite;
}

.eclipse__moon {
  background: radial-gradient(circle at 60% 35%, #1a2440, var(--bg) 70%);
  box-shadow: inset -10px -10px 40px rgba(0, 0, 0, 0.6);
  transform: translate(calc((1 - var(--p, 0)) * -85%), calc((1 - var(--p, 0)) * 30%));
  transition: transform 0.2s linear;
}

.hero-eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 var(--gutter);
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to top, #000 20%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
}

.hero-eq i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent-2), var(--accent));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: eqBar var(--dur, 0.8s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -53ms);
}

@keyframes eqBar { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.theme-eclipse .s-hero--eclipse .s-title .char {
  color: var(--bg);
  -webkit-text-stroke: 2px var(--accent);
}

.theme-eclipse .s-hero--eclipse .s-title .split.is-visible { animation: strobe 5s 1.6s infinite; }

@keyframes strobe {
  0%, 92%, 100% { filter: none; }
  93%, 97% { filter: drop-shadow(0 0 18px var(--accent)) brightness(1.6); }
  95% { filter: none; }
}

.marquee--story { background: var(--accent-2); color: var(--text); transform: rotate(2deg) scale(1.04); }

/* ---------- Intro, stats ---------- */
.s-intro { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }

.s-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.s-intro__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.04rem, 1.92vw, 1.6rem);
  line-height: 1.35;
}

.s-stats { padding: clamp(40px, 6vw, 80px) 0; }

.s-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { padding: 36px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); }

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.86rem, 3.72vw, 3.41rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat__label { color: var(--muted); }

/* ---------- Role ---------- */
.s-role { padding: clamp(60px, 10vw, 140px) 0; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-grid .value:nth-child(4) { grid-column: span 3; }

/* Tracklist (Eclipse) */
.tracklist { border-top: 1px solid var(--line); }

.track {
  position: relative;
  display: grid;
  grid-template-columns: 60px 40px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s, opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.track::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent), #ffb700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.track:hover { color: var(--bg); }
.track:hover::before { transform: scaleX(1); }

.track__num { font-family: var(--font-display); font-weight: 700; color: var(--muted); transition: color 0.4s; }
.track:hover .track__num { color: var(--bg); }

.track__play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  transition: transform 0.5s var(--ease-out);
}

.track:hover .track__play { transform: rotate(360deg) scale(1.1); }

.track__body { display: flex; flex-direction: column; gap: 4px; }

.track__title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.92rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.track__text { color: var(--muted); max-width: 640px; transition: color 0.4s; }
.track:hover .track__text { color: rgba(5, 7, 13, 0.75); }

.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }

.eq i {
  width: 4px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.2);
  transition: transform 0.3s;
}

.track:hover .eq i { animation: eqBar calc(0.35s + var(--i) * 0.07s) ease-in-out infinite alternate; }

/* ---------- Mascot ---------- */
.s-mascot { padding: clamp(60px, 10vw, 140px) 0; overflow: hidden; }

.s-mascot__text .section-title { margin-bottom: 24px; }

.s-mascot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mascot__halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.35), rgba(47, 107, 255, 0.25) 50%, transparent 70%);
  filter: blur(10px);
  animation: pulseHalo 3s ease-in-out infinite;
}

@keyframes pulseHalo { 50% { transform: scale(1.08); opacity: 0.7; } }

.mascot__btn {
  position: relative;
  width: 80%;
  height: 80%;
  display: grid;
  place-items: center;
  animation: floatY 4s ease-in-out infinite;
  cursor: pointer;
}

.mascot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease-out);
}

.mascot__btn:hover .mascot__img { transform: rotate(-6deg) scale(1.05); }

.mascot.is-jumping .mascot__btn { animation: jump 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), floatY 4s 0.8s ease-in-out infinite; }

@keyframes jump {
  0% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(0) scale(1.1, 0.9); }
  50% { transform: translateY(-60px) scale(0.95, 1.05) rotate(-8deg); }
  80% { transform: translateY(0) scale(1.05, 0.95); }
  100% { transform: translateY(0) scale(1, 1); }
}

.mascot__fallback { display: none; position: relative; width: 70%; aspect-ratio: 1; }
.mascot.is-fallback .mascot__fallback { display: block; }

.mf__corona {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: conic-gradient(var(--accent), #ffb700, var(--accent), #fff3b0, var(--accent));
  filter: blur(6px);
  animation: spin 8s linear infinite;
}

.mf__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #22305a, var(--bg) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16%;
  padding-bottom: 12%;
}

.mf__eye {
  position: relative;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  animation: blink 4s infinite;
}

.mf__eye i { width: 45%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); transition: transform 0.1s; }

@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

.mf__mouth {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: 22%;
  height: 11%;
  border-radius: 0 0 100px 100px;
  background: var(--accent);
  transform: translateX(-50%);
}

.mascot.is-talking .mf__mouth { animation: talk 0.25s ease-in-out infinite alternate; }
@keyframes talk { to { height: 4%; } }

.mascot__bubble {
  position: absolute;
  top: 2%;
  right: -4%;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 4px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.6) translateY(10px);
  transform-origin: bottom left;
  transition: opacity 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mascot.is-talking .mascot__bubble,
.mascot:hover .mascot__bubble { opacity: 1; transform: none; }

.mascot__hint {
  position: absolute;
  bottom: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--accent);
  font-size: 1.26rem;
  pointer-events: none;
  animation: spark 1s var(--ease-out) forwards;
}

@keyframes spark {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(0.4); opacity: 1; }
  to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) scale(1.2); opacity: 0; }
}

/* ---------- Media & placeholders ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  margin: 0;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.media[data-lb]:not(.is-empty) { cursor: zoom-in; }
.media:hover img { transform: scale(1.05); }

.ph { display: none; }

.media.is-empty .ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 107, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 210, 63, 0.18), transparent 50%),
    var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: inherit;
}

.ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Posters (drag) ---------- */
.s-posters { padding: clamp(60px, 10vw, 140px) 0; overflow: hidden; }

.posters {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 30px 0 50px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.posters::-webkit-scrollbar { display: none; }
.posters.is-dragging { cursor: grabbing; }
.posters.is-dragging .poster { pointer-events: none; }

.posters__track {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--gutter);
  width: max-content;
}

.poster {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease-out);
  user-select: none;
}

.poster img { -webkit-user-drag: none; }
.poster--1 { transform: rotate(-3deg); }
.poster--2 { transform: rotate(2deg) translateY(20px); }
.poster--3 { transform: rotate(-1deg) translateY(-10px); }
.poster:hover { transform: rotate(0) scale(1.04); z-index: 2; }

/* ---------- Gallery ---------- */
.s-gallery { padding: clamp(60px, 10vw, 140px) 0; }

.gallery { columns: 3 260px; column-gap: 20px; }

.gallery__item { break-inside: avoid; margin-bottom: 20px; }

.gallery__media { aspect-ratio: 4 / 5; }
.gallery__media--2 { aspect-ratio: 1; }
.gallery__media--3 { aspect-ratio: 3 / 4; }
.gallery__media--4 { aspect-ratio: 4 / 3; }
.gallery__media:not(.is-empty) { aspect-ratio: auto; }
.gallery__media:not(.is-empty) img { height: auto; }

.gallery__caption {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Links, next ---------- */
.s-links { padding: clamp(40px, 6vw, 80px) 0; }
.s-links__row { display: flex; flex-wrap: wrap; gap: 16px; }

.s-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 2.16vw, 1.62rem);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s, border-color 0.4s;
}

.s-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.s-link:hover { color: var(--bg); border-color: var(--accent); }
.s-link:hover::before { transform: none; }
.s-link i { font-style: normal; transition: transform 0.4s var(--ease-out); }
.s-link:hover i { transform: rotate(45deg); }

.s-next { padding: clamp(40px, 6vw, 80px) 0 0; }

.s-next__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.s-next__label { color: var(--muted); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }

.s-next__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 5.5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s, transform 0.6s var(--ease-out);
}

.s-next__title i { font-style: normal; display: inline-block; transition: transform 0.6s var(--ease-out); }
.s-next__link:hover .s-next__title { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: translateX(20px); }
.s-next__link:hover .s-next__title i { transform: translateX(20px) rotate(-45deg); }

/* ---------- PUNCH: phone ---------- */
.phone {
  position: absolute;
  right: 8%;
  top: 50%;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 9 / 19;
  margin-top: calc(clamp(200px, 22vw, 300px) * -1.05);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #1c2a55, #070b18);
  box-shadow: 0 0 0 2px rgba(160, 185, 255, 0.2), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(47, 107, 255, 0.35);
  transform: rotate(8deg);
  animation: phoneFloat 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-20px); }
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 34%;
  height: 22px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
  z-index: 2;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-2), #0f2a6b);
}

.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.phone__ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 18px 18px;
}

.phone__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.44rem; color: var(--accent); letter-spacing: -0.03em; }
.phone__bar { height: 10px; width: 80%; border-radius: 10px; background: rgba(255, 255, 255, 0.3); }
.phone__bar--short { width: 50%; }
.phone__card { height: 22%; border-radius: 18px; background: rgba(255, 255, 255, 0.15); animation: shimmer 2.4s ease-in-out infinite; }
.phone__card--alt { background: rgba(255, 210, 63, 0.35); animation-delay: 0.4s; }

@keyframes shimmer { 50% { opacity: 0.55; } }

.phone__pulse { margin-top: auto; }
.phone__pulse svg { width: 100%; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 200; animation: ecg 2s linear infinite; }

@keyframes ecg { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

/* ---------- 360idcom: ring ---------- */
.ring {
  position: absolute;
  right: 3%;
  top: 14%;
  width: min(36vw, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  animation: spin 24s linear infinite;
}

.ring__deg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.95rem);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spinY 6s ease-in-out infinite;
}

@keyframes spinY { 0%, 40% { transform: rotateY(0); } 60%, 100% { transform: rotateY(360deg); } }

/* ---------- About: passions ---------- */
.passions { padding: clamp(60px, 10vw, 140px) 0 0; }
.passions__list { border-top: 1px solid var(--line); }

.passion {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px) 8px;
  border-bottom: 1px solid var(--line);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), padding 0.5s var(--ease-out);
}

.passion:hover { padding-left: 28px; }
.passion__num { font-family: var(--font-display); color: var(--accent); font-weight: 700; }

.passion__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.49rem, 4.34vw, 3.72rem);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.4s;
}

.passion:hover .passion__title { color: var(--accent); }
.passion__text { color: var(--muted); }
.passion__arrow { font-size: 1.6rem; transition: transform 0.5s var(--ease-out); }
.passion:hover .passion__arrow { transform: translateX(10px) rotate(-45deg); color: var(--accent); }

.passion__img {
  position: absolute;
  right: 18%;
  top: 50%;
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--img) center / cover, linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transform: translateY(-50%) rotate(-6deg) scale(0.8);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.passion:hover .passion__img { opacity: 1; transform: translateY(-50%) rotate(4deg) scale(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(5, 7, 13, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s; }

.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }

.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-out);
}

.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox figcaption { color: var(--muted); font-weight: 600; }

.lightbox__close,
.lightbox__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
}

.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); color: var(--bg); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.9rem; }


/* ---------- Eclipse: brand touches ---------- */
.s-hero--eclipse {
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(88, 44, 210, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(47, 107, 255, 0.25), transparent 70%);
}

.hero-mascot {
  position: absolute;
  right: max(2vw, 16px);
  bottom: 10%;
  width: min(30vw, 46vh);
  z-index: 1;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  transform: translateY(calc(var(--p, 0) * -80px)) rotate(calc(var(--p, 0) * -8deg));
  animation: mascotBob 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mascotBob {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -18px; rotate: 3deg; }
}

/* Event ticket */
.s-event { padding: clamp(20px, 4vw, 60px) 0 clamp(60px, 8vw, 100px); }

.s-event__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.s-event__poster { aspect-ratio: 4 / 5; transform: rotate(-3deg); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); transition: transform 0.6s var(--ease-out); }
.s-event__poster:hover { transform: rotate(0) scale(1.02); }

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3a1d9e, #1a1050 55%, var(--bg-2));
  box-shadow: 0 30px 70px rgba(58, 29, 158, 0.35);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out);
}

.ticket:hover { transform: rotate(-1deg) translateY(-6px); }

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  right: 104px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
}

.ticket::before { top: -16px; }
.ticket::after { bottom: -16px; }

.ticket__main { padding: clamp(24px, 4vw, 44px); border-right: 2px dashed rgba(255, 255, 255, 0.25); }

.ticket__kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: #ff7a1a;
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.08vw, 2.52rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 16px 0 28px;
}

.ticket__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.ticket__wide { grid-column: span 2; }
.ticket__rows dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ticket__rows dd { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.ticket__rows small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.ticket__barcode {
  width: 44px;
  height: 60%;
  background: repeating-linear-gradient(180deg, #fff 0 3px, transparent 3px 5px, #fff 5px 6px, transparent 6px 10px);
  opacity: 0.85;
}

.ticket__admit {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* Walking mascot */
.walker {
  position: relative;
  height: clamp(140px, 16vw, 200px);
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
}

.walker img {
  position: absolute;
  bottom: -4px;
  left: -220px;
  width: clamp(130px, 14vw, 180px);
  animation: walkAcross 18s linear infinite, walkBob 0.5s ease-in-out infinite alternate;
}

@keyframes walkAcross { to { left: calc(100% + 40px); } }
@keyframes walkBob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }

/* Poster with transparent artwork (mascot) */
.poster--art {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 122, 26, 0.35), transparent 60%),
    linear-gradient(160deg, #3a1d9e, #140c3d);
}

.poster--art img { object-fit: contain; padding: 8%; }

.mascot__img { transition: transform 0.4s var(--ease-out), opacity 0.18s; }
.mascot.is-jumping .mascot__img { animation: poseSwap 0.36s ease; }
@keyframes poseSwap { 50% { opacity: 0; transform: scale(0.8) rotate(-10deg); } }

@media (max-width: 900px) {
  .s-event__grid { grid-template-columns: 1fr; }
  .s-event__poster { max-width: 360px; }
  .hero-mascot { width: 42vw; bottom: auto; top: 110px; opacity: 0.9; }
}

@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__main { border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.25); }
  .ticket__stub { flex-direction: row; padding: 16px 24px; }
  .ticket__barcode { width: 60%; height: 36px; background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 5px, #fff 5px 6px, transparent 6px 10px); }
  .ticket__admit { writing-mode: horizontal-tb; }
}

/* ---------- PUNCH ---------- */
.theme-punch { --teal: #22a6d6; }

.s-hero--punch {
  background:
    radial-gradient(ellipse 55% 65% at 78% 45%, rgba(34, 166, 214, 0.32), transparent 70%),
    radial-gradient(ellipse 35% 45% at 5% 95%, rgba(255, 210, 63, 0.12), transparent 70%);
}

.punch-hero {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(34vw, 50vh);
  aspect-ratio: 1;
  transform: translateY(-58%);
  pointer-events: none;
}

.punch-hero__burst {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 2px dashed rgba(34, 166, 214, 0.45);
  background: radial-gradient(circle, rgba(34, 166, 214, 0.28), transparent 65%);
  animation: spin 30s linear infinite;
}

.punch-hero__logo {
  position: absolute;
  inset: 14%;
  width: 72%;
  border-radius: 22%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(34, 166, 214, 0.25);
  animation: punchHit 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes punchHit {
  0%, 60%, 100% { transform: rotate(-6deg) scale(1); }
  68% { transform: rotate(4deg) scale(1.12); }
  76% { transform: rotate(-8deg) scale(0.96); }
  84% { transform: rotate(-4deg) scale(1.03); }
}

.punch-hero__mascot {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: 46%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
  animation: flutter 3s ease-in-out infinite;
}

@keyframes flutter {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  25% { transform: translate(10px, -22px) rotate(4deg); }
  50% { transform: translate(0, -10px) rotate(-2deg); }
  75% { transform: translate(-8px, -26px) rotate(6deg); }
}

.punch-hero__spark { position: absolute; color: var(--accent); font-size: 1.62rem; animation: twinkle 2.4s ease-in-out infinite; }
.punch-hero__spark--1 { top: 2%; right: 8%; }
.punch-hero__spark--2 { top: 30%; right: -6%; font-size: 1.2rem; animation-delay: 0.6s; color: var(--teal); }
.punch-hero__spark--3 { bottom: 4%; right: 14%; font-size: 1.26rem; animation-delay: 1.2s; }

@keyframes twinkle { 50% { transform: scale(0.4) rotate(90deg); opacity: 0.3; } }

/* Context */
.s-context { padding: clamp(40px, 6vw, 80px) 0; }
.s-context .section-title { margin-bottom: clamp(32px, 5vw, 56px); }
.dots { color: var(--accent); margin-left: 0.1em; }

.context-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 1.1fr;
  gap: 20px;
}

.context-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), rgba(11, 21, 48, 0.3));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out), opacity 1s var(--ease-out);
}

.context-card:hover { border-color: var(--accent); transform: translateY(-6px); }

.context-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.context-card__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.08rem, 1.62vw, 1.35rem); line-height: 1.25; }
.context-card:first-child .context-card__value { font-size: clamp(1.82rem, 3.5vw, 2.8rem); line-height: 1; }
.context-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.context-card.is-visible .context-card__chips .pill { animation: popIn 0.5s calc(0.3s + var(--ci) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Concept */
.s-concept { padding: clamp(80px, 12vw, 160px) 0; }

.s-concept__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.s-concept__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }

.s-concept__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px dashed rgba(34, 166, 214, 0.4);
  animation: spin 40s linear infinite;
}

.s-concept__ring::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 166, 214, 0.35), transparent 70%);
}

.s-concept__mascot {
  position: relative;
  z-index: 2;
  width: 64%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  animation: flutter 3.4s ease-in-out infinite;
}

.s-concept__photo {
  position: absolute;
  right: -4%;
  bottom: 2%;
  width: 46%;
  aspect-ratio: 4 / 3;
  z-index: 1;
  transform: rotate(6deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--text);
}

.pillars { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 12px;
  border-radius: 100px;
  background: rgba(34, 166, 214, 0.12);
  border: 1px solid rgba(34, 166, 214, 0.4);
  font-weight: 600;
  transition: background 0.3s, transform 0.4s var(--ease-out), opacity 1s var(--ease-out);
}

.pillar:hover { background: rgba(34, 166, 214, 0.3); transform: translateY(-3px); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal, #22a6d6);
  color: var(--bg);
  font-size: 0.9rem;
}

/* Role with photo */
.role-split { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 20px; align-items: stretch; }
.role-photo { margin: 0; }
.role-photo__media { height: 100%; min-height: 320px; }
.role-grid--4 { grid-template-columns: repeat(2, 1fr); }
.role-grid--4 .value:nth-child(4) { grid-column: auto; }

/* Award */
.s-award {
  padding: clamp(80px, 12vw, 160px) 0;
  background: radial-gradient(ellipse 60% 70% at 20% 50%, rgba(255, 210, 63, 0.1), transparent 70%);
}

.s-award__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.medal { position: relative; width: 110px; height: 150px; margin-bottom: 24px; }

.medal__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-2) 0 33%, var(--text) 33% 66%, var(--accent-2) 66%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.medal__disc {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 96px;
  height: 96px;
  margin-left: -48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff6c4, var(--accent) 45%, #d99a00 90%);
  box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.25), 0 20px 40px rgba(255, 170, 0, 0.35);
  overflow: hidden;
}

.medal__disc span { font-family: var(--font-display); font-weight: 800; font-size: 2.08rem; color: #8a5a00; }

.medal__disc::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.medal.is-visible { animation: medalSwing 3s 0.8s ease-in-out infinite; transform-origin: top center; }
@keyframes medalSwing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

.s-award__badge {
  display: inline-block;
  margin: 16px 0 20px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.45);
  color: var(--text);
}

.s-award__badge strong { color: var(--accent); }
.s-award__desc { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.s-award__photo { aspect-ratio: 3 / 2; transform: rotate(2deg); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out); }
.s-award__photo:hover { transform: rotate(0) scale(1.02); }

/* Outro */
.s-outro { padding: clamp(60px, 10vw, 120px) 0; }

.s-outro__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(34, 166, 214, 0.18), rgba(47, 107, 255, 0.12) 60%, transparent);
  border: 1px solid rgba(34, 166, 214, 0.3);
}

.s-outro .section-title { margin-bottom: 20px; }
.q { color: var(--accent); display: inline-block; animation: wobbleQ 2.4s ease-in-out infinite; }
@keyframes wobbleQ { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(14deg) translateY(-6px); } 60% { transform: rotate(-8deg); } }
.s-outro__img { width: 100%; animation: flutter 3s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45)); }

@media (max-width: 1000px) {
  .context-grid { grid-template-columns: 1fr 1fr; }
  .context-card:nth-child(2) { grid-column: span 2; order: 3; }
  .s-concept__grid, .s-award__grid { grid-template-columns: 1fr; }
  .s-concept__visual { max-width: 460px; width: 100%; justify-self: center; }
  .role-split { grid-template-columns: 1fr; }
  .role-photo__media { aspect-ratio: 4 / 3; min-height: 0; max-width: 480px; }
  .punch-hero { opacity: 0.5; }
}

@media (max-width: 700px) {
  .punch-hero { top: 96px; right: 4%; width: 46vw; transform: none; opacity: 0.85; }
  .punch-hero__mascot { right: -8%; }
  .context-grid { grid-template-columns: 1fr; }
  .context-card:nth-child(2) { grid-column: auto; order: 0; }
  .role-grid--4 { grid-template-columns: 1fr; }
  .s-outro__grid { grid-template-columns: 1fr; text-align: left; }
  .s-outro__img { max-width: 180px; justify-self: center; order: -1; }
  .s-concept__photo { width: 50%; right: 0; }
}

.s-concept__text .section-title,
.s-intro .section-title { margin-bottom: 24px; }

/* ---------- 360 ID COM ---------- */
.theme-idcom { --c-red: #e04848; --c-coral: #f07a7a; --c-yellow: #f7c948; --c-teal: #4fb8a8; }

.s-hero--idcom {
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(240, 122, 122, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 90%, rgba(79, 184, 168, 0.18), transparent 70%);
}

.idcom-hero {
  position: absolute;
  right: 5%;
  top: 50%;
  width: min(30vw, 46vh);
  aspect-ratio: 1;
  transform: translateY(-78%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.arc {
  position: absolute;
  border-radius: 50%;
  border: 10px solid transparent;
}

.arc--1 { inset: 0; border-color: var(--c-coral) var(--c-coral) transparent var(--c-coral); animation: spin 14s linear infinite; }
.arc--2 { inset: 9%; border-color: var(--c-red) transparent var(--c-red) var(--c-red); animation: spin 10s linear infinite reverse; }
.arc--3 { inset: 18%; border-color: var(--c-yellow) var(--c-yellow) var(--c-yellow) transparent; animation: spin 8s linear infinite; }
.arc--4 { inset: 27%; border-color: transparent var(--c-teal) var(--c-teal) var(--c-teal); animation: spin 6s linear infinite reverse; }

.idcom-hero__logo {
  position: relative;
  width: 46%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: floatY 5s ease-in-out infinite;
}

.doodle { position: absolute; width: 18%; animation: doodleFloat 5s ease-in-out infinite; }
.doodle svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodle--gear { top: -8%; left: -6%; color: var(--c-yellow); animation-duration: 6s; }
.doodle--gear svg { animation: spin 12s linear infinite; }
.doodle--mega { bottom: -4%; left: -10%; color: var(--c-coral); animation-delay: -1s; }
.doodle--wrench { top: -6%; right: -4%; color: var(--c-teal); animation-delay: -2s; }
.doodle--idea { bottom: -8%; right: -6%; color: var(--c-yellow); animation-delay: -3s; }

@keyframes doodleFloat { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -16px; rotate: 6deg; } }

.context-card__note { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Services */
.s-services { padding: clamp(60px, 10vw, 140px) 0; }
.s-services__grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.service {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), opacity 1s var(--ease-out);
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.service:hover { border-color: var(--c); transform: translateY(-4px); }
.service:hover::before { transform: scaleY(1); }

.service__name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 14px; }
.service__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.service__count { margin-left: auto; font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 2px 10px; }
.service__list li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color 0.3s, padding-left 0.3s; }
.service__list li:hover { color: var(--text); padding-left: 6px; }

.s-services__flyer { aspect-ratio: 504 / 712; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out); }
.s-services__flyer:hover { transform: rotate(0) scale(1.03); }

/* Impact */
.s-impact {
  padding: clamp(80px, 12vw, 160px) 0;
  background: radial-gradient(ellipse 60% 60% at 80% 30%, rgba(79, 184, 168, 0.14), transparent 70%);
}

.s-impact__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }

.days { display: flex; align-items: center; gap: 16px; }
.days__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.48rem, 4.96vw, 4.34rem); line-height: 0.8; color: var(--accent); }
.days__label { display: flex; flex-direction: column; color: var(--muted); max-width: 160px; }
.days__label strong { color: var(--text); margin-top: 4px; }

.s-impact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.impact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.impact-action {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(79, 184, 168, 0.1);
  border: 1px solid rgba(79, 184, 168, 0.35);
  transition: transform 0.5s var(--ease-out), opacity 1s var(--ease-out);
}

.impact-action:hover { transform: translateY(-5px) rotate(-1deg); }
.impact-action__icon { font-size: 1.6rem; display: inline-block; animation: floatY 3s ease-in-out infinite; }
.impact-action h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 10px 0 6px; }
.impact-action p { color: var(--muted); }

.impact-photos { position: relative; min-height: 420px; }
.impact-photo { position: absolute; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); border: 4px solid var(--text); transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out), z-index 0s; }
.impact-photo--1 { top: 0; left: 0; width: 62%; aspect-ratio: 402 / 461; transform: rotate(-4deg); z-index: 2; }
.impact-photo--2 { bottom: 0; right: 0; width: 74%; aspect-ratio: 1059 / 492; transform: rotate(3deg); }
.impact-photo:hover { transform: rotate(0) scale(1.04); z-index: 3; }

.s-impact__text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text); line-height: 1.6; }

.impact-quote {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.03rem, 1.8vw, 1.44rem);
  line-height: 1.4;
}

/* Live badge (PUNCH outro) */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.5);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.live-badge i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease-out) infinite; }

@media (max-width: 1000px) {
  .s-services__grid { grid-template-columns: 1fr; }
  .s-services__flyer { max-width: 340px; }
  .s-impact__grid { grid-template-columns: 1fr; }
  .idcom-hero { opacity: 0.45; }
}

@media (max-width: 700px) {
  .idcom-hero { top: 100px; right: 4%; width: 48vw; transform: none; opacity: 0.9; }
  .arc { border-width: 6px; }
  .services, .impact-actions { grid-template-columns: 1fr; }
  .impact-photos { min-height: 340px; }
}

.s-hero-img {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: min(36vw, 52vh);
  max-height: 64vh;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  animation: floatY 7s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 700px) {
  .s-hero-img { top: 90px; bottom: auto; right: 4%; width: 52vw; max-height: 34vh; opacity: 0.85; }
  .s-hero--interest { min-height: auto; padding-top: 300px; }
}

/* ---------- Eclipse: editions ---------- */
@property --ed { syntax: "<color>"; inherits: true; initial-value: #ff8a1f; }
@property --ed2 { syntax: "<color>"; inherits: true; initial-value: #ffd23f; }
body.theme-eclipse { transition: --ed 1.2s ease, --ed2 1.2s ease; }

.s-editions { position: relative; padding: clamp(60px, 10vw, 140px) 0; }

.s-editions__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 85% 30%, color-mix(in srgb, var(--ed) 38%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 45% at 5% 85%, color-mix(in srgb, var(--ed2) 22%, transparent), transparent 70%);
  opacity: 0.9;
}

.s-editions__bgwrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
}

.s-editions .container { position: relative; }

.edition { position: relative; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }

.edition__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 48px); align-items: start; margin-bottom: clamp(28px, 4vw, 48px); }

.edition__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7.7vw, 6.05rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--c);
  text-shadow: 0 0 60px color-mix(in srgb, var(--c) 45%, transparent);
}

.edition__season { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.04rem, 1.92vw, 1.6rem); margin-bottom: 12px; }
.edition__season strong { color: var(--c2); }
.edition__story { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 720px; line-height: 1.7; }

.edition__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.edition__info { display: flex; flex-direction: column; gap: 20px; }

.ticket--ed { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #000), color-mix(in srgb, var(--c) 25%, #05070d) 60%, var(--bg-2)); box-shadow: 0 30px 70px color-mix(in srgb, var(--c) 30%, transparent); }
.ticket--ed .ticket__kicker { background: var(--c2); }
.ticket--ed .ticket__name { font-size: clamp(1.26rem, 2.52vw, 2.1rem); }

.lineup { padding: 24px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.lineup__title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c2); margin-bottom: 10px; }
.lineup__title span { color: var(--muted); }

.lineup__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease-out), color 0.3s;
}

.lineup__item:hover { padding-left: 8px; color: var(--c2); }
.lineup__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(0.99rem, 1.62vw, 1.26rem); text-transform: uppercase; letter-spacing: -0.01em; }
.lineup__name em { font-family: var(--font-body); font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 100px; background: var(--c2); color: var(--bg); vertical-align: middle; margin-left: 6px; text-transform: uppercase; }
.lineup__item.is-head .lineup__name { color: var(--c2); }
.lineup__time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.95rem; }

.lineup.is-visible .lineup__item { animation: lineIn 0.6s calc(0.2s + var(--i) * 0.08s) var(--ease-out) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }

.edition__posters { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edition__poster { aspect-ratio: 4 / 5; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out); }
.edition__poster--1 { transform: rotate(-3deg); }
.edition__poster--2 { transform: rotate(2deg) translateY(24px); }
.edition__poster--3 { transform: rotate(1.5deg); }
.edition__poster--4 { transform: rotate(-2deg) translateY(24px); }
.edition__poster.reveal-up:not(.is-visible) { transform: translateY(60px) rotate(0); }
.edition__poster:hover { transform: rotate(0) scale(1.04); z-index: 2; }

/* Next edition teaser */
.next-teaser {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr 0.7fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #05070d), #0d0730 70%);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  overflow: hidden;
}

.next-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 190, 90, 0.25), transparent 40%);
  animation: pulseHalo 4s ease-in-out infinite;
  pointer-events: none;
}

.next-teaser .live-badge { color: var(--c2); border-color: var(--c2); background: color-mix(in srgb, var(--c) 20%, transparent); }
.next-teaser .live-badge i, .next-teaser .live-badge i::after { background: var(--c2); }
.next-teaser__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3.22vw, 2.66rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 14px; }
.next-teaser__text p { color: rgba(255, 255, 255, 0.75); max-width: 460px; }
.next-teaser__date { display: flex; gap: 10px; margin-top: 22px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.28rem, 2.4vw, 1.92rem); color: var(--c2); }
.next-teaser__date span:nth-child(1), .next-teaser__date span:nth-child(3) { filter: blur(6px); animation: blurPulse 2.6s ease-in-out infinite; }
@keyframes blurPulse { 50% { filter: blur(3px); } }
.next-teaser__img { position: relative; z-index: 1; }
.next-teaser__img img { width: 100%; border-radius: 20px; filter: blur(2px) saturate(1.1); transform: rotate(4deg); transition: filter 0.6s, transform 0.6s var(--ease-out); }
.next-teaser:hover .next-teaser__img img { filter: none; transform: rotate(0) scale(1.03); }

/* Hélios FAQ */
.s-faq { padding: 0 0 clamp(60px, 10vw, 120px); }
.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.faq__card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2a157a, #120a3a 70%);
  border: 1px solid rgba(160, 120, 255, 0.3);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, opacity 1s var(--ease-out);
}

.faq__card::before { content: ""; position: absolute; left: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, 0.35), transparent 65%); }
.faq__card:hover { transform: translateY(-8px) rotate(-1deg); border-color: #ffb23f; }
.faq__img { position: relative; display: block; height: 170px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.faq__card:hover .faq__img { transform: scale(1.08) rotate(-5deg); }
.faq__q { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; margin-bottom: 8px; }
.faq__a { position: relative; color: rgba(255, 255, 255, 0.75); }

.poster--wide { width: clamp(300px, 36vw, 480px); aspect-ratio: 4 / 3; }

@media (max-width: 1000px) {
  .edition__grid { grid-template-columns: 1fr; }
  .next-teaser { grid-template-columns: auto 1fr; }
  .next-teaser__img { grid-column: span 2; max-width: 320px; }
  .faq { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .edition__head { grid-template-columns: 1fr; }
  .edition__num { font-size: 3.15rem; }
  .next-teaser { grid-template-columns: 1fr; }
  .next-teaser__img { grid-column: auto; }
  .faq { grid-template-columns: 1fr; }
  .lineup { padding: 20px; }
}

/* ---------- Jacques Laveine ---------- */
.theme-jli { --gold: #f5c84c; }

.s-hero--jli {
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(245, 200, 76, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 45% at 5% 95%, rgba(47, 107, 255, 0.18), transparent 70%);
}

.jli-hero {
  position: absolute;
  right: 7%;
  top: 50%;
  width: min(30vw, 44vh);
  aspect-ratio: 1;
  transform: translateY(-75%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.jli-hero__beam {
  position: absolute;
  inset: -10%;
  background: conic-gradient(from 180deg at 50% 100%, transparent 0deg, rgba(245, 200, 76, 0.25) 20deg, transparent 40deg, transparent 320deg, rgba(245, 200, 76, 0.25) 340deg, transparent 360deg);
  filter: blur(8px);
  animation: beamSwing 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes beamSwing { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

.jli-hero__logo {
  position: relative;
  width: 86%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  animation: jliBuild 1.4s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both, floatY 6s 1.8s ease-in-out infinite;
}

@keyframes jliBuild { from { opacity: 0; transform: translateY(60px) scale(0.6); } to { opacity: 1; transform: none; } }

.jli-hero__key, .jli-hero__pin, .jli-hero__like { position: absolute; font-size: clamp(1.28rem, 1.92vw, 1.76rem); animation: doodleFloat 5s ease-in-out infinite; }
.jli-hero__key { top: 4%; left: -6%; }
.jli-hero__pin { top: 0; right: -2%; animation-delay: -1.6s; }
.jli-hero__like { bottom: 6%; right: -8%; color: #ff5c7a; animation-delay: -3s; }

/* Showcase */
.s-showcase { padding: clamp(60px, 10vw, 140px) 0; overflow: hidden; }

.show-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.show-row--rev .show-row__img { order: 2; }

.show-row__img { position: relative; margin: 0; display: grid; place-items: center; cursor: zoom-in; }
.show-row__img img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
  transition: transform 0.8s var(--ease-out);
  animation: floatY 7s ease-in-out infinite;
}

.show-row:hover .show-row__img img { transform: rotate(-3deg) scale(1.04); }
.show-row__halo { position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 200, 76, 0.3), transparent 65%); animation: pulseHalo 4s ease-in-out infinite; }
.show-row__img.reveal-up { transform: translateX(-60px) rotate(-6deg); }
.show-row--rev .show-row__img.reveal-up { transform: translateX(60px) rotate(6deg); }
.show-row__img.reveal-up.is-visible { transform: none; }
.show-row__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.44rem, 2.72vw, 2.24rem); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 16px; }
.show-row__text p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

@media (max-width: 1000px) { .jli-hero { opacity: 0.5; } }

@media (max-width: 700px) {
  .jli-hero { top: 100px; right: 6%; width: 40vw; transform: none; opacity: 0.9; }
  .show-row { grid-template-columns: 1fr; }
  .show-row--rev .show-row__img { order: 0; }
  .show-row__img img { max-height: 340px; }
}

/* ---------- Photo stack hero (Cora) ---------- */
.s-hero--cora { background: radial-gradient(ellipse 55% 60% at 80% 40%, rgba(47, 107, 255, 0.28), transparent 70%), radial-gradient(ellipse 35% 45% at 5% 95%, rgba(255, 92, 168, 0.12), transparent 70%); }
.photo-stack { position: absolute; right: 6%; top: 50%; width: min(32vw, 46vh); aspect-ratio: 3 / 4; transform: translateY(-62%); pointer-events: none; }
.photo-stack__img { position: absolute; width: 74%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; border: 5px solid var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); animation: stackIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.photo-stack__img--1 { left: 0; top: 4%; --r: -8deg; animation-delay: 0.3s; }
.photo-stack__img--2 { right: 0; top: 0; --r: 7deg; animation-delay: 0.5s; }
.photo-stack__img--3 { left: 6%; bottom: -6%; width: 92%; aspect-ratio: 3 / 2; --r: -2deg; animation-delay: 0.7s; }
@keyframes stackIn { from { opacity: 0; transform: translateY(80px) rotate(0) scale(0.8); } to { opacity: 1; transform: rotate(var(--r)); } }
.photo-stack__img--1 { animation: stackIn 1.2s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both, stackFloat 7s 1.5s ease-in-out infinite; }
@keyframes stackFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 1000px) { .photo-stack { opacity: 0.45; } }
@media (max-width: 700px) { .s-hero--cora { padding-top: 250px; } .photo-stack { top: 80px; right: 4%; width: 32vw; transform: none; opacity: 0.9; } .photo-stack__img { border-width: 3px; border-radius: 10px; } }

/* ---------- Saint-Gobain ---------- */
.s-hero--sg { background: radial-gradient(ellipse 55% 65% at 82% 45%, rgba(47, 107, 255, 0.35), transparent 70%), radial-gradient(ellipse 30% 40% at 95% 10%, rgba(255, 210, 63, 0.12), transparent 70%); }
.s-hero--sg .s-title { font-size: clamp(1.86rem, 4.71vw, 4.65rem); }
.s-hero--sg .s-tagline, .s-hero--sg .s-facts { max-width: 64%; }
.s-hero--sg .s-hero-img { bottom: auto; top: 22%; right: 2%; max-height: 60vh; width: min(34vw, 62vh); animation: sgIn 1.2s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes sgIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
.s-project { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.s-project__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.s-project .section-title { margin-bottom: 24px; }
.s-project .s-impact__text { max-width: 900px; }
.s-project__img { position: relative; margin: 0; display: grid; place-items: center; cursor: zoom-in; }
.s-project__img img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); animation: floatY 7s ease-in-out infinite; transition: transform 0.8s var(--ease-out); }
.s-project__img:hover img { transform: scale(1.03) rotate(-1deg); }
.s-project__img.reveal-up { transform: translateX(80px); }
.s-project__img.reveal-up.is-visible { transform: none; }
.role-lead { max-width: 900px; margin: -24px 0 clamp(32px, 5vw, 56px); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; padding-left: clamp(16px, 2vw, 28px); border-left: 3px solid var(--accent); }
.s-role .role-grid:has(.value:nth-child(6)) .value:nth-child(4) { grid-column: auto; }
@media (max-width: 1000px) { .s-project__grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .s-hero--sg .s-tagline, .s-hero--sg .s-facts { max-width: none; } }
@media (max-width: 700px) { .s-title--long { font-size: 9.2vw; } .s-hero--sg .s-title { font-size: 9.2vw; } .s-hero--sg { padding-top: 290px; } .s-hero--sg .s-hero-img { top: 90px; bottom: auto; width: 80vw; max-height: 200px; opacity: 1; right: 50%; transform: translateX(50%); animation: none; } }

/* Full-bleed photo banner (Eclipse) */
.s-banner { --by: 0%; position: relative; height: clamp(320px, 70vh, 640px); overflow: hidden; display: grid; place-items: end start; }
.s-banner__img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; transform: translateY(var(--by)); }
.s-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(5, 7, 13, 0.25) 45%, var(--bg) 100%); }
.s-banner__quote { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(32px, 6vw, 72px); max-width: 900px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.s-gallery .gallery__media img { transition: transform 1s var(--ease-out), filter 0.4s; }
.s-gallery .gallery__media:hover img { filter: saturate(1.25); }

/* ---------- Art page ---------- */
.show-row:last-child { margin-bottom: 0; }
.s-showcase + .s-asset { padding-top: clamp(30px, 5vw, 60px); }
.s-asset + .s-duo { padding-top: 0; }
.s-asset { padding: clamp(60px, 10vw, 130px) 0; background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(47, 107, 255, 0.18), transparent 70%); }
.s-asset__head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 60px); align-items: start; margin-bottom: clamp(40px, 6vw, 70px); }
.s-asset__deck { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); perspective: 1400px; }
.deck-card { margin: 0; cursor: zoom-in; transition: transform 0.8s var(--ease-out), opacity 1s var(--ease-out); }
.deck-card img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.deck-card figcaption { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.deck-card--1 { transform: rotateY(14deg) rotateX(4deg); }
.deck-card--2 { transform: rotateY(-14deg) rotateX(4deg); }
.deck-card.reveal-up:not(.is-visible) { transform: translateY(60px) rotateY(0); }
.deck-card:hover { transform: rotateY(0) rotateX(0) scale(1.04); }
.s-duo { padding: clamp(40px, 8vw, 100px) 0; }
.s-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: linear-gradient(150deg, #1d3a8f, var(--bg-2) 70%); border: 1px solid var(--line); overflow: hidden; transition: transform 0.6s var(--ease-out), opacity 1s var(--ease-out), border-color 0.4s; }
.duo-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.duo-card__obj { display: block; width: clamp(120px, 14vw, 180px); margin-bottom: 18px; }
.duo-card__obj img { width: 100%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)); }
.duo-card__obj--spin img { animation: wobbleSpin 5s ease-in-out infinite; transform-origin: 45% 60%; }
@keyframes wobbleSpin { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.duo-card__obj--flicker img { animation: tvFlicker 4s steps(1) infinite, floatY 6s ease-in-out infinite; }
@keyframes tvFlicker { 0%, 92%, 100% { filter: drop-shadow(0 16px 24px rgba(0,0,0,.45)); } 94% { filter: brightness(1.6) drop-shadow(0 0 20px rgba(255,210,63,.7)); } 96% { filter: brightness(0.8); } }
.duo-card__title { font-family: "Kaushan Script", cursive; font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--accent); margin-bottom: 10px; }
.duo-card p { color: var(--muted); line-height: 1.7; }
.s-quote { padding: clamp(40px, 8vw, 100px) 0; }
.s-quote__text { margin: 0 auto; max-width: 900px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.25; }
@media (max-width: 800px) {
  .s-asset__head, .s-asset__deck, .s-duo__grid { grid-template-columns: 1fr; }
  .deck-card--1, .deck-card--2 { transform: none; }
}

/* ---------- Sport: race lane ---------- */
.s-hero-img--glide { animation: glide 7s ease-in-out infinite; top: 34%; bottom: auto; width: min(40vw, 560px); }
@keyframes glide { 0%, 100% { transform: translateX(0) rotate(-2deg); } 50% { transform: translateX(-40px) rotate(-1deg); } }
.s-race { --rp: 0; position: relative; height: 340vh; }
.s-race__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 60px; }
.s-race .section-head { margin-bottom: clamp(16px, 3vw, 36px); }
.lane { position: relative; height: clamp(110px, 16vw, 170px); margin: 0 0 clamp(20px, 3vw, 40px); }
.lane__water { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(91, 155, 255, 0.12) 0 40px, rgba(91, 155, 255, 0.04) 40px 80px), linear-gradient(180deg, #0f2a6b, #0b1530); border-top: 1px solid rgba(160, 185, 255, 0.25); border-bottom: 1px solid rgba(160, 185, 255, 0.25); background-position: calc(var(--rp) * -600px) 0, 0 0; }
.lane__buoys { position: absolute; left: 6%; right: 6%; bottom: 10px; display: flex; justify-content: space-between; }
.lane__buoys i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255, 210, 63, 0.7); }
.lane__boat { position: absolute; top: 50%; left: calc(2% + var(--rp) * 72%); width: clamp(200px, 26vw, 360px); transform: translateY(-58%); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5)); animation: rowBob 1.4s ease-in-out infinite; }
@keyframes rowBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
.lane__wake { position: absolute; top: 55%; left: 0; width: calc(2% + var(--rp) * 72% + 20px); height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5)); }
.race-steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 14px; }
.race-step { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); opacity: 0.4; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease-out), border-color 0.4s; }
.race-step.is-done { opacity: 0.7; transform: none; }
.race-step.is-on { opacity: 1; transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(255, 210, 63, 0.12); }
.race-step__tag { display: inline-block; padding: 3px 10px; border-radius: 100px; background: rgba(255, 210, 63, 0.15); color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.race-step h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 10px 0 6px; line-height: 1.2; }
.race-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 900px) {
  .s-race { height: auto; }
  .s-race__sticky { position: static; height: auto; padding: clamp(60px, 10vw, 100px) 0 20px; overflow: visible; }
  .lane { display: none; }
  .race-steps { grid-template-columns: 1fr; position: relative; padding-left: 26px; }
  .race-steps::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
  .race-step, .race-step.is-done, .race-step.is-on { opacity: 1; transform: none; position: relative; box-shadow: none; }
  .race-step::before { content: ""; position: absolute; left: -24px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
}

/* ---------- Voyage: travel log map ---------- */
.s-trips { padding: clamp(60px, 10vw, 130px) 0; }
.trips { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.trips__map { position: sticky; top: 90px; min-width: 0; border-radius: 28px; background: radial-gradient(circle at 60% 40%, rgba(47, 107, 255, 0.25), transparent 70%), var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.tmap { width: 100%; height: auto; display: block; }
.tmap__grid line { stroke: rgba(160, 185, 255, 0.08); stroke-width: 1; }
.tmap__seg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.6)); }
.tmap__seg.is-drawn { stroke-dashoffset: 0; }
.tmap__home circle { fill: var(--text); }
.tmap__home text, .tmap__stop text { fill: var(--muted); font: 700 22px var(--font-body); transition: fill 0.4s; }
.tmap__dot { fill: var(--bg); stroke: rgba(160, 185, 255, 0.5); stroke-width: 3; transition: fill 0.4s, stroke 0.4s; }
.tmap__mini { fill: rgba(160, 185, 255, 0.4); transition: fill 0.4s; }
.tmap__pulse { fill: rgba(255, 210, 63, 0.35); opacity: 0; transform-box: fill-box; transform-origin: center; }
.tmap__stop.is-past .tmap__dot { fill: var(--accent-2); stroke: var(--accent-2); }
.tmap__stop.is-on .tmap__dot { fill: var(--accent); stroke: var(--accent); }
.tmap__stop.is-on .tmap__mini, .tmap__stop.is-past .tmap__mini { fill: var(--accent); }
.tmap__stop.is-on text { fill: var(--text); }
.tmap__stop.is-on .tmap__pulse { animation: mapPulse 1.8s ease-out infinite; }
@keyframes mapPulse { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2.2); } }
.trips__counter { position: absolute; left: 22px; bottom: 16px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--muted); }
.trips__counter span { color: var(--accent); font-size: 1.6rem; }
.trips__list { display: flex; flex-direction: column; gap: clamp(40px, 8vh, 90px); padding: 10vh 0 20vh; }
.trip { opacity: 0.35; transform: translateX(20px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.trip.is-on { opacity: 1; transform: none; }
.trip__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.trip__num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.trip__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; }
.trip__meta { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.trip__title { font-family: "Kaushan Script", cursive; color: var(--text); font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 8px; }
.trip__text { color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.trip__photos { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 14px; margin-bottom: 10px; }
.trip__photos::-webkit-scrollbar { display: none; }
.trip__photo { flex: 0 0 auto; margin: 0; width: clamp(130px, 13vw, 180px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; cursor: zoom-in; border: 3px solid var(--text); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45); transform: rotate(calc((var(--k) - 1) * 2deg)); transition: transform 0.4s var(--ease-out); }
.trip__photo:hover { transform: rotate(0) scale(1.06); }
.trip__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .trips { grid-template-columns: minmax(0, 1fr); }
  .trips__map { top: 70px; z-index: 3; padding: 4px; border-radius: 18px; height: 30vh; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  .tmap { height: 100%; width: 100%; }
  .trips__counter { left: 12px; bottom: 6px; font-size: 0.9rem; }
  .trips__counter span { font-size: 1.2rem; }
  .tmap__home text, .tmap__stop text { font-size: 30px; }
  .trips__list { padding: 30px 0 10vh; }
  .trip { opacity: 1; transform: none; }
}

/* ---------- Story responsive ---------- */
@media (max-width: 1000px) {
  .s-intro__grid { grid-template-columns: 1fr; }
  .s-mascot__text .section-title { margin-bottom: 24px; }

.s-mascot__grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-grid .value:nth-child(3) { grid-column: span 2; }
  .phone { right: 4%; opacity: 0.5; }
  .ring { opacity: 0.5; }
}

@media (max-width: 700px) {
  .s-hero { align-items: flex-end; }
  .eclipse { --size: 80vw; top: 90px; right: -12vw; opacity: 0.5; }
  .phone { top: 110px; right: -30px; margin-top: 0; width: 170px; opacity: 0.45; }
  .ring { top: 90px; right: -20vw; width: 80vw; opacity: 0.35; }
  .s-stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .role-grid { grid-template-columns: 1fr; }
  .role-grid .value:nth-child(n) { grid-column: auto; }
  .track { grid-template-columns: 36px 1fr; gap: 12px; padding: 22px 8px; }
  .track__play, .track .eq { display: none; }
  .passion { grid-template-columns: 36px 1fr auto; }
  .passion__text { grid-column: 2; }
  .passion__img { display: none; }
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox__nav { position: absolute; bottom: 16px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .gallery { columns: 2 140px; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
}

/* ==========================================================================
   About page (v2)
   ========================================================================== */
.script-word,
.script-title {
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.script-word {
  display: inline-block;
  font-size: 1.05em;
  transform: rotate(-6deg) translateY(0.05em);
  animation: scriptIn 1.2s 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scriptIn { from { opacity: 0; transform: rotate(-20deg) scale(0.4); } to { opacity: 1; transform: rotate(-6deg) translateY(0.05em); } }

/* Flip portrait */
.flip-wrap { position: relative; justify-self: center; width: min(100%, 440px); }

.flip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
  cursor: pointer;
}

.flip__bg {
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 220px 220px 28px 28px;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-2), transparent 55%),
    radial-gradient(circle at 80% 90%, var(--accent), transparent 45%),
    var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.8s var(--ease-out);
}

.flip:hover .flip__bg { transform: rotate(-3deg) scale(1.02); }

.flip__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.68, -0.3, 0.32, 1.3);
}

.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__face {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  transform: translateX(-50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.flip__face--back { transform: translateX(-50%) rotateY(180deg); width: 86%; }

.flip__label {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-out);
}

.flip:hover .flip__label { transform: translateX(-50%) translateY(-4px) rotate(-2deg); }
.flip__label-back { display: none; }
.flip.is-flipped .flip__label-front { display: none; }
.flip.is-flipped .flip__label-back { display: inline; }
.flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.flip-wrap .sticker { z-index: 4; }

.page-title .line,
.s-title .line { padding-top: 0.16em; margin-top: -0.16em; }

.manifesto__text--md { font-size: clamp(1.12rem, 2.4vw, 2.08rem); line-height: 1.25; }

/* Vision */
.vision { padding: clamp(40px, 8vw, 100px) 0; }
.vision__grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.vision__text {
  position: relative;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 3px solid var(--accent);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

/* Schools */
.schools-section { padding: clamp(60px, 10vw, 140px) 0 clamp(20px, 4vw, 40px); }
.schools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.school {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out), opacity 1s var(--ease-out);
}

.school::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.18), transparent 70%);
  transition: transform 0.8s var(--ease-out);
}

.school:hover { border-color: var(--accent); transform: translateY(-6px); }
.school:hover::after { transform: scale(1.6); }

.school__logo {
  display: grid;
  place-items: center;
  width: 140px;
  height: 100px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.school:hover .school__logo { transform: rotate(-4deg) scale(1.05); }
.school__logo img { width: 100%; height: 100%; object-fit: contain; }
.school__period { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.school__title { font-family: var(--font-display); font-size: clamp(1.26rem, 2.16vw, 1.71rem); line-height: 1.1; }
.school__place { font-weight: 600; opacity: 0.85; }
.school__spec { margin-top: 10px; color: var(--muted); }
.school__spec span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); opacity: 0.7; margin-bottom: 2px; }

/* Side projects */
.side-projects { padding: clamp(60px, 10vw, 140px) 0 0; }
.side-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }

.side-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s, opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.side-card.is-tilting { transition: border-color 0.4s, transform 0.15s linear; }
.side-card:hover { border-color: var(--accent); }

.side-card__logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
}

.side-card__logo--light { background: #fff; padding: 18px; }
.side-card__logo--eclipse { background: radial-gradient(circle at 50% 60%, rgba(255, 122, 26, 0.45), #2a157a 70%); }
.side-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.side-card:hover .side-card__logo img { transform: scale(1.1) rotate(-4deg); }
.side-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.44rem; letter-spacing: -0.02em; }
.side-card__role { font-weight: 600; }
.side-card__meta { color: var(--muted); font-size: 0.9rem; }

/* Inspire */
.inspire { padding: clamp(60px, 10vw, 140px) 0 0; overflow: hidden; }

.inspire-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.inspire-row--rev .inspire-row__img { order: 2; }

.inspire-row__img { position: relative; display: grid; place-items: center; }
.inspire-row__img img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  animation: floatY 6s ease-in-out infinite;
  transition: transform 0.8s var(--ease-out);
}

.inspire-row:hover .inspire-row__img img { transform: rotate(-3deg) scale(1.04); }

.inspire-row__halo {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.35), transparent 65%);
  animation: pulseHalo 4s ease-in-out infinite;
}

.inspire-row__img.reveal-up { transform: translateX(-60px); }
.inspire-row--rev .inspire-row__img.reveal-up { transform: translateX(60px); }
.inspire-row__img.reveal-up.is-visible { transform: none; }

.script-title { font-size: clamp(1.82rem, 4.2vw, 3.22rem); line-height: 1; margin-bottom: 20px; transform: rotate(-3deg); transform-origin: left; }
.inspire-row__text p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 24px; }
.btn--sm { padding: 12px 22px; font-size: 0.9rem; }

@media (max-width: 1000px) {
  .vision__grid { grid-template-columns: 1fr; }
  .side-grid { grid-template-columns: 1fr 1fr; }
  .side-grid .side-card:last-child { grid-column: span 2; }
  .flip-wrap { width: min(100%, 380px); margin-top: 20px; }
}

@media (max-width: 700px) {
  .schools, .side-grid { grid-template-columns: 1fr; }
  .side-grid .side-card:last-child { grid-column: auto; }
  .inspire-row { grid-template-columns: 1fr; }
  .inspire-row--rev .inspire-row__img { order: 0; }
  .inspire-row__img img { max-height: 300px; }
  .flip__label { font-size: 0.78rem; }
}

/* ==========================================================================
   Contact page (v2)
   ========================================================================== */
.c-hero { position: relative; padding: clamp(120px, 14vw, 170px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.c-hero .hero__blob { top: -10%; left: 45%; opacity: 0.5; }
.c-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.c-hero .page-title { font-size: clamp(1.86rem, 4.59vw, 4.34rem); }
.c-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.c-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); background: rgba(11, 21, 48, 0.6); font-weight: 600; font-size: 0.9rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.c-chip:hover { transform: translateY(-3px); border-color: var(--accent); }
.c-chip--live { border-color: rgba(255, 210, 63, 0.5); color: var(--accent); }
.c-chip--live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.c-chip--live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease-out) infinite; }

.c-hero__photo { position: relative; justify-self: center; width: min(100%, 420px); display: grid; place-items: end center; }
.c-hero__photo img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.c-hero__ring { position: absolute; left: 50%; bottom: 8%; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-2), transparent 60%), radial-gradient(circle at 70% 80%, rgba(255, 210, 63, 0.6), transparent 55%), var(--bg-2); border: 1px solid var(--line); }
.c-hero__ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(255, 210, 63, 0.4); animation: spin 30s linear infinite; }
.c-hero__badge { position: absolute; z-index: 2; left: -6%; top: 26%; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--text); color: var(--bg); font-weight: 800; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); animation: floatY 4s ease-in-out infinite; }

/* Contact cards */
.c-cards { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.c-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), opacity 1s var(--ease-out);
}
.c-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg), var(--accent), transparent 30%, var(--accent-2) 50%, transparent 70%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes borderSpin { to { --a: 360deg; } }
.c-card:hover { transform: translateY(-6px); }
.c-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: rgba(255, 210, 63, 0.12); color: var(--accent); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.c-card:hover .c-card__icon { transform: rotate(-8deg) scale(1.1); }
.c-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-card__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.c-card__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem); word-break: break-all; }
.c-card__actions { display: flex; gap: 18px; margin-top: 14px; }
.c-card__link { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.c-card__link:hover { transform: translateX(4px); }
.c-card__link.is-done { opacity: 0.6; }

.cv-sticker {
  position: absolute;
  right: clamp(8px, 4vw, 56px);
  top: clamp(0px, 2vw, 20px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 60%, #d9dbe4);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(8deg);
  animation: stickerWobble 4s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out);
}
.cv-sticker::after { content: ""; position: absolute; left: 6px; top: 6px; width: 38px; height: 38px; border-radius: 0 0 38px 0; background: linear-gradient(135deg, var(--bg) 50%, #c9ccd8 50%); }
@keyframes stickerWobble { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
.cv-sticker:hover { transform: rotate(0) scale(1.08); }

/* Availability + vCard */
.dispo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(140deg, #1d4ed8, #2f6bff 45%, #c9d8ff 80%, #fff6c4);
  color: #fff;
}
.dispo__label { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.dispo__date { align-self: flex-start; padding: 6px 14px; border-radius: 10px; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 1.26rem; }
.dispo__where { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.88vw, 2.24rem); line-height: 1; letter-spacing: -0.03em; margin-top: 6px; }
.dispo__sub { font-weight: 700; opacity: 0.85; }
.dispo__globe { position: absolute; right: -14px; bottom: -18px; font-size: 3.72rem; opacity: 0.85; animation: spinSlow 20s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.vcard { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; padding: 22px; border-radius: 24px; background: #fff; color: var(--bg); }
.vcard__qr { width: 130px; aspect-ratio: 1; padding: 8px; border-radius: 16px; background: #fff; border: 2px solid var(--bg); }
.vcard__qr img, .vcard__qr canvas { width: 100% !important; height: auto !important; display: block; }
.vcard__qr.is-empty { display: none; }
.vcard:has(.vcard__qr.is-empty) { grid-template-columns: 1fr; }
.vcard h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.17rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.vcard p { font-size: 0.92rem; color: #3a4155; margin-bottom: 12px; }
.vcard .btn--ghost { color: var(--bg); border-color: rgba(5, 7, 13, 0.25); }
.vcard .btn--ghost:hover { color: #fff; }
.vcard .btn--ghost::before { background: var(--bg); }

@media (max-width: 1000px) {
  .c-hero__grid { grid-template-columns: 1fr; }
  .c-hero__photo { width: min(80%, 360px); }
  .c-cards__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .c-hero .page-title { font-size: 10vw; }
  .c-cards__grid { grid-template-columns: 1fr; }
  .cv-sticker { width: 96px; font-size: 0.85rem; top: -10px; }
  .vcard { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ==========================================================================
   Home v2
   ========================================================================== */
.hero--v2 .scroll-hint { display: none; }
.hero--v2 { align-items: center; padding: 120px 0 clamp(48px, 7vw, 90px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero--v2 .hero__title { font-size: clamp(2.2rem, min(7.7vw, 13.2vh), 7.15rem); margin-bottom: clamp(20px, 3vw, 36px); }
.hero--v2 .line--indent { padding-left: clamp(0px, 7vw, 120px); }
.hero--v2 .hero__role { margin-bottom: 14px; }
.hero--v2 .hero__desc { max-width: 460px; margin-bottom: 28px; font-size: 1.05rem; }
.hero--v2 .hero__ctas { display: flex; }

/* Stage with photo + floating cards */
.hero-stage {
  --mx: 0; --my: 0; --sy: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, 480px);
  justify-self: center;
}
.hero-stage__arch {
  position: absolute;
  inset: 10% 8% 0;
  border-radius: 999px 999px 32px 32px;
  background:
    radial-gradient(circle at 30% 25%, var(--accent-2), transparent 60%),
    radial-gradient(circle at 75% 85%, rgba(255, 210, 63, 0.7), transparent 50%),
    var(--bg-2);
  border: 1px solid var(--line);
  transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -10px));
}
.hero-stage__orbit {
  position: absolute;
  inset: 2% -6% 18%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 210, 63, 0.35);
  animation: spin 40s linear infinite;
}
.hero-stage__orbit--2 { inset: 14% 2% 26%; border-color: rgba(91, 155, 255, 0.35); animation-duration: 28s; animation-direction: reverse; }
.hero-stage__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88%;
  transform: translate(calc(-50% + var(--mx) * 12px), calc(var(--sy) * 0.06px));
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.float-card {
  --d: 1;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(19, 30, 60, 0.7);
  border: 1px solid rgba(160, 185, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform:
    translate(calc(var(--mx) * var(--depth) * 40px), calc(var(--my) * var(--depth) * 40px + var(--sy) * var(--depth) * -0.25px))
    rotate(var(--r, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.3s;
  animation: cardBob 6s ease-in-out infinite;
  animation-delay: calc(var(--depth) * -2s);
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes cardBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.float-card[data-depth="0.6"] { --depth: 0.6; }
.float-card[data-depth="1"] { --depth: 1; }
.float-card[data-depth="0.8"] { --depth: 0.8; }
.float-card[data-depth="1.3"] { --depth: 1.3; }
.float-card[data-depth="0.5"] { --depth: 0.5; }

.float-card--1 { left: -8%; top: 12%; width: 26%; aspect-ratio: 1; --r: -8deg; background: radial-gradient(circle, rgba(255, 140, 40, 0.5), #2a157a 75%); }
.float-card--1 img { object-fit: contain; padding: 6%; }
.float-card--2 { right: -6%; top: 6%; width: 22%; aspect-ratio: 1; --r: 7deg; background: #fff; }
.float-card--2 img { object-fit: contain; padding: 10%; }
.float-card--3 { left: -10%; bottom: 20%; padding: 14px 18px; --r: 4deg; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.float-card--3 strong { font-family: var(--font-display); font-size: 1.76rem; line-height: 1; color: var(--accent); }
.float-card--3 span { font-size: 0.78rem; font-weight: 700; }
.float-card--4 { right: -10%; bottom: 14%; width: 30%; aspect-ratio: 4 / 5; --r: -6deg; }
.float-card--5 { left: 30%; top: -2%; padding: 8px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; --r: -3deg; }
a.float-card:hover { box-shadow: 0 24px 50px rgba(255, 210, 63, 0.3); }
.hero-stage__spark { position: absolute; z-index: 3; color: var(--accent); animation: twinkle 2.6s ease-in-out infinite; }
.hero-stage__spark--1 { right: 18%; top: 22%; font-size: 1.44rem; }
.hero-stage__spark--2 { left: 16%; bottom: 40%; font-size: 1.1rem; animation-delay: 1.2s; color: #5b9bff; }

/* KPIs */
.kpis { padding: clamp(40px, 6vw, 80px) 0 0; }
.kpis__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px); }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi:nth-child(2) { --d: 0.1s; } .kpi:nth-child(3) { --d: 0.2s; } .kpi:nth-child(4) { --d: 0.3s; }
.kpi__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.61rem, 3.47vw, 3.1rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi__label { color: var(--muted); font-size: 0.95rem; max-width: 220px; }

/* Projects track: lean with scroll speed + real images */
.projects__track { --lean: 0deg; perspective: 1400px; }
.project { transform: rotateY(var(--lean)) skewX(calc(var(--lean) * -0.3)); transform-origin: center; transition: transform 0.2s ease-out; }
.project__visual img { object-fit: cover; }

/* 3D ring */
.ring3d { position: relative; height: 320vh; }
.ring3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 70px; }
.ring3d__head { position: relative; z-index: 2; margin-bottom: clamp(8px, 2vw, 24px); }
.ring3d__head .eyebrow { margin-bottom: 12px; }
.ring3d__hint { color: var(--muted); margin-top: 10px; font-size: 0.9rem; }
.ring3d__scene { --card: clamp(180px, 20vw, 260px); --radius: calc(var(--card) * 1.55); position: relative; flex: 1; min-height: 0; perspective: 1600px; display: grid; place-items: center; }
.ring3d__scene::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: min(80vw, 900px); height: 60px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(47, 107, 255, 0.35), transparent 70%); filter: blur(10px); }
.ring3d__ring {
  --rot: 0deg;
  position: relative;
  width: var(--card);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(var(--rot));
  transition: transform 0.25s ease-out;
}
.ring3d { --rot: 0deg; }
.ring3d .ring3d__ring { transform: rotateX(-8deg) rotateY(var(--rot)); }
.ring-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid rgba(160, 185, 255, 0.22);
  overflow: hidden;
  transform: rotateY(calc(360deg / var(--n) * var(--i))) translateZ(var(--radius));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ring-card:hover { border-color: var(--accent); box-shadow: 0 30px 70px rgba(255, 210, 63, 0.25); }
.ring-card__img { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #1b2a5a, #0b1530); }
.ring-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ring-card__img--contain img { object-fit: contain; padding: 8%; }
.ring-card__img--logo { background: #fff; }
.ring-card__img--logo img { object-fit: contain; padding: 14%; }
.ring-card:hover .ring-card__img img { transform: scale(1.06); }
.ring-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.ring-card__year { font-size: 0.72rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.ring-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.ring-card__role { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }

/* Home passions */
.home-passions { padding: clamp(60px, 10vw, 140px) 0 0; }
.hp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease-out), opacity 1s var(--ease-out);
}
.hp-card:nth-child(2) { --d: 0.1s; margin-top: 40px; } .hp-card:nth-child(3) { --d: 0.2s; }
.hp-card__glow { position: absolute; inset: 15%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, 0.45), transparent 65%); transition: transform 0.8s var(--ease-out), background 0.6s; }
.hp-card img { width: 90%; max-height: 72%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hp-card__title { position: absolute; left: 24px; bottom: 20px; font-family: "Kaushan Script", cursive; font-size: clamp(1.44rem, 2.4vw, 2.08rem); color: var(--accent); transform: rotate(-4deg); }
.hp-card:hover { border-color: var(--accent); transform: translateY(-8px); }
.hp-card:hover img { transform: scale(1.1) rotate(-4deg); }
.hp-card:hover .hp-card__glow { transform: scale(1.4); background: radial-gradient(circle, rgba(255, 210, 63, 0.4), transparent 65%); }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero--v2 { padding-top: 110px; }
  .hero-stage { width: min(78%, 400px); margin-top: 24px; }
  .kpis__grid { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .hero--v2 .hero__title { font-size: 16.5vw; }
  .hero--v2 .line--indent { padding-left: 6vw; }
  .hero__copy { min-width: 0; }
  .hero--v2 .hero__ctas .btn { width: 100%; flex: 1 1 100%; justify-content: center; }
  .hero--v2 .hero__kicker { font-size: 0.78rem; }
  .hero-stage { width: 82%; }
  .float-card--5 { left: 18%; font-size: 0.72rem; }
  .ring3d { height: 260vh; }
  .ring3d__scene { --card: 150px; --radius: 200px; }
  .ring-card__title { font-size: 0.95rem; }
  .ring-card__role { font-size: 0.74rem; }
  .hp-grid { grid-template-columns: 1fr; }
  .hp-card { aspect-ratio: 4 / 3; }
  .hp-card:nth-child(2) { margin-top: 0; }
}

/* Projects page: 3D card deck */
.page-hero--deck .container { position: relative; z-index: 2; }
.deck { --fan: 0; --tx: 0deg; --ty: 0deg; position: absolute; right: 9%; top: 52%; width: clamp(200px, 22vw, 320px); aspect-ratio: 3 / 4; transform: translateY(-50%) perspective(1200px) rotateY(var(--tx)) rotateX(var(--ty)); transform-style: preserve-3d; transition: transform 0.4s ease-out; z-index: 1; }
.deck__card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--bg-2); border: 1px solid rgba(160, 185, 255, 0.25); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); transform-origin: 50% 110%; opacity: 0; transform: translateY(80px) scale(0.9); transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.6s, box-shadow 0.3s, border-color 0.3s; transition-delay: calc(var(--k) * 0.08s); }
.deck.is-in .deck__card { opacity: 1; transform: translateX(calc((var(--k) - 1) * var(--fan) * 62%)) translateZ(var(--z)) rotate(calc((var(--k) - 1) * var(--fan) * 14deg)); }
.deck__card:nth-child(2) { z-index: 3; }
.deck.is-in .deck__card:hover { transform: translateX(calc((var(--k) - 1) * var(--fan) * 62%)) translateY(-24px) translateZ(80px) rotate(calc((var(--k) - 1) * var(--fan) * 8deg)) scale(1.05); z-index: 5; border-color: var(--accent); box-shadow: 0 40px 80px rgba(255, 210, 63, 0.25); transition-delay: 0s; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card:nth-child(2) img { object-fit: contain; padding: 10%; background: linear-gradient(160deg, #1b2a5a, #0b1530); }
.deck__label { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 100px; background: rgba(5, 7, 13, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 900px) { .page-hero--deck { display: flex; flex-direction: column; } .page-hero--deck .deck { order: 2; } .deck { position: relative; right: auto; top: auto; transform: none; margin: 40px auto 20px; width: min(48vw, 230px); } .page-hero--deck { padding-bottom: 60px; } }
.page-hero .page-title--xl { font-size: clamp(1.98rem, 6.6vw, 6.05rem); }
.work-card__visual { overflow: hidden; }
.work-card__visual img { height: 115%; top: -7.5%; transition: transform 1s var(--ease-out); }

/* Mobile type safety */
@media (max-width: 700px) {
  .hero__grid > *, .page-hero__grid > *, .c-hero__grid > * { min-width: 0; }
  .page-title, .s-title, .section-title, .cta__title { overflow-wrap: anywhere; }
  .section-title { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }
  .page-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .s-title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .cta__title { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .manifesto__text { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .btn { padding: 14px 22px; }
}

/* 360 journey: swipe coverflow on touch / small screens */
@media (max-width: 900px) {
  .ring3d { height: auto; }
  .ring3d__sticky { position: static; height: auto; padding: clamp(60px, 10vw, 100px) 0 40px; overflow: visible; }
  .ring3d__scene { display: block; perspective: 1000px; }
  .ring3d__scene::after { display: none; }
  .ring3d .ring3d__ring {
    display: flex;
    gap: 0;
    width: 100%;
    aspect-ratio: auto;
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 30px calc(50% - 31vw) 40px;
    transform-style: preserve-3d;
  }
  .ring3d .ring3d__ring::-webkit-scrollbar { display: none; }
  .ring-card {
    position: relative;
    inset: auto;
    flex: 0 0 62vw;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
    backface-visibility: visible;
    transform: rotateY(var(--cy, 0deg)) scale(var(--cs, 1));
    opacity: var(--co, 1);
    transition: transform 0.1s linear, opacity 0.1s linear;
  }
  .ring3d__dots { display: flex; justify-content: center; gap: 8px; }
  .ring3d__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width 0.3s, background 0.3s; }
  .ring3d__dots span.is-on { width: 22px; border-radius: 8px; background: var(--accent); }
}
@media (min-width: 901px) { .ring3d__dots { display: none; } }

/* Testimonials */
.testi { padding: clamp(60px, 10vw, 130px) 0 0; }
.testi__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }
.testi-card { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(150deg, var(--bg-2), rgba(11, 21, 48, 0.4)); border: 1px solid var(--line); overflow: hidden; transition: transform 0.6s var(--ease-out), border-color 0.4s, opacity 1s var(--ease-out); }
.testi-card:nth-child(2) { --d: 0.12s; }
.testi-card:hover { transform: translateY(-6px) rotate(-0.5deg); border-color: var(--accent); }
.testi-card__mark { position: absolute; right: 20px; top: -30px; font-family: "Kaushan Script", cursive; font-size: 10rem; line-height: 1; color: var(--accent); opacity: 0.18; }
.testi-card blockquote { position: relative; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; }
.testi-card figcaption > span:last-child { display: flex; flex-direction: column; }
.testi-card figcaption em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.testi-card__avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 800; }
@media (max-width: 800px) { .testi__grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  .grain { display: none; }
}
.gallery__media:not(.is-empty) img { max-height: 440px; width: 100%; object-fit: cover; }

/* ==========================================================================
   Passions : cartes
   ========================================================================== */
.section-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 560px; margin-top: 18px; }
.inspire { padding-bottom: clamp(40px, 6vw, 80px); }
.inspire--projects { padding-top: clamp(40px, 6vw, 80px); }

.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding: 10px 0 20px; }
.pcard { position: relative; display: block; aspect-ratio: 4 / 5; isolation: isolate; }
.pcard:hover { z-index: 2; }
.pcard__stack { position: absolute; inset: 0; }
.pcard__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); border: 4px solid #f4f6fb; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.8s var(--ease-out), filter 0.6s;
}
.pcard__img--0 { z-index: 3; border-color: transparent; }
.pcard__img--1 { z-index: 2; transform: rotate(-5deg) scale(0.94); filter: brightness(0.7); }
.pcard__img--2 { z-index: 1; transform: rotate(5deg) scale(0.94); filter: brightness(0.55); }
.pcard:hover .pcard__img--0 { transform: translateY(-10px) rotate(-1deg); }
.pcard:hover .pcard__img--1 { transform: translate(-24%, -2%) rotate(-12deg) scale(0.86); filter: none; }
.pcard:hover .pcard__img--2 { transform: translate(24%, 2%) rotate(11deg) scale(0.86); filter: none; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: var(--radius); background: linear-gradient(to top, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.55) 38%, transparent 65%); pointer-events: none; transition: transform 0.8s var(--ease-out); }
.pcard:hover::after { transform: translateY(-10px) rotate(-1deg); }
.pcard__num { position: absolute; top: 16px; left: 18px; z-index: 5; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--bg); background: var(--accent); padding: 5px 10px; border-radius: 100px; transition: transform 0.8s var(--ease-out); }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 28px); transition: transform 0.8s var(--ease-out); }
.pcard:hover .pcard__body, .pcard:hover .pcard__num { transform: translateY(-10px); }
.pcard__title { font-family: "Kaushan Script", "Brush Script MT", cursive; color: var(--accent); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; transform: rotate(-3deg); transform-origin: left; }
.pcard__text { color: rgba(244, 246, 251, 0.82); font-size: 0.95rem; line-height: 1.55; }
.pcard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.pcard__go i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); transition: transform 0.4s var(--ease-out); }
.pcard:hover .pcard__go i { transform: translateX(6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .pcards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 20px var(--gutter) 30px; scrollbar-width: none; }
  .pcards::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: center; }
}
@media (max-width: 600px) {
  .pcards { grid-auto-columns: 74vw; }
  .pcard__text { font-size: 0.88rem; }
}

/* Raccourcis passions (hero À propos) */
.hero-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; }
.hero-pass__label { width: 100%; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.hero-pass__link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 100px; font-size: 0.9rem; font-weight: 600; transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.hero-pass__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 210, 63, 0.12); }
.hero-pass__ico svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-pass__link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Ligne discrète passions (Projets) */
.pass-strip { padding: clamp(30px, 5vw, 60px) 0 0; }
.pass-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pass-strip__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.pass-strip__links { display: flex; flex-wrap: wrap; gap: 10px; }
.pass-strip__link { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; font-size: 0.92rem; transition: border-color 0.3s, color 0.3s; }
.pass-strip__link img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pass-strip__link i { font-style: normal; color: var(--accent); transition: transform 0.4s var(--ease-out); }
.pass-strip__link:hover { border-color: var(--accent); color: var(--accent); }
.pass-strip__link:hover i { transform: translateX(4px); }

/* ==========================================================================
   Objets 3D des pages passions (vinyle, médaille, sac à dos)
   ========================================================================== */
.o3 {
  --mx: 0; --my: 0;
  position: absolute; right: 5%; top: 50%; z-index: 1;
  width: 20em; height: 20em; font-size: min(1.6vw, 2.8vh);
  transform: translateY(-45%);
  perspective: 70em; pointer-events: none;
  animation: o3In 1.4s 0.4s var(--ease-out) both;
}
@keyframes o3In { from { opacity: 0; transform: translateY(-38%) scale(0.85); } }
.o3 *, .o3 *::before, .o3 *::after { box-sizing: border-box; }
.o3__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--my) * -14deg)) rotateY(calc(var(--mx) * 22deg)); transition: transform 0.8s var(--ease-out); }
.o3__float { position: absolute; inset: 0; transform-style: preserve-3d; animation: o3Float 7s ease-in-out infinite; }
@keyframes o3Float { 50% { transform: translateY(-0.9em); } }
.o3__shadow { position: absolute; left: 22%; right: 22%; bottom: -0.5em; height: 1.6em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); animation: o3Shadow 7s ease-in-out infinite; }
@keyframes o3Shadow { 50% { transform: scale(0.85); opacity: 0.6; } }
.o3__spark { position: absolute; color: var(--accent); font-size: 1.6em; opacity: 0.85; text-shadow: 0 0 1em rgba(255, 210, 63, 0.6); animation: o3Spark 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.o3__spark:nth-of-type(4n+1) { left: 2%; top: 14%; transform: translateZ(4em); }
.o3__spark:nth-of-type(4n+2) { right: 0; top: 6%; font-size: 1.2em; transform: translateZ(2em); }
.o3__spark:nth-of-type(4n+3) { right: 4%; bottom: 14%; transform: translateZ(5em); }
.o3__spark:nth-of-type(4n) { left: 8%; bottom: 8%; font-size: 1.1em; color: #7fa4ff; transform: translateZ(3em); }
@keyframes o3Spark { 50% { translate: 0 -1.2em; opacity: 0.35; } }

/* --- Vinyle --- */
.vin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(8deg); }
.vin__sleeve {
  position: absolute; left: -1em; top: 3em; width: 13.5em; height: 13.5em; border-radius: 0.5em; overflow: hidden;
  background: linear-gradient(150deg, #1d3a8f, #0b1530 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1.5em 3em -1em rgba(0, 0, 0, 0.7);
  transform: translateZ(0.4em);
}
.vin__sun { position: absolute; width: 9em; height: 9em; right: -2.5em; top: -2.5em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe37a, var(--accent) 55%, #e0a800); }
.vin__stripes { position: absolute; left: 0; right: 0; top: 8.2em; height: 2.4em; background: repeating-linear-gradient(180deg, var(--accent-2) 0 0.32em, transparent 0.32em 0.64em); opacity: 0.8; }
.vin__title { position: absolute; left: 1em; bottom: 1.6em; font-family: var(--font-display); font-weight: 800; font-size: 1.7em; line-height: 0.95; letter-spacing: -0.03em; color: #f4f6fb; }
.vin__sub { position: absolute; left: 1.15em; bottom: 0.8em; font-size: 0.75em; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.vin__disc { position: absolute; left: 8em; top: 3.75em; width: 12em; height: 12em; transform-style: preserve-3d; animation: vinOut 1.6s 0.6s var(--ease-out) both; }
@keyframes vinOut { from { transform: translateX(-4.5em); } }
.vin__layer { position: absolute; inset: 0; border-radius: 50%; background: #07080c; transform: translateZ(var(--z)); }
.vin__face {
  position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-0.5em);
  background: repeating-radial-gradient(circle, #0b0c11 0 0.12em, #1a1c24 0.12em 0.2em);
  box-shadow: inset 0 0 0 0.25em #050608; animation: vinSpin 3.2s linear infinite;
}
@keyframes vinSpin { to { transform: translateZ(-0.5em) rotate(360deg); } }
.vin__label { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #05070d 0 0.35em, var(--accent) 0.36em); color: var(--bg); }
.vin__label b { font-family: var(--font-display); font-weight: 800; font-size: 1.2em; line-height: 1; margin-top: -1.3em; }
.vin__label i { font-style: normal; font-size: 0.42em; letter-spacing: 0.12em; margin-top: 1.9em; }
.vin__sheen { position: absolute; left: 8em; top: 3.75em; width: 12em; height: 12em; border-radius: 50%; transform: translateZ(-0.45em); animation: vinOut 1.6s 0.6s var(--ease-out) both; background: conic-gradient(from 30deg, transparent 0 8%, rgba(160, 190, 255, 0.28) 12%, transparent 18% 50%, rgba(255, 255, 255, 0.18) 58%, transparent 64%); -webkit-mask: radial-gradient(circle, transparent 31%, #000 31.5%); mask: radial-gradient(circle, transparent 31%, #000 31.5%); }

/* --- Médaille --- */
.med { position: absolute; inset: 0; transform-style: preserve-3d; }
.med__strap { position: absolute; left: 0; top: -0.5em; width: 20em; height: 9.6em; }
.med__strap--l { clip-path: polygon(16% 0, 37% 0, 57% 100%, 41% 100%); background: linear-gradient(90deg, #2f6bff 0 40%, var(--accent) 40% 60%, #2f6bff 60%); transform: translateZ(0.2em); }
.med__strap--r { clip-path: polygon(63% 0, 84% 0, 59% 100%, 43% 100%); background: linear-gradient(90deg, #1d3a8f 0 40%, #e0a800 40% 60%, #1d3a8f 60%); transform: translateZ(-0.2em); }
.med__ring { position: absolute; left: 9em; top: 8.4em; width: 2em; height: 2em; border-radius: 50%; border: 0.4em solid #d9a514; transform: translateZ(0.1em); }
.med__coin { position: absolute; left: 4.25em; top: 9.6em; width: 11.5em; height: 11.5em; transform-style: preserve-3d; animation: medSpin 9s ease-in-out infinite; }
@keyframes medSpin { 0% { transform: rotateY(-30deg); } 38%, 48% { transform: rotateY(30deg); } 88%, 100% { transform: rotateY(330deg); } }
.med__layer { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #c48f0a, #7a5600); transform: translateZ(var(--z)); }
.med__face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: radial-gradient(circle at 35% 30%, #fff1b0, var(--accent) 35%, #d29b0c 75%, #a87a05); box-shadow: inset 0 0 0 0.35em #e9b520, inset 0 0 1.2em rgba(120, 80, 0, 0.6); }
.med__face--front { transform: translateZ(0.62em); }
.med__face--back { transform: rotateY(180deg) translateZ(0.62em); display: grid; place-content: center; text-align: center; color: #7a5600; }
.med__face--back b { font-family: var(--font-display); font-weight: 800; font-size: 3.2em; line-height: 1; }
.med__face--back i { font-style: normal; font-size: 0.7em; letter-spacing: 0.2em; font-weight: 700; }
.med__face::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.65) 50%, transparent 60%); animation: medGlint 4.5s ease-in-out infinite; }
@keyframes medGlint { 0%, 60% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.med__face svg { width: 100%; height: 100%; }
.med__line { fill: none; stroke: #9c7004; stroke-width: 2.2; }
.med__txt { font: 800 13px/1 var(--font-display); fill: #7a5600; letter-spacing: 1px; }
.med__oars path { fill: none; stroke: #7a5600; stroke-width: 6; stroke-linecap: round; }
.med__oars .med__blade { fill: #7a5600; stroke-width: 2; }
.med__one { font: 800 30px/1 var(--font-display); fill: #7a5600; text-anchor: middle; }

/* --- Sac à dos --- */
.bp { position: absolute; left: 4.5em; top: 3.6em; width: 11em; height: 14em; transform-style: preserve-3d; animation: bpTurn 9s ease-in-out infinite; }
@keyframes bpTurn { 0%, 100% { transform: rotateY(-34deg); } 50% { transform: rotateY(30deg); } }
.bp__layer, .bp__front { position: absolute; inset: 0; border-radius: 4em 4em 1.6em 1.6em / 4.6em 4.6em 1.6em 1.6em; }
.bp__layer { background: linear-gradient(90deg, #0b1d4f, #13306f 50%, #0b1d4f); transform: translateZ(var(--z)); }
.bp__front { transform: translateZ(2.85em); overflow: hidden; background: radial-gradient(circle at 30% 20%, #3f7bff, #1d3a8f 70%); box-shadow: inset 0 0 0 0.18em rgba(255, 255, 255, 0.08); }
.bp__flap { position: absolute; left: 0; right: 0; top: 0; height: 6.4em; border-radius: 0 0 2.4em 2.4em; background: linear-gradient(180deg, #2a56c9, #20449f); box-shadow: 0 0.4em 0.8em rgba(0, 0, 0, 0.35); }
.bp__flap::after { content: ""; position: absolute; inset: 0.5em 0.6em; border: 0.12em dashed rgba(255, 210, 63, 0.7); border-radius: 3.4em 3.4em 2em 2em / 4em 4em 2em 2em; }
.bp__strap { position: absolute; left: 4.9em; top: 4.4em; width: 1.2em; height: 4.4em; background: var(--accent); border-radius: 0.2em; }
.bp__strap i { position: absolute; left: -0.25em; right: -0.25em; bottom: 0.4em; height: 1.1em; border: 0.22em solid #0b1530; border-radius: 0.2em; }
.bp__pocket { position: absolute; left: 1.4em; top: 8em; width: 8.2em; height: 5em; transform-style: preserve-3d; transform: translateZ(2.85em); }
.bp__player { position: absolute; inset: 0; border-radius: 1.4em; background: #102a6a; transform: translateZ(var(--z)); }
.bp__pface { position: absolute; inset: 0; border-radius: 1.4em; transform: translateZ(1.32em); background: linear-gradient(160deg, #2f6bff, #1d3a8f); box-shadow: inset 0 0 0 0.15em rgba(255, 255, 255, 0.1); }
.bp__zip { position: absolute; left: 0.8em; right: 0.8em; top: 0.7em; height: 1.4em; border-top: 0.18em dashed var(--accent); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.bp__badge { position: absolute; width: 1.7em; height: 1.7em; border-radius: 50%; border: 0.18em solid #f4f6fb; transform: rotate(var(--r)); box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.4); }
.bp__badge--fr { background: linear-gradient(90deg, #2f4fd8 33%, #fff 33% 66%, #e63946 66%); }
.bp__badge--al { background: radial-gradient(circle, #111 0 28%, #e41e20 30%); }
.bp__badge--hr { background: conic-gradient(#e63946 25%, #fff 0 50%, #e63946 0 75%, #fff 0) 0 0 / 0.6em 0.6em; }
.bp__badge--de { background: linear-gradient(180deg, #111 33%, #dd0000 33% 66%, #ffce00 66%); }
.bp__badge--be { background: linear-gradient(90deg, #111 33%, #fdda24 33% 66%, #ef3340 66%); }
.bp__badge--ch { background: linear-gradient(#fff, #fff) center / 60% 20% no-repeat, linear-gradient(#fff, #fff) center / 20% 60% no-repeat, #da291c; }
.bp__badge--es { background: linear-gradient(180deg, #c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%); }
.bp__handle { position: absolute; left: 3.6em; top: -1.5em; width: 3.8em; height: 2.4em; border: 0.55em solid #0b1d4f; border-bottom: 0; border-radius: 2em 2em 0 0; }
.bp__tag { position: absolute; left: -2.2em; top: 1.4em; padding: 0.35em 0.6em; border-radius: 0.3em; background: var(--accent); color: var(--bg); display: flex; flex-direction: column; line-height: 1.1; transform-origin: 0 0; transform: translateZ(3.4em) rotate(-14deg); animation: bpTag 3s ease-in-out infinite; box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.4); }
.bp__tag::before { content: ""; position: absolute; right: -1.6em; top: 0.3em; width: 1.7em; border-top: 0.12em solid var(--accent); transform: rotate(-25deg); transform-origin: left; }
.bp__tag b { font-family: var(--font-display); font-weight: 800; font-size: 0.8em; letter-spacing: 0.08em; }
.bp__tag i { font-style: normal; font-size: 0.65em; }
@keyframes bpTag { 50% { transform: translateZ(3.4em) rotate(-4deg); } }

@media (max-width: 700px) {
  .o3 { top: 84px; right: 4%; font-size: 2.6vw; transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .o3 *, .o3 { animation: none !important; }
}

/* Musique : égaliseur / Cinéma : pellicule (remplacent les anciennes icônes) */
.duo-eq { display: flex; align-items: flex-end; gap: 5px; height: clamp(110px, 12vw, 150px); margin-bottom: 22px; }
.duo-eq i { flex: 1; max-width: 14px; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--accent-2), var(--accent)); transform-origin: bottom; animation: eqBar 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
.duo-eq i:nth-child(3n) { animation-duration: 0.8s; }
.duo-eq i:nth-child(4n+1) { animation-duration: 1.4s; }
@keyframes eqBar { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }
.duo-film { display: block; position: relative; height: clamp(110px, 12vw, 150px); margin: 0 calc(clamp(24px, 3vw, 40px) * -1) 22px; overflow: hidden; transform: rotate(-3deg); }
.duo-film__track { display: flex; width: max-content; height: 100%; animation: filmRoll 16s linear infinite; }
@keyframes filmRoll { to { transform: translateX(-50%); } }
.duo-film__frame {
  position: relative; flex: none; width: clamp(130px, 13vw, 170px); height: 100%; padding: 22px 6px; background: #05070d;
  background-image: radial-gradient(circle at 50% 50%, rgba(244, 246, 251, 0.85) 0 3px, transparent 3.5px), radial-gradient(circle at 50% 50%, rgba(244, 246, 251, 0.85) 0 3px, transparent 3.5px);
  background-size: 16px 16px, 16px 16px; background-repeat: repeat-x; background-position: 0 3px, 0 calc(100% - 3px);
}
.duo-film__frame b {
  display: grid; place-items: center; height: 100%; border-radius: 6px; text-align: center; padding: 0 6px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: var(--bg);
  background: linear-gradient(140deg, var(--accent), #ffb703);
}
.duo-film__frame:nth-child(even) b { background: linear-gradient(140deg, var(--accent-2), #1d3a8f); color: #f4f6fb; }
@media (prefers-reduced-motion: reduce) { .duo-eq i, .duo-film__track { animation: none; } }

/* Accueil : ce que je recherche */
.seek { padding: clamp(60px, 10vw, 130px) 0 0; }
.seek__card { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 60px); align-items: start; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.28), transparent 55%), linear-gradient(150deg, var(--bg-2), rgba(11, 21, 48, 0.35)); border: 1px solid var(--line); overflow: hidden; }
.seek__head .section-title { margin: 14px 0 20px; }
.seek__status { width: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 100px; background: rgba(255, 210, 63, 0.1); color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.seek__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.6); animation: seekPulse 2s infinite; }
@keyframes seekPulse { 70% { box-shadow: 0 0 0 10px rgba(255, 210, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); } }
.seek__grid { display: grid; gap: 22px; margin: 0; }
.seek__grid dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.seek__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.seek__chips span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; font-size: 0.92rem; background: rgba(5, 7, 13, 0.35); transition: border-color 0.3s, color 0.3s; }
.seek__chips span:hover { border-color: var(--accent); color: var(--accent); }
.seek__cta { grid-column: 2; justify-self: start; }
@media (max-width: 900px) { .seek__card { grid-template-columns: 1fr; } .seek__cta { grid-column: 1; } }

/* Formulaire : anti-spam caché, envoi en cours */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sending .btn--submit { opacity: 0.6; pointer-events: none; }

/* Bandeau cookies (seulement si Google Analytics est activé) */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 460px; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(11, 21, 48, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); font-size: 0.9rem; line-height: 1.5; color: var(--muted); animation: cookiesIn 0.6s 1.5s var(--ease-out) both; transition: opacity 0.5s, transform 0.5s; }
.cookies.is-hidden { opacity: 0; transform: translateY(20px); }
@keyframes cookiesIn { from { opacity: 0; transform: translateY(20px); } }
.cookies__btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookies__btn { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.cookies__btn--yes { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Accessibilité : visiteurs qui ont demandé moins d'animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* PUNCH : logo blanc dessiné + mascotte en vol (planche d'animation) */
.punch-hero__logo { border-radius: 0; box-shadow: none; height: auto; object-fit: contain; filter: drop-shadow(0 0 28px rgba(34, 166, 214, 0.55)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.punch-hero__sprite { display: block; aspect-ratio: 462 / 360; background-position: 0 0; background-size: calc(var(--frames) * 100%) 100%; background-repeat: no-repeat; animation: spriteFly 0.77s steps(11, jump-none) infinite, flutter 3s ease-in-out infinite; }
@keyframes spriteFly { to { background-position: 100% 0; } }

/* 360 ID COM : icônes dessinées de la DA */
.doodle--img { width: 22%; }
.doodle--img img { width: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.doodle--gear.doodle--img img { animation: spin 14s linear infinite; }
.service { position: relative; }
.service__icon { display: block; width: 58px; height: 58px; margin-bottom: 12px; object-fit: contain; opacity: 0.95; animation: doodleFloat 5s ease-in-out infinite; }
.service:nth-child(2) .service__icon { animation-delay: -1.2s; }
.service:nth-child(3) .service__icon { animation-delay: -2.4s; }
.service:nth-child(4) .service__icon { animation-delay: -3.6s; }
/* Logo PUNCH (icône d'appli) : affiché en entier */
img[src*="punch/logo-app"] { object-fit: contain !important; }
.side-card__logo img[src*="punch/logo-app"] { padding: 12px; }

/* Saint-Gobain : carte des pays accompagnés */
.s-countries { padding: clamp(60px, 9vw, 120px) 0; }
.s-countries__count { font-size: 0.45em; vertical-align: super; margin-left: 10px; color: var(--accent); font-family: var(--font-display); }
.s-countries__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.cmap-wrap { border-radius: 28px; background: radial-gradient(circle at 45% 50%, rgba(47, 107, 255, 0.28), transparent 70%), var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.cmap { width: 100%; height: auto; display: block; }
.cmap__grid line { stroke: rgba(160, 185, 255, 0.08); stroke-width: 1; }
.cmap__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.75; transition: stroke-dashoffset 1.2s var(--ease-out), opacity 0.3s, stroke-width 0.3s; transition-delay: calc(var(--i) * 0.09s), 0s, 0s; }
.cmap-wrap.is-visible .cmap__line { stroke-dashoffset: 0; }
.cmap__pt { opacity: 0; transition: opacity 0.5s; transition-delay: calc(0.6s + var(--i) * 0.09s); cursor: pointer; }
.cmap-wrap.is-visible .cmap__pt { opacity: 1; }
.cmap__dot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.cmap__halo { fill: rgba(255, 210, 63, 0.18); transform-box: fill-box; transform-origin: center; animation: cmapPulse 2.6s ease-out infinite; animation-delay: calc(var(--i) * -0.2s); }
@keyframes cmapPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.cmap__pt text { fill: var(--text); font: 700 21px var(--font-body); paint-order: stroke; stroke: var(--bg-2); stroke-width: 5px; }
.cmap__hub circle:last-of-type, .cmap__hub > circle:nth-child(2) { fill: #f4f6fb; }
.cmap__hub-pulse { fill: rgba(244, 246, 251, 0.25); transform-box: fill-box; transform-origin: center; animation: cmapPulse 2s ease-out infinite; }
.cmap__hub text { fill: #f4f6fb; font: 800 22px var(--font-body); paint-order: stroke; stroke: var(--bg-2); stroke-width: 5px; }
.cmap-wrap.has-hot .cmap__line:not(.is-hot) { opacity: 0.15; }
.cmap-wrap.has-hot .cmap__pt:not(.is-hot) { opacity: 0.35; }
.cmap__line.is-hot { stroke-width: 5; opacity: 1; }
.cmap__pt.is-hot .cmap__dot { r: 10; }
.cchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cchip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 100px; background: rgba(11, 21, 48, 0.6); color: var(--text); font: 600 0.9rem var(--font-body); cursor: default; transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s; }
.cchip__flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); flex: none; }
.cchip.is-hot, .cchip:hover { border-color: var(--accent); background: rgba(255, 210, 63, 0.1); transform: translateY(-2px); }
@media (max-width: 900px) { .s-countries__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cmap__pt text { font-size: 26px; } }

/* Mentions légales */
.page-hero--legal { padding-bottom: clamp(30px, 4vw, 50px); }
.legal { padding: 0 0 clamp(60px, 9vw, 120px); }
.legal__body > * { max-width: 820px; }
.legal__body h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 42px 0 12px; color: var(--accent); }
.legal__body p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal__body strong { color: var(--text); }
.legal__body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal__date { margin-top: 36px; font-size: 0.85rem; }
.footer__legal { font-size: 0.85rem; color: var(--muted); }
.footer__legal button { font: inherit; color: inherit; }
.form__privacy { margin-top: 6px; font-size: 0.8rem; color: var(--muted); } .form__privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Cartes du parcours : même hauteur d'image pour toutes les cartes */
.ring-card__img { flex: none; height: 70%; }
.ring-card__body { flex: 1; justify-content: center; }
.ring-card__role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Adaptation des images à leur format réel */
.trip__photo { width: auto; height: clamp(170px, 17vw, 234px); aspect-ratio: auto; }
.trip__photo img { width: auto; height: 100%; max-width: min(340px, 70vw); object-fit: cover; display: block; }
@media (max-width: 700px) { .trip__photo { height: 167px; } }
.pcard { aspect-ratio: 1 / 1; }
.s-concept__photo { aspect-ratio: 3 / 4; width: 34%; }
.s-concept__photo img { object-position: 50% 40%; }
body[data-page="sport"] .role-photo__media img { object-position: 72% 50%; }
/* Accueil : visuels « contain » (maquette, calendrier) */
.project__visual--contain img { object-fit: contain !important; padding: 6%; }
.projects__track .project { transform: none; }
