:root {
  --void: #05070a;
  --bg: #0a0d12;
  --surface: #11161d;
  --surface-2: #161d26;
  --line: #1f2a35;
  --line-bright: #2c3c4a;

  --teal-900: #0f2e38;
  --teal-700: #1a5871;
  --teal-500: #1e8ca3;
  --cyan-400: #2eaebb;
  --cyan-300: #36d6e6;

  --indigo: #6f6bd6;

  --ink-0: #f1f8fa;
  --ink-1: #b9cdd4;
  --ink-2: #7e94a0;
  --ink-3: #4d6270;

  --f-display: "Space Grotesk", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink-0);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection {
  background: var(--cyan-400);
  color: var(--void);
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--teal-700);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-400);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.loader-mark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-0);
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 1001;
  background: linear-gradient(90deg, var(--cyan-400), var(--indigo));
  transform-origin: left;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: transparent;
  transition:
    background 0.4s var(--ease-out),
    padding 0.4s var(--ease-out),
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 11, 15, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  padding-top: 13px;
  padding-bottom: 13px;
  border-color: var(--line);
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.bracket {
  color: var(--cyan-400);
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  position: relative;
  font-size: 0.88rem;
  color: var(--ink-1);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--cyan-400);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.mobile-hover-active {
  color: var(--ink-0);
}
.nav-links a:hover::after,
.nav-links a.mobile-hover-active::after {
  width: 100%;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink-0);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.nav-cta:hover,
.nav-cta.mobile-hover-active {
  box-shadow: 0 0 4px 0 var(--cyan-400);
  background: rgba(46, 174, 187, 0.07);
  transform: translateY(-2px);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink-0);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 340px);
  z-index: 999;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 110px 36px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--ink-0);
}
.mobile-gh {
  margin-top: 12px;
  color: var(--cyan-400) !important;
  font-size: 1rem !important;
  font-family: var(--f-body) !important;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--pad);
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(46, 174, 187, 0.14),
      transparent 20%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(111, 107, 214, 0.18),
      transparent 22%
    ),
    linear-gradient(180deg, rgba(8, 14, 24, 0.95), rgba(8, 12, 20, 0.98)),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 40% 15%,
      rgba(255, 255, 255, 0.08),
      transparent 18%
    ),
    radial-gradient(
      circle at 72% 35%,
      rgba(46, 174, 187, 0.12),
      transparent 20%
    );
}
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.hero-blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.92;
  transform: translateZ(0);
  will-change: transform, filter, opacity;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 100%,
      var(--bg) 10%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--bg) 0%,
      transparent 14%,
      transparent 80%,
      var(--bg) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 90px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--cyan-300);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 16px;
  background: rgba(46, 174, 187, 0.05);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 0 0 rgba(54, 214, 230, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 214, 230, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(54, 214, 230, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 214, 230, 0);
  }
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  will-change: transform, filter, opacity;
}
.hero-title-accent {
  background: linear-gradient(100deg, var(--cyan-300), var(--indigo) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blink-cursor {
  color: var(--cyan-400);
  font-weight: 500;
  margin-left: 2px;
  animation: blinkCursor 1.1s step-end infinite;
}
@keyframes blinkCursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-1);
  max-width: 540px;
  margin-bottom: 38px;
}
.hero-sub a {
  color: var(--cyan-300);
  border-bottom: 1px solid rgba(54, 214, 230, 0.3);
  transition: border-color 0.3s;
}
.hero-sub a:hover,
.hero-sub a.mobile-hover-active {
  border-color: var(--cyan-300);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 10px;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    background 0.35s,
    border-color 0.35s;
  will-change: transform, box-shadow;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--btn-hover-x, 20%) var(--btn-hover-y, 30%),
    rgba(255, 255, 255, 0.22),
    transparent 35%
  );
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-position 0.25s ease;
  pointer-events: none;
}
.btn:hover::before,
.btn.mobile-hover-active::before {
  opacity: 1;
  transform: scale(1.02);
}
.btn.is-unhovering::before {
  opacity: 0;
  transform: scale(0.92);
}
.btn-primary {
  background: linear-gradient(100deg, var(--cyan-400), var(--teal-500));
  color: #04141a;
  box-shadow: 0 10px 24px -12px rgba(46, 174, 187, 0.55);
}
.btn-primary:hover,
.btn-primary.mobile-hover-active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 38px -18px rgba(46, 174, 187, 0.62);
}
.btn-primary svg {
  transition: transform 0.35s var(--ease-out);
}
.btn-primary:hover svg,
.btn-primary.mobile-hover-active svg {
  transform: translateX(4px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover,
.btn-ghost.mobile-hover-active {
  border-color: transparent;
  background: rgba(46, 174, 187, 0.1);
  transform: translateY(-2px) scale(1.01);
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-family: var(--f-mono);
}
.scroll-dot {
  position: absolute;
  top: -10px;
  left: -1.5px;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--cyan-300);
  animation: scrollMove 2.4s ease-in-out infinite;
}
@keyframes scrollMove {
  0% {
    top: -14px;
  }
  100% {
    top: 44px;
  }
}
.hero-portrait {
  position: absolute;
  right: clamp(0px, 6vw, 90px);
  bottom: 0;
  z-index: 1;
  width: clamp(260px, 32vw, 460px);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
  --portrait-hover-x: 50%;
  --portrait-hover-y: 50%;
}
.hero-portrait:hover,
.hero-portrait.mobile-hover-active {
  transform: translateY(-6px) scale(1.02);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(
    circle at var(--portrait-hover-x) var(--portrait-hover-y),
    rgba(54, 214, 230, 0.22),
    transparent 28%
  );
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-position 0.25s ease;
  pointer-events: none;
}
.hero-portrait:hover::before,
.hero-portrait.mobile-hover-active::before {
  opacity: 0.9;
  transform: scale(1);
}
.hero-portrait.is-unhovering::before {
  opacity: 0;
  transform: scale(0.94);
}
.portrait-img {
  position: relative;
  z-index: 2;
  width: 84%;
  border-radius: 24px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  transition:
    transform 0.45s var(--ease-out),
    filter 0.45s var(--ease-out);
}
.hero-portrait:hover .portrait-img,
.hero-portrait.mobile-hover-active .portrait-img {
  transform: scale(1.04) rotate(-0.5deg);
  filter: drop-shadow(0 36px 72px rgba(0, 0, 0, 0.55));
}
.portrait-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(54, 214, 230, 0.2);
  animation: spin 32s linear infinite;
  transition:
    border-color 0.35s ease,
    transform 0.45s ease;
}
.hero-portrait:hover .portrait-ring,
.hero-portrait.mobile-hover-active .portrait-ring {
  border-color: rgba(54, 214, 230, 0.65);
  transform: scale(1.02);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.portrait-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 214, 230, 0.2), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}
