:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --black: #0d0d0d;
  --white: #ffffff;
  --gray-light: #f8f8f6;
  --gray-mid: #ebebeb;
  --gray-text: #555555;
  --footer-bg: #111111;
  /* Typography — Fraunces (editorial serif w/ optical size) + Geist (modern grotesque) */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Geist', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 60px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  /* Futuristic scanline / aurora glow colors derived from brand */
  --glow-red: rgba(230, 57, 70, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  /* Tighten tracking slightly + enable ss01 stylistic set on Geist for more character */
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fraunces — let the optical-size axis breathe at display scales,
   and enable soft axis for the editorial, hand-lettered feel. */
.section-title,
.hero-title,
.team-name,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-feature-settings: "ss01", "dlig";
  letter-spacing: -0.025em;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -1px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-logo span {
  color: var(--red);
}

.loader-bar {
  margin-top: 2rem;
  width: 200px;
  height: 3px;
  background: var(--gray-mid);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  border-radius: 99px;
  animation: loaderFill 1.8s ease forwards;
}

@keyframes loaderPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes loaderFill {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: var(--black);
  color: var(--white);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.visible {
  transform: translateY(0);
}

#cookie-banner p {
  font-size: 0.88rem;
  color: #ccc;
  max-width: 700px;
}

#cookie-banner p a {
  color: var(--red);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--red-dark);
}

.btn-cookie-decline {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cookie-decline:hover {
  border-color: #888;
  color: var(--white);
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 4%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

nav.scrolled {
  border-bottom-color: var(--gray-mid);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  transition: all var(--transition);
  user-select: none;
}

.lang-switcher:hover {
  background: var(--gray-mid);
}

.lang-flag-img {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  transition: opacity 0.2s;
  cursor: pointer;
}

.lang-flag-img.lang-active {
  opacity: 1;
}

.lang-flag-img.lang-inactive {
  opacity: 0.35;
}

.lang-divider {
  font-size: 0.75rem;
  color: #aaa;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--red);
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--black);
  background: none;
  border: none;
  line-height: 1;
}

/* ── SECTIONS ── */
section {
  padding: 6rem 4%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 1.2rem;
}

.section-title span {
  color: var(--red);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   ── HERO ──
   ═══════════════════════════════════════════════════════════════════ */

#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* ── ATMOSPHERIC BACKGROUND WORD ──
   Positioned slightly left of center so it sits behind the left-aligned text
   rather than floating off to the right.
   GSAP owns the transform — xPercent/yPercent set in heroParallax(). */
.hero-bg-word {
  position: absolute;
  left: calc(38% + 220px);
  /* 38% instead of 50% pulls it left — text reads over it naturally */
  top: 50%;
  font-family: var(--font-display);
  font-size: clamp(22rem, 38vw, 44rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  line-height: 0.85;
  color: var(--black);
  opacity: 0.032;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  white-space: nowrap;
  will-change: transform;
}

/* ── FLOATING FRAGMENTS ──
   5 words drift slowly through the hero at different positions/speeds.
   All initial transforms are set by GSAP in heroFragments().
   CSS provides the base appearance only. */
.hero-fragments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hf {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-style: italic;
  color: var(--black);
  white-space: nowrap;
  opacity: 0;
  /* GSAP sets final opacity per fragment */
  will-change: transform;
  user-select: none;
  letter-spacing: -0.02em;
}

/* Each fragment has a different size — creates natural depth hierarchy */
.hf--1 {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
}

.hf--2 {
  font-size: clamp(0.85rem, 1.6vw, 1.3rem);
}

.hf--3 {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
}

.hf--4 {
  font-size: clamp(0.75rem, 1.3vw, 1.1rem);
}

.hf--5 {
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
}

.hf--6 {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.hf--7 {
  font-size: clamp(0.8rem, 1.5vw, 1.25rem);
}

.hf--8 {
  font-size: clamp(1.0rem, 2vw, 1.65rem);
}

.hf--9 {
  font-size: clamp(0.7rem, 1.2vw, 1.0rem);
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 6rem;
  max-width: 820px;
}

/* ── HEADLINE ── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.8rem;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line--accent .hw {
  color: var(--red);
}

.hw {
  display: inline-block;
  will-change: transform;
  margin-right: 0.22em;
}

.hw:last-child {
  margin-right: 0;
}

/* ── SUBTITLE ── */
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #777;
  line-height: 1.65;
  margin-bottom: 2.4rem;
  max-width: 500px;
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(18px);
}

/* ── CTAs ── */
.hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(18px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── SOCIAL PROOF ── */
.hero-proof {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #aaa;
  opacity: 0;
}

.hero-proof-item {
  white-space: nowrap;
}

.hero-proof-sep {
  margin: 0 0.75rem;
  color: var(--red);
  opacity: 0.5;
}

/* ── SERVICE TICKER ──
   Horizontal strip at the very bottom of the hero section.
   Continuous left-scroll via CSS animation — pure CSS, no JS needed.
   Two copies in the track so the loop is seamless. */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-mid);
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2;
  opacity: 0;
  /* fades in via GSAP with scroll hint */
}

.hero-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  will-change: transform;
}

.hero-ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 0 1.4rem;
}

