:root {
  --paper: #f4f0ea;
  --paper-deep: #ebe6dc;
  --ink: #25211c;
  --muted: #756f66;
  --faint: #ddd4c7;
  --gold: #b99b58;
  --gold-soft: #d5c39a;
  --line: #ded6ca;
  --strategy: #9a6f45;
  --ftse: #6f6f6f;
  --sx5e: #8a8a8a;
  --sp: #555555;
  --nasdaq: #3f3f3f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 200;
  line-height: 1.76;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

em {
  color: var(--ink);
  font-weight: 200;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 15px 38px;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition:
    border-color 220ms ease,
    background-color 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
}

.site-nav a {
  padding: 18px 4px;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.language-toggle {
  display: inline-flex;
  min-width: 70px;
  min-height: 28px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
}

.language-toggle span {
  opacity: 0.42;
  transition: opacity 180ms ease;
}

.language-toggle span[aria-hidden="true"] {
  color: var(--gold);
  opacity: 0.56;
}

.language-toggle span.is-active {
  opacity: 1;
}

.section {
  padding-right: 18px;
  padding-left: 18px;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 68px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 72px;
  padding-bottom: 82px;
  text-align: center;
}

.hero > * {
  grid-column: 1;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.38em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 5.1vw, 5rem);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.short-rule {
  width: 34px;
  height: 1px;
  margin: 30px auto 28px;
  background: var(--gold-soft);
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
}

.hero::after {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: var(--gold-soft);
  content: "";
  transform: translateX(-50%);
}

.strategy-section {
  padding-top: 96px;
  padding-bottom: 76px;
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(90px, 150px) minmax(0, 650px);
  gap: 0 20px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.section-index {
  color: var(--faint);
  font-style: italic;
  text-align: left;
}

.section-index span {
  display: block;
  font-size: 53px;
  font-weight: 300;
  line-height: 1;
}

.section-index i {
  display: none;
}

.section-copy h2,
.results-section h2,
.about-copy h2 {
  margin: 0 0 31px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-copy p,
.about-copy p {
  margin: 0 0 27px;
  color: var(--ink);
}

.request-link {
  display: table;
  min-width: 190px;
  margin: 56px auto 0;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.38em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.request-link:hover,
.request-link:focus-visible {
  background: var(--gold);
  color: var(--paper);
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  color: var(--gold);
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.divider span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.results-section {
  margin-top: 78px;
  padding-top: 88px;
  padding-bottom: 84px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.results-section h2 {
  margin-bottom: 22px;
}

.period {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  width: min(820px, 100%);
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.chart-legend-swatch {
  display: inline-block;
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--muted);
}

.chart-legend-swatch[data-series="strategy"] {
  height: 3px;
  background: var(--strategy);
}

.chart-legend-swatch[data-series="sp"] {
  background: repeating-linear-gradient(
    to right,
    var(--sp) 0 8px,
    transparent 8px 12px,
    var(--sp) 12px 14px,
    transparent 14px 18px
  );
}

.chart-legend-swatch[data-series="ftse"] {
  background: repeating-linear-gradient(to right, var(--ftse) 0 6px, transparent 6px 10px);
}

.chart-legend-swatch[data-series="sx5e"] {
  background: repeating-linear-gradient(to right, var(--sx5e) 0 2px, transparent 2px 7px);
}

.chart-legend-swatch[data-series="nasdaq"] {
  background: repeating-linear-gradient(to right, var(--nasdaq) 0 12px, transparent 12px 17px);
}

.chart-wrap {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
}

#performance-chart {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 190px;
  padding: 13px 15px;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, calc(-100% - 16px));
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-style: italic;
}

.chart-tooltip b {
  font-weight: 300;
}

.results-table-wrap {
  width: min(720px, 100%);
  margin: 34px auto 0;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--paper);
}

.results-table caption {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  caption-side: top;
}

.results-table thead th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.results-table thead th:first-child,
.results-table tbody th {
  text-align: left;
}

.results-table thead th:not(:first-child),
.results-table tbody td {
  text-align: right;
}

.results-table tbody th,
.results-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.results-table tbody th {
  font-weight: 300;
  color: var(--ink);
}

.results-table tbody td {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.results-table tbody tr[data-series="strategy"] td {
  color: var(--strategy);
}

.results-table-series {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.about-section {
  padding-top: 86px;
  padding-bottom: 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 560px);
  gap: 54px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.portrait-card .gold {
  margin-top: 2px;
  color: var(--gold);
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  list-style: none;
}

.contact-list li {
  position: relative;
  padding-left: 17px;
}

.contact-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "•";
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--ink);
}

.about-copy .eyebrow {
  margin-bottom: 24px;
}

.about-copy .request-link {
  margin-top: 50px;
}

.site-footer {
  padding: 0 18px 18px;
  border-top: 1px solid var(--gold);
  background: var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer .divider {
  margin-top: 36px;
  margin-bottom: 22px;
}

.site-footer p {
  max-width: 710px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
}

.site-footer .divider::before,
.site-footer .divider::after {
  background: var(--gold);
}

.site-footer .divider span {
  background: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms ease,
    transform 800ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 56px;
    padding: 12px 24px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .site-nav a {
    display: none;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 74px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.1rem);
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-shell {
    grid-template-columns: 1fr;
  }

  .section-index {
    margin-bottom: 22px;
  }

  .section-index span {
    font-size: 42px;
  }

  .strategy-section,
  .results-section,
  .about-section {
    padding-top: 66px;
    padding-bottom: 62px;
  }

  .chart-legend {
    gap: 10px 18px;
    margin-bottom: 24px;
  }

  .results-table-wrap {
    margin-top: 28px;
  }

  .results-table thead th,
  .results-table tbody th,
  .results-table tbody td {
    padding: 12px 14px;
  }

  .results-table-series {
    gap: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .portrait-card {
    max-width: 270px;
    margin: 0 auto;
  }

  .chart-tooltip {
    min-width: 170px;
    transform: translate(-50%, calc(-100% - 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

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