/* =====================
   GOOGLE FONTS
===================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');


/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #A1A1A1;
  background-color: #0B0B0B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}


/* =====================
   LAYOUT UTILITY
===================== */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}


/* =====================
   SCROLL REVEAL
   Elements with .reveal animate in when they enter
   the viewport. The JS adds .visible to trigger it.
   --delay CSS var staggers grid children.
===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

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

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


/* =====================
   SECTION EYEBROW
   Small uppercase label above section headlines.
===================== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.7);
  margin-bottom: 0.75rem;
}


/* =====================
   SECTION HEADER
   Shared by Services, Work, Process, etc.
===================== */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #F5F5F5;
  margin-bottom: 0.625rem;
  line-height: 1.15;
}

.section-header p {
  font-size: 1rem;
  color: #A1A1A1;
  max-width: 480px;
  line-height: 1.7;
}


/* =====================
   NAVIGATION
   Transparent over hero → gold-tinted frosted glass on scroll.
   .nav-open shows the mobile drawer.
   Uppercase links with gold slide-underline on hover.
===================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color     0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow       0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled: gold-tinted frosted glass — more cohesive than plain white */
header.scrolled {
  background-color: rgba(4, 4, 4, 0.88);
  border-bottom: 1px solid rgba(196, 169, 107, 0.14);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(196, 169, 107, 0.07),
    0 12px 48px rgba(0, 0, 0, 0.72);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
}

/* Logo — refined height, no more oversized mark */
.logo img {
  height: 80px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.68;
}

/* Nav links — uppercase architectural tracking */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

header .nav-links a {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.52);
  padding-bottom: 3px;
  transition: color 0.25s ease;
}

/* Gold slide-underline — the signature detail */
header .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #C4A96B, rgba(196, 169, 107, 0.5));
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

header .nav-links a:hover {
  color: rgba(245, 245, 245, 0.92);
}

header .nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA — gold-bordered by default, fills gold on scroll */
header .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background-color: transparent;
  color: #C4A96B;
  border: 1px solid rgba(196, 169, 107, 0.4);
  transition:
    background-color 0.25s ease,
    border-color     0.25s ease,
    color            0.25s ease,
    box-shadow       0.25s ease;
}

header .nav-cta:hover {
  background-color: rgba(196, 169, 107, 0.08);
  border-color: rgba(196, 169, 107, 0.75);
  box-shadow: 0 0 22px rgba(196, 169, 107, 0.12);
}

header.scrolled .nav-cta {
  background-color: #C4A96B;
  color: #0B0B0B;
  border-color: transparent;
}

header.scrolled .nav-cta:hover {
  background-color: #d4b96e;
  box-shadow: 0 0 28px rgba(196, 169, 107, 0.28);
}

/* Hamburger toggle — gold border matches CTA language */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(196, 169, 107, 0.32);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  color: rgba(245, 245, 245, 0.8);
  line-height: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(196, 169, 107, 0.65);
  background-color: rgba(196, 169, 107, 0.06);
}

/* Swap hamburger / X icons via CSS */
.nav-toggle .icon-close  { display: none; }
.nav-toggle .icon-menu   { display: block; }

header.nav-open .nav-toggle .icon-close { display: block; }
header.nav-open .nav-toggle .icon-menu  { display: none; }

/* Mobile nav drawer — absolutely positioned so it overlays the page
   instead of pushing content down (fixes iPhone scroll-offset bug) */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background-color: rgba(4, 4, 4, 0.97);
  border-top: 1px solid rgba(196, 169, 107, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

header.nav-open .mobile-nav {
  max-height: 440px;
}

.mobile-nav ul {
  padding: 8px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  border-bottom: 1px solid rgba(196, 169, 107, 0.08);
  transition: color 0.2s ease;
}

.mobile-nav ul li:last-child a {
  border-bottom: none;
}

.mobile-nav ul li a:hover {
  color: #C4A96B;
}

/* Mobile CTA — solid gold, same radius as desktop CTA */
.mobile-nav .mobile-cta {
  display: block;
  margin-top: 18px;
  padding: 14px 28px !important;
  background-color: #C4A96B;
  color: #0B0B0B !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.6875rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: none !important;
  justify-content: center !important;
  transition: background-color 0.2s ease;
}

.mobile-nav .mobile-cta:hover {
  background-color: #d4b96e !important;
  color: #0B0B0B !important;
}


/* =====================
   HERO SECTION
   Four stacked layers:
     1. #prism-container  — WebGL canvas (z 0)
     2. .hero-overlay     — dark film (z 1)
     3. .hero-content     — all text/buttons (z 2)
     4. .hero-scroll-cue  — scroll chevron (z 2)
===================== */
#hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 86vh;
  min-height: 580px;
  background-color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  contain: layout style paint;
}

#prism-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#prism-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem 1.75rem;
  max-width: 660px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -100px -140px;
  background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0.52) 0%, transparent 58%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 0.75rem;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C4A96B;
  margin-right: 2px;
  flex-shrink: 0;
  animation: badgeDotPulse 2.4s ease-in-out infinite;
}

@keyframes badgeDotPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

#hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 1.125rem;
}

.hero-sub {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
  max-width: 400px;
  margin: 0 0 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 2.125rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-hero:active {
  transform: scale(0.96);
}

.btn-hero.btn-primary {
  background-color: #F5F5F5;
  color: #0B0B0B;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
}

.btn-hero.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.22);
}

.btn-hero.btn-secondary {
  background-color: transparent;
  color: #F5F5F5;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-services {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1;
  margin: 0;
  padding-top: 1.75rem;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.28);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.28; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.52; }
}

