/* =========================================================
   AVANTY CAPITAL — Design System
   Palette : Deep navy / Graphite / Warm paper / Muted gold
   Type    : Newsreader (display) + Inter Tight (UI)
   ========================================================= */

:root {
  --ink:           #0B1A2E;          /* deep navy */
  --ink-2:         #14253F;          /* graphite navy */
  --ink-3:         #1F3252;          /* mid navy line */
  --paper:         #F6F2EA;          /* warm off-white */
  --paper-2:       #EDE6D8;          /* warmer */
  --paper-3:       #FAF7F1;          /* lightest paper */
  --line:          rgba(11,26,46,.10);
  --line-dark:     rgba(246,242,234,.12);
  --gold:          #B79262;          /* muted gold */
  --gold-2:        #C9A878;          /* lifted gold */
  --gold-soft:     rgba(183,146,98,.14);
  --text:          #15233A;
  --text-mute:     #5C6A82;
  --text-light:    #8A95A8;
  --text-on-dark:  #E8E2D4;
  --text-on-dark-mute: rgba(232,226,212,.66);
  --radius-sm:     10px;
  --radius:        18px;
  --radius-lg:     28px;
  --shadow-1:      0 1px 2px rgba(11,26,46,.06), 0 8px 24px -12px rgba(11,26,46,.10);
  --shadow-2:      0 2px 4px rgba(11,26,46,.06), 0 24px 60px -24px rgba(11,26,46,.25);
  --container:     1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--gold); }

.container-x {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
@media (max-width: 640px) {
  .container-x { padding: 0 20px; }
}

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "ss01","ss02";
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; font-weight: 500; }
p  { margin: 0 0 1em; text-wrap: pretty; color: var(--text); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-mute); line-height: 1.65; max-width: 64ch; }
.eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.italic { font-style: italic; font-family: "Newsreader", serif; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: "Inter Tight", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(11,26,46,.4); color: var(--fg); }
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-gold    { --bg: var(--gold); --fg: #1B1407; border-color: var(--gold); }
.btn-gold:hover { --bg: var(--gold-2); border-color: var(--gold-2); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }

.btn-ghost-light {
  --bg: transparent;
  --fg: var(--paper);
  border-color: rgba(246,242,234,.28);
}
.btn-ghost-light:hover { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(246,242,234,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled {
  background: rgba(246,242,234,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(11,26,46,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Newsreader", serif;
  font-size: 19px;
  letter-spacing: .14em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #DDB987 0%, var(--gold) 55%, #6F4E2B 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(11,26,46,.35);
  border-radius: 50%;
}
.brand small {
  font-family: "Inter Tight", sans-serif;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--text-mute);
  display: block;
  margin-top: -4px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 13.5px;
  color: var(--text);
  position: relative;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: .005em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-dropdown-toggle:hover { color: var(--ink); }
.nav-links a.active,
.nav-dropdown-toggle.active { color: var(--ink); }
.nav-links a.active::after,
.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}
.nav-dropdown-toggle .caret {
  opacity: .55;
  transition: transform .25s ease, opacity .25s ease;
}
.has-dropdown.open .nav-dropdown-toggle .caret,
.has-dropdown:hover .nav-dropdown-toggle .caret { transform: rotate(180deg); opacity: 1; }
.has-dropdown.open .nav-dropdown-toggle,
.has-dropdown:hover .nav-dropdown-toggle { color: var(--ink); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 380px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 24px 60px -24px rgba(11,26,46,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease, visibility 0s linear .2s;
  z-index: 50;
}
.has-dropdown.open .nav-dropdown,
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nd-eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 8px 8px;
  font-weight: 500;
}
.nd-item {
  display: grid !important;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px 10px !important;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.nd-item::after { display: none; }
.nd-item:hover { background: var(--paper-2); color: var(--ink); }
.nd-num {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  line-height: 1.2;
  padding-top: 2px;
}
.nd-body { display: flex; flex-direction: column; gap: 3px; }
.nd-title {
  font-family: "Newsreader", serif;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.005em;
}
.nd-sub {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.45;
  white-space: normal;
}

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top:  6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .brand { font-size: 17px; gap: 10px; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--ink);
  color: var(--text-on-dark);
  z-index: 999;
  padding: 32px 28px 48px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
  overflow-y: auto;
  height: 500px;
}
.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.mobile-menu a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: "Newsreader", serif;
  font-size: 22px;
  color: var(--paper);
}
.mobile-menu .btn { margin-top: 28px; width: 100%; }

/* ---------- Sections / rhythm ---------- */
section { padding: 120px 0; position: relative; }
@media (max-width: 800px) { section { padding: 80px 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }

.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }
.bg-ink     { background: var(--ink); color: var(--text-on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--paper); }
.bg-ink .lede, .bg-ink p { color: var(--text-on-dark-mute); }
.bg-ink .eyebrow { color: var(--gold-2); }
.bg-ink .eyebrow::before { background: var(--gold-2); }

/* ---------- HERO ---------- */
.hero {
  padding: 156px 0 0;
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% 18%, rgba(183,146,98,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(183,146,98,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246,242,234,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,242,234,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(900px 700px at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 70% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* Vertical edge label */
.hero-edge {
  position: absolute;
  left: 26px;
  top: 110px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  z-index: 2;
  pointer-events: none;
}
.hero-edge-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(183,146,98,.5), transparent);
}
.hero-edge-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 1200px) { .hero-edge { display: none; } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-bottom: 88px;
}

.hero-copy { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 36px;
  background: rgba(246,242,234,.04);
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(183,146,98,.18);
}
.hero-eyebrow .he-sep {
  width: 1px; height: 12px;
  background: var(--line-dark);
}
.hero-eyebrow .he-mute {
  color: var(--text-on-dark-mute);
  letter-spacing: .16em;
}

.hero-h1 {
  color: var(--paper);
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 32px;
}
.hero-h1 .line {
  display: block;
}
.hero-h1 .accent {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 400;
}

.hero-sub {
  color: var(--text-on-dark-mute);
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  max-width: 640px;
}
.hm-item { display: flex; flex-direction: column; gap: 6px; }
.hm-k {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold-2);
  letter-spacing: .04em;
}
.hm-v {
  font-size: 13px;
  color: var(--text-on-dark-mute);
  line-height: 1.5;
}

/* Right visual — dossier */
.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dossier {
  position: relative;
  width: 100%;
  max-width: 480px;
  background:
    linear-gradient(180deg, rgba(246,242,234,.07), rgba(246,242,234,.02)),
    rgba(11,26,46,.5);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 28px 28px 22px;
  color: var(--paper);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(246,242,234,.06) inset,
    0 30px 80px -30px rgba(0,0,0,.5);
  overflow: hidden;
}
.dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 280px at 100% 0%, rgba(183,146,98,.22), transparent 60%),
    radial-gradient(260px 220px at 0% 100%, rgba(183,146,98,.08), transparent 60%);
  pointer-events: none;
}
.dossier > * { position: relative; }
.dossier::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246,242,234,.06);
  border-radius: 12px;
  pointer-events: none;
}

.dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dossier-stamp {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(183,146,98,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(183,146,98,.08);
}
.ds-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(183,146,98,.45);
}
.ds-text {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--gold-2);
  letter-spacing: .04em;
}
.dossier-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246,242,234,.05);
  border: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
}
.ds-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(183,146,98,.18);
}

.dossier-eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.dossier-ref {
  display: flex;
  justify-content: space-between;
  font-family: "Inter Tight", sans-serif;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-on-dark-mute);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-dark);
}
.dossier-title {
  font-family: "Newsreader", serif;
  font-size: 24px;
  line-height: 1.18;
  color: var(--paper);
  margin: 0 0 22px;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.dossier-title .italic {
  font-style: italic;
  color: var(--gold-2);
}
.dossier-rows {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.dossier-rows li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 12.5px;
}
.dr-k {
  color: var(--text-on-dark-mute);
  letter-spacing: .04em;
}
.dr-v {
  color: var(--paper);
  text-align: right;
  font-weight: 500;
}

.dossier-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.signal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.signal > span {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.signal-svg {
  width: 140px;
  height: 28px;
}
.dossier-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
}
.pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(183,146,98,.22);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(183,146,98,.22); }
  50%      { box-shadow: 0 0 0 6px rgba(183,146,98,.06); }
}

/* Floating chip cards around the dossier */
.hero-chip {
  position: absolute;
  background: rgba(11,26,46,.85);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}
.hero-chip .chip-k {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
}
.hero-chip .chip-v {
  font-family: "Newsreader", serif;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: -.005em;
}
.chip-1 { top: 4%; left: -10%; animation: float 8s ease-in-out infinite; }
.chip-2 { bottom: 4%; right: -8%; animation: float 9s ease-in-out -2s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 1100px) {
  .chip-1 { left: -2%; }
  .chip-2 { right: -2%; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 86px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-on-dark-mute);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-cue:hover { color: var(--paper); }
.sc-line {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--gold-2);
  position: relative;
  overflow: hidden;
}
.sc-line::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--paper), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%   { left: -40%; }
  100% { left: 100%; }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* Bottom marquee */
