﻿:root {
  --blue: #2f7eb8;
  --blue-soft: #d7ebf6;
  --blue-wash: #eef6fb;
  --paper: #f7fafc;
  --white: #ffffff;
  --ink: #163044;
  --muted: #5c7384;
  --line: rgba(22, 48, 68, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.4, 0, 0.2, 1);
  --display: "Bricolage Grotesque", sans-serif;
  --sans: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background:
    radial-gradient(70% 42% at 88% 0%, rgba(47, 126, 184, 0.1), transparent 58%),
    radial-gradient(50% 28% at 8% 18%, rgba(215, 235, 246, 0.7), transparent 62%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: rgba(47, 126, 184, 0.18);
}

.is-hidden {
  display: none !important;
}

body.is-locked {
  overflow: hidden !important;
  padding-right: var(--lock-sb, 0px);
}

body.is-locked.is-locked--fixed {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

html.is-locked {
  overflow: hidden !important;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.splash.is-out {
  transform: translateY(-100%);
  pointer-events: none;
}

.splash__write {
  text-align: center;
}

.splash__logo {
  display: block;
  width: min(420px, 72vw);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  filter: blur(8px);
}

.splash.is-writing .splash__logo {
  animation: splash-logo 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash__mark {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
}

.splash.is-writing .splash__mark {
  animation: fade-up 0.6s 0.45s forwards;
}

@keyframes splash-logo {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wrap {
  position: relative;
  z-index: 1;
}

.nav {
  --nav-size: 58px;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 36px);
  height: var(--nav-size);
  overflow: hidden;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(22, 48, 68, 0.08);
  transition:
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.nav.is-open {
  border-color: rgba(22, 48, 68, 0.1);
  box-shadow:
    0 16px 40px rgba(22, 48, 68, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: var(--nav-size);
  height: var(--nav-size);
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__toggle:hover img {
  transform: scale(1.06);
}

.nav__login {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 100%;
  max-width: 10rem;
  padding: 0 18px 0 2px;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition:
    color 0.28s var(--ease),
    opacity 0.2s var(--ease),
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__login:hover,
.nav__login:focus-visible {
  color: var(--blue);
}

.nav__login[aria-current="page"] {
  color: var(--blue);
}

.nav.is-open .nav__login {
  opacity: 0;
  max-width: 0;
  padding: 0;
  pointer-events: none;
}

.nav__toggle img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transform-origin: center;
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-open .nav__toggle img {
  transform: none;
}

.nav.is-open .nav__toggle:hover img {
  transform: scale(1.06);
}

.nav__panel {
  width: 0;
  min-width: 0;
  overflow: hidden;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-open .nav__panel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nav.is-open .nav__panel::-webkit-scrollbar {
  display: none;
}

.nav__panel-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 0 14px 0 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-open .nav__panel-inner {
  gap: 28px;
  padding: 0 20px 0 8px;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav.is-open .nav__links {
  gap: 4px;
  padding-right: 22px;
  margin-right: 2px;
  border-right: 1px solid rgba(22, 48, 68, 0.1);
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition:
    color 0.28s var(--ease),
    background 0.28s var(--ease),
    transform 0.28s var(--ease),
    opacity 0.35s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
  pointer-events: none;
}

.nav.is-open .nav__links a {
  opacity: 1;
  transform: none;
}

.nav.is-open .nav__links a:nth-child(1) {
  transition-delay: 0.08s;
}

.nav.is-open .nav__links a:nth-child(2) {
  transition-delay: 0.12s;
}

.nav.is-open .nav__links a:nth-child(3) {
  transition-delay: 0.16s;
}

.nav.is-open .nav__links a:nth-child(4) {
  transition-delay: 0.2s;
}

.nav.is-open .nav__links a:nth-child(5) {
  transition-delay: 0.24s;
}

.nav.is-open .nav__links a:nth-child(6) {
  transition-delay: 0.28s;
}

.nav.is-open .nav__links a:hover,
.nav.is-open .nav__links a:focus-visible {
  color: var(--ink);
  background: rgba(47, 126, 184, 0.06);
  transform: translateY(-1px);
  transition-delay: 0s;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(47, 126, 184, 0.08);
}

.nav__links a:focus-visible {
  outline: 2px solid rgba(47, 126, 184, 0.35);
  outline-offset: 2px;
}

.nav__cta {
  flex-shrink: 0;
  margin-left: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b8ec7 0%, var(--blue) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: none;
  box-shadow: 0 8px 18px rgba(47, 126, 184, 0.22);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    filter 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.nav.is-open .nav__cta {
  padding: 13px 22px;
  font-size: 0.84rem;
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.nav__cta:hover,
.nav.is-open .nav__cta:hover {
  transform: none;
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(47, 126, 184, 0.32);
  transition-delay: 0s;
}

.nav__cta:active,
.nav.is-open .nav__cta:active {
  transform: scale(0.98);
  filter: brightness(0.98);
  box-shadow: 0 6px 14px rgba(47, 126, 184, 0.2);
  transition-delay: 0s;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  column-gap: 56px;
  align-items: center;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 40px 48px;
  overflow: visible;
}

.hero__fx {
  position: absolute;
  inset: -12% -28% -8%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.hero__copy,
.hero__frame {
  position: relative;
  z-index: 1;
}

.hero__fx-grid {
  position: absolute;
  inset: 8% -10% -20%;
  background-image:
    linear-gradient(rgba(47, 126, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 126, 184, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) scale(1.35);
  transform-origin: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 10%, transparent 72%);
  opacity: 0.64;
  animation: hero-grid-drift 22s linear infinite;
}

.hero__fx-warp {
  position: absolute;
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  top: 42%;
  left: 52%;
  translate: -50% -50%;
  border-radius: 46% 54% 42% 58% / 52% 38% 62% 48%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.38), transparent 42%),
    radial-gradient(circle at 65% 60%, rgba(47, 126, 184, 0.2), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(215, 235, 246, 0.56), transparent 60%);
  filter: blur(8px);
  opacity: 0.78;
  animation: hero-warp 16s ease-in-out infinite;
}

.hero__fx-ring {
  position: absolute;
  border: 1.5px solid rgba(47, 126, 184, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(47, 126, 184, 0.08),
    0 0 40px rgba(47, 126, 184, 0.06);
}

.hero__fx-ring--a {
  width: min(58vw, 520px);
  height: min(34vw, 300px);
  top: 18%;
  right: 4%;
  rotate: -18deg;
  animation: hero-ring-a 18s ease-in-out infinite;
}

.hero__fx-ring--b {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  bottom: 10%;
  left: 2%;
  border-color: rgba(47, 126, 184, 0.19);
  animation: hero-ring-b 24s ease-in-out infinite;
}

.hero__fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.64;
  will-change: transform;
}

.hero__fx-orb--a {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 8%;
  background: rgba(47, 126, 184, 0.33);
  animation: hero-orb-a 14s ease-in-out infinite;
}

.hero__fx-orb--b {
  width: 280px;
  height: 280px;
  top: 28%;
  right: 0%;
  background: rgba(120, 185, 230, 0.27);
  animation: hero-orb-b 19s ease-in-out infinite;
}

.hero__fx-orb--c {
  width: 160px;
  height: 160px;
  bottom: 18%;
  left: 38%;
  background: rgba(215, 235, 246, 0.78);
  animation: hero-orb-c 12s ease-in-out infinite;
}

.hero__fx-beam {
  position: absolute;
  top: -10%;
  left: 58%;
  width: 2px;
  height: 70%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(47, 126, 184, 0.34),
    transparent
  );
  transform: rotate(18deg);
  filter: blur(0.5px);
  opacity: 0.54;
  animation: hero-beam 10s ease-in-out infinite;
}

.hero__fx-beam::before,
.hero__fx-beam::after {
  content: "";
  position: absolute;
  inset: 8% auto;
  width: 1px;
  background: inherit;
  opacity: 0.62;
}

.hero__fx-beam::before {
  left: -18px;
  transform: rotate(-6deg);
}

.hero__fx-beam::after {
  left: 22px;
  transform: rotate(7deg);
  height: 80%;
  top: 15%;
}

.hero__fx-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes hero-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 56px, 56px 0;
  }
}

@keyframes hero-warp {
  0%,
  100% {
    border-radius: 46% 54% 42% 58% / 52% 38% 62% 48%;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 58% 42% 60% 40% / 40% 58% 42% 60%;
    transform: translate(-48%, -52%) scale(1.06) rotate(4deg);
  }
  66% {
    border-radius: 40% 60% 48% 52% / 62% 44% 56% 38%;
    transform: translate(-52%, -48%) scale(0.96) rotate(-3deg);
  }
}

@keyframes hero-ring-a {
  0%,
  100% {
    transform: rotate(-18deg) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: rotate(-12deg) scale(1.06);
    opacity: 1;
  }
}

@keyframes hero-ring-b {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.08) rotate(8deg);
    opacity: 1;
  }
}

@keyframes hero-orb-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(28px, 36px);
  }
}

@keyframes hero-orb-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 24px) scale(1.08);
  }
}

@keyframes hero-orb-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -30px);
  }
}