@keyframes heroScrollCueFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.28; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge    { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s  both; }
  #hero h1       { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
  .hero-sub      { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s  both; }
  .hero-ctas     { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
  .hero-services { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.68s both; }

  .hero-scroll-cue {
    animation:
      heroScrollCueFadeIn 0.5s ease             0.9s both,
      heroScrollBounce    2.4s ease-in-out 1.4s infinite;
  }
}


/* =====================
   SERVICES SECTION
===================== */
#services {
  background-color: #0B0B0B;
  position: relative;
  overflow: hidden;
}

/* Faint ambient radial glow behind the card group */
#services::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 140vw);
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.022) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* One-time light sweep — fires once ~1.4s after page load */
@media (prefers-reduced-motion: no-preference) {
  #services::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      108deg,
      transparent 28%,
      rgba(255,255,255,0.03) 50%,
      transparent 72%
    );
    background-size: 300% 100%;
    background-position: 100% 0;
    pointer-events: none;
    z-index: 1;
    animation: servicesSweep 2s cubic-bezier(0.25, 0, 0.25, 1) 1.4s 1 forwards;
  }

  @keyframes servicesSweep {
    from { background-position: 100% 0; }
    to   { background-position: -100% 0; }
  }
}

/* Content sits above the glow layers */
#services > .container {
  position: relative;
  z-index: 2;
}

/* Slightly larger heading to anchor the section */
#services .section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
}

.service-card {
  background-color: #121212;
  border: 1px solid #242424;
  border-radius: 14px;
  padding: 2rem 1.75rem 1.875rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  /* Inset top highlight gives the card a dimensional lifted edge */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 1px 3px rgba(0,0,0,0.25);
}

/* Soft top-edge gradient — reinforces the "lit from above" feel */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 50%, transparent);
  pointer-events: none;
}

/* Icon container */
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.service-icon svg {
  display: block;
  color: rgba(245,245,245,0.5);
  transition: color 0.3s ease;
}

/* Ghost number — ornamental, top-right corner */
.service-number {
  position: absolute;
  top: 1.25rem;
  right: 1.375rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(245, 245, 245, 0.1);
  pointer-events: none;
  user-select: none;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #F5F5F5;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.9375rem;
  color: #A1A1A1;
  line-height: 1.7;
}

/* Desktop hover — only on pointer devices, never triggers on touch */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245,245,245,0.12);
    background-color: #161616;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 20px 50px rgba(0,0,0,0.5),
      0 6px 16px rgba(0,0,0,0.3);
  }

  .service-card:hover .service-icon {
    background-color: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
  }

  .service-card:hover .service-icon svg {
    color: rgba(245,245,245,0.85);
  }
}


/* =====================
   WORK SECTION
===================== */
#work {
  background-color: #121212;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.work-card {
  cursor: pointer;
}

.work-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  margin-bottom: 1.125rem;
  overflow: hidden;
  border: 1px solid #242424;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover .work-card-image {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(196, 169, 107, 0.2);
}

/* Hover overlay — "View Live Site" appears on hover */
.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.work-card-visit {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #F5F5F5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-card-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.work-card:hover .work-card-visit {
  opacity: 1;
  transform: translateY(0);
}

/* Fox's Fleet */
.work-card-image--1 {
  background: url('../assets/images/Foxs_Fleet_Client_Work.png') center center / cover no-repeat;
}

.work-card-image--2 {
  background: url('../assets/images/Upthrive_Client_Work.png') center center / cover no-repeat;
}

.work-card-image--3 {
  background: linear-gradient(145deg, #0c0b08 0%, #1c180e 65%, #141208 100%);
}

/* "Coming Soon" label centered inside the card */
.work-soon-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.32);
  border: 1px dashed rgba(196, 169, 107, 0.12);
  border-radius: 10px;
}

.work-card-tags {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.3);
  margin-bottom: 0.35rem;
}

.work-card-meta h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #F5F5F5;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
  transition: color 0.25s ease;
}

.work-card:hover .work-card-meta h3 {
  color: #fff;
}

.work-card-desc {
  font-size: 0.875rem;
  color: #A1A1A1;
  line-height: 1.6;
}


/* =====================
   WHY UPTHRIVE SECTION
===================== */
#why {
  background-color: #0B0B0B;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient depth — sits behind the content */
#why::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -8%;
  width: 580px;
  height: 580px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.016) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#why > .container {
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* --- Statement Column --- */

.why-statement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.why-h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #F5F5F5;
  line-height: 1.1;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.why-body {
  font-size: 1rem;
  color: #A1A1A1;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 420px;
}

.why-body + .why-body {
  margin-bottom: 2.25rem;
}

/* --- System Panel --- */

.why-panel {
  background: #121212;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 1px 3px rgba(0,0,0,0.25);
}

/* Subtle inner glow emanating from the top of the panel */
.why-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 180px;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,0.04) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* PREMIUM MOMENT — Animated top hairline
   Starts collapsed at center-point, expands to full width on reveal.
   Fires after the panel's own fade-in has begun. */
.why-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 107, 0.45) 50%, transparent);
  transition:
    left  0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    right 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
  z-index: 2;
}

.why-panel.visible::after {
  left: 0;
  right: 0;
}

.why-panel-header {
  padding: 1.5rem 1.875rem 1.25rem;
  border-bottom: 1px solid #242424;
  position: relative;
  z-index: 1;
}

.why-panel-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.28);
}

.why-system-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.875rem;
  border-bottom: 1px solid rgba(36, 36, 36, 0.9);
  transition: background-color 0.2s ease;
}

.why-item:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .why-item:hover {
    background-color: rgba(255,255,255,0.02);
  }
}

.why-item-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #F5F5F5;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.why-item-desc {
  display: block;
  font-size: 0.8125rem;
  color: #A1A1A1;
  line-height: 1.65;
}