@media (max-width: 880px) {
  .hero-portrait {
    display: none;
  }
}
.marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 18px 0;
}
.marquee {
  width: 100%;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  flex-shrink: 0;
}
.marquee-track .dot {
  color: var(--teal-500);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
main section {
  padding: 120px var(--pad);
  position: relative;
}
.section-head {
  max-width: var(--container);
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--cyan-400);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  max-width: 720px;
}
.section-title em {
  font-style: normal;
  color: var(--cyan-300);
}
.about {
  max-width: var(--container);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--ink-1);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 480px;
}
.about-portrait-mobile {
  display: none;
}
@media (max-width: 880px) {
  .about-portrait-mobile {
    display: block;
    float: right;
    width: 84px;
    aspect-ratio: 1/1;
    margin: 2px 0 16px 16px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(46, 174, 187, 0.25);
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.55);
  }
  .about-portrait-mobile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      circle at 70% 20%,
      rgba(54, 214, 230, 0.22),
      transparent 60%
    );
    pointer-events: none;
  }
  .about-portrait-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(12, 18, 26, 0.98),
    rgba(15, 20, 28, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  transition:
    border-color 0.35s,
    box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Spot radial qui suit le curseur */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--stat-hover-x, 90%) var(--stat-hover-y, 20%),
    rgba(46, 174, 187, 0.18),
    transparent 30%
  );
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-position 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.stat-card:hover::before,
.stat-card.mobile-hover-active::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stat-card.is-unhovering::before {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

/* Bordure "scan" : un halo conique qui tourne lentement, masqué pour
   ne laisser apparaître qu'un fin contour discret, révélé au hover. */
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(54, 214, 230, 0.55) 4%,
    transparent 14%,
    transparent 86%,
    rgba(30, 140, 163, 0.45) 96%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  animation: stat-scan-rotate 7.5s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.stat-card:hover::after,
.stat-card.mobile-hover-active::after {
  opacity: 0.75;
  animation-play-state: running;
}
@keyframes stat-scan-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Coins "viseur" qui se déploient au hover */
.stat-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--cyan-300);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}
.stat-corner--tl {
  top: 8px;
  left: 8px;
  border-width: 1.5px 0 0 1.5px;
  transform: translate(4px, 4px) scale(0.6);
}
.stat-corner--tr {
  top: 8px;
  right: 8px;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(-4px, 4px) scale(0.6);
}
.stat-corner--bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 1.5px 1.5px;
  transform: translate(4px, -4px) scale(0.6);
}
.stat-corner--br {
  bottom: 8px;
  right: 8px;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-4px, -4px) scale(0.6);
}
.stat-card:hover .stat-corner,
.stat-card.mobile-hover-active .stat-corner {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.stat-card.is-unhovering .stat-corner {
  opacity: 0;
  transform: translate(0, 0) scale(0.6);
}
.stat-card.is-unhovering .stat-corner.stat-corner--tl {
  transform: translate(4px, 4px) scale(0.6);
}
.stat-card.is-unhovering .stat-corner.stat-corner--tr {
  transform: translate(-4px, 4px) scale(0.6);
}
.stat-card.is-unhovering .stat-corner.stat-corner--bl {
  transform: translate(4px, -4px) scale(0.6);
}
.stat-card.is-unhovering .stat-corner.stat-corner--br {
  transform: translate(-4px, -4px) scale(0.6);
}

.stat-card:hover,
.stat-card.mobile-hover-active {
  border-color: rgba(46, 174, 187, 0.35);
  box-shadow: 0 24px 50px -26px rgba(46, 174, 187, 0.32);
}

/* Glow pulsé sur le chiffre au hover */
.stat-card:hover .stat-num,
.stat-card.mobile-hover-active .stat-num {
  color: var(--cyan-300);
  animation: stat-num-glow 1.8s ease-in-out infinite;
}
@keyframes stat-num-glow {
  0%,
  100% {
    text-shadow: 0 0 0px rgba(54, 214, 230, 0);
  }
  50% {
    text-shadow:
      0 0 16px rgba(54, 214, 230, 0.65),
      0 0 32px rgba(54, 214, 230, 0.25);
  }
}
.stat-num {
  position: relative;
  z-index: 3;
  display: block;
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cyan-300);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}
.stat-label {
  position: relative;
  z-index: 3;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.4;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.process {
  max-width: var(--container);
  margin: 0 auto;
}
.process-list {
  display: flex;
  flex-direction: column;
}
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s,
    border-color 0.35s;
}
.process-item:first-child {
  border-top: 1px solid var(--line);
}
.process-item:hover,
.process-item.mobile-hover-active {
  transform: translateX(4px);
  color: var(--cyan-300);
}
.process-num {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink-3);
  transition:
    color 0.35s ease,
    transform 0.35s ease;
}
.process-item:hover .process-num,
.process-item.mobile-hover-active .process-num {
  color: var(--cyan-400);
  transform: scale(1.04);
}
.process-body h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--ink-0);
  transition: color 0.35s ease;
}
.process-body p {
  color: var(--ink-1);
  font-size: 0.98rem;
  max-width: 620px;
}
.process-item:hover .process-body h3,
.process-item.mobile-hover-active .process-body h3 {
  color: var(--cyan-300);
}
@media (max-width: 600px) {
  .process-item {
    grid-template-columns: 50px 1fr;
  }
  .process-num {
    font-size: 1.4rem;
  }
}
.stack {
  max-width: var(--container);
  margin: 0 auto;
  background: none;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stack-badge {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}
.stack-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.25;
  pointer-events: none;
}
.stack-badge:hover,
.stack-badge.mobile-hover-active {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
}
.stack-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}
.stack-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.stack-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.stack-badge:hover .stack-icon,
.stack-badge.mobile-hover-active .stack-icon {
  transform: translateY(-2px);
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.28);
}
.stack-badge:hover .stack-icon img,
.stack-badge.mobile-hover-active .stack-icon img {
  filter: brightness(0) invert(1);
}
.stack-badge:hover .stack-icon::after,
.stack-badge.mobile-hover-active .stack-icon::after {
  opacity: 1;
  transform: translateY(0);
}
.stack-badge h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
}
.stack-badge p {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.stack-badge--html {
  --accent: #e44d26;
  --accent-rgb: 228, 77, 38;
}
.stack-badge--css {
  --accent: #264de4;
  --accent-rgb: 38, 77, 228;
}
.stack-badge--js {
  --accent: #f7df1e;
  --accent-rgb: 247, 223, 30;
}
.stack-badge--react {
  --accent: #61dafb;
  --accent-rgb: 97, 218, 251;
}
.stack-badge--git {
  --accent: #f05032;
  --accent-rgb: 240, 80, 50;
}
@media (max-width: 860px) {
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}
.capabilities {
  max-width: var(--container);
  margin: 0 auto;
}
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}
.capability-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.capability-name {
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--ink-0);
}
.capability-pct {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  color: var(--cyan-300);
  font-variant-numeric: tabular-nums;
}
.capability-track {
  width: 100%;
  height: 8px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.capability-fill {
  height: 100%;
  width: 0%;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-300));
  position: relative;
  transition: width 1.4s var(--ease-out);
}
.capability-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
}
.capability-fill.is-filled::after {
  animation: shimmerBar 1.6s var(--ease-out) 0.3s;
}
@keyframes shimmerBar {
  to {
    transform: translateX(100%);
  }
}
.projects {
  max-width: var(--container);
  margin: 0 auto;
  perspective: 1400px;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.project-card {
  position: relative;
  background: rgba(17, 22, 29, 0.98);
  border: 1px solid rgba(41, 56, 71, 0.95);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--project-hover-x, 20%) var(--project-hover-y, 20%),
      rgba(46, 174, 187, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 15%,
      rgba(111, 107, 214, 0.08),
      transparent 18%
    );
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-position 0.25s ease;
}
.project-card:hover::before,
.project-card.mobile-hover-active::before {
  opacity: 1;
  transform: scale(1);
}
.project-card.is-unhovering::before {
  opacity: 0;
  transform: scale(0.94);
}
.project-card:hover,
.project-card.mobile-hover-active {
  border-color: rgba(46, 174, 187, 0.42);
  box-shadow: 0 34px 80px -30px rgba(46, 174, 187, 0.28);
  transform: translateY(-10px) rotateX(1.2deg) scale(1.01);
}
.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.project-card:not(.featured) {
  display: flex;
  flex-direction: column;
}
.project-media {
  position: relative;
  overflow: hidden;
  background: var(--void);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease-out);
  padding: 14px;
  box-sizing: border-box;
}
.project-card.featured .project-media {
  min-height: 280px;
}
.project-card:not(.featured) .project-media {
  aspect-ratio: 5 / 4;
  min-height: 210px;
}
.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(46, 174, 187, 0.18),
    transparent 34%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}
