/* ═══ Variables — modifie ici pour personnaliser ═══ */
:root {
  --bg: #92CEFA;
  --primary-rgb: 146, 206, 250;
  --primary-dark: #6BB5F0;
  --primary-light: #B8E0FC;
  --bg-dark: #0d0d0d;
  --text: #0e0e0e;
  --text-muted: #888;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-duration: 0.72s;
  --ice-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --grid-size: 52px;
  --grid-line-on-light: rgba(14, 14, 14, 0.042);
  --grid-line-on-dark: rgba(255, 255, 255, 0.038);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-on-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-on-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  mask-image: radial-gradient(ellipse 120% 85% at 50% 12%, #000 25%, transparent 78%);
}
main {
  position: relative;
  z-index: 1;
}

/* ── Effets glace (ambiance Ice Studio) ── */
.ice-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ice-fx__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(255, 255, 255, 0.42), transparent 58%),
    radial-gradient(ellipse 70% 45% at 88% 6%, rgba(255, 255, 255, 0.28), transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(184, 224, 252, 0.22), transparent 65%);
  animation: ice-breathe 9s ease-in-out infinite alternate;
}
.ice-fx__shard {
  position: absolute;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.62) 0%, rgba(210, 236, 255, 0.28) 45%, rgba(146, 206, 250, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  clip-path: polygon(50% 0%, 88% 22%, 100% 58%, 62% 100%, 18% 82%, 0% 38%);
  box-shadow: 0 0 24px rgba(184, 224, 252, 0.25);
  opacity: 0.32;
  animation: ice-shard-float 14s ease-in-out infinite;
}
.ice-fx__shard--1 { width: 72px; height: 88px; top: 14%; left: 6%; animation-delay: 0s; }
.ice-fx__shard--2 { width: 54px; height: 66px; top: 58%; right: 8%; animation-delay: -4.5s; transform: rotate(28deg); }
.ice-fx__shard--3 { width: 44px; height: 54px; bottom: 18%; left: 14%; animation-delay: -8s; transform: rotate(-18deg); }
.ice-fx__flakes {
  position: absolute;
  inset: -20% 0 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px);
  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 40px;
  animation: ice-snow 38s linear infinite;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
@keyframes ice-breathe {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.02); }
}
@keyframes ice-shard-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 6deg; }
}
@keyframes ice-snow {
  from { background-position: 0 0, 60px 40px; }
  to { background-position: -120px 280px, 40px 320px; }
}
@keyframes ice-shimmer {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

/* ── Séparateur de sections (transition douce) ── */
.section-seam {
  position: relative;
  z-index: 0;
  height: 0;
  pointer-events: none;
}
.section-seam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  transform: translateY(-100%);
  background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
  pointer-events: none;
}
.section-seam::after {
  display: none;
}

.bg-grid-dark {
  position: relative;
  isolation: isolate;
}
.bg-grid-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-on-dark) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  mask-image: radial-gradient(ellipse 95% 75% at 50% 45%, #000 18%, transparent 100%);
}
.bg-grid-dark > * {
  position: relative;
  z-index: 1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 72rem; }
.container--faq { max-width: 48rem; }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease) calc(var(--i, 0) * 0.08s), transform 0.9s var(--ease) calc(var(--i, 0) * 0.08s); }
.reveal.visible { opacity: 1; transform: none; }
.reveal--right { transform: translateX(18px); }
.reveal--right.visible { transform: none; }
.reveal--process-header { transform: translateY(18px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal--process-step {
  opacity: 0;
  transform: translateY(36px) translateX(calc(var(--i, 0) * 1.35rem));
  filter: blur(8px);
  transition:
    opacity 0.8s var(--ease) calc(var(--i, 0) * 0.14s),
    transform 0.85s var(--ease) calc(var(--i, 0) * 0.14s),
    filter 0.75s var(--ease) calc(var(--i, 0) * 0.14s);
}
.reveal--process-step.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Nav entrance ── */
.nav-enter { opacity: 0; transform: translateY(-80px); animation: navIn 0.9s var(--ease) forwards; }
@keyframes navIn { to { opacity: 1; transform: none; } }

/* ── Hero entrance ── */
.anim-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1.1s var(--ease) var(--d, 0s) forwards; }
.anim-scale { opacity: 0; transform: scale(0.88); animation: fadeScale 0.7s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeScale { to { opacity: 1; transform: none; } }

.hero-scene--enter { opacity: 0; transform: scale(0.88) translateY(50px); animation: heroSceneIn 1.3s var(--ease) 0.35s forwards; }
@keyframes heroSceneIn { to { opacity: 1; transform: none; } }
.mockup-enter { opacity: 0; animation: mockupFade 0.8s var(--ease) var(--d, 0s) forwards; }
.mockup-enter--up { transform: translateY(30px); animation-name: mockupUp; }
.mockup-enter--right { transform: translateX(20px); animation-name: mockupRight; }
@keyframes mockupFade { to { opacity: 1; } }
@keyframes mockupUp { to { opacity: 1; transform: none; } }
@keyframes mockupRight { to { opacity: 1; transform: none; } }

/* floating continues after enter — on inner wrappers, not the 3D scene */
.editor-slot--main .editor-float--lg { animation: float 5.8s ease-in-out 1.6s infinite; }
.editor-slot--audio .editor-float--sm { animation: float-sm 4.8s ease-in-out 1.8s infinite; }

/* ── Nav ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  pointer-events: none;
  transition: padding 0.45s var(--ease);
}
.header.is-scrolled {
  padding-top: 0.65rem;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 52rem);
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  transition:
    padding 0.45s var(--ease),
    gap 0.45s var(--ease),
    border-radius 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.45s var(--ease);
}
.nav.scrolled {
  padding: 0.42rem 0.55rem 0.42rem 0.75rem;
  box-shadow: 0 10px 36px rgba(2, 2, 2, 0.14), inset 0 1px rgba(255, 255, 255, 0.82);
}
.glass-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  border: max(1px, 0.1em) solid transparent;
  background: linear-gradient(rgba(146, 206, 250, 0.38), rgba(107, 181, 240, 0.24)) padding-box,
    linear-gradient(165deg, rgba(184, 224, 252, 0.55), rgba(146, 206, 250, 0.22), rgba(184, 224, 252, 0.48)) border-box;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 0 4px 24px rgba(2, 2, 2, 0.08), inset 0 1px rgba(255, 255, 255, 0.62);
}
.glass-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.14;
  background-image: var(--ice-noise);
  background-size: 100px 100px;
  mix-blend-mode: soft-light;
}
.glass-pill.scrolled,
.glass-pill.shine {
  background: linear-gradient(rgba(146, 206, 250, 0.78), rgba(107, 181, 240, 0.62)) padding-box,
    linear-gradient(165deg, rgba(184, 224, 252, 0.88), rgba(146, 206, 250, 0.42), rgba(184, 224, 252, 0.82)) border-box;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 1.65rem;
  width: auto;
  filter: brightness(0);
  transition: transform 0.45s var(--ease);
}
@media (hover: hover) {
  .nav-logo:hover img {
    transform: scale(1.03);
  }
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 1px;
  background: rgba(14, 14, 14, 0.72);
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s var(--ease),
    width 0.35s var(--ease);
}
.nav.is-open .nav-toggle__bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav.is-open .nav-toggle__bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
@media (hover: hover) {
  .nav-toggle:hover {
    background: rgba(14, 14, 14, 0.06);
  }
}
.nav-body {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  padding-top: 0.35rem;
}
.nav.is-open {
  flex-wrap: wrap;
  border-radius: 1.1rem;
  padding: 0.65rem 0.75rem 0.85rem;
}
.nav.is-open .nav-body {
  display: flex;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.58);
  text-decoration: none;
  transition:
    color 0.35s var(--ease),
    background 0.35s var(--ease);
}
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--text);
    background: rgba(14, 14, 14, 0.06);
  }
}
.nav-links a.is-active {
  color: var(--text);
  background: rgba(14, 14, 14, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.35s var(--ease);
}
.nav-icon .icon {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}
@media (hover: hover) {
  .nav-icon:hover {
    background: rgba(14, 14, 14, 0.06);
  }
  .nav-icon:hover .icon {
    opacity: 0.92;
  }
}
.nav-icon.is-active .icon {
  opacity: 0.92;
}
.nav-cta {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(186, 224, 252, 0.72);
  background: linear-gradient(
    180deg,
    rgba(186, 224, 252, 0.96) 0%,
    rgba(146, 206, 250, 0.9) 48%,
    rgba(118, 188, 245, 0.84) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(210, 236, 255, 0.55),
    0 4px 14px rgba(14, 14, 14, 0.08);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
@media (hover: hover) {
  .nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 232, 255, 0.85);
    box-shadow:
      inset 0 1px 1px rgba(220, 242, 255, 0.65),
      0 6px 18px rgba(14, 14, 14, 0.1);
  }
}
body.nav-open {
  overflow: hidden;
}
@media (min-width: 768px) {
  .nav {
    gap: 1rem;
    padding: 0.55rem 0.65rem 0.55rem 1rem;
  }
  .nav-toggle {
    display: none;
  }
  .nav-body {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: auto;
    padding-top: 0;
  }
  .nav.is-open {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 0.55rem 0.65rem 0.55rem 1rem;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .nav-links a {
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
  .nav-actions {
    gap: 0.45rem;
    padding-top: 0;
    border-top: none;
  }
  .nav-cta {
    flex: none;
    min-height: auto;
    padding: 6px 16px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header,
  .nav,
  .nav-logo img,
  .nav-toggle__bar,
  .nav-links a,
  .nav-cta {
    transition: none !important;
  }
}

/* ── Buttons (effet glace) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease),
    opacity var(--hover-duration) var(--hover-ease);
}
.icon { display: block; flex-shrink: 0; fill: currentColor; }
.btn .icon { width: 16px; height: 16px; }
.btn-dark .icon { width: 18px; height: 18px; color: var(--bg); }
.btn-ghost .icon { opacity: 0.55; }
.btn-full { width: 100%; }

.btn-iridescent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  cursor: pointer;
  border-radius: 99vw;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid rgba(186, 224, 252, 0.72);
  border-top-color: rgba(210, 236, 255, 0.9);
  background: linear-gradient(
    180deg,
    rgba(186, 224, 252, 0.96) 0%,
    rgba(146, 206, 250, 0.9) 48%,
    rgba(118, 188, 245, 0.84) 100%
  );
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  box-shadow:
    inset 0 1px 1px rgba(210, 236, 255, 0.55),
    inset 0 -1px 1px rgba(90, 160, 220, 0.2),
    0 6px 22px rgba(14, 14, 14, 0.11);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease);
}
.btn-iridescent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
  background-image: var(--ice-noise);
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
}
.btn-iridescent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(220, 242, 255, 0.35) 0%, transparent 42%);
  opacity: 0.7;
  transition: opacity var(--hover-duration) var(--hover-ease);
}
.btn-iridescent > * { position: relative; z-index: 1; }
.btn-iridescent:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 232, 255, 0.85);
  background: linear-gradient(
    180deg,
    rgba(200, 232, 255, 1) 0%,
    rgba(146, 206, 250, 0.96) 48%,
    rgba(107, 181, 240, 0.9) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(220, 242, 255, 0.65),
    inset 0 -1px 1px rgba(90, 160, 220, 0.24),
    0 10px 28px rgba(14, 14, 14, 0.13);
}
.btn-iridescent:hover::after { opacity: 0.9; }
.btn-iridescent:active { transform: translateY(0); transition-duration: 0.35s; }
.iridescent-shadow { display: none; }

.btn-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.15rem 1.5rem;
  font-size: 12px;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(30, 42, 58, 0.72) 0%,
    rgba(14, 14, 14, 0.82) 100%
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease);
}
.btn-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.28;
  background-image: var(--ice-noise);
  background-size: 120px 120px;
  mix-blend-mode: overlay;
}
.btn-dark:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    180deg,
    rgba(38, 52, 70, 0.78) 0%,
    rgba(14, 14, 14, 0.88) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.26);
}

.btn-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  font-size: 11px;
  color: rgba(14, 14, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  opacity: 0.9;
  transition: opacity var(--hover-duration) var(--hover-ease);
}
.btn-ghost:hover {
  color: rgba(14, 14, 14, 0.82);
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(14, 14, 14, 0.08);
}
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost .icon { transition: opacity var(--hover-duration) var(--hover-ease); }
.btn-ghost:hover .icon { opacity: 0.7; }

.btn-portfolio-no-glow {
  box-shadow:
    inset 0 1px 1px rgba(210, 236, 255, 0.55),
    inset 0 -1px 1px rgba(90, 160, 220, 0.2) !important;
}

/* ── Hero ── */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 6rem 1.5rem 3rem; }
.hero::before {
  content: "";
  position: absolute;
  inset: 10% 0 auto;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(255, 255, 255, 0.28), transparent 70%);
  opacity: 0.65;
}
.hero-grid { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .hero { padding-left: 4rem; padding-right: 4rem; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; } }