/* =====================
   ABOUT SECTION
===================== */
#about {
  background-color: #121212;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #242424;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #F5F5F5;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-left p {
  font-size: 1rem;
  color: #A1A1A1;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-left p:last-of-type {
  margin-bottom: 2rem;
}

/* Outline CTA button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.875rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F5F5F5;
  border: 1.5px solid #242424;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover {
  border-color: rgba(196, 169, 107, 0.5);
  background-color: rgba(196, 169, 107, 0.04);
  color: rgba(196, 169, 107, 0.9);
}

/* Right column: stacked value cards */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-value {
  padding: 1.625rem 0;
  border-bottom: 1px solid #242424;
}

.about-value:first-child {
  border-top: 1px solid #242424;
}

.about-value-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.3);
  margin-bottom: 0.625rem;
}

.about-value p {
  font-size: 0.9375rem;
  color: #A1A1A1;
  line-height: 1.7;
}


/* =====================
   CONTACT SECTION
===================== */
#contact {
  background-color: #0B0B0B;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(196, 169, 107, 0.038) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

#contact > .container {
  position: relative;
  z-index: 1;
}

.cta-block {
  text-align: center;
  margin-bottom: 3rem;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.36);
  margin-bottom: 0.75rem;
}

.cta-block h2,
.contact-h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #F5F5F5;
  margin-bottom: 1rem;
}

.contact-h2-gold {
  color: #C4A96B;
}

.cta-block p {
  font-size: 1rem;
  color: #A1A1A1;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 580px;
  margin: 0 auto;
}

/* Name + email side by side on desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #242424;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: rgba(255, 255, 255, 0.03);
  color: #F5F5F5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 245, 245, 0.28);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(196, 169, 107, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(196, 169, 107, 0.07);
}

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

.btn-submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.01em;
  background-color: #F5F5F5;
  color: #0B0B0B;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 245, 245, 0.18);
}

.btn-submit:active {
  transform: scale(0.97);
}

/* Disabled state — all fields must be filled + consent checked */
.btn-submit:disabled {
  background-color: rgba(245, 245, 245, 0.06);
  color: rgba(245, 245, 245, 0.22);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Success state — added by JS after submit */
.contact-form.submitted .btn-submit {
  background-color: rgba(245, 245, 245, 0.12);
  color: rgba(245, 245, 245, 0.6);
  pointer-events: none;
}


/* =====================
   FOOTER — Editorial three-column layout
===================== */
footer {
  background-color: #050505;
  position: relative;
  padding: 80px 0 40px;
}

/* Gold gradient top edge */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 169, 107, 0.28) 20%,
    rgba(196, 169, 107, 0.7) 50%,
    rgba(196, 169, 107, 0.28) 80%,
    transparent 100%
  );
}

/* Ambient center glow */
footer::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 280px;
  background: radial-gradient(ellipse at top center, rgba(196, 169, 107, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Three-column editorial grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
  margin-bottom: 32px;
  position: relative;
}

/* Gold separator below the grid */
.footer-grid::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 169, 107, 0.1) 20%,
    rgba(196, 169, 107, 0.22) 50%,
    rgba(196, 169, 107, 0.1) 80%,
    transparent 100%
  );
}

/* Column label */
.footer-col-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.5);
  margin-bottom: 22px;
}

/* Nav links inside each column */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.32);
  transition: color 0.22s ease;
}

.footer-nav a:hover {
  color: rgba(245, 245, 245, 0.85);
}

/* Left column — left-aligned */
.footer-col--left {
  text-align: left;
}

/* Right column — right-aligned for visual symmetry */
.footer-col--right {
  text-align: right;
}

/* Center column — logo + tagline + socials stacked */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  min-width: 180px;
}

.footer-logo {
  height: 100px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.8rem;
  line-height: 1.72;
  color: rgba(245, 245, 245, 0.25);
  text-align: center;
}

/* Social icons — minimal circles */
.footer-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 245, 245, 0.3);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-link:hover {
  border-color: rgba(196, 169, 107, 0.45);
  color: #C4A96B;
  background: rgba(196, 169, 107, 0.06);
  box-shadow: 0 0 14px rgba(196, 169, 107, 0.12);
}

/* Bottom bar */
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 245, 0.16);
}

.footer-location {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.28);
}

/* ——— Tablet ——— */
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .footer-col--right {
    text-align: left;
  }
}

