:root {
  --bg: #07070a;
  --bg-2: #0b0b0f;
  --text: #f5f3f1;
  --muted: #9c9894;
  --muted-2: #6d6a67;
  --border: #221f23;

  --red: #ff2a3d;
  --red-bright: #ff5a63;
  --red-deep: #7a0e18;
  --red-dim: rgba(255, 42, 61, 0.14);

  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.015);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 90, 99, 0.45);
  --glass-sheen: rgba(255, 255, 255, 0.1);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(0.19, 0.86, 0.24, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  display: block;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  overflow-x: hidden;
}
::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.display {
  font-family: "Space Grotesk", sans-serif;
}

.black {
  font-family: "Archivo Black", sans-serif;
}

.accent {
  color: var(--red);
}

/* ================= BACKDROP ================= */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(70px);
  opacity: 0.3;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 30% 30%,
    var(--red-bright),
    var(--red) 55%,
    transparent 75%
  );
  animation:
    morph 14s ease-in-out infinite,
    drift 22s ease-in-out infinite;
  will-change: transform, border-radius;
}

.blob.b1 {
  width: 680px;
  height: 680px;
  top: -200px;
  left: -180px;
  animation-duration: 16s, 26s;
}

.blob.b2 {
  width: 520px;
  height: 520px;
  top: 32%;
  right: -160px;
  opacity: 0.38;
  animation-duration: 12s, 20s;
  animation-delay:
    -4s,
    -6s;
}

.blob.b3 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: 18%;
  opacity: 0.32;
  animation-duration: 18s, 24s;
  animation-delay:
    -8s,
    -2s;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  }

  25% {
    border-radius: 65% 35% 40% 60% / 55% 65% 35% 45%;
  }

  50% {
    border-radius: 35% 65% 55% 45% / 40% 50% 50% 60%;
  }

  75% {
    border-radius: 55% 45% 35% 65% / 60% 35% 65% 40%;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 42, 61, 0.08) 1px, transparent 2px),
    linear-gradient(90deg, rgba(255, 42, 61, 0.08) 1px, transparent 2px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 20%,
    black 30%,
    transparent 85%
  );
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

section {
  position: relative;
  z-index: 3;
  padding: 0 6vw;
}

/* ================= GLASS SYSTEM ================= */
.glass {
  position: relative;
  background: linear-gradient(155deg, var(--glass), var(--glass-2) 65%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px -28px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.glass::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -25%;
  width: 65%;
  height: 140%;
  background: linear-gradient(120deg, var(--glass-sheen), transparent 60%);
  transform: rotate(10deg);
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 61, 0.28), transparent 70%);
  bottom: -110px;
  right: -110px;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.glass.hoverable:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 70px -22px rgba(0, 0, 0, 0.8),
    0 0 46px -8px rgba(255, 42, 61, 0.4);
}

.glass.hoverable:hover::after {
  opacity: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  font-family: "JetBrains Mono";
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
}

/* ================= HEADER ================= */
header {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}
.header1 {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, 88vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(12, 12, 15, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 50px -24px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s;
  overflow-x: hidden;
}
@media (max-width: 900px) {
  header {
    width: 400px;
  }
}

header:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.logo {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo .last {
  color: var(--red-bright);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--red-bright);
  transition: width 0.3s var(--ease);
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--red-bright);
}

nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: "JetBrains Mono";
  font-size: 11.5px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.02em;
  transition: 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--red-bright);
  box-shadow: 0 8px 24px rgba(255, 42, 61, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex;
  }
}

.mobile-nav {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: 330px;
  z-index: 49;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  padding: 13px 10px;
  font-family: "Space Grotesk";
  font-size: 15px;
  color: var(--muted);
  border-radius: 10px;
  transition: 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--red-bright);
  background: rgba(255, 255, 255, 0.03);
}

/* ================= HERO ================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 40px;
  gap: 40px;
  position: relative;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
    min-height: auto;
  }
}

.hero-eyebrow {
  font-size: 16.5px;
  color: var(--red-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.hero-eyebrow .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: "Space Grotesk";
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.08;
  max-width: 25ch;
}

.hero p {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.35s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 42, 61, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(255, 42, 61, 0.65);
}

.btn-ghost {
  border-color: var(--glass-border);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---- Signature element: "The Seam" ---- */
.seam-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  perspective: 1200px;
}

@media (max-width: 960px) {
  .seam-wrap {
    height: 420px;
    order: -1;
    margin-bottom: 10px;
  }
}

