/* ============================================================
   ASLAN INVESTING COMPANY - DESIGN SYSTEM v1.0
   Editorial luxury. Big type. Navy + bone, gold as a scalpel.
   Fonts: Fraunces (display serif), Inter (body grotesk)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Color */
  --navy: #0B1320;
  --navy-2: #101B2D;      /* raised surfaces on navy */
  --navy-3: #16233A;      /* borders / hairlines on navy */
  --graphite: #24282D;
  --bone: #F3EFE6;
  --bone-2: #EDE7DA;      /* raised surfaces on bone */
  --stone: #C8C2B7;
  --gold: #B59249;
  --gold-soft: rgba(181, 146, 73, 0.35);
  --forest: #20372D;
  --ink: #14181F;         /* body text on bone */
  --ink-soft: #4A5160;    /* secondary text on bone */
  --mist: rgba(243, 239, 230, 0.72);  /* secondary text on navy */
  --mist-faint: rgba(243, 239, 230, 0.45);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Scale (fluid) */
  --fs-hero: clamp(2.75rem, 7.2vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 5.5vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Space */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem;
  --s-5: 4rem;  --s-6: 6.5rem; --s-7: 9rem;

  /* Layout */
  --max: 1200px;
  --max-prose: 42rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 650ms;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
[id] { scroll-margin-top: 96px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s-3);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--max-prose);
}
.on-dark .lead { color: var(--mist); }

.prose { max-width: var(--max-prose); }
.prose p + p { margin-top: 1.25em; }
.prose h3 { margin: 2em 0 0.6em; }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  border-left: 2px solid var(--gold);
  padding-left: var(--s-4);
  margin: var(--s-5) 0;
  color: var(--ink);
  max-width: 34ch;
}
.on-dark .pull-quote, .on-forest .pull-quote { color: var(--bone); }

.small { font-size: var(--fs-small); color: var(--ink-soft); }
.on-dark .small { color: var(--mist-faint); }

/* ---------- 4. SECTIONS / GRID ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: var(--s-6); }
@media (min-width: 900px) { section { padding-block: var(--s-7); } }

.on-dark { background: var(--navy); color: var(--bone); }
.on-forest { background: var(--forest); color: var(--bone); }
.on-bone-2 { background: var(--bone-2); }

.grid-2 { display: grid; gap: var(--s-5); }
.grid-3 { display: grid; gap: var(--s-4); }
.grid-4 { display: grid; gap: var(--s-3); }
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.rule { border: 0; border-top: 1px solid var(--stone); margin-block: var(--s-5); }
.on-dark .rule { border-color: var(--navy-3); }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-3);
  color: var(--bone);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--s-3);
}
.brand {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; color: var(--bone);
  display: flex; align-items: center; gap: 0.65rem; white-space: nowrap;
}
.brand .mark { color: var(--gold); flex: none; }
.brand small {
  display: block; font-family: var(--sans); font-size: 0.62rem;
  font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mist-faint);
}
.nav-main { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-main a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  color: var(--mist); padding: 0.75rem 0.1rem; position: relative;
}
.nav-main a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0.45rem;
  height: 1px; background: var(--gold); transition: right 300ms var(--ease);
}
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { right: 0; }
.nav-main a[aria-current="page"] { color: var(--bone); }
.nav-main a.btn { padding: 0.6rem 1.1rem; }
.nav-main a.btn-primary, .nav-main a.btn-primary[aria-current="page"] { color: var(--navy); }
.nav-main a.btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--navy-3);
  color: var(--bone); padding: 0.6rem 0.9rem; border-radius: 2px;
  font-size: 0.85rem; letter-spacing: 0.1em; min-height: 44px; min-width: 44px;
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .nav-main {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--navy);
    border-bottom: 1px solid var(--navy-3);
    padding: var(--s-2) var(--gutter) var(--s-4);
    transform: translateY(-110%); transition: transform 350ms var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-main.open { transform: translateY(0); }
  .nav-main a { padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--navy-3); }
  .nav-main .btn { margin-top: var(--s-3); text-align: center; }
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.95rem 1.8rem; min-height: 48px; border-radius: 2px;
  border: 1px solid transparent; transition: all 250ms var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #C6A55C; transform: translateY(-1px); }
.btn-ghost { border-color: var(--gold-soft); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost-ink { border-color: var(--stone); color: var(--ink); background: transparent; }
.btn-ghost-ink:hover { border-color: var(--gold); color: var(--ink); }
.btn-small { padding: 0.6rem 1.1rem; min-height: 44px; font-size: 0.85rem; }

.text-link {
  color: inherit; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { border-bottom-width: 2px; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--bone);
  padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 9vw, 7rem);
}
.hero .topo { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 {
  font-size: var(--fs-hero);
  max-width: 15ch;
  margin-bottom: var(--s-4);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin-bottom: var(--s-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero-quiet {
  margin-top: var(--s-5); font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--mist-faint);
}

/* ---------- 8. TRUST STRIP / STATS ---------- */
.trust-strip {
  background: var(--navy-2); border-top: 1px solid var(--navy-3);
  border-bottom: 1px solid var(--navy-3); color: var(--bone);
  padding-block: var(--s-4);
}
.trust-strip .wrap {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat { text-align: left; }
.stat .num, .stat .lbl { display: block; }
.stat .num {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 500; line-height: 1; color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat .num sup { font-size: 0.45em; color: var(--gold); }
.stat .lbl {
  margin-top: 0.5rem; font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist-faint);
}

/* Placeholder treatment: obvious in review, invisible once replaced */
.ph {
  position: relative;
  outline: 1px dashed var(--gold-soft); outline-offset: 4px;
  cursor: help;
}
.ph::after {
  content: "PLACEHOLDER"; position: absolute; top: -1.1rem; left: 0;
  font-family: var(--sans); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--gold);
}

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--bone); border: 1px solid var(--stone);
  padding: var(--s-4); border-radius: 2px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(11,19,32,0.08); }