/* ——— Mobile ——— */
@media (max-width: 480px) {
  footer {
    padding: 64px 0 32px;
  }

  .footer-inner {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .footer-base {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* =====================
   REDUCED MOTION
===================== */
@media (prefers-reduced-motion: reduce) {
  #prism-container {
    display: none;
  }
  #hero {
    background-color: #050505;
  }
}


/* =====================
   TABLET  601–900px
===================== */
@media (min-width: 601px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

}


/* =====================
   MOBILE  ≤ 600px
===================== */
@media (max-width: 600px) {

  section {
    padding: 72px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Nav */
  .nav-links,
  header .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .navbar {
    padding: 0 20px;
    height: 60px;
  }

  /* Hero */
  #hero {
    height: 78svh;
    min-height: 500px;
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
  }

  #hero h1 {
    margin-bottom: 0.875rem;
  }

  .hero-sub {
    margin-bottom: 1.625rem;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }

  .btn-hero {
    width: 100%;
    max-width: 300px;
  }

  .hero-scroll-cue {
    bottom: 1.125rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Why Upthrive */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .why-body {
    max-width: 100%;
  }

  .why-panel-header {
    padding: 1.25rem 1.375rem 1rem;
  }

  .why-item {
    padding: 1.125rem 1.375rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
  }

}


/* =====================
   HERO — iPHONE ONLY  ≤ 480px
   Fixes the "too zoomed in" feeling. The WebGL scale is also
   reduced in script.js (SCALE * 0.62 when isMobile).
   Desktop is completely untouched.
===================== */
@media (max-width: 480px) {

  /* Slightly tighter height — removes excess empty vertical space */
  #hero {
    height: 80svh;
    min-height: 540px;
  }

  /* Stronger overlay to balance the now-smaller prism effect */
  .hero-overlay {
    background: rgba(0, 0, 0, 0.48);
  }

  /* Tighten the radial glow behind content — stops bleed at screen edges */
  .hero-content::before {
    inset: -60px -50px;
  }

  /* Bring content block tighter — more breathing room around it */
  .hero-content {
    padding: 1.25rem 1.375rem;
    gap: 0;
  }

  /* Eyebrow — slightly less gap to headline */
  .hero-badge {
    margin-bottom: 0.5rem;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }

  /* Headline — bring bottom margin tighter */
  #hero h1 {
    margin-bottom: 0.75rem;
  }

  /* Sub copy — slightly smaller for proportional fit */
  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  /* Service row — smaller text and tighter tracking so it wraps cleanly */
  .hero-services {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    padding-top: 1.25rem;
    line-height: 1.6;
  }

  /* Scroll cue — less bottom space needed */
  .hero-scroll-cue {
    bottom: 1rem;
  }
}


/* =====================
   THE UPTHRIVE SYSTEM SECTION
   "Not an agency. A complete growth machine."
===================== */
.system-section {
  background: #0B0B0B;
  padding: 96px 0;
}

/* Two-column layout: text left, cards right */
.system-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

/* Stick the intro as cards scroll */
.system-intro {
  position: sticky;
  top: 100px;
}

@media (max-width: 760px) {
  .system-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .system-intro {
    position: static;
  }
}

/* Eyebrow pill */
.system-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.75);
  border: 1px solid rgba(196, 169, 107, 0.18);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 2rem;
}

.system-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C4A96B;
  flex-shrink: 0;
}

/* Two-tone headline */
.system-h2 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #F5F0E8;
  margin-bottom: 1.5rem;
}

.system-h2-gold {
  color: #C4A96B;
}

/* Body copy */
.system-body {
  font-size: 1rem;
  color: #777;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

/* Text CTA */
.system-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #C4A96B;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 169, 107, 0);
  transition: color 0.22s ease, text-decoration-color 0.28s ease;
}

.system-cta:hover {
  color: #d4bc82;
  text-decoration-color: rgba(196, 169, 107, 0.5);
}

/* Layer cards stack */
.system-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-card {
  position: relative;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px 28px;
  /* Start hidden — IntersectionObserver adds .active on scroll-enter */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity      0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
    transform    0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
    border-color 0.25s ease 0s,
    background   0.25s ease 0s,
    box-shadow   0.5s ease  var(--delay, 0s);
}

.layer-card:hover {
  border-color: rgba(196, 169, 107, 0.2);
  background: #141414;
}

/* ——— Card activation — added by IntersectionObserver ——— */
.layer-card.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(196, 169, 107, 0.14);
  box-shadow:
    0 0 18px rgba(196, 169, 107, 0.05),
    0 2px 12px rgba(0, 0, 0, 0.22);
}

/* ——— One-shot pop ring — expands and fades on card activation ——— */
.layer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(196, 169, 107, 0);
  pointer-events: none;
}

.layer-card.active::after {
  animation: layerCardPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes layerCardPop {
  0%   { transform: scale(1);    border-color: rgba(196, 169, 107, 0.65); opacity: 1; }
  100% { transform: scale(1.04); border-color: rgba(196, 169, 107, 0);   opacity: 0; }
}

/* Layer label */
.layer-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.45);
  margin-bottom: 10px;
}

/* Layer title */
.layer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(240, 235, 224, 0.48); /* dimmed — brightens on .active */
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color 0.5s ease 0.15s;
}

.layer-card.active .layer-title {
  color: #F0EBE0;
}

/* Layer description */
.layer-desc {
  font-size: 0.9rem;
  color: rgba(110, 110, 110, 0.45); /* dimmed — brightens on .active */
  line-height: 1.7;
  margin-bottom: 16px;
  transition: color 0.55s ease 0.28s;
}

.layer-card.active .layer-desc {
  color: #6E6E6E;
}

/* Tag pills */
.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #888;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ——— Advanced Growth Layer divider ———
   Sits above Layer 06, aligning with the card column. */
.layer-divider {
  margin: 8px 0;
  display: flex;
  align-items: center;
}

.layer-divider-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.65);
  padding: 5px 13px;
  border: 1px dashed rgba(196, 169, 107, 0.28);
  border-radius: 20px;
  white-space: nowrap;
}

/* ——— Premium card (Layer 06: Scale with Automation) ———
   Permanent faint gold border + top-edge accent.
   Deeper glow and brighter border on .active. */
.layer-card--premium {
  border-color: rgba(196, 169, 107, 0.16) !important;
  background: rgba(196, 169, 107, 0.02);
}

/* Subtle gold top-edge accent line */
.layer-card--premium::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(196, 169, 107, 0.32) 50%,
    transparent
  );
  pointer-events: none;
}

