/* ============================================
   FORGE108 — Premium Agency Stylesheet v2
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #F9F7F4;
  --bg-alt:       #F2EFE8;
  --bg-dark:      #0D0D0D;
  --hero-bg:      #07080f;
  --text:         #111111;
  --text-mid:     #555555;
  --text-light:   #888888;
  --border:       #E5E1D8;
  --border-dark:  #222222;
  --white:        #FFFFFF;
  --gold:         #C8A855;
  --gold-soft:    rgba(200, 168, 85, 0.15);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-heading: 'Syne', 'Inter', system-ui, sans-serif;

  --radius:      4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(200,168,85,0.12);

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --section-py: clamp(56px, 7vw, 130px);
  --container:  1440px;
  --gutter:     clamp(24px, 4vw, 80px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font: inherit; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-py) 0;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              border-color 0.3s, opacity 0.3s;
  will-change: transform;
}

/* Cursor states */
body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
}
body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(255,255,255,0.35);
}
body.cursor-link .cursor-dot {
  width: 8px;
  height: 8px;
  opacity: 0.7;
}
body.cursor-link .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--gold);
  border-width: 1px;
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
}

/* Cursor on pages — keep exclusion blend so it auto-contrasts:
   white on dark backgrounds stays white, white on light inverts to dark */
body.page-open .cursor {
  mix-blend-mode: exclusion;
}
body.page-open .cursor-dot {
  background: var(--white);
  width: 6px;
  height: 6px;
}
body.page-open .cursor-ring {
  border-color: rgba(255, 255, 255, 0.7);
}
body.page-open.cursor-link .cursor-dot {
  background: var(--white);
}
body.page-open.cursor-link .cursor-ring {
  border-color: var(--gold);
  border-width: 1.5px;
}
body.page-open.cursor-hover .cursor-ring {
  border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.75s var(--ease),
    transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children — override per section */
.services-grid .service-card:nth-child(1) { transition-delay: 0.00s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.07s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.14s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.07s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.14s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.21s; }

.testimonials-grid .testimonial:nth-child(1) { transition-delay: 0.00s; }
.testimonials-grid .testimonial:nth-child(2) { transition-delay: 0.10s; }
.testimonials-grid .testimonial:nth-child(3) { transition-delay: 0.20s; }

.why-right .why-item:nth-child(1) { transition-delay: 0.05s; }
.why-right .why-item:nth-child(2) { transition-delay: 0.15s; }
.why-right .why-item:nth-child(3) { transition-delay: 0.25s; }

.work-grid .work-card:nth-child(1) { transition-delay: 0.00s; }
.work-grid .work-card:nth-child(2) { transition-delay: 0.08s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.16s; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: none;
}

/* Shine sweep shared */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0s;
}
.btn:hover::after {
  left: 140%;
  transition: left 0.6s var(--ease-soft);
}

.btn-dark {
  background: var(--text);
  color: var(--white);
}
.btn-dark:hover {
  background: #252525;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero buttons (on dark bg) */
.btn-hero {
  background: var(--white);
  color: var(--text);
}
.btn-hero:hover {
  background: #f0ede6;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

.btn-hero-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.btn-hero-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  border-radius: inherit;
}
.btn-hero-ghost:hover {
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}
.btn-hero-ghost:hover::before {
  transform: scaleX(1);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
  overflow: hidden;
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn-ghost > * { position: relative; z-index: 1; }
.btn-ghost:hover {
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost:hover::before { transform: scaleX(1); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: var(--white);
  color: var(--text);
}
.btn-light:hover {
  background: #f5f2ec;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost-light:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn-hero-ghost:hover .btn-arrow,
.btn-ghost:hover .btn-arrow {
  transform: translateY(3px);
}

/* ============================================
   SECTION LABELS & TITLES
   ============================================ */
.section-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.section-tag--light { color: rgba(255,255,255,0.45); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.8vw, 4.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--text-mid);
}

.section-sub {
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: clamp(480px, 38vw, 620px);
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 72px);
}
.section-header .section-sub { margin-top: 12px; }

/* ============================================
   HERO LOGO — CURSOR REVEAL
   ============================================ */
/* Drop shadow element — floats below logo, grows as logo lifts */
.hero-logo-shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  max-width: 400px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 1);
  filter: blur(22px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, 220px);
  will-change: transform, opacity;
}