/* ── Hero Sync Brief (left) ── */
.hero { overflow: clip; }

.hero-sync-beam {
  display: none;
  position: absolute;
  z-index: 2;
  left: min(52%, 42rem);
  top: 52%;
  width: min(18vw, 12rem);
  height: 5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

@media (min-width: 1024px) {
  .hero-sync-beam { display: block; }
}

.hero.is-sync-pulse .hero-sync-beam {
  opacity: 1;
}

.hero-sync-beam__path {
  fill: none;
  stroke: url(#heroBeamGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.85s var(--ease);
}

.hero.is-sync-pulse .hero-sync-beam__path {
  stroke-dashoffset: 0;
}

.hero-sync-beam__dot {
  fill: #92cefa;
  filter: drop-shadow(0 0 6px rgba(146, 206, 250, 0.8));
  opacity: 0;
}

.hero.is-sync-pulse .hero-sync-beam__dot {
  opacity: 1;
  animation: heroBeamDot 0.85s var(--ease) forwards;
}

@keyframes heroBeamDot {
  0% { offset-distance: 0%; opacity: 0; }
  15% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0.6; }
}

.hero-sync-beam__dot {
  offset-path: path("M0,60 C120,60 180,20 400,60");
  offset-rotate: 0deg;
}

.hero-brief {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero-brief__tc {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(14, 14, 14, 0.42);
}

.hero-brief__tc-clock {
  color: rgba(14, 14, 14, 0.65);
  font-variant-numeric: tabular-nums;
}

.hero-brief__tc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.06);
  font-size: 0.52rem;
}

.hero-brief__tc-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e04545;
  box-shadow: 0 0 8px rgba(224, 69, 69, 0.6);
  animation: heroTcBlink 1.6s ease infinite;
}

@keyframes heroTcBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-brief__title {
  margin-bottom: 0.65rem;
}

.hero-brief__title-a {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.38);
  margin-bottom: 0.35rem;
}

