@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --surface: #fdfcf8;
  --ink: #21231d;
  --muted: #55574e;
  --line: #deddd3;
  --accent: #f28a65;
  --accent-hover: #f6a184;
  --focus: #9a3c20;
  --night: #121416;
  --phosphor: #ffa880;
  --night-muted: #bdc0bc;
  --display: "Space Grotesk", "Avenir Next", sans-serif;
  --body: system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 5.6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid #ffffff1c;
}

:is(.site-header, .hero-band) :focus-visible { outline-color: var(--phosphor); }
.site-header .main-nav a { color: var(--night-muted); }
.site-header .main-nav a:hover, .hero-band .text-link:hover { color: var(--phosphor); }
.site-header .header-contact { border-color: #ffffff38; }
.site-header .header-contact:hover { border-color: var(--phosphor); background: #252421; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.65rem;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 2.75rem;
  height: auto;
  flex: none;
}

.main-nav, .social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.main-nav a, .text-link, .button {
  font: 600 0.94rem/1.2 var(--display);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  min-height: 2.75rem;
}

.main-nav a:hover, .text-link:hover {
  color: var(--focus);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  white-space: nowrap;
}

.button {
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button-outline { border-color: var(--line); }
.button-outline:hover { border-color: var(--ink); background: var(--surface); }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--ink); }
.header-contact { justify-self: end; min-height: 2.75rem; }
.arrow { font: 500 1.08em/1 var(--body); }

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--paper);
  background: var(--night);
}

.hero-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, #abb6bd36 0.8px, transparent 1.1px);
  background-size: 19px 19px;
  mask-image: linear-gradient(105deg, #0002 4%, #0009 41%, black 77%, #0006);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.75rem, 4.2vw, 4.5rem);
  padding-block: clamp(2.9rem, 4.5vw, 4.4rem) clamp(3.1rem, 4.9vw, 4.7rem);
}

.eyebrow {
  color: #d0c8bb;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.1rem, 2.35vw, 2rem);
  font: 500 clamp(0.63rem, 1.1vw, 0.76rem)/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.accent-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font: 700 clamp(4.5rem, 9.15vw, 8.65rem)/0.85 var(--display);
  letter-spacing: -0.065em;
}

.section-heading h2 span, .contact-section h2 span { color: var(--accent); }
.matrix-name { color: var(--phosphor); }

@supports (background-clip: text) {
  .matrix-name {
    background-color: #523428;
    background-image: radial-gradient(circle, var(--phosphor) 52%, transparent 65%);
    background-size: 4px 4px;
    background-clip: text;
    color: transparent;
  }
}

.hero-description {
  max-width: 29rem;
  margin-top: clamp(1.5rem, 2.7vw, 2.35rem);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--night-muted);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.45rem;
  margin-top: 1.65rem;
}

.atlas {
  min-width: 0;
  margin: 0;
  color: var(--night-muted);
  font: 0.84rem/1.25 var(--mono);
}

.atlas-heading, .atlas-console {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.7rem;
  border-block: 1px solid #ffffff28;
}

.atlas-heading {
  justify-content: space-between;
  border-bottom: 0;
}

#atlas-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eae9df;
}

.atlas-sign {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--phosphor);
  box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 3px var(--phosphor);
  transform: rotate(45deg);
}

.motion-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  color: var(--night-muted);
  font: inherit;
  cursor: pointer;
}

.motion-switch:hover { color: var(--phosphor); }
.motion-switch i { width: 7px; height: 9px; border-inline: 2px solid currentColor; }
[data-motion="off"] .motion-switch i {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 5px 0 5px 7px;
  border-left-color: currentColor;
}

.atlas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58;
  background: radial-gradient(ellipse at 52% 50%, #623e452b, transparent 70%);
}

.atlas-stage canvas, .atlas-poster, .atlas-nodes {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.atlas-poster { object-fit: contain; }
.atlas-nodes { pointer-events: none; }

.atlas-nodes button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bbb7c6;
  font: 1.07rem/1 var(--mono);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: #ffa88026;
}

.atlas-nodes button span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid #757580;
  border-radius: 50%;
  background: var(--night);
}

