/* ============================================================
   KLIKE CAPITAL — Design System
   Dark-mode luxury · editorial serif + institutional grotesque
   + technical mono · rich gold · topographic + architectural grid
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #06080e;
  --bg-2:      #090d16;
  --navy:      #0b1322;
  --charcoal:  #0f141d;
  --raise:     #111722;

  /* ink */
  --fg:        #ece7da;   /* warm off-white */
  --fg-soft:   #c3c2bb;
  --muted:     #8a91a0;   /* cool grey-blue */
  --muted-2:   #5a6273;
  --faint:     #3a4252;

  /* gold */
  --gold:      #c9a24c;
  --gold-lt:   #e8cf8c;
  --gold-dk:   #9a7836;
  --gold-deep: #6f5526;

  /* lines */
  --line:      rgba(232, 227, 218, 0.10);
  --line-soft: rgba(232, 227, 218, 0.055);
  --gold-line: rgba(201, 162, 76, 0.34);

  --gold-grad: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 48%, var(--gold-dk) 100%);

  /* type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono:  "Space Mono", "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.5rem, 5vw, 6rem);
  --maxw: 1320px;
  --sect-y: clamp(6.5rem, 14vh, 12rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(201,162,76,0.28); color: #fff; }

/* ---------- ambient texture layers (fixed) ---------- */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

#topo {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  opacity: 0.55; pointer-events: none;
}

/* architectural column grid */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.grid-overlay span {
  border-left: 1px solid var(--line-soft);
}
.grid-overlay span:last-child { border-right: 1px solid var(--line-soft); }

/* deep vignette so content floats above texture */
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(20,32,58,0.55), transparent 60%),
    radial-gradient(100% 100% at 50% 120%, rgba(6,8,14,0.9), transparent 60%);
}

.page { position: relative; z-index: 1; }

/* ---------- shared primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.85em;
  font-weight: 400;
}
.kicker::before {
  content: ""; width: 2.4rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.kicker.center::before { content: none; }

.eyebrow-num {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--muted-2);
}

.serif { font-family: var(--serif); }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1,h2,h3 { font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--fg-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.75;
  font-weight: 300;
}
.body {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 300;
}

.hr-gold { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }

/* reveal on scroll — content is visible by DEFAULT (safe);
   the hidden->reveal animation only engages once JS adds .anim-ready
   to <html> from inside a rAF (proving the animation clock runs). */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.16,.7,.2,1), transform 1s cubic-bezier(.16,.7,.2,1);
}
html.anim-ready .reveal.in { opacity: 1; transform: none; }
html.anim-ready .reveal.d1 { transition-delay: .08s; }
html.anim-ready .reveal.d2 { transition-delay: .16s; }
html.anim-ready .reveal.d3 { transition-delay: .24s; }
html.anim-ready .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease, padding .5s ease;
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.scrolled {
  background: rgba(6,8,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.34em; font-size: 0.84rem;
  text-transform: uppercase; color: var(--fg);
  display: inline-flex; gap: 0.5em; text-decoration: none;
}
.brand b { font-weight: 600; color: var(--gold); }
.navlinks { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.navlinks a {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  position: relative; padding: 4px 0; transition: color .35s ease;
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--gold); transition: right .4s cubic-bezier(.16,.7,.2,1);
}
.navlinks a:hover { color: var(--gold-lt); }
.navlinks a:hover::after { right: 0; }
.navlinks .sep { color: var(--faint); font-size: 0.6rem; }
@media (max-width: 860px) {
  .navlinks { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vh, 7rem);
}
@media (max-width: 860px) {
  .hero {
    align-items: center;
    padding-top: 76px; /* clear the fixed nav */
    padding-bottom: clamp(2rem, 6vh, 4rem);
  }
}
.hero-media {
  position: absolute; inset: -8% 0 0 0; z-index: 0;
  will-change: transform;
}
.hero-media image-slot { width: 100%; height: 116%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,8,14,0.62) 0%, rgba(6,8,14,0.28) 30%, rgba(6,8,14,0.55) 66%, var(--bg) 99%),
    linear-gradient(90deg, rgba(6,8,14,0.7) 0%, transparent 55%);
}
.hero-grid-mark {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(0deg, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 100% at 30% 60%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 60%, #000 20%, transparent 78%);
  opacity: 0.6;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-coords {
  display: flex; gap: 2.2rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em;
  color: var(--muted-2); margin-bottom: 2.4rem;
}
.hero-coords span b { color: var(--gold); font-weight: 400; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.3rem, 9.2vw, 9.4rem);
  font-weight: 500; line-height: 0.92; letter-spacing: -0.025em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  margin-top: 2rem; max-width: 46ch;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.6; color: var(--fg-soft); font-weight: 300;
}
.hero-support {
  margin-top: 1.6rem; max-width: 52ch;
  color: var(--muted); font-weight: 300; line-height: 1.85; font-size: 1.0rem;
}
.hero-rule { margin-top: 3rem; display: flex; align-items: center; gap: 1.4rem; }
.hero-rule .line { height: 1px; flex: 1; max-width: 220px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.hero-rule .scrolltip { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.34em; color: var(--muted-2); text-transform: uppercase; }

/* ============================================================
   SECTION: PHILOSOPHY
   ============================================================ */
.section { position: relative; padding: var(--sect-y) 0; }
.sect-head { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

.philosophy { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.bigquote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 6.2vw, 5.6rem); line-height: 1.04;
  letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance;
}
.bigquote .q { color: var(--muted-2); }
.bigquote em { font-style: italic; color: var(--fg); }
.quote-by { margin-top: 2rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
.philo-grid {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.philo-stack p { margin-bottom: 1.3rem; }
.philo-stack .accent {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem,2.4vw,2.1rem);
  color: var(--fg); line-height: 1.3; font-weight: 500;
}
@media (max-width: 820px){ .philo-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION: WHAT WE DO — cards
   ============================================================ */

/*
  3-row subgrid on the parent lets all four cards share the same
  row tracks so Roman numerals, headings, and body copy snap to
  a common baseline regardless of how many lines each heading wraps to.
  Row 1 (auto)          — cnum label
  Row 2 (minmax 120px, 1fr) — spacer + h3, aligned to row bottom
  Row 3 (auto)          — body copy, always starts at the same Y
*/
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 0;
  border-top: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 2.6rem clamp(1rem, 1.6vw, 2.1rem) 2.8rem;
  border-right: 1px solid var(--line);
  transition: background .6s ease;
  overflow: hidden;
  /* inherit the three shared row tracks */
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: subgrid;
}
.card:first-child { border-left: 1px solid var(--line); }
.card::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px;
  background: var(--gold-grad); transition: width .7s cubic-bezier(.16,.7,.2,1);
}
.card:hover { background: linear-gradient(180deg, rgba(201,162,76,0.05), rgba(201,162,76,0)); }
.card:hover::before { width: 100%; }
.card .cnum { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--gold); }
.card h3 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.15rem); font-weight: 500;
  /* bottom-align within the 1fr row so all headings share the same lower edge */
  align-self: end; margin-top: 0;
  line-height: 1.08; letter-spacing: -0.01em;
}
.card p {
  margin-top: 1.1rem; color: var(--muted);
  /* scale down slightly at narrower desktop widths to avoid cramping */
  font-size: clamp(0.82rem, 1.2vw, 0.94rem);
  line-height: 1.75; font-weight: 300;
}