.hero-ticker-sep {
  color: var(--red) !important;
  opacity: 0.4;
  padding: 0 !important;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── SCROLL HINT ── */
.hero-scroll {
  position: absolute;
  bottom: 3.8rem;
  /* sits above the ticker strip */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--red) 0%, transparent 100%);
  transform-origin: top center;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  30% {
    transform: scaleY(1);
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(0.4);
    opacity: 0;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-title {
    font-variation-settings: "opsz" 72;
    letter-spacing: -0.02em;
  }

  .hero-bg-word {
    left: 30%;
    opacity: 0.022;
  }

  .hero-proof {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .hf--3,
  .hf--1 {
    display: none;
  }

  /* less clutter on mobile */
}

@media (max-width: 480px) {
  .hero-content {
    padding-bottom: 6rem;
  }

  .hero-bg-word {
    display: none;
  }

  .hero-fragments {
    display: none;
  }
}

/* ── BUTTONS — shared across whole site ── */
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid var(--gray-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

/* ── STATS ── */
#stats {
  padding: 4rem 4%;
  background: var(--gray-light);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-text);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: var(--gray-mid);
  align-self: stretch;
  margin: 0 auto;
}

/* ── HOW IT WORKS ── */
/* ═══════════════════════════════════════════════════════════════════
   ── HOW IT WORKS — vertical scroll-driven timeline ──
   Layout: header left-aligned, then a 4-step vertical list.
   The red vertical line is drawn by GSAP ScrollTrigger (scaleY 0→1).
   Each step body enters from the right as the line reaches its dot.
   ═══════════════════════════════════════════════════════════════════ */

#how {
  background: var(--white);
  padding: 8rem 4%;
  overflow: hidden;
}

/* ── HEADER ── */
.how-header {
  margin-bottom: 5rem;
  max-width: 560px;
}

.how-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}

.how-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
  font-variation-settings: "opsz" 96, "SOFT" 20;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.2rem;
}

/* Italic second line — Fraunces has a beautiful italic */
.how-title em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 96, "SOFT" 60;
}

.how-subtitle {
  font-size: 1rem;
  color: #888;
  line-height: 1.6;
  font-weight: 400;
}

/* ── TIMELINE WRAPPER ── */
.how-timeline {
  position: relative;
  /* Left offset for the line track — aligns with dots */
  padding-left: 2.5rem;
}

/* ── THE VERTICAL LINE ── */
.how-line-track {
  position: absolute;
  left: 0;
  top: 0.5rem;
  /* starts at first dot */
  bottom: 0.5rem;
  /* ends at last dot */
  width: 2px;
  background: var(--gray-mid);
}

/* The fill — scaleY animated by GSAP from 0 to 1 */
.how-line-fill {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: top center;
  transform: scaleY(0);
  /* initial state — GSAP owns this */
  will-change: transform;
}

/* ── EACH STEP ROW ── */
.how-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  gap: 0 2.8rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

.how-step:last-child {
  margin-bottom: 0;
}

/* Dot on the line — sits left of the step body */
.how-step-marker {
  position: absolute;
  left: -2.5rem;
  /* pulls back to the line track */
  top: 0.45rem;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: 2px solid var(--white);
  outline: 2px solid var(--gray-mid);
  transition: background 0.4s ease, outline-color 0.4s ease;
  will-change: background, outline-color;
}

/* Active state — applied by GSAP when line reaches this dot */
.how-step.is-active .how-step-dot {
  background: var(--red);
  outline-color: rgba(230, 57, 70, 0.25);
}

/* Large ghost number — decorative, sits behind step body */
.how-step-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  align-self: start;
  margin-top: -0.1em;
  /* Initial state for GSAP */
  will-change: opacity;
}

/* Step body — label + description */
.how-step-body {
  grid-column: 2;
  grid-row: 1;
  padding-top: 0.1rem;

  /* Initial state — GSAP slides these in from the right */
  opacity: 0;
  transform: translateX(40px);
  will-change: transform, opacity;
}