.hero-brief__title-b {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-brief__title-b em {
  font-style: normal;
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #0e0e0e, rgba(14, 14, 14, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.hero-brief__title-b em.is-out {
  transform: translateY(-110%);
  opacity: 0;
}

.hero-brief__title-b em.is-in {
  animation: heroWordIn 0.5s var(--ease) forwards;
}

@keyframes heroWordIn {
  from { transform: translateY(90%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-brief__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(14, 14, 14, 0.48);
  margin-bottom: 1.25rem;
  max-width: 24rem;
  transition: opacity 0.35s var(--ease);
}

.hero-brief__desc.is-fading { opacity: 0; }

.hero-brief__deck {
  position: relative;
  padding: 0.65rem 0.7rem 0.85rem;
  margin-bottom: 1.35rem;
  border-radius: 14px;
  background: rgba(14, 14, 14, 0.06);
  border: 1px solid rgba(14, 14, 14, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.hero-brief__deck-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.38);
}

.hero-brief__ratio {
  color: rgba(14, 14, 14, 0.55);
  transition: color 0.35s var(--ease);
}

.hero-brief__lane {
  display: flex;
  gap: 5px;
  min-height: 42px;
  align-items: stretch;
  position: relative;
}

.hero-clip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: rgba(14, 14, 14, 0.85);
  position: relative;
  z-index: 1;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    filter 0.4s var(--ease),
    opacity 0.4s var(--ease);
  opacity: 0.72;
}

.hero-clip:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  z-index: 1;
}

.hero-clip.is-active {
  opacity: 1;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(14, 14, 14, 0.15);
  z-index: 2;
}

.hero-clip--brand {
  background: linear-gradient(180deg, #c8e6fc, #6bb5f0);
}

.hero-clip--ice {
  background: linear-gradient(180deg, #d4ecff, #92cefa);
}

.hero-clip--hot {
  background: linear-gradient(180deg, #ffc8e8, #e878b8);
  color: rgba(255, 255, 255, 0.95);
}

.hero-clip--muted {
  background: linear-gradient(180deg, #8a9aaa, #5a6a7a);
  color: rgba(255, 255, 255, 0.9);
}

.hero-clip__name {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-clip__dur {
  font-family: var(--mono);
  font-size: 0.48rem;
  opacity: 0.65;
}

.hero-brief__playhead {
  position: absolute;
  bottom: 0.35rem;
  left: var(--x, 26%);
  width: 2px;
  height: calc(100% - 1.5rem);
  background: rgba(14, 14, 14, 0.75);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(14, 14, 14, 0.25);
  transition: left 0.65s var(--ease);
  pointer-events: none;
  z-index: 5;
}

.hero-brief__playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  background: rgba(14, 14, 14, 0.8);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-brief__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-brief__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.stat-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.12;
  background-image: var(--ice-noise);
  background-size: 90px 90px;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.28);
}

.hero-title { font-size: clamp(1.9rem, 4.5vw, 5rem); line-height: 1.05; letter-spacing: -0.04em; }
.hero-title--bold { font-weight: 700; background: linear-gradient(180deg, var(--text) 20%, rgba(14,14,14,0.4) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title--light { font-weight: 300; color: rgba(14,14,14,0.35); margin-bottom: 1.5rem; }
@keyframes merit-sweep { 0% { background-position: 200%; } 100% { background-position: -200%; } }
.merit-word { background: linear-gradient(120deg, rgba(14,14,14,0.55), rgba(14,14,14,0.92), rgba(14,14,14,0.55) 76%); background-size: 250%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: merit-sweep 5s linear infinite; }

/* Editor sync (right reacts to left) */
.editor-app.is-vertical .editor-preview__frame {
  opacity: 1;
}

.editor-preview__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.editor-preview__frame::before {
  content: "";
  width: 36%;
  height: 88%;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 40%),
    linear-gradient(180deg, rgba(146, 206, 250, 0.2), transparent 30%),
    linear-gradient(200deg, #1a3050, #0d1520);
  box-shadow: 0 0 28px rgba(146, 206, 250, 0.2);
  animation: heroFeedPan 5s ease-in-out infinite alternate;
}

@keyframes heroFeedPan {
  0% { transform: scale(1); }
  100% { transform: scale(1.04) translateY(-1%); }
}

.editor-app.is-sync-flash .editor-preview {
  animation: editorSyncFlash 0.6s ease;
}

@keyframes editorSyncFlash {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.35); }
}

.editor-app.is-vertical .editor-preview__grid,
.editor-app.is-vertical .editor-preview__glow {
  opacity: 0.25;
}

.editor-filename,
.editor-preview__res {
  transition: opacity 0.3s var(--ease);
}

.editor-filename.is-fading,
.editor-preview__res.is-fading {
  opacity: 0;
}

.editor-clip.is-sync-new {
  animation: clipPop 0.45s var(--ease);
}

@keyframes clipPop {
  0% { transform: scaleX(0.3); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Hero editor mockup */
.hero-visual {
  display: none;
  justify-content: center;
  align-items: center;
  height: 580px;
  perspective: 1100px;
  transform-style: preserve-3d;
}
@media (min-width: 1024px) { .hero-visual { display: flex; } }
.hero-scene-wrap { position: relative; width: 560px; height: 520px; transform-style: preserve-3d; }
.hero-scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }

.editor-slot { position: absolute; transform-style: preserve-3d; }
.editor-slot--main { top: 10px; left: 0; z-index: 3; }
.editor-slot--audio { top: 268px; left: 318px; z-index: 4; }
.editor-slot--main .editor-app { transform: translateZ(0); }
.editor-slot--audio .editor-audio { transform: translateZ(118px); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-11px)} }
@keyframes float-sm { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

.editor-app {
  width: 468px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(168deg, #1a1f28 0%, #11151c 48%, #0d1016 100%);
  border: 1px solid rgba(146, 206, 250, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}

.editor-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(146, 206, 250, 0.1);
}
.editor-dots { display: flex; gap: 5px; }
.editor-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.editor-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.75); }
.editor-dots span:nth-child(2) { background: rgba(250, 204, 21, 0.75); }
.editor-dots span:nth-child(3) { background: rgba(74, 222, 128, 0.75); }
.editor-filename {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(184, 224, 252, 0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-timecode {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: rgba(146, 206, 250, 0.45);
  white-space: nowrap;
}
.editor-timecode__now { color: rgba(184, 224, 252, 0.9); }

.editor-layout {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-height: 0;
}

.editor-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.55rem 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border-right: 1px solid rgba(146, 206, 250, 0.08);
}
.editor-tool {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(184, 224, 252, 0.35);
  background: transparent;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.editor-tool svg { width: 14px; height: 14px; fill: currentColor; }
.editor-tool.is-active {
  color: #92CEFA;
  background: rgba(146, 206, 250, 0.14);
  box-shadow: inset 0 0 0 1px rgba(146, 206, 250, 0.28);
}

.editor-workspace { padding: 0.65rem 0.7rem 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; }

.editor-preview {
  position: relative;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(146, 206, 250, 0.14);
  background:
    radial-gradient(ellipse 80% 90% at 50% 40%, rgba(146, 206, 250, 0.16), transparent 65%),
    linear-gradient(180deg, #1e2632 0%, #121820 100%);
}
.editor-preview__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 206, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 206, 250, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.7;
}
.editor-preview__glow {
  position: absolute;
  inset: auto 18% 12%;
  height: 42%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(146, 206, 250, 0.35), transparent 72%);
  filter: blur(8px);
}
.editor-preview__tag,
.editor-preview__res {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.editor-preview__tag { top: 8px; left: 10px; color: rgba(184, 224, 252, 0.7); }
.editor-preview__res { bottom: 8px; right: 10px; color: rgba(184, 224, 252, 0.35); }

.editor-timeline {
  position: relative;
  border-radius: 10px;
  padding: 0.45rem 0.45rem 0.5rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(146, 206, 250, 0.1);
}
.editor-timeline__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184, 224, 252, 0.45);
}
.editor-timeline__meta { letter-spacing: 0.08em; text-transform: none; color: rgba(184, 224, 252, 0.28); }
.editor-ruler {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.35rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.42rem;
  color: rgba(184, 224, 252, 0.22);
}
.editor-tracks { display: flex; flex-direction: column; gap: 4px; }
.editor-track {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  align-items: center;
  opacity: 0.72;
  transition: opacity 0.35s;
}
.editor-track.is-active { opacity: 1; }
.editor-track--dim { opacity: 0.45; }
.editor-track__id {
  font-family: var(--mono);
  font-size: 0.45rem;
  color: rgba(184, 224, 252, 0.35);
  text-align: center;
}
.editor-track__lane {
  position: relative;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(146, 206, 250, 0.06);
}
.editor-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: var(--x, 0);
  width: var(--w, 30%);
  border-radius: 4px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.42rem;
  color: rgba(14, 14, 14, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #b8e0fc, #92CEFA);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.editor-clip--ice { background: linear-gradient(180deg, #d4ecff, #92CEFA); }
.editor-clip--brand { background: linear-gradient(180deg, #c8e6fc, #6bb5f0); color: rgba(14, 14, 14, 0.9); }
.editor-clip--audio { background: linear-gradient(180deg, #8ec8f5, #4a9de0); color: rgba(255, 255, 255, 0.92); }
.editor-clip--muted { background: linear-gradient(180deg, #5a6a7a, #3d4a58); color: rgba(255, 255, 255, 0.65); }
.editor-clip--hot { background: linear-gradient(180deg, #ffc8e8, #e878b8); color: rgba(255, 255, 255, 0.92); }
.editor-clip--dim { opacity: 0.55; }
.editor-playhead {
  position: absolute;
  top: 1.6rem;
  bottom: 0.35rem;
  left: 15.6%;
  width: 2px;
  border-radius: 1px;
  background: #92CEFA;
  box-shadow: 0 0 10px rgba(146, 206, 250, 0.75);
  pointer-events: none;
  will-change: left;
}
.editor-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #92CEFA;
}

.editor-actions {
  display: flex;
  gap: 0.4rem;
}
.editor-actions span {
  font-family: var(--mono);
  font-size: 0.48rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  color: rgba(184, 224, 252, 0.45);
  background: rgba(146, 206, 250, 0.08);
  border: 1px solid rgba(146, 206, 250, 0.12);
}

.editor-audio {
  width: 214px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(210, 236, 255, 0.52) 45%,
    rgba(146, 206, 250, 0.38) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px rgba(14, 14, 14, 0.14);
  transform-style: preserve-3d;
}
.editor-audio__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.45rem;
  border-bottom: 1px solid rgba(14, 14, 14, 0.07);
}
.editor-audio__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.38);
  margin-bottom: 2px;
}
.editor-audio__head strong {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(14, 14, 14, 0.72);
}
.editor-audio__db {
  font-family: var(--mono);
  font-size: 0.48rem;
  color: rgba(14, 14, 14, 0.45);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.05);
}
.editor-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 3.25rem;
  padding: 0.55rem 0.75rem 0;
  cursor: crosshair;
}
.editor-wave span {
  flex: 1;
  border-radius: 2px;
  height: calc(var(--h) * 100%);
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.55), rgba(14, 14, 14, 0.18));
  transform-origin: bottom center;
  animation: editor-wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.editor-wave span:nth-child(1) { --i: 0; } .editor-wave span:nth-child(2) { --i: 1; }
.editor-wave span:nth-child(3) { --i: 2; } .editor-wave span:nth-child(4) { --i: 3; }
.editor-wave span:nth-child(5) { --i: 4; } .editor-wave span:nth-child(6) { --i: 5; }
.editor-wave span:nth-child(7) { --i: 6; } .editor-wave span:nth-child(8) { --i: 7; }
.editor-wave span:nth-child(9) { --i: 8; } .editor-wave span:nth-child(10) { --i: 9; }
.editor-wave span:nth-child(11) { --i: 10; } .editor-wave span:nth-child(12) { --i: 11; }
@keyframes editor-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.72); }
}
.editor-audio__scale {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.75rem 0;
  font-family: var(--mono);
  font-size: 0.45rem;
  color: rgba(14, 14, 14, 0.28);
}
.editor-audio__palette {
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.48rem;
  color: rgba(14, 14, 14, 0.42);
}
.editor-audio__palette div { display: flex; align-items: center; gap: 5px; }
.editor-audio__palette i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid rgba(14, 14, 14, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .editor-wave span { animation: none; }
}

/* ── Trust marquee ── */
.trust {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
  border-top: 1px solid rgba(14, 14, 14, 0.06);
}
.trust__head {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  padding: 0 1.5rem;
}
.trust-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-family: var(--mono);
  color: rgba(14, 14, 14, 0.48);
  line-height: 1.5;
}
.trust-label::before,
.trust-label::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 14, 14, 0.14));
}
.trust-label::after {
  background: linear-gradient(90deg, rgba(14, 14, 14, 0.14), transparent);
}
.marquee-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  inset: 0 auto;
  z-index: 1;
  width: 72px;
  pointer-events: none;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 15%, transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 15%, transparent);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 0.35rem 0;
  animation: marquee 52s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  flex: 0 0 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.95),
    0 8px 24px rgba(14, 14, 14, 0.05);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}
