/* ============================================================
   Ardente Capital — site stylesheet
   Monochrome design tokens
   ============================================================ */

:root {
  --paper: #fdfdfd;        /* page background */
  --paper-warm: #f5f4f1;   /* alternate light section */
  --ink: #131416;          /* primary text */
  --ink-soft: #3c3e42;     /* body text */
  --muted: #70737a;        /* secondary text */
  --line: #e4e3e0;         /* hairlines on light */
  --dark: #101113;         /* dark sections / hero */
  --dark-2: #17181b;       /* cards on dark */
  --on-dark: #fdfdfd;
  --on-dark-muted: rgba(253, 253, 253, 0.68);
  --line-dark: rgba(253, 253, 253, 0.16);
  --accent: #131416;       /* monochrome: accent = ink */
  --accent-deep: #131416;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }

.wrap {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.serif-italic { font-family: var(--serif); font-style: italic; font-size: 1.15em; }

/* ---------- Header / nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
}

.site-header.scrolled {
  position: fixed;
  background: var(--dark);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 var(--line-dark);
  animation: headerIn 0.25s ease;
}

@keyframes headerIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo { display: inline-flex; align-items: baseline; }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-right: -0.38em; /* offset trailing letterspace */
}

.on-dark .wordmark, .on-dark .nav-links a { color: var(--on-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover { opacity: 1; }

.nav-links a.active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.nav-links .nav-cta {
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 0.55rem 1.3rem;
  opacity: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-dark);
  cursor: pointer;
  width: 2rem; height: 2rem;
  padding: 0.2rem;
}

.nav-toggle svg { width: 100%; height: 100%; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--dark);
    padding: 0.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--line-dark);
  }
  .site-header.nav-open { background: var(--dark); position: fixed; }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav-links .nav-cta { border: none; padding: 0.85rem 0; }
  .nav-links .nav-cta:hover, .nav-links .nav-cta.active { background: none; color: var(--on-dark); }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: var(--on-dark);
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.hero h1 { color: var(--on-dark); max-width: 17ch; }

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero .lede { color: var(--on-dark-muted); max-width: 56ch; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  opacity: 0.55;
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- Sub-page hero ---------- */

.page-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 10.5rem 0 5.5rem;
}

.page-hero h1 { color: var(--on-dark); max-width: 20ch; }
.page-hero .lede { color: var(--on-dark-muted); max-width: 62ch; }
.page-hero .eyebrow { color: var(--on-dark-muted); }

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.14rem;
  line-height: 1.7;
  margin-top: 1.4rem;
  max-width: 64ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .lede { margin-inline: auto; }

.prose p + p { margin-top: 1.15rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* on dark surfaces */
.hero .btn-solid, .section-dark .btn-solid {
  background: var(--on-dark);
  color: var(--ink);
}
.hero .btn-solid:hover, .section-dark .btn-solid:hover { background: rgba(253,253,253,0.85); }

.btn-ghost {
  border-color: currentColor;
  color: inherit;
}

.hero .btn-ghost, .section-dark .btn-ghost, .criteria-strip .btn-ghost {
  color: var(--on-dark);
  border-color: var(--line-dark);
}
.hero .btn-ghost:hover, .section-dark .btn-ghost:hover, .criteria-strip .btn-ghost:hover {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}

/* on light surfaces */
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: #2a2c30; }

.btn-ghost-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- Section variants ---------- */

.section-paper { background: var(--paper-warm); }

.section-dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}

.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .eyebrow { color: var(--on-dark-muted); }

/* ---------- Route cards (home + 404) ---------- */

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.1rem 1.9rem;
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.route-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 17, 19, 0.07);
}

.route-card p { font-size: 0.95rem; }

.route-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.route-link::after { content: '\2192'; margin-left: 0.5rem; transition: margin 0.2s ease; }
.route-card:hover .route-link::after { margin-left: 0.85rem; }

/* ---------- Sector cards ---------- */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.sector-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.3rem 2.1rem;
}

.sector-card h3 { margin-bottom: 0.7rem; }
.sector-card p { font-size: 0.97rem; }