.hero-marquee {
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 2;
}
.hm-track {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.hm-track span {
  font-family: "Newsreader", serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text-on-dark-mute);
  letter-spacing: .01em;
}
.hm-track i {
  width: 6px; height: 6px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
  opacity: .65;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 1000px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-bottom: 64px; }
  .hero-visual { min-height: 480px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: 1fr; }
  .dossier { padding: 22px; }
  .dossier-title { font-size: 21px; }
  .hero-chip { display: none; }
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 28px 0;
  background: var(--ink-2);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 10px;
}
.trust-row span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

/* ---------- About (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.about-figure {
  position: sticky; top: 110px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--paper);
  overflow: hidden;
  position: relative;
  min-height: 520px;
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 380px at 80% 10%, rgba(183,146,98,.25), transparent 60%);
}
.about-figure .corner {
  position: absolute; inset: 24px;
  border: 1px solid rgba(246,242,234,.18);
  border-radius: calc(var(--radius-lg) - 18px);
  pointer-events: none;
}
.about-figure h3 {
  font-family: "Newsreader", serif;
  font-size: 30px;
  color: var(--paper);
  position: relative;
  margin: 90px 0 16px;
  line-height: 1.15;
}
.about-figure .figure-line {
  position: relative; z-index: 1;
  color: var(--text-on-dark-mute);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 36ch;
}
.about-figure .label {
  position: absolute;
  top: 36px; left: 36px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.about-figure .label-r {
  position: absolute;
  top: 36px; right: 36px;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-on-dark-mute);
}
.about-figure .figure-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 22px 0;
}
.about-figure .figure-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.figure-stats div .k {
  font-family: "Newsreader", serif;
  font-size: 36px;
  color: var(--gold-2);
  line-height: 1;
}
.figure-stats div .v {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  margin-top: 8px;
  display: block;
}

.about-body p { font-size: 17px; line-height: 1.7; color: var(--text); }
.about-body p + p { margin-top: 18px; }
.about-pillars {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-pillar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}
.about-pillar .ap-k {
  font-family: "Newsreader", serif;
  font-size: 18px;
  margin-bottom: 4px;
}
.about-pillar .ap-v {
  font-size: 13.5px;
  color: var(--text-mute);
}

/* ---------- Card grid (general) ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(183,146,98,.4);
}
.card .num {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-mute); line-height: 1.65; margin: 0; }
.card .card-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.card .card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6F4E2B;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card.dark {
  background: var(--ink-2);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.card.dark h3 { color: var(--paper); }
.card.dark p { color: var(--text-on-dark-mute); }
.card.dark:hover { border-color: rgba(183,146,98,.45); }

.card.feature {
  padding: 32px;
}
.card .icon-frame {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  margin-bottom: 22px;
}
.card .icon-frame i { font-size: 18px; color: var(--ink); }
.card.dark .icon-frame { background: rgba(246,242,234,.06); border-color: var(--line-dark); }
.card.dark .icon-frame i { color: var(--gold-2); }

/* "Who we are" three-col with vertical rules */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  overflow: hidden;
}
.three-col > div {
  padding: 36px;
  border-right: 1px solid var(--line);
}
.three-col > div:last-child { border-right: 0; }
.three-col h4 {
  font-family: "Newsreader", serif;
  font-size: 22px;
  margin-bottom: 14px;
}
.three-col p { font-size: 14.5px; color: var(--text-mute); }
.three-col .ic {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6F4E2B;
  font-family: "Newsreader", serif;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-style: italic;
  font-size: 14px;
}
@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; }
  .three-col > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .three-col > div:last-child { border-bottom: 0; }
}

/* ---------- Service blocks (RE, Strategic, Infra, PC) ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: start;
}
.service-aside .eyebrow { margin-bottom: 20px; }
.service-aside h2 { margin-bottom: 22px; }
.service-aside .lede { margin-bottom: 26px; }
.service-aside .meta-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.service-aside .meta-list li {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.service-aside .meta-list li span:first-child {
  color: var(--text-mute);
  letter-spacing: .04em;
}
.service-aside .meta-list li span:last-child { color: var(--ink); font-weight: 500; }

.service-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.service-cards .card { padding: 26px; }
.service-cards .card.span-2 { grid-column: span 2; }

@media (max-width: 1000px) {
  .service { grid-template-columns: 1fr; gap: 40px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-cards .card.span-2 { grid-column: span 1; }
}

/* ---------- Singapore ---------- */
.sg {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.sg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 90% 0%, rgba(183,146,98,.18), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(183,146,98,.08), transparent 60%);
  pointer-events: none;
}
.sg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 1000px) { .sg-grid { grid-template-columns: 1fr; gap: 48px; } }