.marquee-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
  user-select: none;
  transition:
    opacity var(--hover-duration) var(--hover-ease),
    transform var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .marquee-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 1),
      0 10px 24px rgba(14, 14, 14, 0.08);
  }
  .marquee-item:hover img {
    opacity: 1;
    transform: scale(1.04);
  }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Section labels/titles ── */
.section-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(var(--primary-rgb),0.3); margin-bottom: 1rem; }
.section-label--dark { color: rgba(14,14,14,0.32); }
.section-label--muted { color: #666; }
.section-title { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 3rem; }
.section-title--sm { font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -0.04em; }
.section-title--gradient { background: linear-gradient(135deg, #fff, #888); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.title-highlight {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  vertical-align: bottom;
}
.title-highlight::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0.11em;
  height: 0.2em;
  border-radius: 2px;
  background: linear-gradient(
    92deg,
    rgba(146, 206, 250, 0.62) 0%,
    rgba(146, 206, 250, 0.48) 55%,
    rgba(184, 224, 252, 0.38) 100%
  );
  transform: rotate(-0.8deg) skewX(-1.5deg);
  box-shadow: 0 1px 0 rgba(146, 206, 250, 0.2);
  pointer-events: none;
}
.section-title .title-highlight::after,
.contact-title .title-highlight::after,
.portfolio-hero__title .title-highlight::after {
  height: 0.16em;
  bottom: 0.13em;
}
.title-highlight__text {
  position: relative;
  z-index: 1;
}
.title-highlight--on-light::after {
  background: linear-gradient(
    92deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.62) 55%,
    rgba(235, 248, 255, 0.5) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.section-title--dark { background: linear-gradient(135deg, #08090d, #555); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Pricing (statique, sans animation) ── */
.pricing-outer { background: var(--bg-dark); padding: 6rem 1.5rem 7rem; }
.pricing-sticky .container { padding: 0; max-width: 64rem; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-header[data-pack-header]:not(.is-ready) {
  opacity: 0;
  transform: translateY(28px);
}
.pricing-header.is-ready {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.pricing-header .section-title { font-size: clamp(2.2rem, 5.5vw, 5rem); letter-spacing: -0.035em; margin-bottom: 0; }
.pricing-lead {
  max-width: 32rem;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(var(--primary-rgb), 0.42);
  font-weight: 300;
}
.packs-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .packs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.packs-grid--duo { max-width: 58rem; margin: 0 auto; padding-top: 1rem; }
@media (min-width: 900px) {
  .packs-grid--duo {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  .packs-grid--duo .pack-card {
    height: 100%;
    padding-top: 2.15rem;
  }
}

.pack-card {
  position: relative;
  border-radius: 20px;
  background-color: #121212;
  background-image: linear-gradient(165deg, #1a1a1a 0%, #141414 48%, #111111 100%);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 1.65rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
  overflow: visible;
}
.pack-card[data-pack-card]:not(.is-ready) {
  opacity: 0;
  pointer-events: none;
}
.pack-card.is-ready {
  opacity: 1;
  transition:
    transform 0.35s var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease);
}
.pack-card.is-ready:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 16px 48px rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.16);
}
.pack-card--featured.is-ready:hover {
  border-color: rgba(146,206,250,0.5);
  box-shadow:
    0 0 0 1px rgba(146,206,250,0.12) inset,
    0 22px 56px rgba(0,0,0,0.34),
    0 0 40px rgba(146,206,250,0.08);
}
@media (prefers-reduced-motion: reduce) {
  .pricing-header[data-pack-header],
  .pack-card[data-pack-card] {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
}
.pack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(146,206,250,0.12), transparent 60%);
  opacity: 0.55;
}
.pack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.08;
  background-image: var(--ice-noise);
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
}
.pack-card--featured::after {
  opacity: 0.14;
}
.pack-card.is-ready:hover::before {
  opacity: 0.85;
}
.pack-card--featured {
  background-color: #151a20;
  background-image: linear-gradient(165deg, #1e2832 0%, #171d24 42%, #12161c 100%);
  border-color: rgba(146,206,250,0.35);
  box-shadow:
    0 0 0 1px rgba(146,206,250,0.08) inset,
    0 20px 50px rgba(0,0,0,0.28);
}
.pack-card--featured::before {
  background: radial-gradient(ellipse 90% 55% at 50% -15%, rgba(146,206,250,0.18), transparent 62%);
  opacity: 0.7;
}
.pack-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  flex: 1;
}
.pack-card__head { display: flex; flex-direction: column; gap: 0.55rem; }
.pack-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #fff;
  color: #08090d;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}
.pack-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.pack-card--featured .pack-name { color: rgba(146,206,250,0.9); }
.pack-tagline {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.45;
  max-width: 22ch;
}
.pack-duration {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.62);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  line-height: 1.4;
}
.pack-card--featured .pack-duration {
  color: rgba(146,206,250,0.95);
  border-color: rgba(146,206,250,0.28);
  background: rgba(146,206,250,0.08);
}
.pack-card__price-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pack-price {
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}
.pack-price--big { font-size: 3.25rem; }
.pack-price__currency {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-left: 0.1rem;
  vertical-align: super;
  letter-spacing: 0;
}
.pack-price__hint {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}
.pack-card__section { display: flex; flex-direction: column; gap: 0.65rem; }
.pack-card__section--extras {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pack-section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
  margin: 0;
}
.pack-features {
  margin: 0;
  padding: 0.65rem 0.75rem;
  list-style: none;
  border-radius: 12px;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.06);
}
.pack-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
}
.pack-features li + li {
  border-top: none;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 12%, rgba(255, 255, 255, 0.05) 88%, transparent 100%);
  background-size: 100% 1px;
  background-position: top center;
  background-repeat: no-repeat;
}
.pack-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(146,206,250,0.75);
  box-shadow: 0 0 8px rgba(146,206,250,0.45);
}
.pack-features--bright li { color: rgba(255,255,255,0.92); }
.pack-supplements {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pack-supplements li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.62);
}
.pack-supplements li:last-child { padding-bottom: 0; }
.pack-supplements li span { flex: 1; min-width: 0; }
.pack-supplements li em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #92CEFA;
  white-space: nowrap;
}
.pack-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(146,206,250,0.28);
  background-color: #161b22;
  background-image: linear-gradient(180deg, #1a2129 0%, #141a21 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}
.pack-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image: var(--ice-noise);
  background-size: 120px 120px;
  mix-blend-mode: overlay;
}
.pack-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 1.1s var(--hover-ease), opacity var(--hover-duration) var(--hover-ease);
  opacity: 0;
}
.pack-btn:hover::after { left: 150%; opacity: 1; }
.pack-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(146,206,250,0.42);
  background-color: #1a2330;
  background-image: linear-gradient(180deg, #1f2a38 0%, #171f29 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 24px rgba(0,0,0,0.2);
}
.pack-btn:active { transform: translateY(0); transition-duration: 0.35s; }
.pack-card--featured .pack-btn {
  color: #0b0b0b !important;
  border: 1px solid rgba(186, 224, 252, 0.65) !important;
  border-top-color: rgba(210, 236, 255, 0.85) !important;
  background: linear-gradient(
    180deg,
    rgba(186, 224, 252, 0.96) 0%,
    rgba(146, 206, 250, 0.92) 48%,
    rgba(118, 188, 245, 0.88) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow:
    inset 0 1px 1px rgba(210, 236, 255, 0.55),
    inset 0 -1px 1px rgba(90, 160, 220, 0.22),
    0 8px 26px rgba(0, 0, 0, 0.2) !important;
}
.pack-card--featured .pack-btn::before {
  opacity: 0.1;
  mix-blend-mode: soft-light;
}
.pack-card--featured .pack-btn:hover {
  border-color: rgba(200, 232, 255, 0.78) !important;
  background: linear-gradient(
    180deg,
    rgba(200, 232, 255, 1) 0%,
    rgba(146, 206, 250, 0.98) 48%,
    rgba(107, 181, 240, 0.92) 100%
  ) !important;
  box-shadow:
    inset 0 1px 1px rgba(220, 242, 255, 0.65),
    inset 0 -1px 1px rgba(90, 160, 220, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.22) !important;
}
.pack-note { margin-top: 20px; font-size: 0.75rem; color: rgba(var(--primary-rgb),0.35); text-align: center; line-height: 1.6; letter-spacing: normal; }
.pack-note a { text-decoration: underline; color: rgba(var(--primary-rgb),0.55); }

/* ── Dark sections ── */
.section-dark { background: var(--bg-dark); padding: 6rem 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-dark--border { border-top: 1px solid rgba(var(--primary-rgb),0.08); }
.section-intro {
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 300;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}
.section-intro--dark { color: rgba(var(--primary-rgb), 0.42); }

/* ── Tips créateurs ── */
.section-tips {
  padding: 5rem 0 6rem;
  background: var(--bg);
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
.tips-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.tips-head__lead {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(14, 14, 14, 0.5);
  font-weight: 300;
}
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tips-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.tip-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.85),
    0 18px 48px rgba(14, 14, 14, 0.07);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
}
.tip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  pointer-events: none;
  z-index: 1;
}
.tip-card > :not(.service-glow) {
  position: relative;
  z-index: 2;
}
@media (hover: hover) {
  .tip-card:hover {
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.92),
      0 24px 56px rgba(14, 14, 14, 0.1);
  }
  .tip-card:hover .service-glow { opacity: 1; }
}
.tip-card__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.38);
}
.tip-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #08090d;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}
.tip-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(14, 14, 14, 0.52);
  font-weight: 300;
}