.hero-logo-reveal {
  position: absolute;
  width: clamp(380px, 48%, 620px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* Invert black logo mark → white shape; screen blend removes now-black bg */
  filter: invert(1) brightness(1.1) sepia(0.2) contrast(1.15);
  mix-blend-mode: screen;
  /* Mask: very faint ghost at rest (last stop = 2.5%), fully lit under cursor */
  --cx: 50%;
  --cy: 50%;
  --mask-r: 0px;
  -webkit-mask-image: radial-gradient(
    circle var(--mask-r) at var(--cx) var(--cy),
    black 28%, rgba(0,0,0,0.55) 58%, rgba(0,0,0,0.08) 100%
  );
  mask-image: radial-gradient(
    circle var(--mask-r) at var(--cx) var(--cy),
    black 28%, rgba(0,0,0,0.55) 58%, rgba(0,0,0,0.08) 100%
  );
  will-change: transform, mask-image;
}

/* On touch devices: hide cursor-light elements entirely */
@media (hover: none) {
  .hero-logo-shadow  { display: none; }
  .hero-logo-reveal  { display: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease),
              box-shadow 0.5s var(--ease),
              backdrop-filter 0.5s;
}

.nav.scrolled {
  background: rgba(249, 247, 244, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav.nav--dark:not(.scrolled) {
  background: transparent;
}
.nav.nav--dark:not(.scrolled) .nav-logo { color: var(--white); }
.nav.nav--dark:not(.scrolled) .nav-logo span { color: rgba(255,255,255,0.4); }
.nav.nav--dark:not(.scrolled) .nav-link { color: rgba(255,255,255,0.6); }
.nav.nav--dark:not(.scrolled) .nav-link:hover { color: var(--white); }
.nav.nav--dark:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.nav.nav--dark:not(.scrolled) .nav-cta:hover {
  background: rgba(255,255,255,0.18);
}
.nav.nav--dark:not(.scrolled) .nav-menu span { background: var(--white); }

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes letterWave {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-7px); }
  65%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-left: -12px;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo-img {
  display: block;
  width: clamp(120px, 13vw, 190px);
  height: auto;
  object-fit: contain;
  /* Dark bg logo: screen makes black transparent on dark hero */
  mix-blend-mode: screen;
  transition: filter 0.3s, opacity 0.2s;
}

/* Light pages: invert to dark logo, multiply removes the now-light bg */
.nav.page-open .nav-logo-img {
  filter: invert(1) !important;
  mix-blend-mode: multiply !important;
}

/* Scrolled state on home page — cream background, need dark logo */
.nav.scrolled:not(.page-open) .nav-logo-img {
  filter: invert(1);
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 48px);
}

/* Nav link with animated underline */
.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--text);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover {
  background: #252525 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px;          /* 22px bars + 11px padding each side = 44px touch target */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.nav-menu span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.nav-menu.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-menu.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================
   HERO — DARK
   ============================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

/* Hero entrance animations
   — keyframe animations so each property gets its own easing:
     opacity uses `ease` (starts fading immediately, no pop-in)
     transform uses the snappy spring ease for movement
     filter uses ease for smooth de-blur                         */
@keyframes heroFadeOpacity {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroFadeTransform {
  from { transform: translateY(22px) scale(0.974); }
  to   { transform: translateY(0)    scale(1);     }
}
@keyframes heroFadeBlur {
  from { filter: blur(5px); }
  to   { filter: blur(0px); }
}

.hero-enter {
  opacity: 0; /* hidden until .in fires */
}
.hero-enter.in {
  animation:
    heroFadeOpacity   1.15s ease                          forwards,
    heroFadeTransform 1.1s  cubic-bezier(0.16, 1, 0.3, 1) forwards,
    heroFadeBlur      1.0s  ease                          forwards;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.5vw, 9.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
  display: block;
}

.hero-line {
  display: block;
}

.hero-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.3125rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: clamp(480px, 38vw, 680px);
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-scroll-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
  animation: scrollDraw 2.2s var(--ease) infinite;
  animation-delay: 2s;
  opacity: 0;
}

@keyframes scrollDraw {
  0%   { height: 0;    opacity: 0; transform: translateY(-8px); }
  20%  { opacity: 1; }
  70%  { height: 52px; opacity: 0.7; }
  100% { height: 52px; opacity: 0; transform: translateY(14px); }
}

/* ============================================
   PROOF BAR
   ============================================ */
.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 52px 0;
}

.proof-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  text-align: center;
}

.proof-item strong {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
}

.proof-item span {
  font-size: 0.8125rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  overflow: hidden;
  background: var(--text);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding-right: 0;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0 28px;
  transition: color 0.3s;
}

.marquee-content em {
  color: rgba(255,255,255,0.2);
  font-style: normal;
  font-size: 0.5rem;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  padding: clamp(28px, 3.5vw, 60px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.service-card + .service-card         { border-left: 1px solid var(--border); }
.service-card:nth-child(n+4)          { border-top: 1px solid var(--border); }
.service-card:nth-child(4)            { border-left: none; }

/* Gold edge line on hover */
.card-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.5s var(--ease);
}
.service-card:hover .card-line { width: 100%; }

/* Shimmer highlight */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,85,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--bg-alt); }

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--text-light);
  margin-bottom: 20px;
  transition: color 0.35s var(--ease), transform 0.5s var(--ease);
}
.service-card:hover .service-icon {
  color: var(--text);
  transform: translateY(-3px);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.service-card p {
  font-size: clamp(0.875rem, 0.9vw, 1rem);
  color: var(--text-mid);
  line-height: 1.7;
}

.services-cta {
  margin-top: 52px;
  text-align: center;
}

/* ============================================
   WHY FORGE108
   ============================================ */
.why { background: var(--bg-alt); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 160px);
  align-items: start;
}