.seam-panel {
  width: min(440px, 88vw);
  height: 440px;
  border-radius: 28px;
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01) 65%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 70px -20px rgba(255, 42, 61, 0.3);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }

  50% {
    transform: translateY(-14px) rotate(0.6deg);
  }
}

.seam-pane {
  position: absolute;
  inset: 0;
  padding: 26px;
}

.seam-pane.design {
  clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
}

.seam-pane.code {
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
  background: rgba(0, 0, 0, 0.18);
}

.code img {
  position: absolute;
  right: -75px;
  bottom: 0;
  width: 460px;
  height: auto;
}
@media (max-width: 900px) {
  .seam-panel {
    height: 350px;
  }
  .code img {
    position: absolute;
    right: -60px;
    bottom: 0;
    width: 500px;
    height: auto;
  }
}

.seam-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--red-bright),
    transparent
  );
  box-shadow: 0 0 16px var(--red-bright);
  transform: skewX(-14deg);
}

.seam-line .traveler {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 14px 4px rgba(255, 90, 99, 0.7);
  animation: travel 3.4s ease-in-out infinite;
}

@keyframes travel {
  0%,
  100% {
    top: 6%;
  }

  50% {
    top: 92%;
  }
}

.swatch-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.type-sample {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 52px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
}

.type-scale span {
  display: block;
  font-family: "Space Grotesk";
  color: var(--muted);
}

.type-scale .t1 {
  font-size: 18px;
  margin-bottom: 6px;
}

.type-scale .t2 {
  font-size: 13px;
  color: var(--muted-2);
}

.bez {
  margin-top: 20px;
  width: 100%;
  height: 60px;
}

.ring {
  position: absolute;
  border: 1px solid var(--red-dim);
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring.r1 {
  width: 520px;
  height: 520px;
  animation: spin 34s linear infinite;
}

.ring.r2 {
  width: 590px;
  height: 590px;
  border-style: dashed;
  opacity: 0.35;
  animation: spin 50s linear infinite reverse;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.float-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 14, 17, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  font-family: "JetBrains Mono";
  font-size: 11.5px;
  color: var(--text);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  animation: bob 5.5s ease-in-out infinite;
}

.float-chip.c1 {
  top: 10%;
  left: -8%;
  animation-delay: 0s;
}

.float-chip.c2 {
  bottom: 2%;
  right: -5%;
  animation-delay: -2s;
}

.float-chip.c3 {
  top: 44%;
  left: -8%;
  animation-delay: -3.5s;
}

.float-chip.c4 {
  top: 24%;
  right: -10%;
  animation-delay: -3.5s;
}

.float-chip.c5 {
  top: -3%;
  right: 40%;
  animation-delay: -3.5s;
}

.float-chip.c6 {
  top: 94%;
  right: 60%;
  animation-delay: -3.5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .float-chip {
    display: none;
  }
}

/* ================= SECTION HEADS ================= */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}

.section-head .tag {
  font-family: "JetBrains Mono";
  color: var(--red-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
}

.section-head h2 {
  font-family: "Space Grotesk";
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--text), transparent);
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  margin-top: -30px;
  margin-bottom: 44px;
}

