:root {
  --ink: #080808;
  --coal: #111111;
  --graphite: #262626;
  --stone: #6b6b6b;
  --silver: #d4d4d4;
  --paper: #ffffff;
  --ivory: #ffffff;
  --copper: #C00000;
  --line: rgba(8, 8, 8, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 42px;
  color: var(--ivory);
  transition: background 320ms var(--ease), color 320ms var(--ease), border 320ms var(--ease);
}

.site-header::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
  content: "";
}

.site-header.menu-open::after {
  opacity: 1;
  pointer-events: auto;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 230px;
}

.brand-mark {
  display: block;
  width: 100px;
  height: 100px;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: brightness(0) invert(1);
  transition: filter 320ms var(--ease);
}

.site-header.is-scrolled .brand-mark {
  filter: brightness(0);
}

.brand-copy {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  text-transform: uppercase;
}

.primary-nav a,
.investor-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.primary-nav a {
  position: relative;
  padding: 30px 0;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 1px;
  background: #C00000;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.investor-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding-top: 120px;
  overflow: hidden;
  background: var(--coal);
  color: var(--ivory);
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  opacity: 0.92;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02) 46%, rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 112px;
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--silver);
}

.eyebrow.dark {
  color: var(--copper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  text-wrap: pretty;
}

h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(64px, 8vw, 124px);
}

h2 {
  font-size: clamp(46px, 5.8vw, 86px);
}

h3 {
  font-size: 24px;
  line-height: 1.08;
}

p {
  line-height: 1.65;
}

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--ivory);
  color: var(--ink);
}

.button-ghost {
  color: var(--ivory);
}

.button-dark {
  background: #C00000;
  color: var(--ivory);
}

.hero-ticker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-light);
}

.hero-ticker span {
  padding: 22px 18px;
  border-right: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.thesis-grid,
.platform-layout,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 72px;
  align-items: start;
}

.thesis-copy {
  padding-top: 14px;
  color: var(--graphite);
  font-size: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-row article {
  min-height: 182px;
  padding: 28px 30px 32px 0;
  border-right: 1px solid var(--line);
}

.metric-row article + article {
  padding-left: 30px;
}

.metric-row article:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 0.9;
  color: #C00000;
}

.metric-row span {
  display: block;
  max-width: 280px;
  color: var(--stone);
  line-height: 1.5;
}

.dark-band,
.insights {
  background: var(--ink);
  color: var(--ivory);
}

.dark-section {
  padding-top: 118px;
  padding-bottom: 124px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.54fr);
  gap: 58px;
  align-items: end;
  margin-bottom: 64px;
}

.split-heading p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.strategy-card {
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background 260ms var(--ease), transform 260ms var(--ease);
}

.strategy-card:hover {
  background: rgba(255, 253, 247, 0.06);
  transform: translateY(-4px);
}

.strategy-card span {
  display: block;
  margin-bottom: 88px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 700;
}

.strategy-card h3 {
  min-height: 58px;
}

.strategy-card p {
  color: rgba(255, 255, 255, 0.65);
}

.platform-layout h2 {
  margin-bottom: 28px;
}

.platform-layout > div:first-child p {
  max-width: 570px;
  color: var(--stone);
  font-size: 19px;
}

.platform-stack {
  border-top: 1px solid var(--line);
}

.platform-stack article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.platform-stack h3 {
  margin-bottom: 12px;
}

.platform-stack p {
  color: var(--stone);
}

.operating-system {
  padding-top: 0;
}

.operating-system h2 {
  max-width: 900px;
  margin-bottom: 64px;
}

.system-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.system-rail article {
  position: relative;
  padding: 34px 28px 0 0;
}

.system-rail article::before {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 38px;
  background: #C00000;
  content: "";
}

.system-rail span {
  display: block;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
}

.system-rail p {
  color: var(--stone);
}

.insights-inner .split-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.insight-grid article {
  min-height: 310px;
  padding: 32px;
  background: var(--ink);
}

.insight-grid h3 {
  margin-bottom: 54px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.insight-grid a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact {
  padding-bottom: 116px;
}

.contact h2 {
  font-size: clamp(42px, 5vw, 76px);
}

.contact-form {
  display: grid;
  gap: 22px;
  padding-top: 10px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  padding: 13px 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #C00000;
}

.contact-form .button {
  justify-self: start;
  margin-top: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  padding: 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .primary-nav,
  .investor-link {
    display: none;
  }

  .menu-button {
    grid-row: 1;
    grid-column: 2;
  }

  .site-header.menu-open {
    grid-template-columns: 1fr auto;
    background: var(--ink);
    color: var(--ivory);
  }

  .site-header.menu-open .primary-nav {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0;
    border-top: 1px solid var(--line-light);
    animation: menuSlideIn 320ms var(--ease) both;
  }

  .site-header.menu-open .primary-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-light);
    opacity: 0;
    animation: menuItemIn 280ms var(--ease) forwards;
  }

  .site-header.menu-open .primary-nav a:nth-child(1) { animation-delay: 60ms; }
  .site-header.menu-open .primary-nav a:nth-child(2) { animation-delay: 110ms; }
  .site-header.menu-open .primary-nav a:nth-child(3) { animation-delay: 160ms; }
  .site-header.menu-open .primary-nav a:nth-child(4) { animation-delay: 210ms; }
  .site-header.menu-open .primary-nav a:nth-child(5) { animation-delay: 260ms; }

  .site-header.menu-open .primary-nav a::after {
    display: none;
  }

  .site-header.menu-open .investor-link {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 18px 0;
    border-bottom: none;
    opacity: 0;
    animation: menuItemIn 280ms var(--ease) 310ms forwards;
  }

  .site-header.menu-open .menu-button {
    border-color: var(--ivory);
    color: var(--ivory);
  }

  @keyframes menuSlideIn {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes menuItemIn {
    from {
      opacity: 0;
      transform: translateX(-16px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .menu-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 280ms var(--ease), opacity 200ms var(--ease);
    transform-origin: center;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .site-header.menu-open .menu-button span:first-child {
    transform: rotate(45deg);
  }

  .site-header.menu-open .menu-button span:last-child {
    transform: rotate(-45deg);
  }

  .hero-content {
    margin-bottom: 82px;
  }

  .hero-ticker,
  .metric-row,
  .strategy-grid,
  .system-rail,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .thesis-grid,
  .platform-layout,
  .contact,
  .split-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .strategy-card {
    min-height: 290px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 11vw, 54px);
    line-height: 1;
  }

  .hero-content,
  .section {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 90px;
  }

  .hero-content {
    margin-bottom: 62px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-ticker,
  .metric-row,
  .strategy-grid,
  .system-rail,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-ticker span {
    text-align: left;
  }

  .section {
    padding: 78px 0;
  }

  .metric-row article,
  .metric-row article + article {
    min-height: auto;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-row article:last-child {
    border-bottom: 0;
  }

  .strategy-card span {
    margin-bottom: 54px;
  }

  .system-rail article {
    padding-right: 0;
  }

  .site-footer {
    padding: 26px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