.why-left {
  position: sticky;
  top: 100px;
}
.why-left .section-title  { margin-bottom: 20px; }
.why-left .section-sub    { margin-bottom: 36px; }

.why-right {
  display: flex;
  flex-direction: column;
}

.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}
.why-item:first-child { border-top: 1px solid var(--border); }
.why-item:hover       { padding-left: 8px; }

.why-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding-top: 4px;
  transition: color 0.3s;
}
.why-item:hover .why-number { color: var(--gold); }

.why-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.1vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}

.why-content p {
  font-size: clamp(0.9375rem, 0.95vw, 1.0625rem);
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   SELECTED WORK
   ============================================ */
.work { background: var(--bg); }

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work-card--large {
  grid-row: span 2;
  min-height: 500px;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.4s;
  pointer-events: none;
  z-index: 3;
}
.work-card:hover::after { border-color: rgba(255,255,255,0.1); }
.work-card:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.35); }

.work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-card-bg { transform: scale(1.04); }

.work-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 44px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.work-card:hover .work-tag { color: rgba(255,255,255,0.7); }

.work-card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card-content h3 { transform: translateY(-4px); }

.work-card-content p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 380px;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.work-card:hover .work-card-content p {
  opacity: 0.85;
  transform: translateY(-2px);
}

.work-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.work-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.work-stats strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.work-stats span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--bg-alt); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    box-shadow  0.45s var(--ease),
    transform   0.45s var(--ease),
    border-color 0.45s;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -12px; right: 20px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--border);
  pointer-events: none;
  transition: color 0.4s;
}

.testimonial:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(200,168,85,0.25);
}
.testimonial:hover::before { color: rgba(200,168,85,0.12); }