/* desktop-only line breaks in card headings */
.desk-br { display: inline; }

/* 2-col tablet — reset subgrid, fall back to flex column */
@media (max-width: 900px) {
  .desk-br { display: none; }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .card {
    grid-row: auto;
    display: flex; flex-direction: column;
    min-height: 280px;
  }
  .card h3 { margin-top: auto; align-self: auto; }
  .card { border-left: 1px solid var(--line); }
  .card:nth-child(2) { border-right: 1px solid var(--line); }
}
/* 1-col mobile */
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION: OPPORTUNITY MAP
   ============================================================ */
.map-section { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.map-wrap { position: relative; }
.map-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 8.4;
  border: 1px solid var(--line); background: var(--bg);
  overflow: hidden;
}
.map-stage .map-frame-label {
  position: absolute; top: 1rem; left: 1.2rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--muted-2); text-transform: uppercase;
}
.map-stage .map-frame-label.r { left: auto; right: 1.2rem; }
.map-stage .map-frame-label.b { top: auto; bottom: 1rem; }
#mapsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-dot { fill: var(--gold); }
.city-ring { fill: none; stroke: var(--gold); }
.corridor { stroke: var(--gold-line); stroke-width: 1; fill: none; stroke-dasharray: 3 5; }
.city-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; fill: var(--fg); text-transform: uppercase; }
.city-coord { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; fill: var(--muted-2); }
.map-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); margin-top: 3rem; align-items: start; }
.map-copy .big { font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.015em; }
@media (max-width:820px){ .map-copy{ grid-template-columns:1fr; } }

/* ============================================================
   SECTION: PORTFOLIO
   ============================================================ */