.layer-card--premium.active {
  border-color: rgba(196, 169, 107, 0.3) !important;
  box-shadow:
    0 0 0 1px rgba(196, 169, 107, 0.04),
    0 0 32px rgba(196, 169, 107, 0.11),
    0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ——— Reduced motion override ——— */
@media (prefers-reduced-motion: reduce) {
  .layer-card {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.25s ease, background 0.25s ease !important;
  }
  .layer-title,
  .layer-desc {
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .system-section {
    padding: 72px 0 64px;
  }

  .system-h2 {
    font-size: 2.25rem;
  }

  .layer-card {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .layer-title {
    font-size: 1.1rem;
  }
}


/* =====================
   GROWTH SYSTEM / JOURNEY SECTION
   Vertical story — mobile-first. Replaces the old services
   grid. Five stages scroll-reveal one by one. A teal track
   line illuminates as each stage enters the viewport.
   Primary design target: iPhone.
===================== */

/* Neutralise the legacy #services ::before / ::after effects
   so they don't interfere with the journey layout */
#services.journey-section::before,
#services.journey-section::after {
  content: none;
}

.journey-section {
  padding: 100px 0 112px;
  position: relative;
  overflow: hidden;
}

/* Hero-to-section bridge: softens the hard edge between
   the hero's #050505 and this section's #0B0B0B */
.j-bridge {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, #050505 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.journey-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ——— Section intro ——— */

.journey-intro {
  text-align: center;
  margin-bottom: 64px;
}

.journey-h2 {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F5F5F5;
  line-height: 1.1;
  margin: 0.625rem 0 1rem;
}

.journey-sub {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #A1A1A1;
  max-width: 440px;
  margin: 0 auto;
}

/* ——— Path container ——— */

.journey-path {
  position: relative;
}

/* ——— Vertical track line ———
   Single 1px line that runs the full height of the path.
   .journey-track-fill grows downward via JS as stages activate,
   lighting up with a teal gradient that echoes the hero prism. */

.journey-track {
  position: absolute;
  left: 15px;   /* ≈ center of the 32px dot */
  top: 0;
  bottom: 0;
  width: 1px;
  background: #202020;
  z-index: 0;
  overflow: hidden;
}

.journey-track-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom,
    rgba(196, 169, 107, 0.7)  0%,
    rgba(196, 169, 107, 0.28) 55%,
    rgba(196, 169, 107, 0.06) 100%
  );
  /* No CSS transition — height is driven directly by the rAF
     scroll handler, which provides naturally smooth updates. */
  will-change: height;
}

/* ——— Individual stage ——— */

.journey-stage {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-stage:last-child {
  margin-bottom: 0;
}

.journey-stage.active {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Node dot ——— */

.journey-node {
  flex-shrink: 0;
  width: 32px;
  padding-top: 1px; /* fine vertical alignment with text */
}

.journey-dot {
  position: relative; /* needed for ::after pulse ring */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #101010;
  border: 1px solid #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 245, 0.22);
  transition:
    border-color 0.55s ease,
    color        0.55s ease,
    box-shadow   0.55s ease,
    background   0.55s ease;
}

/* Dot activates when its stage enters the viewport */
.journey-stage.active .journey-dot {
  border-color: rgba(196, 169, 107, 0.5);
  color: rgba(196, 169, 107, 0.9);
  background: #120f04;
  box-shadow:
    0 0 0 4px rgba(196, 169, 107, 0.07),
    0 0 18px rgba(196, 169, 107, 0.16),
    inset 0 0 8px rgba(196, 169, 107, 0.04);
}

/* ——— Text content ——— */

.journey-content {
  flex: 1;
  padding-top: 4px;
  min-width: 0; /* prevents text overflow on narrow screens */
}

.journey-num {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.15);
  margin-bottom: 0.2rem;
  transition: color 0.55s ease;
}

.journey-stage.active .journey-num {
  color: rgba(196, 169, 107, 0.55);
}

.journey-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  /* Start slightly dimmed. Brightens on .active with a short delay
     so the title "comes alive" just after the stage fades into view. */
  color: rgba(245, 245, 245, 0.58);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 0.5s ease 0.15s;
}

.journey-desc {
  font-size: 0.9375rem;
  /* Start calmer. Brightens to full clarity on .active with
     a slightly longer delay for a cascading "settling" feel. */
  color: rgba(161, 161, 161, 0.5);
  line-height: 1.78;
  transition: color 0.55s ease 0.28s;
}

/* ——— Premium divider ———
   Sits between stage 04 and stage 05.
   margin-left: 52px = dot (32px) + gap (20px),
   aligning it with the text content column. */

.journey-divider {
  margin: 36px 0 36px 52px;
  position: relative;
  z-index: 1;
}

.journey-divider-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 169, 107, 0.65);
  padding: 5px 13px;
  border: 1px dashed rgba(196, 169, 107, 0.28);
  border-radius: 20px;
  white-space: nowrap;
}

/* ——— Premium stage (05): Scale with Automation ———
   Visually distinct from the core four stages.
   The dot has a permanent teal tint even when inactive,
   and the content sits in a subtle card. */

.journey-dot--premium {
  border-color: rgba(196, 169, 107, 0.18) !important;
  background: #120f04 !important;
}

.journey-stage--premium.active .journey-dot--premium {
  border-color: rgba(196, 169, 107, 0.65) !important;
  color: rgba(196, 169, 107, 0.98) !important;
  background: #1a1506 !important;
  box-shadow:
    0 0 0 4px rgba(196, 169, 107, 0.07),
    0 0 22px rgba(196, 169, 107, 0.2) !important;
}

/* Premium content card */
.journey-content--premium {
  background: rgba(196, 169, 107, 0.03);
  border: 1px solid rgba(196, 169, 107, 0.12);
  border-radius: 14px;
  padding: 18px 20px 20px;
  position: relative;
  overflow: hidden;
  /* Subtle intensification when the stage becomes active */
  transition: border-color 0.65s ease, box-shadow 0.65s ease;
}

/* Subtle gold top-edge accent line on premium card */
.journey-content--premium::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(196, 169, 107, 0.35) 50%,
    transparent
  );
  pointer-events: none;
}