.testimonial-stars {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.testimonial blockquote {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s;
}
.testimonial:hover .testimonial-avatar {
  background: rgba(200,168,85,0.08);
  border-color: rgba(200,168,85,0.25);
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.testimonials-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.rating-stars {
  color: var(--gold);
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}
.testimonials-rating p {
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 160px);
  align-items: start;
}
.about-left .section-title { margin-bottom: 0; }

.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-body {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.about-right .btn { align-self: flex-start; margin-top: 8px; }

/* About — pillars layout */
.about-pillars-header {
  max-width: 600px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.about-pillars-header .section-title { margin-top: 10px; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: clamp(48px, 7vw, 72px);
}

.about-pillar {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.about-pillar:hover {
  border-color: rgba(200,168,85,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.about-pillar-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-pillar h3 {
  font-family: var(--font-ui);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.about-pillar p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.about-cta { display: flex; }

@media (max-width: 768px) {
  .about-pillars { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .about-pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--bg-dark);
  padding: var(--section-py) 0 clamp(48px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.calendly-section {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
}

.calendly-section .calendly-inline-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: none !important;
}

.calendly-section .calendly-inline-widget iframe {
  cursor: none !important;
}

/* Ambient light blobs */
.final-cta::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,168,85,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -20%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: clamp(720px, 58vw, 960px);
  margin: 0 auto;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 24px;
}
.final-cta-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.final-cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.72;
  margin-bottom: 44px;
  font-weight: 300;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.final-cta-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.01em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: clamp(36px, 5vw, 56px) 0 0;
}

.footer .nav-logo {
  color: var(--white);
  font-size: 1.0625rem;
  margin-bottom: 16px;
  display: inline-block;
  margin-left: 0;
}
.footer .nav-logo span { color: rgba(255,255,255,0.35); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.35);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.footer-social a:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
}
.footer-nav-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s, transform 0.25s var(--ease);
  display: inline-block;
}
.footer-nav-col a:hover {
  color: var(--white);
  transform: translateX(3px);
}
.footer-cta-link {
  color: rgba(255,255,255,0.55) !important;
  font-weight: 500;
}
.footer-cta-link:hover { color: var(--white) !important; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.18);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(4) { border-left: 1px solid var(--border); }
  .service-card:nth-child(3) { border-top: none; }
  .service-card:nth-child(n+3):nth-child(-n+4) { border-top: 1px solid var(--border); }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-row: auto; min-height: 420px; }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-top { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }

  .cursor { display: none; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: #F9F7F4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 1001;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-18px);
    transition:
      opacity   0.32s var(--ease),
      transform 0.32s var(--ease),
      visibility 0s linear 0.32s;
  }
  .nav-links.open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity   0.32s var(--ease),
      transform 0.32s var(--ease),
      visibility 0s linear 0s;
  }
  /* Stagger each link in on open */
  .nav-links a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text) !important;
    padding: 12px 32px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }
  .nav-links.open a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
  .nav-links.open a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  .nav-links.open a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
  .nav-links.open a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
  .nav-links.open a:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
  .nav-links .nav-cta {
    font-size: 1rem;
    padding: 14px 36px;
    margin-top: 8px;
    color: var(--white) !important;
    background: var(--text) !important;
    border: none !important;
    backdrop-filter: none !important;
    border-radius: 100px;
  }

  .nav-menu { display: flex; }

  .hero-headline { font-size: clamp(2.8rem, 10vw, 4rem); }

  .proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-divider { display: none; }
  .proof-item { border: 1px solid var(--border); margin: -0.5px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card + .service-card { border-left: none; border-top: 1px solid var(--border); }
  .service-card:nth-child(4) { border-left: none; }

  .why-inner { grid-template-columns: 1fr; }
  .why-left { position: static; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial:last-child { grid-column: auto; max-width: 100%; }

  .about-inner { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-nav-col:last-child { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn { justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-nav-col:last-child { grid-column: auto; }
}

/* ============================================
   FINE DETAILS
   ============================================ */
::selection {
  background: rgba(200,168,85,0.18);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Wide screen — extra breathing room above 1600px */
@media (min-width: 1600px) {
  :root {
    --section-py: clamp(100px, 9vw, 160px);
  }
  .hero-tag        { font-size: 0.875rem; margin-bottom: 36px; }
  .hero-sub        { margin-bottom: 56px; }
  .proof-item      { padding: 16px 40px; }
  .service-card    { padding: clamp(44px, 3.5vw, 64px); }
  .why-item        { padding: 44px 0; }
  .work-grid       { gap: 20px; }
  .testimonial     { padding: clamp(36px, 3vw, 52px); }
  .footer          { padding-top: clamp(80px, 8vw, 120px); }
}

/* ============================================
   TOUCH / TABLET PERFORMANCE
   Disable expensive effects on non-hover devices
   (iPad, iPhone, Android tablets)
   ============================================ */
@media (hover: none) {
  /* No custom cursor */
  body { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }

  /* Kill backdrop-filter on nav — forces GPU compositing layer on every scroll */
  .nav.scrolled,
  .nav.page-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(249, 247, 244, 0.97) !important;
    box-shadow: 0 1px 0 var(--border) !important;
  }
  .nav.nav--dark .nav-cta {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Simpler reveal — no translateY, just opacity */
  .reveal {
    transform: none !important;
    transition: opacity 0.5s ease !important;
  }
  .reveal.visible { opacity: 1 !important; }

  /* Hero entrance — no blur, tighter timing */
  .hero-enter.in {
    animation:
      heroFadeOpacity   0.7s ease forwards,
      heroFadeTransform 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  /* Simpler page overlay transitions */
  .page-overlay {
    transition: opacity 0.35s ease !important;
    transform: none !important;
  }
  .page-overlay.is-exit {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }

  /* No tilt/3D on work cards */
  .work-card { transform: none !important; }

  /* Magnetic buttons — disable transform */
  .btn-magnetic { transform: none !important; }
}

/* iPad landscape / small desktop — extra layout help */
@media (max-width: 1024px) and (max-height: 1366px) and (hover: none) {
  .nav-logo-img { width: clamp(130px, 15vw, 190px); }
  .hero-headline { font-size: clamp(3rem, 8vw, 5rem); }
}

/* Phone — logo must fit alongside hamburger */
@media (max-width: 600px) {
  .nav-logo-img { width: clamp(100px, 32vw, 150px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-enter {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-scroll-line { animation: none; }
}

/* ============================================
   PAGE OVERLAY SYSTEM
   ============================================ */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
  overscroll-behavior: contain; /* prevent scroll chaining to main page */
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity   0.55s var(--ease),
    transform 0.55s var(--ease);
  padding-top: 68px; /* nav height */
  will-change: opacity, transform;
}

/* Reduce top padding on the first section of every page overlay */
.page-overlay > section:first-of-type {
  padding-top: clamp(16px, 2vw, 32px);
}

.page-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-overlay.is-exit {
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity   0.28s cubic-bezier(0.4, 0, 1, 1),
    transform 0.28s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}

/* Nav forced-light state when any page is active */
.nav.page-open:not(.nav--dark),
.nav.page-open {
  background: rgba(249, 247, 244, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 var(--border) !important;
}
.nav.page-open .nav-logo        { color: var(--text) !important; }
.nav.page-open .nav-logo span   { color: var(--text-mid) !important; }
.nav.page-open .nav-link        { color: var(--text-mid) !important; }
.nav.page-open .nav-link:hover  { color: var(--text) !important; }
.nav.page-open .nav-cta         { background: var(--text) !important; color: var(--white) !important; border-color: var(--text) !important; backdrop-filter: none !important; }
.nav.page-open .nav-menu span   { background: var(--text) !important; }

/* Hide hero entirely when any page overlay is open */
body.page-open .hero,
body.page-open #heroCanvas { visibility: hidden; }

/* ============================================
   HERO LOGO GHOST — cinematic entrance
   ============================================ */
.hero-logo-ghost {
  position: absolute;
  width: clamp(380px, 48%, 620px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  filter: invert(1) brightness(0.1);
  opacity: 0;
  z-index: 2;
  will-change: opacity, filter;
}

@keyframes heroLogoGhost {
  0%   { opacity: 0;    filter: invert(1) brightness(0.06) blur(2px); }
  18%  { opacity: 0.55; filter: invert(1) brightness(0.11) blur(0px); }
  55%  { opacity: 0.28; filter: invert(1) brightness(0.08) blur(0px); }
  100% { opacity: 0;    filter: invert(1) brightness(0.04) blur(3px); }
}

.hero-logo-ghost.in {
  animation: heroLogoGhost 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-ghost { display: none; }
  .page-overlay {
    transition-duration: 0.01ms !important;
  }
}

/* Mobile: shorter, blur-free entrance (blur transitions are expensive on iOS) */
@media (hover: none) {
  .hero-enter.in {
    animation:
      heroFadeOpacity   0.85s ease                          forwards,
      heroFadeTransform 0.8s  cubic-bezier(0.16, 1, 0.3, 1) forwards;
    /* heroFadeBlur intentionally omitted on mobile */
  }
  .hero-logo-ghost {
    display: none;
  }
  .reveal {
    filter: none !important;
    transition:
      opacity   0.75s ease,
      transform 0.75s var(--ease);
  }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loader-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  pointer-events: none;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at 50% 44%, #0e0e0e 0%, #000 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  filter: url(#melt-filter);
  will-change: opacity, filter;
}

.loader-logo {
  width: clamp(380px, 48vw, 620px);
  opacity: 0;
  will-change: opacity, filter, transform;
}

@keyframes loader-logo-appear {
  0%   { opacity: 0; transform: scale(0.82); filter: invert(1) brightness(0.5) sepia(0.1) contrast(1.1); }
  55%  { opacity: 1; transform: scale(1.04); filter: invert(1) brightness(1.4) sepia(0.25) contrast(1.2); }
  100% { opacity: 1; transform: scale(1);    filter: invert(1) brightness(1.1) sepia(0.15) contrast(1.1); }
}

/* Mobile: transform-only animation — CSS filter animation is expensive on iOS */
@media (hover: none) {
  @keyframes loader-logo-appear {
    0%   { opacity: 0; transform: scale(0.88); filter: invert(1) brightness(1.1); }
    60%  { opacity: 1; transform: scale(1.02); filter: invert(1) brightness(1.1); }
    100% { opacity: 1; transform: scale(1);    filter: invert(1) brightness(1.1); }
  }
}

#loader.logo-in .loader-logo {
  animation: loader-logo-appear 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile: shorter, snappier logo entrance */
@media (hover: none) {
  #loader.logo-in .loader-logo {
    animation-duration: 0.5s;
  }
}

/* ============================================
   HOME — SERVICES OVERVIEW
   ============================================ */
.home-services { background: var(--bg); }

.home-services-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.home-services-left {
  position: sticky;
  top: 100px;
}
.home-services-left .section-title { margin-bottom: 20px; }
.home-services-left .section-sub   { margin-bottom: 36px; }

.home-services-right { display: flex; flex-direction: column; }

.hs-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease),
              opacity 0.75s var(--ease),
              transform 0.75s var(--ease);
}
.hs-item:first-child { border-top: 1px solid var(--border); }
.hs-item:hover { padding-left: 8px; }

.hs-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding-top: 5px;
  transition: color 0.3s;
}
.hs-item:hover .hs-num { color: var(--gold); }

.hs-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 1.05vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.hs-body p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Stagger */
.home-services-right .hs-item:nth-child(1) { transition-delay: 0s; }
.home-services-right .hs-item:nth-child(2) { transition-delay: 0.06s; }
.home-services-right .hs-item:nth-child(3) { transition-delay: 0.12s; }
.home-services-right .hs-item:nth-child(4) { transition-delay: 0.18s; }
.home-services-right .hs-item:nth-child(5) { transition-delay: 0.24s; }
.home-services-right .hs-item:nth-child(6) { transition-delay: 0.30s; }

/* ============================================
   HOME — IDENTITY (DARK)
   ============================================ */
.home-identity {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.home-identity::before {
  content: '';
  position: absolute;
  top: -25%; left: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,168,85,0.055) 0%, transparent 60%);
  pointer-events: none;
}

.home-identity-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 140px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-identity-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}
.home-identity-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.42);
}

.home-identity-sub {
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 480px;
}

.home-identity-right {
  display: flex;
  flex-direction: column;
}

.home-identity-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: padding-left 0.4s var(--ease);
}
.home-identity-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.home-identity-item:hover { padding-left: 8px; }

.home-identity-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.home-identity-item:hover .home-identity-label { opacity: 1; }

.home-identity-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.05vw, 1.1875rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.home-identity-item p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
}