/* ── Process ── */
.section-process {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  background: #0d0d0d;
  padding: 5rem 1.5rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}
.section-process::before,
.section-process::after {
  display: none;
}
.process-light-sweep {
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.process-light-sweep__beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(26rem, 42vw);
  height: 100%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(146, 206, 250, 0.018) 36%,
    rgba(146, 206, 250, 0.045) 50%,
    rgba(146, 206, 250, 0.018) 64%,
    transparent 100%
  );
  filter: blur(18px);
  opacity: 0;
  will-change: transform, opacity;
  animation: process-light-sweep 18s ease-in-out infinite;
}
@keyframes process-light-sweep {
  0% {
    transform: translateX(-48vw);
    opacity: 0;
  }
  6% { opacity: 0.55; }
  94% { opacity: 0.55; }
  100% {
    transform: translateX(148vw);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-light-sweep__beam {
    animation: none;
    opacity: 0;
  }
}
.section-process .container { position: relative; z-index: 1; padding: 0; }
.process-header { margin-bottom: 3rem; }
.process-header .section-label { font-size: 11px; letter-spacing: 0.3em; margin-bottom: 0.75rem; }
.process-header .section-title { margin-bottom: 0; }
.process-header .title-highlight::after {
  box-shadow: none;
}
.process-track {
  position: relative;
}
.process-progress {
  display: none;
}
@media (min-width: 768px) {
  .process-progress {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
    --progress: 0%;
  }
  .process-progress__track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
  }
  .process-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: rgba(146, 206, 250, 0.22);
    transition: width 0.5s var(--ease);
  }
  .process-progress__fill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 3px;
    height: 3px;
    margin: -1.5px -1.5px 0 0;
    border-radius: 50%;
    background: rgba(146, 206, 250, 0.5);
    box-shadow: 0 0 6px rgba(146, 206, 250, 0.28);
    opacity: 0.85;
  }
}
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.process-step {
  position: relative;
  padding: 2rem 1.5rem 1.85rem;
  min-width: 0;
  background: #121212;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--hover-duration) var(--hover-ease);
}
.process-step + .process-step {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .process-step + .process-step {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (hover: hover) {
  .process-step:hover,
  .process-step.is-active {
    background: #181818;
  }
  .process-step:hover .process-num,
  .process-step.is-active .process-num {
    color: rgba(146, 206, 250, 0.28);
  }
  .process-step:hover .process-step__icon,
  .process-step.is-active .process-step__icon {
    color: rgba(146, 206, 250, 0.85);
    border-color: rgba(146, 206, 250, 0.35);
  }
  .process-step:hover .process-step__rule,
  .process-step.is-active .process-step__rule {
    background: linear-gradient(90deg, rgba(146, 206, 250, 0.65), rgba(146, 206, 250, 0.12));
  }
  .process-step:hover .process-desc,
  .process-step.is-active .process-desc {
    color: rgba(255, 255, 255, 0.62);
  }
}
.process-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition:
    color var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease);
}
.process-step__icon--cycle {
  position: relative;
}
.process-step__icon--cycle .process-icon-cycle__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0;
  filter: none;
  transform: translate(-50%, calc(-50% + 4px)) scale(0.9);
  animation: process-icon-cycle 8s ease-in-out infinite;
}
@media (hover: hover) {
  .process-step:hover .process-step__icon--cycle,
  .process-step.is-active .process-step__icon--cycle {
    color: inherit;
  }
}
.process-step__icon--cycle .process-icon-cycle__item:nth-child(1) { animation-delay: 0s; }
.process-step__icon--cycle .process-icon-cycle__item:nth-child(2) { animation-delay: -6s; }
.process-step__icon--cycle .process-icon-cycle__item:nth-child(3) { animation-delay: -4s; }
.process-step__icon--cycle .process-icon-cycle__item:nth-child(4) { animation-delay: -2s; }
@keyframes process-icon-cycle {
  0%, 25%, 100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 4px)) scale(0.9);
  }
  5%, 20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-step__icon--cycle .process-icon-cycle__item {
    animation: none;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  .process-step__icon--cycle .process-icon-cycle__item:first-child {
    opacity: 1;
  }
}
.process-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  transition: color var(--hover-duration) var(--hover-ease);
}
.process-step__rule {
  width: 1.75rem;
  height: 2px;
  margin-bottom: 0.85rem;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  transition: background var(--hover-duration) var(--hover-ease);
}
.process-step h3 {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.process-desc {
  font-size: 0.84rem;
  color: #888;
  line-height: 1.6;
  font-weight: 300;
  transition: color var(--hover-duration) var(--hover-ease);
}
.process-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: center;
}
.process-cta__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
}
.process-cta__btn {
  min-width: 220px;
}
@media (prefers-reduced-motion: reduce) {
  .reveal--process-step {
    filter: none;
    transform: translateY(18px);
  }
  .process-progress__fill {
    transition: none;
  }
}

/* ── Testimonials ── */
.testimonials-wrap { position: relative; overflow: hidden; padding: 0.5rem 0 1rem; }
.testimonials-fade { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.testimonials-fade--left { left: 0; background: linear-gradient(to right, var(--bg-dark) 30%, transparent); }
.testimonials-fade--right { right: 0; background: linear-gradient(to left, var(--bg-dark) 30%, transparent); }
.scroll-testimonials { display: flex; gap: 1.25rem; width: max-content; padding: 0 1.5rem; transform: translateZ(0); will-change: transform; }
.testimonial-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 300px;
  flex-shrink: 0;
  border-radius: 1.2rem;
  padding: 1.35rem;
  background-color: #121212;
  background-image: linear-gradient(165deg, #1a1a1a 0%, #141414 48%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .testimonial-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  }
  .testimonial-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }
  .testimonial-card:hover > p {
    border-color: rgba(255, 255, 255, 0.1);
    background: #171717;
  }
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.45;
  transition: opacity var(--hover-duration) var(--hover-ease), background var(--hover-duration) var(--hover-ease);
}
.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.07;
  background-image: var(--ice-noise);
  background-size: 110px 110px;
}
.testimonial-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.testimonial-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.testimonial-project {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(var(--primary-rgb), 0.72);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.testimonial-card > p {
  position: relative;
  z-index: 1;
  font-size: 0.81rem;
  color: rgba(var(--primary-rgb), 0.72);
  line-height: 1.6;
  font-weight: 300;
  background: #151a21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
  flex: 1;
  transition:
    background var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}
.testimonial-meta {
  position: relative;
  z-index: 1;
}
.testimonial-meta strong { display: block; font-size: 0.84rem; color: #92CEFA; }
.testimonial-meta span { font-size: 0.72rem; color: rgba(var(--primary-rgb), 0.35); }

/* ── Services ── */
.section-light { background: var(--bg); padding: 6rem 0; }
.section-services {
  padding: 6rem 0 8rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
.services-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .services-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: 3.5rem;
  }
}
.section-title--services { margin-bottom: 0; }
.services-head__lead {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(14, 14, 14, 0.52);
  font-weight: 300;
}
@media (min-width: 900px) {
  .services-head__lead { justify-self: end; text-align: right; }
}

.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .services-bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.125rem;
  }
  .service-card--montage { grid-column: 1 / 8; }
  .service-card--branding { grid-column: 8 / 13; }
  .service-card--export { grid-column: 1 / 5; }
  .service-card--motion { grid-column: 5 / 13; }
}