/* ================= ABOUT ================= */
.about {
  padding: 50px 6vw 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 52ch;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-card {
  padding: 24px 20px;
  text-align: left;
}

.stat-card .num {
  font-family: "Archivo Black";
  font-size: clamp(26px, 3vw, 34px);
  color: var(--red-bright);
  line-height: 1;
}

.stat-card .lbl {
  font-family: "Space Grotesk";
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* ================= STACK ================= */
.stack {
  padding: 80px 6vw;
}

.stack-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .stack-cols {
    grid-template-columns: 1fr;
  }
}

.stack-col {
  padding: 30px 26px;
}

.stack-col h3 {
  font-family: "Space Grotesk";
  font-size: 18px;
  margin-bottom: 6px;
}

.stack-col .sub {
  font-family: "JetBrains Mono";
  font-size: 11.5px;
  color: var(--muted-2);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-badge {
  font-family: "JetBrains Mono";
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: 0.3s var(--ease);
}

.stack-badge:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
  background: var(--red-dim);
  transform: translateY(-2px);
}

.skill {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-top .pct {
  font-size: 15px;
  color: var(--red-bright);
}

.skill-bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 2px;
  transition: width 1.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= SERVICES ================= */
.services {
  padding: 80px 6vw;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service {
  padding: 32px 26px;
}

.s-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--red-bright);
}

.s-icon svg,
.s-icon i {
  width: 100%;
  height: 100%;
}
.s-icon i {
  font-size: 35px;
}
.service .s-num {
  font-family: "JetBrains Mono";
  color: var(--muted-2);
  font-size: 16px;
  margin-bottom: 10px;
}

.service h3 {
  font-family: "Space Grotesk";
  font-size: 18px;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service h4 {
  font-family: "Space Grotesk";
  font-size: 15px;
  margin-bottom: 10px;
}

ul li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-left: 12px;
}

/* ================= PROCESS ================= */
.process {
  padding: 40px 6vw;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  padding: 28px 24px;
}

.process-step .p-num {
  font-family: "Archivo Black";
  font-size: 26px;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--red-bright);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: "Space Grotesk";
  font-size: 16.5px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ================= PROJECTS ================= */
.projects {
  padding: 40px 6vw;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tabs button {
  font-family: "JetBrains Mono";
  font-size: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--muted);
  cursor: pointer;
  transition: 0.3s var(--ease);
}

.filter-tabs button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.filter-tabs button:hover:not(.active) {
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 820px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.p-card {
  display: flex;
  flex-direction: column;
}

.p-thumb {
  height: 230px;
  position: relative;
  overflow: hidden;
  margin: 10px 10px 0 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-thumb.g1 {
  background: linear-gradient(135deg, #3a0a10, #0a0a0d);
}

.p-thumb.g2 {
  background: linear-gradient(135deg, #4a0e16, #151517);
}

.p-thumb.g3 {
  background: linear-gradient(135deg, #2a0810, #0a0a0d);
}

.p-thumb.g4 {
  background: linear-gradient(135deg, #5a1018, #141417);
}

.p-thumb .p-mark {
  font-family: "Archivo Black";
  font-size: 52px;
  color: rgba(255, 90, 99, 0.22);
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Les screenshots de projets remplissent totalement leur cadre fixe :
   ça évite tout redimensionnement / saut de mise en page pendant le chargement,
   quelle que soit la résolution réelle du fichier image. */
.p-thumb .p-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-overlay {
  position: absolute;
  top: -35px;
  right: -30px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  opacity: 1;
  transition: opacity 1s var(--ease);
  cursor: pointer;
}

.p-view {
  font-family: "JetBrains Mono";
  font-size: 11.5px;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 42, 61, 0.85);
  backdrop-filter: blur(6px);
  transform: translateY(8px);
  transition: transform 0.35s var(--ease);
  z-index: 99;
}

.p-card:hover .p-view {
  transform: translateY(0);
}

.p-body {
  padding: 22px 24px 26px;
}

.p-cat {
  position: relative;
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: var(--red-bright);
  text-transform: uppercase;
  justify-content: space-between;
}

.p-body h3 {
  font-family: "Space Grotesk";
  font-size: 20px;
  margin-top: 8px;
}

.p-body p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.p-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.p-tags span {
  font-family: "JetBrains Mono";
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Pop-up affiche projet */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.project-modal.active {
  display: flex;
}

.modal-box {
  background: #111;
  padding: 30px;
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}

.modal-box img {
  height: 90%;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 30px;
  padding: 5px 10px;
}

@media (max-width: 900px) {
  .modal-box {
    height: 95vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #modalTitle {
    font-size: 14px;
  }

  #modalDesc {
    font-size: 10px;
  }

  .modal-close {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-size: 25px;
    padding: 0 5px;
  }
}

/* ================= EXPERIENCE / TIMELINE ================= */
.experience {
  padding: 40px 6vw;
}

.parcour-box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: 32px;
  width: 50%;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-bright), transparent);
}

.t-item {
  position: relative;
  padding: 0 0 40px 26px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red-bright);
  box-shadow: 0 0 12px rgba(255, 90, 99, 0.6);
}

.t-year {
  font-family: "JetBrains Mono";
  font-size: 12px;
  color: var(--red-bright);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.t-item h3 {
  font-family: "Space Grotesk";
  font-size: 18px;
  margin-bottom: 6px;
}

.t-item p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 60ch;
}

@media (max-width: 900px) {
  .parcour-box {
    width: 100%;
  }

  .timeline {
    width: 100%;
  }
}

/* ================= TESTIMONIALS ================= */
.testimonials {
  padding: 40px 6vw;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
}

.test-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.test-quote {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
}

.test-quote::before {
  content: '"';
  color: var(--red-bright);
  font-family: "Space Grotesk";
}

.test-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.test-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 13px;
}

.test-name {
  font-family: "Space Grotesk";
  font-size: 13.5px;
}

.test-role {
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: var(--muted-2);
}

/* ================= FAQ ================= */
.faq {
  padding: 40px 6vw;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.faq-item {
  padding: 6px 26px;
  cursor: pointer;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.faq-q h3 {
  font-family: "Space Grotesk";
  font-size: 15.5px;
  font-weight: 500;
}

.faq-plus {
  font-family: "JetBrains Mono";
  font-size: 18px;
  color: var(--red-bright);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  padding-bottom: 22px;
  max-width: 65ch;
}

/* ================= CONTACT ================= */
.contact {
  padding: 40px 6vw;
}

.contact-panel {
  padding: 70px 20px;
}

.contact-content {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.contact-left h2 {
  margin: 25px 0;
}

.contact-text {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--red-bright);
  color: #fff;
  font-weight: 600;
  transition: 0.35s;
}

.contact-btn:hover {
  transform: translateY(-4px);
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 900px) {
  .contact-card {
    width: 90%;
  }
}

.contact-item {
  margin-bottom: 35px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.contact-item a,
.contact-item p {
  color: white;
  font-size: 18px;
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.socials a:hover {
  background: var(--red-bright);
  transform: translateY(-6px);
}

/* ================= FOOTER ================= */

footer {
  padding: 30px 6vw;
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: "JetBrains Mono";
  font-size: 11px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

footer span i {
  font-size: 20px;
  margin-right: 10px;
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    gap: 8px;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .seam-panel {
    width: 100%;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

/* Pop-up portfolio designer graphique */

.portfolio-btn {
  color: var(--red-bright) !important;
}

.design-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.design-modal.active {
  display: flex;
}

.design-modal-content {
  width: min(1000px, 90%);
  background: #111;
  border-radius: 30px;
  padding: 35px;
  position: relative;
}

.design-close {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 35px;
  background: none;
  color: white;
  border: 0;
  cursor: pointer;
}

.design-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.design-slider img {
  max-height: 70vh;
  max-width: 75%;
  object-fit: contain;
  border-radius: 15px;
}

.slider-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #181818;
  color: white;
  cursor: pointer;
}

.design-info {
  text-align: center;
  margin-top: 25px;
}

.design-info p {
  color: var(--muted);
}

/* ======================================================================
   OPTIMISATION MOBILE / PERFORMANCE
   Android Chrome gère très mal le backdrop-filter et les animations
   continues dès qu'il y a plusieurs éléments empilés à l'écran.
   On désactive tout ce qui est décoratif et coûteux en dessous de 900px,
   et on remplace le flou verre par un fond uni proche visuellement.
   ====================================================================== */
@media (max-width: 900px) {
  /* Coupe les animations de fond (morph/drift) et le blur(70px) des blobs */
  .blob {
    animation: none;
    /* le fond animé n'apporte rien sur mobile, autant l'enlever du rendu */
  }

  /* Coupe les animations décoratives infinies restantes */
  .seam-panel,
  .ring,
  .seam-line .traveler,
  .float-chip {
    animation: none;
  }

  /* Supprime le backdrop-filter partout sur mobile : remplacé par un fond
     uni semi-opaque, visuellement proche mais bien plus léger à calculer */
  /* .glass,
  .chip,
  .seam-panel,
  .design-modal,
  .filter-tabs button,
  .btn-ghost,
  header,
  .mobile-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  } */

  /* .glass,
  .seam-panel {
    background: rgba(14, 14, 17, 0.92);
  } */

  /* header,
  .mobile-nav {
    background: rgba(10, 10, 13, 0.92);
  } */

  /* .chip,
  .filter-tabs button,
  .btn-ghost {
    background: rgba(14, 14, 17, 0.85);
  } */

  /* .design-modal {
    background: rgba(0, 0, 0, 0.94);
  } */

  /* Les pseudo-éléments ::before/::after de .glass ajoutent des calques
     de rendu (dégradé, halo) inutiles sur un écran tactile */
  .glass::before,
  .glass::after {
    display: none;
  }

  /* Le survol n'existe pas au doigt, on retire la transition liée */
  .glass.hoverable:hover {
    transform: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 60px -28px rgba(0, 0, 0, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .blob,
  .seam-panel,
  .ring,
  .float-chip,
  .hero-eyebrow .pip,
  .seam-line .traveler {
    animation: none !important;
  }
}