.how-step-label {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.7rem;
  line-height: 1.1;
}

.how-step-desc {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.7;
  max-width: 520px;
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .how-timeline {
    padding-left: 1.8rem;
  }

  .how-step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-bottom: 3.5rem;
  }

  .how-step-num {
    font-size: 2.5rem;
    opacity: 0.04;
  }

  .how-step-marker {
    left: -1.8rem;
  }
}

/* ── ABOUT ── */
#about {
  background: var(--black);
  color: var(--white);
}

#about .section-title {
  color: var(--white);
}

#about .section-subtitle {
  color: #aaa;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.mission-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.mission-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.mission-text {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

/* Horní řada: Petr + Vojtěch — 2 sloupce, centrovaně pod sebou */
.team-grid--top {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc((100% / 3) * 2 + 0.5rem);
  margin: 0 auto 1.5rem;
  align-items: stretch;
}

/* Dolní řada: Beau + Tomi + Valentyna — plná šířka, 3 sloupce */
.team-grid--bottom {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

/* Fallback pro starší markup */
.team-grid:not(.team-grid--top):not(.team-grid--bottom) {
  grid-template-columns: repeat(2, 1fr);
}

/* Flip card */
.team-card {
  perspective: 1200px;
  cursor: pointer;
  height: 100%;
  /* stretch to grid cell height */
  /* Staggered entrance — tied to --delay set inline on each card */
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.8s var(--ease-out-expo) var(--delay, 0ms),
    transform 0.9s var(--ease-out-expo) var(--delay, 0ms);
  will-change: transform, opacity;
  position: relative;
}

.reveal.visible .team-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Featured card — Valentyna as Design Director gets a subtle emphasis ring */
.team-card--featured .team-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--red) 0%, transparent 40%, transparent 60%, var(--red) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  /* Grid stacking — both faces share the same cell.
     This gives .team-card-inner real intrinsic height (unlike the
     old absolute-child approach where height collapsed to 0). */
  display: grid;
  grid-template-areas: "stack";
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card-inner {
    transform: rotateY(180deg);
  }
}

.team-card-front,
.team-card-back {
  grid-area: stack;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  /* min-height so even the shorter card has a comfortable size */
  min-height: 240px;
}

.team-card-front {
  background: rgba(255, 255, 255, 0.04);
}

.team-card-back {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(30, 30, 40, 0.95));
  transform: rotateY(180deg);
  justify-content: flex-start;
  padding: 1rem;
  gap: 0.45rem;
}

.team-card-back .team-name {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.team-card-back .team-bio {
  font-size: 0.72rem;
  line-height: 1.45;
}

.team-card-back .team-tag {
  font-size: 0.64rem;
  padding: 0.1rem 0.4rem;
}

.team-card-back .team-photo {
  width: 58px;
  height: 58px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.5;
}

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.team-bio {
  font-size: 0.78rem;
  color: #ccc;
  line-height: 1.55;
  text-align: center;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.team-tag {
  background: rgba(230, 57, 70, 0.25);
  color: #ff8a8a;
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ── PORTFOLIO ── */
#portfolio {
  background: var(--gray-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-inner {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--white);
  border-radius: 8px;
}

.portfolio-info {
  padding: 1.4rem;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.portfolio-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.portfolio-desc {
  font-size: 0.87rem;
  color: var(--gray-text);
}

/* ── BOOKING ── */
#booking {
  background: var(--white);
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.booking-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.8rem;
}

.booking-info p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.booking-perks {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.booking-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #444;
  padding: 0.35rem 0;
}

.booking-perks li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
}

.booking-form-box {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-mid);
}

.booking-form-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.2rem;
  text-align: center;
}

.booking-field {
  margin-bottom: 1rem;
}

.booking-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.booking-field input,
.booking-field select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--white);
  transition: border var(--transition);
  outline: none;
}

.booking-field input:focus,
.booking-field select:focus {
  border-color: var(--red);
}

.btn-booking {
  width: 100%;
  padding: 0.85rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.btn-booking:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.booking-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: #2d6a4f;
  background: #d8f3dc;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .booking-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── REVIEW FORM ── */
.review-form-wrap {
  max-width: 580px;
  margin: 3rem auto 0;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-mid);
}

.review-form-wrap h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.review-form-wrap p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.2rem;
}

.review-stars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.review-stars span {
  font-size: 1.6rem;
  cursor: pointer;
  color: #ddd;
  transition: color 0.15s;
  user-select: none;
}

.review-stars span.active {
  color: #f4a100;
}