.project-card:hover .project-media::before,
.project-card.mobile-hover-active .project-media::before {
  opacity: 1;
}
.project-card:hover .project-media,
.project-card.mobile-hover-active .project-media {
  transform: translateY(-2px);
}
.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .project-img,
.project-card.mobile-hover-active .project-img {
  transform: scale(1.05) rotate(0.45deg);
}
.placeholder-icon {
  position: relative;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s var(--ease-out);
}
.project-card:hover .placeholder-icon,
.project-card.mobile-hover-active .placeholder-icon {
  transform: scale(1.1) translateY(-4px) rotate(-1deg);
}
[data-slide-in] {
  opacity: 0;
  transform-style: preserve-3d;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
[data-slide-in="left"] {
  transform: translateX(-70px) rotateY(18deg) scale(0.94);
}
[data-slide-in="right"] {
  transform: translateX(70px) rotateY(-18deg) scale(0.94);
}
[data-slide-in].is-in {
  opacity: 1;
  transform: translateX(0) rotateY(0) scale(1);
}
.project-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, var(--teal-900), var(--surface-2) 120%);
  border: 1px dashed var(--line-bright);
  margin: 10px;
  border-radius: 14px;
  color: var(--cyan-400);
  overflow: hidden;
}
.project-media-placeholder[data-lang="css"] {
  background: linear-gradient(145deg, #2a1f3d, var(--surface-2) 120%);
  color: #b79be0;
}
.placeholder-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(54, 214, 230, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 214, 230, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 0%,
    transparent 85%
  );
}
.placeholder-tag {
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  border-radius: 30px;
  padding: 4px 12px;
  background: rgba(5, 7, 10, 0.5);
  backdrop-filter: blur(4px);
}
.project-media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(54, 214, 230, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .project-media-placeholder::after,
.project-card.mobile-hover-active .project-media-placeholder::after {
  transform: translateX(120%);
}
.project-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}
.project-card:not(.featured) .project-info {
  padding: 26px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.project-num {
  font-family: var(--f-mono);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
  font-family: var(--f-mono);
}
.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.project-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
}
.project-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin: 0;
  transition: color 0.3s;
}
.project-card:hover .project-title,
.project-card.mobile-hover-active .project-title {
  color: var(--cyan-300);
}
.project-desc {
  color: var(--ink-1);
  font-size: 0.94rem;
  margin-bottom: 18px;
  flex: 1;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.project-tags span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--cyan-300);
  border: 1px solid rgba(54, 214, 230, 0.25);
  border-radius: 30px;
  padding: 5px 11px;
  background: rgba(54, 214, 230, 0.04);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-0);
  transition:
    gap 0.25s,
    color 0.25s;
}
.project-link:hover,
.project-link.mobile-hover-active {
  color: var(--cyan-300);
  gap: 11px;
}
.project-link svg {
  flex-shrink: 0;
}
.projects-more {
  text-align: center;
  margin-top: 50px;
}
@media (max-width: 860px) {
  .project-card.featured {
    grid-template-columns: 1fr;
  }
  .project-card.featured .project-media {
    min-height: 220px;
  }
}
@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    background: rgba(10, 14, 22, 0.96);
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }
  .project-card::before {
    display: none;
  }
  .project-card.featured .project-media {
    min-height: 190px;
  }
  .project-card:not(.featured) .project-media {
    min-height: 180px;
    aspect-ratio: auto;
  }
  .project-media {
    padding: 10px;
    background: rgba(10, 14, 22, 0.95);
  }
  .project-media::before {
    display: none;
  }
  .project-img {
    border-radius: 14px;
    transform: none;
  }
  .project-info {
    padding: 22px;
  }
  .project-top {
    margin-bottom: 14px;
  }
  .project-title-row {
    gap: 10px;
    margin-bottom: 10px;
  }
  .project-logo {
    width: 30px;
    height: 30px;
    padding: 3px;
  }
  .project-title {
    font-size: 1.2rem;
  }
  .project-desc {
    margin-bottom: 14px;
  }
  .project-tags {
    gap: 6px;
    margin-bottom: 16px;
  }
  .project-tags span {
    padding: 4px 10px;
    background: rgba(46, 174, 187, 0.08);
    border-color: rgba(46, 174, 187, 0.16);
  }
  .project-link {
    font-size: 0.9rem;
  }
}
@media (hover: none) {
  .project-card {
    transform: none !important;
  }
  [data-slide-in="left"],
  [data-slide-in="right"] {
    transform: translateY(16px) !important;
  }
  [data-slide-in].is-in {
    transform: none !important;
  }

  .btn.mobile-hover-active::before {
    opacity: 1;
    transform: scale(1.02);
  }
  .btn-primary.mobile-hover-active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 38px -18px rgba(46, 174, 187, 0.62);
  }
  .btn-primary.mobile-hover-active svg {
    transform: translateX(4px);
  }
  .btn-ghost.mobile-hover-active {
    border-color: var(--cyan-400);
    background: rgba(46, 174, 187, 0.1);
    transform: translateY(-2px) scale(1.01);
  }
  .hero-sub a.mobile-hover-active {
    border-color: var(--cyan-300);
  }
  .project-card.mobile-hover-active::before {
    opacity: 1;
  }
  .project-card.mobile-hover-active {
    border-color: rgba(46, 174, 187, 0.24);
    box-shadow: 0 18px 34px -24px rgba(46, 174, 187, 0.2);
    transform: translateY(-4px);
  }
  .project-card.mobile-hover-active .project-media::before {
    opacity: 1;
  }
  .project-card.mobile-hover-active .project-media {
    transform: translateY(-1px);
  }
  .project-card.mobile-hover-active .project-img {
    transform: scale(1.03) rotate(0.25deg);
  }
  .project-card.mobile-hover-active .project-title {
    color: var(--cyan-300);
  }
  .project-link.mobile-hover-active {
    color: var(--cyan-300);
    gap: 11px;
  }
  .contact-cta.mobile-hover-active {
    border-color: var(--cyan-400);
    background: rgba(255, 255, 255, 0.08);
  }
  .contact-cta.mobile-hover-active .contact-cta-arrow {
    transform: translateX(3px) rotate(-45deg);
  }
  .stat-card.mobile-hover-active::before {
    opacity: 1;
  }
  .stat-card.mobile-hover-active {
    transform: translateY(-2px);
  }
  .process-item.mobile-hover-active {
    transform: translateY(-2px);
  }
  .stack-badge.mobile-hover-active {
    transform: translateY(-2px);
  }
  .stack-badge.mobile-hover-active .stack-icon {
    transform: scale(1.04);
  }
  .stack-badge.mobile-hover-active .stack-icon::after {
    opacity: 1;
    transform: translateY(0);
  }
}
.philosophy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.philosophy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.philosophy-quote-mark {
  color: var(--cyan-400);
  opacity: 0.6;
  margin-bottom: 28px;
}
.philosophy-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.4;
  color: var(--ink-0);
  margin-bottom: 30px;
}
.philosophy-quote .word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.4s;
}
.philosophy-quote .word.is-lit {
  opacity: 1;
}
.philosophy-signature {
  font-family: var(--f-mono);
  color: var(--ink-2);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.timeline {
  max-width: var(--container);
  margin: 0 auto;
}
.timeline-list {
  position: relative;
  max-width: 760px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan-400), var(--line) 90%);
}
.timeline-item {
  position: relative;
  padding: 0 0 48px 44px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan-400);
  transition:
    background 0.3s,
    transform 0.3s var(--ease-out);
}
.timeline-item:hover .timeline-dot,
.timeline-item.mobile-hover-active .timeline-dot {
  background: var(--cyan-400);
  transform: scale(1.2);
}
.timeline-year {
  font-family: var(--f-mono);
  color: var(--cyan-400);
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.timeline-body h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.timeline-body p {
  color: var(--ink-1);
  font-size: 0.95rem;
  max-width: 560px;
}
.contact {
  text-align: left;
  overflow: hidden;
  background: var(--bg);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 38px;
}
.contact-copy {
  text-align: left;
}
.contact-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.contact-sub {
  color: var(--ink-1);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 28px;
}

.email {
  color: var(--cyan-400);
  font-size: 1.05rem;
}
.email:hover {
  filter: brightness(1.2);
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}
.field-row {
  display: grid;
  margin-bottom: 14px;
  position: relative;
}
.field-row.full {
  grid-column: 1 / -1;
}
.field-row label {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    font-size 0.25s ease,
    color 0.25s ease;
  transform-origin: left top;
  background: var(--bg);
  padding: 0 6px;
}
.field-row input,
.field-row textarea {
  width: 100%;
  padding: 24px 18px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.92);
  color: var(--ink-0);
  font: inherit;
  outline: none;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.field-row input::placeholder,
.field-row textarea::placeholder {
  color: transparent;
}
.field-row:focus-within label,
.field-row input:not(:placeholder-shown) ~ label,
.field-row textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-24px) scale(0.82);
  color: var(--cyan-300);
}
.field-row input:focus,
.field-row textarea:focus {
  border-color: rgba(46, 174, 187, 0.45);
}
.field-row textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.contact-cta--form {
  display: flex;
  justify-content: center;
  margin: 22px auto 0;
}
.contact-note {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-note p {
  color: var(--ink-1);
  line-height: 1.7;
}
.contact-note code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(54, 214, 230, 0.08);
  color: var(--cyan-300);
  font-family: var(--f-mono);
}
.contact-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--f-mono);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--btn-hover-x) var(--btn-hover-y),
    rgba(46, 174, 187, 0.14),
    transparent 28%
  );
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-position 0.25s ease;
  pointer-events: none;
}
.contact-cta:hover::before,
.contact-cta.mobile-hover-active::before {
  opacity: 1;
  transform: scale(1.02);
}
.contact-cta.is-unhovering::before {
  opacity: 0;
  transform: scale(0.92);
}
.contact-cta:hover,
.contact-cta.mobile-hover-active {
  border-color: var(--cyan-400);
  background: rgba(255, 255, 255, 0.08);
}
.contact-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: var(--cyan-300);
  transition: transform 0.3s var(--ease-out);
}
.contact-cta:hover .contact-cta-arrow,
.contact-cta.mobile-hover-active .contact-cta-arrow {
  transform: translateX(3px) rotate(-45deg);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .contact-form {
    padding: 24px;
  }
}

