:root {
  --accent: #49E8C5;
  --accent-glow: rgba(73, 232, 197, 0.5);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #03191D;
}

body.is-loading {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03191D;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-logo {
  width: min(170px, 45vw);
  animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(73, 232, 197, 0.15);
  border-top-color: var(--accent);
  animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-logo,
  .loader-ring {
    animation: none;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 24px 0;
  transition: transform 0.4s ease;
}

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

.nav-bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.glass {
  background: rgba(8, 32, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

header.scrolled .glass {
  background: rgba(8, 32, 36, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.logo-chip img {
  height: 34px;
  display: block;
  transition: filter 0.3s ease;
}

.logo-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 232, 197, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
}

.nav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 999px;
  background: rgba(73, 232, 197, 0.1);
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 10px rgba(73, 232, 197, 0.12);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
  z-index: 0;
}

.nav-indicator::before,
.nav-indicator::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--accent);
}

.nav-indicator::before {
  top: -4px;
  left: -4px;
  border-right: none;
  border-bottom: none;
}

.nav-indicator::after {
  bottom: -4px;
  right: -4px;
  border-left: none;
  border-top: none;
}

nav a {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  padding: 11px 22px;
  border-radius: 999px;
  transition: opacity 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

nav a:hover {
  opacity: 1;
}

nav a.active {
  opacity: 1;
  color: #EAFFFA;
}

/* Reusable HUD corner ticks — reveal on hover */
.hud-ticks {
  position: relative;
}

.hud-ticks::before,
.hud-ticks::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s ease;
  pointer-events: none;
}

.hud-ticks::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.hud-ticks::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.hud-ticks:hover::before,
.hud-ticks:hover::after {
  opacity: 1;
}

.hud-ticks:hover::before {
  transform: translate(-3px, -3px);
}

.hud-ticks:hover::after {
  transform: translate(3px, 3px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.nav-bar > .reveal-left {
  flex-shrink: 0;
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 540ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 630ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.placeholder {
  height: 400vh;
}

/* Section Mission */
.section-mission {
  position: relative;
  padding: 130px 24px 110px;
  overflow: hidden;
}

.section-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 45%, rgba(73, 232, 197, 0.07), transparent 70%);
  pointer-events: none;
}

.section-mission::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 70%);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(73, 232, 197, 0.45), transparent);
}

.mission-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
}

.mission-inner::before,
.mission-inner::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(73, 232, 197, 0.55);
}

.mission-inner::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.mission-inner::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.mission-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 246, 245, 0.5);
  font-weight: 600;
  margin-bottom: 20px;
}

.mission-text {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  color: #F3F6F5;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .mission-inner {
    padding: 36px 24px;
  }
}

/* Section Studio */
.section-studio {
  padding: 80px 24px;
  position: relative;
}

/* Vague primaire — phase 0° */
.section-studio::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(
    0% 30%, 5% 33.44%, 10% 42.44%, 15% 53.56%, 20% 62.56%, 25% 66%, 30% 62.56%, 35% 53.56%, 40% 42.44%, 45% 33.44%,
    50% 30%, 55% 33.44%, 60% 42.44%, 65% 53.56%, 70% 62.56%, 75% 66%, 80% 62.56%, 85% 53.56%, 90% 42.44%, 95% 33.44%,
    100% 30%, 100% 100%, 0% 100%
  );
  animation: waveTravel 10s ease-in-out infinite;
  will-change: clip-path;
  pointer-events: none;
}

/* Vague secondaire — déphasée 90°, direction inverse, durée prime */
.section-studio::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(
    0% 30%, 5% 33.44%, 10% 42.44%, 15% 53.56%, 20% 62.56%, 25% 66%, 30% 62.56%, 35% 53.56%, 40% 42.44%, 45% 33.44%,
    50% 30%, 55% 33.44%, 60% 42.44%, 65% 53.56%, 70% 62.56%, 75% 66%, 80% 62.56%, 85% 53.56%, 90% 42.44%, 95% 33.44%,
    100% 30%, 100% 100%, 0% 100%
  );
  animation: waveTravel 13s ease-in-out infinite reverse;
  will-change: clip-path;
  pointer-events: none;
}