/* Stagger */
.home-identity-right .home-identity-item:nth-child(1) { transition-delay: 0.05s; }
.home-identity-right .home-identity-item:nth-child(2) { transition-delay: 0.15s; }
.home-identity-right .home-identity-item:nth-child(3) { transition-delay: 0.25s; }

/* ============================================
   HOME — RESULTS SNAPSHOT
   ============================================ */
.home-results { background: var(--bg-alt); }

.home-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 52px;
}

.home-result-item {
  padding: clamp(36px, 5vw, 64px) clamp(24px, 3.5vw, 48px);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
  border-left: 1px solid var(--border);
}
.home-result-item:first-child { border-left: none; }
.home-result-item:hover { background: var(--bg); }

/* Gold shimmer on hover */
.home-result-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.home-result-item:hover::before { opacity: 0.55; }

.home-result-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.85;
}

.home-result-metric {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.home-result-context {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

.home-results-cta {
  margin-top: 48px;
  text-align: center;
}

/* Stagger */
.home-results-grid .home-result-item:nth-child(1) { transition-delay: 0s; }
.home-results-grid .home-result-item:nth-child(2) { transition-delay: 0.08s; }
.home-results-grid .home-result-item:nth-child(3) { transition-delay: 0.16s; }

/* ============================================
   HOME — LANDING CTA (DARK)
   ============================================ */
.home-cta {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(200,168,85,0.065) 0%, transparent 60%);
  pointer-events: none;
}

.home-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: clamp(680px, 62vw, 960px);
  margin: 0 auto;
}