@keyframes hero-beam {
  0%,
  100% {
    opacity: 0.32;
    transform: rotate(18deg) translateY(0);
  }
  50% {
    opacity: 0.65;
    transform: rotate(18deg) translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__fx-grid,
  .hero__fx-warp,
  .hero__fx-ring,
  .hero__fx-orb,
  .hero__fx-beam {
    animation: none;
  }
}

.hero__meta {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.ewan {
  flex-shrink: 0;
  width: 210px;
  height: 200px;
}

.ewan--desk {
  width: 220px;
  height: 200px;
}

.ewan--support {
  width: 200px;
  height: 210px;
}

.ewan--post {
  width: 200px;
  height: 210px;
}

.ewan--think {
  width: 200px;
  height: 210px;
}

.ewan--camera {
  width: 200px;
  height: 210px;
}

.hero .ewan {
  margin: 0 0 4px -20px;
}

.ewan canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero__more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(22, 48, 68, 0.22);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero__more:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero__frame {
  position: relative;
  align-self: center;
  padding: 10px;
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(22, 48, 68, 0.1);
  box-shadow:
    0 18px 40px rgba(22, 48, 68, 0.12),
    0 4px 12px rgba(22, 48, 68, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.hero__ratio {
  position: relative;
  overflow: hidden;
  width: min(260px, 32vw);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: #0c1822;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 32, 0.72));
}

.player__btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.player__btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.player .icon-play,
.player .icon-sound {
  display: none;
}

.player.is-paused .icon-pause {
  display: none;
}

.player.is-paused .icon-play,
.player:not(.is-muted) .icon-sound {
  display: block;
}

.player:not(.is-muted) .icon-muted {
  display: none;
}

.player__seek {
  flex: 1;
  height: 4px;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.4s var(--ease),
    filter 0.35s var(--ease);
}

.btn[hidden],
.btn.is-hidden {
  display: none !important;
}

.btn:active {
  transform: translateY(0);
}

.btn--fill {
  background: linear-gradient(180deg, #3b8ec7 0%, var(--blue) 72%, #2872a8 100%);
  color: #fff;
}

.btn--fill:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--fill:active {
  filter: brightness(0.98);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  gap: 6px;
  width: auto;
  justify-self: start;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 48, 68, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(47, 126, 184, 0.35);
}

.section {
  padding: 96px 7vw;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto 48px;
}

.works-wrap .head {
  align-items: center;
  margin-bottom: 16px;
  gap: 12px 20px;
}

#faq .head {
  align-items: flex-end;
  margin-bottom: 8px;
}

#faq .head h2 {
  padding-bottom: 28px;
}

.works-wrap .head h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: none;
}

.head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.65;
}

.section__cta {
  max-width: 1080px;
  margin: 32px auto 0;
}

/* —— Support —— */
.support {
  overflow: visible;
}

.support__row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.js-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-reveal.is-resetting {
  transition: none !important;
}

.support__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.support__copy h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
}

.support__title .ewan {
  flex-shrink: 0;
}

.support__copy .btn {
  margin-top: 28px;
}

.support__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 12px 0;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.support__frame {
  --tilt-x: 2deg;
  --tilt-y: -3deg;
  --lift: 0px;
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--lift), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  will-change: transform;
}

.support-glow {
  position: absolute;
  inset: -18px -22px -24px;
  z-index: 0;
  border-radius: 36px;
  background:
    radial-gradient(55% 50% at 35% 30%, rgba(47, 126, 184, 0.28), transparent 70%),
    radial-gradient(60% 55% at 70% 75%, rgba(215, 235, 246, 0.95), transparent 72%),
    rgba(215, 235, 246, 0.45);
  filter: blur(18px);
  transform: translateZ(-28px) scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}

.support__frame.is-hot .support-glow {
  opacity: 1;
}

.support-panel {
  --panel-shadow: 0 18px 48px rgba(22, 48, 68, 0.08);
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  transition:
    box-shadow 0.65s var(--ease),
    border-color 0.45s var(--ease);
}

.support__frame.is-hot .support-panel {
  --panel-shadow: 0 32px 64px rgba(22, 48, 68, 0.18);
  border-color: rgba(22, 48, 68, 0.14);
}

.js-reveal.is-in .support__frame {
  animation: support-settle 0.9s var(--ease) both;
}

@keyframes support-settle {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support__frame {
    transform: none !important;
    transition: none;
  }

  .support-glow {
    transform: none;
    filter: blur(14px);
  }

  .support__stage {
    perspective: none;
  }

  .js-reveal.is-in .support__frame {
    animation: none;
  }
}

.support-panel__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.support-panel__logo {
  display: block;
  width: auto;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.support-panel__meta {
  min-width: 0;
}

.support-panel__meta b {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.support-panel__meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
}

.support-panel__feed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  overflow: hidden;
  padding: 18px 18px 22px;
  background:
    linear-gradient(180deg, rgba(238, 246, 251, 0.35), transparent 28%),
    var(--white);
}

.support-msg {
  display: flex;
  max-width: 86%;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.support-msg.is-on {
  opacity: 1;
  transform: none;
}

.support-msg span {
  display: block;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-msg--client {
  align-self: flex-end;
}

.support-msg--client span {
  color: #fff;
  background: var(--ink);
  border-bottom-right-radius: 5px;
}

.support-msg--studio span {
  color: var(--ink);
  background: var(--blue-soft);
  border-bottom-left-radius: 5px;
}

.support-typing {
  position: absolute;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  background: var(--blue-soft);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.support-typing.is-on {
  opacity: 1;
  transform: none;
}

.support-typing[hidden] {
  display: none !important;
}

.support-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.4;
  animation: support-dot 1.1s ease-in-out infinite;
}

.support-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.support-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes support-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .support-msg,
  .support-typing {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .js-reveal.is-in .support__frame {
    animation: none !important;
  }
}

.works-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
  padding: 20px 40px 20px 20px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(22, 48, 68, 0.05);
}

.feature__media {
  position: relative;
  overflow: hidden;
  width: min(220px, 38vw);
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #0c1822;
  cursor: pointer;
}

.feature__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.feature__copy h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature__desc {
  margin: 0 0 14px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature__meta {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portfolio-page {
  padding-top: 120px;
}

.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

.work {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work__media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0c1822;
  box-shadow: 0 12px 28px rgba(22, 48, 68, 0.06);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.work__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__poster {
  display: grid;
  place-items: center;
}

.work__poster b {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.work__poster--ice {
  background:
    radial-gradient(120% 70% at 18% 12%, rgba(140, 210, 255, 0.45), transparent 52%),
    linear-gradient(165deg, #163044, #0c1822);
}

.work__poster--omerta {
  background:
    radial-gradient(80% 55% at 78% 38%, rgba(47, 126, 184, 0.38), transparent 58%),
    #122433;
}

.work__poster--uranus {
  background:
    radial-gradient(circle at 58% 46%, rgba(47, 126, 184, 0.5), transparent 40%),
    #0c1822;
}

.work__meta h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.works-more {
  margin: 28px 0 0;
}

.work__meta p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.work__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(8, 20, 32, 0.25);
  pointer-events: none;
}

.work__play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 17px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--ink);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 24, 34, 0.72);
  backdrop-filter: blur(10px);
}

.viewer[hidden] {
  display: none;
}

.viewer__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.viewer__card {
  width: min(360px, 78vw);
}

.viewer__card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: #061018;
}

.viewer__card p {
  margin-top: 14px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(22, 48, 68, 0.04);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.45s var(--ease);
}

.card__tag {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card h3 {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.card__meta b {
  color: var(--blue);
}

.process-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.process-header {
  margin-bottom: 16px;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.process-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.process-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.process-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(22, 48, 68, 0.05);
  overflow: visible;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 17px;
  background: var(--white);
}

.process-progress {
  display: none;
}

@media (min-width: 768px) {
  .process-progress {
    display: block;
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
    --progress: 0%;
  }

  .process-progress__track {
    position: absolute;
    inset: 0;
    background: rgba(22, 48, 68, 0.06);
  }

  .process-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: rgba(47, 126, 184, 0.35);
    opacity: 0;
    transition:
      width 0.45s var(--ease),
      opacity 0.35s var(--ease);
  }

  .process-progress.is-on .process-progress__fill {
    opacity: 1;
  }

  .process-progress__fill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 5px;
    height: 5px;
    margin-right: -2.5px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.12);
    transform: translateY(-50%);
  }
}

.process-wrap.is-in .process-header {
  opacity: 1;
  transform: none;
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 26px 22px 24px;
  background: var(--white);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    background 0.35s var(--ease),
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  transition-delay: 0s, var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.process-grid .process-step:nth-child(1) {
  --reveal-delay: 80ms;
}

.process-grid .process-step:nth-child(2) {
  --reveal-delay: 180ms;
}

.process-grid .process-step:nth-child(3) {
  --reveal-delay: 280ms;
}

.process-grid .process-step:nth-child(4) {
  --reveal-delay: 380ms;
}

.process-wrap.is-in .process-step {
  opacity: 1;
  transform: none;
}

.process-wrap.is-resetting .process-header,
.process-wrap.is-resetting .process-step {
  transition: none !important;
}

.process-step + .process-step {
  border-left: 1px solid var(--line);
}

.process-step__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.process-step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--blue-wash);
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.process-step__icon--cycle {
  overflow: hidden;
}

.process-icon-cycle__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  opacity: 0;
  color: var(--muted);
  transform: translate(-50%, calc(-50% + 4px)) scale(0.9);
  animation: process-icon-cycle 8s ease-in-out infinite;
  filter: grayscale(1) opacity(0.55);
  transition:
    filter 0.35s var(--ease),
    color 0.35s var(--ease);
}

.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);
  }
}

.process-num {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(22, 48, 68, 0.12);
  user-select: none;
  transition: color 0.35s var(--ease);
}

.process-step__rule {
  width: 32px;
  height: 2px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(47, 126, 184, 0.45), rgba(47, 126, 184, 0.08));
  transition: background 0.35s var(--ease);
}

