:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e1d3;
  --ink: #10100f;
  --graphite: #45423d;
  --muted: #716b61;
  --line: rgba(16, 16, 15, 0.1);
  --line-strong: rgba(16, 16, 15, 0.22);
  --teal: #163f3a;
  --teal-soft: #d7e2dd;
  --oxblood: #8f3835;
  --gold: #b99a46;
  --black: #080808;
  --white: #fffaf1;
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--graphite);
  font-size: 0.83rem;
  font-weight: 750;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 58px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after,
.page-hero::after,
.codex-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 61%, rgba(185, 154, 70, 0.12) 61.1%, transparent 61.4%),
    radial-gradient(circle at 76% 18%, rgba(22, 63, 58, 0.08), transparent 28rem);
  mix-blend-mode: multiply;
}

#codex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
}

.hero-inner,
.section-inner,
.footer-inner,
.page-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 54px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

h1,
h2,
h3,
.display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 930px;
  font-size: 4.3rem;
  line-height: 0.98;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 4.8rem;
  line-height: 1;
}

h2 {
  font-size: 3.2rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.85rem;
  line-height: 1.14;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 560px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: 20px;
  color: var(--graphite);
  font-size: 1.02rem;
}

.hero-copy::before {
  content: "";
  width: 1px;
  background: var(--gold);
}

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

.button,
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.text-button::after,
.button::after {
  content: ">";
  color: var(--gold);
}

.codex-card {
  align-self: end;
  border-left: 1px solid var(--line-strong);
  padding: 0 0 0 22px;
  color: var(--graphite);
}

.codex-card .label {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.codex-card ol {
  margin: 0;
  padding: 0 0 0 18px;
}

.codex-card li {
  margin: 10px 0;
}

.black-band {
  background: var(--black);
  color: var(--white);
}

.black-band .section-inner {
  padding: 128px 0;
}

.statement {
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  line-height: 1.16;
}

.statement em {
  color: #c97168;
  font-style: italic;
}

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  position: relative;
  z-index: 2;
  padding: 108px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 58px;
}

.section-head p {
  color: var(--graphite);
  font-size: 1.04rem;
}

.pillars,
.article-grid,
.metric-grid,
.split-grid,
.contact-grid,
.project-grid {
  display: grid;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar,
.article-card,
.metric,
.split-panel,
.contact-panel,
.project-card {
  min-width: 0;
  background: rgba(244, 240, 232, 0.9);
  padding: 32px;
}

.pillar p,
.article-card p,
.split-panel p,
.contact-panel p,
.metric p,
.project-card p,
.project-facts dd {
  color: var(--graphite);
}

.pillar .num,
.article-card .num,
.metric .num {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1;
}

.framework {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 56px;
  align-items: center;
}

.decision-map {
  min-height: 460px;
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 16, 15, 0.08) 1px, transparent 1px),
    rgba(255, 250, 241, 0.38);
  background-size: 32px 32px;
  overflow: hidden;
}

.decision-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(185, 154, 70, 0.5);
  transform: rotate(-8deg);
}

.decision-node {
  position: absolute;
  width: 132px;
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.decision-node:nth-child(1) { left: 7%; top: 12%; }
.decision-node:nth-child(2) { right: 10%; top: 18%; }
.decision-node:nth-child(3) { left: 20%; bottom: 18%; }
.decision-node:nth-child(4) { right: 11%; bottom: 12%; background: var(--black); color: var(--white); }

.decision-line {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.line-a { left: 22%; top: 28%; width: 46%; transform: rotate(8deg); }
.line-b { left: 27%; top: 48%; width: 41%; transform: rotate(-28deg); }
.line-c { left: 31%; bottom: 28%; width: 42%; transform: rotate(14deg); }

.framework-list {
  display: grid;
  gap: 22px;
}

.framework-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.framework-item span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.framework-item p {
  color: var(--graphite);
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin-bottom: 18px;
}

.article-card .text-button {
  margin-top: auto;
  align-self: flex-start;
}

.human-layer {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(300px, 0.35fr);
  gap: 42px;
  align-items: center;
}

.quote-mark {
  border-left: 1px solid var(--gold);
  padding-left: 28px;
  color: var(--graphite);
  font-size: 1.15rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 0 76px;
}

.page-hero p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--graphite);
  font-size: 1.12rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-panel h3 {
  margin-bottom: 18px;
}

.split-panel ul,
.contact-panel ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--graphite);
}

.split-panel li,
.contact-panel li {
  margin: 10px 0;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row time {
  color: var(--gold);
  font-weight: 850;
}

.timeline-row p {
  color: var(--graphite);
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.project-grid {
  grid-template-columns: 1fr;
}

.project-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.project-logo-shell {
  min-height: 148px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.86), rgba(215, 226, 221, 0.5)),
    var(--paper);
  padding: 28px;
}

.project-logo {
  width: min(100%, 210px);
  max-height: 64px;
  object-fit: contain;
}

.zeroideas-logo {
  width: min(100%, 220px);
}

.porsche-logo {
  width: min(100%, 230px);
}

.project-kicker {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-body h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
}

.project-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  padding: 46px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.86rem;
}

.footer-inner a {
  color: var(--white);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.2rem;
  }

  .page-hero h1 {
    font-size: 3.8rem;
  }

  .hero-inner,
  .section-head,
  .framework,
  .human-layer,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .codex-card {
    align-self: start;
    max-width: 560px;
  }

  .pillars,
  .article-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper);
  }

  .nav-links a {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }

  body.menu-open .nav-links {
    display: grid;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 28px 28px;
  }

  .nav-shell,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .page-hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper);
  }

  .nav-links a {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }

  body.menu-open .nav-links {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 46px 0 42px;
    gap: 34px;
  }

  h1 {
    font-size: 2.82rem;
    line-height: 1.02;
  }

  .page-hero h1,
  h2 {
    font-size: 2.65rem;
  }

  .statement {
    font-size: 2.1rem;
  }

  .black-band .section-inner,
  .section-inner {
    padding: 72px 0;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 0.96rem;
  }

  .hero-copy::before {
    width: 72px;
    height: 1px;
  }

  .hero .codex-card {
    display: none;
  }

  .pillar,
  .article-card,
  .metric,
  .split-panel,
  .contact-panel,
  .project-card {
    padding: 24px;
  }

  .metric-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .project-logo-shell {
    min-height: 118px;
    padding: 22px;
  }

  .project-body h2 {
    font-size: 2.18rem;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .decision-map {
    min-height: 360px;
  }

  .decision-node {
    width: 112px;
    min-height: 64px;
    font-size: 0.66rem;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