.home-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 24px;
  margin-top: 20px;
}
.home-cta-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

.home-cta-sub {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 300;
}

.home-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE — NEW LANDING SECTIONS
   ============================================ */
@media (max-width: 1024px) {
  .home-identity-inner { grid-template-columns: 1fr; gap: 52px; }
  .home-results-grid { grid-template-columns: 1fr; }
  .home-result-item { border-left: none; border-top: 1px solid var(--border); }
  .home-result-item:first-child { border-top: none; }
}

@media (max-width: 768px) {
  .home-services-inner { grid-template-columns: 1fr; }
  .home-services-left { position: static; }
  .home-identity-sub { max-width: 100%; }
  .home-cta-actions { flex-direction: column; align-items: stretch; }
  .home-cta-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .home-results-grid { border-radius: var(--radius-md); }
}

/* ============================================
   WORK CARDS — EXPANDED REDESIGN
   ============================================ */

/* Override to flex column layout */
#page-work .work-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Horizontal split card */
#page-work .work-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  cursor: default;
  transition: box-shadow 0.55s var(--ease), transform 0.55s var(--ease);
}
#page-work .work-card--large {
  grid-row: auto;
  min-height: 520px;
}
#page-work .work-card:hover {
  box-shadow: 0 40px 100px rgba(0,0,0,0.45);
  transform: translateY(-4px);
}

/* Visual zone */
.work-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.work-card-visual .work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
#page-work .work-card:hover .work-card-bg {
  transform: scale(1.04);
}

/* SVG art overlay */
.work-card-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.work-card-art svg {
  width: 82%;
  height: 82%;
  transition: transform 0.8s var(--ease), opacity 0.5s;
}
#page-work .work-card:hover .work-card-art svg {
  transform: scale(1.06);
  opacity: 0.75;
}

/* Tag label in visual zone */
.work-visual-label {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
}

/* Body zone (right half) */
.work-card-body {
  background: #09090f;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: clamp(36px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.04);
}

/* Default content */
.work-card-default {
  position: relative;
  z-index: 1;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
#page-work .work-card:hover .work-card-default {
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
}

.work-card-default h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
}

.work-card-default > p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 380px;
}

/* Hover hint */
.work-hover-hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  margin-top: 22px;
  transition: color 0.3s;
}
#page-work .work-card:hover .work-hover-hint { color: rgba(255,255,255,0.35); }

/* Detail panel — slides up on hover */
.work-card-detail {
  position: absolute;
  inset: 0;
  background: #09090f;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: clamp(36px, 5vw, 52px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.58s var(--ease);
  overflow: hidden;
}
#page-work .work-card:hover .work-card-detail {
  transform: translateY(0);
}