.service-card {
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.85),
    0 18px 48px rgba(14, 14, 14, 0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100%;
  transition: transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.service-card:hover {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.92),
    0 24px 56px rgba(14, 14, 14, 0.1);
}
@media (min-width: 900px) {
  .service-card { padding: 1.75rem; }
  .service-card--featured { padding: 2rem; }
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  pointer-events: none;
}
.service-index {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(14, 14, 14, 0.14);
  pointer-events: none;
  z-index: 3;
}
.service-card__body {
  display: grid;
  gap: 1.25rem;
  flex: 1;
}
@media (min-width: 700px) {
  .service-card--featured .service-card__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 1.75rem;
  }
}
.service-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.service-card__visual {
  position: relative;
  z-index: 2;
  transform: translateZ(32px);
  transform-style: preserve-3d;
}
.service-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(220px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), rgba(184, 224, 252, 0.12) 45%, transparent 72%);
}
.service-card:hover .service-glow { opacity: 1; }
.service-mockup {
  border-radius: 14px;
  padding: 10px 12px;
  overflow: hidden;
}
.service-card:not(.service-card--featured) .service-mockup { margin-bottom: 0; }
.service-mockup--dark {
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: inset 0 1px rgba(var(--primary-rgb), 0.1), 0 12px 32px rgba(0, 0, 0, 0.18);
}
.service-mockup--light {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 12px 28px rgba(14, 14, 14, 0.08);
  padding: 10px 14px;
}
.svc-layer { display: flex; align-items: center; gap: 8px; padding: 4px 4px; margin: 0 -4px; border-radius: 6px; font-family: var(--mono); font-size: 9px; color: rgba(var(--primary-rgb),0.65); transition: background 0.5s, color 0.5s; }
.svc-layer--dim { color: rgba(var(--primary-rgb),0.25); }
.svc-layer--active { background: rgba(var(--primary-rgb),0.06); color: rgba(var(--primary-rgb),0.72); }
.svc-layer--active .svc-dot { background: rgba(var(--primary-rgb),0.75); }
.svc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--primary-rgb),0.5); flex-shrink: 0; transition: background 0.5s; }
.svc-dot--dim { background: rgba(var(--primary-rgb),0.18); }
.svc-block { width: 16px; height: 14px; border-radius: 3px; background: rgba(var(--primary-rgb),0.12); flex-shrink: 0; }
.svc-name { flex: 1; }
.svc-pct { color: rgba(var(--primary-rgb),0.2); }
.svc-curves-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--mono); font-size: 8px; color: rgba(14,14,14,0.35); }
.svc-rvb { display: flex; gap: 4px; }
.svc-rvb span { padding: 2px 4px; border-radius: 3px; background: rgba(14,14,14,0.07); font-size: 7px; color: rgba(14,14,14,0.35); transition: all 0.4s; }
.svc-bars { display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.svc-bars span {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  transform-origin: bottom center;
  transform: scaleY(var(--sy, 0));
  background: hsl(210, 46%, 44%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.55s ease;
  backface-visibility: hidden;
  will-change: transform;
}
.svc-export { transition: background 0.5s, border-color 0.5s; }
.svc-export--active { background: rgba(14,14,14,0.08) !important; border-color: rgba(14,14,14,0.12) !important; }
.svc-export--active .svc-export-dot { background: rgba(14,14,14,0.35); }
.svc-export-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(14,14,14,0.15); flex-shrink: 0; transition: background 0.5s; }
.svc-export strong { font-size: 9px; color: rgba(14,14,14,0.7); }
.svc-export span { font-size: 8px; color: rgba(14,14,14,0.3); }
.svc-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 7px; color: rgba(14,14,14,0.22); }
.svc-export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.svc-export { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(14,14,14,0.04); border: 1px solid rgba(14,14,14,0.06); font-family: var(--mono); }
.svc-effect { display: flex; align-items: center; gap: 8px; padding: 6px 4px; margin: 0 -4px; border-radius: 6px; font-family: var(--mono); font-size: 9px; color: rgba(var(--primary-rgb),0.45); border-bottom: 1px solid rgba(var(--primary-rgb),0.06); transition: color 0.5s, background 0.5s; }
.svc-effect--on { color: rgba(var(--primary-rgb),0.75); background: rgba(var(--primary-rgb),0.06); }
.svc-effect em { margin-left: auto; font-style: normal; font-size: 8px; color: rgba(var(--primary-rgb),0.25); }
.service-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 0.65rem; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.28em; color: rgba(14, 14, 14, 0.42); }
.service-card h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; color: #08090d; margin-bottom: 0.55rem; line-height: 1.2; }
.service-card--featured h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
.service-card p { font-size: 0.875rem; line-height: 1.6; color: rgba(14, 14, 14, 0.55); font-weight: 300; }
.service-card--branding .service-card__visual,
.service-card--export .service-card__visual { order: -1; }

/* ── FAQ ── */
.section-faq {
  padding: 6rem 0 7rem;
  background: var(--bg);
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}
.faq-head {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-title {
  margin-bottom: 1rem;
}
.faq-lead {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(14, 14, 14, 0.52);
  font-weight: 300;
}
.faq-list {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.faq-item + .faq-item {
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}
.faq-item.is-open {
  background: rgba(255, 255, 255, 0.22);
}
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
  padding: 1.1rem 1.35rem;
  text-align: left;
  color: rgba(14, 14, 14, 0.62);
  transition: color var(--hover-duration) var(--hover-ease);
}
.faq-item.is-open .faq-item__trigger {
  color: var(--text);
}
@media (hover: hover) {
  .faq-item__trigger:hover {
    color: var(--text);
  }
}
.faq-item__question {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.94rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.faq-item__icon {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(14, 14, 14, 0.12);
  background: rgba(255, 255, 255, 0.4);
  transition:
    transform 0.35s var(--ease),
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  margin: -0.75px 0 0 -4.5px;
  border-radius: 1px;
  background: rgba(14, 14, 14, 0.5);
  transition: transform 0.35s var(--ease);
}
.faq-item__icon::after {
  transform: rotate(90deg);
}
.faq-item.is-open .faq-item__icon {
  border-color: rgba(var(--primary-rgb), 0.32);
  background: rgba(var(--primary-rgb), 0.1);
  transform: rotate(45deg);
}
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}
.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}
.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item__panel-inner > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 3.25rem 0 1.35rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(14, 14, 14, 0.5);
  font-weight: 300;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.32s var(--ease) 0.04s,
    transform 0.32s var(--ease) 0.04s,
    padding 0.42s var(--ease);
}
.faq-item.is-open .faq-item__panel-inner > p {
  opacity: 1;
  transform: none;
  padding-bottom: 0;
}
.faq-item__panel-inner > p + p {
  padding-top: 0;
  margin-top: -0.15rem;
}
.faq-item.is-open .faq-item__panel-inner > p:last-child {
  padding-bottom: 1.25rem;
}
.faq-item__panel-inner code {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.06);
}
.faq-foot {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.faq-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.72);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease);
}
.faq-discord__icon {
  display: flex;
  color: rgba(14, 14, 14, 0.55);
}
@media (hover: hover) {
  .faq-discord:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 12px 32px rgba(0, 0, 0, 0.08);
  }
}

