/* EXO Talent Partners — Final premium build
   Navy primary, gold accent. Newsreader display + Inter Tight body.
*/

:root {
  --navy: #0D1B2A;
  --navy-deep: #060D17;
  --navy-soft: #142536;
  --gold: #C9A03A;
  --gold-bright: #E0B848;
  --gold-soft: #8E6F22;
  --bg: #0D1B2A;
  --bg-deep: #060D17;
  --bg-soft: #142536;
  --bg-light: #F5F1EA;
  --text: #ECE6D7;
  --text-muted: #98A0AC;
  --text-soft: #6B7480;
  --text-dark: #1A1714;
  --text-dark-muted: #6B6258;
  --border: rgba(201, 160, 58, 0.18);
  --border-strong: rgba(201, 160, 58, 0.40);
  --border-light: rgba(26, 23, 20, 0.12);
  --max-width: 1240px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 350; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
h4 { font-size: 0.95rem; line-height: 1.3; font-weight: 500; font-family: 'Inter Tight', sans-serif; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold); }

strong { font-weight: 600; color: var(--gold); }

::selection { background: var(--gold); color: var(--navy); }

/* ——— Layout ——— */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.prose { max-width: var(--max-prose); }

section {
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
}
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

.light-section {
  background: var(--bg-light);
  color: var(--text-dark);
}
.light-section h1, .light-section h2, .light-section h3, .light-section h4 { color: var(--text-dark); }
.light-section .label { color: var(--gold-soft); }
.light-section a { color: var(--text-dark); }
.light-section a:hover { color: var(--gold-soft); }
.light-section strong { color: var(--gold-soft); }
.light-section .muted, .light-section p.muted { color: var(--text-dark-muted); }

.dark-section { background: var(--bg-soft); }

/* ——— Eyebrow label ——— */

.label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
  padding-left: 26px;
}
.label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

