/* ─── ROAHOST DESIGN SYSTEM v3 — WHITE & GOLD LUXURY EDITION ───────────────
   Palette: White canvas / Warm ivory / Rich gold system / Near-black ink
   No dark sections. No blue. Gold is the brand accent — thin, expensive.
   Motion: GSAP + Lenis. Hero pinned parallax. Marquee infinite loop.
   ─────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

/* ─── GOLD TOKEN SYSTEM ─────────────────────────────────────────────────── */
:root {
  color-scheme: light only; /* white/gold is intentional — never auto-dark on dark-mode devices */
  /* Canvas */
  --bg:              #FFFFFF;
  --bg-ivory:        #FAF7F0;
  --surface:         #F7F4EC;
  --surface-border:  #E8E0CC;

  /* Text */
  --text-primary:    #1A1712;
  --text-secondary:  #5C5347;
  --text-muted:      #9A8F82;

  /* Gold system — rich, restrained, never gaudy */
  --gold-deep:       #9A7B2E;   /* text-on-white: ≥4.5:1 contrast */
  --gold-mid:        #B8860B;   /* brand mid tone */
  --gold-warm:       #D4AF37;   /* accent fills */
  --gold-light:      #E8C87E;   /* subtle tints */
  --gold-faint:      #F5EBCD;   /* background washes */

  /* Semantic */
  --success:         #2D6A4F;
  --success-bg:      #D8F3DC;
  --danger:          #9B2226;

  /* Focus */
  --focus-ring:      #B8860B;

  /* Type */
  --font-serif:      'Cormorant Garamond', Georgia, serif;
  --font-sans:       'Hanken Grotesk', 'Public Sans', system-ui, sans-serif;

  /* Layout */
  --nav-h:           72px;
  --max-w:           1200px;
  --radius-sm:       3px;
  --radius:          6px;
  --radius-lg:       12px;

  /* Motion */
  --ease-out:        cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-standard:   cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-expo:       cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   160ms;
  --duration-base:   300ms;
  --duration-slow:   500ms;

  /* Shadows — warm, not cold */
  --shadow-sm:  0 1px 3px rgba(26,23,18,0.07), 0 1px 2px rgba(26,23,18,0.05);
  --shadow-md:  0 4px 20px rgba(26,23,18,0.08), 0 2px 6px rgba(26,23,18,0.05);
  --shadow-lg:  0 16px 48px rgba(26,23,18,0.10), 0 4px 14px rgba(26,23,18,0.06);
  --shadow-gold:0 8px 32px rgba(184,134,11,0.15);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  font-size: 16px;
  /* Lenis handles smooth scroll — don't add scroll-behavior:smooth */
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── FOCUS VISIBLE ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── REDUCED MOTION — kill everything ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track { animation: none !important; }
  .hero-parallax-layer { transform: none !important; }
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.section { padding: 100px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}
h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); }
h5 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; color: var(--text-secondary); }

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.text-balance { text-wrap: balance; }

/* Gold hairline rule */
.gold-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-light));
  margin: 24px 0;
  border-radius: 1px;
}
.gold-rule.centered { margin: 24px auto; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  min-height: 50px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-mid);
  color: #ffffff;
  border-color: var(--gold-mid);
  letter-spacing: 0.06em;
}
.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold-mid);
}
.btn-outline:hover {
  background: var(--gold-faint);
  border-color: var(--gold-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--surface-border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 0.9375rem;
  min-height: 58px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
  min-height: 40px;
}

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.nav.scrolled {
  border-bottom-color: var(--surface-border);
  box-shadow: 0 1px 0 var(--surface-border), 0 4px 20px rgba(26,23,18,0.05);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 48px; } }

/* Logo — fixed height, never distort */
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  max-width: 160px;
  display: block;
}
@media (min-width: 768px) { .nav-logo img { height: 40px; max-width: 180px; } }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-phone:hover { color: var(--gold-deep); }
.nav-phone svg { color: var(--gold-mid); flex-shrink: 0; }
@media (min-width: 768px) { .nav-phone { display: flex; } }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-mid);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  width: 20px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
  display: block;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .nav-hamburger { display: none; } }

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 36px;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-expo);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.nav-mobile-links a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-border);
  display: block;
  transition: color var(--duration-fast) var(--ease-out),
              padding-left var(--duration-base) var(--ease-out);
}
.nav-mobile-links a:hover { color: var(--gold-deep); padding-left: 16px; }
.nav-mobile-phone {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-deep);
}

/* ─── MOBILE STICKY CTA ──────────────────────────────────────────────────── */
.sticky-mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: 10px 16px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--surface-border);
  box-shadow: 0 -4px 20px rgba(26,23,18,0.06);
}
.sticky-mobile-cta .btn { flex: 1; }
@media (min-width: 768px) { .sticky-mobile-cta { display: none; } }

