:root {
  --paper: #f3f0e9;
  --ink: #292a26;
  --muted: #707069;
  --line: #d5d2c9;
  --accent: #b9472c;
  --dark: #202d40;
  --green: #75836a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.025;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
::selection {
  background: #d7b59d;
  color: #272923;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a,
button,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
em {
  font-family: var(--serif);
  font-weight: 400;
}
svg {
  display: block;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: calc(100% - 128px);
  max-width: 1312px;
  margin-inline: auto;
}
.section-space {
  padding-block: 112px;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-index {
  color: var(--accent);
  margin-bottom: 24px;
}
.sr-only,
.honeypot {
  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;
  top: -80px;
  left: 20px;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 64px;
  max-width: 1600px;
  margin: auto;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 650;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -6px;
  padding-right: 6px;
}
.wordmark-dot {
  color: var(--accent);
  letter-spacing: -3px;
}
.desktop-nav {
  display: flex;
  gap: 38px;
  font-size: 16px;
  align-items: center;
  padding-left: 40px;
}
.desktop-nav a {
  position: relative;
  padding: 12px 0;
}
.desktop-nav a::after,
.text-link::after {
  position: absolute;
  content: "";
  height: 1px;
  background: currentColor;
  bottom: 5px;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.text-link:hover::after {
  transform: scaleX(1);
}
.desktop-nav a span {
  font-family: var(--sans);
  font-size: 14px;
  margin-left: 4px;
  color: var(--muted);
  vertical-align: super;
}
.desktop-nav a:last-child span {
  font-size: 16px;
  vertical-align: baseline;
  color: var(--ink);
}
.header-tools {
  display: flex;
  gap: 20px;
  align-items: center;
}
.command-trigger {
  border: 1px solid var(--line);
  padding: 6px 9px;
  font-family: var(--sans);
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.2s;
}
.command-trigger:hover {
  background: #e6e1d8;
}
.menu-toggle {
  display: none;
}
.mobile-nav {
  position: absolute;
  inset: 76px 0 auto;
  background: var(--paper);
  padding: 24px;
  z-index: 25;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 24px;
}
.hero {
  position: relative;
  padding-top: 45px;
  isolation: isolate;
}
.hero-kicker {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.hero-kicker > span:first-child {
  font-weight: 500;
  letter-spacing: 0.13em;
}
.hero-role {
  color: var(--muted);
}
#field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.58;
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.72fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 556px;
  padding-top: 30px;
  padding-bottom: 35px;
}
.hero-copy {
  padding-top: 8px;
  position: relative;
  z-index: 2;
}
h1 {
  font-size: clamp(62px, 6.4vw, 94px);
  font-weight: 450;
  letter-spacing: -0.067em;
  line-height: 1.05;
  white-space: nowrap;
}
h1 em {
  letter-spacing: -0.035em;
  font-size: 1.09em;
  line-height: 1.1;
  color: var(--accent);
}
.hero-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 30px 0 25px;
  letter-spacing: -0.01em;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  background: var(--ink);
  color: var(--paper);
  padding: 17px 22px;
  font-size: 16px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.35s var(--ease);
}
.primary-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.link-arrow {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.3s;
}
.primary-link:hover .link-arrow {
  transform: translate(2px, -2px);
}
.hero-availability {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}
.hero-availability a {
  color: var(--ink);
  border-bottom: 1px solid #aaa79d;
  padding-bottom: 2px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.portrait {
  position: relative;
  width: 100%;
  max-width: 365px;
  justify-self: end;
  margin-top: 15px;
}
.portrait-image {
  height: 392px;
  overflow: hidden;
  background: #b8aa94;
}
.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(0.67);
  transition:
    filter 1s,
    transform 1.4s var(--ease);
}
.portrait:hover img {
  filter: saturate(1);
  transform: scale(1.025);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -12px 12px 36px -12px;
  border: 1px solid var(--line);
  z-index: -1;
}
.portrait-mark {
  position: absolute;
  right: -20px;
  bottom: 43px;
  width: 74px;
  height: 74px;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 68px;
  line-height: 1.1;
  text-align: center;
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
}
.hero-bottom > .eyebrow {
  font-size: 14px;
  color: var(--muted);
}
.scroll-link {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.scroll-link span:last-child {
  font-size: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 50px;
}
h2 {
  font-size: clamp(44px, 4.7vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 450;
}
h2 em {
  letter-spacing: -0.025em;
  font-size: 1.08em;
}
.section-aside {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  min-width: 200px;
  margin-bottom: 4px;
}
.work-section {
  padding-top: 92px;
}
.project {
  scroll-margin-top: 40px;
}
.project-featured {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  border: 1px solid var(--line);
}
.project-copy {
  padding: 35px;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 14px/1.5 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.project h3 {
  font-size: 37px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.title-period {
  color: var(--accent);
}
.project-standfirst {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.1;
  margin-top: 20px;
  letter-spacing: -0.02em;
}
.project-description {
  color: var(--muted);
  line-height: 1.85;
  font-size: 16px;
  max-width: 470px;
  margin-top: 18px;
}
.tech-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  font: 14px/1.4 var(--sans);
  color: var(--muted);
}
.tech-list span + span::before {
  content: "/";
  color: #aaa79d;
  margin-right: 14px;
}
.project-links {
  display: flex;
  gap: 26px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 30px;
}
.project-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid #bfbab0;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.project-writing {
  margin-top: 22px;
  max-width: 35em;
  font: 16px/1.55 var(--sans);
  color: var(--muted);
}
.project-writing summary {
  width: fit-content;
  cursor: pointer;
}
.project-writing summary::marker {
  font-size: 0.75em;
}
.project-writing summary:hover,
.project-writing a:hover {
  color: var(--accent);
}
.project-writing ul {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 16px 0 0;
  border-left: 1px solid var(--line);
}
.project-writing li + li {
  margin-top: 14px;
}
.project-writing a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.project-links a span {
  margin-left: 12px;
}
.project-visual {
  overflow: hidden;
  position: relative;
}
.visual-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font: 14px/1.6 var(--sans);
  letter-spacing: 0.04em;
  padding: 24px 27px;
}
.visual-topline .status-dot {
  margin-right: 8px;
  background: #a4b099;
}
.trading-visual {
  background: #292e29;
  color: #e5e3d8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
}
.trading-visual .visual-topline {
  color: #b0b5a8;
  border-bottom: 1px solid #41463d;
}
.market-head {
  display: flex;
  flex-direction: column;
  padding: 30px 36px 0;
  gap: 8px;
}
.market-head > span:first-child {
  font-family: var(--serif);
  font-size: 24px;
  color: #cbcbbf;
}
.market-value {
  font-size: 53px;
  font-weight: 450;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.market-value > span {
  color: #8c9681;
}
.micro-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.07em;
  color: #a4aa9b;
}
.market-chart {
  width: calc(100% - 68px);
  height: 160px;
  margin: 15px auto 10px;
  overflow: visible;
}
.chart-trace {
  stroke-dasharray: 12 88;
  animation: chart-flow 8s linear infinite;
}
.execution-flow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 35px 24px;
  font: 14px/1.4 var(--sans);
}
.execution-flow span {
  border: 1px solid #5b6054;
  padding: 10px 11px;
  white-space: nowrap;
}
.execution-flow i {
  font-style: normal;
  color: #8b9681;
}
.visual-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #41463d;
  padding: 15px 26px;
  color: #acb1a1;
  font: 14px/1.5 var(--sans);
}
.project-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.project-stacked {
  border-bottom: 1px solid var(--line);
}
.project-stacked .project-copy {
  padding: 28px 0 34px;
}
.project-stacked .project-meta {
  margin-bottom: 20px;
}
.project-stacked .project-visual {
  height: 280px;
}
.project-stacked .project-description {
  max-width: 480px;
  min-height: 73px;
}
.project-stacked h3 {
  font-size: 33px;
}
.sentinel-visual {
  background: #e3e5db;
}
.sentinel-visual .visual-topline {
  color: #626d5d;
}
.sentinel-visual canvas {
  display: block;
  width: 100%;
  height: 165px;
}
.sentinel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  font: 14px/1.3 var(--sans);
}
.sentinel-controls label {
  white-space: nowrap;
  display: flex;
  gap: 7px;
}
.sentinel-controls output {
  color: #5f6b52;
}
.sentinel-controls input {
  width: 75px;
  height: 18px;
  accent-color: #6b775f;
  cursor: pointer;
}
.packet-key {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 14px;
  color: #61695c;
}
.packet-key i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6e7e62;
}
.packet-key i:nth-of-type(2) {
  margin-left: 5px;
  background: #b47255;
}
.radar-visual {
  background: #e9dfd4;
}
.radar-visual .visual-topline {
  color: #7d6655;
}
.radar-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  height: 166px;
}
.radar-rings {
  width: 162px;
  height: 162px;
  position: relative;
}
.radar-rings > span {
  position: absolute;
  inset: 0;
  border: 1px solid #cbb9a7;
  border-radius: 50%;
}
.radar-rings > span:nth-child(2) {
  inset: 22px;
}
.radar-rings > span:nth-child(3) {
  inset: 45px;
}
.radar-rings::before,
.radar-rings::after {
  content: "";
  position: absolute;
  background: #cbb9a7;
  opacity: 0.6;
}
.radar-rings::before {
  width: 1px;
  height: 100%;
  left: 50%;
}
.radar-rings::after {
  height: 1px;
  width: 100%;
  top: 50%;
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, #9b53361c 100%);
  animation: radar-turn 9s linear infinite;
}
.radar-sweep::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: #aa8263;
}
.radar-rings b {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  font: italic 40px var(--serif);
  color: var(--accent);
}
.radar-point {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9b6241;
  animation: signal 4s ease-in-out infinite;
}
.p1 {
  top: 22%;
  left: 26%;
}
.p2 {
  top: 57%;
  left: 78%;
  animation-delay: 1.3s;
}
.p3 {
  top: 77%;
  left: 35%;
  animation-delay: 2.6s;
}
.radar-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radar-number {
  font-size: 58px;
  letter-spacing: -0.07em;
  color: #805d42;
}
.radar-number span {
  font-family: var(--serif);
  font-size: 40px;
  margin-left: 3px;
}
.radar-copy .micro-label {
  color: #7d6655;
}
.radar-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font: 14px var(--sans);
  color: #7d6655;
}
.radar-pipeline i {
  font-style: normal;
  opacity: 0.5;
}
.cipher-project {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-block: 40px;
}
.cipher-project .project-copy {
  padding: 0;
}
.cipher-project .project-meta {
  max-width: 410px;
  margin-bottom: 16px;
}
.cipher-project .project-description {
  margin-top: 12px;
  max-width: 600px;
}
.cipher-project .project-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-right: 20px;
  margin-top: 0;
}
.cipher-project h3 {
  font-size: 32px;
}
.cipher-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 170px;
  background: #e7e4dd;
  font-family: var(--serif);
  font-size: 75px;
  color: #858377;
}
.cipher-text {
  font-family: var(--sans);
  font-size: 28px;
  letter-spacing: 4px;
  animation: cipher-blink 4s ease-in-out infinite;
}
.work-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.work-end > .eyebrow {
  color: var(--muted);
  font-size: 14px;
}
.text-link {
  display: inline-block;
  font-size: 16px;
  position: relative;
  padding-bottom: 8px;
}
.text-link::after {
  bottom: 0;
  transform: scaleX(1);
  background: var(--line);
}
.text-link:hover::after {
  background: currentColor;
}
.about-section {
  border-top: 1px solid var(--line);
}
.about-heading {
  margin-bottom: 58px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
}
.about-intro {
  max-width: 420px;
}
.about-intro > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-intro > p:first-child {
  font-size: 25px;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 25px;
}
.about-intro > .text-link {
  margin-top: 10px;
}
.about-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 65px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.note-star {
  font-size: 52px;
  font-weight: 400;
  color: var(--accent);
  animation: radar-turn 55s linear infinite;
  line-height: 1;
}
.timeline-entry {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
}
.timeline-entry:first-child {
  padding-top: 0;
  border: 0;
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 14px/1.5 var(--sans);
  color: var(--muted);
  margin-bottom: 18px;
}
.current-tag {
  color: #546248;
}
.current-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #75836a;
  border-radius: 50%;
  margin-right: 7px;
}
.timeline-entry h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.company-link {
  display: inline-block !important;
  margin-top: 7px !important;
  color: var(--accent) !important;
  font-size: 16px !important;
}
.timeline-entry > p:not(.company-link) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
}
.timeline-stack {
  display: block;
  font: 14px/1.7 var(--sans);
  color: var(--muted);
  margin-top: 18px;
}
.award-label {
  color: var(--accent);
}
.achievement h3 {
  font-size: 30px;
  font-family: var(--serif);
}
.compact-entry {
  padding-bottom: 0;
}
.compact-entry h3 {
  font-size: 17px;
}
.skills-section {
  padding-top: 0;
}
.skill-table {
  border-top: 1px solid var(--line);
}
.skill-row {
  display: grid;
  grid-template-columns: 58px 290px 1fr;
  gap: 15px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.skill-number {
  font: 14px var(--sans);
  color: var(--muted);
}
.skill-row h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.skill-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
}
.skill-row > div > span {
  font-size: 16px;
  color: var(--muted);
}
.skill-row .primary-skill {
  color: var(--ink);
}
.primary-skill small {
  font: 14px var(--sans);
  background: #e3e3d8;
  color: #64705a;
  padding: 4px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.lab-section {
  background: var(--dark);
  color: #ecece2;
  --muted: #a9ad9f;
  --line: #44483f;
}
.lab-section .section-index {
  color: #c8a384;
}
.lab-section .section-aside {
  color: #a9ad9f;
}
.lab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.lab-tabs {
  display: flex;
  gap: 30px;
}
.lab-tabs button {
  padding: 0 0 18px;
  color: #a9ad9f;
  font-size: 16px;
  position: relative;
}
.lab-tabs button[aria-selected="true"] {
  color: #eeeade;
}
.lab-tabs button[aria-selected="true"]::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  content: "";
  background: #c8a384;
}
.lab-tabs button span {
  font: 16px var(--sans);
  margin-left: 18px;
  color: #c8a384;
}
.lab-hint {
  font: 14px var(--sans);
  color: #a9ad9f;
  padding-bottom: 18px;
}
.map-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  border: 1px solid var(--line);
  border-top: 0;
  min-height: 480px;
}
.map-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(#5d635340 0.7px, transparent 0.7px);
  background-size: 20px 20px;
}
.map-topline {
  padding: 23px 23px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 14px var(--sans);
  color: #9da58f;
}
.map-scroll {
  overflow: auto;
  flex: 1;
}
.dependency-map {
  position: relative;
  min-width: 510px;
  height: 390px;
  width: 100%;
}
#map-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map-edge {
  fill: none;
  stroke: #4a5144;
  stroke-width: 1;
  transition:
    stroke 0.35s,
    opacity 0.35s;
  vector-effect: non-scaling-stroke;
}
.map-edge.active {
  stroke: #bba080;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  animation: edge-flow 16s linear infinite;
}
.map-edge.dim {
  opacity: 0.2;
}
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #2b3029;
  border: 1px solid #555c4d;
  color: #d5d8ca;
  padding: 13px 12px;
  font: 14px var(--sans);
  white-space: nowrap;
  transition:
    border-color 0.25s,
    background 0.25s,
    opacity 0.25s;
  min-width: 82px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
}
.map-node::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #959f88;
  border-radius: 50%;
  display: inline-block;
}
.map-node[data-kind="project"] {
  min-width: 121px;
}
.map-node.active {
  background: #453e32;
  border-color: #bb9a76;
  color: #f1e6d6;
}
.map-node.active::before {
  background: #e4b68e;
}
.map-node.connected {
  border-color: #8b8068;
}
.map-node.dim {
  opacity: 0.7;
}
.map-node:hover {
  opacity: 1;
  background: #3b4036;
  border-color: #c1b396;
}
.map-instruction {
  font: 14px var(--sans);
  color: #a9ad9f;
  padding: 0 23px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-inspector {
  border-left: 1px solid var(--line);
  padding: 31px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.map-inspector > .eyebrow {
  font-size: 14px;
  color: #c8a384;
}
.map-inspector h3 {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -0.045em;
  margin-top: 22px;
}
.map-inspector > p:not(.inspector-label) {
  font-size: 16px;
  color: #b5b9ab;
  line-height: 1.9;
  margin-top: 16px;
}
.inspector-label {
  font: 14px var(--sans);
  letter-spacing: 0.05em;
  color: #9da58f;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 12px;
}
#map-connections {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#map-connections button {
  font: 14px var(--sans);
  border: 1px solid #52594b;
  padding: 7px 9px;
  color: #d0d4c4;
}
#map-connections button:hover {
  background: #3e4437;
}
.map-inspector > .text-link {
  margin-top: 26px;
  color: #d4b496;
  font-size: 14px;
}
.inspector-foot {
  padding-top: 30px;
  margin-top: auto;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.35;
  color: #929b85;
}
.lab-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: #a2aa95;
  font: 14px/1.7 var(--sans);
}
.lab-foot button {
  padding: 0;
  font: inherit;
  color: #c6c9bb;
}
.lab-foot button:hover {
  color: #e6c2a0;
}
#terminal-panel {
  border: 1px solid var(--line);
  border-top: 0;
  min-height: 480px;
  background: #20241f;
}
.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #383f32;
  padding: 18px 24px;
  font: 14px var(--sans);
  color: #ced3bf;
}
.terminal-top > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.terminal-path {
  color: #929b85;
}
.quiet-button {
  font: 14px var(--sans);
  color: #a4ad96;
}
.terminal-main {
  position: relative;
  display: flex;
  padding: 24px;
  gap: 12px;
  height: 330px;
}
.terminal-companion {
  width: 108px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 14px var(--sans);
  color: #a6ad98;
}
.terminal-companion iframe {
  border: 0;
  width: 108px;
  height: 125px;
}
.terminal-companion > a {
  font-size: 14px;
  color: #c8a384;
}
#terminal-output {
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #626e55 transparent;
  font: 16px/1.9 var(--sans);
  color: #c4cbb8;
  overflow-wrap: anywhere;
  padding-right: 16px;
}
#terminal-output p {
  margin-bottom: 10px;
}
#terminal-output pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 22px;
  font: inherit;
}
.terminal-welcome {
  color: #eeeade !important;
  font-family: var(--serif) !important;
  font-size: 29px !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}
