/* ========== TOKENS ========== */
:root {
  --gold: #b8943d;
  --gold-soft: #d4b569;
  --gold-deep: #8a6c2a;
  --navy: #1a2238;
  --ink: #14182a;
  --cream: #f5f1ea;
  --paper: #faf7f2;
  --paper-warm: #f1ece2;
  --line: rgba(26, 34, 56, 0.12);
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.loader-logo {
  width: min(560px, 78vw);
  opacity: 0;
  transform: scale(0.96);
  animation: loaderIn 1.4s var(--ease-out) forwards;
}
@keyframes loaderIn {
  0% { opacity: 0; transform: scale(0.94); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(-12px);
}
.nav.is-ready {
  opacity: 1;
  transform: translateY(0);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(250, 247, 242, 0.0);
  border-radius: 100px;
  transition: all 0.4s var(--ease);
}
.nav.is-scrolled .nav-inner {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px -20px rgba(20, 24, 42, 0.18);
}
.nav-brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
  transition: opacity 0.3s var(--ease);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav.is-hero-mode .nav-links a { color: rgba(255, 255, 255, 0.92); }
.nav.is-hero-mode .nav-brand img { filter: brightness(0) invert(1); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: white; transform: translateY(-1px); }
.nav-cta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(184, 148, 61, 0.7);
  animation: pulse 2s infinite;
}
.nav-cta:hover .dot { background: white; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 148, 61, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(184, 148, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 148, 61, 0); }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
  padding: 0 32px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 500%;
  animation: bgScroll 48s linear infinite;
}
.hero-slide {
  flex: 0 0 20%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@keyframes bgScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-80%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 42, 0.55) 0%, rgba(20, 24, 42, 0.35) 40%, rgba(20, 24, 42, 0.85) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(184, 148, 61, 0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-top: 100px;
}
.hero .eyebrow {
  color: var(--gold-soft);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero.is-revealed .hero-title .line span { transform: translateY(0); }
.hero.is-revealed .hero-title .line:nth-child(2) span { transition-delay: 0.12s; }
.hero.is-revealed .hero-title .line:nth-child(3) span { transition-delay: 0.24s; }

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--gold);
  color: white;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(20, 24, 42, 0.45); }
.btn-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover .btn-icon { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 18px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.hero-scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 30%;
  background: var(--gold-soft);
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* ========== MARQUEE ========== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.marquee-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.marquee-track span:nth-child(odd) { color: var(--paper); }
.marquee-track span:nth-child(even) { color: var(--gold-soft); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== STATEMENT ========== */
.statement {
  padding: 160px 0;
  background: var(--paper);
  position: relative;
}
.statement-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 1200px;
}
.statement-text .reveal-word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.statement-text .reveal-word.is-in { opacity: 1; transform: translateY(0); }
.statement-text .reveal-word.soft { color: var(--gold-deep); }
.statement-text em { font-style: italic; font-weight: 400; }

/* ========== SECTION HEAD ========== */
.section-head {
  margin-bottom: 80px;
  max-width: 880px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }

/* ========== SERVICES ========== */
.services {
  padding: 160px 0;
  background: var(--paper-warm);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-card {
  background: var(--paper-warm);
  padding: 56px 44px;
  position: relative;
  transition: background 0.4s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-card:hover { background: var(--paper); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  position: absolute;
  top: 32px;
  left: 44px;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 15px;
  color: rgba(20, 24, 42, 0.7);
  line-height: 1.6;
  max-width: 320px;
}

/* ========== SECTORS ========== */
.sectors {
  padding: 160px 0;
  background: var(--ink);
  color: var(--paper);
}
.sectors .eyebrow { color: var(--gold-soft); }
.sectors h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.sectors h2 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.sectors .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.78);
  max-width: 460px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.sector-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sector-tags li {
  padding: 12px 22px;
  border: 1px solid rgba(245, 241, 234, 0.18);
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(245, 241, 234, 0.92);
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}
.sector-tags li.is-in { opacity: 1; transform: translateY(0) scale(1); }
.sector-tags li:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: translateY(-2px);
}

/* ========== PROCESS ========== */
.process {
  padding: 160px 0;
  background: var(--paper);
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  text-align: center;
}
.step-num {
  font-family: var(--serif);
  font-size: clamp(72px, 8vw, 110px);
  font-weight: 400;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 24px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--ink);
}
.step p {
  font-size: 15px;
  color: rgba(20, 24, 42, 0.66);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}
.step-divider {
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-top: 60px;
}

/* ========== REVIEWS ========== */
.reviews {
  padding: 160px 0;
  background: var(--paper-warm);
  overflow: hidden;
}
.reviews .section-head { padding: 0 32px; max-width: 1280px; margin: 0 auto 70px; }
.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.carousel::before, .carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.carousel::before { left: 0; background: linear-gradient(to right, var(--paper-warm), transparent); }
.carousel::after { right: 0; background: linear-gradient(to left, var(--paper-warm), transparent); }
.carousel-track {
  display: flex;
  gap: 28px;
  animation: carousel 50s linear infinite;
  width: max-content;
  padding: 16px 0;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
@keyframes carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 14px)); }
}
.review-card {
  flex: 0 0 420px;
  background: var(--paper);
  padding: 44px 40px;
  border-radius: 4px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.4s var(--ease);
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 24, 42, 0.2);
  border-color: var(--gold-soft);
}
.quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.review-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 400;
}
.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.review-author span {
  font-weight: 400;
  color: rgba(20, 24, 42, 0.55);
}

/* ========== CTA ========== */
.cta {
  padding: 180px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 148, 61, 0.18) 0%, transparent 60%),
    var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-inner { max-width: 880px; margin: 0 auto; }
.cta .eyebrow { color: var(--gold-soft); }
.cta-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta-sub {
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(245, 241, 234, 0.7);
  margin-bottom: 56px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 24px 40px;
  background: var(--gold);
  color: white;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.cta-button:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-button:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(184, 148, 61, 0.6); }
.cta-button > * { position: relative; z-index: 1; }
.cta-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.cta-button:hover .cta-arrow { transform: translateX(6px); }
.cta-foot {
  font-size: 13px;
  color: rgba(245, 241, 234, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========== FOOTER ========== */
.footer {
  padding: 80px 0 60px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { height: 80px; width: auto; }
.footer-meta {
  text-align: right;
  font-size: 13px;
  color: rgba(20, 24, 42, 0.7);
  line-height: 1.7;
}
.footer-meta .muted { color: rgba(20, 24, 42, 0.4); margin-top: 8px; font-size: 12px; }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-card.is-in { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  .nav-cta .dot { width: 6px; height: 6px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 60px; }
  .step-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .statement, .services, .sectors, .process, .reviews, .cta { padding: 100px 0; }
  .review-card { flex: 0 0 320px; padding: 32px 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 12px 16px; }
  .nav-inner { padding: 8px 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; padding: 44px 28px; }
  .hero { padding: 0 22px; }
  .hero-content { padding-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg-track, .marquee-track, .carousel-track { animation: none; }
}