/* 4 phases sinusoïdales : onde qui voyage de gauche à droite (échantillonnage fin pour un rendu bien arrondi) */
@keyframes waveTravel {
  0%, 100% {
    clip-path: polygon(
      0% 30%, 5% 33.44%, 10% 42.44%, 15% 53.56%, 20% 62.56%, 25% 66%, 30% 62.56%, 35% 53.56%, 40% 42.44%, 45% 33.44%,
      50% 30%, 55% 33.44%, 60% 42.44%, 65% 53.56%, 70% 62.56%, 75% 66%, 80% 62.56%, 85% 53.56%, 90% 42.44%, 95% 33.44%,
      100% 30%, 100% 100%, 0% 100%
    );
  }
  25% {
    clip-path: polygon(
      0% 48%, 5% 58.58%, 10% 65.12%, 15% 65.12%, 20% 58.58%, 25% 48%, 30% 37.42%, 35% 30.88%, 40% 30.88%, 45% 37.42%,
      50% 48%, 55% 58.58%, 60% 65.12%, 65% 65.12%, 70% 58.58%, 75% 48%, 80% 37.42%, 85% 30.88%, 90% 30.88%, 95% 37.42%,
      100% 48%, 100% 100%, 0% 100%
    );
  }
  50% {
    clip-path: polygon(
      0% 66%, 5% 62.56%, 10% 53.56%, 15% 42.44%, 20% 33.44%, 25% 30%, 30% 33.44%, 35% 42.44%, 40% 53.56%, 45% 62.56%,
      50% 66%, 55% 62.56%, 60% 53.56%, 65% 42.44%, 70% 33.44%, 75% 30%, 80% 33.44%, 85% 42.44%, 90% 53.56%, 95% 62.56%,
      100% 66%, 100% 100%, 0% 100%
    );
  }
  75% {
    clip-path: polygon(
      0% 48%, 5% 37.42%, 10% 30.88%, 15% 30.88%, 20% 37.42%, 25% 48%, 30% 58.58%, 35% 65.12%, 40% 65.12%, 45% 58.58%,
      50% 48%, 55% 37.42%, 60% 30.88%, 65% 30.88%, 70% 37.42%, 75% 48%, 80% 58.58%, 85% 65.12%, 90% 65.12%, 95% 58.58%,
      100% 48%, 100% 100%, 0% 100%
    );
  }
}

.section-studio .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.studio-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #F3F6F5;
  line-height: 1.1;
}

.studio-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-text p {
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 400;
  color: rgba(243, 246, 245, 0.75);
  line-height: 1.85;
}

.studio-logo {
  margin-top: 16px;
  width: min(260px, 60vw);
  opacity: 0.9;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: calc(115vh + 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Mask double couche :
     1. Gradient — zone supérieure (0→60%) entièrement visible, fade jusqu'à 75%
     2. PNG organique — ancré en bas, définit la découpe                         */
  /* Mask double couche :
     1. Gradient — zone supérieure (0→60%) entièrement visible, fade jusqu'à 75%
     2. PNG organique — ancré en bas, définit la découpe                         */
  -webkit-mask-image:
    linear-gradient(to bottom, black 60%, transparent 75%),
    url('/assets/hero-mask.png');
  -webkit-mask-size: 100% 100%, 100% 52%;
  -webkit-mask-position: top center, bottom center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-over;

  mask-image:
    linear-gradient(to bottom, black 60%, transparent 75%),
    url('/assets/hero-mask.png');
  mask-size: 100% 100%, 100% 52%;
  mask-position: top center, bottom center;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: add;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-image: url('/assets/hero-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.08) contrast(1.12) saturate(1.2);
  will-change: transform;
  z-index: 0;
}

/* Overlay multi-couche : vignette + fondu bas + raccord navbar */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 30%, rgba(3, 25, 29, 0.72) 100%),
    linear-gradient(to top,  rgba(3, 25, 29, 0.85) 0%,  transparent 55%),
    linear-gradient(to bottom, rgba(3, 25, 29, 0.4) 0%, transparent 28%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}

.hero-content img {
  width: min(420px, 80vw);
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(3, 25, 29, 0.75))
    drop-shadow(0 0 28px rgba(3, 25, 29, 0.45));
}

.hero-content p {
  color: #ffffff;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

/* Burger button — hidden on desktop */
.burger {
  position: relative;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Section Jeu */
.section-jeu {
  padding: 140px 24px;
}

.section-jeu .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.jeu-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.jeu-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #F3F6F5;
  line-height: 1.15;
}

.jeu-text {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(243, 246, 245, 0.75);
  line-height: 1.85;
}

.jeu-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  -webkit-mask-image: url('/assets/game-mask.png');
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('/assets/game-mask.png');
  mask-size: cover;
  mask-position: center;
  mask-repeat: no-repeat;
}

.jeu-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 15px 30px;
  background: rgba(73, 232, 197, 0.06);
  color: var(--accent);
  border: 1px solid rgba(73, 232, 197, 0.55);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.jeu-cta i {
  font-size: 15px;
  transition: transform 0.25s ease;
}

.jeu-cta:hover {
  background: rgba(73, 232, 197, 0.14);
  border-color: var(--accent);
}

.jeu-cta:hover i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .section-jeu .inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .jeu-image {
    order: -1;
  }
}

