/*
  HERO ARCHETYPE : MONOLITH (lead 6223 % 4 = 3)
  SIGNATURE ELEMENT : Marquee strip of services (threaded every page)
  PALETTE : Base #0E0806 · Gold #C9973A · Bronze #7A4E28 · Blush #F0C0C8
  FONTS : Cormorant Garamond (display) + DM Sans (body)
*/

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

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:           #0E0806;
  --surface:      #1C1410;
  --surface-2:    #251C17;
  --gold:         #C9973A;
  --gold-light:   #E8B95C;
  --gold-dim:     rgba(201,151,58,.18);
  --bronze:       #7A4E28;
  --blush:        #F0C0C8;
  --blush-pale:   #FAF0EE;
  --text:         #F2EAE0;
  --text-muted:   #A08870;
  --text-subtle:  #6A5040;
  --border:       rgba(255,255,255,.06);
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --nav-h:        68px;
  --font-d:       'Cormorant Garamond', Georgia, serif;
  --font-b:       'DM Sans', system-ui, sans-serif;
  --ease:         cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; min-height: 100vh; }

/* ── GRAIN OVERLAY ──────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCROLL PROGRESS ────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--blush));
  z-index: 10000;
  transition: width .1s linear;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(14,8,6,.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
}
.nav-brand span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MARQUEE ─────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: var(--gold);
  padding: .6rem 0;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  white-space: nowrap;
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--bg);
  padding: 0 2.5rem;
}
.marquee-item::after { content: '·'; margin-left: 2.5rem; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-b);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  will-change: transform;
  border: none;
}
.btn:active { transform: scale(.97) !important; }
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(201,151,58,.28), 0 4px 16px rgba(0,0,0,.4);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(201,151,58,.5), 0 6px 24px rgba(0,0,0,.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(201,151,58,.15);
}

/* ── SECTION COMMON ──────────────────────────── */
section { padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem); }
.section-kicker {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.section-heading {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.section-heading .reveal-inner {
  display: block;
  transform: translateY(110%);
  transition: transform .7s var(--ease);
}
.section-heading.in .reveal-inner { transform: translateY(0); }

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ── THIN RULE ───────────────────────────────── */
.rule {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ── 3D CARD ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .15s var(--ease);
  transform-style: preserve-3d;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px var(--gold-dim); }

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
}
.footer-brand span { color: var(--gold); }
.footer-tag { color: var(--text-muted); font-size: .9rem; max-width: 30ch; }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-subtle);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── PAGE MINI-HERO ──────────────────────────── */
.page-hero {
  min-height: 40vh;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  padding-left: clamp(1.5rem, 6vw, 4rem);
  padding-right: clamp(1.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(201,151,58,.12) 0%, transparent 70%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}
.page-breadcrumb {
  font-size: .78rem;
  color: var(--text-subtle);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-hero-kicker {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.page-hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
}
.page-hero-sub {
  margin-top: 1.25rem;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 1.05rem;
}
.page-watermark {
  position: absolute;
  right: -2rem;
  bottom: -1rem;
  font-family: var(--font-d);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(201,151,58,.04);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -.03em;
  line-height: 1;
  user-select: none;
}

/* ── KEYFRAMES ───────────────────────────────── */
@keyframes gradient-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(3%, 2%) scale(1.04); }
  66%       { transform: translate(-2%, 3%) scale(.97); }
}
@keyframes ring-pulse {
  0%, 100% { opacity: .18; transform: scale(1); }
  50%       { opacity: .32; transform: scale(1.04); }
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes particle-orbit {
  from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}
@keyframes particle-orbit-2 {
  from { transform: rotate(180deg) translateX(145px) rotate(-180deg); }
  to   { transform: rotate(540deg) translateX(145px) rotate(-540deg); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes chip-in {
  from { opacity: 0; transform: scale(.88) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes count-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%       { text-shadow: 0 0 24px var(--gold); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(14,8,6,.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
}