.work-card-detail h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.85;
}

.work-card-detail > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.46);
  line-height: 1.72;
  margin-bottom: 22px;
}

/* Approach list */
.work-approach {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.work-approach-item {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: baseline;
}
.work-approach-item:first-child { border-top: 1px solid rgba(255,255,255,0.055); }

.work-approach-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding-top: 2px;
}

.work-approach-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
  margin: 0;
}

/* Timeline progression */
.work-timeline {
  display: flex;
  gap: 6px;
}

.work-timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.work-timeline-item span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

.work-timeline-item strong {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.01em;
}

.work-timeline-peak {
  border-color: rgba(200,168,85,0.28);
  background: rgba(200,168,85,0.04);
}
.work-timeline-peak span { color: rgba(200,168,85,0.55); }
.work-timeline-peak strong { color: var(--gold); }

/* Responsive — tablet/mobile */
@media (max-width: 1024px) {
  #page-work .work-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .work-card-visual {
    min-height: 300px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .work-card-body {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.04);
    justify-content: flex-start;
  }
  .work-card-detail {
    position: static;
    transform: none !important;
    border-radius: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 28px;
  }
  #page-work .work-card:hover .work-card-default {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .work-hover-hint { display: none; }
}

/* ============================================
   WHY US — ORIGIN / FOUNDING STORY (DARK)
   ============================================ */
.why-origin {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.why-origin::before {
  content: '';
  position: absolute;
  bottom: -20%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,168,85,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.why-origin-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(60px, 10vw, 140px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.why-origin-left {
  position: sticky;
  top: 100px;
}

.why-origin-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 5.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}
.why-origin-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.4);
}

.why-origin-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 16px;
  border-radius: var(--radius-full);
}

.why-origin-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.why-origin-right p {
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  color: rgba(255,255,255,0.4);
  line-height: 1.82;
  font-weight: 300;
}

.why-origin-quote {
  border-left: 2px solid rgba(200,168,85,0.32);
  padding: 22px 0 22px 28px;
  margin-top: 10px;
}

.why-origin-quote span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}

.why-origin-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.02em;
}

/* ============================================
   WHY US — PROBLEM / CONTRAST
   ============================================ */
.why-problem { background: var(--bg); }

.why-contrast {
  display: flex;
  flex-direction: column;
}

.why-contrast-item {
  display: grid;
  grid-template-columns: 36px 1fr 24px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease),
              opacity 0.75s var(--ease),
              transform 0.75s var(--ease);
}
.why-contrast-item:first-child { border-top: 1px solid var(--border); }
.why-contrast-item:hover { padding-left: 6px; }

.wci-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  align-self: start;
  padding-top: 4px;
  transition: color 0.3s;
}
.why-contrast-item:hover .wci-num { color: var(--gold); }

.wci-old {
  font-size: clamp(0.875rem, 0.95vw, 1rem);
  color: var(--text-light);
  line-height: 1.65;
  text-decoration: line-through;
  text-decoration-color: rgba(150,150,150,0.35);
  text-decoration-thickness: 1px;
}

.wci-arrow {
  font-size: 1rem;
  color: var(--gold);
  text-align: center;
  opacity: 0.5;
}

.wci-new {
  font-size: clamp(0.875rem, 0.95vw, 1rem);
  color: var(--text);
  line-height: 1.65;
}

/* Stagger for contrast items */
.why-contrast .why-contrast-item:nth-child(1) { transition-delay: 0s; }
.why-contrast .why-contrast-item:nth-child(2) { transition-delay: 0.07s; }
.why-contrast .why-contrast-item:nth-child(3) { transition-delay: 0.14s; }
.why-contrast .why-contrast-item:nth-child(4) { transition-delay: 0.21s; }

/* Stagger for expanded why-item list */
.why-right .why-item:nth-child(4) { transition-delay: 0.35s; }
.why-right .why-item:nth-child(5) { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 1024px) {
  .why-origin-inner { grid-template-columns: 1fr; }
  .why-origin-left { position: static; }
  .why-contrast-item {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;
  }
  .wci-arrow { display: none; }
  .wci-old { grid-column: 2; }
  .wci-new {
    grid-column: 2;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    color: var(--text);
  }
}

@media (max-width: 768px) {
  .why-contrast-item { padding: 24px 0; gap: 8px 16px; }
  .why-origin-quote { padding-left: 20px; }
}

/* ============================================
   MOBILE NAV MENU — backdrop-filter fix
   backdrop-filter on a parent creates a new containing block for
   position:fixed children in Chrome/Safari, trapping .nav-links
   inside the 68px nav bar instead of covering the full viewport.
   This override must come LAST to beat any earlier !important rules.
   ============================================ */