.glyph {
  width: 46px; height: 46px;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.glyph svg { width: 100%; height: 100%; }

/* ---------- Criteria strip (home) ---------- */

.criteria-strip {
  background: var(--dark);
  color: var(--on-dark);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.fact .v {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--on-dark);
  line-height: 1.2;
}

.fact .k {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 0.25rem;
}

/* ---------- Definition (name origin) ---------- */

.definition {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.definition .word {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--ink);
  line-height: 1;
}

.definition .phonetic {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.definition .sense {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 1.1rem;
}

.definition .prose p { font-size: 1.12rem; line-height: 1.75; }

/* ---------- Values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.9rem 1.6rem;
}

.value-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.9rem;
}

.value-card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.value-card p { font-size: 0.92rem; line-height: 1.6; }

/* ---------- Stats band ---------- */

.stat-band .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.stat .figure {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.4rem);
  color: var(--on-dark);
  line-height: 1;
}

.stat .label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 0.8rem;
}

.stat-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
  max-width: 560px;
  margin: 3rem auto 0;
  line-height: 1.6;
}

/* ---------- Two-column with sticky head ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.sticky-head { position: sticky; top: 7rem; }

/* ---------- Criteria list ---------- */

.criteria-list { border-top: 1px solid var(--line); }

.criteria-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1.6fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.criteria-row dt {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.45rem;
}

.criteria-row dd {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1.3;
}

.criteria-row .sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ---------- Pillars ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.pillar-grid.two-by-two { grid-template-columns: repeat(2, 1fr); }

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.1rem 1.9rem;
}

.pillar .k {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { font-size: 0.94rem; }

/* ---------- Split CTA (dark) ---------- */

.split-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split-cta h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.split-cta p { margin-bottom: 1.7rem; max-width: 46ch; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

.person { display: flex; flex-direction: column; }

.person .photo {
  width: 168px;
  margin-bottom: 1.5rem;
}

.person .photo img {
  border-radius: 50%;
  filter: grayscale(1);
  border: 1px solid var(--line);
}

.person h3 { font-size: 1.6rem; }

.person .role {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}

.person p { font-size: 0.96rem; }

.role-note { color: var(--muted); }

.role-footnote {
  font-size: 0.8rem !important;
  color: var(--muted);
  margin-top: 0.8rem;
}

.email {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  transition: border-color 0.2s ease;
}

.email:hover { border-color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.3rem 2.1rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.contact-card h3 { margin-bottom: 0.8rem; }
.contact-card p { font-size: 0.95rem; }
.contact-card .email { margin-top: 1.5rem; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); max-width: 860px; }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  padding: 1.6rem 3rem 1.6rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list .answer { padding: 0 0 1.9rem; max-width: 68ch; }
.faq-list .answer p + p { margin-top: 1rem; }

/* ---------- Legal pages ---------- */

.legal-body { max-width: 760px; }

.legal-body h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
}

.legal-body p { font-size: 0.97rem; }

/* ---------- Footer ---------- */

footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding: 4rem 0 2.5rem;
}

footer .logo .wordmark { color: var(--on-dark); font-size: 1.25rem; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-nav a {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover { opacity: 1; }

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  opacity: 0.65;
  border-top: 1px solid var(--line-dark);
  padding-top: 2.2rem;
  max-width: 940px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  border-top: 1px solid var(--line-dark);
  margin-top: 2.2rem;
  padding-top: 1.8rem;
}

.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { opacity: 0.8; }
.legal-links a:hover { opacity: 1; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .route-grid, .pillar-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .route-grid, .sector-grid, .pillar-grid, .pillar-grid.two-by-two,
  .contact-grid, .split-cta, .values-grid { grid-template-columns: 1fr; }
  .two-col, .definition { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
  .criteria-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .stat-band .stats { grid-template-columns: 1fr; gap: 2.5rem; }
  .strip-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 0; padding: 8.5rem 0 5rem; }
  .page-hero { padding: 8.5rem 0 4rem; }
  .scroll-cue { display: none; }
}