/* ── Contact card ── */
.section-contact { padding: 5rem 0 6rem; background: var(--bg); }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
}
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -22%;
  z-index: 0;
  width: 18%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: contact-shimmer 6.5s ease-in-out infinite;
}
@keyframes contact-shimmer {
  0% { left: -22%; }
  100% { left: 104%; }
}
.contact-card__shine,
.contact-card__inner { position: relative; z-index: 1; }
.contact-card__shine { display: none; }
.contact-card__inner { display: flex; flex-direction: column; gap: 2.5rem; padding: 2.5rem; }
@media (min-width: 1024px) { .contact-card__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.5rem; gap: 2.5rem; } }
.contact-text { flex: 1; max-width: 32rem; }
.contact-title { font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1rem; }
.contact-title .title-highlight::after {
  height: 0.15em;
  bottom: 0.13em;
  left: 0;
  right: 0;
  transform: rotate(-0.5deg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}
.contact-title--bold { font-weight: 700; background: linear-gradient(var(--text) 25%, rgba(14,14,14,0.38) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-title--light { font-weight: 300; background: linear-gradient(rgba(14,14,14,0.42), rgba(14,14,14,0.18)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-sub { font-size: 13px; color: #777; margin-bottom: 1rem; }
.contact-desc { font-size: 0.875rem; font-weight: 300; line-height: 1.6; opacity: 0.45; max-width: 21rem; }
.contact-actions { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; min-width: 240px; }
@media (min-width: 1024px) { .contact-actions { width: auto; } }

/* ── Footer ── */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.75rem;
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .site-footer__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer__logo {
  display: inline-flex;
  text-decoration: none;
}
.site-footer__logo img {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .site-footer__logo:hover img { opacity: 0.95; }
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.site-footer__nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .site-footer__nav a:hover { color: rgba(255, 255, 255, 0.85); }
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  text-align: center;
}
.site-footer__copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}
.site-footer__legal {
  font-size: 0.68rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.22);
  max-width: 32rem;
  text-align: center;
  margin-inline: auto;
}
.site-footer__icons-credit {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.18);
}
.site-footer__icons-credit a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .site-footer__icons-credit a:hover { color: rgba(255, 255, 255, 0.4); }
}

/* ── FAB portfolio ── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  padding: 14px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}
body:has(.fab) .fab {
  bottom: 4.35rem;
}
.admin-lock {
  position: fixed;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(14, 14, 14, 0.32);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(14, 14, 14, 0.07);
  text-decoration: none;
  opacity: 0.42;
  transition:
    opacity var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .admin-lock:hover {
    opacity: 0.88;
    color: rgba(14, 14, 14, 0.58);
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(14, 14, 14, 0.12);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .editor-float--lg, .editor-float--sm,
  .merit-word { animation: none !important; }
  .ice-fx__glow,
  .ice-fx__shard,
  .ice-fx__flakes,
  .contact-card::after { animation: none !important; }
  .ice-fx__flakes { display: none; }
}

/* Pause les animations décoratives hors écran */
.anim-paused .marquee-track,
.anim-paused .editor-float--lg,
.anim-paused .editor-float--sm,
.anim-paused .merit-word,
.anim-paused .ice-fx__flakes { animation-play-state: paused !important; }

/* ── Portfolio ── */
.page-portfolio { background: var(--bg); }
.portfolio-hero {
  padding: 7.5rem 1.5rem 0;
}
.portfolio-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.portfolio-hero__title-bold {
  font-weight: 700;
  background: linear-gradient(180deg, var(--text) 20%, rgba(14,14,14,0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portfolio-hero__title-light {
  font-weight: 300;
  color: rgba(14,14,14,0.38);
  -webkit-text-fill-color: rgba(14,14,14,0.38);
}
.portfolio-hero__desc {
  max-width: 32rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(14,14,14,0.5);
}
.portfolio-hero__tip {
  max-width: 32rem;
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(14,14,14,0.38);
}
.portfolio-search-wrap {
  padding: 2.5rem 0;
}
.portfolio-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(14,14,14,0.12);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  transition:
    border-color var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease);
}
.portfolio-search:focus-within {
  border-color: rgba(14,14,14,0.22);
  background: rgba(255,255,255,0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 4px 18px rgba(14,14,14,0.06);
}
.portfolio-search__icon {
  flex-shrink: 0;
  color: rgba(14,14,14,0.38);
}
.portfolio-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
}
.portfolio-search__input::placeholder { color: rgba(14,14,14,0.38); }
.portfolio-search__input::-webkit-search-cancel-button { cursor: pointer; }
.portfolio-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(14,14,14,0.45);
  border-radius: 16px;
  border: 1px dashed rgba(14,14,14,0.14);
  background: rgba(255,255,255,0.2);
}
.portfolio-body { padding-bottom: 4rem; }
.portfolio-servers { display: flex; flex-direction: column; gap: 3.5rem; }
.portfolio-server + .portfolio-server {
  padding-top: 0.5rem;
  background-image: linear-gradient(90deg, transparent 0%, rgba(14, 14, 14, 0.07) 50%, transparent 100%);
  background-size: min(100%, 48rem) 1px;
  background-position: top center;
  background-repeat: no-repeat;
}
.portfolio-server__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  background-image: linear-gradient(90deg, transparent 0%, rgba(14, 14, 14, 0.08) 18%, rgba(14, 14, 14, 0.08) 82%, transparent 100%);
  background-size: 100% 1px;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.portfolio-server__logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  padding: 0.45rem;
  border: 1px solid rgba(14,14,14,0.08);
}
.portfolio-server__logo--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(14,14,14,0.65);
}
.portfolio-server__tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(14,14,14,0.38);
  margin-bottom: 0.25rem;
}
.portfolio-server__name {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.portfolio-server__count {
  font-size: 0.78rem;
  color: rgba(14,14,14,0.42);
  margin-top: 0.25rem;
}
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.project-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  flex: 0 0 calc(50% - 0.425rem);
  max-width: calc(50% - 0.425rem);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(14,14,14,0.1);
  box-shadow: inset 0 1px rgba(255,255,255,0.35);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.07;
  background-image: var(--ice-noise);
  background-size: 100px 100px;
}
@media (min-width: 600px) {
  .project-card {
    flex: 0 0 calc(33.333% - 0.57rem);
    max-width: calc(33.333% - 0.57rem);
  }
}
@media (min-width: 768px) {
  .project-card {
    flex: 0 0 calc(25% - 0.64rem);
    max-width: calc(25% - 0.64rem);
  }
}
@media (min-width: 1100px) {
  .portfolio-grid { gap: 1rem; }
  .project-card {
    flex: 0 0 calc(16.666% - 0.84rem);
    max-width: calc(16.666% - 0.84rem);
  }
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 224, 252, 0.55);
  box-shadow: inset 0 1px rgba(255,255,255,0.5), 0 12px 32px rgba(14,14,14,0.1);
}
.project-card__trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.project-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0d0d0d;
  overflow: hidden;
}
.project-card__preview,
.project-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-card__preview {
  display: block;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease);
}
.project-card__poster {
  opacity: 0.72;
  transition: opacity var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease);
}
.project-card__poster--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(146,206,250,0.55);
  background: linear-gradient(145deg, #141820, #0d0d0d);
}
.project-card:hover .project-card__preview,
.project-card:hover .project-card__poster { opacity: 0.88; transform: scale(1.03); }
.project-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.project-card__play svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(14,14,14,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: transform var(--hover-duration) var(--hover-ease), background var(--hover-duration) var(--hover-ease);
}
.project-card:hover .project-card__play svg {
  transform: scale(1.06);
  background: rgba(14,14,14,0.72);
}
.project-card__likes {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  background: rgba(14, 14, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.project-card__likes[hidden] { display: none; }
.project-card__body { padding: 0.65rem 0.55rem 0.7rem; }
.project-card__type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(14,14,14,0.42);
  margin-bottom: 0.3rem;
}
.project-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.portfolio-cta { padding: 0 1.5rem 6rem; }
.portfolio-cta__card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(14,14,14,0.1);
}
@media (min-width: 768px) {
  .portfolio-cta__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
}
.portfolio-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.35rem;
}
.portfolio-cta__desc {
  margin-top: 0.5rem;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(14, 14, 14, 0.48);
  font-weight: 300;
}
body.modal-open { overflow: hidden; }
.project-modal[hidden] { display: none; }
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.84);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}
.project-modal.is-visible .project-modal__backdrop,
.project-modal.is-revealed .project-modal__backdrop {
  opacity: 1;
}
.project-modal.is-closing .project-modal__backdrop {
  opacity: 0;
}
.project-modal__dialog {
  position: relative;
  width: min(300px, 86vw);
  max-height: min(90vh, 760px);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.42s var(--ease),
    transform 0.48s var(--ease),
    width 0.52s var(--ease);
  will-change: transform, opacity, width;
}
.project-modal.is-visible .project-modal__dialog {
  opacity: 1;
  transform: scale(1);
}
.project-modal.is-revealed .project-modal__dialog {
  width: min(920px, 100%);
}
.project-modal.is-closing .project-modal__dialog {
  opacity: 0;
  transform: scale(0.94);
  width: min(300px, 86vw);
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease),
    width 0.38s var(--ease);
}
.project-modal__layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.project-modal:not(.is-revealed) .project-modal__aside {
  display: none !important;
}
.project-modal__aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: linear-gradient(165deg, #161a20 0%, #111418 55%, #0d0f12 100%);
  overflow: hidden;
}
@media (min-width: 768px) {
  .project-modal__layout {
    grid-template-columns: min(300px, 86vw) 0fr;
    grid-template-rows: minmax(0, auto);
    transition: grid-template-columns 0.52s var(--ease);
  }
  .project-modal.is-revealed:not(.is-closing) .project-modal__layout {
    grid-template-columns: min(300px, 86vw) minmax(0, 1fr);
  }
  .project-modal.is-closing .project-modal__layout {
    grid-template-columns: min(300px, 86vw) 0fr;
  }
  .project-modal__player-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: start;
  }
  .project-modal__aside {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  .project-modal:not(.is-revealed) .project-modal__aside {
    border-left: none;
  }
}
@media (max-width: 767px) {
  .project-modal.is-revealed:not(.is-closing) .project-modal__aside {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.project-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  line-height: 0;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--hover-duration) var(--hover-ease);
}
.project-modal__close svg { display: block; }
.project-modal__close:hover { background: rgba(0,0,0,0.75); }
.project-modal__player-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(78vh, 680px);
  margin: 0 auto;
  background: #000;
  overflow: hidden;
}
@media (min-width: 768px) {
  .project-modal.is-revealed .project-modal__player-wrap {
    max-height: min(90vh, 760px);
  }
}
.project-modal__player-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.35) 45%, transparent 100%);
  opacity: 0.85;
  transition: opacity 0.35s var(--ease);
}
.project-modal__player-wrap.is-playing.is-controls-visible::after,
.project-modal__player-wrap.is-paused::after {
  opacity: 1;
}
.project-modal__player-wrap:not(.is-controls-visible):not(.is-paused)::after {
  opacity: 0;
}
.project-modal__poster,
.project-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.project-modal__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.project-modal__poster.is-active {
  opacity: 1;
}
.project-modal__video {
  position: relative;
  z-index: 1;
}

