/* ============================================================
   R1 Advisory — Stylesheet
   Pure black · institutional minimalism · accordion modules
   ============================================================ */

:root {
  --ink:        #000000;        /* pure black, matches logo */
  --ink-soft:   #050505;
  --ink-card:   #0c0c0c;
  --ink-open:   #141414;
  --paper:      #f5f3ef;        /* warm off-white text */
  --paper-pure: #ffffff;
  --paper-muted:#a8a39a;
  --rule:       #1c1c1c;
  --rule-bright:#262626;
  --accent:     #c8a25b;        /* champagne gold */
  --accent-deep:#a07f3d;
  --muted:      #6a6a6a;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 2rem;

  --transition: 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
  line-height: 1;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.85rem;
  color: var(--paper-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--paper); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 2rem;
  color: var(--paper);
  animation: fadeUp 0.9s ease-out 0.1s both;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 56ch;
  color: var(--paper-muted);
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.3s both;
}

.btn-primary,
.btn-secondary {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.75rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero-decor {
  position: absolute;
  top: 4rem;
  right: -2rem;
  pointer-events: none;
  opacity: 0.04;
}
.hero-numeral {
  font-family: var(--serif);
  font-size: 28rem;
  font-weight: 300;
  line-height: 1;
  color: var(--paper);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.section-tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-top: 0.4rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--paper);
}
.section-sub {
  color: var(--paper-muted);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   THESIS
   ============================================================ */
.thesis {
  padding: 5rem 0;
  border-top: 1px solid var(--rule);
  background: var(--ink-soft);
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
  align-items: start;
}
.thesis-label {
  position: sticky;
  top: 6rem;
}
.thesis-body p + p { margin-top: 1.5rem; }
.thesis-statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--paper);
  letter-spacing: -0.005em;
}

/* ============================================================
   MODULES — ACCORDION
   ============================================================ */
.modules {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
}
.modules-header {
  margin-bottom: 3.5rem;
  max-width: 600px;
}
.modules-header .section-num { display: block; margin-bottom: 1rem; }

.module-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-bright);
}

.module {
  border-bottom: 1px solid var(--rule-bright);
  transition: background var(--transition);
}
.module.open {
  background: var(--ink-soft);
}

.module-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--paper);
  text-align: left;
  font-family: inherit;
  transition: all var(--transition);
}
.module-head:hover {
  background: rgba(200, 162, 91, 0.04);
  padding-left: 1.5rem;
}
.module.open .module-head {
  padding-bottom: 1.5rem;
}

.module-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  min-width: 2.5rem;
  transition: color var(--transition);
}

.module-head-titles {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.module-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.module-summary {
  font-size: 0.95rem;
  color: var(--paper-muted);
  line-height: 1.5;
}

.module-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: transform var(--transition);
}
.toggle-line.v {
  transform: rotate(90deg);
}
.module.open .toggle-line.v {
  transform: rotate(0deg);
}

.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.module.open .module-body {
  max-height: 3000px;
}

.module-body-inner {
  padding: 0 1rem 3.5rem 5rem;
  max-width: 920px;
}
.module-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-bright);
  max-width: 60ch;
}

.module-detail {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.module-detail:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2.5rem;
}
.module-detail h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.module-detail p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--paper-muted);
  margin-bottom: 1.25rem;
  max-width: 65ch;
}
.module-detail ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.module-detail ul li {
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-bright);
  color: var(--paper);
  max-width: 70ch;
}
.module-detail ul li:last-child {
  border-bottom: 1px solid var(--rule-bright);
}
.module-detail ul li strong {
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.4rem;
}

.module-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--paper);
  padding: 2rem;
  border-left: 2px solid var(--accent);
  background: var(--ink-card);
  margin-top: 1rem;
}

/* ============================================================
   POV TEASER
   ============================================================ */
.pov-teaser {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
  background: var(--ink-soft);
}
.pov-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
  align-items: start;
}
.pov-headline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--paper);
}
.pov-text {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 55ch;
  color: var(--paper-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0;
  background: var(--ink);
  border-top: 1px solid var(--rule);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-intro .section-num { display: block; margin-bottom: 1rem; }
.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--paper);
}
.contact-sub {
  color: var(--paper-muted);
  font-size: 1.05rem;
  max-width: 40ch;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--ink-card);
  border: 1px solid var(--rule-bright);
  color: var(--paper);
  border-radius: 0;
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  margin-top: 0.5rem;
}
.form-status {
  font-size: 0.9rem;
  min-height: 1.2rem;
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand .logo-img { height: 36px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--paper-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   POINTS OF VIEW
   ============================================================ */
.pov-hero {
  padding: 6rem 0 4rem;
}
.pov-hero .eyebrow { margin-bottom: 1.5rem; }
.pov-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 2rem;
  color: var(--paper);
}
.pov-hero h1 em { font-style: italic; color: var(--accent); }
.pov-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--paper-muted);
  max-width: 60ch;
}

.essays {
  padding: 3rem 0 6rem;
  border-top: 1px solid var(--rule);
}
.essay-list { display: flex; flex-direction: column; }
.essay-item {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--paper);
  transition: all var(--transition);
  align-items: start;
}
.essay-item:hover {
  background: var(--ink-soft);
  padding-left: 1rem;
  padding-right: 1rem;
}
.essay-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.essay-meta .essay-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-right: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}
.essay-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--paper);
}
.essay-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-muted);
}
.essay-arrow {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  text-align: right;
  transition: transform var(--transition);
}
.essay-item:hover .essay-arrow { transform: translateX(8px); }

.essay-coming {
  padding: 3rem 0;
  text-align: center;
  color: var(--paper-muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 2rem 2rem;
  }
  .nav.open .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
  }
  .nav-toggle { display: flex; }

  .hero { padding: 4rem 0 4rem; }
  .hero-decor { display: none; }

  .thesis-grid,
  .pov-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .thesis-label { position: static; }

  .module-head {
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    padding: 1.75rem 0.5rem;
  }
  .module-num { font-size: 1.2rem; min-width: 1.8rem; }
  .module-title { font-size: 1.35rem; }
  .module-summary { font-size: 0.9rem; }
  .module-body-inner { padding: 0 0.5rem 2.5rem 0.5rem; }

  .essay-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .essay-arrow { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; }
  .logo-img { height: 36px; }
}