.on-dark .card, .card-dark {
  background: var(--navy-2); border-color: var(--navy-3); color: var(--bone);
}
.card h3 { margin-bottom: var(--s-2); }
.card .num-index {
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  display: block; margin-bottom: var(--s-2); letter-spacing: 0.05em;
}

/* ---------- 10. PHOTO SLOTS (no AI imagery, ever) ---------- */
.photo-slot {
  position: relative; background: var(--navy-2);
  border: 1px solid var(--navy-3); border-radius: 2px;
  aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: flex-end;
}
.photo-slot.wide { aspect-ratio: 21 / 9; }
.photo-slot.portrait { aspect-ratio: 3 / 4; }
.photo-slot .topo { position: absolute; inset: 0; opacity: 0.45; }
.photo-slot .spec {
  position: relative; margin: var(--s-2);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(11,19,32,0.85); padding: 0.4rem 0.7rem; border-radius: 2px;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
figcaption.credit {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.6rem;
}
.on-dark figcaption.credit { color: var(--mist-faint); }

/* ---------- 11. TABLES ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table caption {
  text-align: left; font-family: var(--serif); font-size: 1.2rem;
  margin-bottom: var(--s-2); font-weight: 500;
}
.data-table th {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); text-align: left;
  padding: 0.8rem 1rem 0.8rem 0; border-bottom: 2px solid var(--ink);
}
.data-table td {
  padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--stone);
  font-variant-numeric: tabular-nums;
}
.on-dark .data-table th { color: var(--mist-faint); border-color: var(--bone); }
.on-dark .data-table td { border-color: var(--navy-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 12. SCROLLYTELLING (the one moment) ---------- */
.scrolly { display: grid; gap: var(--s-4); }
@media (min-width: 900px) {
  .scrolly { grid-template-columns: 5fr 7fr; gap: var(--s-6); }
  .scrolly-sticky { position: sticky; top: 120px; align-self: start; }
}
.scrolly-stage {
  background: var(--navy-2); border: 1px solid var(--navy-3);
  border-radius: 2px; padding: var(--s-4); min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.scrolly-stage .stage-num {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold); line-height: 1;
}
.scrolly-stage .stage-title {
  font-family: var(--serif); font-size: var(--fs-h3); margin-top: var(--s-2);
  transition: opacity 400ms var(--ease);
}
.scrolly-stage .stage-desc { margin-top: var(--s-2); color: var(--mist); }
.scrolly-steps { display: flex; flex-direction: column; gap: var(--s-4); }
.scrolly-step {
  border-left: 2px solid var(--navy-3); padding: var(--s-2) 0 var(--s-2) var(--s-4);
  transition: border-color 400ms var(--ease), opacity 400ms var(--ease);
  opacity: 0.45;
}
.scrolly-step.active { border-color: var(--gold); opacity: 1; }
.scrolly-step h3 { margin-bottom: 0.5rem; }
.scrolly-step .k { color: var(--gold); font-family: var(--serif); margin-right: 0.5rem; }

/* ---------- 13. FORMS ---------- */
.form-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-size: var(--fs-small); font-weight: 600;
  margin-bottom: 0.4rem; letter-spacing: 0.03em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; min-height: 48px;
  font: inherit; color: var(--ink);
  background: var(--bone); border: 1px solid var(--stone); border-radius: 2px;
}
.on-dark .field input, .on-dark .field select, .on-dark .field textarea {
  background: var(--navy-2); border-color: var(--navy-3); color: var(--bone);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold);
}
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; }
.on-dark .field .hint { color: var(--mist-faint); }
.field.full { grid-column: 1 / -1; }
.field-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.field-check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: 0.25rem; flex: none; }
.form-msg { padding: var(--s-2) var(--s-3); border-radius: 2px; font-weight: 500; }
.form-msg.ok { background: var(--forest); color: var(--bone); }
.form-msg.err { background: #5C2B22; color: var(--bone); }

/* ---------- 14. MARKET REPORT (crest and frame) ---------- */
.report-frame {
  border: 1px solid var(--gold-soft); outline: 1px solid var(--gold-soft);
  outline-offset: 6px; border-radius: 2px;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--navy-2); color: var(--bone);
  text-align: center; max-width: 780px; margin-inline: auto;
}
.report-frame .crest { margin: 0 auto var(--s-3); color: var(--gold); }
.report-frame h2 { margin-bottom: var(--s-2); }
.report-frame form {
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center;
  margin-top: var(--s-4);
}
.report-frame input[type="email"] {
  flex: 1 1 260px; padding: 0.9rem 1.1rem; min-height: 48px; font: inherit;
  background: var(--navy); border: 1px solid var(--navy-3);
  color: var(--bone); border-radius: 2px;
}