.process-step h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  transition: color 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .process-step:hover,
  .process-step.is-active {
    background: rgba(238, 246, 251, 0.85);
  }

  .process-step:hover .process-num,
  .process-step.is-active .process-num {
    color: rgba(47, 126, 184, 0.38);
  }

  .process-step:hover .process-step__icon,
  .process-step.is-active .process-step__icon {
    color: var(--blue);
    border-color: rgba(47, 126, 184, 0.38);
    background: #fff;
    box-shadow: 0 8px 18px rgba(22, 48, 68, 0.08);
  }

  .process-step:hover .process-step__icon--cycle .process-icon-cycle__item,
  .process-step.is-active .process-step__icon--cycle .process-icon-cycle__item {
    filter: none;
    color: var(--blue);
  }

  .process-step:hover .process-step__rule,
  .process-step.is-active .process-step__rule {
    background: linear-gradient(90deg, rgba(47, 126, 184, 0.85), rgba(47, 126, 184, 0.15));
  }

  .process-step:hover .process-desc,
  .process-step.is-active .process-desc {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-header,
  .process-step {
    opacity: 1 !important;
    transform: none !important;
    transition: background 0.35s var(--ease) !important;
  }

  .process-step__icon--cycle .process-icon-cycle__item {
    animation: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    filter: none;
  }

  .process-step__icon--cycle .process-icon-cycle__item:first-child {
    opacity: 1;
    color: var(--blue);
  }
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:nth-child(2n + 1) {
    border-left: 0;
  }

  .process-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .process-step:nth-child(2) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step + .process-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto;
}

#faq > .head {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

#faq.is-in > .head {
  opacity: 1;
  transform: none;
}

.faq__item {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    border-color 0.3s var(--ease-settle),
    background 0.3s var(--ease-settle),
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  transition-delay:
    0s,
    0s,
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms);
}

.faq__item:nth-child(1) {
  --reveal-delay: 60ms;
}

.faq__item:nth-child(2) {
  --reveal-delay: 140ms;
}

.faq__item:nth-child(3) {
  --reveal-delay: 220ms;
}

.faq__item:nth-child(4) {
  --reveal-delay: 300ms;
}

.faq__item:nth-child(5) {
  --reveal-delay: 380ms;
}

#faq.is-in .faq__item {
  opacity: 1;
  transform: none;
}

#faq.is-resetting > .head,
#faq.is-resetting .faq__item {
  transition: none !important;
}

.faq__item.is-open {
  border-color: rgba(47, 126, 184, 0.35);
  background: var(--blue-wash);
}

.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
}