.atlas-nodes button:is(:hover, :focus-visible, [aria-pressed="true"]) span {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.atlas-nodes button[aria-pressed="true"] span { box-shadow: 0 0 0 4px #f9a58214; }
.atlas-nodes button[data-project="excali"] { left: 13%; top: 19%; }
.atlas-nodes button[data-project="chat-jarvis"] { left: 87%; top: 22%; }
.atlas-nodes button[data-project="monteq-ai"] { left: 93%; top: 75%; }
.atlas-nodes button[data-project="autonoma"] { left: 44%; top: 91%; }
.atlas-nodes button[data-project="rustsmith"] { left: 7%; top: 69%; }

.atlas-console {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom: 0;
}

.atlas-console label {
  color: #b8afa2;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.atlas-console input {
  min-width: 0;
  width: 100%;
  padding: 0.4rem 0.35rem;
  border: 0;
  border-bottom: 1px dashed #e1d9c936;
  border-radius: 0;
  color-scheme: dark;
  background: transparent;
  color: var(--paper);
  font: inherit;
}

.atlas-console input::placeholder { color: #b8b4a8; }
.atlas-result a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.7rem; color: var(--phosphor); }
.atlas-result a:hover { text-decoration: underline; text-underline-offset: 0.2rem; }

@media (forced-colors: active) {
  .matrix-name { color: CanvasText; }
  .atlas-nodes button span { border-color: ButtonText; }
}

.section {
  padding-block: clamp(2.65rem, 5.15vw, 4.7rem) clamp(3.4rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.projects-section { padding-top: clamp(2.65rem, 4vw, 3.6rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.45rem);
}

.section-heading h2, .contact-section h2 {
  font: 700 clamp(3rem, 5.6vw, 5.15rem)/0.96 var(--display);
  letter-spacing: -0.065em;
}

.section-heading p {
  max-width: 29rem;
  padding-bottom: 0.15rem;
  color: var(--muted);
  text-wrap: pretty;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.9rem, 1.65vw, 1.5rem);
}

.project-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  overflow: clip;
}

.project-card.featured { grid-column: span 3; }
.project-card:target { border-color: #ba7958; }

.project-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.project-card.featured .project-art { aspect-ratio: 2.34 / 1; }

.project-art::after {
  content: var(--project-glyph);
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 0.95rem/1 var(--mono);
}

.project-art::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, currentColor 1px, transparent 1px) center / 16px 16px;
  opacity: 0.14;
  mask-image: linear-gradient(120deg, black 2%, transparent 90%);
}

.art-excali { --project-glyph: "◇"; color: #544c73; background: #e7e2f6; }
.art-jarvis { --project-glyph: "≋"; color: #315b4c; background: #dbece0; }
.art-monteq { --project-glyph: "∿"; color: #846724; background: #f3e7c5; }
.art-autonoma { --project-glyph: "⋈"; color: #3e5c80; background: #dbe5f0; }
.art-rustsmith { --project-glyph: "λ"; color: #8a4b38; background: #f4ded1; }

.diagram {
  position: relative;
  width: min(82%, 19.5rem);
  height: 58%;
  max-height: 7.6rem;
}

.diagram-node {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 0.36rem;
  padding-inline: 10%;
  width: 26%;
  height: 36%;
  border: 1px solid #a59abf;
  border-radius: 0.45rem;
  background: #f9f7ff;
  box-shadow: 0 5px 12px #40366716;
}

.diagram-node i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #a59abf;
}

.diagram-node i + i { width: 62%; opacity: 0.6; }
.diagram-input { top: 32%; left: 0; }

.diagram-center {
  inset: 29% auto auto 37%;
  width: 23%;
  height: 42%;
  justify-content: center;
  padding: 0;
  border-color: #65578b;
  background: #75659e;
}

.diagram-center i {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid #eae3fa;
  border-radius: 2px;
  background: transparent;
  transform: rotate(45deg);
}

.diagram-output { right: 0; }
.diagram-output-top { top: 1%; }
.diagram-output-bottom { bottom: 1%; }

.diagram-branch {
  position: absolute;
  inset: 19% auto 19% 67%;
  border-left: 1px solid #9184af;
}

.diagram-connector {
  position: absolute;
  height: 1px;
  background: #9184af;
}

.diagram-connector::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid #9184af;
  border-right: 1px solid #9184af;
  transform: rotate(45deg);
}

.diagram-start { top: 50%; left: 26%; width: 41%; z-index: -1; }
.diagram-start::after { display: none; }
.diagram-top { top: 19%; left: 67%; width: 7%; }
.diagram-bottom { bottom: 19%; left: 67%; width: 7%; }

.chat-illustration {
  position: relative;
  width: min(77%, 16.4rem);
  height: 68%;
  max-height: 9rem;
}

.chat-message {
  position: absolute;
  display: flex;
  align-items: start;
  gap: 0.6rem;
  min-height: 2.15rem;
  width: 77%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #9cbfa9;
  border-radius: 0.5rem;
  background: #f5fbf6;
  box-shadow: 0 5px 13px #2c5d3d12;
}

.chat-question { top: 3%; left: 2%; }
.chat-answer { bottom: 3%; right: 0; background: #eff8f1; }

.chat-avatar {
  flex: 0 0 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #b2d5bd;
}

.chat-answer .chat-avatar { background: #4e8f71; }
.chat-lines { display: grid; width: 100%; gap: 0.31rem; padding-top: 0.17rem; }

.chat-lines i {
  height: 3px;
  border-radius: 2px;
  background: #a5c9b2;
}

.chat-lines i:nth-child(2) { width: 71%; }
.chat-lines i:nth-child(3) { width: 38%; background: #5c9276; }

.chat-document {
  position: absolute;
  top: 1%;
  right: 3%;
  display: grid;
  place-content: center;
  gap: 4px;
  width: 2rem;
  height: 2.5rem;
  transform: rotate(10deg);
  border-radius: 0.35rem;
  background: #79a98d;
  box-shadow: 0 4px 10px #2c5d3d22;
}

.chat-document :is(i, span) { width: 0.85rem; height: 2px; background: #f3fff6; }
.chat-document span { width: 0.57rem; }

.chart-illustration {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5%;
  width: min(66%, 14rem);
  height: 58%;
  max-height: 6.25rem;
  padding-inline: 6%;
  border-bottom: 1px solid #bda568;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #ad945837 calc(25% - 1px) 25%);
}

.chart-illustration i {
  flex: 1;
  height: 28%;
  border-radius: 0.21rem 0.21rem 0 0;
  background: #c1a45c;
}

.chart-illustration i:nth-child(2) { height: 43%; }
.chart-illustration i:nth-child(3) { height: 38%; }
.chart-illustration i:nth-child(4) { height: 55%; }
.chart-illustration i:nth-child(5) { height: 49%; }
.chart-illustration i:nth-child(6) { height: 61%; }
.chart-illustration i:nth-child(7) { height: 81%; background: #9b7936; }
.chart-illustration i:nth-child(8) { height: 67%; }
.chart-illustration i:nth-child(9) { height: 91%; background: #9b7936; }
.chart-illustration i:nth-child(10) { height: 73%; }
.chart-illustration i:nth-child(11) { height: 100%; background: #856429; }

.network-illustration {
  position: relative;
  width: 10.7rem;
  height: 5.3rem;
  color: #7894b3;
}

.network-node {
  position: absolute;
  width: 1.23rem;
  height: 1.23rem;
  transform: translate(-50%, -50%);
  border: 1px solid #809bbc;
  border-radius: 0.32rem;
  background: #edf3fc;
  box-shadow: 0 3px 11px #28446527;
}

.network-node:nth-of-type(1) { top: 56px; left: 19px; }
.network-node:nth-of-type(2) { top: 20px; left: 74px; }
.network-node:nth-of-type(3) { top: 61px; left: 111px; background: #7f9cbd; }
.network-node:nth-of-type(4) { top: 31px; left: 157px; }

.network-edge {
  position: absolute;
  height: 1px;
  transform-origin: left;
  background: currentColor;
}

.network-edge:nth-child(1) { top: 56px; left: 19px; width: 66px; transform: rotate(-33deg); }
.network-edge:nth-child(2) { top: 20px; left: 74px; width: 55px; transform: rotate(48deg); }
.network-edge:nth-child(3) { top: 61px; left: 111px; width: 55px; transform: rotate(-33deg); }
.network-edge:nth-child(4) { top: 20px; left: 74px; width: 85px; transform: rotate(8deg); }

.code-illustration {
  width: min(64%, 10.4rem);
  min-height: 52%;
  border: 1px solid #c58d76;
  border-radius: 0.48rem;
  background: #fff2e9;
  box-shadow: 0 5px 13px #69443415;
}

.code-toolbar {
  display: flex;
  gap: 0.23rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #e9c5b2;
}

.code-toolbar i { width: 4px; height: 4px; border-radius: 50%; background: #d09a84; }

.code-lines {
  display: grid;
  gap: clamp(0.19rem, 0.4vw, 0.33rem);
  padding: 0.55rem 0.6rem 0.65rem;
}

.code-lines i {
  width: 70%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c07358 31%, transparent 31% 37%, #db9c81 37%);
}

.code-lines i:nth-child(2) { width: 75%; margin-left: 11%; }
.code-lines i:nth-child(3) { width: 51%; margin-left: 22%; }
.code-lines i:nth-child(4) { width: 61%; margin-left: 11%; }
.code-lines i:nth-child(5) { width: 29%; }

/* Follow a prompt, a reply, a price series, a handoff, and a compiler pass. */
[data-motion="on"] .illustrating .diagram::after,
[data-motion="on"] .illustrating .network-illustration::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #594280;
  box-shadow: 0 0 7px #8d72aa;
  animation: diagram-flow 1.15s ease-in-out both;
}

@keyframes diagram-flow {
  0% { left: 13%; top: 50%; opacity: 0; }
  15% { opacity: 1; }
  43% { left: 49%; top: 50%; }
  60% { left: 67%; top: 50%; }
  76% { left: 67%; top: 19%; }
  100% { left: 88%; top: 19%; opacity: 0; }
}

[data-motion="on"] .illustrating .network-illustration::after {
  background: #355f89;
  box-shadow: 0 0 7px #4676a3;
  animation-name: robot-handoff;
}

@keyframes robot-handoff {
  0% { left: 19px; top: 56px; opacity: 0; }
  12% { opacity: 1; }
  37% { left: 74px; top: 20px; }
  68% { left: 111px; top: 61px; }
  100% { left: 157px; top: 31px; opacity: 0; }
}

[data-motion="on"] .illustrating .chat-answer {
  animation: retrieve-answer 0.8s ease-out both;
}

@keyframes retrieve-answer {
  from { opacity: 0.36; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

[data-motion="on"] .illustrating .chart-illustration i {
  transform-origin: center bottom;
  animation: chart-rise 0.85s ease-out var(--rise-delay, 0ms) both;
}
.chart-illustration i:nth-child(3n + 1) { --rise-delay: 75ms; }
.chart-illustration i:nth-child(3n + 2) { --rise-delay: 150ms; }

@keyframes chart-rise {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}

[data-motion="on"] .illustrating .code-lines i {
  animation: code-write 0.55s steps(9) backwards;
}
[data-motion="on"] .illustrating .code-lines i:nth-child(2) { animation-delay: 0.1s; }
[data-motion="on"] .illustrating .code-lines i:nth-child(3) { animation-delay: 0.2s; }
[data-motion="on"] .illustrating .code-lines i:nth-child(4) { animation-delay: 0.3s; }
[data-motion="on"] .illustrating .code-lines i:nth-child(5) { animation-delay: 0.4s; }

@keyframes code-write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.project-content { padding: clamp(1rem, 2.05vw, 1.6rem); }
.project-content h3, .experience-role h3, .about-aside h3 { font: 700 1.55rem/1.15 var(--display); letter-spacing: -0.05em; }
.project-content h3 { font-size: clamp(1.5rem, 2.3vw, 2.12rem); }
.project-content > p { margin-top: 0.65rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.37rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: inline-block;
  padding: 0.25rem 0.49rem;
  border: 1px solid var(--line);
  border-radius: 0.29rem;
  background: var(--paper);
  font: 500 0.72rem/1.3 var(--mono);
}

.project-details { margin-top: 1.1rem; border-top: 1px solid var(--line); }

.project-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.7rem;
  list-style: none;
  cursor: pointer;
  font: 600 0.93rem/1.35 var(--display);
}

.project-details summary::-webkit-details-marker { display: none; }
.project-details summary:hover { color: var(--focus); }

.disclosure-mark { display: grid; flex: none; place-items: center; position: relative; width: 0.9rem; height: 0.9rem; }

.disclosure-mark::before, .disclosure-mark::after {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 1px;
  background: currentColor;
}

.disclosure-mark::after { transform: rotate(90deg); }
.project-details[open] .disclosure-mark::after { transform: none; }
.project-points { margin: 0 0 0.9rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.91rem; line-height: 1.55; }
.project-points li + li { margin-top: 0.48rem; }

.project-links, .about-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1.2rem; }
.project-links .text-link { min-height: 1.8rem; }

.experience-list { border-top: 1px solid var(--line); }

.experience-row {
  display: grid;
  grid-template-columns: minmax(6.25rem, 0.48fr) minmax(9rem, 1fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 1rem clamp(1rem, 3.5vw, 3rem);
  padding-block: clamp(1.3rem, 2.5vw, 2.05rem);
  border-bottom: 1px solid var(--line);
}

.experience-date {
  padding-top: 0.25rem;
  color: var(--muted);
  font: 500 0.81rem/1.3 var(--mono);
}

.experience-role p { margin-top: 0.35rem; color: var(--muted); font-size: 0.91rem; line-height: 1.55; }
.experience-description p { color: var(--muted); font-size: 0.96rem; }
.experience-description a { margin-top: 0.55rem; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.about-intro { max-width: 35rem; font: 500 clamp(1.25rem, 2.2vw, 1.75rem)/1.35 var(--display); letter-spacing: -0.03em; }

.education {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-block: 1.4rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.education dt { color: var(--muted); font: 500 0.74rem/1.4 var(--mono); }
.education dd { margin: 0.18rem 0 0; font: 700 1.7rem/1 var(--display); letter-spacing: -0.06em; }
.about-secondary { max-width: 31rem; color: var(--muted); }
.about-links { margin-top: 0.9rem; }

.about-aside {
  padding: clamp(1.2rem, 2.65vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
}

.skill-list { margin-bottom: 1.65rem; }
.recognition-list { margin: 0.7rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.93rem; }
.recognition-list li + li { margin-top: 0.25rem; }

.contact-section {
  background: linear-gradient(90deg, #151717 20%, #171918ec 52%, #1719186b) center / cover,
              var(--night) url("assets/terrain.webp") right 55% / min(100%, 60rem) auto no-repeat;
  color: var(--paper);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: clamp(2.3rem, 5vw, 4.5rem);
}

.contact-section :focus-visible { outline-color: var(--paper); }
.contact-section .button { min-width: 8.2rem; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.6rem;
}

.social-links { gap: 0.65rem 1.3rem; }
.footer-brand .brand-mark { width: 2.25rem; }
.back-to-top { justify-self: end; }

@media (max-width: 55rem) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-art { aspect-ratio: 2 / 1; }
  .section-heading { align-items: start; flex-direction: column; }
  .experience-row { grid-template-columns: minmax(5.75rem, 0.55fr) minmax(8rem, 1.15fr) minmax(0, 1.9fr); }
}

@media (max-width: 43rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: clamp(4.4rem, 14.6vw, 6.4rem); }
  .hero-description { max-width: 27rem; }
  .atlas { width: min(100%, 34rem); justify-self: center; }
  .atlas-console input { font-size: 1rem; }
  .matrix-name { background-size: 3px 3px; }
  .atlas-stage { aspect-ratio: 1.48; }
  .experience-row { grid-template-columns: 5.3rem minmax(0, 1fr); gap: 0.55rem 0.75rem; }
  .experience-description { grid-column: 2; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  .atlas-console { gap: 0.45rem; font-size: 0.73rem; }
  .atlas-stage { aspect-ratio: 1.32; }
}

[data-motion="off"] { scroll-behavior: auto; }

@media (max-width: 36rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0.4rem 0.75rem; padding-top: 0.75rem; }
  .main-nav { grid-column: span 2; grid-row: 2; gap: 1.5rem; }
  .main-nav a { min-height: 2.55rem; font-size: 0.88rem; }
  .header-contact { padding-inline: 0.7rem; font-size: 0.88rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .social-links { grid-column: span 2; grid-row: 2; }
}

@media (max-width: 23rem) {
  .header-inner { column-gap: 0.5rem; }
  .site-header .brand { gap: 0.35rem; font-size: 1rem; }
  .site-header .brand-mark { width: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