/* Section Équipe */
.section-equipe {
  padding: 80px 24px;
}

.section-equipe .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.equipe-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #F3F6F5;
  text-align: center;
  line-height: 1.1;
}

.equipe-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.membre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.membre-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  -webkit-mask-image: url('/assets/equipe-mask.png');
  -webkit-mask-size: cover;
  -webkit-mask-position: center top;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('/assets/equipe-mask.png');
  mask-size: cover;
  mask-position: center top;
  mask-repeat: no-repeat;
}

.membre-photo {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.membre-card:hover .membre-photo {
  transform: scale(1.1);
}

.membre-photo-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 55%;
  height: 100%;
  background: linear-gradient(75deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0) 58%,
    transparent 100%);
  transition: left 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.membre-card:hover .membre-photo-frame::after {
  left: 140%;
}

.membre-nom {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #F3F6F5;
}

.membre-role {
  font-size: 13px;
  font-weight: 400;
  color: rgba(243, 246, 245, 0.6);
  letter-spacing: 0.03em;
}

.membre-linkedin {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  position: relative;
}

.membre-linkedin:hover {
  opacity: 1;
}

.membre-linkedin i {
  font-size: 17px;
  flex-shrink: 0;
  line-height: 1;
  width: 0;
  opacity: 0;
  margin-right: 0;
  overflow: hidden;
  transition: width 0.25s ease, opacity 0.2s ease, margin-right 0.25s ease, filter 0.25s ease;
}

.membre-card:hover .membre-linkedin i {
  width: 17px;
  opacity: 1;
  margin-right: 6px;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

@media (max-width: 900px) {
  .equipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Section Blog Preview */
.section-blog-preview {
  padding: 140px 24px;
}

.section-blog-preview .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.blog-preview-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-preview-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 246, 245, 0.5);
  font-weight: 600;
}

.blog-preview-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #F3F6F5;
  line-height: 1.15;
}

.blog-preview-text {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(243, 246, 245, 0.75);
  line-height: 1.85;
}

.blog-preview-post {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-preview-post-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px 11px 16px;
  background: rgba(3, 25, 29, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 16px) 100%, 0 100%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-preview-post-badge i {
  font-size: 13px;
}

.blog-preview-post-media {
  position: absolute;
  inset: 0;
}

.blog-preview-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-preview-post:hover .blog-preview-post-media img {
  transform: scale(1.06);
}

.blog-preview-post-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 25, 29, 0.95) 0%, rgba(3, 25, 29, 0.6) 42%, transparent 72%);
}

.blog-preview-post-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  transform: translateY(calc(100% - 92px));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-preview-post:hover .blog-preview-post-copy {
  transform: translateY(0);
}

.blog-preview-post-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 246, 245, 0.6);
  font-weight: 600;
}

.blog-preview-post-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: #F3F6F5;
  margin: 10px 0 12px;
}

.blog-preview-post-excerpt {
  font-size: 14px;
  color: rgba(243, 246, 245, 0.75);
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-preview-post:hover .blog-preview-post-excerpt {
  opacity: 1;
  transition-delay: 0.15s;
}

.blog-preview-post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-preview-post:hover .blog-preview-post-link {
  opacity: 1;
  transition-delay: 0.2s;
}

.blog-preview-post-link i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.blog-preview-post:hover .blog-preview-post-link i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .section-blog-preview .inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Footer */
.footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #F3F6F5;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-social:hover {
  opacity: 1;
}

.footer-social i {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 246, 245, 0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-contact:hover {
  color: var(--accent);
}

.footer-contact i {
  font-size: 15px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(243, 246, 245, 0.45);
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    -webkit-mask-image:
      linear-gradient(to bottom, black 91%, transparent 100%),
      url('/assets/hero-mask.png');
    -webkit-mask-size: 100% 100%, 100% auto;
    mask-image:
      linear-gradient(to bottom, black 91%, transparent 100%),
      url('/assets/hero-mask.png');
    mask-size: 100% 100%, 100% auto;
    margin-bottom: -60px;
  }

  .burger {
    display: flex;
  }

  .logo-chip img {
    height: 30px;
  }

  .logo-chip {
    padding: 8px 18px;
  }

  .nav-indicator {
    display: none;
  }

  nav.glass {
    position: fixed;
    inset: 0;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(5, 20, 23, 0.97);
    border: none;
    border-radius: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    z-index: 999;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  nav a {
    width: auto;
    padding: 16px 0;
    font-size: 20px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .scroll-top-ring {
    width: 46px;
    height: 46px;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 32, 36, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scroll-top:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scroll-top i {
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.scroll-top:hover i {
  transform: translateY(-2px);
}

.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
