:root {
  --paper: #f3f0e9;
  --paper-2: #e9e5dc;
  --paper-3: #d9d5cb;
  --ink: #07141f;
  --ink-2: #0d2231;
  --ink-3: #183648;
  --muted: #637079;
  --mint: #73f2c0;
  --mint-2: #38d69c;
  --cyan: #74d9ff;
  --peach: #f1a781;
  --line: rgba(7, 20, 31, 0.12);
  --shadow-sm: 0 2px 8px rgba(7, 20, 31, 0.06);
  --shadow-md: 0 22px 55px rgba(7, 20, 31, 0.15);
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }
:focus-visible { outline: 3px solid #168ad4; outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.cursor-orb {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(115, 242, 192, 0.7);
  border-radius: 50%;
  background: rgba(7, 20, 31, 0.88);
  color: var(--mint);
  box-shadow: 0 8px 26px rgba(7, 20, 31, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: width 180ms ease, height 180ms ease, opacity 140ms ease;
  backdrop-filter: blur(8px);
}
.cursor-orb.is-active { opacity: 1; }
.cursor-orb span { font: 500 12px var(--mono); }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(7, 20, 31, 0.08);
  background: rgba(243, 240, 233, 0.88);
  backdrop-filter: blur(14px);
}
.nav-shell {
  display: flex;
  width: min(1152px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 18px var(--mono);
  letter-spacing: -0.06em;
}
.brand-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-2);
  box-shadow: 0 0 0 4px rgba(56, 214, 156, 0.14);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.nav-cta) {
  position: relative;
  color: #34434d;
  font-size: 12px;
  font-weight: 700;
}
.nav-links > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav-links > a:hover::after,
.nav-links > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex;
  padding: 10px 15px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.nav-cta span { color: var(--mint); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

main { padding-top: 64px; }
.hero-shell { width: min(1152px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 40px; }
.bento-grid {
  display: grid;
  grid-template-areas:
    "intro intro portrait console"
    "career stack portrait metrics"
    "pulse query query connect";
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 280px 160px 160px;
  gap: 16px;
}
.tile {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 20, 31, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
}
button.tile, a.tile { cursor: pointer; transition: transform 260ms ease, box-shadow 260ms ease; }
button.tile:hover, a.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.reveal { animation: tile-in 560ms both cubic-bezier(0.22, 1, 0.36, 1); }
.tile:nth-child(2) { animation-delay: 70ms; }
.tile:nth-child(3) { animation-delay: 120ms; }
.tile:nth-child(4) { animation-delay: 170ms; }
.tile:nth-child(5) { animation-delay: 220ms; }
.tile:nth-child(6) { animation-delay: 270ms; }
.tile:nth-child(7) { animation-delay: 320ms; }
.tile:nth-child(8) { animation-delay: 370ms; }
.tile:nth-child(9) { animation-delay: 420ms; }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.intro-tile {
  grid-area: intro;
  display: flex;
  padding: 34px;
  flex-direction: column;
  justify-content: center;
  background: var(--mint);
}
.intro-tile::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(7, 20, 31, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(7, 20, 31, 0.025), 0 0 0 58px rgba(7, 20, 31, 0.02);
  content: "";
}
.eyebrow, .tile-kicker {
  margin-bottom: 10px;
  color: rgba(7, 20, 31, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.intro-tile h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: clamp(45px, 4.15vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.intro-copy { position: relative; z-index: 1; max-width: 570px; margin-bottom: 21px; color: #1e363d; font-size: 16px; line-height: 1.55; }
.pill-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row span { padding: 8px 13px; border: 1px solid rgba(7, 20, 31, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.24); font-size: 10px; font-weight: 800; }

.portrait-tile { grid-area: portrait; padding: 0; background: var(--ink); }
.portrait-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(115, 242, 192, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(115, 242, 192, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.portrait-grid::after {
  position: absolute;
  inset: 11% 8%;
  border: 1px solid rgba(115, 242, 192, 0.22);
  border-radius: 50%;
  content: "";
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan { 50% { inset: 8% 14%; opacity: 0.45; } }
.portrait-photo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: calc(100% - 34px);
  height: calc(100% - 88px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -53%);
  transition: transform 350ms ease;
}
.portrait-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 20, 31, 0.34)); content: ""; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; filter: saturate(0.87) contrast(1.03); transition: filter 350ms ease, transform 500ms ease; }
.portrait-tile:hover .portrait-photo { transform: translate(-50%, -53%) rotate(-0.7deg); }
.portrait-tile:hover img { filter: saturate(1) contrast(1.02); transform: scale(1.018); }
.portrait-label {
  position: absolute;
  z-index: 4;
  right: 17px;
  bottom: 17px;
  left: 17px;
  display: flex;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(115, 242, 192, 0.2);
  border-radius: 999px;
  background: rgba(7, 20, 31, 0.83);
  color: rgba(255, 255, 255, 0.8);
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.portrait-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(115, 242, 192, 0.1); }
.portrait-status { position: absolute; z-index: 6; top: 16px; right: 16px; padding: 7px 10px; border-radius: 999px; background: var(--mint); color: var(--ink); font: 500 8px var(--mono); opacity: 0; transform: translateY(-5px); transition: opacity 180ms ease, transform 180ms ease; }
.portrait-status.is-visible { opacity: 1; transform: translateY(0); }
.portrait-tile.is-celebrating .portrait-photo { animation: portrait-check 520ms ease; }
@keyframes portrait-check { 50% { transform: translate(-50%, -53%) scale(0.985); box-shadow: 0 0 0 9px rgba(115, 242, 192, 0.2); } }
.health-bit { position: absolute; z-index: 10; color: var(--mint); font: 500 12px var(--mono); animation: bit-fly 1.2s ease-out forwards; pointer-events: none; }
@keyframes bit-fly { from { left: 50%; top: 50%; opacity: 1; transform: translate(-50%, -50%) scale(0.7); } to { left: var(--bit-x); top: var(--bit-y); opacity: 0; transform: translate(-50%, -90%) scale(1.15); } }

.console-tile {
  grid-area: console;
  padding: 25px 22px 21px;
  background: var(--ink-2);
  color: white;
}
.console-tile::after { position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border: 1px dashed rgba(116, 217, 255, 0.2); border-radius: 50%; content: ""; }
.terminal-top { position: absolute; top: 0; right: 0; left: 0; display: flex; height: 32px; padding: 0 12px; align-items: center; gap: 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.terminal-top span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.terminal-top span:nth-child(1) { background: var(--peach); }
.terminal-top span:nth-child(2) { background: #f0d36e; }
.terminal-top span:nth-child(3) { background: var(--mint); }
.terminal-top em { margin-left: auto; color: rgba(255, 255, 255, 0.35); font: 400 7px var(--mono); font-style: normal; }
.console-tile .tile-kicker { margin-top: 27px; margin-bottom: 6px; color: var(--mint); font: 500 8px var(--mono); text-transform: uppercase; }
.console-tile h2 { max-width: 220px; margin-bottom: 9px; font-size: 26px; line-height: 1.05; }
.console-tile > p:not(.tile-kicker) { color: rgba(255, 255, 255, 0.55); font-size: 9px; line-height: 1.55; }
.terminal-line { position: absolute; right: 20px; bottom: 17px; left: 20px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.66); font: 400 7px var(--mono); }
.terminal-line > span:first-child { color: var(--mint); }
.terminal-caret { display: inline-block; width: 5px; height: 9px; margin-left: 4px; vertical-align: -2px; background: var(--mint); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.career-tile {
  grid-area: career;
  display: flex;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cyan);
}
.career-tile::after { position: absolute; top: -28px; right: -28px; width: 90px; height: 90px; border: 1px solid rgba(7, 20, 31, 0.12); border-radius: 50%; content: ""; }
.career-tile .tile-kicker { margin-bottom: 3px; font-size: 8px; text-transform: uppercase; }
.career-logos { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.career-logos span { display: flex; min-width: 0; padding: 8px; align-items: center; gap: 6px; border: 1px solid rgba(7, 20, 31, 0.1); border-radius: 9px; background: rgba(255, 255, 255, 0.25); font-size: 8px; font-weight: 800; }
.career-logos b { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 5px; background: var(--ink); color: white; font: 500 8px var(--mono); }
.career-tile > p:last-child { position: relative; z-index: 1; margin: 0; color: rgba(7, 20, 31, 0.67); font-size: 8px; line-height: 1.45; }
.career-tile > p strong { color: var(--ink); font-family: var(--display); font-size: 17px; }

.stack-tile { grid-area: stack; display: flex; padding: 17px; flex-direction: column; justify-content: space-between; background: #e4dfd5; }
.stack-heading { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.stack-heading small { color: var(--muted); font-size: 6px; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stack-grid span { padding: 9px 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.4); font: 500 7px var(--mono); text-align: center; transition: background 180ms ease, color 180ms ease; }
.stack-tile:hover .stack-grid span:nth-child(1), .stack-tile:hover .stack-grid span:nth-child(4) { background: var(--ink); color: var(--mint); }

.metrics-tile { grid-area: metrics; display: flex; padding: 18px; flex-direction: column; justify-content: space-between; background: var(--ink-3); color: white; }
.metrics-tile::before { position: absolute; inset: 0; opacity: 0.22; background-image: radial-gradient(rgba(115, 242, 192, 0.6) 0.6px, transparent 0.6px); background-size: 13px 13px; content: ""; }
.metrics-tile > * { position: relative; z-index: 1; }
.metrics-tile .tile-kicker { margin-bottom: 2px; color: rgba(255, 255, 255, 0.5); font-size: 8px; text-transform: uppercase; }
.metrics-tile h2 { margin-bottom: 0; font-size: 18px; }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-pair strong { display: block; color: var(--mint); font-family: var(--display); font-size: 24px; line-height: 1; }
.metric-pair small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.5); font-size: 6px; line-height: 1.35; }

.pulse-tile { grid-area: pulse; display: flex; padding: 18px; align-items: center; gap: 14px; background: var(--peach); }
.pulse-copy { position: relative; z-index: 2; display: flex; min-width: 0; flex: 1; flex-direction: column; }
.pulse-copy small { margin-bottom: 3px; color: rgba(7, 20, 31, 0.55); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.pulse-copy strong { font-family: var(--display); font-size: 15px; line-height: 1.15; }
.pulse-copy em { margin-top: 5px; color: rgba(7, 20, 31, 0.55); font-size: 6px; font-style: normal; line-height: 1.35; }
.pulse-visual { display: flex; align-items: center; }
.pulse-visual i { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(7, 20, 31, 0.1); border-radius: 50%; background: rgba(255, 255, 255, 0.38); font: 500 7px var(--mono); font-style: normal; }
.pulse-visual b { position: relative; width: 13px; height: 1px; background: rgba(7, 20, 31, 0.25); }
.pulse-visual b::after { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); content: ""; animation: packet 1.8s infinite linear; }
.pulse-visual b:nth-of-type(2)::after { animation-delay: 0.9s; }
@keyframes packet { to { left: calc(100% - 5px); } }
.pulse-tile.is-pulsing .pulse-visual i { animation: node-pulse 500ms ease; }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 7px rgba(7, 20, 31, 0.08); transform: scale(0.94); } }

.query-tile { grid-area: query; padding: 17px 19px; background: #101d27; color: white; }
.query-tile::after { position: absolute; top: 0; right: 0; bottom: 0; width: 33%; opacity: 0.25; background-image: linear-gradient(rgba(116, 217, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 217, 255, 0.15) 1px, transparent 1px); background-size: 16px 16px; content: ""; }
.query-label { position: relative; z-index: 2; display: flex; margin-bottom: 14px; justify-content: space-between; color: rgba(255, 255, 255, 0.35); font: 400 7px var(--mono); }
.query-label em { color: var(--mint); font-style: normal; }
.query-tile code { position: relative; z-index: 2; display: block; color: rgba(255, 255, 255, 0.75); font: 400 8px/1.55 var(--mono); }
.query-tile code span { color: var(--cyan); }
.query-tile code b { color: var(--peach); font-weight: 400; }
.query-result { position: absolute; z-index: 2; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.4); font: 400 7px var(--mono); }
.query-result i { width: 6px; height: 6px; border-radius: 50%; background: #71808a; }
.query-result.is-success { color: var(--mint); }
.query-result.is-success i { background: var(--mint); box-shadow: 0 0 0 4px rgba(115, 242, 192, 0.1); }
.query-tile.is-running code { opacity: 0.35; }

.connect-tile { grid-area: connect; display: flex; padding: 18px; flex-direction: column; justify-content: space-between; background: #ddd7cc; }
.connect-tile p { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.connect-grid a { display: grid; min-height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.42); font: 600 9px var(--mono); transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.connect-grid a:hover { background: var(--ink); color: var(--mint); transform: translateY(-2px); }

.request-strip { padding: 45px 20px 85px; text-align: center; }
.request-strip > p { margin-bottom: 22px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.request-path { display: flex; width: min(930px, 100%); margin: 0 auto; align-items: center; justify-content: center; }
.request-path span { display: flex; min-width: 120px; padding: 14px 18px; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.28); font: 500 9px var(--mono); }
.request-path span:first-child { border-radius: 12px 0 0 12px; }
.request-path span:last-child { border-radius: 0 12px 12px 0; }
.request-path span i { color: var(--muted); font-size: 7px; font-style: normal; }
.request-path > b { color: var(--muted); font: 400 12px var(--mono); }
.request-path .path-success { background: var(--mint); }

.work-section, .expertise-section, .about-section { padding: 112px max(16px, calc((100vw - 1152px) / 2)); }
.work-section { background: var(--ink); color: white; }
.section-heading { margin-bottom: 64px; text-align: center; }
.section-heading p { margin-bottom: 7px; color: var(--mint-2); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -0.035em; }
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.timeline { position: relative; display: grid; grid-template-columns: 1fr 90px 1fr; width: min(1050px, 100%); margin: 0 auto; row-gap: 32px; }
.timeline-rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.1); transform: translateX(-50%); }
.timeline-rail span { display: block; width: 100%; height: 0; background: var(--mint); box-shadow: 0 0 13px rgba(115, 242, 192, 0.6); }
.timeline-year { grid-column: 1 / -1; display: flex; z-index: 2; justify-content: center; }
.timeline-year span { min-width: 78px; padding: 9px 14px; border: 1px solid rgba(115, 242, 192, 0.25); border-radius: 999px; background: var(--ink); color: var(--mint); font: 500 12px var(--mono); text-align: center; }
.project-card { position: relative; width: 100%; max-width: 470px; }
.project-card--left { grid-column: 1; justify-self: end; }
.project-card--right { grid-column: 3; justify-self: start; }
.project-card::after { position: absolute; z-index: 3; top: 35px; width: 12px; height: 12px; border: 3px solid var(--ink); border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1px rgba(115, 242, 192, 0.5); content: ""; }
.project-card--left::after { right: -52px; }
.project-card--right::after { left: -52px; }
.project-card > button { width: 100%; padding: 0; overflow: hidden; border-radius: 16px; background: #f4f0e8; color: var(--ink); text-align: left; cursor: pointer; transition: transform 250ms ease, box-shadow 250ms ease; }
.project-card > button:hover { box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3); transform: translateY(-5px); }
.project-visual { position: relative; display: grid; height: 270px; overflow: hidden; place-items: center; }
.project-copy { display: flex; padding: 22px; flex-direction: column; }
.project-copy small { margin-bottom: 8px; color: #468673; font: 500 7px var(--mono); letter-spacing: 0.05em; }
.project-copy strong { margin-bottom: 9px; font-family: var(--display); font-size: 27px; line-height: 1.05; }
.project-copy > span { color: #637079; font-size: 10px; line-height: 1.55; }
.project-copy > em { display: flex; margin-top: 15px; align-items: center; justify-content: space-between; color: var(--ink); font-size: 8px; font-style: normal; font-weight: 800; }
.project-copy > em b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--mint); }

.visual-agent { background: #173447; }
.visual-agent::before { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(rgba(115, 242, 192, 0.5) 0.7px, transparent 0.7px); background-size: 18px 18px; content: ""; }
.agent-shell { position: relative; display: flex; width: 78%; padding: 19px; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 13px; background: rgba(7, 20, 31, 0.84); box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28); color: white; }
.agent-shell .window-dots { margin-bottom: 20px; color: rgba(255, 255, 255, 0.28); font-size: 6px; font-style: normal; letter-spacing: 3px; }
.agent-shell small { color: var(--mint); font: 400 7px var(--mono); }
.agent-shell > b { margin: 12px 0; font: 500 11px var(--body); }
.agent-shell > em { padding: 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); font: 400 7px var(--mono); font-style: normal; }
.agent-shell > em i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--mint); animation: blink 1.2s infinite; }
.agent-shell > span { display: grid; margin-top: 12px; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.agent-shell u { padding: 7px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; color: rgba(255, 255, 255, 0.42); font: 400 6px var(--mono); text-align: center; text-decoration: none; }

.visual-data { background: var(--peach); }
.visual-data::after { position: absolute; width: 240px; height: 240px; border: 1px solid rgba(7, 20, 31, 0.1); border-radius: 50%; box-shadow: 0 0 0 35px rgba(7, 20, 31, 0.025), 0 0 0 68px rgba(7, 20, 31, 0.02); content: ""; }
.data-map { position: relative; z-index: 2; display: flex; width: 88%; align-items: center; justify-content: center; }
.data-map > i { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; font: 500 8px var(--mono); font-style: normal; }
.data-map .source { border: 1px solid rgba(7, 20, 31, 0.16); background: rgba(255, 255, 255, 0.38); }
.data-map .core { width: 76px; height: 76px; background: var(--ink); color: var(--mint); box-shadow: 0 12px 25px rgba(7, 20, 31, 0.22); }
.data-map > b { width: 28px; height: 1px; background: rgba(7, 20, 31, 0.25); }
.data-map > span { display: grid; gap: 5px; }
.data-map > span i { padding: 7px 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.42); font: 500 6px var(--mono); font-style: normal; }
.data-map > em { position: absolute; top: calc(100% + 25px); color: rgba(7, 20, 31, 0.55); font: 400 7px var(--mono); font-style: normal; }

.visual-database { background: var(--cyan); }
.visual-database::before { position: absolute; inset: 0; opacity: 0.23; background-image: linear-gradient(rgba(7, 20, 31, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 20, 31, 0.12) 1px, transparent 1px); background-size: 22px 22px; content: ""; }
.db-stage { position: relative; display: flex; width: 150px; height: 146px; align-items: center; flex-direction: column; }
.db-stage > span { position: absolute; width: 140px; height: 52px; border: 1px solid rgba(7, 20, 31, 0.26); border-radius: 50%; background: rgba(255, 255, 255, 0.44); }
.db-stage > span:nth-child(1) { top: 0; z-index: 3; background: var(--ink); }
.db-stage > span:nth-child(2) { top: 31px; z-index: 2; }
.db-stage > span:nth-child(3) { top: 62px; z-index: 1; }
.db-stage > b { position: absolute; z-index: 4; top: 19px; color: var(--mint); font: 500 10px var(--mono); }
.db-stage > em { position: absolute; top: 126px; white-space: nowrap; color: rgba(7, 20, 31, 0.62); font: 400 7px var(--mono); font-style: normal; }

.expertise-section { background: var(--paper); }
.expertise-section .section-heading p { color: #318468; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1060px, 100%); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expertise-card { position: relative; min-height: 330px; padding: 34px 30px; overflow: hidden; border-right: 1px solid var(--line); }
.expertise-card:last-child { border-right: 0; }
.expertise-card > span { display: grid; width: 50px; height: 50px; margin-bottom: 42px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--mint); font: 500 16px var(--mono); }
.expertise-card > small { color: #4f8a75; font: 500 7px var(--mono); }
.expertise-card h3 { margin: 10px 0; font-size: 25px; line-height: 1.1; }
.expertise-card p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.expertise-card a { position: absolute; right: 30px; bottom: 28px; left: 30px; font-size: 8px; font-weight: 800; }
.expertise-card::after { position: absolute; right: -60px; bottom: -60px; width: 150px; height: 150px; border: 1px solid rgba(7, 20, 31, 0.06); border-radius: 50%; content: ""; transition: background 250ms ease, transform 350ms ease; }
.expertise-card:hover::after { background: rgba(115, 242, 192, 0.25); transform: scale(1.15); }

.about-section { background: var(--paper-2); }
.about-heading { margin-bottom: 58px; text-align: center; }
.about-avatar { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.about-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 36%; filter: saturate(0.85); }
.about-avatar i { position: absolute; right: 5px; bottom: 6px; width: 14px; height: 14px; border: 3px solid var(--paper-2); border-radius: 50%; background: var(--mint-2); }
.about-heading h2 { max-width: 100%; margin-bottom: 7px; font-size: clamp(40px, 5vw, 65px); letter-spacing: -0.04em; }
.about-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.about-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; width: min(1060px, 100%); margin: 0 auto; gap: 20px; }
.about-layout > *, .experience-list, .experience-card, .skills-block { min-width: 0; }
.about-story { grid-row: span 2; padding: 38px; background: var(--ink); color: white; }
.about-story .tile-kicker { color: var(--mint); font: 500 8px var(--mono); text-transform: uppercase; }
.about-story h3 { margin-bottom: 25px; font-size: clamp(28px, 3.2vw, 43px); line-height: 1.05; letter-spacing: -0.025em; }
.about-story > p:not(.tile-kicker) { color: rgba(255, 255, 255, 0.62); font-size: 11px; line-height: 1.75; }
.award-row { display: flex; margin-top: 30px; padding-top: 22px; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.award-row span { padding: 8px 10px; border: 1px solid rgba(115, 242, 192, 0.18); border-radius: 999px; color: var(--mint); font: 400 7px var(--mono); }
.experience-list { display: grid; gap: 8px; }
.experience-card { display: grid; padding: 19px 20px; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.25); }
.experience-card div { display: flex; flex-direction: column; }
.experience-card span { font-size: 10px; font-weight: 800; }
.experience-card small { margin-top: 3px; color: #398569; font: 500 8px var(--mono); }
.experience-card time { color: var(--muted); font: 400 7px var(--mono); }
.experience-card p { grid-column: 1 / -1; margin: 13px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.skills-block { padding: 23px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.3); }
.skills-block h3 { margin-bottom: 5px; font-size: 21px; }
.skills-block > p { color: var(--muted); font-size: 8px; }
.skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skills-list span { max-width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 7px var(--mono); overflow-wrap: anywhere; }

.cta-section { position: relative; display: flex; min-height: 520px; padding: 100px 20px; overflow: hidden; align-items: center; justify-content: center; flex-direction: column; background: var(--ink); color: white; text-align: center; }
.cta-grid { position: absolute; inset: 0; opacity: 0.2; background-image: linear-gradient(rgba(115, 242, 192, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(115, 242, 192, 0.12) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at center, black, transparent 70%); }
.cta-section::after { position: absolute; width: 540px; height: 540px; border: 1px solid rgba(115, 242, 192, 0.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(115, 242, 192, 0.025), 0 0 0 140px rgba(115, 242, 192, 0.018); content: ""; }
.cta-section > *:not(.cta-grid) { position: relative; z-index: 2; }
.cta-section > p { margin-bottom: 13px; color: var(--mint); font: 500 9px var(--mono); text-transform: uppercase; }
.cta-section h2 { width: min(760px, 100%); margin-bottom: 30px; font-size: clamp(45px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.04em; }
.cta-section > div { display: flex; justify-content: center; gap: 10px; }
.button { display: inline-flex; min-height: 46px; padding: 0 20px; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; font-size: 9px; font-weight: 800; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button--bright { background: var(--mint); color: var(--ink); }
.button--ghost { border: 1px solid rgba(255, 255, 255, 0.2); color: white; }
.button--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.site-footer { padding: 45px max(20px, calc((100vw - 1152px) / 2)); background: #030b11; color: white; }
.site-footer > div { display: flex; margin-bottom: 45px; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer p { margin: 0; font-family: var(--display); font-size: 23px; }
.site-footer > div > div { display: flex; gap: 22px; }
.site-footer a { color: rgba(255, 255, 255, 0.58); font-size: 9px; font-weight: 700; }
.site-footer a:hover { color: var(--mint); }
.site-footer > small { display: block; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.3); font: 400 7px var(--mono); }

.project-dialog { width: min(820px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48); }
.project-dialog::backdrop { background: rgba(3, 11, 17, 0.72); backdrop-filter: blur(7px); }
.dialog-close { position: fixed; z-index: 10; top: max(26px, calc((100vh - min(760px, calc(100vh - 28px))) / 2 + 12px)); right: max(26px, calc((100vw - min(820px, calc(100vw - 28px))) / 2 + 12px)); display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: rgba(7, 20, 31, 0.84); color: white; font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.dialog-hero { position: relative; display: flex; min-height: 260px; padding: 44px; align-items: flex-end; overflow: hidden; background: var(--ink-2); color: var(--mint); }
.dialog-hero::before { position: absolute; inset: 0; opacity: 0.25; background-image: linear-gradient(rgba(115, 242, 192, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(115, 242, 192, 0.15) 1px, transparent 1px); background-size: 26px 26px; content: ""; }
.dialog-hero::after { position: absolute; top: 50%; left: 50%; width: 280px; height: 280px; border: 1px solid rgba(115, 242, 192, 0.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(115, 242, 192, 0.025), 0 0 0 90px rgba(115, 242, 192, 0.018); content: ""; transform: translate(-50%, -50%); }
.dialog-hero span { position: relative; z-index: 2; font: 500 clamp(18px, 3vw, 30px) var(--mono); letter-spacing: -0.04em; }
.dialog-content { padding: 42px; }
.dialog-meta { margin-bottom: 10px; color: #398569; font: 500 8px var(--mono); text-transform: uppercase; }
.dialog-content > h2 { margin-bottom: 15px; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.dialog-summary { max-width: 690px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.dialog-impact { display: grid; margin: 28px 0 36px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-impact span { padding: 21px 15px; border-right: 1px solid var(--line); }
.dialog-impact span:last-child { border-right: 0; }
.dialog-impact strong { display: block; margin-bottom: 5px; font-family: var(--display); font-size: 23px; }
.dialog-impact small { color: var(--muted); font-size: 7px; line-height: 1.4; }
.dialog-columns { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 35px; }
.dialog-columns h3 { font-size: 18px; }
.dialog-columns ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.dialog-columns li + li { margin-top: 7px; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-tags span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; font: 400 7px var(--mono); }
.dialog-note { margin: 35px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #90999e; font-size: 7px; }

.health-toast { position: fixed; z-index: 2000; right: 24px; bottom: 24px; display: grid; width: 260px; padding: 16px; grid-template-columns: 34px 1fr; border: 1px solid rgba(115, 242, 192, 0.25); border-radius: 14px; background: rgba(7, 20, 31, 0.94); color: white; box-shadow: var(--shadow-md); animation: toast-in 300ms ease both; backdrop-filter: blur(12px); }
.health-toast[hidden] { display: none; }
.health-toast > span { display: grid; width: 28px; height: 28px; grid-row: span 2; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 900; }
.health-toast strong { font-size: 10px; }
.health-toast small { margin-top: 3px; color: rgba(255, 255, 255, 0.45); font: 400 6px var(--mono); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

@media (hover: hover) and (pointer: fine) {
  .cursor-orb { display: flex; }
  [data-cursor] { cursor: none !important; }
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-areas:
      "intro intro"
      "portrait portrait"
      "career stack"
      "pulse metrics"
      "console console"
      "query query"
      "connect connect";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 390px 160px 160px 240px 180px 150px;
  }
  .intro-tile h1 { font-size: clamp(43px, 8vw, 62px); }
  .portrait-photo { width: min(430px, calc(100% - 40px)); }
  .portrait-photo img { object-position: 50% 55%; }
  .console-tile > p:not(.tile-kicker) { max-width: 540px; }
  .request-path { overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
  .request-path span { min-width: 122px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-story { grid-row: auto; }
}

@media (max-width: 767px) {
  .nav-shell { height: 58px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; padding: 18px 16px 22px; gap: 4px; border-bottom: 1px solid var(--paper-3); background: rgba(243, 240, 233, 0.98); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 180ms ease, transform 180ms ease; }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links > a:not(.nav-cta) { padding: 12px 9px; font-size: 14px; }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 7px; justify-content: center; }
  main { padding-top: 58px; }
  .hero-shell { padding-top: 12px; }
  .request-strip { padding-bottom: 65px; }
  .timeline { grid-template-columns: 40px minmax(0, 1fr); row-gap: 20px; }
  .timeline-rail { left: 17px; transform: none; }
  .timeline-year { grid-column: 1 / -1; justify-content: flex-start; padding-left: 40px; }
  .timeline-year span { min-width: 72px; padding: 9px 13px; font-size: 11px; }
  .project-card--left, .project-card--right { grid-column: 2; max-width: none; justify-self: stretch; }
  .project-card--left::after, .project-card--right::after { top: 24px; right: auto; left: -29px; width: 10px; height: 10px; border-width: 2px; }
  .project-visual { height: 230px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 275px; border-right: 0; border-bottom: 1px solid var(--line); }
  .expertise-card:last-child { border-bottom: 0; }
  .expertise-card > span { margin-bottom: 28px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; }
  .dialog-columns { grid-template-columns: 1fr; }
  .dialog-impact { grid-template-columns: 1fr; }
  .dialog-impact span { border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-impact span:last-child { border-bottom: 0; }
}

@media (max-width: 639px) {
  :root { --radius: 15px; }
  .hero-shell { width: calc(100% - 16px); }
  .bento-grid { grid-template-rows: 270px 330px 135px 135px 230px 155px 140px; gap: 8px; }
  .intro-tile { padding: 25px 20px; }
  .intro-tile h1 { margin-bottom: 11px; font-size: clamp(39px, 12vw, 52px); }
  .intro-copy { margin-bottom: 17px; font-size: 12px; line-height: 1.5; }
  .pill-row span { padding: 7px 9px; font-size: 7px; }
  .portrait-photo { width: calc(100% - 24px); height: calc(100% - 68px); transform: translate(-50%, -53%); }
  .portrait-label { right: 12px; bottom: 11px; left: 12px; font-size: 7px; }
  .console-tile { padding: 20px; }
  .console-tile h2 { font-size: 24px; }
  .career-tile, .stack-tile, .metrics-tile, .pulse-tile, .query-tile, .connect-tile { padding: 13px; }
  .career-logos span { padding: 6px 4px; font-size: 6px; }
  .career-logos b { width: 17px; height: 17px; }
  .career-tile > p strong { font-size: 14px; }
  .stack-grid { gap: 5px; }
  .stack-grid span { padding: 8px 2px; font-size: 6px; }
  .metrics-tile h2 { font-size: 15px; }
  .metric-pair strong { font-size: 20px; }
  .pulse-tile { gap: 7px; }
  .pulse-copy strong { font-size: 12px; }
  .pulse-visual i { width: 27px; height: 27px; font-size: 6px; }
  .pulse-visual b { width: 8px; }
  .query-tile code { font-size: 7px; }
  .connect-grid a { min-height: 31px; }
  .request-strip { padding-right: 8px; padding-left: 8px; }
  .request-strip > p { padding: 0 10px; font-size: 8px; }
  .work-section, .expertise-section, .about-section { padding: 82px 8px 90px; }
  .section-heading { margin-bottom: 38px; padding: 0 14px; }
  .section-heading p { font-size: 8px; }
  .section-heading h2, .about-heading h2 { font-size: 38px; }
  .timeline { grid-template-columns: 29px minmax(0, 1fr); }
  .timeline-rail { left: 10px; }
  .timeline-year { padding-left: 29px; }
  .project-card--left::after, .project-card--right::after { left: -24px; }
  .project-visual { height: 205px; }
  .project-copy { padding: 17px; }
  .project-copy strong { font-size: 22px; }
  .project-copy > span { font-size: 8px; }
  .expertise-card { padding: 26px 22px; }
  .about-heading { padding: 0 14px; }
  .about-heading h2 { font-size: 32px; overflow-wrap: anywhere; }
  .about-heading p { font-size: 9px; }
  .about-story { padding: 26px 21px; }
  .about-story h3 { max-width: 100%; font-size: 24px; overflow-wrap: anywhere; }
  .about-story > p:not(.tile-kicker) { font-size: 9px; }
  .experience-card { padding: 18px; grid-template-columns: 1fr; }
  .experience-card time { width: max-content; margin-top: 7px; }
  .skills-block { padding: 20px; }
  .cta-section { min-height: 440px; }
  .cta-section h2 { font-size: 38px; }
  .cta-section > div { width: 100%; flex-direction: column; }
  .site-footer p { font-size: 20px; }
  .site-footer > div > div { gap: 17px; }
  .dialog-hero { min-height: 205px; padding: 25px; }
  .dialog-content { padding: 28px 20px; }
  .dialog-close { top: 22px; right: 22px; }
  .health-toast { right: 10px; bottom: 10px; left: 10px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
  .cursor-orb { display: none; }
}