/* ---------- 15. TEAM ---------- */
.team-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card .role {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin: var(--s-2) 0 var(--s-1);
}

/* ---------- 16. LOGO STRIP (partners) ---------- */
.logo-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3); align-items: center;
}
.logo-cell {
  border: 1px dashed var(--stone); border-radius: 2px; min-height: 84px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); text-align: center; padding: 1rem;
}

/* ---------- 17. INSIGHTS ---------- */
.insight-card { display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; }
.insight-card time {
  font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.insight-card h3 { transition: color 250ms var(--ease); }
.insight-card:hover h3 { color: var(--gold); }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--stone); border-radius: 2px;
  padding: 0.25rem 0.6rem; color: var(--ink-soft);
}
.on-dark .tag { border-color: var(--navy-3); color: var(--mist-faint); }

/* ---------- 18. GATE (accredited investor) ---------- */
.gate-step { display: none; }
.gate-step.current { display: block; }
.gate-options { display: grid; gap: var(--s-2); margin-block: var(--s-3); }
.gate-option {
  display: flex; gap: 0.9rem; align-items: flex-start; text-align: left;
  border: 1px solid var(--navy-3); background: var(--navy-2);
  padding: var(--s-3); border-radius: 2px; color: var(--bone);
  transition: border-color 250ms var(--ease);
}
.gate-option:hover { border-color: var(--gold); }
.gate-option strong { display: block; margin-bottom: 0.25rem; }
.gate-option span { font-size: 0.9rem; color: var(--mist); }

/* ---------- 19. FOOTER ---------- */
.site-footer {
  background: var(--navy); color: var(--mist); font-size: 0.9rem;
  border-top: 1px solid var(--navy-3); padding-block: var(--s-6) var(--s-4);
}
.footer-grid { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist-faint); margin-bottom: var(--s-2); font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.disclosures {
  border-top: 1px solid var(--navy-3); padding-top: var(--s-4);
  font-size: 0.78rem; line-height: 1.7; color: var(--mist-faint);
  max-width: 70rem;
}
.disclosures p + p { margin-top: 0.8em; }

/* ---------- 20. CONCIERGE (no avatar) ---------- */
.concierge {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  background: var(--navy); color: var(--bone);
  border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 0.8rem 1.3rem; min-height: 48px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(11,19,32,0.3);
  transition: border-color 250ms var(--ease);
}
.concierge:hover { border-color: var(--gold); }
.concierge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- 21. REVEALS ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

/* Topo line drift */
@keyframes topoDrift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.topo-anim { animation: topoDrift 26s linear infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .topo-anim { animation: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}

/* ---------- 22. UTILITIES ---------- */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.center { text-align: center; }
.gold { color: var(--gold); }
.narrow { max-width: var(--max-prose); }
.narrow-c { max-width: var(--max-prose); margin-inline: auto; }