.faq__q {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.2em;
  color: var(--blue);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__ico {
  transform: rotate(45deg);
}

.faq__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.56s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__panel {
  height: auto;
}

.faq__a {
  margin: 0;
  padding: 0 22px 20px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.faq__a p {
  margin: 0 0 12px;
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__num {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.legal {
  padding: 0;
}

.legal__section {
  padding-top: 132px;
  padding-bottom: 72px;
}

.legal .head {
  align-items: flex-end;
  margin-bottom: 12px;
}

.legal .head .ewan {
  position: relative;
  top: 42px;
}

.legal .head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.legal__kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal__lede {
  max-width: 54ch;
  margin: 0 0 28px;
}

.legal__body {
  max-width: 1080px;
  margin: 0 auto;
}

.legal__faq .faq__item {
  opacity: 1;
  transform: none;
}

.legal__faq strong {
  color: var(--ink);
  font-weight: 700;
}

.faq__item--alert.is-open {
  position: relative;
  isolation: isolate;
}

.faq__item--alert.is-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(196, 58, 58, 0.16);
  box-shadow: inset 0 0 0 1px #c43a3a;
  opacity: 0;
  transform: translateZ(0);
  animation: legal-alert-pulse 1.8s ease-in-out 0.5s infinite;
}

.faq__item--alert.is-open > * {
  position: relative;
  z-index: 1;
}

@keyframes legal-alert-pulse {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.legal__back {
  margin: 28px 0 0;
}

.contact {
  background: var(--blue-wash);
}

.contact__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.foot {
  position: relative;
  padding: 36px 7vw 44px;
  background: linear-gradient(90deg, rgba(247, 250, 252, 0.4) 0%, var(--blue-wash) 100%);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7vw;
  right: 7vw;
  max-width: 1080px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(47, 126, 184, 0.28) 20%,
    rgba(47, 126, 184, 0.28) 80%,
    transparent 100%
  );
}

.foot__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot__logo {
  display: inline-flex;
  line-height: 0;
  opacity: 0.72;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.foot__logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.foot__logo img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

.foot__tagline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.foot__social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.foot__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.foot__icon i {
  font-size: 1em;
  line-height: 1;
  width: 1em;
  text-align: center;
}

.foot__icon:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 4px;
}

.foot__copy,
.foot__email {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.foot__email {
  font-weight: 500;
  transition: color 0.35s var(--ease);
}

.foot__email:hover {
  color: var(--blue);
}

@media (max-width: 960px) {
  .nav {
    --nav-size: 52px;
    top: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }

  .nav__login {
    padding-right: 14px;
    font-size: 0.8rem;
  }

  .nav.is-open .nav__login {
    padding: 0;
  }

  .nav__toggle img {
    width: 32px;
    height: 32px;
  }

  .nav__panel-inner,
  .nav.is-open .nav__panel-inner {
    gap: 16px;
    padding-right: 12px;
  }

  .nav.is-open .nav__links {
    gap: 2px;
    padding-right: 14px;
  }

  .nav__links a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .nav__links a::after {
    left: 10px;
    right: 10px;
    bottom: 5px;
  }

  .nav__cta,
  .nav.is-open .nav__cta {
    padding: 10px 14px;
    font-size: 0.74rem;
  }

  .hero,
  .grid-2,
  .feature,
  .support__row {
    grid-template-columns: 1fr;
  }

  .support__stage {
    min-height: 380px;
    padding: 0;
  }

  .support__copy h2 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .feature {
    gap: 24px;
    padding: 16px;
  }

  .feature__media {
    justify-self: center;
    width: min(220px, 58vw);
  }

  .works {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    gap: 0;
    min-height: auto;
    padding: 88px 22px 56px;
  }

  .hero__ctas {
    margin-top: 24px;
  }

  .hero__frame {
    justify-self: center;
    margin-top: 12px;
  }

  .hero__ratio {
    width: min(200px, 56vw);
  }

  .section {
    padding: 72px 22px;
  }

  .foot {
    padding: 32px 22px 40px;
  }

  .foot::before {
    left: 22px;
    right: 22px;
  }
}

@media (max-width: 520px) {
  .works {
    max-width: 260px;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(47, 126, 184, 0.28);
    box-shadow: 0 16px 36px rgba(22, 48, 68, 0.08);
  }

  .work__media,
  .feature__media {
    transition:
      transform 0.45s var(--ease),
      box-shadow 0.45s var(--ease);
  }

  .work:hover .work__media,
  .feature__media:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 36px rgba(22, 48, 68, 0.12);
  }

  .faq__item:hover {
    border-color: rgba(47, 126, 184, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav,
  .nav__panel,
  .nav__panel-inner,
  .nav__toggle,
  .nav__login,
  .nav__links a,
  .nav__cta,
  .card,
  .work__media,
  .feature__media,
  .faq__item,
  .faq__item button,
  .faq__panel,
  .splash,
  .splash__logo,
  .splash__mark {
    animation: none;
    transition: none;
  }

  .nav__links a,
  .nav__cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .faq__item--alert.is-open::after {
    animation: none;
    opacity: 1;
  }

  .card:hover,
  .work:hover .work__media,
  .feature__media:hover {
    transform: none;
  }

  .splash.is-writing .splash__logo,
  .splash.is-writing .splash__mark {
    clip-path: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* —— Portfolio (page dédiée, structure type serveurs) —— */
.page-portfolio .nav {
  position: fixed;
}

.pf-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.pf-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pf-hero {
  padding: 120px 0 0;
}

.pf-hero__title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.pf-hero__bold {
  font-weight: 800;
  color: var(--ink);
}

.pf-hero__light {
  font-weight: 600;
  color: rgba(22, 48, 68, 0.38);
}

.pf-hero__desc {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pf-search-wrap {
  padding: 36px 0 28px;
}

.pf-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(22, 48, 68, 0.04);
  color: var(--muted);
  transition: border-color 0.25s var(--ease);
}

.pf-search:focus-within {
  border-color: rgba(47, 126, 184, 0.45);
  color: var(--blue);
}

.pf-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.pf-search__input::placeholder {
  color: var(--muted);
}

.pf-body {
  padding-bottom: 48px;
}

.pf-servers {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pf-server + .pf-server {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.pf-server__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pf-server__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pf-server__tag {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pf-server__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pf-server__count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pf-card {
  flex: 0 0 calc(50% - 7px);
  max-width: calc(50% - 7px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(22, 48, 68, 0.04);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

@media (min-width: 640px) {
  .pf-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}

@media (min-width: 900px) {
  .pf-card {
    flex: 0 0 calc(25% - 11px);
    max-width: calc(25% - 11px);
  }
}

@media (min-width: 1100px) {
  .pf-card {
    flex: 0 0 calc(16.666% - 12px);
    max-width: calc(16.666% - 12px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .pf-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 126, 184, 0.35);
    box-shadow: 0 16px 32px rgba(22, 48, 68, 0.1);
  }

  .pf-card:hover .pf-card__preview,
  .pf-card:hover .pf-card__poster {
    transform: scale(1.03);
  }
}

.pf-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.pf-card__trigger--static {
  cursor: default;
}

.pf-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0c1822;
}

.pf-card__preview,
.pf-card__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.pf-card__poster {
  display: grid;
  place-items: center;
}

.pf-card__poster b {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.pf-card__poster--ice {
  background:
    radial-gradient(120% 70% at 18% 12%, rgba(140, 210, 255, 0.45), transparent 52%),
    linear-gradient(165deg, #163044, #0c1822);
}

.pf-card__poster--omerta {
  background:
    radial-gradient(80% 55% at 78% 38%, rgba(47, 126, 184, 0.38), transparent 58%),
    #122433;
}

.pf-card__poster--uranus {
  background:
    radial-gradient(circle at 58% 46%, rgba(47, 126, 184, 0.5), transparent 40%),
    #0c1822;
}

.pf-card__poster--default {
  background: linear-gradient(165deg, #163044, #0c1822);
}

.pf-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(8, 20, 32, 0.25);
  pointer-events: none;
}

.pf-card__play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--ink);
}

.pf-card__likes {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(12, 24, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.pf-card__likes::before {
  content: "♥";
  font-size: 0.62rem;
  opacity: 0.9;
}

.pf-card__likes[hidden] {
  display: none;
}

.pf-card__body {
  padding: 12px 12px 14px;
}

.pf-card__type {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pf-empty {
  margin: 0;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.pf-cta {
  padding: 0 0 72px;
}

.pf-cta__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(22, 48, 68, 0.05);
}

@media (min-width: 768px) {
  .pf-cta__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 40px;
  }
}

.pf-cta__title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pf-cta__desc {
  margin: 10px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pf-wrap {
    width: calc(100% - 40px);
  }

  .pf-hero {
    padding-top: 100px;
  }
}

/* Modal portfolio — téléphone → expansion latérale (hauteur verrouillée) */
.pf-modal[hidden] {
  display: none !important;
}

.pf-modal {
  --pf-frame-h: min(calc(100vh - 40px), calc(100dvh - 40px), 860px);
  --pf-phone-w: min(400px, calc(var(--pf-frame-h) * 9 / 16), 42vw);
  --pf-phone-h: calc(var(--pf-phone-w) * 16 / 9);
  --pf-panel-w: min(980px, calc(100vw - 40px));
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.pf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 34, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

.pf-modal.is-closing .pf-modal__backdrop {
  opacity: 0;
}

.pf-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--pf-phone-w);
  height: var(--pf-phone-h);
  max-height: var(--pf-frame-h);
  overflow: hidden;
  border-radius: 20px;
  background: #12161c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(8, 16, 28, 0.45);
  opacity: 0;
  transition:
    opacity 0.35s var(--ease),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-modal.is-open .pf-modal__dialog {
  opacity: 1;
}

.pf-modal.is-expanded .pf-modal__dialog {
  width: var(--pf-panel-w);
}

.pf-modal.is-closing .pf-modal__dialog {
  opacity: 0;
  width: var(--pf-phone-w);
  transition:
    opacity 0.28s var(--ease),
    width 0.35s var(--ease);
}

.pf-modal__layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: var(--pf-panel-w);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pf-modal__player {
  position: relative;
  flex: 0 0 var(--pf-phone-w);
  width: var(--pf-phone-w);
  height: 100%;
  overflow: hidden;
  background: #000;
}

.pf-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.pf-modal__video[hidden] {
  display: none;
}

.pf-modal__player-empty {
  display: none;
  place-items: center;
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-weight: 500;
}

.pf-modal__video[hidden] ~ .pf-modal__player-empty {
  display: grid;
}

.pf-modal__aside {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 260px;
  min-height: 0;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, #1a222c 0%, #141a22 55%, #10151c 100%);
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.pf-modal.is-expanded:not(.is-closing) .pf-modal__aside {
  overflow-x: hidden;
  overflow-y: auto;
}

.pf-modal__aside::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pf-modal__aside-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  padding: 36px 28px 28px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-modal.is-expanded .pf-modal__aside-content {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.pf-modal.is-closing .pf-modal__aside-content {
  opacity: 0;
  transform: translateX(8px);
  transition-delay: 0s;
}

.pf-modal__reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease) calc(0.18s + var(--i, 0) * 0.05s),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.18s + var(--i, 0) * 0.05s);
}

.pf-modal.is-expanded .pf-modal__reveal {
  opacity: 1;
  transform: none;
}

.pf-modal.is-closing .pf-modal__reveal {
  opacity: 0;
  transform: translateY(6px);
  transition-delay: 0s;
}

.pf-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.pf-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pf-modal__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pf-modal__title {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pf-modal__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pf-likes {
  display: flex;
  align-items: center;
  width: 100%;
}

.pf-likes--idle {
  opacity: 0.45;
  pointer-events: none;
}

.pf-likes__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  width: 100%;
}

.pf-likes__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.pf-likes__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.pf-likes__btn:active {
  transform: scale(0.97);
}

.pf-likes__btn.is-liked {
  color: #ff7b93;
  background: rgba(255, 90, 120, 0.16);
  border-color: rgba(255, 123, 147, 0.45);
}

.pf-likes__btn.is-liked:hover {
  background: rgba(255, 90, 120, 0.22);
  border-color: rgba(255, 123, 147, 0.55);
}

.pf-likes__icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.pf-likes__btn.is-liked .pf-likes__icon path {
  fill: currentColor;
  stroke: currentColor;
}

.pf-likes__count {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pf-likes__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
}

.pf-likes__btn.is-liked + .pf-likes__status {
  color: rgba(255, 190, 205, 0.85);
}

@media (max-width: 767px) {
  .pf-modal {
    --pf-frame-h: min(calc(100vh - 32px), calc(100dvh - 32px), 860px);
    --pf-phone-w: min(360px, calc(var(--pf-frame-h) * 9 / 16), calc(100vw - 32px));
    --pf-phone-h: calc(var(--pf-phone-w) * 16 / 9);
    --pf-panel-w: min(420px, calc(100vw - 32px));
    padding: 16px;
  }

  .pf-modal__dialog {
    width: var(--pf-phone-w);
    height: var(--pf-phone-h);
    max-height: var(--pf-frame-h);
  }

  .pf-modal.is-expanded .pf-modal__dialog {
    width: var(--pf-panel-w);
    height: auto;
    max-height: var(--pf-frame-h);
  }

  .pf-modal__layout {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .pf-modal__player {
    flex: 0 0 auto;
    width: 100%;
    height: var(--pf-phone-h);
  }

  .pf-modal__aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .pf-modal__aside-content {
    width: 100%;
    min-height: 0;
    padding: 28px 24px 24px;
    transform: translateY(10px);
  }

  .pf-modal.is-expanded .pf-modal__aside-content {
    transform: none;
  }
}

.pf-modal__founder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pf-modal__founder-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47, 126, 184, 0.22);
  color: #9ec9e8;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
}

.pf-modal__founder strong {
  display: block;
  color: #9ec9e8;
  font-size: 0.95rem;
}

.pf-modal__founder small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

.pf-modal__discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.45);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.pf-modal__discord:hover {
  background: rgba(88, 101, 242, 0.38);
  border-color: rgba(88, 101, 242, 0.65);
  transform: translateY(-1px);
}

.pf-modal__discord-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .pf-modal__backdrop,
  .pf-modal__dialog,
  .pf-modal__aside-content,
  .pf-modal__reveal {
    transition: none !important;
  }
}

/* —— Options (catalogue montage) —— */
.page-options .nav {
  position: fixed;
}

.page-options .pf-wrap {
  width: min(1120px, calc(100% - 48px));
}

.opt-hero {
  padding: 132px 0 0;
}

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

.opt-hero__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.opt-hero__row .pf-hero__desc {
  margin-top: 16px;
}

.opt-hero__row .ewan {
  margin-right: -8px;
}

.opt-body {
  padding: 56px 0 56px;
}

.opt-category + .opt-category {
  margin-top: 72px;
}

.opt-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.opt-item {
  min-width: 0;
}

.opt-item__card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 28px 40px;
  align-items: center;
  width: 100%;
  padding: 22px 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(22, 48, 68, 0.05);
}

.opt-item__stage {
  min-width: 0;
}

.opt-item__previews {
  display: grid;
  grid-template-columns: 256fr 81fr;
  gap: 12px 14px;
  align-items: end;
  width: 100%;
}

.opt-media {
  min-width: 0;
}

.opt-media__frame {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #0c1822;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 48, 68, 0.08);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.opt-media--wide .opt-media__frame {
  aspect-ratio: 16 / 9;
}

.opt-media--tall .opt-media__frame {
  aspect-ratio: 9 / 16;
}

.opt-media__frame:hover,
.opt-media__frame.is-playing {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 48, 68, 0.12);
}

.opt-media__frame:disabled {
  cursor: default;
}

.opt-media__frame:disabled:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(22, 48, 68, 0.08);
}

.opt-media__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0c1822;
  pointer-events: none;
}

.opt-media__video::-webkit-media-controls,
.opt-media__video::-webkit-media-controls-enclosure,
.opt-media__video::-webkit-media-controls-overlay-enclosure,
.opt-media__video::-webkit-media-controls-start-playback-button,
.opt-viewer__card video::-webkit-media-controls,
.opt-viewer__card video::-webkit-media-controls-enclosure,
.opt-viewer__card video::-webkit-media-controls-overlay-enclosure {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.opt-media__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(47, 126, 184, 0.28), transparent 55%),
    linear-gradient(165deg, #163044, #0c1822);
}

.opt-media__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(12, 24, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.opt-media__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(8, 20, 32, 0.25);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.opt-media__play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--ink);
}

.opt-media__frame.is-playing .opt-media__play {
  opacity: 0;
  transform: scale(0.9);
}

.opt-media__expand {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 24, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  line-height: 1;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.opt-media__expand:hover,
.opt-media__expand:focus-visible {
  background: rgba(12, 24, 34, 0.88);
  transform: scale(1.06);
}

.opt-media--tall .opt-media__expand {
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
}

.opt-viewer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px 20px 32px;
  background: rgba(12, 24, 34, 0.78);
  backdrop-filter: blur(12px);
}

.opt-viewer[hidden] {
  display: none;
}

.opt-viewer__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.opt-viewer__close:hover,
.opt-viewer__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.opt-viewer__card {
  width: min(920px, 92vw);
}

.opt-viewer__card--tall {
  width: min(380px, 72vw);
}

.opt-viewer__card video {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  background: #061018;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.opt-viewer__card--wide video {
  aspect-ratio: 16 / 9;
}

.opt-viewer__card--tall video {
  aspect-ratio: 9 / 16;
}

.opt-viewer__card p {
  margin-top: 14px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.opt-item__copy {
  min-width: 0;
}

.opt-item__meta {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.opt-item__copy h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.opt-item__ideal {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .page-options .pf-wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .opt-body {
    padding: 40px 0 40px;
  }

  .opt-list {
    gap: 22px;
  }

  .opt-item__card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
  }

  .opt-item__previews {
    max-width: 520px;
    margin: 0 auto;
  }

  .opt-item__copy {
    text-align: center;
  }

  .opt-item__ideal {
    max-width: 42ch;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .opt-hero {
    padding-top: 108px;
  }

  .opt-item__card {
    padding: 14px;
    border-radius: 20px;
  }

  .opt-item__previews {
    grid-template-columns: 1fr auto;
    max-width: none;
  }

  .opt-media--tall {
    width: min(28vw, 110px);
  }

  .opt-item__copy h3 {
    font-size: 1.4rem;
  }

  .opt-item__ideal {
    font-size: 0.9rem;
  }

  .opt-media__frame {
    border-radius: 14px;
  }

  .opt-media__play {
    width: 38px;
    height: 38px;
  }

  .opt-media__play::after {
    left: 15px;
    top: 12px;
    border-width: 7px 0 7px 10px;
  }

  .opt-media__expand {
    width: 30px;
    height: 30px;
  }

  .opt-media--tall .opt-media__expand {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
  }

  .opt-viewer {
    padding: 64px 12px 24px;
  }

  .opt-viewer__close {
    top: 12px;
    right: 12px;
  }

  .opt-viewer__card--tall {
    width: min(320px, 86vw);
  }
}

.page-auth {
  min-height: 100vh;
}

.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px 24px 64px;
}

.auth__card {
  width: min(420px, 100%);
  text-align: center;
}

.auth__logo {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto 28px;
}

.auth h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.auth__lead {
  margin: 14px auto 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth__error {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(184, 47, 62, 0.08);
  color: #8a2432;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth__btn {
  width: 100%;
  margin-top: 28px;
}

.page-panel .panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 7vw 80px;
}

.panel__head {
  margin-bottom: 36px;
}

.panel__kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.panel h1,
.panel h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.panel__lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.panel__muted,
.order-card__muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel__empty {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.panel__empty p:first-child {
  font-weight: 600;
  color: var(--ink);
}

.panel__list {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 22px 22px 20px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(22, 48, 68, 0.05);
}

.order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.order-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.order-card__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-card__amount {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.order-badge--montage,
.order-badge--preview {
  background: rgba(47, 126, 184, 0.12);
}

.order-badge--livre,
.order-badge--termine {
  background: rgba(34, 120, 80, 0.12);
  color: #1f6b48;
}

.order-card__files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-card__dl {
  padding: 10px 16px;
  font-size: 0.82rem;
}

.studio-ca,
.studio-create,
.studio-orders {
  margin-bottom: 28px;
}

html:has(body.page-panel) {
  height: 100%;
  overflow: hidden;
}

.page-panel {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

.page-studio {
  min-height: 100%;
  background:
    radial-gradient(55% 40% at 12% 0%, rgba(47, 126, 184, 0.1), transparent 60%),
    radial-gradient(40% 30% at 90% 10%, rgba(215, 235, 246, 0.75), transparent 65%),
    var(--paper);
}

.studio-app {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-top {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(22, 48, 68, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.studio-top__brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(22, 48, 68, 0.08);
  flex-shrink: 0;
}

.studio-top__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.studio-top__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-top__who {
  min-width: 0;
}

.studio-top__avatar-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-wash);
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(47, 126, 184, 0.18);
  transition:
    box-shadow 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.studio-top__avatar-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-top__avatar-btn:hover,
.studio-top__avatar-btn:focus-visible {
  outline: none;
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.42);
}

.studio-top__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.studio-top__user {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-top__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.studio-top__link {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.page-panel .btn {
  padding: 8px 14px;
  min-height: 34px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  gap: 8px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.page-panel .btn:hover,
.page-panel .btn:active,
.page-panel .btn--fill:hover,
.page-panel .btn--fill:active,
.page-panel .btn--ghost:hover,
.page-panel .btn--ghost:active {
  transform: none;
  filter: none;
}

.page-panel .btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page-panel .btn--fill {
  background: var(--blue);
  color: #fff;
}

.page-panel .btn--fill:hover {
  background: #276ca0;
}

.page-panel .btn--fill:active {
  background: #215d8c;
}

.page-panel .btn--ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(22, 48, 68, 0.12);
}

.page-panel .btn--ghost:hover {
  background: var(--blue-wash);
  color: var(--blue);
  border-color: rgba(47, 126, 184, 0.3);
}

.page-panel .btn--sm {
  padding: 6px 12px;
  min-height: 32px;
  font-size: 0.76rem;
}

.page-panel .studio-form > .btn,
.page-panel .studio-form > button,
.page-panel .home-actions > .btn,
.page-panel .studio-detail__actions > .btn,
.page-panel .studio-confirm__actions > .btn,
.page-panel .owner-settings > .btn {
  width: auto;
  justify-self: start;
  align-self: end;
}

.page-panel .studio-icon-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
}

.page-panel .studio-btn-danger {
  color: #8a2432;
  border-color: rgba(184, 47, 62, 0.22);
}

.page-panel .studio-btn-danger:hover {
  color: #6e1c28;
  background: #fdecec;
  border-color: rgba(184, 47, 62, 0.38);
}

.page-panel .studio-rail__btn {
  padding: 10px 12px;
  border-radius: 10px;
}

.page-panel .studio-top__actions {
  gap: 8px;
}

.studio-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.studio-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

.studio-main {
  min-height: 0;
  padding: 28px 32px 48px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.studio-view__head {
  margin-bottom: 24px;
}

.studio-view__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.studio-view__head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.studio-view__head .panel__muted {
  margin-top: 8px;
}

.studio-view[hidden] {
  display: none !important;
}

.studio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.studio-back:hover {
  color: var(--ink);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.order-tile {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px 16px 16px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(22, 48, 68, 0.04);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.order-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 126, 184, 0.28);
  box-shadow: 0 12px 26px rgba(22, 48, 68, 0.07);
}

.order-tile:active {
  transform: translateY(0);
}

.order-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-tile__top .order-badge {
  margin: 0;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 600;
}

.order-tile__amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.order-tile__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.order-tile__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.client-tile .studio-icon-btn {
  flex-shrink: 0;
}

.order-grid > .panel__empty {
  grid-column: 1 / -1;
}

.order-card--detail {
  margin-top: 4px;
}

.studio-detail {
  display: grid;
  gap: 18px;
}

.studio-detail__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.studio-detail__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.studio-detail__title-row .order-badge {
  margin: 0;
}

.studio-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.home-stat {
  display: grid;
  gap: 4px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-stat--static {
  cursor: default;
}

.home-stat:not(.home-stat--static):hover {
  border-color: rgba(47, 126, 184, 0.35);
  transform: translateY(-1px);
}

.home-stat__value {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.home-stat__value--sm {
  font-size: 1.15rem;
}

.home-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.home-steps,
.home-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-list {
  list-style: disc;
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(22, 48, 68, 0.04);
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.orders-search:focus-within {
  border-color: rgba(47, 126, 184, 0.45);
  color: var(--blue);
}

.orders-search i {
  font-size: 0.9rem;
}

.orders-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.orders-search input::placeholder {
  color: var(--muted);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.equipe-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.equipe-faq {
  max-width: none;
  margin: 0;
}

.equipe-faq .faq__item {
  opacity: 1;
  transform: none;
}

.equipe-faq .faq__q {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.equipe-faq__name {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.equipe-faq__id {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.equipe-faq__body {
  padding: 4px 22px 20px;
}

.equipe-faq__actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding-top: 4px;
}

.equipe-faq__actions .btn {
  width: auto;
  flex: 0 0 auto;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
}

.equipe-faq .btn:hover,
.equipe-faq .btn:active {
  transform: none;
}

.equipe-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.equipe-card__top h3 {
  margin: 0 0 4px;
}

.equipe-card__section {
  margin: 12px 0 10px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.equipe-perms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.equipe-perm {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(22, 48, 68, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.equipe-perm:hover {
  border-color: rgba(47, 126, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.equipe-perm:focus-within {
  border-color: rgba(47, 126, 184, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.12);
}

.equipe-perm input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.equipe-perm:has(input:checked) {
  border-color: rgba(47, 126, 184, 0.4);
  background: var(--blue-wash);
}

.equipe-perm__label {
  min-width: 0;
  line-height: 1.35;
}

.studio-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(22, 48, 68, 0.14);
  box-shadow: inset 0 0 0 1px rgba(22, 48, 68, 0.06);
  transition: background 0.4s var(--ease);
}

.studio-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 48, 68, 0.22);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.equipe-perm input:checked + .equipe-perm__label + .studio-switch,
.studio-check input:checked + .studio-switch {
  background: linear-gradient(180deg, #3b8ec7 0%, var(--blue) 72%, #2872a8 100%);
}

.equipe-perm input:checked + .equipe-perm__label + .studio-switch::after,
.studio-check input:checked + .studio-switch::after {
  transform: translateX(20px);
}

.studio-modal__dialog--confirm {
  width: min(420px, 100%);
}

.studio-confirm__text {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.studio-confirm__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-form--inline {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 720px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .equipe-perms {
    grid-template-columns: 1fr;
  }

  .studio-form--inline {
    grid-template-columns: 1fr;
  }
}

.studio-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.studio-card__head {
  margin-bottom: 14px;
}

.studio-card__head h3 {
  margin-bottom: 6px;
}

.studio-card__head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-card__head--row h3 {
  margin: 0;
}

.studio-edit--stack {
  grid-template-columns: 1fr;
}

.studio-subsection {
  margin: 18px 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 2px dashed rgba(22, 48, 68, 0.18);
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.9);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.studio-dropzone:hover,
.studio-dropzone.is-drag {
  border-color: rgba(47, 126, 184, 0.55);
  background: rgba(215, 235, 246, 0.35);
  transform: translateY(-1px);
}

.studio-dropzone__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(22, 48, 68, 0.08);
  color: var(--blue);
  font-size: 1.25rem;
}

.studio-dropzone__browse {
  color: var(--blue);
  font-weight: 600;
}

.studio-deposit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.studio-deposit__drop {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 240px;
}

.studio-deposit__drop .studio-dropzone {
  flex: 1;
  min-height: 240px;
}

.studio-deposit__files {
  min-width: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.studio-deposit__files .studio-subsection {
  margin: 0;
}

.studio-deposit__files .studio-files {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
}

.studio-deposit__files .studio-files__list {
  flex: 1;
  overflow: auto;
  max-height: 280px;
  padding-right: 2px;
}

.studio-deposit__files .studio-files__empty {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 160px;
}

.studio-upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.studio-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: #fff;
}

.studio-upload-item__body {
  flex: 1;
  min-width: 0;
}

.studio-upload-item__body p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-upload-item__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 48, 68, 0.08);
  overflow: hidden;
}

.studio-upload-item__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.2s linear;
}

.studio-upload-item__status {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.studio-upload-item.is-done .studio-upload-item__status {
  color: #1f6b48;
}

.studio-upload-item.is-error .studio-upload-item__status {
  color: #8a2432;
}

.studio-files__list {
  display: grid;
  gap: 8px;
}

.studio-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: #fff;
}

.studio-file-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-file-row__meta > i {
  color: var(--blue);
}

.studio-file-row__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-file-row__sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.studio-file-row__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.studio-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
}

.studio-icon-btn--danger {
  color: #8a2432;
}

.studio-icon-btn--danger:hover {
  color: #8a2432;
  background: rgba(184, 47, 62, 0.08);
}

.studio-detail__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.studio-btn-danger {
  color: #8a2432;
  border-color: rgba(184, 47, 62, 0.35);
}

.studio-btn-danger:hover {
  color: #6e1c28;
  background: rgba(184, 47, 62, 0.08);
  border-color: rgba(184, 47, 62, 0.5);
}

@media (max-width: 860px) {
  .studio-detail__grid {
    grid-template-columns: 1fr;
  }
}

.studio-modal[hidden] {
  display: none !important;
}

.studio-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s;
}

.studio-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.studio-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 48, 68, 0.28);
  cursor: pointer;
}

.studio-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 22px 22px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(22, 48, 68, 0.08);
  box-shadow: 0 24px 60px rgba(22, 48, 68, 0.18);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.32s var(--ease);
}

.studio-modal.is-open .studio-modal__dialog {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .studio-modal,
  .studio-modal__dialog {
    transition: none;
  }

  .studio-modal__dialog {
    transform: none;
  }
}

.studio-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.studio-modal__top h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.studio-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  background: rgba(22, 48, 68, 0.05);
}

.studio-modal__close:hover {
  color: var(--ink);
  background: rgba(22, 48, 68, 0.08);
}

.studio-create h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 750;
}

.studio-create {
  padding: 20px 22px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.studio-rail {
  min-height: 0;
  height: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 16px;
  border-right: 1px solid rgba(22, 48, 68, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.studio-rail__label {
  margin: 0 10px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-rail__nav {
  display: grid;
  gap: 6px;
}

.studio-rail__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.studio-rail__btn span:nth-child(2) {
  flex: 1;
}

.studio-rail__badge {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
}

.notif-list {
  display: grid;
  gap: 6px;
}

.notif-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "title time actions"
    "body body body";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.notif-card:hover {
  border-color: rgba(47, 126, 184, 0.28);
  background: #fff;
}

.notif-card.is-unread {
  background: var(--blue-wash);
  border-color: rgba(47, 126, 184, 0.18);
}

.notif-card__top {
  display: contents;
}

.notif-card__top h3 {
  grid-area: title;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
}

.notif-card__top time {
  grid-area: time;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.notif-card__body {
  grid-area: body;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  min-width: 0;
}

.notif-card__read {
  margin: 0;
}

.notif-card__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.page-panel .notif-card .studio-icon-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 8px;
}

.vo-script {
  margin: 0;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 12px;
}

.order-detail__desc {
  margin-top: 10px;
  max-width: 54ch;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.order-progress {
  margin-bottom: 18px;
}

.order-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.order-progress__top strong {
  color: var(--ink);
  font-size: 1rem;
}

.order-progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 48, 68, 0.08);
  overflow: hidden;
  margin-bottom: 16px;
}

.order-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b8ec7, var(--blue));
}

.order-steps {
  --step-count: 5;
  --step-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.order-steps__item {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.order-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: rgba(22, 48, 68, 0.12);
  z-index: 0;
}

.order-steps__item.is-done:not(:last-child)::after {
  background: var(--blue);
}

.order-steps__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(22, 48, 68, 0.14);
  box-shadow: 0 0 0 3px rgba(22, 48, 68, 0.04);
  position: relative;
  z-index: 1;
}

.order-steps__item.is-done {
  color: var(--blue);
}

.order-steps__item.is-done .order-steps__dot {
  background: var(--blue);
}

.order-steps__item.is-current {
  color: var(--ink);
}

.order-steps__item.is-current .order-steps__dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 126, 184, 0.18);
}

.order-info {
  margin: 0;
  display: grid;
  gap: 12px;
}

.order-info__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: start;
}

.order-info__row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.order-info__row dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
  text-align: right;
  word-break: break-word;
}

.order-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.order-pill--ok {
  background: rgba(34, 120, 80, 0.12);
  color: #1f6b48;
}

.order-pill--wait {
  background: rgba(184, 120, 47, 0.12);
  color: #8a5a1f;
}

@media (max-width: 720px) {
  .order-steps {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .order-steps__item {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .order-info__row {
    grid-template-columns: 1fr;
  }

  .order-info__row dd {
    text-align: left;
  }
}

.studio-rail__btn i {
  width: 1.1em;
  text-align: center;
  opacity: 0.9;
}

.studio-rail__btn:hover {
  color: var(--ink);
  background: rgba(47, 126, 184, 0.06);
}

.studio-rail__btn.is-active {
  color: var(--ink);
  background: rgba(47, 126, 184, 0.12);
  font-weight: 600;
}

.order-card--compact .order-card__top {
  margin-bottom: 0;
}

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.studio-ca {
  padding: 24px 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 251, 0.9));
  border: 1px solid rgba(22, 48, 68, 0.08);
}

.studio-ca__top {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.studio-ca__total {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.month-picker {
  position: relative;
  min-width: 220px;
}

.month-picker__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.month-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 48, 68, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.month-picker__trigger:hover,
.month-picker__trigger[aria-expanded="true"] {
  border-color: rgba(47, 126, 184, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.12);
}

.month-picker__trigger i {
  color: var(--muted);
  font-size: 0.68rem;
  transition: transform 0.22s var(--ease);
}

.month-picker.is-open .month-picker__trigger i {
  transform: rotate(180deg);
}

.month-picker__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  width: 292px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: #fff;
  box-shadow: 0 18px 40px rgba(22, 48, 68, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.2s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
}

.month-picker.is-open .month-picker__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .month-picker__panel,
  .month-picker__trigger i {
    transition: none;
  }

  .month-picker__panel {
    transform: none;
  }
}

.month-picker__year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.month-picker__year-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.month-picker__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-wash);
  color: var(--blue);
  cursor: pointer;
}

.month-picker__nav:hover {
  background: var(--blue);
  color: #fff;
}

.month-picker__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.month-picker__cell {
  padding: 9px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.month-picker__cell:hover {
  background: var(--blue-wash);
  color: var(--blue);
}

.month-picker__cell.is-selected {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.month-picker__cell.is-now:not(.is-selected) {
  box-shadow: inset 0 0 0 1px rgba(47, 126, 184, 0.35);
  color: var(--blue);
  font-weight: 600;
}

.month-picker__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 48, 68, 0.08);
}

.month-picker__link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.month-picker__link:hover {
  color: var(--ink);
}

.month-picker__link--accent {
  color: var(--blue);
}

.month-picker__link--accent:hover {
  color: #215d8c;
}

.planning-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.planning-nav__label {
  margin: 0;
  min-width: 11rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.planning-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.planning-stat {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 2px;
}

.planning-stat--alert {
  border-color: rgba(196, 86, 72, 0.28);
  background: #fff6f4;
}

.planning-stat__value {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.planning-stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.planning-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  overflow: hidden;
}

.planning-cal.is-animating {
  pointer-events: none;
}

.planning-cal__dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 2px;
}

.planning-day {
  min-height: 112px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-day.is-empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.planning-day.is-today {
  border-color: rgba(47, 126, 184, 0.45);
  background: var(--blue-wash);
  box-shadow: 0 0 0 1px rgba(47, 126, 184, 0.12);
}

.planning-day.has-items {
  background: #fff;
}

.planning-day__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.planning-day.is-today .planning-day__num {
  color: var(--blue);
}

.planning-day__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.planning-chip {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--blue-soft);
  color: var(--ink);
}

.planning-chip:hover {
  filter: brightness(0.97);
}

.planning-chip--brief {
  background: #eef2f6;
}

.planning-chip--montage,
.planning-chip--preview {
  background: var(--blue-soft);
}

.planning-chip--livre,
.planning-chip--termine {
  background: #e3f4ea;
}

.planning-chip.is-late {
  background: #fde8e4;
  color: #8a3a2e;
}

.planning-undated__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.planning-undated__list .planning-chip {
  width: auto;
  max-width: 100%;
}

.planning-day.is-leaving {
  animation: planning-card-leave 0.28s var(--ease-settle) forwards;
  animation-delay: var(--stagger, 0ms);
  pointer-events: none;
}

.planning-day.is-enter {
  animation: planning-card-enter 0.32s var(--ease) both;
  animation-delay: var(--stagger, 0ms);
}

.planning-day.is-empty.is-enter {
  animation: none;
}

@keyframes planning-card-leave {
  to {
    opacity: 0;
    transform: translateY(var(--leave-y, 72px));
  }
}

@keyframes planning-card-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .planning-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-deposit {
    grid-template-columns: 1fr;
  }

  .studio-deposit__drop,
  .studio-deposit__drop .studio-dropzone,
  .studio-deposit__files {
    min-height: 200px;
  }

  .planning-day {
    min-height: 84px;
    padding: 6px;
  }
}

@media (max-width: 720px) {
  .planning-cal__dow {
    font-size: 0.62rem;
  }

  .planning-day {
    min-height: 72px;
    border-radius: 10px;
  }

  .planning-chip {
    font-size: 0.62rem;
    padding: 4px 5px;
  }
}

.studio-form,
.studio-edit,
.studio-upload {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.studio-upload {
  margin-top: 14px;
}

.studio-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.studio-field--inline {
  min-width: 180px;
}

.studio-field--grow {
  grid-column: 1 / -1;
}

.studio-field input,
.studio-field select,
.studio-field textarea,
.studio-edit input,
.studio-edit select,
.studio-edit textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(22, 48, 68, 0.03);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.studio-field textarea {
  min-height: 92px;
  resize: vertical;
}

.studio-field select,
.studio-edit select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c7384' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.nice-select {
  position: relative;
}

.nice-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nice-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.nice-select__trigger:hover,
.nice-select.is-open .nice-select__trigger {
  border-color: rgba(47, 126, 184, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.12);
}

.nice-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nice-select__trigger i {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.68rem;
  transition: transform 0.22s var(--ease);
}

.nice-select.is-open .nice-select__trigger i {
  transform: rotate(180deg);
}

.nice-select.is-disabled .nice-select__trigger {
  opacity: 0.65;
  cursor: not-allowed;
}

.nice-select__panel {
  position: fixed;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: #fff;
  box-shadow: 0 16px 36px rgba(22, 48, 68, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top center;
  transition:
    opacity 0.2s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
}

.nice-select.is-open .nice-select__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .nice-select__panel,
  .nice-select__trigger i {
    transition: none;
  }

  .nice-select__panel {
    transform: none;
  }
}

.nice-select__list {
  display: grid;
  gap: 2px;
}

.nice-select__option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.nice-select__option:hover {
  background: var(--blue-wash);
  color: var(--blue);
}

.nice-select__option.is-selected {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.nice-select__option.is-selected:hover {
  background: #276ca0;
  color: #fff;
}

.studio-field input:hover,
.studio-field select:hover,
.studio-field textarea:hover,
.studio-edit input:hover,
.studio-edit select:hover,
.studio-edit textarea:hover {
  border-color: rgba(47, 126, 184, 0.28);
  background-color: rgba(255, 255, 255, 0.9);
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus,
.studio-edit input:focus,
.studio-edit select:focus,
.studio-edit textarea:focus {
  border-color: rgba(47, 126, 184, 0.45);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.12);
}

.studio-field input::placeholder,
.studio-field textarea::placeholder,
.studio-edit input::placeholder,
.studio-edit textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.studio-field input.is-autofilled,
.studio-edit input.is-autofilled {
  border-color: rgba(47, 126, 184, 0.4);
  background-color: var(--blue-wash);
}

.studio-field input:disabled,
.studio-field select:disabled,
.studio-field textarea:disabled,
.studio-edit input:disabled,
.studio-edit select:disabled,
.studio-edit textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: rgba(247, 250, 252, 0.9);
}

.studio-field textarea,
.studio-edit textarea {
  resize: vertical;
  min-height: 84px;
}

.studio-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  min-height: 26px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
}

.studio-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.studio-check:has(input:disabled) {
  opacity: 0.65;
  cursor: not-allowed;
}

.studio-form__msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
  color: #1f6b48;
}

.studio-form__msg.is-error {
  color: #8a2432;
}

.profil-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profil-card {
  grid-column: 1 / -1;
}

.profil-photo {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profil-photo__preview {
  position: relative;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--blue-wash);
  box-shadow: 0 0 0 3px rgba(47, 126, 184, 0.16);
}

.profil-photo__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profil-photo__edit {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
}

.profil-photo__edit:hover {
  background: #276ca0;
}

.profil-photo__actions {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profil-photo__source {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.profil-photo__reset {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.profil-photo__reset:hover {
  color: #215d8c;
}

.studio-form.profil-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 8px;
}

.profil-form .studio-field {
  flex: 1 1 220px;
  min-width: 0;
}

.profil-form .btn {
  flex: 0 0 auto;
  align-self: end;
}

.profil-form .studio-form__msg {
  flex: 1 1 100%;
  grid-column: auto;
}

.profil-meta {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.profil-meta > div {
  display: grid;
  gap: 4px;
}

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

.profil-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.profil-meta__id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profil-copy {
  flex-shrink: 0;
}

.profil-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profil-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--blue-wash);
  color: var(--blue);
}

.profil-role--owner {
  background: #163044;
  color: #fff;
}

.profil-role--studio {
  background: var(--blue);
  color: #fff;
}

.profil-role--voix {
  background: #efe7ff;
  color: #5b3ea8;
}

.profil-links {
  display: grid;
  gap: 8px;
}

.profil-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: #fff;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.28s var(--ease);
}

.profil-link:hover {
  background: var(--blue-wash);
  border-color: rgba(47, 126, 184, 0.22);
  color: var(--blue);
}

.owner-settings {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.owner-settings > .studio-card {
  width: 100%;
}

.owner-settings > .studio-form__msg {
  width: 100%;
}

.owner-links {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.owner-link-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 10px;
  align-items: end;
}

.pay-box__note {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pay-box__bank {
  margin: 0;
  display: grid;
  gap: 10px;
}

.pay-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
}

.pay-copy dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pay-copy dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
}

.pay-copy dd span {
  min-width: 0;
  text-align: right;
  word-break: break-all;
}

.pay-box__links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.pay-box h3 + .pay-box__links {
  margin-top: 0;
}

.pay-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(22, 48, 68, 0.08);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.28s var(--ease);
}

.pay-link span {
  flex: 1;
}

.pay-link i:last-child {
  font-size: 0.78rem;
  opacity: 0.7;
}

.pay-link:hover {
  background: var(--blue-wash);
  border-color: rgba(47, 126, 184, 0.22);
  color: var(--blue);
}

.profil-link--current {
  background: var(--blue-wash);
  color: var(--blue);
  border-color: transparent;
}

.profil-layout .studio-card > .btn,
.profil-layout .studio-card > a.btn {
  margin-top: 16px;
  width: auto;
}

@media (max-width: 860px) {
  .profil-layout {
    grid-template-columns: 1fr;
  }

  .profil-photo {
    flex-direction: column;
    align-items: flex-start;
  }
}

.studio-file {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .studio-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .studio-main {
    padding: 22px 18px 110px;
  }

  .studio-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    overflow: visible;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(22, 48, 68, 0.08);
    background: rgba(255, 255, 255, 0.92);
  }

  .studio-rail__label {
    display: none;
  }

  .studio-rail__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .page-client .studio-rail__nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-studio .studio-rail__nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-voix-off .studio-rail__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-rail__btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px;
    font-size: 0.68rem;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .studio-top__actions {
    width: 100%;
  }

  .studio-top {
    flex-wrap: wrap;
  }

  .studio-form,
  .studio-edit,
  .studio-upload {
    grid-template-columns: 1fr;
  }

  .owner-link-row {
    grid-template-columns: 1fr auto;
  }

  .owner-link-row .studio-field:first-child {
    grid-column: 1 / -1;
  }

  .pay-copy {
    grid-template-columns: 1fr;
  }

  .pay-copy dd {
    justify-content: space-between;
  }

  .pay-copy dd span {
    text-align: left;
  }

  .order-card__top {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opt-media__frame,
  .opt-media__expand {
    transition: none;
  }

  .opt-media__frame:hover,
  .opt-media__frame.is-playing,
  .opt-media__expand:hover,
  .opt-media__expand:focus-visible {
    transform: none;
  }

  .planning-day.is-leaving,
  .planning-day.is-enter {
    animation: none;
  }
}

.theme-toggle {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1;
  transition:
    color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-toggle i {
  transition:
    transform 0.35s var(--ease),
    opacity 0.18s var(--ease);
}

.theme-toggle i.is-out {
  transform: rotate(-50deg) scale(0.7);
  opacity: 0;
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
  color: var(--blue);
  background: rgba(47, 126, 184, 0.1);
}

.page-panel .theme-toggle {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(22, 48, 68, 0.12);
  background: #fff;
}

.theme-menu {
  position: fixed;
  z-index: 70;
  min-width: 188px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(22, 48, 68, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    transform 0.36s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.theme-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.theme-menu[hidden] {
  display: none !important;
}

.theme-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.theme-menu button:hover,
.theme-menu button:focus-visible {
  background: rgba(47, 126, 184, 0.08);
  color: var(--blue);
}

.theme-menu button[aria-checked="true"] {
  color: var(--blue);
  font-weight: 600;
}

.theme-menu button[aria-checked="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

html.theme-anim,
html.theme-anim body,
html.theme-anim body *:not(video):not(canvas):not(img) {
  transition-property: background, background-color, color, border-color, box-shadow, fill, stroke !important;
  transition-duration: 0.45s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle i,
  .theme-menu,
  .theme-menu button {
    transition: none;
  }

  .theme-toggle:active {
    transform: none;
  }

  .theme-menu {
    transform: none;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue-soft: #2a3642;
  --blue-wash: #1c2128;
  --paper: #16181c;
  --white: #22262c;
  --ink: #ffffff;
  --muted: #c9d2da;
  --line: rgba(255, 255, 255, 0.12);
  background: #16181c;
}

html[data-theme="dark"] body {
  background: #16181c;
  color: #fff;
}

html[data-theme="dark"] .splash,
html[data-theme="dark"] .page-studio {
  background: #16181c;
}

html[data-theme="dark"] .nav,
html[data-theme="dark"] .studio-top,
html[data-theme="dark"] .studio-rail {
  background: rgba(34, 38, 44, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

html[data-theme="dark"] .nav.is-open {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

html[data-theme="dark"] .hero__fx-orb {
  opacity: 0.07;
}

html[data-theme="dark"] .hero__fx-warp,
html[data-theme="dark"] .hero__fx-beam {
  opacity: 0.08;
}

html[data-theme="dark"] .support-glow {
  opacity: 0.2;
  background: radial-gradient(55% 50% at 50% 50%, rgba(47, 126, 184, 0.2), transparent 72%);
}

html[data-theme="dark"] .hero__fx-warp,
html[data-theme="dark"] .support-glow {
  filter: blur(28px);
}

html[data-theme="dark"] .hero__fx-ring {
  opacity: 0.4;
  box-shadow: none;
}

html[data-theme="dark"] .hero__fx-grid {
  opacity: 0.28;
}

html[data-theme="dark"] .support__frame.is-hot .support-glow {
  opacity: 0.16;
}

html[data-theme="dark"] .support__frame.is-hot .support-panel {
  --panel-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .nav__cta,
html[data-theme="dark"] .btn--fill,
html[data-theme="dark"] .studio-top__avatar-btn,
html[data-theme="dark"] .studio-top__avatar-btn:hover,
html[data-theme="dark"] .studio-top__avatar-btn:focus-visible {
  box-shadow: none;
}

html[data-theme="dark"] .hero__frame,
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .pf-search,
html[data-theme="dark"] .pf-empty,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .order-tile,
html[data-theme="dark"] .studio-card,
html[data-theme="dark"] .home-stat,
html[data-theme="dark"] .orders-search,
html[data-theme="dark"] .equipe-perm,
html[data-theme="dark"] .equipe-perm:hover,
html[data-theme="dark"] .studio-top__brand,
html[data-theme="dark"] .studio-dropzone,
html[data-theme="dark"] .studio-dropzone__icon,
html[data-theme="dark"] .studio-upload-item,
html[data-theme="dark"] .studio-file-row,
html[data-theme="dark"] .studio-deposit__files,
html[data-theme="dark"] .studio-modal__dialog,
html[data-theme="dark"] .studio-create,
html[data-theme="dark"] .studio-ca,
html[data-theme="dark"] .notif-card,
html[data-theme="dark"] .notif-card:hover,
html[data-theme="dark"] .month-picker__trigger,
html[data-theme="dark"] .month-picker__panel,
html[data-theme="dark"] .planning-stat,
html[data-theme="dark"] .planning-day,
html[data-theme="dark"] .planning-day.has-items,
html[data-theme="dark"] .nice-select__trigger,
html[data-theme="dark"] .nice-select__panel,
html[data-theme="dark"] .profil-link,
html[data-theme="dark"] .pay-link,
html[data-theme="dark"] .page-panel .btn--ghost,
html[data-theme="dark"] .page-panel .theme-toggle,
html[data-theme="dark"] .theme-menu,
html[data-theme="dark"] .studio-field input,
html[data-theme="dark"] .studio-field select,
html[data-theme="dark"] .studio-field textarea,
html[data-theme="dark"] .studio-edit input,
html[data-theme="dark"] .studio-edit select,
html[data-theme="dark"] .studio-edit textarea,
html[data-theme="dark"] .studio-field input:hover,
html[data-theme="dark"] .studio-field select:hover,
html[data-theme="dark"] .studio-field textarea:hover,
html[data-theme="dark"] .studio-edit input:hover,
html[data-theme="dark"] .studio-edit select:hover,
html[data-theme="dark"] .studio-edit textarea:hover,
html[data-theme="dark"] .studio-field input:focus,
html[data-theme="dark"] .studio-field select:focus,
html[data-theme="dark"] .studio-field textarea:focus,
html[data-theme="dark"] .studio-edit input:focus,
html[data-theme="dark"] .studio-edit select:focus,
html[data-theme="dark"] .studio-edit textarea:focus {
  background: #22262c;
  background-color: #22262c;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
}

html[data-theme="dark"] .page-panel .btn--ghost:hover,
html[data-theme="dark"] .planning-day.is-today,
html[data-theme="dark"] .notif-card.is-unread,
html[data-theme="dark"] .profil-link:hover,
html[data-theme="dark"] .profil-link--current,
html[data-theme="dark"] .pay-link:hover,
html[data-theme="dark"] .btn--ghost:hover {
  background: #2c323a;
  color: var(--blue);
}

html[data-theme="dark"] .hero__more,
html[data-theme="dark"] .pf-hero__light {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .hero__more:hover {
  color: var(--blue);
  border-color: var(--blue);
}

html[data-theme="dark"] .pf-hero__bold,
html[data-theme="dark"] .pf-hero__light {
  color: #fff;
}

html[data-theme="dark"] .pf-hero__light {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .foot,
html[data-theme="dark"] .contact {
  background: #16181c;
}

html[data-theme="dark"] .studio-modal__backdrop {
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .studio-switch {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

html[data-theme="dark"] .studio-modal__close,
html[data-theme="dark"] .studio-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .order-badge--livre,
html[data-theme="dark"] .order-badge--termine,
html[data-theme="dark"] .planning-chip--livre,
html[data-theme="dark"] .planning-chip--termine {
  background: #163228;
  color: #b7e4c7;
}

html[data-theme="dark"] .page-panel .studio-btn-danger,
html[data-theme="dark"] .page-panel .studio-btn-danger:hover {
  color: #f0b4bc;
  background: #2a1618;
  border-color: rgba(240, 180, 188, 0.28);
}

html[data-theme="dark"] .planning-stat--alert,
html[data-theme="dark"] .planning-chip.is-late {
  background: #2a1816;
  color: #f0c2b8;
  border-color: rgba(240, 194, 184, 0.28);
}

html[data-theme="dark"] .planning-chip,
html[data-theme="dark"] .planning-chip--brief,
html[data-theme="dark"] .planning-chip--montage,
html[data-theme="dark"] .planning-chip--preview {
  background: #1a242c;
  color: #fff;
}

html[data-theme="dark"] .profil-role--voix {
  background: #241c33;
  color: #d7c8f5;
}

html[data-theme="dark"] .studio-field input:disabled,
html[data-theme="dark"] .studio-field select:disabled,
html[data-theme="dark"] .studio-field textarea:disabled,
html[data-theme="dark"] .studio-edit input:disabled,
html[data-theme="dark"] .studio-edit select:disabled,
html[data-theme="dark"] .studio-edit textarea:disabled {
  background-color: #1a1e24;
  color: var(--muted);
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #22262c inset;
}

html[data-theme="dark"] ::selection {
  background: rgba(47, 126, 184, 0.45);
  color: #fff;
}

@media (max-width: 960px) {
  html[data-theme="dark"] .studio-rail {
    background: rgba(28, 32, 38, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

html[data-theme="dark"] .support-msg--client span {
  background: #31404e;
  color: #fff;
}

html[data-theme="dark"] .support-panel__feed {
  background: var(--white);
}

html[data-theme="dark"] .process-num {
  color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .process-progress__track {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .process-step:hover,
html[data-theme="dark"] .process-step.is-active {
  background: #2a3038;
}

html[data-theme="dark"] .process-step:hover .process-num,
html[data-theme="dark"] .process-step.is-active .process-num {
  color: rgba(126, 175, 208, 0.7);
}

html[data-theme="dark"] .process-step:hover .process-step__icon,
html[data-theme="dark"] .process-step.is-active .process-step__icon {
  background: #1c2128;
  box-shadow: none;
}