/* ── Custom video controls (Ice theme) ── */
.video-controls__center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(146, 206, 250, 0.28), rgba(107, 181, 240, 0.14));
  border: 1px solid rgba(184, 224, 252, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(146, 206, 250, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    background 0.35s var(--ease);
}
.video-controls__center-play[hidden] { display: none; }
.video-controls__center-play svg {
  display: block;
  margin-left: 2px;
}
@media (hover: hover) {
  .video-controls__center-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: linear-gradient(145deg, rgba(146, 206, 250, 0.42), rgba(107, 181, 240, 0.22));
  }
}
.video-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.8rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  pointer-events: auto;
}
.project-modal__player-wrap.is-playing:not(.is-controls-visible):not(.is-paused) .video-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.video-controls__progress-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.video-controls__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: visible;
  pointer-events: none;
}
.video-controls__buffer {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.35s linear;
}
.video-controls__played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6BB5F0, #92CEFA, #B8E0FC);
  box-shadow: 0 0 14px rgba(146, 206, 250, 0.65);
  overflow: visible;
  will-change: width;
}
.video-controls__thumb {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #92CEFA;
  box-shadow: 0 0 12px rgba(146, 206, 250, 0.75);
  transform: translate(50%, -50%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.video-controls__progress-wrap:is(:hover, :focus-within, .is-seeking) .video-controls__thumb,
.project-modal__player-wrap.is-playing .video-controls__thumb {
  opacity: 1;
}
.video-controls__progress-wrap.is-seeking .video-controls__thumb {
  transform: translate(50%, -50%) scale(1.12);
  box-shadow: 0 0 18px rgba(146, 206, 250, 0.95);
}
.video-controls__seek {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.video-controls__seek::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 999px;
}
.video-controls__seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
}
.video-controls__seek:active::-webkit-slider-thumb,
.video-controls__seek:focus-visible::-webkit-slider-thumb {
  transform: none;
  box-shadow: none;
}
.video-controls__seek::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
  border-radius: 999px;
}
.video-controls__seek::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.video-controls__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(18, 22, 28, 0.72), rgba(12, 14, 18, 0.58));
  border: 1px solid rgba(184, 224, 252, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.28);
}
.video-controls__btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  line-height: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
@media (hover: hover) {
  .video-controls__btn:hover {
    color: #fff;
    background: rgba(146, 206, 250, 0.14);
    transform: translateY(-1px);
  }
}
.video-controls__btn:focus-visible {
  outline: 2px solid rgba(146, 206, 250, 0.65);
  outline-offset: 2px;
}
.video-controls__icon {
  display: block;
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.video-controls__btn--play:not(.is-playing) .video-controls__icon--play {
  transform: translateX(1px);
}
.video-controls__icon--pause,
.video-controls__icon--muted,
.video-controls__icon--compress { display: none; }
.video-controls__btn--play.is-playing .video-controls__icon--play { display: none; }
.video-controls__btn--play.is-playing .video-controls__icon--pause { display: block; }
.video-controls__btn--mute.is-muted .video-controls__icon--volume { display: none; }
.video-controls__btn--mute.is-muted .video-controls__icon--muted { display: block; }
.video-controls__btn--fullscreen.is-fullscreen .video-controls__icon--expand { display: none; }
.video-controls__btn--fullscreen.is-fullscreen .video-controls__icon--compress { display: block; }
.video-controls__time {
  display: inline-flex;
  align-items: center;
  height: 34px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  user-select: none;
}
.video-controls__sep {
  margin: 0 0.15rem;
  color: rgba(146, 206, 250, 0.45);
}
.video-controls__spacer { flex: 1; min-width: 0; }
.video-controls__volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 34px;
}
.video-controls__volume-track {
  position: relative;
  width: 0;
  height: 20px;
  opacity: 0;
  overflow: visible;
  transition:
    width 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
@media (min-width: 640px) {
  .video-controls__volume-wrap:hover .video-controls__volume-track,
  .video-controls__volume-wrap:focus-within .video-controls__volume-track {
    width: 84px;
    opacity: 1;
  }
}
.video-controls__volume-rail {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: visible;
  pointer-events: none;
}
.video-controls__volume-filled {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6BB5F0, #92CEFA, #B8E0FC);
  box-shadow: 0 0 10px rgba(146, 206, 250, 0.55);
  overflow: visible;
}
.video-controls__volume-thumb {
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #92CEFA;
  box-shadow: 0 0 10px rgba(146, 206, 250, 0.7);
  transform: translate(50%, -50%);
}
.video-controls__volume {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.video-controls__volume::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 999px;
}
.video-controls__volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
}
.video-controls__volume::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
  border-radius: 999px;
}
.video-controls__volume::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.project-modal__player-wrap:fullscreen,
.project-modal__player-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  background: #000;
}
.project-modal__player-wrap:fullscreen .project-modal__video,
.project-modal__player-wrap:-webkit-full-screen .project-modal__video {
  object-fit: contain;
}
.project-modal__aside-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.project-modal__reveal-item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(7px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.78s var(--ease),
    filter 0.62s var(--ease);
}
.project-modal.is-content-visible .project-modal__reveal-item {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(0.05s + var(--i, 0) * 0.12s);
}
.project-modal.is-revealed:not(.is-content-visible) .project-modal__aside-content {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
.project-modal.is-content-visible .project-modal__aside-content {
  position: static;
  width: auto;
  height: 100%;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}
.project-modal.is-closing .project-modal__aside-content {
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  transition-delay: 0s;
}
.project-modal.is-closing .project-modal__reveal-item,
.project-modal.is-closing.is-content-visible .project-modal__reveal-item {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition-duration: 0.22s;
  transition-delay: calc(var(--i, 0) * 0.035s) !important;
}
@media (max-width: 767px) {
  .project-modal__reveal-item {
    transform: translateY(14px);
  }
}
@media (min-width: 768px) {
  .project-modal.is-content-visible .project-modal__aside-content {
    padding: 1.75rem 1.65rem;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .project-modal.is-content-visible .project-modal__aside-content {
    padding: 1.35rem 1.5rem 1.5rem;
  }
}
.project-modal__head { display: flex; flex-direction: column; gap: 0.35rem; }
.project-modal__meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(146, 206, 250, 0.55);
}
.project-modal__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.project-modal__note {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
}
.project-modal__note[hidden] { display: none; }
.project-likes--idle { display: none; }
.project-likes__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.project-likes__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.project-likes__btn.is-liked {
  color: #ffb4c4;
  border-color: rgba(255, 120, 150, 0.35);
  background: rgba(255, 90, 120, 0.12);
}
.project-likes__btn.is-liked .project-likes__icon {
  fill: #ff6b8a;
  stroke: #ff6b8a;
}
@media (hover: hover) {
  .project-likes__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(146, 206, 250, 0.35);
    background: rgba(146, 206, 250, 0.08);
  }
  .project-likes__btn.is-liked:hover {
    border-color: rgba(255, 120, 150, 0.5);
    background: rgba(255, 90, 120, 0.18);
  }
}
.project-likes__count {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.project-likes__status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}
.project-modal__founder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease);
}
.project-modal__founder[hidden],
.project-modal__discord[hidden] { display: none; }
.project-modal__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.project-modal__founder > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.project-modal__founder-name {
  display: block;
  font-size: 0.88rem;
  color: #92CEFA;
  transition:
    color var(--hover-duration) var(--hover-ease),
    text-shadow var(--hover-duration) var(--hover-ease),
    transform var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .project-modal__founder:hover {
    background: rgba(146, 206, 250, 0.08);
    border-color: rgba(146, 206, 250, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(146, 206, 250, 0.1);
  }
  .project-modal__founder:hover .project-modal__founder-name {
    color: #fff;
    text-shadow: 0 0 22px rgba(146, 206, 250, 0.5);
    transform: translateX(4px);
  }
}
.project-modal__founder span,
.project-modal__founder-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}
.project-modal__discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.45);
  transition:
    background var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    transform var(--hover-duration) var(--hover-ease);
}
@media (hover: hover) {
  .project-modal__discord:hover {
    background: rgba(88, 101, 242, 0.38);
    border-color: rgba(88, 101, 242, 0.65);
    transform: translateY(-1px);
  }
}
.project-modal__discord .icon--discord { fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .project-modal__dialog,
  .project-modal__backdrop,
  .project-modal__layout,
  .project-modal__aside,
  .project-modal__aside-content,
  .project-modal__reveal-item,
  .project-modal__player-wrap,
  .video-controls,
  .video-controls__center-play {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  .project-modal.is-revealed:not(.is-content-visible) .project-modal__aside-content {
    position: static;
    width: auto;
    height: auto;
    visibility: visible;
  }
  .project-modal.is-content-visible .project-modal__aside-content,
  .project-modal.is-content-visible .project-modal__reveal-item {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .project-modal__player-wrap.is-playing:not(.is-controls-visible) .video-controls {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