/* ——— Nav ——— */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 13, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
}
.brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-sub {
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  transition: all 0.18s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ——— Hero ——— */

.hero {
  padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-lede {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 48px;
  font-weight: 300;
}

/* ——— Buttons ——— */

.btn {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.light-section .btn-primary { background: var(--navy); color: var(--bg-light) !important; border-color: var(--navy); }
.light-section .btn-primary:hover { background: var(--gold); color: var(--navy) !important; border-color: var(--gold); }
.light-section .btn-secondary { color: var(--navy) !important; border-color: var(--navy); }
.light-section .btn-secondary:hover { background: var(--navy); color: var(--bg-light) !important; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ——— Two-column ——— */

.cols {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; gap: 28px; } }

.cols.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .cols.even { grid-template-columns: 1fr; } }

/* ——— Cards ——— */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.card:hover { background: var(--bg-soft); }
.dark-section .card { background: var(--bg-soft); }
.dark-section .card:hover { background: var(--bg); }
.light-section .card { background: var(--bg-light); }

.card-num {
  font-family: 'Newsreader', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  font-feature-settings: "tnum";
  text-transform: uppercase;
}

.card h3 { margin-bottom: 12px; font-size: 1.15rem; color: var(--text); font-family: 'Newsreader', serif; font-weight: 450; }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.light-section .card h3 { color: var(--text-dark); }
.light-section .card p { color: var(--text-dark-muted); }

/* ——— Case studies ——— */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.case {
  background: var(--bg-soft);
  border-top: 2px solid var(--gold);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.case:hover { background: var(--bg); transform: translateY(-2px); }
.light-section .case { background: #FFFFFF; }

.case-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.case h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.light-section .case h3 { color: var(--text-dark); }

.case p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.light-section .case p { color: var(--text-dark-muted); }

.case-meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ——— Process / steps ——— */

.steps { margin-top: 56px; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.light-section .step { border-color: var(--border-light); }
.light-section .step:last-child { border-bottom-color: var(--border-light); }
@media (max-width: 600px) { .step { grid-template-columns: 60px 1fr; gap: 20px; } }

.step-num {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}
.step h3 { margin-bottom: 10px; font-size: 1.2rem; font-family: 'Newsreader', serif; font-weight: 450; color: var(--text); }
.light-section .step h3 { color: var(--text-dark); }
.step p { color: var(--text-muted); max-width: 64ch; line-height: 1.65; }
.light-section .step p { color: var(--text-dark-muted); }

/* ——— Founder ——— */

.founder-block {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .founder-block { grid-template-columns: 1fr; } }

.founder-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-photo .initials {
  font-family: 'Newsreader', serif;
  font-size: 5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* ——— Quote / Testimonial ——— */

.quote {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-weight: 350;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text);
}
.light-section .quote { color: var(--text-dark); }

.quote-attr {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 56px;
}
@media (max-width: 820px) { .testimonial-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ——— Insights ——— */

.insight-row {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.insight {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2.5fr 100px;
  gap: 28px;
  align-items: baseline;
  transition: color 0.15s;
}
.insight:hover h3 { color: var(--gold); }
.insight .tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.insight h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.015em;
}
.insight .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.insight.stub h3 { color: var(--text-soft); }
.insight.stub .tag { color: var(--text-soft); }

@media (max-width: 720px) {
  .insight { grid-template-columns: 1fr; gap: 8px; }
  .insight .date { text-align: left; }
}

/* ——— Comparison table ——— */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 0.93rem;
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare th {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.compare td { color: var(--text); }
.compare td:first-child {
  color: var(--gold);
  font-size: 0.74rem;
  width: 22%;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .compare, .compare thead, .compare tbody, .compare th, .compare td, .compare tr { display: block; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--border); margin-bottom: 16px; padding: 12px; }
  .compare td { border: none; padding: 4px 0; }
  .compare td:first-child { font-weight: 700; padding-top: 12px; }
}

/* ——— CTA block ——— */

.cta-block {
  background: var(--bg-deep);
  color: var(--text);
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 2px solid var(--gold);
}
.cta-block h2 { color: var(--text); max-width: 20ch; }
.cta-block p { color: var(--text-muted); max-width: 60ch; margin-bottom: 32px; }

/* ——— Footer ——— */

.footer {
  background: var(--bg-deep);
  color: var(--text);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-muted); font-size: 0.88rem; font-weight: 400; }
.footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; margin-bottom: 16px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer .brand-mark { color: var(--gold); }
.footer .brand-sub { color: var(--text); }
.footer-brand .tagline {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.5;
  margin-top: 14px;
}
.footer-stack { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) { .footer-bottom { flex-direction: column; gap: 8px; } }

/* ——— Prose for long-form ——— */

.long-form { padding: clamp(80px, 11vw, 140px) 0; }
.long-form h1 { margin-bottom: 22px; max-width: 24ch; }
.long-form .lede {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 60ch;
  font-style: italic;
}
.long-form .meta {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-weight: 600;
}
.long-form p, .long-form ul, .long-form ol { max-width: var(--max-prose); }
.long-form p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.3em; color: var(--text); }
.long-form h2 { font-family: 'Newsreader', serif; font-weight: 350; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 56px 0 20px; }
.long-form h3 { margin: 40px 0 12px; color: var(--gold); font-family: 'Inter Tight', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.long-form blockquote {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 40px 0;
  color: var(--text);
  max-width: var(--max-prose);
}

.light-section .long-form p,
.light-section .long-form h2,
.light-section .long-form blockquote { color: var(--text-dark); }
.light-section .long-form .lede { color: var(--text-dark-muted); }
.light-section .long-form .meta { color: var(--gold-soft); border-color: var(--border-light); }

/* ——— Mobile nav ——— */

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: var(--bg-deep);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 70; position: relative; }
  .nav-links a { font-size: 1rem; }
}

/* ——— Utilities ——— */

.divider { height: 1px; background: var(--border); margin: 56px 0; }
.gold-rule { height: 2px; background: var(--gold); margin: 28px 0; max-width: 72px; border: none; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.light-section .muted { color: var(--text-dark-muted); }

/* Clickable card variant */
a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
a.card-link:hover { background: var(--bg-soft); }
a.card-link:hover h3 { color: var(--gold); }
a.card-link::after {
  content: "\2192";
  position: absolute;
  bottom: 28px;
  right: 32px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.2s ease;
  transform: translateX(-6px);
}
a.card-link:hover::after { opacity: 1; transform: translateX(0); }

/* Tight bordered list for included/excluded blocks */
.tight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tight-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  padding-left: 22px;
}
.tight-list li:first-child { border-top: 1px solid var(--border); }
.tight-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.light-section .tight-list li { color: var(--text-dark); border-color: var(--border-light); }
.light-section .tight-list li:first-child { border-top-color: var(--border-light); }

/* ——— Founder block: intentionally designed monogram with optional photo overlay ——— */

.founder-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, #1A2A3F 0%, #0D1B2A 55%, #060D17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.founder-photo .founder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.founder-photo .founder-img[src=""],
.founder-photo .founder-img:not([src]) { display: none; }
/* If image fails to load, hide it so monogram shows underneath */
.founder-photo .founder-img { background: transparent; }

.monogram {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px;
}
.monogram-mark {
  font-family: 'Newsreader', serif;
  font-size: clamp(4.5rem, 9vw, 6.5rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 16px;
}
.monogram-mark::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}
.monogram-name {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 8px;
}
.monogram-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Onerror handler for img */
.founder-img[onerror] { z-index: 2; }
