/* =========================================================
   Forward Deployed Equity
   Editorial / institutional aesthetic.
   Warm bone background, deep ink, burnt rust accent.
   ========================================================= */

:root {
  --bg:        #F2EDE3;        /* warm bone */
  --bg-deep:   #ECE5D7;        /* slightly deeper paper */
  --ink:       #11140F;        /* near-black with green undertone */
  --ink-soft:  #3A3A33;
  --muted:     #6B6358;
  --rule:      #1d2018;
  --rule-soft: #c9c0ad;
  --accent:    #B33A1F;        /* burnt rust */
  --accent-deep:#7A2412;
  --ok:        #2F5D3A;
  --paper-2:   #E7DFCE;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans:    'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med:  420ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film-grain on the page for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(0,0,0,.7) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.5) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

/* ====== Labels (mono) ====== */
.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
}
.label--muted { color: var(--muted); }

/* ====== Masthead ====== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.masthead.is-scrolled {
  border-bottom-color: var(--rule-soft);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.wordmark__mark {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  color: var(--accent);
}
.wordmark__mark svg { transition: transform var(--t-med); }
.wordmark:hover .wordmark__mark svg { transform: rotate(45deg); }

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  font-variation-settings: "opsz" 14, "SOFT" 30;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

.nav__cta {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(64px, 10vw, 120px);
  overflow: hidden;
}

.hero::after {
  /* big faint serif F as background flourish */
  content: "FDE";
  position: absolute;
  right: -3vw;
  bottom: -7vw;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(280px, 42vw, 620px);
  line-height: .85;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(46px, 8.4vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 13ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero__line { display: block; }
.hero__line--2 { padding-left: clamp(20px, 6vw, 90px); }
.hero__line--3 { padding-left: clamp(0px, 2vw, 30px); }
.hero__line--4 { padding-left: clamp(10px, 4vw, 60px); }
.hero__line--5 { padding-left: clamp(40px, 10vw, 160px); }
.amp {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero__lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0;
  margin-left: auto;
  margin-right: 0;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "meta meta"
      "title title"
      "lede rail";
    column-gap: clamp(40px, 5vw, 80px);
  }
  .hero__meta  { grid-area: meta; }
  .hero__title { grid-area: title; }
  .hero__lede  { grid-area: lede; }
  .hero__rail  { grid-area: rail; }
}

.hero__rail {
  border-top: 1px solid var(--rule-soft);
  padding-top: 22px;
  display: grid;
  gap: 14px;
}
.rail-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.rail-item__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent);
}

/* ====== Marquee band ====== */
.band {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}
.band__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 80;
  animation: scroll-x 38s linear infinite;
}
.band__track span:nth-child(even) { color: var(--accent); font-style: normal; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .band__track { animation: none; }
}

/* ====== Sections ====== */
.section {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
  position: relative;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: 200px 1fr;
    column-gap: clamp(40px, 6vw, 100px);
  }
}
.section__side {
  position: relative;
}
@media (min-width: 900px) {
  .section__side { position: sticky; top: 110px; align-self: start; }
}

.display {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-variation-settings: "opsz" 120, "SOFT" 50;
  max-width: 22ch;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 120, "SOFT" 100;
}
.display .muted { color: var(--muted); }

.prose p {
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }

.two-col {
  column-gap: 56px;
  max-width: 920px;
}
@media (min-width: 900px) {
  .two-col { column-count: 2; column-fill: balance; }
  .two-col p { break-inside: avoid; }
}

/* ====== Model section ====== */
.section--thesis { border-top: 1px solid var(--rule-soft); }
.section--model  { background: var(--bg-deep); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }

.model {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .model { grid-template-columns: 1.05fr 1fr; }
}

.hub { color: var(--ink); width: 100%; height: auto; }
.hub__center circle {
  fill: var(--ink);
}
.hub__center-label {
  font-family: var(--font-display);
  font-size: 34px;
  fill: var(--bg);
  font-weight: 400;
  font-style: italic;
}
.hub__center-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--paper-2);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hub__node circle {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1;
}
.hub__node[data-node="1"] circle {
  fill: var(--accent);
  stroke: var(--accent-deep);
}
.hub__node[data-node="1"] .hub__node-name { fill: var(--bg); }
.hub__node[data-node="1"] .hub__node-sub  { fill: var(--paper-2); }
.hub__node--ghost circle { stroke-dasharray: 3 3; opacity: .65; }
.hub__node-name {
  font-family: var(--font-display);
  font-size: 14px;
  fill: var(--ink);
  font-style: italic;
}
.hub__node-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  fill: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hub__lines { opacity: .35; }

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 26px;
}
.pillars li {
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 4px;
}
.pillars__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.pillars h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.pillars p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ====== Fit ====== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.fit-card {
  border: 1px solid var(--rule-soft);
  background: var(--bg);
  padding: 28px 28px 32px;
  border-radius: 4px;
  position: relative;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.fit-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.fit-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 18px;
}
.fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.fit-card li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.fit-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--accent);
}

.fit-card--invite {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fit-card--invite .fit-card__tag { color: var(--accent); }
.fit-card--invite p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 350;
  margin: 0 0 28px;
  color: var(--bg);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60, "SOFT" 80;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow:hover {
  gap: 14px;
  color: var(--accent);
}

/* ====== About ====== */
.section--about { border-top: 1px solid var(--rule-soft); }

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1.6fr 1fr; column-gap: 56px; }
}
.about__sign {
  margin-top: 32px !important;
  font-family: var(--font-display);
  font-style: italic;
}
.about__sign-line {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about__sign-sub {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.about__card {
  background: var(--ink);
  color: var(--bg);
  padding: 28px;
  border-radius: 4px;
  align-self: start;
  position: relative;
}
.about__card .label { color: var(--accent); margin-bottom: 16px; }
.about__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.about__card li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(242, 237, 227, .15);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.about__card li:last-child { border-bottom: 0; }
.about__card li span:last-child { color: var(--paper-2); }

/* ====== Contact ====== */
.section--contact {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  position: relative;
}
.section--contact .label { color: var(--accent); }
.section--contact::before {
  content: "✦";
  position: absolute;
  top: 80px;
  right: 8vw;
  color: var(--accent);
  font-size: 64px;
  opacity: .4;
  transform: rotate(15deg);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 1000px;
}
.contact__title {
  color: var(--bg);
  margin: 0;
  font-size: clamp(40px, 5.5vw, 84px);
  max-width: 22ch;
}
.contact__title .muted { color: color-mix(in oklab, var(--bg) 60%, transparent); }

.contact__email {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  transition: color var(--t-fast), gap var(--t-fast);
}
.contact__email:hover {
  color: var(--accent);
  gap: 28px;
}
.contact__email-arrow {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--accent);
  font-size: 0.7em;
}
.contact__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  margin: 0;
}

/* ====== Footer ====== */
.footer {
  background: var(--bg-deep);
  padding: 56px 0 36px;
  border-top: 1px solid var(--rule-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
      "brand col1 col2"
      "meta meta meta";
    column-gap: 40px;
    row-gap: 40px;
  }
  .footer__brand { grid-area: brand; }
  .footer__col:nth-of-type(2) { grid-area: col1; }
  .footer__col:nth-of-type(3) { grid-area: col2; }
  .footer__meta { grid-area: meta; }
}

.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60, "SOFT" 40;
}
.footer__tag {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
  max-width: 36ch;
}

.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 14.5px; color: var(--ink-soft); }
.footer__col a:hover { color: var(--accent); }
.footer__col .label { margin-bottom: 4px; }

.footer__meta {
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
