:root {
  --paper: #f2eee4;
  --paper-deep: #e7e0d2;
  --ink: #18221c;
  --ink-soft: #354238;
  --muted: #566057;
  --line: rgba(24, 34, 28, 0.16);
  --lime: #c8f56d;
  --lime-deep: #a5da42;
  --orange: #f06c3e;
  --orange-ink: #b84424;
  --blue: #9dc6ff;
  --white: #fffdf8;
  --max-width: 1320px;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(30, 38, 31, 0.12);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid #0b120d;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 78px;
  padding: 16px max(28px, calc((100vw - var(--max-width)) / 2));
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    min-height 200ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  border-color: var(--line);
  background: rgba(242, 238, 228, 0.9);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--lime);
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 45px);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav > a:not(.nav-contact) {
  position: relative;
}

.site-nav > a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-contact:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 56px), var(--max-width));
  min-height: min(940px, 100vh);
  padding: 132px 0 42px;
  margin: 0 auto;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  left: -16%;
  width: 45vw;
  height: 45vw;
  min-width: 440px;
  min-height: 440px;
  content: "";
  opacity: 0.35;
  border: 1px solid rgba(24, 34, 28, 0.1);
  border-radius: 50%;
}

.hero-copy {
  z-index: 2;
  grid-column: 1 / span 7;
  padding: 20px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 7.8vw, 8.7rem);
  font-weight: 500;
  letter-spacing: -0.066em;
  line-height: 0.81;
}

.hero h1 em {
  display: block;
  margin-top: 0.16em;
  color: var(--orange-ink);
  font-weight: 500;
}

.hero-intro {
  max-width: 630px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 21px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 760;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  color: var(--ink);
  background: var(--lime);
}

.button-quiet:hover {
  background: var(--white);
}

.hero-social {
  display: flex;
  margin-top: 35px;
  gap: 25px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-social a,
.text-link,
.contact-links a,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-social a:hover,
.text-link:hover,
.contact-links a:hover,
.site-footer a:hover {
  text-decoration-line: underline;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  grid-column: 8 / -1;
  align-self: center;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.84;
  background: #cdd3c9;
  border-radius: 180px 180px 18px 18px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  border-radius: inherit;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
  filter: saturate(0.9) contrast(1.02);
}

.portrait-label {
  position: absolute;
  right: 20px;
  bottom: 22px;
  left: 20px;
  display: flex;
  padding-top: 12px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.availability-card {
  position: absolute;
  right: -26px;
  bottom: 68px;
  display: flex;
  min-width: 250px;
  padding: 16px 18px;
  align-items: flex-start;
  gap: 11px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(12, 18, 14, 0.25);
}

.availability-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.availability-card strong {
  font-size: 0.77rem;
}

.availability-dot,
.project-status i,
.ops-status-row i {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 245, 109, 0.12);
}

.availability-dot {
  margin-top: 5px;
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 9px rgba(200, 245, 109, 0.04);
  }
}

.portrait-index {
  position: absolute;
  top: 28%;
  right: -75px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: rotate(90deg);
}

.proof-strip {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  padding: 24px 0 0;
  align-self: end;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 26px;
}