/* Add-on tags inside the premium card */
.journey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.journey-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(196, 169, 107, 0.07);
  border: 1px solid rgba(196, 169, 107, 0.18);
  color: rgba(196, 169, 107, 0.75);
}

/* ——— Section CTA ——— */

.journey-footer {
  display: flex;
  justify-content: center;
  padding-top: 60px;
  /* Starts hidden — revealed by JS after the last stage settles */
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 2.25rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #C4A96B;
  color: #0B0B0B;
  text-decoration: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-cta-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .journey-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 169, 107, 0.3);
  }
}

/* ——— Reduced motion override ——— */

@media (prefers-reduced-motion: reduce) {
  .journey-stage {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .journey-track-fill {
    transition: none !important;
  }
  .journey-dot::after {
    animation: none !important;
  }
  .journey-title,
  .journey-desc {
    color: inherit !important;
    transition: none !important;
  }
  .journey-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ——— Tablet / desktop refinements ——— */

@media (min-width: 480px) {
  .journey-wrap {
    padding: 0 32px;
  }
}

@media (min-width: 768px) {
  .journey-section {
    padding: 112px 0 124px;
  }
  .journey-wrap {
    padding: 0 40px;
  }
  .journey-intro {
    margin-bottom: 72px;
  }
  .journey-stage {
    gap: 24px;
    margin-bottom: 52px;
  }
  .journey-divider {
    margin-left: 56px; /* 32px dot + 24px gap */
  }
  .journey-title {
    font-size: 1.1875rem;
  }
  .journey-content--premium {
    padding: 22px 24px 24px;
  }
}


/* ——— Active state: text brightens ———
   Title and desc transition from their base (dimmer) color to
   full clarity once the stage is marked active by the IO.
   The stagger (0.15s / 0.28s delay) creates a brief cascade
   where the stage materialises, then the title and desc light up. */

.journey-stage.active .journey-title {
  color: #F5F5F5;
}

.journey-stage.active .journey-desc {
  color: #A1A1A1;
}

/* ——— Node activation pulse ring ———
   A one-shot ring expands outward from each dot on activation.
   It plays once and fades — just enough to make the moment
   feel intentional. No looping, no radar effect. */

.journey-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 169, 107, 0);
  pointer-events: none;
}

.journey-stage.active .journey-dot::after {
  animation: journeyPulse 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes journeyPulse {
  0%   { transform: scale(1);   border-color: rgba(196, 169, 107, 0.8); opacity: 1; }
  100% { transform: scale(2.2); border-color: rgba(196, 169, 107, 0);   opacity: 0; }
}

/* ——— Premium card intensification on active ———
   The automation card's border and glow deepen when the stage
   activates — reinforcing that this is a higher-tier moment. */

.journey-stage--premium.active .journey-content--premium {
  border-color: rgba(196, 169, 107, 0.25);
  box-shadow:
    0 0 0 1px rgba(196, 169, 107, 0.04),
    0 0 36px rgba(196, 169, 107, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.28);
}

/* ——— CTA footer reveal ———
   Opacity / transform managed entirely by JS (not the generic
   reveal system) so it triggers with a deliberate delay after
   the last stage settles, not just when it enters the viewport. */

.journey-footer--visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* =====================
   WHAT WE DO — SERVICE CARDS
===================== */
.svc-section {
  background: #0B0B0B;
  padding: 96px 0 80px;
}

.svc-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.svc-h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #F5F0E8;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.svc-sub {
  font-size: 1rem;
  color: #888;
  line-height: 1.65;
  max-width: 440px;
}

/* 2-column grid on desktop, 1-column on mobile */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* Card base */
.svc-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.svc-card:hover {
  border-color: rgba(196, 169, 107, 0.25);
  background: #161616;
}

/* Featured card (Most Popular) */
.svc-card--featured {
  border-color: rgba(196, 169, 107, 0.2);
  background: #131210;
  position: relative;
}

.svc-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 107, 0.5) 50%, transparent);
  pointer-events: none;
}

.svc-card--featured:hover {
  border-color: rgba(196, 169, 107, 0.4);
  background: #181510;
}

/* Top row: number + badge side by side (featured card only) */
.svc-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Most Popular badge — inline in top row, no absolute positioning */
.svc-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #C4A96B;
  background: rgba(196, 169, 107, 0.1);
  border: 1px solid rgba(196, 169, 107, 0.22);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Number label (standalone on non-featured cards) */
.svc-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(196, 169, 107, 0.5);
  margin-bottom: 20px;
}

/* Icon box */
.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #C4A96B;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Title */
.svc-title {
  font-size: 1.175rem;
  font-weight: 700;
  color: #F0EBE0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Description */
.svc-desc {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

/* CTA link */
.svc-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C4A96B;
  letter-spacing: 0.01em;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 169, 107, 0);
  transition: color 0.2s ease, text-decoration-color 0.25s ease;
}

.svc-link:hover {
  color: #d4bc82;
  text-decoration-color: rgba(196, 169, 107, 0.45);
}

@media (max-width: 480px) {
  .svc-section {
    padding: 72px 0 64px;
  }

  .svc-card {
    padding: 24px 22px 22px;
    border-radius: 16px;
  }

  .svc-title {
    font-size: 1.1rem;
  }

  .svc-desc {
    font-size: 0.875rem;
  }
}


/* =====================
   STATS BAR
   Animated social-proof counters between the hero and journey
   sections. Numbers count up via JS when they enter the viewport.
===================== */
#stats {
  padding: 0;
  background-color: #060605;
  position: relative;
  overflow: hidden;
}

/* Top gradient border — gold bright at center, fades to transparent at edges */
#stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 169, 107, 0.35) 20%,
    rgba(196, 169, 107, 0.85) 50%,
    rgba(196, 169, 107, 0.35) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Bottom gradient border — mirrors the top */
#stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 169, 107, 0.35) 20%,
    rgba(196, 169, 107, 0.85) 50%,
    rgba(196, 169, 107, 0.35) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
}

/* Numeric digits — white */
.stat-val {
  color: #ffffff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

/* Symbol characters (+, %, x, $, M+) — gold */
.stat-sym {
  color: #C4A96B;
  text-shadow: 0 0 32px rgba(196, 169, 107, 0.35);
}

.stat-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
}

/* Stats bar — fade-in on load */
@media (prefers-reduced-motion: no-preference) {
  .stat-item {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .stat-item.stats-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .stat-item:nth-child(2) { transition-delay: 0.08s; }
  .stat-item:nth-child(3) { transition-delay: 0.16s; }
  .stat-item:nth-child(4) { transition-delay: 0.24s; }
}

/* Stats bar — tablet: stays 4-across, slightly less padding */
@media (min-width: 601px) and (max-width: 900px) {
  .stats-bar {
    padding: 36px 0;
  }
}

/* Stats bar — mobile: 2×2 grid */
@media (max-width: 600px) {
  .stats-bar {
    flex-wrap: wrap;
    padding: 0;
  }

  .stat-item {
    flex: 0 0 50%;
    padding: 26px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Bottom row: no bottom border */
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 1.875rem;
  }

  .stat-sym {
    font-size: 1.875rem;
  }
}


/* =====================
   ABOUT SECTION
   Two-column founder intro — text left, premium image right.
   Dark luxury feel, gold accents, matches full site design language.
===================== */
.about-section {
  padding: 100px 0 108px;
  position: relative;
  overflow: visible;
}

/* Subtle top separator line */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 169, 107, 0.18) 50%,
    transparent
  );
  pointer-events: none;
}

/* Two-column grid: text left, image right */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

/* ——— Left: text content ——— */

.about-h2 {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F5F5F5;
  line-height: 1.1;
  margin: 0.5rem 0 2rem;
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-bottom: 2.25rem;
}

.about-paragraphs p {
  font-size: 0.9375rem;
  line-height: 1.82;
  color: #A1A1A1;
  max-width: 520px;
}

/* Closing line — slightly elevated, gold tint */
.about-closing {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(196, 169, 107, 0.85);
  letter-spacing: 0.01em;
  line-height: 1.55;
  padding-top: 1.375rem;
  border-top: 1px solid rgba(196, 169, 107, 0.12);
  max-width: 480px;
}

/* ——— Right: image column ——— */
.about-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Ambient glow — sits behind the card */
.about-image-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 320px;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 169, 107, 0.09) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* Card: background + cutout both contained inside */
.about-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(196, 169, 107, 0.2);
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(196, 169, 107, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.4s ease;
  z-index: 1;
}

.about-image-card:hover {
  border-color: rgba(196, 169, 107, 0.32);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 8px 60px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(196, 169, 107, 0.09);
}

/* Gold top-edge accent line */
.about-image-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 107, 0.5) 50%, transparent);
  z-index: 10;
  pointer-events: none;
}

/* Warm professional ambient background — simulates a soft lit environment */
.about-image-card {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(100, 82, 48, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(60, 50, 30, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #1c1a14 0%, #131109 55%, #0a0906 100%);
}

/* Person — mix-blend-mode: lighten keeps dark suit solid over dark bg,
   while making the pure-black PNG background transparent */
.about-founder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  mix-blend-mode: lighten;
}

/* Founder name + title below the card */
.about-founder-label {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.about-founder-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #C4A96B;
  letter-spacing: 0.02em;
}

/* Separator dash between name and title */
.about-label-sep {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(196, 169, 107, 0.35);
  flex-shrink: 0;
}

.about-founder-title {
  font-size: 0.75rem;
  color: rgba(161, 161, 161, 0.55);
  letter-spacing: 0.04em;
}

/* ——— Tablet ——— */
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 52px;
    align-items: start;
  }

  .about-image-col {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .about-paragraphs p,
  .about-closing {
    max-width: 100%;
  }
}

/* ——— Mobile ——— */
@media (max-width: 480px) {
  .about-section {
    padding: 72px 0 80px;
  }

  .about-h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .about-paragraphs {
    gap: 1.125rem;
  }

  .about-paragraphs p {
    font-size: 0.875rem;
    line-height: 1.78;
  }

  .about-closing {
    font-size: 0.875rem;
  }

  .about-image-col {
    max-width: 260px;
  }
}

/* =======================================================================
   SCROLL PROGRESS BAR
   Gold hairline at top of viewport — grows as user scrolls.
   ======================================================================= */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(196, 169, 107, 0.0) 0%,
    #C4A96B 35%,
    #E8D5A3 100%
  );
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(196, 169, 107, 0.4);
}

/* =======================================================================
   CONSENT BOX
   ======================================================================= */

.form-consent {
  margin-top: 4px;
  margin-bottom: 6px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Hide the native checkbox */
.consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom gold checkbox */
.consent-checkmark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(196, 169, 107, 0.38);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.consent-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #0B0B0B;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.consent-checkbox:checked + .consent-checkmark {
  background: #C4A96B;
  border-color: #C4A96B;
  box-shadow: 0 0 0 3px rgba(196, 169, 107, 0.12);
}

.consent-checkbox:checked + .consent-checkmark::after {
  opacity: 1;
}

.consent-label:hover .consent-checkmark {
  border-color: rgba(196, 169, 107, 0.65);
}

.consent-text {
  font-size: 0.6875rem;
  line-height: 1.68;
  color: rgba(161, 161, 161, 0.52);
  letter-spacing: 0.01em;
}