/* ─── HERO — CINEMATIC TYPOGRAPHIC PARALLAX ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3vh) 0 7vh;
}

/* Parallax layers — GSAP controls transform */
.hero-bg-layer {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(212,175,55,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(184,134,11,0.04) 0%, transparent 60%);
  pointer-events: none;
  will-change: transform;
}

/* Diagonal gold hairlines */
.hero-lines-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
.hero-lines-layer::before,
.hero-lines-layer::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.12), transparent);
}
.hero-lines-layer::before {
  width: 1px;
  height: 100%;
  top: 0;
  left: 65%;
}
.hero-lines-layer::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 75%;
  opacity: 0.5;
}

/* Gold geometric accent — top right */
.hero-geo {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-geo::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 50%;
}

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

.hero-content {
  max-width: 780px;
  padding: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
  opacity: 0; /* GSAP animates in */
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--gold-warm);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  padding-bottom: 0.08em; /* room for 'y' descender, no clip */
  overflow: visible;
  color: var(--text-primary);
  opacity: 0; /* GSAP */
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 50ch;
  opacity: 0; /* GSAP */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0; /* GSAP */
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 20px;
  opacity: 0; /* GSAP */
}
.hero-phone a {
  color: var(--gold-deep);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
}
.hero-phone a:hover { color: var(--gold-mid); }

/* Hero stat strip — floats at bottom of hero */
.hero-stats {
  position: absolute;
  bottom: 48px;
  right: 0;
  display: flex;
  gap: 0;
  opacity: 0; /* GSAP */
}
@media (max-width: 767px) { .hero-stats { display: none; } }

.hero-stat {
  padding: 20px 32px;
  border-left: 1px solid var(--surface-border);
  text-align: center;
}
.hero-stat:first-child { border-left: none; }
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-num .gold-accent { color: var(--gold-mid); }
.hero-stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0; /* GSAP */
}
@media (min-width: 768px) { .hero-scroll-cue { display: none; } }
.hero-scroll-cue span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-mid), transparent);
  animation: scrollCuePulse 2s ease-in-out infinite;
}
@keyframes scrollCuePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── TRUST BAR ──────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-ivory);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}
.trust-item svg { color: var(--gold-mid); flex-shrink: 0; }
.trust-item a { color: var(--gold-deep); }
.trust-item a:hover { text-decoration: underline; }
.trust-sep {
  width: 3px; height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 600px) { .trust-sep { display: none; } }

/* ─── MARQUEE RIBBON ─────────────────────────────────────────────────────── */
.marquee-section {
  background: var(--bg);
  padding: 56px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
}

.marquee-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.marquee-outer {
  overflow: hidden;
  position: relative;
  /* fade edges */
}
.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-outer::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-outer::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  position: relative;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  background: var(--surface);
}
.marquee-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--gold-light);
  border-color: var(--gold-light);
}
.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.marquee-card:hover img { transform: scale(1.05); }

/* Placeholder for missing marquee shots */
.marquee-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-faint), var(--surface));
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-mid);
}

/* ─── PORTFOLIO WALL ─────────────────────────────────────────────────────── */
.portfolio-section { background: var(--bg); }

/* Counter — serif numeral in gold */
.portfolio-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.portfolio-count-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--gold-mid);
  line-height: 1;
  letter-spacing: -0.03em;
}
.portfolio-count-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Filter chips — gold palette */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 56px;
}
.filter-chip {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 40px;
}
.filter-chip:hover {
  border-color: var(--gold-mid);
  color: var(--gold-deep);
  background: var(--gold-faint);
}
.filter-chip.active {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: #ffffff;
}

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Portfolio search box */
.portfolio-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 20px;
}
.portfolio-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--gold-deep);
  pointer-events: none;
}
.portfolio-search-input {
  width: 100%;
  padding: 18px 52px 18px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: #fff;
  font-size: 1.0625rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(26, 23, 18, 0.04),
              0 8px 24px -12px rgba(26, 23, 18, 0.12);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.portfolio-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.portfolio-search-input:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 4px var(--gold-faint),
              0 8px 24px -12px rgba(26, 23, 18, 0.14);
}
.portfolio-search-input::-webkit-search-cancel-button { display: none; }
.portfolio-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold-faint);
  color: var(--gold-deep);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.portfolio-search-clear:hover { background: var(--gold-mid); color: #fff; }
@media (max-width: 560px) {
  .portfolio-search-input { padding: 15px 48px 15px 50px; font-size: 1rem; }
  .portfolio-search-icon { left: 18px; }
}

/* No-results message inside the grid */
.portfolio-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
}
.portfolio-no-results strong { color: var(--text-primary); }

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card */
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--gold-light);
  border-color: var(--gold-light);
}
.portfolio-card[data-hidden="true"] { display: none; }