/* ==========================================================================
   PRICING — Section "Tarifs" : cartes de forfaits sobres, dans le même
   langage visuel que le reste du site (coins-viseur, numéros façon
   .process-num, typographie mono pour les métadonnées).
   ========================================================================== */
.pricing {
  max-width: var(--container);
  margin: 0 auto;
}
.pricing-sub {
  margin-top: 18px;
  max-width: 620px;
  color: var(--ink-1);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Grille de cartes --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(12, 18, 26, 0.98),
    rgba(15, 20, 28, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 26px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.pricing-card:hover,
.pricing-card.mobile-hover-active {
  border-color: rgba(46, 174, 187, 0.3);
  box-shadow: 0 24px 48px -28px rgba(46, 174, 187, 0.25);
}
.pricing-card .stat-corner {
  z-index: 2;
}

.pricing-card--featured {
  border-color: rgba(54, 214, 230, 0.4);
  background: linear-gradient(
    180deg,
    rgba(15, 32, 38, 0.98),
    rgba(13, 20, 28, 0.97)
  );
}
.pricing-card--featured:hover,
.pricing-card--featured.mobile-hover-active {
  box-shadow: 0 28px 56px -28px rgba(46, 174, 187, 0.32);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 30px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #04141a;
  background: linear-gradient(100deg, var(--cyan-400), var(--cyan-300));
}

.pricing-card-head {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}

/* Numéro de plan, même traitement typographique que .process-num */
.pricing-plan-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cyan-300);
  margin-bottom: 14px;
}
.pricing-plan-num::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--cyan-400);
}

