:root {
  --ink: #17324D;
  --mineral: #DDD2BD;
  --paper: #F7F5EF;
  --paper-2: #EFECE2;
  --ink-70: rgba(23, 50, 77, .70);
  --ink-45: rgba(23, 50, 77, .45);
  --ink-18: rgba(23, 50, 77, .18);
  --ink-12: rgba(23, 50, 77, .12);
  --shadow: 0 24px 70px rgba(23, 50, 77, .16);
  --sans: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --transition: 320ms cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --ink: #F7F5EF;
  --mineral: #DDD2BD;
  --paper: #17324D;
  --paper-2: #102840;
  --ink-70: rgba(247, 245, 239, .74);
  --ink-45: rgba(247, 245, 239, .52);
  --ink-18: rgba(247, 245, 239, .20);
  --ink-12: rgba(247, 245, 239, .13);
  --shadow: 0 24px 70px rgba(4, 15, 27, .32);
}

html, body { min-height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  transition: background var(--transition), color var(--transition);
}

body::before { content: none; }

a:focus-visible,
button:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus { left: 10px; }

.page {
  width: min(100%, 1296px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 48px;
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 74px;
  gap: 28px;
  border-bottom: 1px solid var(--ink-12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -.05em;
}

.brand-copy { display: flex; align-items: center; gap: 12px; }

.brand-desc {
  padding-left: 12px;
  border-left: 1px solid var(--ink-18);
  color: var(--ink-45);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links > a:not(.btn) {
  color: var(--ink-70);
  font-size: 14px;
  text-decoration: none;
}

.nav-links > a:not(.btn):hover { color: var(--ink); }

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--ink-18);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, top 180ms ease, bottom 180ms ease, background 180ms ease;
}

.nav-burger span { position: relative; }
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { bottom: -6px; }

.nav-check:checked + .nav-burger span { background: transparent; }
.nav-check:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-check:checked + .nav-burger span::after { bottom: 0; transform: rotate(-45deg); }

.theme-toggle {
  gap: 8px;
  padding: 8px 11px;
  border-color: var(--ink-18);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.theme-toggle .knob {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

html[data-theme="dark"] .theme-toggle .knob { background: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink-18); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
  min-height: calc(100svh - 176px);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: left;
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin-bottom: 20px;
  color: var(--ink-45);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.name {
  max-width: 11ch;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(44px, 6.2vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.name .accent {
  color: inherit;
  font-style: normal;
  background: linear-gradient(var(--mineral), var(--mineral)) no-repeat 0 94% / 100% 24%;
}

.role {
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about {
  max-width: 48ch;
  margin-top: 22px;
  color: var(--ink-70);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

.about em { color: var(--ink); font-family: var(--sans); font-style: normal; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.qualify {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--ink-45);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.hero-art { position: relative; min-height: 500px; }

.portrait-window {
  position: absolute;
  inset: 16px 42px 32px 0;
  overflow: hidden;
  border: 1px solid var(--ink-18);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.window-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 17px;
  border-bottom: 1px solid var(--ink-12);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.window-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-18); }
.window-title { margin-left: 3px; color: var(--ink-70); font-size: 13px; font-weight: 600; }
.window-meta { margin-left: auto; color: var(--ink-45); font-family: var(--mono); font-size: 10px; }

.evidence-painting {
  position: absolute;
  inset: 52px 0 0;
  width: 100%;
  height: calc(100% - 52px);
  object-fit: cover;
  object-position: center;
  opacity: .48;
  filter: saturate(.78) contrast(.94);
}

html[data-theme="dark"] .evidence-painting {
  opacity: .28;
  filter: saturate(.65) brightness(.72);
}

.portrait {
  position: absolute;
  z-index: 2;
  inset: 52px 0 0;
  width: auto;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.portrait::before {
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, color-mix(in srgb, var(--mineral) 52%, transparent), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 38%, transparent), transparent 58%);
}

.p-inner { inset: 16px 16px 0; }
.portrait img { object-position: center bottom; }

.proof-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(276px, 62%);
  padding: 20px 22px;
  border: 1px solid var(--ink-18);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 18px 48px rgba(23, 50, 77, .18);
  backdrop-filter: blur(8px);
}

.proof-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-45);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.proof-card strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.proof-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 14px; }
.proof-line span { color: var(--ink-70); font-family: var(--mono); font-size: 10px; }
.proof-line i { height: 1px; background: var(--ink-18); }

.status {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  padding: 7px 12px;
  border-color: var(--ink-18);
  border-radius: 999px;
  background: var(--mineral);
  color: #17324D;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.status b { color: inherit; }

.footer {
  min-height: 102px;
  margin: 0 -48px;
  padding: 28px 48px;
  border-top: 1px solid var(--ink-12);
  background: var(--paper-2);
  color: var(--ink-45);
}

.footer .icons a { color: var(--ink); opacity: .68; }
.footer .icons a:hover { color: var(--ink); opacity: 1; }

@media (max-width: 980px) {
  .brand-desc { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 18px 20px;
    border-bottom: 1px solid var(--ink-12);
    background: var(--paper);
    box-shadow: 0 24px 44px rgba(23, 50, 77, .12);
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-links > a:not(.btn) {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid var(--ink-12);
    font-size: 16px;
  }
  .nav-links .theme-toggle {
    justify-content: center;
    width: 100%;
    margin-top: 14px;
  }
  .nav-links .btn { width: 100%; margin-top: 10px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 520px; }
}

@media (max-width: 640px) {
  .page { padding: 0 22px; }
  .topbar { min-height: 68px; }
  .brand-copy { display: none; }
  .nav-links { top: 68px; }
  .nav-links .btn { padding: 9px 12px; font-size: 12px; }
  .hero { gap: 44px; padding: 56px 0 72px; }
  .hero-art { min-height: 430px; }
  .portrait-window { inset: 14px 14px 26px 0; }
  .window-meta { display: none; }
  .proof-card { width: min(250px, 78%); padding: 16px 18px; }
  .footer { margin: 0 -22px; padding: 28px 22px; }
}

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