.sg-card-list {
  display: flex; flex-direction: column;
  gap: 14px;
}
.sg-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 24px;
  background: rgba(246,242,234,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  align-items: start;
}
.sg-card .n {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 26px;
  color: var(--gold-2);
}
.sg-card h4 {
  font-family: "Newsreader", serif;
  color: var(--paper);
  margin-bottom: 8px;
  font-size: 21px;
}
.sg-card p { color: var(--text-on-dark-mute); font-size: 14.5px; margin: 0; }

.sg-visual {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(180deg, rgba(246,242,234,.04), rgba(246,242,234,.01));
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.sg-visual .skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background:
    linear-gradient(180deg, transparent, rgba(11,26,46,.5));
}
.sg-visual .compass {
  position: absolute;
  top: 36px; right: 36px;
  width: 70px; height: 70px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2);
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .12em;
}
.sg-visual .compass::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed rgba(183,146,98,.4);
  border-radius: 50%;
}
.sg-visual .skyline-svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: block;
}
.sg-visual .coords {
  position: absolute;
  bottom: 36px; left: 36px; right: 36px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--text-on-dark-mute);
  text-transform: uppercase;
  z-index: 2;
}
.sg-visual h3 {
  color: var(--paper);
  font-size: 30px;
  position: relative;
  z-index: 1;
}
.sg-visual .sg-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 12px;
}
.sg-visual .sg-byline {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-on-dark-mute);
  margin-top: 14px;
  max-width: 32ch;
}

/* ---------- Compliance ---------- */
.compliance {
  background: var(--paper-2);
}
.compliance-head { max-width: 760px; margin-bottom: 56px; }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .compliance-grid { grid-template-columns: 1fr; } }
.comp-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.comp-card h4 {
  font-family: "Newsreader", serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.comp-card p {
  font-size: 14.5px;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.7;
}
.compliance .note {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--text-on-dark-mute);
  border-radius: var(--radius);
  font-size: 13.5px;
  letter-spacing: .01em;
  line-height: 1.7;
}
.compliance .note strong { color: var(--paper); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 6px; color: var(--gold-2); }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 100% 0%, rgba(183,146,98,.16), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  position: relative;
}
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-side h2 { color: var(--paper); margin-bottom: 22px; font-size: clamp(32px,4vw,46px); }
.contact-side .lede { color: var(--text-on-dark-mute); }
.contact-side .lede + .lede { margin-top: 16px; }
.contact-meta {
  margin-top: 36px;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: grid; gap: 18px;
}
.contact-meta div { display: flex; flex-direction: column; gap: 4px; }
.contact-meta .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.contact-meta .v { color: var(--paper); font-size: 14.5px; }

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.5);
}
.form-card h3 {
  font-family: "Newsreader", serif;
  font-size: 24px;
  margin-bottom: 6px;
}
.form-card .form-sub {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(183,146,98,.14);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.radio-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
  cursor: pointer;
  background: var(--paper-3);
  color: var(--text);
  margin: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.radio-group input { display: none; }
.radio-group label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-mute);
  margin: 18px 0 22px;
  line-height: 1.5;
}
.consent input { margin-top: 3px; accent-color: var(--gold); }
.form-actions {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.form-actions .small {
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: .04em;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 18px 22px;
  background: rgba(183,146,98,.12);
  border: 1px solid rgba(183,146,98,.5);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.form-success.show { display: block; }
.form-success strong { display: block; font-family: "Newsreader", serif; font-size: 17px; margin-bottom: 6px; color: var(--ink); }

/* ---------- Footer ---------- */
footer.site {
  background: #07111E;
  color: var(--text-on-dark-mute);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line-dark);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
}
.foot-brand .brand { color: var(--paper); }
.foot-brand p {
  color: var(--text-on-dark-mute);
  font-size: 14px;
  margin-top: 22px;
  max-width: 32ch;
  line-height: 1.6;
}
.foot-col h5 {
  font-family: "Inter Tight", sans-serif;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col li a {
  color: var(--text-on-dark-mute);
  font-size: 14px;
}
.foot-col li a:hover { color: var(--paper); }

.foot-disclaimer {
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
  font-size: 12.5px;
  color: var(--text-on-dark-mute);
  line-height: 1.7;
}
.foot-disclaimer strong { color: var(--gold-2); display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; font-weight: 500; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom a:hover { color: var(--paper); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  z-index: 900;
  cursor: pointer;
  box-shadow: var(--shadow-2);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold); border-color: var(--gold); color: #1B1407; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