.pricing-plan-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.pricing-plan-desc {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 56px;
}

.pricing-price-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pricing-currency {
  font-size: 0.8rem;
  color: var(--ink-3);
  width: 100%;
}
.pricing-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
}
.pricing-amount-unit {
  font-size: 1.25rem;
  color: var(--ink-1);
}
.pricing-amount--custom .pricing-amount-value {
  font-size: 1.7rem;
}
.pricing-period {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-family: var(--f-mono);
}

.pricing-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
  list-style: none;
}
.pricing-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-1);
  line-height: 1.45;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
}
.pricing-features li.is-muted {
  color: var(--ink-3);
}
.pricing-features li.is-muted::before {
  background: var(--ink-3);
}

.pricing-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* --- Option hébergement : bandeau distinct, pas une carte de plan --- */
.pricing-addon {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px dashed var(--line-bright);
}
.pricing-addon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan-300);
  background: rgba(46, 174, 187, 0.1);
  border: 1px solid rgba(46, 174, 187, 0.25);
}
.pricing-addon-body h3 {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.pricing-addon-body p {
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 480px;
}
.pricing-addon-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--f-display);
  font-weight: 600;
  white-space: nowrap;
}
.pricing-addon-amount {
  font-size: 1.3rem;
  color: var(--ink-0);
}
.pricing-addon-period {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-weight: 400;
}
.pricing-addon-cta {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--ink-1);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}
.pricing-addon-cta:hover,
.pricing-addon-cta.mobile-hover-active {
  border-color: var(--cyan-400);
  color: var(--cyan-300);
  background: rgba(46, 174, 187, 0.08);
}