.terminal-accent {
  color: #dab593;
}
.terminal-muted {
  color: #929b85;
  font-size: 14px;
}
.terminal-echo {
  color: #a4b38c !important;
  margin-bottom: 2px !important;
}
.terminal-response a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#terminal-form {
  border-top: 1px solid #383f32;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  font: 16px var(--sans);
}
#terminal-form label {
  color: #c6d1b6;
  white-space: nowrap;
}
#terminal-form label span {
  color: #929b85;
  margin: 0 7px;
}
#terminal-form b {
  color: #c8a384;
  font-weight: 400;
}
#terminal-input {
  background: transparent;
  border: 0;
  color: #e9ecdf;
  width: 100%;
  min-width: 0;
  outline-offset: 4px;
  font: inherit;
  padding: 5px 0;
}
#terminal-input::placeholder {
  color: #949c86;
}
#terminal-form > button {
  font-size: 20px;
  color: #c8a384;
}
.terminal-suggestions {
  padding: 0 24px 16px;
  display: flex;
  gap: 12px;
  font: 14px var(--sans);
  color: #8e9980;
}
.terminal-suggestions button {
  padding: 0;
  color: #c7cebb;
  font: inherit;
}
.terminal-suggestions button:hover {
  text-decoration: underline;
}
.contact-section {
  padding-top: 100px;
}
.contact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 35px;
}
.contact-location {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.contact-section h2 {
  font-size: clamp(65px, 8.5vw, 120px);
  letter-spacing: -0.06em;
  line-height: 1.02;
  position: relative;
}
.contact-section h2 em {
  color: var(--accent);
  font-size: 1.04em;
}
.contact-arrow {
  position: absolute;
  right: 10px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 70px;
  font-weight: 400;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.contact-arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.email-link {
  font-size: 21px;
  letter-spacing: -0.04em;
}
.copy-email {
  display: inline-flex;
  margin-left: 12px;
  padding: 7px;
  vertical-align: middle;
  color: var(--muted);
}
.copy-email:hover {
  color: var(--accent);
}
.contact-bottom p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 10px;
}
.contact-socials {
  display: flex;
  gap: 28px;
  font-size: 16px;
}
.contact-socials a:hover {
  color: var(--accent);
}
.contact-form-disclosure {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-form-disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  user-select: none;
}
.contact-form-disclosure > summary::-webkit-details-marker {
  display: none;
}
.contact-form-disclosure > summary span {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}
.contact-form-disclosure[open] > summary span {
  transform: rotate(45deg);
}
#contact-form {
  padding: 15px 0 28px;
  max-width: 850px;
}
#contact-form label {
  display: block;
  font-size: 16px;
  color: var(--muted);
}
#contact-form input:not([type="hidden"]),
#contact-form textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--ink);
  font-size: 16px;
  resize: vertical;
  border-radius: 0;
}
#contact-form textarea {
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}
.form-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}
.form-bottom .primary-link {
  min-width: 180px;
}
.form-bottom p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.site-footer .wordmark {
  font-size: 32px;
  letter-spacing: -4px;
}
.site-footer > span {
  font: 14px var(--sans);
  color: var(--muted);
}
.site-footer > div {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.site-footer button {
  font-size: 14px;
  padding: 5px 0;
  color: var(--muted);
}
#motion-toggle span {
  display: inline-block;
  color: var(--ink);
  padding: 0 0 2px;
  border-bottom: 1px solid var(--line);
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
  width: 24px;
  height: 24px;
  border: 1px solid #9b533660;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s,
    background 0.25s,
    border-color 0.25s;
  align-items: center;
  justify-content: center;
}
.cursor span {
  font: 14px var(--sans);
  opacity: 0;
}
.cursor.context {
  width: 70px;
  height: 70px;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cursor.context span {
  opacity: 1;
}
.cursor.hover {
  width: 38px;
  height: 38px;
  background: #9b53360a;
}
.cursor.hidden {
  opacity: 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  max-width: calc(100% - 32px);
  width: max-content;
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
#command-dialog {
  width: min(540px, calc(100% - 32px));
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  margin: 18vh auto auto;
  box-shadow: 0 24px 90px #0003;
}
#command-dialog::backdrop {
  background: #23241c88;
  backdrop-filter: blur(5px);
}
.command-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 12px;
}
.command-head h2 {
  font-family: var(--serif);
  font-size: 30px;
}
.command-head button {
  font: 14px var(--sans);
  border: 1px solid var(--line);
  padding: 5px 7px;
}
#command-search {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  outline-offset: -4px;
  color: var(--ink);
}
#command-results {
  padding: 8px;
  max-height: 330px;
  overflow: auto;
}
#command-results button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  text-align: left;
  font-size: 16px;
}
#command-results button:hover,
#command-results button.selected {
  background: #e6e0d5;
}
#command-results button span:last-child {
  font: 14px var(--sans);
  color: var(--muted);
}
#command-results > p {
  padding: 18px;
  font-size: 16px;
  color: var(--muted);
}
.command-foot {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  font: 14px var(--sans);
  color: var(--muted);
  display: flex;
  gap: 25px;
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease),
    transform 1s var(--ease);
}
.js-reveal .reveal.in-view {
  opacity: 1;
  transform: none;
}
@keyframes chart-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes radar-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes signal {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes edge-flow {
  to {
    stroke-dashoffset: -200;
  }
}
@keyframes cipher-blink {
  0%,
  80%,
  100% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.2;
  }
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused {
  scroll-behavior: auto;
}
.motion-paused .reveal {
  transition: none !important;
}
.motion-paused .cursor {
  display: none !important;
}
.offscreen .chart-trace,
.offscreen .radar-sweep,
.offscreen .radar-point,
.offscreen .cipher-text,
.offscreen .map-edge,
.offscreen .note-star {
  animation-play-state: paused;
}
@media (min-width: 1600px) {
  .site-header {
    padding-inline: 80px;
  }
  .hero-layout {
    min-height: 640px;
  }
  .portrait {
    max-width: 410px;
  }
  .portrait-image {
    height: 440px;
  }
  h1 {
    font-size: 101px;
  }
  .hero-description {
    font-size: 16px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 80px);
  }
  .site-header {
    padding-inline: 40px;
  }
  .hero-layout {
    gap: 30px;
    grid-template-columns: 1.65fr 1fr;
    min-height: 500px;
  }
  h1 {
    font-size: 6.5vw;
  }
  .portrait-image {
    height: 335px;
  }
  .portrait figcaption {
    font-size: 14px;
  }
  .portrait figcaption span:last-child {
    display: none;
  }
  .hero-description {
    font-size: 16px;
  }
  .section-space {
    padding-block: 85px;
  }
  .work-section {
    padding-top: 65px;
  }
  .project-copy {
    padding: 26px;
  }
  .project-featured {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .execution-flow {
    margin-inline: 22px;
    gap: 6px;
    font-size: 14px;
  }
  .execution-flow span {
    padding: 9px 6px;
  }
  .market-value {
    font-size: 46px;
  }
  .visual-topline {
    padding: 20px;
    font-size: 14px;
  }
  .sentinel-controls {
    padding: 16px;
    gap: 8px;
  }
  .sentinel-controls input {
    width: 60px;
  }
  .packet-key {
    font-size: 14px;
    gap: 4px;
  }
  .radar-stage {
    gap: 25px;
  }
  .radar-pipeline {
    gap: 9px;
    font-size: 14px;
  }
  .about-layout {
    gap: 70px;
  }
  .skill-row {
    grid-template-columns: 40px 235px 1fr;
  }
  .skill-row > div {
    gap: 15px 23px;
  }
  .skill-row > div > span {
    font-size: 16px;
  }
  .map-panel {
    grid-template-columns: 1fr 240px;
  }
  .map-inspector {
    padding: 26px 20px;
  }
  .map-node {
    font-size: 14px;
    min-width: 70px;
    padding: 12px 9px;
  }
  .map-node[data-kind="project"] {
    min-width: 106px;
  }
  .dependency-map {
    min-width: 480px;
  }
  .map-topline {
    font-size: 14px;
    padding-inline: 16px;
  }
  .map-topline > span:last-child {
    display: none;
  }
  .map-instruction {
    font-size: 14px;
    padding-left: 16px;
  }
  .contact-socials {
    gap: 18px;
  }
  .contact-arrow {
    width: 108px;
    height: 108px;
    font-size: 58px;
  }
  .email-link {
    font-size: 19px;
  }
  .cipher-project {
    grid-template-columns: 130px 1fr auto;
    gap: 24px;
  }
  .cipher-symbol {
    height: 145px;
  }
  .skills-section {
    padding-top: 0;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    padding-inline: 24px;
    height: 80px;
  }
  .desktop-nav {
    gap: 24px;
    padding-left: 0;
  }
  .hero {
    padding-top: 30px;
  }
  .hero-kicker .hero-role {
    font-size: 14px;
  }
  .hero-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    min-height: 430px;
  }
  .portrait-image {
    height: 280px;
  }
  .portrait-mark {
    width: 54px;
    height: 54px;
    right: -10px;
    bottom: 40px;
    font-size: 50px;
  }
  .hero-description {
    font-size: 16px;
    margin-top: 23px;
  }
  .hero-availability {
    font-size: 14px;
    margin-top: 22px;
  }
  .primary-link {
    font-size: 14px;
    padding: 15px 18px;
    gap: 25px;
  }
  .hero-bottom > .eyebrow {
    font-size: 14px;
  }
  .hero-bottom .scroll-link {
    font-size: 14px;
    gap: 15px;
  }
  .section-aside {
    font-size: 16px;
    min-width: auto;
  }
  .section-heading {
    margin-bottom: 35px;
  }
  h2 {
    font-size: 45px;
  }
  .project-featured {
    grid-template-columns: 1fr;
  }
  .project-featured .project-copy {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .project-featured .project-meta {
    grid-column: 1/-1;
    margin-bottom: 22px;
  }
  .project-featured .project-standfirst {
    grid-row: 3;
    grid-column: 1;
    margin-top: 14px;
  }
  .project-featured .project-description {
    grid-column: 2;
    grid-row: 2/4;
    margin-top: 0;
  }
  .project-featured .tech-list {
    grid-column: 1;
    align-self: center;
  }
  .project-featured .project-links {
    grid-column: 2;
    align-self: center;
    margin-top: 24px;
  }
  .trading-visual {
    min-height: 360px;
  }
  .market-head {
    padding-top: 24px;
  }
  .market-chart {
    height: 125px;
  }
  .market-head {
    gap: 3px;
  }
  .market-head > span:first-child {
    font-size: 20px;
  }
  .market-value {
    font-size: 40px;
  }
  .execution-flow {
    justify-content: center;
    gap: 28px;
  }
  .execution-flow span {
    padding: 10px 20px;
  }
  .project-pair {
    gap: 24px;
    margin-top: 24px;
  }
  .project-stacked .visual-topline {
    flex-wrap: wrap;
    gap: 5px;
    padding: 16px;
  }
  .project-stacked .visual-topline > span:last-child {
    display: none;
  }
  .sentinel-controls {
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .packet-key {
    width: 100%;
    margin: 3px 0 0;
    justify-content: center;
    font-size: 14px;
  }
  .sentinel-controls input {
    flex: 1;
  }
  .radar-rings {
    width: 130px;
    height: 130px;
  }
  .radar-stage {
    gap: 18px;
    padding-inline: 12px;
  }
  .radar-number {
    font-size: 45px;
  }
  .radar-copy .micro-label {
    font-size: 14px;
  }
  .radar-pipeline {
    gap: 7px;
    flex-wrap: wrap;
    padding: 10px;
  }
  .project-stacked .project-visual {
    height: 258px;
  }
  .radar-pipeline {
    margin-top: 0;
  }
  .project-stacked h3 {
    font-size: 29px;
  }
  .project-description {
    font-size: 16px;
  }
  .project-stacked .project-description {
    min-height: 89px;
  }
  .project-meta {
    font-size: 14px;
  }
  .tech-list {
    gap: 10px;
    font-size: 14px;
  }
  .tech-list span + span::before {
    margin-right: 10px;
  }
  .cipher-project {
    grid-template-columns: 110px 1fr;
    gap: 25px;
  }
  .cipher-project .project-links {
    grid-column: 2;
    flex-direction: row;
    margin-top: -8px;
  }
  .cipher-symbol {
    height: 130px;
    align-self: start;
    margin-top: 20px;
    font-size: 60px;
  }
  .cipher-text {
    font-size: 21px;
  }
  .about-layout {
    gap: 40px;
  }
  .about-intro > p {
    font-size: 16px;
  }
  .timeline-entry h3 {
    font-size: 20px;
  }
  .timeline-entry > p:not(.company-link) {
    font-size: 16px;
  }
  .timeline-meta {
    font-size: 14px;
  }
  .skill-row {
    grid-template-columns: 30px 200px 1fr;
  }
  .skill-row h3 {
    font-size: 16px;
  }
  .skill-row > div {
    gap: 12px 18px;
  }
  .skill-row > div > span {
    font-size: 14px;
  }
  .map-panel {
    grid-template-columns: 1fr;
  }
  .dependency-map {
    height: 340px;
    min-width: 500px;
  }
  .map-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    min-height: 235px;
  }
  .map-inspector > .eyebrow {
    grid-column: 1/-1;
  }
  .map-inspector h3 {
    grid-column: 1;
    margin-top: 14px;
  }
  .map-inspector > p:not(.inspector-label) {
    grid-column: 1;
    grid-row: 3/6;
    margin-top: 10px;
  }
  .inspector-label {
    grid-column: 2;
    grid-row: 2;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  #map-connections {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }
  .map-inspector > .text-link {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
    margin-top: 20px;
  }
  .inspector-foot {
    display: none;
  }
  .lab-hint {
    font-size: 14px;
  }
  .contact-section h2 {
    font-size: 10vw;
  }
  .contact-arrow {
    width: 88px;
    height: 88px;
    font-size: 46px;
  }
  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }
  .contact-socials {
    gap: 28px;
  }
  .contact-section {
    padding-bottom: 70px;
  }
  .lab-section .section-heading {
    gap: 20px;
  }
  .lab-section h2 {
    font-size: 43px;
  }
  .lab-section .section-aside {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 24px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 76px;
    padding-inline: 20px;
  }
  .wordmark {
    font-size: 38px;
  }
  .desktop-nav {
    display: none;
  }
  .header-tools {
    gap: 20px;
  }
  .menu-toggle {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
  }
  .menu-toggle span {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }
  .menu-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
  }
  .command-trigger {
    font-size: 14px;
    padding: 5px 7px;
  }
  .hero {
    padding-top: 25px;
  }
  .hero-kicker {
    gap: 10px;
    flex-direction: column;
  }
  .hero-kicker > .eyebrow {
    font-size: 14px;
  }
  .hero-kicker .hero-role {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 38px;
    padding-bottom: 32px;
    min-height: 0;
  }
  .hero-copy {
    padding-top: 0;
  }
  h1 {
    font-size: clamp(42px, 10.8vw, 64px);
    letter-spacing: -0.065em;
    line-height: 1.04;
  }
  h1 em {
    font-size: 1.1em;
  }
  .hero-description {
    font-size: 16px;
    margin: 25px 0 22px;
    line-height: 1.85;
  }
  .hero-availability {
    font-size: 14px;
    margin-top: 22px;
  }
  .hero .primary-link {
    font-size: 14px;
    padding: 16px 20px;
    gap: 40px;
  }
  .portrait {
    width: 80%;
    max-width: 310px;
    justify-self: end;
    margin-top: 8px;
    margin-right: 5px;
  }
  .portrait-image {
    height: 300px;
  }
  .portrait::before {
    inset: -10px 10px 32px -10px;
  }
  .portrait-mark {
    width: 63px;
    height: 63px;
    font-size: 57px;
    bottom: 35px;
    right: -10px;
  }
  .portrait figcaption {
    font-size: 14px;
  }
  .portrait figcaption span:last-child {
    display: block;
    font-size: 14px;
  }
  .hero-bottom {
    padding: 20px 0;
    align-items: flex-start;
    gap: 15px;
  }
  .hero-bottom > .eyebrow {
    max-width: 190px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.05em;
  }
  .scroll-link {
    gap: 14px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
  .scroll-link span:last-child {
    font-size: 16px;
  }
  .section-space {
    padding-block: 65px;
  }
  .work-section {
    padding-top: 45px;
  }
  .section-index {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  h2 {
    font-size: 42px;
    line-height: 1.06;
  }
  .section-aside {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
  }
  .section-aside br {
    display: none;
  }
  .section-aside br::after {
    content: " ";
  }
  .project-featured .project-copy {
    display: block;
    padding: 25px;
  }
  .project-featured .project-meta {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .project h3 {
    font-size: 35px;
  }
  .project-featured .project-standfirst {
    font-size: 28px;
    margin-top: 16px;
  }
  .project-featured .project-description {
    margin-top: 18px;
    font-size: 16px;
  }
  .project-featured .project-links {
    margin-top: 26px;
  }
  .trading-visual {
    min-height: 350px;
  }
  .visual-topline {
    font-size: 14px;
    padding: 16px;
  }
  .market-head {
    padding-left: 25px;
  }
  .market-value {
    font-size: 42px;
  }
  .market-chart {
    width: calc(100% - 40px);
    height: 125px;
  }
  .execution-flow {
    gap: 10px;
    margin: 5px 15px 22px;
    justify-content: space-between;
    font-size: 14px;
  }
  .execution-flow span {
    padding: 9px 7px;
  }
  .visual-footer {
    font-size: 14px;
    padding: 14px 16px;
  }
  .project-pair {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 28px;
  }
  .project-stacked .project-visual {
    height: 260px;
  }
  .project-stacked .visual-topline {
    font-size: 14px;
    padding: 20px;
  }
  .project-stacked .visual-topline > span:last-child {
    display: block;
    font-size: 14px;
  }
  .project-stacked .project-copy {
    padding: 24px 0 28px;
  }
  .project-stacked .project-meta {
    margin-bottom: 18px;
  }
  .project-stacked h3 {
    font-size: 31px;
  }
  .project-stacked .project-description {
    min-height: 0;
    max-width: none;
    font-size: 16px;
  }
  .sentinel-visual canvas {
    height: 145px;
  }
  .sentinel-controls {
    flex-wrap: nowrap;
    padding: 14px 18px;
    gap: 8px;
  }
  .sentinel-controls input {
    width: 60px;
    flex: 0 1 auto;
  }
  .packet-key {
    width: auto;
    justify-content: flex-end;
    font-size: 14px;
    margin: 0 0 0 auto;
    gap: 4px;
  }
  .radar-stage {
    gap: 40px;
    height: 165px;
  }
  .radar-rings {
    width: 155px;
    height: 155px;
  }
  .radar-number {
    font-size: 58px;
  }
  .radar-copy .micro-label {
    font-size: 14px;
  }
  .radar-pipeline {
    gap: 12px;
    padding: 5px 14px;
    font-size: 14px;
  }
  .tech-list {
    font-size: 14px;
    gap: 12px;
  }
  .tech-list span + span::before {
    margin-right: 12px;
  }
  .cipher-project {
    grid-template-columns: 70px 1fr;
    padding: 30px 0;
    gap: 18px;
  }
  .cipher-symbol {
    height: 90px;
    font-size: 40px;
    margin-top: 26px;
    gap: 1px;
  }
  .cipher-text {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .cipher-project h3 {
    font-size: 30px;
  }
  .cipher-project .project-meta {
    font-size: 14px;
    gap: 10px;
  }
  .cipher-project .tech-list {
    font-size: 14px;
    gap: 8px;
  }
  .cipher-project .tech-list span + span::before {
    margin-right: 8px;
  }
  .cipher-project .project-description {
    font-size: 16px;
  }
  .cipher-project .project-links {
    gap: 20px;
    font-size: 14px;
    margin-top: 0;
  }
  .work-end {
    margin-top: 24px;
    gap: 16px;
  }
  .work-end > .eyebrow {
    font-size: 14px;
  }
  .work-end .text-link {
    font-size: 14px;
  }
  .about-heading {
    margin-bottom: 30px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-intro {
    max-width: none;
  }
  .about-intro > p {
    font-size: 16px;
  }
  .about-intro > p:first-child {
    font-size: 26px;
  }
  .about-note {
    padding-top: 32px;
    font-size: 16px;
  }
  .note-star {
    font-size: 42px;
  }
  .timeline-entry:first-child {
    padding-top: 25px;
    border-top: 1px solid var(--line);
  }
  .timeline-meta {
    font-size: 14px;
  }
  .timeline-entry h3 {
    font-size: 23px;
  }
  .timeline-entry > p:not(.company-link) {
    font-size: 16px;
  }
  .achievement h3 {
    font-size: 32px;
  }
  .compact-entry h3 {
    font-size: 19px;
  }
  .skills-section {
    padding-top: 0;
  }
  .skill-row {
    grid-template-columns: 25px 1fr;
    padding: 23px 0;
    gap: 13px 10px;
  }
  .skill-row h3 {
    font-size: 16px;
  }
  .skill-row > div {
    grid-column: 2;
    gap: 15px 22px;
  }
  .skill-row > div > span {
    font-size: 16px;
  }
  .primary-skill small {
    font-size: 14px;
  }
  .lab-section h2 {
    font-size: 41px;
    max-width: 300px;
  }
  .lab-section .section-aside {
    font-size: 16px;
  }
  .lab-toolbar {
    margin-top: 35px;
  }
  .lab-tabs {
    gap: 28px;
  }
  .lab-tabs button {
    font-size: 16px;
  }
  .lab-tabs button span {
    margin-left: 14px;
  }
  .lab-hint {
    display: none;
  }
  .map-topline {
    font-size: 14px;
    padding: 20px 15px 4px;
  }
  .dependency-map {
    min-width: 490px;
    height: 350px;
  }
  .map-instruction {
    font-size: 14px;
    padding: 8px 15px 20px;
  }
  .map-inspector {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .map-inspector > .eyebrow {
    grid-column: 1;
  }
  .map-inspector h3 {
    font-size: 30px;
  }
  .map-inspector > p:not(.inspector-label) {
    grid-row: auto;
    grid-column: 1;
    font-size: 16px;
  }
  .inspector-label {
    grid-row: auto;
    grid-column: 1;
    margin-top: 22px;
  }
  #map-connections {
    grid-row: auto;
    grid-column: 1;
  }
  .map-inspector > .text-link {
    grid-row: auto;
    grid-column: 1;
    margin-top: 24px;
  }
  .lab-foot {
    font-size: 14px;
    align-items: flex-start;
    gap: 20px;
  }
  .lab-foot > span {
    max-width: 80px;
  }
  .lab-foot button {
    max-width: 180px;
    text-align: right;
  }
  .terminal-top {
    padding: 16px;
    font-size: 14px;
  }
  .terminal-main {
    padding: 22px 16px;
    height: 350px;
  }
  .terminal-companion {
    position: absolute;
    right: 10px;
    top: 2px;
    width: 65px;
    opacity: 0.85;
    pointer-events: none;
  }
  .terminal-companion iframe {
    width: 65px;
    height: 75px;
  }
  .terminal-companion > span,
  .terminal-companion > a {
    display: none;
  }
  #terminal-output {
    font-size: 14px;
    padding-right: 0;
  }
  .terminal-welcome {
    font-size: 25px !important;
    max-width: 190px;
    margin-bottom: 28px !important;
  }
  #terminal-output > p:nth-child(2) {
    max-width: 250px;
  }
  #terminal-form {
    padding: 15px 16px;
    font-size: 14px;
    gap: 10px;
  }
  #terminal-form label span {
    margin: 0 3px;
  }
  #terminal-input {
    font-size: 14px;
  }
  .terminal-suggestions {
    font-size: 14px;
    padding-inline: 16px;
  }
  .contact-top {
    margin-bottom: 36px;
  }
  .contact-location {
    font-size: 14px;
    text-align: right;
  }
  .contact-section h2 {
    font-size: 12vw;
    line-height: 1.08;
    letter-spacing: -0.06em;
  }
  .contact-arrow {
    width: 54px;
    height: 54px;
    font-size: 29px;
    right: 0;
    bottom: 2px;
  }
  .contact-section h2 em {
    font-size: 1.02em;
  }
  .contact-bottom {
    margin-top: 36px;
    padding-top: 26px;
    gap: 25px;
  }
  .email-link {
    font-size: 18px;
    letter-spacing: -0.04em;
  }
  .copy-email {
    padding: 5px;
    margin-left: 5px;
  }
  .contact-bottom p {
    font-size: 14px;
    max-width: 280px;
  }
  .contact-socials {
    font-size: 14px;
    gap: 30px;
  }
  .contact-form-disclosure {
    margin-top: 32px;
  }
  .contact-form-disclosure summary {
    font-size: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 20px;
    padding-bottom: 28px;
  }
  .site-footer > span {
    font-size: 14px;
    text-align: right;
  }
  .site-footer > div {
    grid-column: 1/-1;
    justify-content: space-between;
    font-size: 14px;
  }
  .site-footer .wordmark {
    font-size: 30px;
  }
  .site-footer button {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }
  h1 {
    font-size: 10.7vw;
  }
  .hero-bottom > .eyebrow {
    max-width: 160px;
  }
  .portrait {
    width: 86%;
  }
  .portrait-image {
    height: 275px;
  }
  .email-link {
    font-size: 16px;
  }
  .contact-arrow {
    width: 44px;
    height: 44px;
  }
  .sentinel-controls {
    padding-inline: 12px;
    font-size: 14px;
  }
  .packet-key {
    font-size: 14px;
  }
  .radar-stage {
    gap: 22px;
  }
  .execution-flow {
    gap: 5px;
  }
  .execution-flow span {
    padding-inline: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
  .cursor {
    display: none !important;
  }
}

.skip-link {
  visibility: hidden;
}
.skip-link:focus {
  visibility: visible;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.13em;
  flex-shrink: 0;
}
.contact-arrow .icon {
  width: 0.9em;
  height: 0.9em;
}
.command-trigger .icon {
  width: 12px;
  height: 12px;
}
.note-star .icon {
  width: 1em;
  height: 1em;
}
.avatar-source {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cursor {
  opacity: 0;
}
.cursor.visible {
  opacity: 1;
}
.cursor.hidden {
  opacity: 0;
}
/* A more expressive reading rhythm: human context, generous type, visible interaction. */
:root {
  --paper: #f5f2eb;
  --ink: #273040;
  --muted: #626975;
  --line: #d4d5d3;
  --accent: #ba482e;
  --blue: #355b9d;
  --dark: #202d40;
}
body::after {
  opacity: 0.015;
}
.site-header {
  border-bottom: 0;
  height: 100px;
}
.desktop-nav {
  font-size: 16px;
  gap: 38px;
}
.command-trigger {
  font-size: 14px;
  padding: 8px 11px;
}
.wordmark {
  font-size: 47px;
}
.menu-toggle {
  font-size: 15px;
}
.hero {
  padding-top: 0;
  overflow: clip;
  background: #f0f1eb;
  isolation: isolate;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-layout {
  grid-template-columns: 1.6fr 1fr;
  gap: 25px;
  padding: 48px 0 55px;
  min-height: 620px;
}
.hero-copy {
  padding-top: 0;
}
.hero-introduction {
  font-size: 25px;
  margin-bottom: 25px;
  letter-spacing: -0.035em;
}
.hero-introduction strong {
  font-weight: 550;
}
.hello-mark {
  display: inline-block;
  color: var(--accent);
  font-size: 33px;
  vertical-align: -2px;
  margin-left: 8px;
}
.hero h1 {
  font-size: clamp(65px, 6.4vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}
.hero h1 em {
  color: var(--accent);
  font-size: 1.1em;
}
.hero-description {
  font-size: 19px;
  line-height: 1.75;
  margin: 28px 0 30px;
  max-width: 560px;
  color: #59616c;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.primary-link {
  font-size: 16px;
  padding: 18px 24px;
  gap: 30px;
  background: var(--ink);
}
.hero-actions .primary-link .icon {
  font-size: 22px;
}
.meet-dot-inline {
  font-size: 15px;
  padding: 10px 0;
  max-width: 180px;
  line-height: 1.4;
  text-align: left;
  color: #535d6c;
}
.meet-dot-inline span {
  color: var(--accent);
  display: inline-block;
  margin-left: 4px;
}
.hero-bottom {
  padding: 30px 0 32px;
  border-color: #2730402a;
  align-items: center;
}
.hero-bottom p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.025em;
  max-width: 610px;
}
.hero-bottom strong {
  font-weight: 550;
}
.hero-bottom p > a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  color: var(--accent);
}
.hero-bottom .scroll-link {
  font-size: 16px;
  gap: 24px;
  white-space: normal;
  max-width: 245px;
}
.hero-bottom .scroll-link span {
  font-size: 27px;
}
#field-canvas {
  opacity: 1;
  z-index: 0;
}
.portrait {
  max-width: 370px;
  margin: 20px 8px 0 0;
  perspective: 1100px;
  transform: rotate(-3deg);
}
.portrait::before {
  display: none;
}
.portrait-flip {
  display: block;
  width: 100%;
  height: 430px;
  position: relative;
  padding: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
  box-shadow: 0 20px 35px -24px #27304080;
}
.portrait-flip[aria-pressed="true"] {
  transform: rotateY(180deg);
}
.portrait-front,
.portrait-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 9px solid #fffdf7;
  display: block;
}
.portrait-front {
  background: #fffdf7;
}
.portrait-front img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 49% 50%;
  filter: saturate(0.9);
  transform: none;
}
.portrait:hover img {
  transform: none;
  filter: saturate(1);
}
.portrait-signature {
  position: absolute;
  left: 18px;
  bottom: 12px;
  font: italic 48px var(--serif);
  color: #fffdf7;
  text-shadow: 0 2px 20px #0006;
}
.portrait-back {
  transform: rotateY(180deg);
  background: #d9e4f1;
  text-align: left;
  padding: 28px 24px;
  color: #253d5b;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.portrait-back > span:first-child {
  font-size: 15px;
}
.portrait-back > strong {
  font: 400 45px/0.95 var(--serif);
  letter-spacing: -0.03em;
}
.portrait-back > span {
  font-size: 17px;
  line-height: 1.55;
}
.portrait-back .back-signature {
  font: italic 35px var(--serif);
  margin-top: auto;
}
.portrait figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  justify-content: center;
  margin-top: 14px;
  color: #5b646e;
  gap: 10px;
}
.portrait figcaption span {
  font-family: var(--sans);
}
h2 {
  font-size: clamp(48px, 5.2vw, 76px);
}
.section-aside {
  font-size: 18px;
  line-height: 1.7;
  max-width: 290px;
}
.section-heading {
  margin-bottom: 55px;
}
.section-space {
  padding-block: 110px;
}
.work-section {
  padding-top: 105px;
}
.project h3 {
  font-size: 52px;
  margin-bottom: 26px;
}
.project-featured {
  border: 0;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
}
.project-featured > .project-copy {
  padding: 20px 20px 20px 0;
  display: block;
}
.project-standfirst {
  font-size: 36px;
  margin-top: 0;
}
.project-description {
  font-size: 17px;
  line-height: 1.8;
  max-width: none;
  margin-top: 24px;
}
.project-description strong {
  font-weight: 550;
  color: var(--ink);
}
.project-links {
  font-size: 16px;
  gap: 30px;
  margin-top: 28px;
}
.project-links a {
  border-color: #8992a0;
  padding-bottom: 8px;
}
.project-links a span {
  margin-left: 7px;
}
.trading-visual {
  min-height: 530px;
  background: #243b56;
  color: #f2eee7;
  box-shadow: 0 14px 35px -30px #132a4f;
  border-radius: 3px;
}
.visual-topline {
  font: 18px/1.4 var(--sans);
  letter-spacing: 0;
  padding: 28px 30px;
}
.trading-visual .visual-topline {
  color: #f5efe7;
  border-color: #ffffff24;
  align-items: flex-start;
}
.visual-topline > span:last-child:not(:first-child) {
  font-size: 14px;
  max-width: 80px;
  text-align: right;
  color: #bccada;
}
.market-head {
  padding: 25px 34px 0;
  gap: 9px;
}
.market-value {
  font-size: 65px;
  color: #f4eade;
}
.market-value > span {
  color: #9eb5d0;
}
.market-explanation {
  font-size: 19px;
  line-height: 1.5;
  color: #c5d3e1;
}
.market-chart {
  height: 145px;
}
.chart-under {
  stroke: #82b2e0;
}
.chart-trace {
  stroke: #e6edff;
  animation-duration: 5s;
}
.execution-flow {
  font: 14px var(--sans);
  gap: 10px;
  margin-inline: 25px;
}
.execution-flow span {
  border-color: #ffffff40;
  padding: 10px 8px;
}
.execution-flow i {
  color: #c3d3e8;
}
.visual-footer {
  font: 14px var(--sans);
  color: #d0dceb;
  border-color: #ffffff24;
  padding: 20px 25px;
}
.visual-footer > span:last-child {
  display: none;
}
.project-pair {
  gap: 42px;
  margin-top: 65px;
}
.project-stacked .project-copy {
  padding: 30px 0 34px;
}
.project-stacked .project-visual {
  height: 340px;
  border-radius: 3px;
  transition: transform 0.6s var(--ease);
  transform: translateY(var(--lift, 0px));
}
.project-stacked h3 {
  font-size: 43px;
  margin-bottom: 20px;
}
.project-stacked .project-description {
  min-height: 0;
}
.sentinel-visual {
  background: #d9e3f0;
}
.sentinel-visual .visual-topline {
  color: #304967;
  font-size: 20px;
}
.sentinel-visual canvas {
  height: 185px;
}
.sentinel-controls {
  padding: 12px 22px;
  gap: 12px;
  flex-wrap: wrap;
  font: 14px var(--sans);
}
.sentinel-controls input {
  width: 100px;
  flex: 1;
  accent-color: #315889;
}
.sentinel-controls output {
  color: #30517b;
}
.packet-key {
  font-size: 13px;
  width: 100%;
  justify-content: flex-end;
}
.packet-key i {
  width: 6px;
  height: 6px;
  background: #496d97;
}
.packet-key i:nth-of-type(2) {
  background: #bf6242;
}
.radar-visual {
  background: #e8c990;
}
.radar-visual .visual-topline {
  color: #624b28;
  font-size: 20px;
}
.radar-stage {
  height: 200px;
  gap: 40px;
  padding-inline: 24px;
}
.radar-rings {
  width: 175px;
  height: 175px;
  flex-shrink: 0;
}
.radar-rings > span {
  border-color: #82613b55;
}
.radar-rings::before,
.radar-rings::after {
  background: #82613b66;
}
.radar-rings b {
  font-size: 50px;
  color: #725332;
}
.radar-number {
  font-size: 70px;
  color: #604a2f;
}
.radar-number span {
  font-size: 45px;
}
.radar-explanation {
  font-size: 17px;
  line-height: 1.4;
  color: #624b28;
}
.radar-pipeline {
  font: 14px var(--sans);
  gap: 10px;
  color: #6f532e;
  margin-top: 5px;
  padding-inline: 18px;
}
.cipher-project {
  grid-template-columns: 180px 1fr auto;
  gap: 40px;
  padding-block: 45px;
}
.cipher-project .project-copy {
  padding: 0;
}
.cipher-project h3 {
  font-size: 40px;
}
.cipher-project .project-description {
  max-width: 630px;
  margin-top: 0;
}
.cipher-symbol {
  height: 180px;
  background: #e4ddd2;
  color: #797160;
  border-radius: 50%;
  font-size: 90px;
}
.cipher-text {
  font-size: 30px;
}
.cipher-project .project-links {
  font-size: 15px;
  padding: 0;
}
.work-end {
  margin-top: 30px;
  gap: 30px;
  font-size: 16px;
  color: var(--muted);
}
.text-link {
  font-size: 16px;
}
.work-end .text-link {
  color: var(--ink);
  white-space: nowrap;
}
.thinking-section {
  background: #bb4a30;
  color: #fff3df;
  padding: 82px 0;
  position: relative;
  overflow: hidden;
}
.thinking-section::before {
  content: "?";
  font: 500px/0.8 var(--serif);
  position: absolute;
  left: -30px;
  top: 40px;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(-12deg);
}
.thinking-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
}
.thinking-section h2 {
  font-size: 55px;
}
.thinking-section h2 em {
  color: #ffe0a4;
}
.thinking-section h2 + p {
  font-size: 18px;
  margin-top: 25px;
  line-height: 1.6;
  color: #f5d8c9;
}
.question-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  border-bottom: 1px solid #f9dcc952;
  padding-bottom: 16px;
}
.question-tabs button {
  font-size: 16px;
  text-align: left;
  padding: 12px 0;
  color: #f1c5b4;
  position: relative;
}
.question-tabs button[aria-selected="true"] {
  color: #fff8ed;
}
.question-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffe0a4;
}
#thinking-answer {
  padding-top: 28px;
  min-height: 240px;
}
#thinking-answer p:first-child {
  font: 38px/1.1 var(--serif);
  color: #fff6e8;
}
#thinking-answer p:nth-child(2) {
  font-size: 17px;
  line-height: 1.8;
  color: #f7ddcd;
  margin-top: 18px;
  max-width: 470px;
}
#thinking-answer a {
  display: inline-block;
  font-size: 16px;
  margin-top: 24px;
  border-bottom: 1px solid #eebca5;
  padding-bottom: 5px;
}
#thinking-answer .icon {
  margin-left: 7px;
}
.thinking-section :focus-visible {
  outline-color: #ffe0a4;
}
.about-section {
  border-top: 0;
}
.about-heading {
  margin-bottom: 55px;
}
.about-layout {
  gap: 100px;
  grid-template-columns: 1fr 1fr;
}
.about-intro {
  max-width: 460px;
}
.about-intro > p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.about-intro > p:first-child {
  font-size: 33px;
}
.about-note {
  font-size: 17px;
  gap: 24px;
  padding-top: 40px;
}
.note-star {
  font-size: 55px;
}
.timeline-meta {
  font: 15px var(--sans);
  margin-bottom: 20px;
}
.timeline-entry {
  padding: 30px 0;
}
.timeline-entry h3 {
  font-size: 27px;
}
.company-link {
  font-size: 18px !important;
  margin-top: 10px !important;
}
.timeline-entry > p:not(.company-link) {
  font-size: 17px;
  line-height: 1.8;
  margin-top: 17px;
}
.timeline-stack {
  font: 15px/1.6 var(--sans);
  margin-top: 20px;
}
.achievement h3 {
  font-size: 43px;
}
.compact-entry h3 {
  font-size: 24px;
}
.skills-section {
  padding-top: 0;
}
.skill-row {
  grid-template-columns: 310px 1fr;
  padding: 32px 0;
  gap: 25px;
}
.skill-row h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.skill-row > div {
  gap: 18px 30px;
  grid-column: auto;
}
.skill-row > div > span {
  font-size: 19px;
}
.primary-skill small {
  font: 14px var(--sans);
  background: transparent;
  color: var(--accent);
  padding: 0;
  margin-left: 8px;
}
.primary-skill small::before {
  content: "— ";
}
.skill-row {
  transition:
    background 0.25s,
    padding 0.3s;
}
.skill-row:hover {
  background: #e9edf1;
  padding-inline: 15px;
}
.lab-section {
  background: #202d40;
  --line: #ffffff26;
  --muted: #bbc8d8;
  color: #f2eee7;
}
.lab-section .section-aside {
  color: #becbdc;
}
.lab-tabs button {
  font-size: 20px;
  color: #c0cad8;
  padding-bottom: 20px;
}
.lab-tabs button[aria-selected="true"] {
  color: #fff4df;
}
.lab-tabs button[aria-selected="true"]::after {
  height: 3px;
  background: #e7af6f;
}
.lab-tabs button span {
  font-size: 19px;
  color: #e7af6f;
}
.lab-hint {
  font: 15px var(--sans);
  color: #b5c2d4;
}
.map-panel {
  grid-template-columns: 1fr 330px;
  min-height: 480px;
}
.map-stage {
  background-image: radial-gradient(#afc3e129 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}
.dependency-map {
  height: 410px;
  min-width: 620px;
}
.map-node {
  font: 15px var(--sans);
  min-width: 112px;
  padding: 14px 12px;
  background: #26384e;
  border-color: #637b97;
  color: #e0e6ee;
}
.map-node[data-kind="project"] {
  min-width: 145px;
}
.map-node::before {
  background: #9eb8da;
}
.map-node.active {
  background: #e9ba82;
  border-color: #e9ba82;
  color: #25364b;
}
.map-node.active::before {
  background: #344f70;
}
.map-node.connected {
  border-color: #b4c9e5;
}
.map-node.dim {
  opacity: 0.7;
}
.map-node:hover {
  background: #3b5272;
  border-color: #d5e1f3;
}
.map-edge {
  stroke: #60728a;
}
.map-edge.active {
  stroke: #e9ba82;
  stroke-width: 2;
}
.map-instruction {
  font: 14px/1.5 var(--sans);
  color: #c4cddd;
  padding: 5px 24px 24px;
}
.map-inspector {
  padding: 30px;
}
.map-inspector #map-type {
  font-size: 15px;
  color: #b9c7d9;
}
.map-inspector h3 {
  font-size: 37px;
  margin-top: 16px;
}
.map-inspector > p:not(.inspector-label) {
  font-size: 16px;
  line-height: 1.8;
  color: #c3cddd;
}
.inspector-label {
  font: 15px var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: #b4c3d7;
  margin-top: 24px;
}
#map-connections {
  gap: 8px;
}
#map-connections button {
  font: 14px var(--sans);
  padding: 9px 12px;
  border-color: #63768e;
  color: #e3eaf3;
}
#map-connections button:hover {
  background: #3e5573;
}
.map-inspector > .text-link {
  color: #efbf89;
  font-size: 16px;
}
.inspector-foot {
  font-size: 23px;
  color: #acbdd3;
}
.lab-foot {
  font: 15px/1.6 var(--sans);
  color: #b1bfd3;
  padding-top: 25px;
}
.lab-foot button {
  font: inherit;
  color: #dce5f1;
}
.terminal-top {
  font: 15px var(--sans);
  background: #28384d;
  color: #e0e8f1;
  border-color: #ffffff26;
  padding: 20px 24px;
}
.quiet-button {
  font-size: 14px;
  color: #c5cddd;
}
.terminal-path {
  color: #b5c1d3;
}
#terminal-panel {
  background: #192638;
  min-height: 480px;
}
.terminal-main {
  height: 330px;
  padding: 28px;
}
#terminal-output {
  font:
    15px/1.9 "IBM Plex Mono",
    monospace;
  color: #d2dbea;
}
.terminal-welcome {
  font-size: 38px !important;
}
.terminal-muted {
  font-size: 14px;
  color: #aebbd0;
}
.terminal-echo {
  color: #c4d4ea !important;
}
.terminal-accent {
  color: #efbf89;
}
#terminal-form {
  font:
    14px "IBM Plex Mono",
    monospace;
  border-color: #ffffff26;
  padding: 18px 26px;
}
#terminal-form label {
  color: #c9d7ea;
}
#terminal-form label span {
  color: #aebbd0;
}
#terminal-input {
  font: inherit;
  color: #eef2f8;
}
#terminal-input::placeholder {
  color: #a5b3c6;
}
.terminal-suggestions {
  font: 14px var(--sans);
  padding: 2px 26px 22px;
  color: #aab9ce;
}
.terminal-suggestions button {
  color: #dce6f2;
}
.avatar-source {
  font-size: 13px;
  color: #bccce1;
}
.lab-section :focus-visible {
  outline-color: #efbf89;
}
.contact-top {
  justify-content: flex-end;
  margin-bottom: 35px;
}
.contact-location {
  font-size: 17px;
  line-height: 1.6;
}
.contact-section h2 {
  font-size: clamp(70px, 8.5vw, 130px);
}
.contact-bottom {
  margin-top: 55px;
  padding-top: 35px;
}
.email-link {
  font-size: 26px;
}
.contact-bottom p {
  font-size: 17px;
}
.contact-socials {
  font-size: 17px;
  gap: 26px;
}
.contact-form-disclosure {
  margin-top: 44px;
}
.contact-form-disclosure > summary {
  font-size: 17px;
  padding: 23px 0;
}
#contact-form label {
  font-size: 16px;
}
#contact-form input:not([type="hidden"]),
#contact-form textarea {
  font-size: 18px;
  padding: 15px 0;
}
.form-bottom p {
  font-size: 15px;
}
.site-footer {
  padding-bottom: 45px;
}
.site-footer > span {
  font: 14px var(--sans);
}
.site-footer > div,
.site-footer button {
  font-size: 14px;
}
.command-head h2 {
  font-size: 38px;
}
.command-head button {
  font: 14px var(--sans);
}
#command-search {
  font-size: 18px;
}
#command-results button {
  font-size: 17px;
}
#command-results button span:last-child {
  font: 14px var(--sans);
}
.command-foot {
  font: 14px var(--sans);
}
.toast {
  font-size: 16px;
}
/* Kirby is the original Avatar Lab preset, colored for this portfolio. */
#dot-character {
  position: fixed;
  z-index: 42;
  left: 0;
  top: 0;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 9px 6px #192b3e1a);
  will-change: transform;
  isolation: isolate;
}
#dot-character iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  display: block;
}
#dot-avatar-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0;
  background: transparent;
}
#dot-character.following {
  pointer-events: none;
}
#dot-character.following #dot-avatar-hit {
  pointer-events: none;
}
#dot-character.resting {
  display: none;
}
#dot-launcher {
  position: fixed;
  z-index: 43;
  bottom: 20px;
  right: 24px;
  font: 15px var(--sans);
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #27304030;
  border-radius: 30px;
  box-shadow: 0 4px 20px #2730400a;
}
#dot-launcher:hover {
  background: #e1e8ef;
}
#dot-bubble {
  position: fixed;
  z-index: 41;
  bottom: auto;
  right: auto;
  width: min(290px, calc(100vw - 24px));
  max-width: none;
  background: #fffdf6;
  border: 1px solid #d6d7d4;
  border-radius: 16px;
  padding: 17px 33px 17px 19px;
  font-size: 16px;
  line-height: 1.45;
  color: #334258;
  box-shadow: 0 8px 25px #1d2d4810;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.2s,
    transform 0.3s;
}
#dot-bubble.shown {
  opacity: 1;
  transform: none;
}
#dot-bubble::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fffdf6;
  border-right: 1px solid #d6d7d4;
  border-bottom: 1px solid #d6d7d4;
  left: var(--tail-x, 80%);
  bottom: -6px;
  transform: rotate(45deg);
}
#dot-bubble.below::after {
  top: -6px;
  bottom: auto;
  transform: rotate(225deg);
}
#dot-dismiss {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: 20px var(--sans);
  color: #68707b;
  visibility: hidden;
  pointer-events: none;
}
#dot-bubble.shown #dot-dismiss {
  visibility: visible;
  pointer-events: auto;
}
#dot-dismiss:hover {
  background: #eee6db;
  color: var(--ink);
}
#dot-panel {
  position: fixed;
  z-index: 46;
  bottom: 145px;
  right: 25px;
  width: 330px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  background: #f9f6ef;
  border: 1px solid #cbd0d5;
  border-radius: 14px;
  padding: 23px;
  color: #293b53;
  box-shadow: 0 15px 60px #1e304c26;
}
.dot-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dot-panel-heading h2 {
  font-size: 38px;
  letter-spacing: -0.04em;
}
.dot-panel-heading button {
  font-size: 28px;
  padding: 4px;
  line-height: 1;
}
#dot-panel > p {
  font-size: 16px;
  line-height: 1.6;
  margin: 18px 0;
}
#dot-panel > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  font-size: 15px;
  text-align: left;
  border-top: 1px solid #d7d9d8;
}
#dot-panel > button:hover {
  color: var(--accent);
}
#dot-follow[aria-pressed="true"] {
  color: var(--accent);
}
.dot-credit {
  border-top: 1px solid #d7d9d8;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}
.dot-credit a:hover {
  text-decoration: underline;
}
.motion-paused #dot-character {
  will-change: auto;
}
.motion-paused .portrait-flip {
  transition: none;
}
.motion-paused .project-stacked .project-visual {
  transform: none;
}
@media (min-width: 1600px) {
  .hero-layout {
    min-height: 680px;
  }
  .portrait {
    max-width: 420px;
  }
  .portrait-flip {
    height: 480px;
  }
  .hero h1 {
    font-size: 101px;
  }
}
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1.65fr 1fr;
    min-height: 590px;
    gap: 20px;
    padding-top: 40px;
  }
  .hero h1 {
    font-size: 6.4vw;
  }
  .hero-introduction {
    font-size: 24px;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-actions {
    gap: 14px;
  }
  .primary-link {
    font-size: 15px;
    padding: 16px 20px;
  }
  .meet-dot-inline {
    font-size: 14px;
    max-width: 170px;
  }
  .portrait {
    margin-right: 0;
    max-width: 330px;
  }
  .portrait-flip {
    height: 360px;
  }
  .portrait-back {
    padding: 20px;
    gap: 13px;
  }
  .portrait-back > strong {
    font-size: 37px;
  }
  .portrait-back > span {
    font-size: 15px;
  }
  .portrait figcaption {
    font-size: 17px;
  }
  .hero-bottom p {
    font-size: 17px;
  }
  .hero-bottom .scroll-link {
    font-size: 15px;
  }
  .project-featured {
    gap: 24px;
  }
  .project-description {
    font-size: 16px;
  }
  .project h3 {
    font-size: 44px;
  }
  .project-standfirst {
    font-size: 32px;
  }
  .trading-visual {
    min-height: 530px;
  }
  .market-value {
    font-size: 52px;
  }
  .visual-topline {
    font-size: 17px;
    padding: 25px 22px;
  }
  .visual-topline > span:last-child:not(:first-child) {
    font-size: 13px;
  }
  .execution-flow {
    font-size: 12px;
    gap: 5px;
    margin-inline: 17px;
  }
  .execution-flow span {
    padding-inline: 6px;
  }
  .visual-footer {
    font-size: 14px;
    padding-inline: 22px;
  }
  .project-stacked .visual-topline {
    font-size: 19px;
  }
  .radar-rings {
    width: 145px;
    height: 145px;
  }
  .radar-stage {
    gap: 23px;
    padding-inline: 20px;
  }
  .radar-explanation {
    font-size: 16px;
  }
  .radar-number {
    font-size: 60px;
  }
  .radar-pipeline {
    font-size: 12px;
    gap: 8px;
  }
  .sentinel-controls {
    font-size: 14px;
  }
  .sentinel-controls input {
    width: 80px;
  }
  .project-stacked h3 {
    font-size: 37px;
  }
  .cipher-project {
    grid-template-columns: 140px 1fr;
    gap: 25px;
  }
  .cipher-symbol {
    height: 140px;
    font-size: 74px;
  }
  .cipher-project .project-links {
    grid-column: 2;
    flex-direction: row;
    margin-top: 0;
    gap: 25px;
  }
  .thinking-layout {
    gap: 45px;
  }
  .thinking-section h2 {
    font-size: 48px;
  }
  .question-tabs {
    gap: 0 18px;
  }
  .question-tabs button {
    font-size: 15px;
  }
  .about-layout {
    gap: 60px;
  }
  .about-intro > p {
    font-size: 17px;
  }
  .timeline-entry > p:not(.company-link) {
    font-size: 16px;
  }
  .timeline-entry h3 {
    font-size: 24px;
  }
  .skill-row {
    grid-template-columns: 260px 1fr;
  }
  .skill-row h3,
  .skill-row > div > span {
    font-size: 17px;
  }
  .skill-row > div {
    gap: 18px 25px;
  }
  .map-panel {
    grid-template-columns: 1fr;
  }
  .map-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    min-height: 245px;
  }
  .map-inspector #map-type {
    grid-column: 1;
  }
  .map-inspector h3 {
    grid-column: 1;
    grid-row: 2;
    margin-top: 12px;
  }
  .map-inspector > p:not(.inspector-label) {
    grid-column: 1;
    grid-row: 3/6;
    margin-top: 12px;
  }
  .inspector-label {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-top: 0;
  }
  #map-connections {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }
  .map-inspector > .text-link {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
    align-self: start;
    margin-top: 20px;
  }
  .inspector-foot {
    display: none;
  }
  .contact-socials {
    font-size: 16px;
    gap: 20px;
  }
  .email-link {
    font-size: 23px;
  }
  .contact-bottom p {
    font-size: 16px;
  }
}
@media (max-width: 800px) {
  .hero-layout {
    gap: 22px;
    min-height: 510px;
    padding-top: 30px;
    padding-bottom: 35px;
  }
  .hero-introduction {
    font-size: 21px;
    margin-bottom: 22px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.7;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .meet-dot-inline {
    max-width: none;
    font-size: 14px;
  }
  .portrait-flip {
    height: 310px;
  }
  .portrait-back {
    padding: 17px;
    gap: 12px;
  }
  .portrait-back > strong {
    font-size: 30px;
  }
  .portrait-back > span {
    font-size: 14px;
    line-height: 1.45;
  }
  .portrait-back > span:first-child {
    font-size: 13px;
  }
  .portrait-back .back-signature {
    font-size: 28px;
  }
  .portrait figcaption {
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
  }
  .portrait-signature {
    font-size: 40px;
  }
  .hero-bottom {
    gap: 25px;
  }
  .hero-bottom p {
    font-size: 16px;
  }
  .hero-bottom .scroll-link {
    font-size: 14px;
    gap: 15px;
  }
  .section-space {
    padding-block: 80px;
  }
  h2 {
    font-size: 52px;
  }
  .section-aside {
    font-size: 17px;
  }
  .section-heading {
    gap: 30px;
    margin-bottom: 38px;
  }
  .project-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-featured > .project-copy {
    padding: 0;
    display: block;
  }
  .project-featured .project-description {
    margin-top: 22px;
  }
  .project-featured .project-links {
    margin-top: 25px;
  }
  .trading-visual {
    min-height: 480px;
  }
  .market-value {
    font-size: 62px;
  }
  .market-head {
    padding-top: 20px;
  }
  .market-explanation {
    font-size: 19px;
  }
  .market-chart {
    height: 135px;
  }
  .execution-flow {
    justify-content: space-between;
    font-size: 15px;
    margin-inline: 30px;
    gap: 16px;
  }
  .execution-flow span {
    padding: 11px 18px;
  }
  .visual-footer {
    font-size: 15px;
  }
  .project-pair {
    gap: 28px;
    margin-top: 45px;
  }
  .project-stacked .project-visual {
    height: 345px;
  }
  .project-stacked .visual-topline {
    padding: 22px;
    font-size: 18px;
    min-height: 82px;
  }
  .radar-stage {
    height: 185px;
    gap: 15px;
    padding: 0 16px;
  }
  .radar-rings {
    width: 125px;
    height: 125px;
  }
  .radar-number {
    font-size: 50px;
  }
  .radar-explanation {
    font-size: 14px;
  }
  .radar-pipeline {
    font-size: 12px;
    gap: 8px;
    padding: 10px 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .sentinel-visual canvas {
    height: 155px;
  }
  .sentinel-controls {
    padding: 10px 17px;
    font-size: 14px;
    gap: 8px;
  }
  .packet-key {
    font-size: 13px;
    margin-top: 6px;
  }
  .project-stacked h3 {
    font-size: 32px;
  }
  .project-links {
    font-size: 16px;
  }
  .project-stacked .project-description {
    font-size: 16px;
    min-height: 0;
  }
  .thinking-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .thinking-section {
    padding: 60px 0;
  }
  .thinking-section h2 {
    font-size: 52px;
  }
  .thinking-section h2 + p {
    margin-top: 20px;
  }
  .question-tabs button {
    font-size: 17px;
  }
  .question-tabs {
    gap: 0 25px;
  }
  #thinking-answer {
    min-height: 0;
    padding-top: 25px;
  }
  #thinking-answer p:first-child {
    font-size: 37px;
  }
  #thinking-answer p:nth-child(2) {
    max-width: none;
  }
  .about-layout {
    gap: 40px;
  }
  .about-intro > p {
    font-size: 17px;
  }
  .about-intro > p:first-child {
    font-size: 29px;
  }
  .timeline-meta {
    font-size: 14px;
    gap: 18px;
    line-height: 1.4;
  }
  .timeline-entry h3 {
    font-size: 23px;
  }
  .company-link {
    font-size: 17px !important;
  }
  .timeline-entry > p:not(.company-link) {
    font-size: 16px;
  }
  .timeline-stack {
    font-size: 14px;
  }
  .about-note {
    font-size: 16px;
    gap: 18px;
  }
  .note-star {
    font-size: 40px;
  }
  .skill-row {
    grid-template-columns: 220px 1fr;
    padding-block: 28px;
  }
  .skill-row h3,
  .skill-row > div > span {
    font-size: 17px;
  }
  .skill-row > div {
    gap: 14px 23px;
  }
  .skills-section {
    padding-top: 0;
  }
  .lab-section h2 {
    font-size: 49px;
  }
  .lab-section .section-aside {
    font-size: 17px;
  }
  .lab-hint {
    font-size: 14px;
    max-width: 190px;
    text-align: right;
  }
  .lab-tabs {
    gap: 25px;
  }
  .lab-tabs button {
    font-size: 18px;
  }
  .lab-tabs button span {
    margin-left: 15px;
  }
  .map-inspector {
    padding: 26px;
  }
  .map-node {
    font-size: 14px;
  }
  .dependency-map {
    min-width: 620px;
  }
  .map-inspector h3 {
    font-size: 32px;
  }
  .map-inspector > p:not(.inspector-label) {
    font-size: 16px;
  }
  .lab-foot {
    font-size: 14px;
  }
  .contact-section h2 {
    font-size: 10vw;
  }
  .contact-location {
    font-size: 16px;
  }
  .contact-bottom {
    gap: 28px;
  }
  .contact-socials {
    font-size: 17px;
  }
  .contact-arrow {
    width: 90px;
    height: 90px;
  }
  .site-footer > span {
    font-size: 13px;
  }
  .site-footer > div {
    gap: 20px;
  }
  #dot-character {
    width: 92px;
    height: 92px;
  }
  #dot-launcher {
    font-size: 14px;
    padding: 7px 12px;
  }
  #dot-panel {
    bottom: 130px;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 82px;
  }
  .wordmark {
    font-size: 39px;
  }
  .menu-toggle {
    font-size: 15px;
  }
  .command-trigger {
    font-size: 13px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 30px 0 35px;
    gap: 34px;
  }
  .hero-introduction {
    font-size: 22px;
    margin-bottom: 25px;
  }
  .hero-introduction .hello-mark {
    font-size: 26px;
  }
  .hero h1 {
    font-size: 10.8vw;
    line-height: 1.05;
  }
  .hero-description {
    font-size: 17px;
    line-height: 1.7;
    max-width: 360px;
    margin: 24px 0;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero .primary-link {
    font-size: 15px;
    padding: 17px 22px;
    gap: 30px;
  }
  .meet-dot-inline {
    font-size: 15px;
    max-width: none;
  }
  .portrait {
    width: 82%;
    max-width: 330px;
    justify-self: center;
    margin: 12px 0 0;
    transform: rotate(-3deg);
  }
  .portrait-flip {
    height: 350px;
  }
  .portrait-back {
    padding: 24px 21px;
    gap: 17px;
  }
  .portrait-back > strong {
    font-size: 39px;
  }
  .portrait-back > span {
    font-size: 16px;
  }
  .portrait-back > span:first-child {
    font-size: 14px;
  }
  .portrait-back .back-signature {
    font-size: 32px;
  }
  .portrait figcaption {
    font-size: 17px;
    line-height: 1.3;
    margin-top: 15px;
  }
  .portrait-signature {
    font-size: 43px;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 25px 0 30px;
  }
  .hero-bottom p {
    font-size: 17px;
    max-width: 330px;
    line-height: 1.65;
  }
  .hero-bottom .scroll-link {
    font-size: 15px !important;
    max-width: none;
    gap: 20px !important;
  }
  .hero-bottom .scroll-link span {
    font-size: 22px;
  }
  .section-space {
    padding-block: 65px;
  }
  .section-heading {
    margin-bottom: 35px;
    display: block;
  }
  h2 {
    font-size: 45px;
    line-height: 1.08;
  }
  .section-aside {
    font-size: 17px;
    margin-top: 20px;
    max-width: none;
    line-height: 1.6;
  }
  .project-featured {
    gap: 30px;
  }
  .project-featured > .project-copy {
    padding: 0;
  }
  .project h3 {
    font-size: 43px;
    margin-bottom: 20px;
  }
  .project-featured .project-standfirst {
    font-size: 33px;
    line-height: 1.1;
    margin-top: 0;
  }
  .project-featured .project-description {
    font-size: 16px;
    margin-top: 23px;
    line-height: 1.85;
  }
  .project-featured .project-links {
    font-size: 16px;
    margin-top: 25px;
  }
  .trading-visual {
    min-height: 460px;
  }
  .visual-topline {
    padding: 22px 20px;
    font-size: 18px;
  }
  .visual-topline > span:last-child:not(:first-child) {
    font-size: 13px;
  }
  .market-head {
    padding: 21px 22px 0;
    gap: 12px;
  }
  .market-value {
    font-size: 50px;
  }
  .market-explanation {
    font-size: 17px;
  }
  .market-chart {
    height: 125px;
    width: calc(100% - 40px);
  }
  .execution-flow {
    font-size: 12px;
    margin: 0 14px 20px;
    gap: 6px;
    justify-content: space-between;
  }
  .execution-flow span {
    padding: 10px 7px;
  }
  .execution-flow .icon {
    width: 12px;
  }
  .visual-footer {
    font-size: 14px;
    padding: 18px 20px;
  }
  .project-pair {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 40px;
  }
  .project-stacked .project-visual {
    height: 330px;
  }
  .project-stacked .visual-topline {
    font-size: 20px;
    padding: 24px 22px;
    min-height: 0;
    display: block;
  }
  .sentinel-visual canvas {
    height: 175px;
  }
  .sentinel-controls {
    font-size: 15px;
    padding: 10px 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .sentinel-controls input {
    flex: 1;
    min-width: 60px;
  }
  .packet-key {
    font-size: 13px;
    width: 100%;
    margin-top: 4px;
    justify-content: flex-end;
  }
  .radar-stage {
    height: 185px;
    gap: 24px;
    padding-inline: 20px;
  }
  .radar-rings {
    width: 155px;
    height: 155px;
  }
  .radar-number {
    font-size: 64px;
  }
  .radar-explanation {
    font-size: 16px;
  }
  .radar-pipeline {
    font-size: 12px;
    padding: 12px 20px;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .radar-pipeline .icon {
    width: 10px;
  }
  .project-stacked .project-copy {
    padding: 26px 0 30px;
  }
  .project-stacked h3 {
    font-size: 37px;
    margin-bottom: 20px;
  }
  .project-stacked .project-description {
    font-size: 16px;
    line-height: 1.85;
  }
  .project-links {
    font-size: 16px;
    gap: 28px;
  }
  .cipher-project {
    grid-template-columns: 80px 1fr;
    gap: 23px 20px;
    padding: 35px 0;
  }
  .cipher-symbol {
    height: 80px;
    font-size: 48px;
    align-self: start;
    margin-top: 0;
    gap: 1px;
  }
  .cipher-text {
    font-size: 18px;
  }
  .cipher-project h3 {
    font-size: 33px;
    margin: 0 0 20px;
  }
  .cipher-project .project-description {
    font-size: 16px;
    line-height: 1.8;
  }
  .cipher-project .project-links {
    font-size: 15px;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 0;
  }
  .work-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
  }
  .work-end .text-link {
    font-size: 16px;
  }
  .thinking-section {
    padding: 55px 0;
  }
  .thinking-section h2 {
    font-size: 43px;
  }
  .thinking-section h2 + p {
    font-size: 17px;
  }
  .question-tabs {
    gap: 0 18px;
    padding-bottom: 12px;
  }
  .question-tabs button {
    font-size: 15px;
    padding: 12px 0;
  }
  #thinking-answer p:first-child {
    font-size: 35px;
  }
  #thinking-answer p:nth-child(2) {
    font-size: 16px;
  }
  #thinking-answer a {
    font-size: 15px;
  }
  .about-heading {
    margin-bottom: 35px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-intro > p {
    font-size: 17px;
    line-height: 1.8;
  }
  .about-intro > p:first-child {
    font-size: 30px;
  }
  .about-intro .text-link {
    font-size: 17px;
  }
  .about-note {
    font-size: 17px;
    padding-top: 32px;
  }
  .timeline-entry {
    padding: 28px 0;
  }
  .timeline-meta {
    font-size: 15px;
  }
  .timeline-entry h3 {
    font-size: 25px;
  }
  .company-link {
    font-size: 17px !important;
  }
  .timeline-entry > p:not(.company-link) {
    font-size: 17px;
    line-height: 1.8;
  }
  .timeline-stack {
    font-size: 15px;
  }
  .achievement h3 {
    font-size: 41px;
  }
  .compact-entry h3 {
    font-size: 22px;
  }
  .skills-section {
    padding-top: 0;
  }
  .skill-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0;
  }
  .skill-row h3 {
    font-size: 20px;
  }
  .skill-row > div {
    grid-column: 1;
    gap: 17px 24px;
  }
  .skill-row > div > span {
    font-size: 17px;
  }
  .primary-skill small {
    font-size: 14px;
  }
  .lab-section h2 {
    font-size: 44px;
    max-width: none;
  }
  .lab-section .section-aside {
    font-size: 17px;
  }
  .lab-tabs button {
    font-size: 18px;
  }
  .lab-tabs button span {
    font-size: 17px;
    margin-left: 12px;
  }
  .lab-hint {
    display: none;
  }
  .map-panel {
    min-height: 0;
  }
  .dependency-map {
    height: 360px;
    min-width: 620px;
  }
  .map-node {
    font-size: 14px;
    padding: 13px 10px;
  }
  .map-instruction {
    font-size: 14px;
    padding: 7px 20px 22px;
    align-items: flex-start;
  }
  .map-instruction .status-dot {
    margin-top: 7px;
  }
  .map-inspector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    gap: 0;
    min-height: 0;
  }
  .map-inspector #map-type {
    font-size: 15px;
  }
  .map-inspector h3 {
    font-size: 34px;
    margin-top: 15px;
  }
  .map-inspector > p:not(.inspector-label) {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 15px;
  }
  .inspector-label {
    font-size: 15px;
    margin: 24px 0 12px;
  }
  #map-connections button {
    font-size: 15px;
  }
  .map-inspector > .text-link {
    font-size: 16px;
    margin-top: 24px;
  }
  .lab-foot {
    font-size: 14px;
    gap: 25px;
  }
  .lab-foot > span {
    max-width: 90px;
  }
  .lab-foot button {
    max-width: 205px;
  }
  .terminal-top {
    font-size: 14px;
    padding: 17px 18px;
  }
  .quiet-button {
    font-size: 14px;
  }
  .terminal-main {
    height: 360px;
    padding: 23px 18px;
  }
  #terminal-output {
    font:
      13px/1.9 "IBM Plex Mono",
      monospace;
  }
  .terminal-welcome {
    font-size: 31px !important;
    max-width: none;
    margin-bottom: 25px !important;
  }
  .terminal-muted {
    font-size: 13px;
  }
  #terminal-output > p:nth-child(2) {
    max-width: none;
  }
  #terminal-form {
    font-size: 13px;
    padding: 15px 18px;
    gap: 10px;
  }
  #terminal-input {
    font:
      13px "IBM Plex Mono",
      monospace;
  }
  .terminal-suggestions {
    font-size: 14px;
    padding: 6px 18px 20px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .avatar-source {
    margin-left: 0;
    font-size: 13px;
  }
  .contact-location {
    font-size: 16px;
    text-align: left;
  }
  .contact-top {
    justify-content: flex-start;
    margin-bottom: 30px;
  }
  .contact-section h2 {
    font-size: 12vw;
    line-height: 1.1;
  }
  .contact-arrow {
    width: 52px;
    height: 52px;
    font-size: 29px;
  }
  .contact-bottom {
    gap: 25px;
    margin-top: 35px;
    padding-top: 26px;
  }
  .email-link {
    font-size: 20px;
  }
  .contact-bottom p {
    font-size: 16px;
    max-width: none;
    line-height: 1.7;
  }
  .contact-socials {
    font-size: 17px;
    gap: 27px;
  }
  .contact-form-disclosure > summary {
    font-size: 17px;
    line-height: 1.5;
    gap: 20px;
  }
  #contact-form label {
    font-size: 16px;
  }
  #contact-form input:not([type="hidden"]),
  #contact-form textarea {
    font-size: 17px;
  }
  .form-bottom p {
    font-size: 15px;
  }
  .site-footer > span {
    font-size: 13px;
  }
  .site-footer > div,
  .site-footer button {
    font-size: 14px;
  }
  .site-footer {
    padding-bottom: 130px;
  }
  .command-head h2 {
    font-size: 34px;
  }
  .command-head button {
    font-size: 13px;
  }
  #command-search {
    font-size: 17px;
  }
  #command-results button {
    font-size: 16px;
  }
  .command-foot {
    font-size: 13px;
  }
  #dot-character {
    width: 92px;
    height: 92px;
  }
  #dot-launcher {
    right: 16px;
    bottom: 15px;
    font-size: 14px;
    padding: 7px 12px;
  }
  #dot-panel {
    right: 16px;
    bottom: 118px;
    width: 320px;
    max-height: calc(100dvh - 145px);
    overflow: auto;
  }
  #dot-bubble {
    right: auto;
    bottom: auto;
    font-size: 16px;
    width: min(270px, calc(100vw - 24px));
    max-width: none;
  }
  .dot-panel-heading h2 {
    font-size: 35px;
  }
  .dot-credit {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 10.5vw;
  }
  .hero-introduction {
    font-size: 21px;
  }
  .portrait {
    width: 90%;
  }
  .portrait-flip {
    height: 325px;
  }
  .portrait-back > strong {
    font-size: 34px;
  }
  .portrait-back > span {
    font-size: 15px;
  }
  .radar-rings {
    width: 130px;
    height: 130px;
  }
  .radar-stage {
    gap: 20px;
  }
  .radar-number {
    font-size: 55px;
  }
  .radar-explanation {
    font-size: 15px;
  }
  .radar-pipeline {
    gap: 6px;
    font-size: 11px;
    padding-inline: 15px;
  }
  .execution-flow {
    font-size: 11px;
    gap: 4px;
  }
  .cipher-project {
    grid-template-columns: 1fr;
  }
  .cipher-symbol {
    display: none;
  }
  .cipher-project .project-links {
    grid-column: 1;
  }
  .email-link {
    font-size: 18px;
  }
  .contact-arrow {
    width: 42px;
    height: 42px;
  }
  .hero-bottom p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-flip {
    transition: none;
  }
  .project-stacked .project-visual {
    transform: none;
  }
  #dot-character {
    will-change: auto;
  }
}
.visual-footer {
  align-items: center;
  gap: 20px;
}
.visual-footer button,
.radar-pipeline button {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 16px;
  padding: 0;
  color: inherit;
}
.visual-footer button {
  color: #fff5e6;
}
.visual-footer output {
  font-size: 14px;
  text-align: right;
  line-height: 1.4;
  color: #c9d7e7;
}
.visual-footer button:disabled,
.radar-pipeline button:disabled {
  cursor: progress;
  opacity: 0.6;
}
.visual-footer button:hover:not(:disabled),
.radar-pipeline button:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.execution-flow span {
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.execution-flow span.current {
  background: #d4e5fa;
  border-color: #d4e5fa;
  color: #243b56;
}
.trading-visual.running .chart-trace {
  animation-duration: 1.2s;
}
.radar-pipeline {
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  padding: 0 26px;
}
.radar-pipeline output {
  font: 14px/1.4 var(--sans);
  text-align: right;
  max-width: 145px;
}
.radar-visual.searching .radar-sweep {
  animation-duration: 1.4s;
}
.radar-visual.searching .radar-point {
  animation-duration: 0.45s;
}
.site-footer {
  padding-right: 140px;
}
.hero-actions .meet-dot-inline span {
  white-space: nowrap;
}
.portrait-flip:active {
  scale: 0.985;
}
.portrait-flip {
  transition:
    transform 0.9s var(--ease),
    scale 0.2s;
}
.question-tabs button:active,
.primary-link:active {
  scale: 0.98;
}
.hero-introduction {
  margin-top: 0;
}
.hero .primary-link:focus-visible {
  outline-offset: 5px;
}
@media (max-width: 800px) {
  .visual-footer button,
  .radar-pipeline button {
    font-size: 15px;
  }
  .visual-footer output {
    font-size: 14px;
  }
  .radar-pipeline {
    padding-inline: 20px;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .radar-pipeline output {
    font-size: 14px;
    text-align: left;
    max-width: none;
  }
  .site-footer {
    padding-right: 130px;
  }
}
@media (max-width: 600px) {
  .visual-footer {
    padding: 18px 20px;
    gap: 16px;
  }
  .visual-footer button {
    font-size: 15px;
  }
  .visual-footer output {
    font-size: 13px;
    max-width: 140px;
  }
  .radar-pipeline {
    flex-wrap: nowrap;
    padding-inline: 22px;
    align-items: center;
    gap: 14px;
  }
  .radar-pipeline button {
    font-size: 15px;
  }
  .radar-pipeline output {
    font-size: 13px;
    text-align: right;
    max-width: 140px;
  }
  .site-footer {
    padding-right: 0;
  }
}