.card-screenshot {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.card-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.portfolio-card:hover .card-screenshot img { transform: scale(1.05); }

/* Gradient overlay on hover */
.card-screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,23,18,0.15));
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.portfolio-card:hover .card-screenshot::after { opacity: 1; }

.card-screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-faint) 0%, var(--surface) 100%);
  color: var(--gold-mid);
}
.card-screenshot-placeholder .placeholder-letter {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}
.card-screenshot-placeholder .placeholder-name {
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--surface-border);
}
.card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-link-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ROA badge — gold */
.roa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-faint);
  color: var(--gold-deep);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  border: 1px solid var(--gold-light);
}
.roa-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold-warm);
  border-radius: 50%;
  flex-shrink: 0;
}

.portfolio-load-more {
  text-align: center;
  margin-top: 48px;
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how-section { background: var(--bg-ivory); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

.step-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  border: 1px solid var(--surface-border);
}

/* Gold top accent bar on step cards */
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--gold-faint);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  position: relative;
}
/* Actual visible number overlay */
.step-num::after {
  content: attr(data-num);
  position: absolute;
  top: 0; left: 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

.step-card h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: none;
  line-height: 1.7;
}

.step-connector {
  display: none;
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  color: var(--gold-light);
  z-index: 1;
}
@media (min-width: 768px) { .step-connector { display: block; } }

/* ─── NETWORK / ROA CREDIT ───────────────────────────────────────────────── */
.network-section { background: var(--bg); }

.network-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 900px) {
  .network-inner { grid-template-columns: 1fr 1fr; }
}

.network-content p { max-width: 52ch; }
.network-content p + p { margin-top: 18px; }

.not-a-cut {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 32px;
}
.not-a-cut-icon { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.not-a-cut-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1.55;
  max-width: none;
}
.not-a-cut-text strong { font-weight: 700; }

/* Money loop diagram — gold palette */
.money-loop {
  background: var(--bg-ivory);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.money-loop-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 36px;
}

.loop-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}
.loop-node {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  width: 100%;
}
.loop-node-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold-faint);
  color: var(--gold-deep);
  border: 1px solid var(--gold-light);
}
.loop-node-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.loop-node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.loop-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: var(--gold-light);
}

/* ─── PROOF SECTION ──────────────────────────────────────────────────────── */
.proof-section { background: var(--bg-ivory); }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.proof-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.proof-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.proof-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-faint);
  color: var(--gold-deep);
  margin-bottom: 20px;
  border: 1px solid var(--gold-light);
}
.proof-card h4 { margin-bottom: 10px; }
.proof-card p { font-size: 0.9375rem; max-width: none; }
.proof-card a { color: var(--gold-deep); font-weight: 600; }

.proof-live-evidence {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ─── LEAD CAPTURE — IVORY WITH GOLD, NO DARK/BLUE ─────────────────────── */
.lead-section { background: var(--bg-ivory); }

.lead-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 900px) {
  .lead-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

.lead-copy h2 { color: var(--text-primary); }
.lead-copy p { color: var(--text-secondary); max-width: 46ch; }

.lead-section .section-label { color: var(--gold-deep); }

.lead-trust-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.lead-trust-item svg { color: var(--gold-mid); flex-shrink: 0; }

/* Form card */
.lead-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-border);
}
.lead-form-wrap h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.lead-form-wrap .form-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.form-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  min-height: 50px;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.10);
}

.form-submit .btn { width: 100%; margin-top: 8px; }

.form-microcopy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Form success */
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.active { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-deep);
}
.form-success h3 { margin-bottom: 8px; color: var(--gold-deep); }
.form-success p { max-width: none; }

/* ─── FOOTER — IVORY/WHITE, NO DARK ─────────────────────────────────────── */
.footer {
  background: var(--bg-ivory);
  border-top: 1px solid var(--surface-border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--surface-border);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

/* Logo — fixed height, width:auto, never stretch */
.footer-brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  max-width: 180px;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 260px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-contact a:hover { color: var(--gold-deep); }
.footer-contact svg { color: var(--gold-mid); flex-shrink: 0; }

.footer-col h5 {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-col ul a:hover { color: var(--gold-deep); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-legal-links a:hover { color: var(--gold-deep); }

/* ─── GSAP SCROLL REVEAL STATES ─────────────────────────────────────────── */
/* Elements start invisible; GSAP handles reveal via .is-visible or direct gsap calls */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}
.gsap-fade-in {
  opacity: 0;
}

/* ─── MISC ───────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile bottom padding for sticky CTA */
@media (max-width: 767px) { body { padding-bottom: 70px; } }

/* Gold gradient divider */
.gold-divider {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light) 30%, var(--gold-warm) 50%, var(--gold-light) 70%, transparent);
  margin: 0;
  border: none;
}