/* --- Lien "Comparer les forfaits" --- */
.pricing-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.pricing-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: none;
  border: none;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line-bright);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.pricing-more-btn:hover,
.pricing-more-btn.mobile-hover-active {
  color: var(--cyan-300);
  border-color: var(--cyan-400);
}
.pricing-more-chevron {
  transition: transform 0.3s ease;
}
.pricing-more-btn[aria-expanded="true"] .pricing-more-chevron {
  transform: rotate(180deg);
}

.pricing-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease;
}
.pricing-details.is-open {
  opacity: 1;
}
.pricing-details-inner {
  margin-top: 32px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.pricing-compare-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.pricing-compare {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.pricing-compare th,
.pricing-compare td {
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.pricing-compare thead th {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
}
.pricing-compare td {
  color: var(--ink-1);
}
.pricing-compare td:first-child {
  color: var(--ink-0);
  font-weight: 500;
}
.pricing-compare th.is-featured,
.pricing-compare td.is-featured {
  background: rgba(46, 174, 187, 0.07);
  color: var(--cyan-300);
}
.pricing-compare tbody tr:last-child td {
  border-bottom: none;
}
.pricing-details-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.pricing-note {
  margin-top: 36px;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink-3);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------
   Responsive — du très petit mobile au grand desktop.
   -------------------------------------------------------------------- */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 18px;
  }
  .pricing-card--featured {
    order: -1;
  }
  .pricing-addon {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "mark body"
      "price price"
      "cta cta";
    row-gap: 14px;
  }
  .pricing-addon-mark {
    grid-area: mark;
  }
  .pricing-addon-body {
    grid-area: body;
  }
  .pricing-addon-price {
    grid-area: price;
  }
  .pricing-addon-cta {
    grid-area: cta;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .pricing-card {
    padding: 26px 22px;
  }
  .pricing-amount {
    font-size: 1.9rem;
  }
  .pricing-plan-desc {
    min-height: 0;
  }
  .pricing-addon {
    padding: 20px;
  }
  .pricing-addon-body p {
    max-width: none;
  }
  .pricing-details-inner {
    padding: 18px;
    border-radius: 16px;
  }
}
@media (max-width: 420px) {
  .pricing-card {
    padding: 22px 18px;
  }
  .pricing-amount {
    font-size: 1.7rem;
  }
}
@media (hover: none) {
  .pricing-card {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------
   Champ "Plan envisagé" du formulaire de contact — select custom
   habillé pour coller au style des autres champs.
   -------------------------------------------------------------------- */
.field-row--select select {
  width: 100%;
  padding: 24px 38px 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.92);
  color: var(--ink-0);
  font: inherit;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.field-row--select option {
  background: #0c1119;
  color: var(--ink-0);
}
.field-row--select label {
  transform: translateY(-24px) scale(0.82);
  color: var(--cyan-300);
}
.field-row--select:focus-within select {
  border-color: rgba(46, 174, 187, 0.45);
}
.field-row--select:focus-within label {
  color: var(--cyan-300);
}
.field-select-chevron {
  position: absolute;
  right: 18px;
  top: 26px;
  color: var(--ink-2);
  pointer-events: none;
  transition:
    transform 0.3s ease,
    color 0.25s ease;
}
.field-row--select:focus-within .field-select-chevron {
  color: var(--cyan-300);
  transform: translateY(2px) rotate(180deg);
}

/* Confirmation discrète quand le plan est pré-rempli depuis une carte */
.field-row--select.is-pulsing select {
  border-color: rgba(54, 214, 230, 0.55);
  transition: border-color 1.1s ease;
}
.field-row--select.is-pulsing label {
  color: var(--cyan-300);
}

/* --- Checkbox "Option hébergement" du formulaire --- */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}
.field-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.field-checkbox-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 18, 0.92);
  color: transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.field-checkbox input:checked ~ .field-checkbox-box {
  border-color: var(--cyan-400);
  background: rgba(46, 174, 187, 0.16);
  color: var(--cyan-300);
}
.field-checkbox input:focus-visible ~ .field-checkbox-box {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}
.field-checkbox.is-pulsing .field-checkbox-box {
  border-color: rgba(54, 214, 230, 0.55);
  transition: border-color 1.1s ease;
}
.field-checkbox-label {
  font-size: 0.88rem;
  color: var(--ink-1);
  line-height: 1.5;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-2);
  font-size: 0.85rem;
}
.footer-logo {
  font-family: var(--f-display);
  color: var(--ink-0);
  font-weight: 600;
}
.footer-top {
  color: var(--ink-2);
  transition: color 0.25s;
}
.footer-top:hover,
.footer-top.mobile-hover-active {
  color: var(--cyan-300);
}
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  main section {
    padding: 80px var(--pad);
  }
  .hero-actions {
    margin-bottom: 50px;
  }
  img,
  .project-img,
  .portrait-img,
  .project-logo {
    max-width: 90%;
    height: auto;
    margin-inline: auto;
  }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-title] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.is-loaded [data-reveal-title]:nth-of-type(1) {
  transition-delay: 0s;
}
.is-loaded [data-reveal-title]:nth-of-type(2) {
  transition-delay: 0.09s;
}
.is-loaded [data-reveal-title]:nth-of-type(3) {
  transition-delay: 0.18s;
}
.is-loaded [data-reveal-title] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-portrait] {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
[data-reveal-portrait].is-in {
  opacity: 1;
  transform: scale(1);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.stagger-children.is-in > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children > *:nth-child(1) {
  transition-delay: 0s;
}
.stagger-children > *:nth-child(2) {
  transition-delay: 0.07s;
}
.stagger-children > *:nth-child(3) {
  transition-delay: 0.14s;
}
.stagger-children > *:nth-child(4) {
  transition-delay: 0.21s;
}
.stagger-children > *:nth-child(5) {
  transition-delay: 0.28s;
}
.stagger-children > *:nth-child(6) {
  transition-delay: 0.35s;
}
.stagger-children > *:nth-child(7) {
  transition-delay: 0.42s;
}
.stagger-children > *:nth-child(8) {
  transition-delay: 0.49s;
}

.loader {
  transition: opacity 0.5s ease-out;
}
.loader.is-hidden {
  opacity: 0;
}
/* --- ANIMATION ENVELOPPE ET MESSAGES FORMULAIRE (v3, sobre & classique) --- */
.contact-submit-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 16px;
}

/* Conteneur général : reste dans le flux, sous le bouton, pour ne jamais chevaucher le formulaire */
.envelope-anim-container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  transform: translateY(-6px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    max-height 0.35s var(--ease-out),
    margin-top 0.35s var(--ease-out);
}

.envelope-anim-container.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease-in,
    transform 0.3s ease-in;
}