/* Inline link buttons inside consent text */
.consent-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: #C4A96B;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(196, 169, 107, 0.4);
  cursor: pointer;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.consent-link:hover {
  color: #d4bc82;
  text-decoration-color: rgba(196, 169, 107, 0.85);
}

/* =======================================================================
   LEGAL MODALS
   ======================================================================= */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

@media (min-width: 600px) {
  .legal-modal {
    align-items: center;
  }
}

.legal-modal.modal-open {
  opacity: 1;
  visibility: visible;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 82svh;
  margin: 0 16px 16px;
  display: flex;
  flex-direction: column;
  background: #111111;
  border: 1px solid rgba(196, 169, 107, 0.18);
  border-radius: 18px 18px 14px 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 0 60px rgba(196, 169, 107, 0.04);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
  .legal-modal-panel {
    border-radius: 18px;
    margin: 0 16px;
  }
}

.legal-modal.modal-open .legal-modal-panel {
  transform: translateY(0);
}

/* Gold top-edge accent */
.legal-modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 107, 0.55) 50%, transparent);
  pointer-events: none;
  z-index: 2;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(196, 169, 107, 0.09);
  flex-shrink: 0;
}

.legal-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: 0.01em;
}

.legal-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(245, 245, 245, 0.45);
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: rgba(196, 169, 107, 0.12);
  color: #C4A96B;
}

.legal-modal-close svg {
  display: block;
}

.legal-modal-body {
  overflow-y: auto;
  padding: 24px 24px 32px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 169, 107, 0.2) transparent;
}

.legal-modal-body::-webkit-scrollbar {
  width: 4px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(196, 169, 107, 0.22);
  border-radius: 2px;
}

/* Modal body typography */
.legal-modal-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4A96B;
  margin: 0 0 6px;
}

.legal-modal-body h3:not(:first-child) {
  margin-top: 22px;
}

.legal-modal-body p {
  font-size: 0.8125rem;
  line-height: 1.72;
  color: rgba(200, 200, 200, 0.62);
  margin: 0 0 8px;
}

.legal-modal-body a {
  color: #C4A96B;
  text-underline-offset: 2px;
}

.legal-modal-body .legal-updated {
  font-size: 0.6875rem;
  color: rgba(161, 161, 161, 0.35);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* =======================================================================
   SUCCESS MODAL + CONFETTI CANVAS
   ======================================================================= */

/* Confetti canvas — always in DOM, drawn by JS when active */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9600;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.modal-open {
  opacity: 1;
  visibility: visible;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.success-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: #111111;
  border: 1px solid rgba(196, 169, 107, 0.22);
  border-radius: 22px;
  padding: 48px 36px 40px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 48px 120px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(196, 169, 107, 0.06);
  transform: translateY(32px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold top-edge accent */
.success-modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 107, 0.65) 50%, transparent);
  pointer-events: none;
}

.success-modal.modal-open .success-modal-panel {
  transform: translateY(0) scale(1);
}

/* Animated SVG icon */
.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
}

.success-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Circle draws itself: circumference = 2π × 28 ≈ 176 */
.success-circle {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform-origin: 32px 32px;
  transform: rotate(-90deg);
}

/* Check path length ≈ 36 */
.success-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  fill: none;
}

.success-modal.modal-open .success-circle {
  animation: uc-draw-circle 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-modal.modal-open .success-check {
  animation: uc-draw-check 0.32s ease forwards 0.46s;
}

@keyframes uc-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes uc-draw-check {
  to { stroke-dashoffset: 0; }
}

/* Modal copy */
.success-eyebrow {
  display: block;
  font-size: 0.5875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C4A96B;
  margin-bottom: 10px;
}

.success-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #f5f5f5;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

.success-body {
  font-size: 0.875rem;
  line-height: 1.74;
  color: rgba(200, 200, 200, 0.55);
  margin: 0 0 30px;
}

/* Gold outline close button */
.success-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  border-radius: 8px;
  border: 1px solid rgba(196, 169, 107, 0.38);
  background: transparent;
  color: #C4A96B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.success-close:hover {
  background: #C4A96B;
  border-color: #C4A96B;
  color: #0B0B0B;
  box-shadow: 0 4px 20px rgba(196, 169, 107, 0.22);
}


/* =======================================================================
   GLOBAL POLISH — miscellaneous refinements
   ======================================================================= */

/* Hero h1 — sharper text shadow for more drama against the WebGL bg */
#hero h1 {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* System section — faint ambient glow at right edge */
.system-section {
  position: relative;
  overflow: hidden;
}

.system-section::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(196, 169, 107, 0.025) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* About section — warm left-side ambient glow */
.about-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(196, 169, 107, 0.022) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Stat item — subtle hover brightening */
@media (hover: hover) {
  .stat-item:hover .stat-val {
    text-shadow: 0 0 48px rgba(255, 255, 255, 0.22);
  }
  .stat-item:hover .stat-sym {
    text-shadow: 0 0 36px rgba(196, 169, 107, 0.55);
  }
}

/* Work section — add subtle top separator to match site cadence */
#work {
  position: relative;
}

#work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 520px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 50%, transparent);
  pointer-events: none;
}

/* Section eyebrow refinement — slightly warmer gold on scroll-visible sections */
.section-eyebrow {
  color: rgba(196, 169, 107, 0.75);
}

/* Contact h2 — tighter tracking for more premium feel */
.contact-h2 {
  letter-spacing: -0.035em;
}

/* Nav active link — highlight the current section (progressive enhancement) */
header .nav-links a.active {
  color: rgba(245, 245, 245, 0.92);
}

header .nav-links a.active::after {
  width: 100%;
}


/* Refined section header max-width on work section */
#work .section-header p {
  max-width: 520px;
}