@media (max-width: 768px) {
  .nav,
  .nav.scrolled,
  .nav.page-open,
  .nav.page-open:not(.nav--dark) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(249, 247, 244, 0.97) !important;
  }
  .nav.nav--dark:not(.scrolled):not(.page-open) {
    background: transparent !important;
  }
}

/* ============================================
   MOBILE PERFORMANCE
   Zero-lag optimizations for phones/tablets.
   Must be last to win the cascade.
   ============================================ */
@media (max-width: 768px) {

  /* Remove GPU compositing layers from all page overlays —
     5 simultaneous will-change layers wastes significant VRAM */
  .page-overlay {
    will-change: auto;
  }

  /* Hero canvas is fully inert on touch (JS returns early) —
     remove it from the render tree entirely to free memory */
  #heroCanvas {
    display: none !important;
  }

  /* Disable hover-only transitions that never fire on touch */
  .hs-item {
    transition: none;
  }

  /* Remove decorative absolute-positioned paint layers */
  .why-origin::before,
  .why-origin::after {
    display: none;
  }

  /* Ensure page overlay content scrolls at native speed */
  .page-overlay {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  /* Faster page overlay enter/exit on mobile */
  .page-overlay {
    transition: opacity 0.28s ease;
    transform: none !important;
  }
  .page-overlay.is-active {
    transform: none !important;
  }
  .page-overlay.is-exit {
    transition: opacity 0.18s ease !important;
    transform: none !important;
  }

  /* Remove will-change from hero logo elements once off-screen */
  .hero-logo-ghost,
  .hero-logo-reveal,
  .loader-logo {
    will-change: auto;
  }
}

/* ============================================
   GLITCH DECODE
   ============================================ */
.gd-locked {
  opacity: 1;
  transition: opacity 0.14s ease, color 0.14s ease;
  color: inherit;
}
.gd-scrambled {
  opacity: 0.18;
  transition: opacity 0.14s ease;
  color: inherit;
  font-size: 0.88em; /* slightly smaller reduces layout jitter from varying char widths */
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-hero {
  background: var(--bg);
  padding-bottom: 0;
}

.faq-hero-inner {
  max-width: 680px;
  padding-top: clamp(36px, 5vw, 72px);
}

.faq-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 24px;
}

.faq-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.faq-hero-sub {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 500px;
}

.faq-hero-sub a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.faq-hero-sub a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.faq-section {
  background: var(--bg);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 860px;
}

.faq-category-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-mid);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s;
}

.faq-icon::before { width: 8px; height: 1px; }
.faq-icon::after  { width: 1px; height: 8px; }

details[open] .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(45deg);
}

details[open] .faq-icon::before,
details[open] .faq-icon::after {
  background: var(--white);
}

.faq-answer {
  padding: 0 0 24px;
  animation: faqOpen 0.35s var(--ease) both;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 680px;
}

.faq-answer a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.faq-answer a:hover { color: var(--gold); border-color: var(--gold); }

.faq-cta {
  margin-top: 80px;
  padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 56px);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.faq-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
}

.faq-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .faq-cta { flex-direction: column; align-items: flex-start; }
  .faq-cta-actions { width: 100%; }
}

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.support-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,168,85,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.support-hero-inner {
  max-width: 680px;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 96px);
  position: relative;
  z-index: 1;
}

.support-hero .section-tag { }

.support-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 16px 0 24px;
}

.support-hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.35);
}

.support-hero-sub {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 500px;
}

/* Support Channels */
.support-channels { background: var(--bg); }

.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.support-card:hover {
  border-color: rgba(200,168,85,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.support-card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 8px;
}

.support-card-icon svg { width: 20px; height: 20px; }

.support-card h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}

.support-card-detail {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-response-time {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.support-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, gap 0.2s;
}

.support-link span {
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.support-link:hover {
  color: var(--gold);
  gap: 8px;
}

.support-link:hover span {
  opacity: 1;
  transform: translateX(2px);
}

/* Support Hours */
.support-hours { background: var(--bg-alt); }

.support-hours-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.support-hours-left {
  position: sticky;
  top: 100px;
}

.support-hours-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 12px 0 20px;
}

.support-hours-title em {
  font-style: italic;
  color: var(--gold);
}

.support-hours-left p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 360px;
}

.support-hours-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 24px;
}

.support-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.support-hours-row:last-child { border-bottom: none; }

.support-day {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.support-time {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.support-commitment {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.support-commitment-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.support-commitment-icon svg { width: 100%; height: 100%; }

.support-commitment p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.support-commitment strong { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
  .support-channels-grid { grid-template-columns: 1fr; }
  .support-hours-inner { grid-template-columns: 1fr; }
  .support-hours-left { position: static; }
  .faq-hero-inner, .support-hero-inner { padding-top: 64px; }
}