.envelope-anim-container.is-active {
  opacity: 1;
  pointer-events: all;
  max-height: 56px;
  margin-top: 14px;
  transform: translateY(0);
}

.envelope-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  flex-shrink: 0;
}

/* Halo discret, simple respiration cyan ou rouge selon le résultat */
.envelope-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(54, 214, 230, 0.28) 0%,
    rgba(54, 214, 230, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.envelope-stage.glow-success .envelope-glow {
  animation: envGlowPulse 1.4s ease-out forwards;
}

.envelope-stage.glow-error .envelope-glow {
  background: radial-gradient(
    circle,
    rgba(255, 74, 74, 0.26) 0%,
    rgba(255, 74, 74, 0) 70%
  );
  animation: envGlowPulseError 0.5s ease-out forwards;
}

@keyframes envGlowPulse {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes envGlowPulseError {
  0%,
  100% {
    opacity: 0;
  }
  45% {
    opacity: 0.75;
  }
}

.envelope-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  z-index: 1;
}

.envelope-svg {
  position: relative;
  z-index: 1;
}

/* Arrivée simple : un léger glissement vers le haut avec un fondu, sans rebond exagéré */
.envelope-wrapper.launch {
  animation: launchEnvelope 0.5s var(--ease-out) forwards;
}

@keyframes launchEnvelope {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Secousse en cas d'erreur de saisie sur le bouton principal */
@keyframes shakeBtn {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.btn-shake {
  animation: shakeBtn 0.4s ease-in-out;
}

/* --- Ouverture : le rabat s'efface, la lettre émerge légèrement, un check apparaît --- */
.envelope-flap {
  transform-origin: 30px 14px;
  transition:
    opacity 0.3s ease,
    transform 0.35s var(--ease-out);
}

.envelope-wrapper.open-flap .envelope-flap {
  opacity: 0;
  transform: translateY(-3px);
}

.envelope-letter {
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.4s var(--ease-out);
  transition-delay: 0.1s;
}

.envelope-wrapper.open-flap .envelope-letter {
  opacity: 1;
  transform: translateY(-6px);
}

.envelope-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.2s;
  z-index: 2;
}

.envelope-wrapper.open-flap .envelope-check {
  opacity: 1;
  transform: scale(1);
}

/* Tremblement + teinte rouge quand le formulaire est invalide ou l'envoi échoue */
.envelope-wrapper.shake-error {
  animation: envShakeError 0.45s ease-in-out;
}

.envelope-wrapper.shake-error .envelope-body,
.envelope-wrapper.shake-error .envelope-flap {
  stroke: #ff5a5a;
  transition: stroke 0.2s ease;
}

@keyframes envShakeError {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(1px);
  }
}

/* Notification : carte glass simple, cohérente avec le reste du site */
.envelope-message {
  position: relative;
  font-family: var(--f-body);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 29, 0.75);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--ink-1);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  white-space: normal;
  max-width: 260px;
  flex: 1;
  min-width: 0;
}

.envelope-message.success {
  border-color: var(--cyan-400);
  color: var(--ink-0);
  box-shadow: 0 8px 24px -8px rgba(46, 174, 187, 0.35);
}

.envelope-message.error {
  border-color: #ff4a4a;
  color: #ff6b6b;
  box-shadow: 0 8px 24px -8px rgba(255, 74, 74, 0.3);
}

/* Fait apparaître le texte une fois l'enveloppe arrivée (piloté en JS) */
.envelope-message.revealed {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .envelope-anim-container {
    gap: 10px;
  }
  .envelope-message {
    max-width: 200px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-wrapper.launch,
  .envelope-wrapper.shake-error,
  .envelope-stage.glow-success .envelope-glow,
  .envelope-stage.glow-error .envelope-glow {
    animation: none !important;
  }
  .envelope-flap,
  .envelope-letter,
  .envelope-check {
    transition: opacity 0.3s ease !important;
  }
}