.proof-strip > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.proof-strip strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.proof-strip span {
  max-width: 140px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.proof-strip > p {
  margin: 7px 0 0;
  color: var(--orange-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}

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

.work-section {
  padding: 150px 0;
}

.section-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
  gap: 70px;
  align-items: end;
}

.section-heading h2,
.experience-heading h2,
.about-copy h2,
.contact-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.filter-row {
  display: flex;
  padding: 16px 0 28px;
  gap: 8px;
  border-top: 1px solid var(--line);
}

html:not(.js-enabled) .filter-row {
  display: none;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  overflow: hidden;
  min-height: 700px;
  padding: 18px;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(24, 34, 28, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    opacity 220ms ease;
}

.project-card.has-link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.project-card.is-hidden {
  display: none;
}

.project-featured,
.project-wide {
  min-height: 640px;
  grid-column: 1 / -1;
  flex-direction: row;
}

.project-featured {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.project-copy,
.project-visual {
  flex: 1 1 50%;
}

.project-copy {
  display: flex;
  padding: clamp(23px, 4vw, 52px);
  flex-direction: column;
  align-items: flex-start;
}

.project-meta {
  display: flex;
  width: 100%;
  margin-bottom: auto;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-meta > span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-size: 0.59rem;
}

.project-featured .project-meta {
  color: rgba(242, 238, 228, 0.56);
}

.project-status {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  color: var(--lime);
}

.project-status i {
  width: 6px;
  height: 6px;
}

.project-stage {
  padding: 5px 9px;
  margin-left: auto;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
}

.project-card h3 {
  margin: 75px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.project-card:not(.project-featured):not(.project-wide) h3 {
  margin-top: 62px;
  font-size: clamp(2.5rem, 3.6vw, 4.2rem);
}

.project-lede {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.97rem;
}

.project-featured .project-lede {
  color: rgba(242, 238, 228, 0.73);
}

.project-impact {
  display: flex;
  width: 100%;
  padding: 21px 0;
  margin: 0 0 23px;
  gap: 10px;
  border-top: 1px solid rgba(242, 238, 228, 0.16);
  border-bottom: 1px solid rgba(242, 238, 228, 0.16);
  list-style: none;
}

.project-impact li {
  min-width: 0;
  flex: 1 1 0;
}

.project-impact strong,
.project-impact span {
  display: block;
}

.project-impact strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.project-impact span {
  max-width: 110px;
  color: rgba(242, 238, 228, 0.55);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-list span {
  padding: 6px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 720;
}

.project-featured .tag-list span {
  color: rgba(242, 238, 228, 0.72);
  border-color: rgba(242, 238, 228, 0.2);
}

.project-notes {
  width: 100%;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-featured .project-notes {
  border-color: rgba(242, 238, 228, 0.16);
}

.project-notes summary {
  position: relative;
  padding: 13px 28px 13px 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 780;
  list-style: none;
}

.project-notes summary::-webkit-details-marker {
  display: none;
}

.project-notes summary::after {
  position: absolute;
  top: 11px;
  right: 1px;
  content: "+";
  font-size: 1rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.project-notes[open] summary::after {
  transform: rotate(45deg);
}

.project-notes p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.65;
}

.project-featured .project-notes p {
  color: rgba(242, 238, 228, 0.65);
}

.project-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 23px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.project-featured .text-link {
  color: var(--lime);
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: clamp(25px, 4vw, 50px);
  border-radius: 14px;
}

.ops-visual {
  display: flex;
  margin: 12px;
  flex-direction: column;
  color: var(--ink);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(24, 34, 28, 0.12);
}

.ops-visual::before {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 310px;
  height: 310px;
  content: "";
  border: 1px solid rgba(24, 34, 28, 0.16);
  border-radius: 50%;
}

.terminal-bar {
  display: flex;
  padding-bottom: 17px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(24, 34, 28, 0.2);
}

.terminal-bar span {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.35;
}

.terminal-bar b {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 600;
}

.ops-status-row {
  display: grid;
  padding: 36px 0 25px;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ops-status-row > div {
  padding: 16px;
  border: 1px solid rgba(24, 34, 28, 0.2);
  border-radius: 10px;
}

.ops-status-row span,
.ops-status-row strong {
  display: block;
}

.ops-status-row span {
  margin-bottom: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.59rem;
  text-transform: uppercase;
}

.ops-status-row strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}

.ops-status-row i {
  background: var(--ink);
  box-shadow: none;
}

.signal-chart {
  display: flex;
  height: 125px;
  padding: 12px 12px 0;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  border-right: 1px solid rgba(24, 34, 28, 0.15);
  border-bottom: 1px solid rgba(24, 34, 28, 0.22);
  border-left: 1px solid rgba(24, 34, 28, 0.15);
}

.signal-chart span {
  width: 100%;
  height: var(--h);
  background: var(--ink);
  border-radius: 3px 3px 0 0;
  opacity: 0.82;
}

.signal-chart span:nth-child(1) { --h: 34%; }
.signal-chart span:nth-child(2) { --h: 48%; }
.signal-chart span:nth-child(3) { --h: 43%; }
.signal-chart span:nth-child(4) { --h: 62%; }
.signal-chart span:nth-child(5) { --h: 58%; }
.signal-chart span:nth-child(6) { --h: 74%; }
.signal-chart span:nth-child(7) { --h: 69%; }
.signal-chart span:nth-child(8) { --h: 84%; }
.signal-chart span:nth-child(9) { --h: 72%; }
.signal-chart span:nth-child(10) { --h: 91%; }
.signal-chart span:nth-child(11) { --h: 78%; }
.signal-chart span:nth-child(12) { --h: 87%; }

.ops-pipeline {
  display: flex;
  padding: 21px 0;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-pipeline span {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.ops-stack {
  display: grid;
  margin-top: auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.ops-stack span {
  padding-top: 9px;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  font-size: 0.53rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.visual-label {
  margin: 0 0 25px;
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-visual {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  color: var(--paper);
  background: #295b79;
}

.accuracy-row {
  display: grid;
  padding: 15px 0;
  grid-template-columns: 78px 1fr 58px;
  gap: 11px;
  align-items: center;
}

.accuracy-row > span,
.accuracy-row strong {
  font-size: 0.68rem;
  font-weight: 800;
}

.accuracy-row strong {
  text-align: right;
}

.accuracy-row > div {
  overflow: hidden;
  height: 9px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.accuracy-row i {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
}

.regression-score i { --score: 87.3%; }
.knn-score i { --score: 76.6%; }

.data-finding {
  padding: 22px;
  margin: auto 0 0;
  color: rgba(242, 238, 228, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}

.data-finding span {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-card .project-status {
  color: #4f711b;
}

.market-visual {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  color: var(--paper);
  background:
    radial-gradient(circle at 92% 5%, rgba(226, 184, 92, 0.16), transparent 34%),
    #111a14;
}

.market-visual::before {
  position: absolute;
  top: -90px;
  right: -75px;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid rgba(226, 184, 92, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(226, 184, 92, 0.035),
    0 0 0 76px rgba(226, 184, 92, 0.025);
}

.market-visual > * {
  position: relative;
}

.market-topline,
.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-topline {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(242, 238, 228, 0.16);
}

.market-topline span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}

.market-topline i {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 245, 109, 0.1);
}

.market-topline b {
  color: rgba(242, 238, 228, 0.62);
}

.market-metrics {
  display: grid;
  padding: 17px 0 11px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.market-metrics > div {
  display: grid;
  padding: 13px;
  border: 1px solid rgba(242, 238, 228, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  grid-template-columns: 1fr auto;
  align-items: end;
}

.market-metrics small,
.market-metrics span {
  color: rgba(242, 238, 228, 0.48);
  font-size: 0.48rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-metrics small {
  grid-column: 1 / -1;
}

.market-metrics strong {
  margin-top: 4px;
  color: #e2b85c;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.market-metrics span {
  text-align: right;
}

.market-equation {
  display: flex;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: rgba(242, 238, 228, 0.61);
  border: 1px solid rgba(226, 184, 92, 0.2);
  border-radius: 8px;
  background: rgba(226, 184, 92, 0.055);
  font-size: 0.58rem;
}

.market-equation b {
  color: rgba(242, 238, 228, 0.34);
  font-weight: 500;
}

.market-equation strong {
  color: var(--lime);
}

.market-board {
  margin-top: 11px;
}

.market-board-head,
.market-board-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 78px 70px;
  gap: 8px;
  align-items: center;
}

.market-board-head {
  padding: 0 7px 6px;
  color: rgba(242, 238, 228, 0.38);
  font-size: 0.43rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.market-board-head span:not(:first-child),
.market-board-row > strong,
.market-board-row > b {
  text-align: right;
}

.market-board-row {
  padding: 8px 7px;
  border-top: 1px solid rgba(242, 238, 228, 0.09);
  font-size: 0.55rem;
}

.market-board-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.market-board-row i {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: #201b10;
  background: #e2b85c;
  border-radius: 6px;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 850;
}

.market-board-row > strong {
  color: var(--lime);
  font-weight: 780;
}

.market-board-row > b {
  color: rgba(242, 238, 228, 0.63);
  font-weight: 680;
}

.market-board-row.market-loss > strong {
  color: #ff9b82;
}

.market-footer {
  padding-top: 12px;
  margin-top: auto;
  color: rgba(242, 238, 228, 0.45);
  border-top: 1px solid rgba(242, 238, 228, 0.13);
  font-size: 0.47rem;
}

.market-footer span::before {
  margin-right: 6px;
  color: var(--lime);
  content: "✓";
}

.project-wide {
  min-height: 560px;
  background: var(--paper-deep);
}

.event-card {
  background: #dfe8dd;
}

.event-visual {
  display: flex;
  margin: 12px;
  flex-direction: column;
  color: var(--paper);
  background: #21433e;
}

.event-topline {
  display: flex;
  padding-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 238, 228, 0.2);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.event-topline span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
}

.event-topline i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}

.event-topline b {
  color: rgba(242, 238, 228, 0.62);
  font-weight: 650;
}

.event-panels {
  display: grid;
  padding: 27px 0 19px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.event-panels > div {
  padding: 16px 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(242, 238, 228, 0.16);
  border-radius: 9px;
}

.event-panels small,
.event-panels strong,
.event-panels span {
  display: block;
}

.event-panels small {
  margin-bottom: 15px;
  color: var(--lime);
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.event-panels strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.event-panels span {
  margin-top: 3px;
  color: rgba(242, 238, 228, 0.56);
  font-size: 0.52rem;
}

.event-activity {
  padding: 8px 16px;
  background: var(--paper);
  border-radius: 10px;
}

.event-activity p {
  display: grid;
  padding: 12px 0;
  margin: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
}

.event-activity p:last-child {
  border: 0;
}

.event-activity strong,
.event-activity small,
.event-severity {
  font-size: 0.56rem;
}

.event-activity strong {
  font-weight: 760;
}

.event-activity small {
  color: var(--muted);
}

.event-severity {
  padding: 3px 6px;
  border-radius: 999px;
  text-align: center;
  font-weight: 820;
}

.event-severity.high { color: #7b2417; background: #f7c1af; }
.event-severity.low { color: #244b66; background: #c9dff1; }
.event-severity.ready { color: #284a16; background: #d4eeae; }

.event-footer {
  display: flex;
  padding-top: 22px;
  margin-top: auto;
  justify-content: space-between;
  color: rgba(242, 238, 228, 0.55);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.additional-builds {
  display: grid;
  padding: 75px 0 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  column-gap: clamp(45px, 8vw, 120px);
}

.additional-heading {
  grid-row: 1 / span 2;
}

.additional-heading h3 {
  max-width: 410px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.additional-builds > article {
  display: grid;
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
}

.additional-index,
.additional-date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.additional-builds h4 {
  margin: -4px 0 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.additional-builds article p {
  max-width: 600px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.82rem;
}

.additional-date {
  text-align: right;
}

.project-wide .project-copy {
  order: 2;
}

.experience-section {
  padding: 150px 0;
  color: var(--paper);
  background: var(--ink);
}

.experience-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: clamp(60px, 10vw, 150px);
}

.experience-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.experience-heading .section-kicker,
.contact-section .section-kicker {
  color: var(--lime);
}

.experience-heading h2 {
  font-size: clamp(3.5rem, 5.6vw, 6rem);
}

.experience-heading > p:last-child {
  margin: 32px 0 0;
  color: rgba(242, 238, 228, 0.63);
}

.timeline-item {
  display: grid;
  padding: 40px 0 52px;
  border-top: 1px solid rgba(242, 238, 228, 0.18);
  grid-template-columns: 120px 1fr;
  gap: 28px;
}

.timeline-date {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role-line h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.role-line span {
  display: block;
  margin-top: 8px;
  color: rgba(242, 238, 228, 0.56);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-copy > p {
  margin: 25px 0;
  color: rgba(242, 238, 228, 0.7);
  font-size: 0.9rem;
}

.timeline-copy .tag-list span {
  color: rgba(242, 238, 228, 0.67);
  border-color: rgba(242, 238, 228, 0.18);
}

.about-section {
  padding: 155px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 0.82fr);
  gap: clamp(70px, 11vw, 160px);
  align-items: center;
}

.about-copy h2 {
  max-width: 760px;
}

.about-lede {
  max-width: 710px;
  margin: 38px 0 20px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.about-copy > p:not(.section-kicker):not(.about-lede) {
  max-width: 650px;
  color: var(--muted);
}

.capability-board {
  padding: 35px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 130px 130px 18px 18px;
  box-shadow: var(--shadow);
}

.capability-title {
  display: flex;
  padding: 14px 9px 26px;
  justify-content: space-between;
  color: var(--lime);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.capability-group {
  padding: 19px 9px;
  border-top: 1px solid rgba(242, 238, 228, 0.17);
}

.capability-group strong {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.capability-group p {
  margin: 0;
  color: rgba(242, 238, 228, 0.64);
  font-size: 0.78rem;
}

.education-stamp {
  display: flex;
  padding: 24px 9px 4px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(242, 238, 228, 0.17);
}

.education-stamp > span {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--orange);
  border-radius: 50%;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.education-stamp p {
  margin: 0;
  color: rgba(242, 238, 228, 0.62);
  font-size: 0.7rem;
  line-height: 1.5;
}

.education-stamp strong {
  color: var(--paper);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 160px 28px;
  color: var(--paper);
  background: #295b79;
  text-align: center;
}

.contact-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1050px);
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(4.2rem, 8.5vw, 9rem);
  line-height: 0.84;
}

.contact-email {
  display: inline-block;
  padding-bottom: 4px;
  margin-top: 50px;
  color: var(--lime);
  border-bottom: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  transition: color 180ms ease;
}

.contact-email:hover {
  color: var(--white);
}

.contact-links {
  display: flex;
  margin-top: 50px;
  justify-content: center;
  gap: 35px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-orbit {
  position: absolute;
  border: 1px solid rgba(200, 245, 109, 0.23);
  border-radius: 50%;
}

.orbit-one {
  top: -190px;
  left: calc(50% - 400px);
  width: 800px;
  height: 800px;
}

.orbit-two {
  top: -390px;
  left: calc(50% - 600px);
  width: 1200px;
  height: 1200px;
}

.site-footer {
  display: grid;
  min-height: 95px;
  padding: 25px max(28px, calc((100vw - var(--max-width)) / 2));
  align-items: center;
  color: rgba(242, 238, 228, 0.58);
  background: var(--ink);
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  font-size: 0.65rem;
  font-weight: 650;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
  color: var(--paper);
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

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

.reveal[data-delay="1"] {
  --reveal-delay: 1;
}

.reveal[data-delay="2"] {
  --reveal-delay: 2;
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(4rem, 8.4vw, 6.3rem);
  }

  .availability-card {
    right: -12px;
  }

  .portrait-index {
    display: none;
  }

  .project-card h3 {
    margin-top: 55px;
  }

  .project-featured,
  .project-wide {
    min-height: 620px;
  }

  .project-copy {
    padding: 28px;
  }

  .ops-stack {
    grid-template-columns: 1fr 1fr;
  }

  .experience-inner {
    gap: 70px;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 22px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .js-enabled .menu-toggle {
    z-index: 2;
    display: block;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 110px 32px 35px;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 80px rgba(24, 34, 28, 0.13);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition:
      transform 240ms ease,
      visibility 0s linear 240ms;
  }

  .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
  }

  .nav-contact {
    padding: 9px 17px;
    font-family: var(--font-sans) !important;
    font-size: 0.82rem !important;
  }

  html:not(.js-enabled) .site-header {
    position: absolute;
    flex-wrap: wrap;
    gap: 12px;
  }

  html:not(.js-enabled) .site-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 13px;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  html:not(.js-enabled) .site-nav a {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 760;
  }

  html:not(.js-enabled) .nav-contact {
    display: none;
  }

  html:not(.js-enabled) .filter-row {
    display: none;
  }

  .hero {
    width: min(calc(100% - 38px), 690px);
    min-height: auto;
    padding: 120px 0 55px;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy,
  .hero-portrait,
  .proof-strip {
    grid-column: 1;
  }

  .hero-copy {
    padding: 0;
  }

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

  .hero-portrait {
    width: 85%;
    margin-left: auto;
  }

  .portrait-frame {
    aspect-ratio: 0.9;
  }

  .availability-card {
    right: auto;
    bottom: 28px;
    left: -12%;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip > p {
    display: none;
  }

  .section-shell {
    width: min(calc(100% - 38px), 690px);
  }

  .work-section,
  .about-section {
    padding: 105px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .project-featured,
  .project-wide {
    grid-column: 1;
    flex-direction: column;
  }

  .project-card {
    min-height: 0;
  }

  .project-featured .project-copy {
    order: 2;
  }

  .project-wide .project-copy {
    order: 1;
  }

  .project-wide .project-visual {
    order: 2;
  }

  .event-card .project-copy {
    order: 2;
  }

  .event-card .project-visual {
    order: 1;
  }

  .project-card h3,
  .project-card:not(.project-featured):not(.project-wide) h3 {
    margin-top: 45px;
  }

  .project-visual {
    flex-basis: auto;
  }

  .experience-section {
    padding: 105px 0;
  }

  .experience-inner,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .additional-builds {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .additional-heading {
    grid-row: auto;
  }

  .experience-heading {
    position: static;
  }

  .about-grid {
    gap: 55px;
  }

  .capability-board {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .contact-section {
    padding: 120px 20px;
  }

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

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(3.35rem, 16.5vw, 5.2rem);
    line-height: 0.85;
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-portrait {
    width: 96%;
  }

  .availability-card {
    left: -4%;
    min-width: 230px;
  }

  .proof-strip {
    padding-top: 10px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proof-strip > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading h2,
  .experience-heading h2,
  .about-copy h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .filter-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .project-card {
    padding: 10px;
    border-radius: 16px;
  }

  .project-copy {
    padding: 24px 17px 29px;
  }

  .project-card h3,
  .project-card:not(.project-featured):not(.project-wide) h3 {
    margin-top: 36px;
    font-size: 2.7rem;
  }

  .project-meta {
    gap: 9px;
  }

  .project-status,
  .project-stage {
    display: none;
  }

  .project-impact {
    flex-direction: column;
  }

  .project-impact li {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .project-impact span {
    max-width: none;
  }

  .project-visual {
    min-height: 310px;
    padding: 24px 19px;
  }

  .ops-visual,
  .event-visual {
    margin: 5px;
  }

  .ops-status-row {
    padding-top: 22px;
    grid-template-columns: 1fr;
  }

  .signal-chart {
    height: 85px;
  }

  .ops-pipeline {
    gap: 5px;
  }

  .ops-pipeline span {
    padding: 6px 7px;
    font-size: 0.54rem;
  }

  .event-panels {
    grid-template-columns: 1fr;
  }

  .event-panels > div {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .event-panels small,
  .event-panels span {
    margin: 0;
  }

  .accuracy-row {
    grid-template-columns: 67px 1fr 52px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .additional-builds > article {
    grid-template-columns: 42px 1fr;
  }

  .additional-date {
    display: none;
  }

  .capability-board {
    padding: 28px 22px;
    border-radius: 90px 90px 15px 15px;
  }

  .contact-section {
    padding: 105px 18px;
  }

  .contact-inner h2 {
    font-size: clamp(3.9rem, 18vw, 6rem);
  }

  .contact-email {
    font-size: 1.25rem;
  }

  .contact-links {
    gap: 22px;
  }
}

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

  body.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