.portfolio { background: var(--bg); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.pf-card {
  position: relative; aspect-ratio: 3 / 2.05; overflow: hidden;
  border: 1px solid var(--line); background: var(--charcoal);
}
.pf-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-card .pf-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,7,12,0.92) 0%, rgba(5,7,12,0.25) 48%, rgba(5,7,12,0.4) 100%);
}
.pf-card .pf-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: clamp(1.6rem,2.4vw,2.4rem); }
.pf-card .pf-idx { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.28em; color: var(--gold); }
.pf-card h3 { font-family: var(--serif); font-size: clamp(1.7rem,2.6vw,2.5rem); font-weight: 500; margin-top: 0.7rem; line-height: 1.05; }
.pf-card p { margin-top: 0.7rem; color: var(--fg-soft); font-size: 0.96rem; line-height: 1.6; font-weight: 300; max-width: 42ch; }
.pf-card .pf-status { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--muted-2); text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6em; }
.pf-card .pf-status::before { content:""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }

/* confidential card — same structure as the others; only status dot and redact bars differ */
.redact-bar { height: 1.5rem; background: repeating-linear-gradient(45deg, rgba(40,46,58,0.9) 0 10px, rgba(20,24,32,0.9) 10px 20px); width: 60%; margin: 1.2rem 0; border: 1px solid var(--line); }
.redact-bar.short { width: 38%; }
.pf-card.redacted .pf-status::before { background: var(--muted-2); box-shadow: none; }
@media (max-width:720px){ .pf-grid{ grid-template-columns:1fr; } }

/* ============================================================
   SECTION: LEADERSHIP
   ============================================================ */
.leadership { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.lead-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2.5rem,5vw,6rem); align-items: center; }
.portrait-frame { position: relative; }
.portrait-frame .pf-img { position: relative; border: 1px solid var(--gold-line); overflow: hidden; aspect-ratio: 4/4.4; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; filter: saturate(0.96) contrast(1.02); }
.portrait-frame .pf-img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(6,8,14,0.5)); pointer-events:none; }
.portrait-cap { margin-top: 1rem; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted-2); text-transform: uppercase; }
.lead-name { font-family: var(--serif); font-size: clamp(2.6rem,5vw,4.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.lead-role { margin-top: 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }
.lead-bio { margin-top: 2rem; }
.lead-quote { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.lead-quote .q { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem,2.8vw,2.5rem); font-weight: 500; line-height: 1.32; color: var(--fg); letter-spacing: -0.01em; }
.lead-quote .by { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
@media (max-width: 860px){ .lead-grid{ grid-template-columns:1fr; } .portrait-frame{ max-width: 420px; } }

/* ============================================================
   SECTION: PRINCIPLES
   ============================================================ */
.principles { background: var(--bg); border-top: 1px solid var(--line); }
.principle {
  position: relative; display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: clamp(1.25rem,3.5vw,3.5rem);
  padding: clamp(1.6rem, 3.4vw, 3rem) 0; border-bottom: 1px solid var(--line);
}
.principle .pn { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--muted-2); }
.principle .pw {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 6.6vw, 5.8rem); line-height: 0.98; letter-spacing: -0.02em;
  color: var(--fg); transition: color .5s ease;
  text-wrap: balance;
}
.principle:hover .pw { color: var(--gold-lt); }
.principle .pmeta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted-2); text-transform: uppercase; text-align: right; max-width: 14ch; line-height: 1.5; }
@media (max-width: 720px){ .principle { grid-template-columns: auto minmax(0,1fr); } .principle .pmeta { display:none; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finale { position: relative; min-height: 92svh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.finale-media { position: absolute; inset: 0; z-index: 0; }
.finale-media image-slot { width: 100%; height: 100%; display: block; }
.finale-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(6,8,14,0.55) 35%, rgba(6,8,14,0.7) 70%, var(--bg) 100%); }
.finale .wrap { position: relative; z-index: 2; }
.finale h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance; }
.finale .fsub { margin: 2rem auto 0; max-width: 40ch; color: var(--fg-soft); font-weight: 300; font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.7; }
.finale .fline { width: 1px; height: 70px; margin: 0 auto 2.4rem; background: linear-gradient(180deg, transparent, var(--gold)); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(4rem,8vw,7rem) 0 3rem; text-align: center; }
.footer .fbrand { font-family: var(--sans); font-weight: 600; letter-spacing: 0.4em; font-size: 1rem; text-transform: uppercase; }
.footer .fbrand b { color: var(--gold); }
.footer .pillars { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.footer .pillars .dot { color: var(--gold); }
.footer .floc { margin-top: 2.4rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em; color: var(--muted-2); text-transform: uppercase; }
.footer .fcopy { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; color: var(--faint); text-transform: uppercase; }
.footer .fmono { margin: 2.6rem auto 0; max-width: 60px; }