.review-field {
  margin-bottom: 0.9rem;
}

.review-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.review-field input,
.review-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--white);
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}

.review-field input:focus,
.review-field textarea:focus {
  border-color: var(--red);
}

.review-field textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-review-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-review-submit:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.review-submit-success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: #d8f3dc;
  color: #2d6a4f;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

/* ── REVIEWS ── */
#reviews {
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-quote {
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-company {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.review-stars {
  color: #f4a100;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* ── PRICING ── */
#pricing {
  background: var(--gray-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--red);
  background: var(--black);
  color: var(--white);
}

.pricing-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
}

.pricing-plan {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-name {
  color: var(--white);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-card.featured .pricing-desc {
  color: #aaa;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.pricing-card.featured .price-amount {
  color: var(--white);
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
}

.price-eur {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.pricing-card.featured .price-eur {
  color: #888;
}

.pricing-divider {
  height: 1px;
  background: var(--gray-mid);
  margin: 1.5rem 0;
}

.pricing-card.featured .pricing-divider {
  background: rgba(255, 255, 255, 0.1);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-card.featured .pricing-features li {
  color: #ddd;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card.featured .check {
  background: rgba(230, 57, 70, 0.25);
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-pricing-outline {
  border: 2px solid var(--gray-mid);
  color: var(--black);
}

.btn-pricing-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-pricing-filled {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-pricing-filled:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--gray-text);
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.pricing-note strong {
  color: var(--black);
}

/* ── FAQ ── */
#faq {
  background: var(--white);
}

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--white);
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-item.open .faq-question {
  background: var(--gray-light);
  color: var(--red);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-mid);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.3rem;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.8;
}

/* ── CONTACT ── */
#contact {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-label {
  font-size: 0.78rem;
  color: var(--gray-text);
  margin-bottom: 0.1rem;
}

.contact-value {
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-value:hover {
  color: var(--red);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #555;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
}

.social-link.instagram:hover {
  opacity: 0.88;
}

.social-link.tiktok {
  background: #000;
  border-color: #000;
  color: #fff;
}

.social-link.tiktok:hover {
  background: #111;
}

.social-link.linkedin {
  background: #0077b5;
  border-color: #0077b5;
  color: #fff;
}

.social-link.linkedin:hover {
  background: #005885;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.form-label .required {
  color: var(--red);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.form-submit:active {
  transform: translateY(0);
}

/* Success popup */
#success-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

#success-popup.show {
  display: flex;
}

.success-box {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: successPulse 0.6s ease 0.2s both;
}

@keyframes successPulse {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.success-text {
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.success-close {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.success-close:hover {
  background: var(--red-dark);
}

/* ── CTA BANNER ── */
#cta-banner {
  background: var(--red);
  padding: 5rem 4%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px,
      transparent 1px, transparent 60px);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-cta-white {
  background: var(--white);
  color: var(--red);
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.btn-cta-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.cta-btn-animated {
  animation: ctaBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-play-state: paused;
}

.cta-btn-animated.play {
  animation-play-state: running;
}

.cta-btn-animated:nth-child(1) {
  animation-delay: 0.15s;
}

.cta-btn-animated:nth-child(2) {
  animation-delay: 0.35s;
}

@keyframes ctaBounceIn {
  0% {
    transform: scale(0.82);
    opacity: 0;
  }

  55% {
    transform: scale(1.1);
    opacity: 1;
  }

  75% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── LEGAL PAGES ── */
#legal {
  display: none;
  padding: 8rem 4% 5rem;
  min-height: 100vh;
}

#legal.active {
  display: block;
}

.legal-content {
  scroll-margin-top: 20px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}

.legal-content p {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.legal-content ul {
  color: var(--gray-text);
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.legal-nav-btn {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
}

.legal-nav-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ── 404 ── */
#page-404 {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 4rem;
}

#page-404.active {
  display: flex;
}

.notfound-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--gray-mid);
  line-height: 1;
}

.notfound-number span {
  color: var(--red);
}

.notfound-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.notfound-text {
  color: var(--gray-text);
  margin-bottom: 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: #aaa;
  padding: 4rem 4% 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .nav-logo {
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: #444;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .team-grid--top {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .team-grid--bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 5%;
  }

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

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

  .team-grid--top,
  .team-grid--bottom,
  .team-grid:not(.team-grid--top):not(.team-grid--bottom) {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .team-card {
    min-height: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 440px) {

  .team-grid--top,
  .team-grid--bottom,
  .team-grid:not(.team-grid--top):not(.team-grid--bottom) {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ── FUTURISTIC SCROLL + INTERACTION LAYER ──
   Added without changing the brand palette. Everything here is motion,
   depth, and texture — the "from-the-future" feel comes from behavior,
   not color.
   ═══════════════════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ── */
/* Tiny filament of red that fills across the very top of the viewport
   as the user scrolls. Driven entirely by scroll position via JS. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, #ff6b6b 100%);
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 12px var(--glow-red);
  transition: width 0.08s linear;
}

/* ── GRAIN / NOISE OVERLAY ── */
/* A subtle film grain across the entire page — breaks the "perfect pixel"
   flatness that makes AI-generated sites look sterile. Barely visible,
   but your eye notices it's missing when it's gone. */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ── CUSTOM CURSOR (desktop only) ── */
/* Two-layer cursor: small red dot + larger trailing red ring.
   Fully red everywhere — no color inversion, no blend modes. */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }

  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .team-card,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0);
    border-radius: 50%;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    /* Smooth size transition for hover state */
    transition: width 0.2s var(--ease-spring), height 0.2s var(--ease-spring), opacity 0.2s ease;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--red);
    background: transparent;
    opacity: 0.55;
    /* Width/height transition drives the expand animation.
       Transform is NOT in this transition — JS handles it frame by frame. */
    transition: width 0.28s var(--ease-spring), height 0.28s var(--ease-spring), opacity 0.3s ease;
  }

  /* On hover: ring expands, dot shrinks slightly */
  .cursor-ring.is-hovering {
    width: 56px;
    height: 56px;
    opacity: 0.8;
  }

  .cursor-dot.is-hovering {
    width: 4px;
    height: 4px;
    opacity: 0.7;
  }
}

/* Respect user preferences — disable custom cursor on touch/reduced motion */
@media (hover: none),
(prefers-reduced-motion: reduce) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ── 3D TILT ON TEAM CARDS ── */
/* The card-inner already has transform-style: preserve-3d for the flip.
   We add mouse-position-driven rotation via CSS variables set by JS.
   Gated to pointer-fine devices so touch devices don't get sticky-hover
   stuck in the flipped state. */
@media (hover: hover) and (pointer: fine) {
  .team-card-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform:
      rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }

  .team-card:hover .team-card-inner {
    transform:
      rotateY(calc(180deg + var(--tilt-y, 0deg))) rotateX(var(--tilt-x, 0deg));
  }
}

/* Soft glow on hover — follows the cursor via --mx/--my CSS vars */
.team-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle 180px at var(--mx, 50%) var(--my, 50%),
      rgba(230, 57, 70, 0.18),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.team-card:hover .team-card-front::after {
  opacity: 1;
}

/* ── DIRECTIONAL REVEALS ── */
/* Richer than the default .reveal — these slide in from specific edges
   so the page feels orchestrated rather than uniformly fading in. */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Upgrade the baseline .reveal with a smoother curve + blur assist */
.reveal {
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
  filter: blur(6px);
}

.reveal.visible {
  filter: blur(0);
}

/* ── MAGNETIC TARGETS ── */
/* Buttons/links with .magnetic get pulled gently toward the cursor.
   The translation itself is applied by JS via --mag-x / --mag-y. */
.magnetic {
  transition: transform 0.35s var(--ease-spring);
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  will-change: transform;
}

/* ── SECTION TRANSITIONS — scanline divider ── */
/* A thin animated divider that appears between sections when they enter view.
   Evokes the crisp, diagrammatic feel of design-software overlays. */
.scanline-divider {
  position: relative;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(230, 57, 70, 0.3) 20%,
      rgba(230, 57, 70, 0.8) 50%,
      rgba(230, 57, 70, 0.3) 80%,
      transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out-expo);
}

.scanline-divider.visible {
  transform: scaleX(1);
}

/* ── MARQUEE (animated scrolling text strip) ── */
/* Adds a subtle horizontal ticker feel; used sparingly via .marquee wrapper. */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
  padding: 0.8rem 0;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 40s linear infinite;
  padding-left: 100%;
}

.marquee-track>span {
  display: inline-block;
  padding: 0 2rem;
}

.marquee-track>span::before {
  content: "◆";
  color: var(--red);
  margin-right: 2rem;
  font-size: 0.7rem;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ── ACCESSIBILITY — respect reduced motion everywhere ── */
@media (prefers-reduced-motion: reduce) {

  .team-card,
  .team-card-inner,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-blur,
  .scanline-divider,
  .magnetic,
  .marquee-track {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .scroll-progress {
    display: none;
  }

  .grain-overlay {
    display: none;
  }
}