@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f6f5f1;
  --surface: #fffefa;
  --ink: #232b26;
  --muted: #677068;
  --line: #dcded6;
  --accent: #b84b30;
  --coral: #ed7959;
  --soft: #edece5;
  --green: #3b785b;
  --mono: "IBM Plex Mono", monospace;
  --sans: Manrope, Arial, sans-serif;
  --radius: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #171c19;
  --surface: #202722;
  --ink: #edece4;
  --muted: #a3afa5;
  --line: #39433b;
  --accent: #ef977b;
  --soft: #252d27;
  --green: #98c6a6;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
img,
svg {
  max-width: 100%;
}
img {
  object-fit: contain;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #ed79594d;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
}
h1,
h2 {
  font-weight: 600;
  word-spacing: 0.065em;
}
h3 {
  font-weight: 700;
}
svg {
  display: block;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.container {
  width: calc(100% - 112px);
  max-width: 1280px;
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.text-link span {
  font-size: 19px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button-dark {
  background: var(--ink);
  color: var(--paper);
}
.button-dark:hover {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-2px);
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.serif-word {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.section {
  padding-block: 104px;
}
.section-index {
  color: var(--muted);
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
}
h2 {
  font-size: clamp(36px, 3.7vw, 52px);
  letter-spacing: -2.3px;
}
.section-intro {
  max-width: 335px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 5px;
}
/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.brand-mark {
  height: 43px;
  width: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2.8px;
  padding-right: 3px;
  line-height: 1;
}
.brand-mark > span {
  color: var(--coral);
  margin-left: 1px;
}
.brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.6;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-link {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.nav-link:hover,
.nav-link[aria-current] {
  color: var(--ink);
}
.nav-link[aria-current]::after {
  content: "";
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  bottom: -9px;
  left: 50%;
}
.nav-contact {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: 4px;
  margin-left: 8px;
}
.nav-contact span {
  margin-left: 13px;
}
.nav-contact:hover {
  background: var(--ink);
  color: var(--paper);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.search-toggle {
  width: auto;
  padding: 0 9px;
  gap: 7px;
  border-radius: 5px;
}
.search-toggle svg {
  width: 16px;
}
kbd {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.menu-toggle {
  display: none;
}
.theme-moon {
  display: none !important;
}
[data-theme="dark"] .theme-moon {
  display: block !important;
}
[data-theme="dark"] .theme-sun {
  display: none;
}
/* Hero: a little human, a little machine */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  column-gap: 28px;
  padding-block: 86px 96px;
  min-height: 686px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(52px, 5.8vw, 84px);
  letter-spacing: -0.055em;
  margin: 26px -50px 25px 0;
  line-height: 1.12;
  white-space: nowrap;
}
.accent-word {
  position: relative;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.068em;
}
.accent-word svg {
  position: absolute;
  left: -2px;
  bottom: -8px;
  width: 100%;
  height: 13px;
  stroke: var(--coral);
  stroke-width: 3;
  fill: none;
}
.hero-period {
  color: var(--accent);
}
.hero-description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 405px;
  margin-top: 30px;
}
.hero-description strong {
  font-weight: 600;
  color: var(--ink);
}
.hero-buttons {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}
.hero-location {
  display: flex;
  gap: 10px;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 35px;
}
.hero-location svg {
  width: 17px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}
.hero-art {
  position: relative;
  align-self: center;
  margin-top: 10px;
  max-width: 515px;
}
.art-topline,
.art-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-block-start: 1px solid var(--line);
}
.art-topline > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.art-topline i {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.art-bottomline > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.art-bottomline > span:last-child {
  font-size: 21px;
  line-height: 1;
}
.art-bottomline .status-dot {
  width: 5px;
  height: 5px;
}
.neural-visual {
  position: relative;
  background-image: radial-gradient(var(--line) 0.7px, transparent 0.7px);
  background-size: 17px 17px;
}
.neural-svg {
  width: 100%;
  overflow: visible;
}
.orb-grid {
  stroke: var(--ink);
  stroke-opacity: 0.12;
  stroke-width: 0.7;
}
.neural-connections {
  stroke: var(--ink);
  stroke-opacity: 0.42;
  stroke-width: 0.9;
}
.neural-nodes circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.neural-nodes circle:nth-child(3n) {
  fill: var(--coral);
  stroke: var(--coral);
}
.orb-orbit {
  stroke: var(--muted);
  stroke-opacity: 0.5;
  transform-origin: 250px 206px;
  animation: orbit 90s linear infinite;
}
.orb-center rect {
  fill: #e57957;
  stroke: #c96c4d;
  stroke-width: 1;
}
.orb-center path {
  stroke: #fff5e6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orb-satellites {
  stroke: var(--accent);
  fill: var(--accent);
  stroke-width: 1.2;
}
.art-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  box-shadow: 0 6px 20px #1a25120a;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.art-label-one {
  left: 0;
  top: 25%;
  padding: 9px 13px;
  transform: rotate(-5deg);
}
.art-label-one small {
  font-size: 8px;
  color: var(--muted);
}
.label-icon {
  font-size: 22px;
  color: var(--accent);
}
.art-label-two {
  right: -7px;
  bottom: 16%;
  padding: 8px 13px;
  transform: rotate(4deg);
}
.tiny-spark {
  color: var(--accent);
  font-size: 20px;
}
.scroll-hint {
  position: absolute;
  bottom: 25px;
  left: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.scroll-hint > span {
  font-size: 20px;
}
.tool-strip {
  border-block: 1px solid var(--line);
}
.tool-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 100px;
}
.tool-strip p {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  line-height: 1.8;
  flex-shrink: 0;
  color: var(--muted);
  padding-right: 25px;
  border-right: 1px solid var(--line);
}
.tool-strip p strong {
  font-weight: 400;
  color: var(--ink);
}
.strip-tool {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.strip-tool img {
  filter: grayscale(1);
  opacity: 0.7;
  object-fit: contain;
}
.strip-tool:hover img {
  filter: none;
  opacity: 1;
}
[data-theme="dark"] .strip-tool img[src$=".svg"],
[data-theme="dark"] .skill-logos img[src$=".svg"] {
  filter: invert(0.88);
  opacity: 0.9;
}
/* Projects */
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.project-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-button {
  background: transparent;
  padding: 8px 15px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  transition: background 0.2s;
}
.filter-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.filter-button:hover:not([aria-pressed="true"]) {
  background: var(--soft);
}
.filter-button > span {
  font-family: var(--mono);
  font-size: 8px;
  margin-left: 9px;
  opacity: 0.7;
}
.project-count {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--muted) 60%, var(--line));
  box-shadow: 0 7px 24px #1b251209;
}
.featured-project {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
.project-visual {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.visual-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 24px;
  right: 24px;
  top: 20px;
  z-index: 2;
}
.hearth-visual {
  background: #262f2a;
  min-height: 365px;
  color: #c7d3c6;
  padding: 65px 32px 32px;
  display: flex;
  align-items: flex-end;
  background-image: radial-gradient(
    ellipse at 50% 85%,
    #68805a40,
    transparent 70%
  );
}
.hearth-visual .visual-label {
  color: #9eaf9f;
}
.hearth-window {
  display: flex;
  width: 100%;
  height: 260px;
  border: 1px solid #55604d;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
  box-shadow: 0 16px 40px #0003;
  transform: translateY(33px) rotate(-2deg);
  transform-origin: bottom center;
  background: #f3f0e5;
  color: #353e32;
  flex-shrink: 0;
}
.hearth-sidebar {
  display: flex;
  flex-direction: column;
  width: 32%;
  padding: 13px 12px;
  background: #e7e8da;
  border-right: 1px solid #d6d9c7;
  font-size: 8px;
  gap: 5px;
}
.hearth-logo {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  margin: 0 0 17px 5px;
}
.hearth-logo span {
  color: #697a48;
  font-size: 21px;
  margin-left: 3px;
}
.mock-new {
  border: 1px solid #c8ccba;
  border-radius: 4px;
  padding: 6px 5px;
  margin-bottom: 9px;
  font-size: 7px;
}
.mock-nav {
  padding: 4px 5px;
  font-size: 6px;
  white-space: nowrap;
}
.mock-nav.active {
  background: #d6dcc7;
  border-radius: 3px;
}
.mock-sidebar-bottom {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-sidebar-bottom i,
.mock-topbar i {
  display: inline-block;
  height: 4px;
  width: 4px;
  background: #6b8b47;
  border-radius: 50%;
}
.hearth-chat {
  flex: 1;
  min-width: 0;
  padding: 12px 15px;
}
.mock-topbar {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 9px;
  align-items: center;
}
.mock-topbar > span:last-child {
  font-family: var(--mono);
  font-size: 5px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #6c7664;
}
.mock-down {
  font-size: 12px;
  margin-left: 6px;
}
.mock-conversation {
  text-align: center;
  max-width: 310px;
  margin: 8px auto 0;
}
.hearth-spark {
  color: #7e8a58;
  font-size: 31px;
  line-height: 1.2;
}
.mock-conversation p {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 7px 0 17px;
}
.mock-conversation p span {
  color: #71814f;
}
.mock-prompt {
  background: #fffdf4;
  border: 1px solid #ddded1;
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7e8376;
}
.mock-prompt span {
  background: #7d8b5d;
  color: #fff;
  padding: 0 5px;
  font-size: 12px;
  border-radius: 3px;
}
.mock-conversation small {
  font-size: 5px;
  color: #878b7d;
}
.concept-label {
  position: absolute;
  bottom: 11px;
  right: 15px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 1px;
  color: #9eaf9f;
  background: #263029cc;
  padding: 3px 5px;
}
.project-body {
  padding: 29px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.project-body h3 {
  font-size: 25px;
  letter-spacing: -1px;
  margin-bottom: 13px;
}
.featured-project h3 {
  font-size: 39px;
  letter-spacing: -1.7px;
}
.project-body > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 19px;
  max-width: 420px;
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-list > span {
  font-size: 9px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 3px;
  line-height: 1.5;
}
.project-detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding: 22px 0 0;
  margin-top: auto;
  background: none;
  text-align: left;
  width: 100%;
  gap: 10px;
}
.project-detail-link span {
  font-size: 22px;
  font-weight: 400;
}
.project-detail-link:hover {
  color: var(--accent);
}
.rag-visual {
  background: #e7e6f0;
  color: #626078;
}
.rag-art {
  max-width: 355px;
  height: 230px;
  margin: 36px auto 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}
.doc-stack {
  width: 71px;
  height: 88px;
  position: relative;
  transform: rotate(-7deg);
  margin-top: -30px;
}
.doc-stack > span {
  position: absolute;
  width: 66px;
  height: 82px;
  border: 1px solid #9995b4;
  border-radius: 4px;
  background: #f8f7ff;
  padding: 17px 11px;
}
.doc-stack > span:nth-child(1) {
  transform: translate(-9px, 8px);
}
.doc-stack > span:nth-child(2) {
  transform: translate(-4px, 4px);
}
.doc-stack i,
.rag-answer > i {
  display: block;
  background: #b5afce;
  width: 100%;
  height: 3px;
  margin-bottom: 7px;
}
.doc-stack i:last-child {
  width: 70%;
}
.flow-arrow {
  font-size: 25px;
  color: #958cae;
  margin-top: -30px;
}
.model-chip {
  width: 100px;
  height: 100px;
  border: 1px solid #b4adc9;
  background: #f4f2fc;
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: -30px;
  box-shadow: 0 7px 17px #72629612;
}
.model-chip img {
  filter: invert(39%) sepia(12%) saturate(1500%) hue-rotate(217deg);
}
.model-chip > span {
  font-family: var(--mono);
  font-size: 8px;
}
.rag-answer {
  position: absolute;
  right: 35px;
  bottom: 16px;
  width: 210px;
  border-radius: 5px;
  border: 1px solid #c0b9d5;
  background: #f5f3fc;
  padding: 12px 14px;
  transform: rotate(3deg);
  box-shadow: 0 5px 12px #73658f0a;
}
.rag-answer > i {
  height: 2px;
  margin-bottom: 5px;
  background: #c9c3da;
}
.rag-answer > i:nth-child(2) {
  width: 75%;
}
.rag-answer > i:nth-child(3) {
  width: 85%;
}
.rag-answer > span {
  font-family: var(--mono);
  font-size: 6px;
  color: #78718e;
}
.signify-visual {
  background: #dfeae2;
  color: #4d7663;
}
.hand-art {
  height: 280px;
  max-width: 340px;
  margin: 10px auto 0;
  position: relative;
}
.hand-art svg {
  width: 100%;
  height: 100%;
  padding: 30px 15px 35px;
}
.hand-grid {
  fill: none;
  stroke: #70977b;
  stroke-width: 0.5;
  opacity: 0.18;
}
.hand-outline {
  fill: #f7f8ed;
  stroke: #7f9f87;
  stroke-width: 1.5;
}
.hand-landmarks {
  fill: #ef9069;
  stroke: #d16b44;
  stroke-width: 1.2;
}
.hand-landmarks > path {
  fill: none;
  stroke: #829d74;
  stroke-width: 1.4;
}
.scan-corners {
  stroke: #719879;
  fill: none;
  stroke-width: 1;
}
.vision-detection {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.7px;
  border: 1px solid #b1c6b5;
  border-radius: 3px;
  background: #f0f5ed;
  padding: 5px 9px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vision-detection i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #729a69;
}
.compact-project {
  flex-direction: row;
  align-items: center;
  padding: 0 5px 0 17px;
  min-height: 258px;
}
.compact-project .project-body {
  padding: 27px 20px 27px 10px;
}
.compact-project h3 {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.compact-project .project-meta {
  font-size: 7px;
}
.compact-art {
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
  margin-right: 14px;
}
.compact-art svg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
}
.space-art svg > path {
  fill: var(--accent);
  stroke: var(--accent);
}
.weather-art svg {
  stroke: var(--accent);
}
.weather-art svg > circle {
  fill: #efb15d44;
  stroke: #c99646;
}
.work-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
}
.work-footer .text-link {
  font-size: 11px;
  color: var(--ink);
}
/* AI concepts */
.lab-section {
  background: #26332c;
  color: #edf0e6;
  padding: 85px 0;
}
.lab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.lab-copy .section-index {
  color: #a1b0a3;
}
.lab-copy h2 {
  font-size: 46px;
  letter-spacing: -2px;
}
.lab-copy .serif-word {
  color: #bbcfad;
}
.lab-copy > p:not(.eyebrow) {
  font-size: 12px;
  color: #b2bfb3;
  line-height: 1.9;
  max-width: 320px;
  margin-top: 23px;
}
.lab-tabs {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  max-width: 350px;
}
.lab-tab {
  display: flex;
  gap: 16px;
  text-align: left;
  align-items: center;
  background: none;
  border-top: 1px solid #4b594d;
  color: #99a79b;
  font-family: var(--mono);
  font-size: 10px;
  padding: 14px 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.lab-tab > span {
  font-family: var(--sans);
  font-size: 12px;
  flex: 1;
}
.lab-tab[aria-selected="true"] {
  color: #d7e3c6;
  background: #a4b4970b;
}
.lab-tab[aria-selected="true"] > span {
  font-weight: 700;
}
.lab-tab:hover {
  color: #fff;
}
.lab-demo {
  background: #1e2923;
  border: 1px solid #4b594a;
  border-radius: 9px;
  box-shadow: 0 16px 30px #101c141a;
}
.lab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #3b483e;
  padding: 17px 21px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.7px;
  color: #b2c2b3;
}
.terminal-dots {
  color: #657762;
  font-size: 9px;
  letter-spacing: 2px;
}
.pipeline {
  padding: 27px 25px;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #26332c;
  border: 1px solid #3f4f40;
  border-radius: 6px;
  padding: 15px 16px;
}
.pipeline-step > div {
  display: flex;
  flex-direction: column;
}
.pipeline-step small {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: #a1b29e;
}
.pipeline-step strong {
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0;
}
.pipeline-step > div > span {
  font-size: 9px;
  color: #a7b4a5;
}
.pipeline-icon {
  width: 30px;
  min-width: 30px;
  font-size: 25px;
  color: #c0d4ad;
  font-family: Georgia, serif;
  text-align: center;
}
.pipeline-brand {
  filter: invert(0.85) sepia(0.3);
  flex-shrink: 0;
}
.pipeline-connector {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  color: #8eaa7e;
}
.pipeline-connector span {
  font-family: var(--mono);
  font-size: 7px;
  color: #95a58f;
}
.pipeline-step.highlight {
  border-color: #8fa27d;
  background: #34432f;
  position: relative;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #b7cb98;
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 0 4px #b7cb9812;
  flex-shrink: 0;
}
.lab-caption {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.3px;
  padding: 15px 20px;
  border-top: 1px solid #3b483e;
  color: #90a38c;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.lab-caption strong {
  font-weight: 400;
  color: #bbceb1;
}
.lab-caption > span {
  margin-left: auto;
  font-size: 6px;
  color: #9bad96;
}
/* Toolkit */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.skill-group {
  border-left: 1px solid var(--line);
  padding: 0 24px 0 25px;
}
.skill-group:first-child {
  padding-left: 0;
  border-left: 0;
}
.skill-group:last-child {
  padding-right: 0;
}
.skill-number {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
}
.skill-group h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin: 20px 0 13px;
}
.skill-group > p {
  font-size: 11px;
  color: var(--muted);
  max-width: 245px;
  min-height: 56px;
  line-height: 1.9;
}
.skill-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 23px;
  min-height: 44px;
}
.skill-logos > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
}
.skill-logos img {
  object-fit: contain;
}
.skill-words {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  color: var(--muted);
  font-size: 9px;
}
.skill-words > span:not(:last-child)::after {
  content: " /";
  color: var(--line);
  padding-left: 6px;
}
.skill-text-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  margin: 26px 0 23px;
}
.sql-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -2px;
}
.sql-logo > span {
  color: var(--accent);
}
.tableau-logo {
  font-size: 25px;
  color: #5c7c94;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tableau-logo > span {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}
.learning-note {
  display: flex;
  align-items: center;
  gap: 15px;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 45px;
}
.learning-note > span {
  font-size: 24px;
  color: var(--accent);
}
.learning-note > p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.learning-note strong {
  color: var(--ink);
  margin-right: 3px;
}
.learning-note .text-link {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 0;
  border: 0;
}
/* Biography and experience */
.about-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 95px 0 60px;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 100px;
  align-items: center;
}
.portrait-wrap {
  position: relative;
  max-width: 450px;
}
.portrait-wrap > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 6px;
  filter: saturate(0.6);
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.portrait-sticker {
  position: absolute;
  right: -21px;
  bottom: 46px;
  background: #de7953;
  color: #232c22;
  padding: 19px 22px;
  font-size: 27px;
  letter-spacing: -1.8px;
  line-height: 0.95;
  transform: rotate(-7deg);
  border-radius: 2px;
  box-shadow: 0 5px 15px #2530241a;
}
.portrait-sticker em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.about-copy h2 {
  font-size: 46px;
  margin-bottom: 26px;
  letter-spacing: -2px;
}
.about-copy > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 14px;
  max-width: 490px;
}
.about-copy .text-link {
  margin-top: 4px;
  font-size: 11px;
}
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 75px;
}
.journey-grid > div {
  min-width: 0;
}
.journey-grid .section-index {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.timeline-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  min-height: 176px;
}
.timeline-date {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 11px;
}
.timeline-item h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 430px;
}
.timeline-item .timeline-place {
  font-size: 10px;
  margin-bottom: 11px;
  color: var(--ink);
}
.small-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.degree-score {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 600;
}
.degree-score > span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0;
}
.credentials {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.credentials > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.credential-icon {
  font-size: 20px;
  color: var(--accent);
  line-height: 1.4;
}
.credentials p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
}
.credentials strong {
  display: block;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}
/* Contact */
.contact-section {
  padding: 95px 0;
  background: #e99578;
  color: #282e25;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
  align-items: start;
}
.contact-section .section-index {
  color: #584136;
}
.contact-copy h2 {
  font-size: 50px;
  letter-spacing: -2.6px;
  margin-bottom: 24px;
}
.contact-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: #574137;
  line-height: 1.9;
  margin-bottom: 26px;
}
.email-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.6px;
  border-bottom: 1px solid #845f4d;
  padding: 7px 0;
}
.email-link > span {
  font-size: 25px;
}
.contact-secondary {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  margin-top: 9px;
  min-height: 34px;
}
.contact-secondary > button {
  background: transparent;
  padding: 4px 0;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-secondary > button > span {
  font-size: 18px;
}
.contact-socials {
  display: flex;
  gap: 24px;
  margin-top: 35px;
  font-size: 11px;
  font-weight: 600;
}
.contact-socials a:hover {
  text-decoration: underline;
}
.contact-form {
  padding: 28px 28px 21px;
  background: #f9efde;
  color: #2d332a;
  border: 1px solid #dda180;
  border-radius: 7px;
  box-shadow: 0 10px 30px #8e4c2b0a;
}
.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 23px;
  color: #676c5e;
}
.form-topline > span:last-child {
  font-size: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-row > div {
  min-width: 0;
}
.contact-form label {
  font-size: 9px;
  font-weight: 600;
  display: block;
  margin: 13px 0 6px;
}
.form-row label {
  margin-top: 0;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #fff9ed;
  border: 1px solid #ddd8c9;
  border-radius: 3px;
  padding: 11px 12px;
  color: #343c2e;
  font-size: 11px;
  line-height: 1.5;
  min-height: 42px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7c7c6f;
}
.contact-form select {
  color-scheme: light;
}
.contact-form .button {
  width: 100%;
  margin-top: 16px;
  background: #29352c;
  color: #f8f3e7;
  justify-content: space-between;
  font-size: 11px;
  min-height: 47px;
  padding: 11px 15px;
}
.contact-form .button:hover {
  background: #4c5e3c;
}
.form-note {
  font-size: 8px;
  margin-top: 10px;
  color: #626958;
  text-align: center;
}
.contact-form #form-status {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 10px;
  color: #39482e;
}
.honeypot {
  position: absolute;
  left: -10000px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.email-copy-fallback {
  width: 100%;
  background: #f9efde;
  color: #253024;
  border: 1px solid #845f4d;
  font-size: 12px;
  padding: 8px;
}
.contact-section a:focus-visible,
.contact-section button:focus-visible {
  outline-color: #29352c;
}
/* Footer and overlays */
.site-footer {
  padding: 38px 0 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-top .brand-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-top .brand-name .muted {
  font-weight: 400;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 8px;
  color: var(--muted);
}
.footer-bottom > span:nth-child(2) {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.9px;
}
.footer-bottom > a {
  font-size: 9px;
}
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  font-size: 22px;
  box-shadow: 0 5px 20px #0001;
}
.back-to-top:hover {
  background: var(--accent);
}
dialog {
  position: fixed;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px;
  background: var(--surface);
  color: var(--ink);
  max-width: 660px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: 0 30px 90px #0003;
  margin: auto;
}
dialog::backdrop {
  background: #18211cb8;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 14px;
  font-size: 27px;
  line-height: 1;
}
.project-dialog > .eyebrow {
  color: var(--accent);
  font-size: 9px;
  margin-top: 12px;
  padding-right: 20px;
}
.project-dialog h2 {
  font-size: 36px;
  letter-spacing: -1.6px;
  margin-top: 15px;
  line-height: 1.2;
}
.dialog-description {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 20px 0;
}
.project-dialog h3 {
  font-size: 13px;
  margin: 26px 0 10px;
}
.project-dialog ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.project-dialog li {
  padding-bottom: 8px;
}
.project-dialog .button {
  margin-top: 18px;
}
.dialog-note {
  font-size: 11px;
  color: var(--muted);
  background: var(--soft);
  padding: 12px 15px;
  border-radius: 4px;
  margin-top: 18px;
}
.dialog-note:empty {
  display: none;
}
.search-dialog {
  padding: 26px;
  max-width: 650px;
}
.search-dialog-top {
  padding: 3px 0 18px;
  min-height: 36px;
}
.search-dialog-top .eyebrow {
  font-size: 9px;
}
.search-dialog input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px;
  color: var(--ink);
  font-size: 14px;
  appearance: none;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 13px;
}
.search-suggestions button {
  font-size: 9px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--muted);
}
.search-suggestions button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.search-status {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 20px;
}
.search-dialog ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}
.search-result {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
}
.search-result:hover {
  background: var(--soft);
}
.search-result-category {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
  display: block;
  letter-spacing: 1px;
}
.search-result-title {
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin: 4px 0;
}
.search-result-description {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.8;
}
.search-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0;
}
.search-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.search-disclaimer kbd {
  font-size: 7px;
  white-space: nowrap;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive layouts */
@media (min-width: 1500px) {
  .hero {
    min-height: 740px;
    padding-top: 100px;
    padding-bottom: 120px;
  }
  .hero h1 {
    font-size: 90px;
  }
  .hero-art {
    justify-self: end;
    width: 100%;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 72px);
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
    padding-top: 70px;
    padding-bottom: 85px;
    min-height: 625px;
    gap: 20px;
  }
  .hero h1 {
    font-size: 6.05vw;
    letter-spacing: -0.06em;
  }
  .hero-description {
    font-size: 13px;
    max-width: 340px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .art-topline,
  .art-bottomline {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .art-label {
    font-size: 7px;
  }
  .art-label-one {
    left: -10px;
    padding: 7px 10px;
  }
  .art-label-two {
    right: -5px;
    padding: 6px 9px;
  }
  .hero-location {
    font-size: 9px;
  }
  .tool-strip-inner {
    gap: 16px;
  }
  .strip-tool {
    font-size: 11px;
    gap: 7px;
  }
  .strip-tool img {
    max-width: 24px;
    height: 24px;
  }
  .tool-strip p {
    font-size: 7px;
    padding-right: 16px;
  }
  .lab-layout,
  .about-layout,
  .journey-grid,
  .credentials {
    gap: 60px;
  }
  .lab-copy h2 {
    font-size: 42px;
  }
  .contact-layout {
    gap: 50px;
  }
  .contact-copy h2 {
    font-size: 43px;
  }
  .email-link {
    font-size: 16px;
  }
  .skill-group {
    padding-left: 18px;
    padding-right: 18px;
  }
  .skill-group h3 {
    font-size: 14px;
  }
  .skill-logos {
    gap: 10px;
    min-height: 70px;
    align-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .skill-text-logos {
    min-height: 70px;
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 12px;
  }
  .skill-logos > span {
    font-size: 9px;
  }
  .skill-logos img {
    width: 24px;
    height: 24px;
  }
  .compact-art {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
    margin-right: 6px;
  }
  .compact-project h3 {
    font-size: 19px;
  }
  .project-body {
    padding: 25px;
  }
  .featured-project .project-body {
    padding: 30px;
  }
  .hearth-visual {
    padding-inline: 25px;
  }
  .about-copy h2 {
    font-size: 40px;
  }
  .portrait-wrap > img {
    height: 400px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 11px;
  }
  .contact-form {
    padding: 24px;
  }
}
@media (max-width: 900px) {
  .brand-name {
    display: none;
  }
  .primary-nav {
    gap: 23px;
  }
  .header-inner {
    min-height: 76px;
    gap: 20px;
  }
  .search-toggle kbd {
    display: none;
  }
  .hero {
    min-height: 600px;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero h1 {
    font-size: 6.05vw;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
  .hero-buttons {
    gap: 18px;
  }
  .hero .button {
    font-size: 11px;
    padding: 12px 17px;
    gap: 17px;
    min-height: 48px;
  }
  .hero .text-link {
    font-size: 10px;
    gap: 10px;
  }
  .hero-location {
    font-size: 8px;
  }
  .hero-description {
    font-size: 12px;
    max-width: 310px;
  }
  .tool-strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 23px;
    padding-block: 20px;
  }
  .tool-strip p {
    padding-right: 20px;
  }
  .strip-tool {
    font-size: 10px;
  }
  .tool-strip .strip-tool:last-child {
    display: none;
  }
  .section {
    padding-block: 80px;
  }
  .section-intro {
    max-width: 270px;
    font-size: 12px;
  }
  .section-heading {
    gap: 35px;
  }
  h2 {
    font-size: 38px;
  }
  .project-grid {
    gap: 20px;
  }
  .featured-project {
    grid-template-columns: 1.2fr 1fr;
  }
  .featured-project h3 {
    font-size: 32px;
  }
  .featured-project .project-body {
    padding: 25px;
  }
  .project-body > p {
    font-size: 11px;
  }
  .project-meta {
    font-size: 7px;
  }
  .project-body h3 {
    font-size: 23px;
  }
  .hearth-visual {
    padding: 60px 20px 28px;
    min-height: 330px;
  }
  .hearth-window {
    height: 240px;
  }
  .hearth-sidebar {
    padding: 12px 8px;
  }
  .mock-nav {
    font-size: 5px;
  }
  .mock-new {
    font-size: 5px;
  }
  .mock-conversation p {
    font-size: 23px;
  }
  .mock-conversation {
    margin-top: 16px;
  }
  .mock-prompt {
    font-size: 6px;
  }
  .mock-topbar > span:last-child {
    display: none;
  }
  .project-visual:not(.hearth-visual) {
    min-height: 245px;
  }
  .rag-art {
    height: 210px;
    transform: scale(0.9);
    margin-top: 25px;
  }
  .hand-art {
    height: 245px;
  }
  .compact-project {
    padding: 0;
  }
  .compact-art {
    display: none;
  }
  .compact-project .project-body {
    padding: 24px;
  }
  .compact-project h3 {
    font-size: 22px;
  }
  .lab-layout {
    gap: 35px;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .lab-copy h2 {
    font-size: 35px;
  }
  .lab-panel-header {
    font-size: 6px;
    padding-inline: 17px;
  }
  .pipeline {
    padding: 22px 17px;
  }
  .pipeline-step {
    padding: 13px 12px;
    gap: 10px;
  }
  .pipeline-step strong {
    font-size: 11px;
  }
  .pipeline-step > div > span {
    font-size: 8px;
  }
  .lab-caption {
    font-size: 6px;
  }
  .lab-caption > span {
    display: none;
  }
  .skill-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 0;
  }
  .skill-group {
    padding: 0 28px;
  }
  .skill-group:nth-child(odd) {
    border: 0;
    padding-left: 0;
  }
  .skill-group > p {
    min-height: 0;
    max-width: 290px;
  }
  .skill-group h3 {
    font-size: 17px;
  }
  .skill-logos,
  .skill-text-logos {
    margin: 20px 0;
    min-height: 40px;
  }
  .skill-logos img {
    width: 29px;
    height: 29px;
  }
  .skill-logos > span {
    font-size: 11px;
  }
  .skill-words {
    font-size: 10px;
  }
  .learning-note > p {
    font-size: 9px;
  }
  .learning-note .text-link {
    font-size: 9px;
  }
  .about-layout {
    gap: 45px;
    grid-template-columns: 0.85fr 1fr;
  }
  .about-copy h2 {
    font-size: 33px;
  }
  .about-copy .eyebrow {
    font-size: 8px;
  }
  .portrait-wrap > img {
    height: 370px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 10px;
  }
  .portrait-caption {
    font-size: 5px;
  }
  .portrait-sticker {
    font-size: 24px;
    right: -15px;
  }
  .journey-grid,
  .credentials {
    gap: 45px;
  }
  .timeline-item h3 {
    font-size: 14px;
  }
  .timeline-item {
    min-height: 185px;
  }
  .contact-layout {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .contact-copy h2 {
    font-size: 36px;
  }
  .email-link {
    font-size: 13px;
    gap: 10px;
  }
  .contact-copy > p:not(.eyebrow) {
    font-size: 11px;
  }
  .contact-form {
    padding: 23px 20px;
  }
  .form-row {
    gap: 11px;
  }
  .contact-socials {
    gap: 16px;
  }
  .footer-top .brand-name {
    display: block;
  }
  .footer-links {
    gap: 17px;
  }
  .footer-bottom > span:nth-child(2) {
    font-size: 6px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 90px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 70px;
    gap: 10px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-inner > .brand .brand-name {
    display: block;
    font-size: 10px;
  }
  .brand-mark {
    height: 36px;
    width: 36px;
    font-size: 23px;
    border-radius: 8px;
  }
  .primary-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px;
    box-shadow: 0 15px 20px #0001;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 13px;
    font-size: 14px;
  }
  .nav-contact {
    margin: 10px 0 0;
    text-align: center;
  }
  .nav-link[aria-current]::after {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .icon-button {
    width: 37px;
    height: 37px;
  }
  .search-toggle {
    padding: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 65px;
    min-height: unset;
    gap: 38px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.25px;
  }
  .hero h1 {
    font-size: clamp(44px, 9.1vw, 64px);
    letter-spacing: -0.055em;
    margin: 24px 0 25px;
    line-height: 1.13;
  }
  .hero-description {
    font-size: 13px;
    max-width: 390px;
    margin-top: 28px;
  }
  .hero-buttons {
    gap: 26px;
    margin-top: 25px;
  }
  .hero .button {
    font-size: 12px;
    min-height: 49px;
    padding-inline: 20px;
    gap: 25px;
  }
  .hero .text-link {
    font-size: 11px;
  }
  .hero-location {
    font-size: 9px;
    margin-top: 26px;
  }
  .hero-art {
    width: 100%;
    max-width: 410px;
    justify-self: center;
    margin: 0;
  }
  .art-topline,
  .art-bottomline {
    font-size: 7px;
    padding-block: 12px;
  }
  .neural-visual {
    max-height: 340px;
  }
  .neural-svg {
    height: 340px;
  }
  .art-label-one {
    left: 0;
    top: 23%;
    font-size: 8px;
  }
  .art-label-one small {
    font-size: 7px;
  }
  .art-label-two {
    right: 0;
    bottom: 10%;
    font-size: 8px;
  }
  .scroll-hint {
    bottom: 18px;
    font-size: 7px;
  }
  .tool-strip-inner {
    justify-content: space-around;
    gap: 20px 18px;
    padding-block: 23px;
  }
  .tool-strip p {
    flex: 0 0 100%;
    border: 0;
    text-align: center;
    font-size: 7px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
  }
  .tool-strip p br {
    display: none;
  }
  .tool-strip .strip-tool:last-child {
    display: flex;
  }
  .strip-tool {
    font-size: 10px;
    flex: 0 0 26%;
    justify-content: center;
  }
  .strip-tool img {
    max-width: 23px;
    height: 23px;
  }
  .section {
    padding-block: 65px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-index {
    font-size: 8px;
    letter-spacing: 1.3px;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 37px;
    letter-spacing: -1.8px;
  }
  .section-intro {
    max-width: 400px;
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.9;
  }
  .filter-row {
    display: block;
    padding-bottom: 15px;
    margin-bottom: 21px;
  }
  .project-filters {
    gap: 5px;
  }
  .filter-button {
    font-size: 9px;
    padding: 8px 10px;
  }
  .filter-button > span {
    font-size: 7px;
    margin-left: 5px;
  }
  .project-count {
    display: block;
    font-size: 8px;
    margin-top: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .featured-project {
    display: flex;
    grid-column: auto;
  }
  .project-visual {
    min-height: 270px;
  }
  .hearth-visual {
    min-height: 300px;
    padding: 55px 25px 28px;
  }
  .hearth-window {
    max-width: 420px;
    margin-inline: auto;
    height: 245px;
  }
  .hearth-sidebar {
    padding: 13px 12px;
  }
  .mock-nav {
    font-size: 6px;
  }
  .mock-new {
    font-size: 6px;
  }
  .mock-conversation {
    margin-top: 10px;
  }
  .mock-conversation p {
    font-size: 25px;
  }
  .mock-topbar > span:last-child {
    display: flex;
  }
  .mock-prompt {
    font-size: 7px;
  }
  .project-meta {
    font-size: 7px;
  }
  .project-body,
  .featured-project .project-body {
    padding: 25px;
  }
  .project-body h3,
  .featured-project h3 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .project-body > p {
    font-size: 12px;
    max-width: none;
  }
  .project-detail-link {
    font-size: 11px;
  }
  .tag-list > span {
    font-size: 9px;
  }
  .rag-art {
    transform: none;
    max-width: 320px;
    height: 220px;
    margin-top: 35px;
  }
  .project-visual:not(.hearth-visual) {
    min-height: 270px;
  }
  .hand-art {
    height: 270px;
    max-width: 330px;
  }
  .compact-project {
    min-height: 240px;
    position: relative;
  }
  .compact-project .project-body {
    padding: 25px;
  }
  .compact-project h3 {
    font-size: 25px;
    max-width: 90%;
  }
  .compact-art {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 95px;
    height: 95px;
    opacity: 0.09;
  }
  .compact-project .project-meta {
    font-size: 7px;
  }
  .work-footer {
    display: block;
    font-size: 10px;
    margin-top: 25px;
  }
  .work-footer .text-link {
    margin-top: 10px;
    font-size: 11px;
  }
  .lab-section {
    padding: 60px 0;
  }
  .lab-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lab-copy h2 {
    font-size: 39px;
    letter-spacing: -1.8px;
  }
  .lab-copy > p:not(.eyebrow) {
    font-size: 12px;
    max-width: 380px;
  }
  .lab-tabs {
    max-width: none;
  }
  .lab-tab {
    padding-block: 13px;
  }
  .lab-tab > span {
    font-size: 12px;
  }
  .lab-demo {
    max-width: 500px;
    width: 100%;
    justify-self: center;
  }
  .lab-panel-header {
    font-size: 7px;
    padding: 18px;
  }
  .pipeline {
    padding: 24px 18px;
  }
  .pipeline-step {
    padding: 16px 13px;
    gap: 15px;
  }
  .pipeline-step strong {
    font-size: 12px;
  }
  .pipeline-step > div > span {
    font-size: 9px;
  }
  .pipeline-step small {
    font-size: 7px;
  }
  .pipeline-connector {
    height: 41px;
  }
  .lab-caption {
    font-size: 6px;
    padding: 16px 18px;
  }
  .lab-caption > span {
    display: inline;
    font-size: 5px;
  }
  .skill-grid {
    margin-top: 36px;
    gap: 32px 0;
  }
  .skill-group {
    padding-inline: 15px;
  }
  .skill-group h3 {
    font-size: 15px;
    line-height: 1.4;
    min-height: 42px;
    margin: 16px 0 10px;
    letter-spacing: -0.5px;
  }
  .skill-group > p {
    font-size: 10px;
    min-height: 58px;
  }
  .skill-logos {
    gap: 12px;
    min-height: 75px;
    align-content: center;
    flex-direction: column;
    align-items: flex-start;
    margin: 16px 0;
  }
  .skill-logos > span {
    font-size: 10px;
  }
  .skill-logos img {
    width: 27px;
    height: 27px;
  }
  .skill-words {
    font-size: 9px;
    gap: 5px 6px;
  }
  .skill-words > span:not(:last-child)::after {
    padding-left: 3px;
  }
  .skill-text-logos {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 75px;
    margin: 16px 0;
    gap: 12px;
  }
  .sql-logo {
    font-size: 21px;
  }
  .tableau-logo {
    font-size: 23px;
    line-height: 1;
  }
  .learning-note {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px 12px;
    padding-block: 21px;
    margin-top: 32px;
  }
  .learning-note > p {
    flex: 1;
    font-size: 10px;
  }
  .learning-note strong {
    display: block;
  }
  .learning-note .text-link {
    margin-left: 31px;
  }
  .about-section {
    padding: 60px 0 40px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-wrap {
    width: 100%;
    max-width: 400px;
    justify-self: center;
    margin-right: 12px;
  }
  .portrait-wrap > img {
    height: auto;
    aspect-ratio: 1.05;
    object-fit: cover;
    object-position: center 25%;
  }
  .portrait-caption {
    font-size: 6px;
    padding-top: 15px;
  }
  .portrait-sticker {
    font-size: 28px;
    right: -13px;
    bottom: 45px;
  }
  .about-copy h2 {
    font-size: 37px;
    letter-spacing: -1.7px;
  }
  .about-copy .eyebrow {
    font-size: 8px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.9;
    max-width: none;
    margin-bottom: 18px;
  }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 45px;
  }
  .timeline-item {
    min-height: 0;
    padding-block: 22px;
  }
  .timeline-item h3 {
    font-size: 16px;
  }
  .timeline-item p {
    font-size: 11px;
  }
  .timeline-item .timeline-place {
    font-size: 10px;
  }
  .timeline-date {
    font-size: 8px;
  }
  .degree-score {
    font-size: 26px;
  }
  .credentials {
    grid-template-columns: 1fr;
    gap: 21px;
    margin-top: 29px;
  }
  .credentials p {
    font-size: 9px;
  }
  .credentials strong {
    font-size: 11px;
  }
  .contact-section {
    padding: 60px 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .contact-copy h2 {
    font-size: 40px;
    letter-spacing: -2px;
  }
  .contact-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .email-link {
    font-size: 17px;
  }
  .contact-secondary {
    font-size: 9px;
  }
  .contact-socials {
    margin-top: 23px;
    font-size: 11px;
    gap: 25px;
  }
  .contact-form {
    padding: 25px 22px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 12px;
    min-height: 45px;
  }
  .contact-form label {
    font-size: 10px;
  }
  .contact-form textarea {
    min-height: 110px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .search-dialog input {
    font-size: 16px;
  }
  .form-row {
    gap: 13px;
  }
  .contact-form .button {
    font-size: 12px;
  }
  .form-note {
    font-size: 8px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 25px;
    gap: 25px;
  }
  .footer-top .brand-name {
    font-size: 10px;
  }
  .footer-links {
    gap: 22px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .footer-bottom {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer-bottom > span:nth-child(2) {
    order: 3;
    flex: 0 0 100%;
    font-size: 6px;
  }
  .footer-bottom > a {
    margin-left: auto;
  }
  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
  dialog {
    padding: 30px 24px;
    max-height: 87dvh;
  }
  .project-dialog h2 {
    font-size: 29px;
  }
  .project-dialog > .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .dialog-description {
    font-size: 12px;
  }
  .project-dialog ul {
    font-size: 11px;
  }
  .search-dialog {
    padding: 23px 19px;
  }
  .search-dialog input {
    font-size: 13px;
    padding: 13px;
  }
  .search-disclaimer {
    font-size: 7px;
  }
  .search-disclaimer kbd {
    font-size: 6px;
  }
  .search-dialog-top .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .dialog-close {
    top: 11px;
    right: 10px;
  }
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 370px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner > .brand .brand-name {
    font-size: 9px;
  }
  .brand {
    gap: 8px;
  }
  .hero h1 {
    font-size: 9vw;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .hero-buttons {
    gap: 20px;
  }
  .hero .button {
    font-size: 11px;
    gap: 20px;
    padding-inline: 16px;
  }
  .hero .text-link {
    font-size: 10px;
  }
  .filter-button {
    padding: 7px 8px;
    font-size: 8px;
  }
  .email-link {
    font-size: 15px;
  }
  .contact-copy h2 {
    font-size: 36px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pipeline-step strong {
    font-size: 11px;
  }
  .pipeline-step > div > span {
    font-size: 8px;
  }
  .pipeline-icon {
    min-width: 24px;
    width: 24px;
  }
  .lab-panel-header {
    font-size: 6px;
  }
  .project-meta {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .hero-art,
  .scroll-hint,
  .tool-strip,
  .lab-section,
  .project-filters,
  .project-count,
  .project-detail-link,
  .contact-form,
  .header-actions,
  .back-to-top,
  dialog,
  .contact-secondary {
    display: none !important;
  }
  :root {
    --paper: #fff;
    --ink: #111;
    --muted: #444;
    --soft: #f5f5f5;
  }
  body {
    font-size: 11px;
  }
  .container {
    width: 100%;
  }
  .hero {
    display: block;
    min-height: 0;
    padding: 20px 0;
  }
  .hero h1 {
    font-size: 48px;
  }
  .section,
  .about-section,
  .contact-section {
    padding: 28px 0;
  }
  .project-card,
  .skill-group,
  .timeline-item {
    break-inside: avoid;
  }
  .project-visual {
    min-height: 200px;
  }
  .project-grid {
    gap: 16px;
  }
  .hero-buttons {
    display: none;
  }
  .journey-grid {
    margin-top: 25px;
  }
  .contact-section {
    background: #fff;
  }
  .footer-bottom > span:nth-child(2) {
    display: none;
  }
}

/* Personal portfolio: black, neutral surfaces, one blue accent. */
:root, :root[data-theme="dark"] {
  --paper: #090909;
  --surface: #111111;
  --ink: #f1f1f1;
  --muted: #a0a0a0;
  --line: #292929;
  --soft: #151515;
  --accent: #8eafff;
  --coral: #8eafff;
  --green: #8eafff;
  --accent-contrast: #0b1220;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #fafafa;
  --surface: #ffffff;
  --ink: #181818;
  --muted: #656565;
  --line: #dddddd;
  --soft: #f1f1f1;
  --accent: #2e5fde;
  --coral: #2e5fde;
  --green: #2e5fde;
  --accent-contrast: #ffffff;
  color-scheme: light;
}
::selection { background: #8eafff40; }
body { font-size: 15px; }
.navigation { min-height: 80px; display: flex; align-items: center; gap: 30px; }
.name-link { font-size: 14px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; }
.primary-nav { gap: 28px; }
.nav-link { font-size: 12px; }
.nav-resume { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.nav-resume:hover { border-color: var(--accent); color: var(--accent); }
.hero { grid-template-columns: 1.7fr 1fr; gap: 75px; min-height: 650px; padding-block: 85px; }
.hero-copy { min-width: 0; }
.intro { font-size: 16px; color: var(--muted); margin-bottom: 13px; }
.hero h1 { font-size: clamp(42px, 4.9vw, 70px); font-weight: 800; letter-spacing: -2.7px; line-height: 1.2; white-space: normal; margin: 0; word-spacing: 0; }
.hero h1 > span { color: var(--accent); }
.role-line { display: flex; align-items: baseline; min-height: 45px; margin-top: 16px; font-size: clamp(20px, 2.05vw, 28px); font-weight: 600; letter-spacing: -.5px; white-space: nowrap; }
.role-prefix { font-size: .68em; font-weight: 400; color: var(--muted); margin-right: 9px; letter-spacing: 0; }
.typed-role, .typing-cursor { color: var(--accent); }
.typing-cursor { font-weight: 400; margin-left: 3px; animation: blink 1s step-end infinite; }
.animation-toggle { border: 0; background: none; color: var(--muted); padding: 6px 9px; font-size: 11px; opacity: .65; margin-left: 7px; align-self: center; }
.animation-toggle:hover { opacity: 1; }
.hero .hero-description { max-width: 510px; color: var(--muted); font-size: 14px; margin-top: 22px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .button { font-size: 11px; min-height: 47px; padding: 11px 19px; gap: 20px; }
.primary-button { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); }
.primary-button:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); }
.secondary-button:hover { border-color: var(--accent); background: var(--soft); }
.hero-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; color: var(--muted); margin-top: 26px; }
.hero-links a:hover { color: var(--accent); }
.location { display: flex; align-items: center; gap: 7px; }
.location > span { color: var(--accent); }
.portrait { width: 100%; max-width: 315px; justify-self: end; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: 50% 20%; border-radius: 10px; filter: grayscale(1); border: 1px solid var(--line); }
.portrait figcaption { color: var(--muted); text-align: center; font-size: 9px; margin-top: 13px; }
h2 { font-size: clamp(33px, 3.4vw, 46px); letter-spacing: -1.9px; font-weight: 600; }
.section-intro { font-size: 13px; }
.section { padding-block: 85px; }
.section-heading { margin-bottom: 35px; }
.section-index { font-size: 9px; letter-spacing: 1.4px; }
.work-section { border-top: 1px solid var(--line); }
.project-card { background: var(--surface); }
.project-card:hover { border-color: var(--muted); box-shadow: 0 8px 28px #00000010; }
.project-visual { border-bottom: 1px solid var(--line); }
.featured-project .project-visual { border-bottom: 0; border-right: 1px solid var(--line); }
.project-body > p { font-size: 12px; }
.project-meta { font-size: 8px; }
.project-detail-link { font-size: 11px; }
.filter-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); }
.hearth-visual { background: #111111; background-image: none; color: #cfcfcf; }
.hearth-visual .visual-label { color: #aaaaaa; }
.hearth-window { background: #1d1d1d; border-color: #454545; color: #eeeeee; box-shadow: 0 20px 40px #00000040; }
.hearth-sidebar { background: #151515; border-color: #343434; }
.hearth-logo span, .hearth-spark, .mock-conversation p span { color: #8eafff; }
.mock-new { border-color: #3a3a3a; }
.mock-nav.active { background: #282828; }
.mock-sidebar-bottom i, .mock-topbar i { background: #8eafff; }
.mock-topbar > span:last-child { color: #a0a0a0; }
.mock-prompt { background: #252525; border-color: #404040; color: #bbbbbb; }
.mock-prompt span { background: #8eafff; color: #101010; }
.mock-conversation small { color: #a0a0a0; }
.concept-label { background: #111111cc; color: #bbbbbb; }
.rag-visual, .signify-visual { background: var(--soft); color: var(--muted); }
.doc-stack > span, .model-chip, .rag-answer { background: var(--surface); border-color: var(--line); box-shadow: 0 6px 20px #00000010; }
.doc-stack i, .rag-answer > i { background: var(--muted); opacity: .45; }
.flow-arrow, .rag-answer > span { color: var(--muted); }
.model-chip img { filter: none; }
[data-theme="dark"] .model-chip img { filter: invert(.88); }
.hand-grid { stroke: var(--muted); }
.hand-outline { fill: var(--surface); stroke: var(--muted); }
.hand-landmarks { fill: var(--accent); stroke: var(--accent); }
.hand-landmarks > path { stroke: var(--muted); }
.scan-corners { stroke: var(--muted); }
.vision-detection { background: var(--surface); color: var(--muted); border-color: var(--line); }
.vision-detection i { background: var(--accent); }
.weather-art svg > circle { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); }
.skill-logos img { filter: grayscale(1); }
[data-theme="dark"] .skill-logos img[src$=".svg"] { filter: invert(.88); }
[data-theme="light"] .skill-logos img[src$=".svg"] { filter: none; }
.tableau-logo { color: var(--accent); }
.about-section { background: var(--soft); padding: 80px 0; }
.bio-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; margin-top: 30px; margin-bottom: 45px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.education-card { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.education-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 32px; }
.education-symbol { color: var(--accent); font-size: 30px; line-height: 1; }
.education-card h3 { font-size: 19px; letter-spacing: -.6px; margin-bottom: 15px; }
.education-card .university { font-size: 12px; }
.education-location { font-size: 11px; color: var(--muted); margin-top: 4px; }
.education-card .timeline-date { font-size: 8px; }
.credentials { width: 100%; margin: 30px 0 0; gap: 40px; }
.profiles-section { padding-block: 85px; }
.profiles-layout { display: grid; grid-template-columns: 1fr 285px; gap: 30px; align-items: start; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.feed-heading .eyebrow { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.feed-status { font-size: 8px; color: var(--muted); text-align: right; }
.repo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.repo-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); transition: border-color .2s; }
.repo-card:hover { border-color: var(--accent); }
.repo-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 17px; font-size: 17px; }
.repo-symbol { color: var(--accent); }
.repo-card h3 { font-size: 12px; overflow-wrap: anywhere; letter-spacing: -.15px; line-height: 1.6; }
.repo-card > p { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 10px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.repo-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: auto; }
.linkedin-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--surface); }
.linkedin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: var(--muted); font-size: 16px; }
.linkedin-wordmark { font-size: 12px; font-weight: 700; color: var(--ink); }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); border: 1px solid var(--line); }
.linkedin-card h3 { font-size: 20px; margin: 19px 0 12px; letter-spacing: -.6px; }
.profile-headline { font-size: 12px; line-height: 1.9; color: var(--muted); }
.profile-location { font-size: 10px; color: var(--muted); margin-top: 12px; }
.profile-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.profile-topics span { padding: 4px 7px; background: var(--soft); color: var(--muted); font-size: 8px; border-radius: 3px; }
.linkedin-card .button { width: 100%; min-height: 43px; padding: 10px 13px; font-size: 10px; gap: 20px; margin-top: 25px; }
.profile-footnote { font-size: 8px; color: var(--muted); text-align: center; margin-top: 12px; }
.contact-section { background: var(--soft); color: var(--ink); border-top: 1px solid var(--line); padding: 85px 0; }
.contact-section .section-index { color: var(--muted); }
.contact-copy h2 { font-size: 46px; letter-spacing: -1.7px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.email-link { border-color: var(--line); color: var(--ink); }
.email-link:hover { color: var(--accent); }
.contact-form { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.form-topline { color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { color: var(--ink); background: var(--paper); border-color: var(--line); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form select { color-scheme: inherit; }
.contact-form .button, .button-dark { background: var(--accent); color: var(--accent-contrast); }
.contact-form .button:hover, .button-dark:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); color: var(--accent-contrast); }
.form-note, .contact-form #form-status { color: var(--muted); }
.contact-section a:focus-visible, .contact-section button:focus-visible { outline-color: var(--accent); }
.email-copy-fallback { background: var(--paper); color: var(--ink); border-color: var(--line); }
.footer-name { font-size: 13px; font-weight: 600; }
.footer-name > span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 6px; }
.back-to-top { background: var(--surface); color: var(--ink); }
.back-to-top:hover { background: var(--accent); color: var(--accent-contrast); }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 1100px) {
  .hero { gap: 45px; }
  .hero h1 { font-size: 54px; }
  .role-line { font-size: 23px; }
  .profiles-layout { grid-template-columns: 1fr 255px; gap: 22px; }
  .repo-card { padding: 17px; }
  .linkedin-card { padding: 22px; }
}
@media (max-width: 900px) {
  .navigation { gap: 20px; }
  .primary-nav { gap: 20px; }
  .name-link { font-size: 12px; }
  .hero { gap: 35px; min-height: 580px; }
  .hero h1 { font-size: 43px; letter-spacing: -2px; }
  .role-line { font-size: 20px; }
  .role-prefix { margin-right: 7px; }
  .animation-toggle { margin-left: 0; padding-inline: 6px; }
  .hero .hero-description { font-size: 12px; }
  .hero .button { font-size: 10px; padding-inline: 14px; gap: 14px; }
  .hero-links { font-size: 10px; gap: 17px; }
  .location { flex-basis: 100%; }
  .portrait figcaption { font-size: 8px; }
  .profiles-layout { grid-template-columns: 1fr; }
  .linkedin-card { display: grid; grid-template-columns: 70px 1fr auto; column-gap: 23px; align-items: center; }
  .linkedin-top { grid-column: 1 / -1; margin-bottom: 18px; }
  .profile-avatar { grid-column: 1; grid-row: 2 / 5; }
  .linkedin-card h3 { grid-column: 2; margin: 0 0 5px; font-size: 19px; }
  .profile-headline { grid-column: 2; }
  .profile-location { grid-column: 2; margin-top: 4px; }
  .profile-topics { display: none; }
  .linkedin-card .button { grid-column: 3; grid-row: 2 / 5; margin-top: 0; }
  .profile-footnote { grid-column: 1 / -1; margin-top: 18px; text-align: left; }
  .bio-columns { gap: 35px; font-size: 12px; }
  .education-card { padding: 24px; }
  .education-card h3 { font-size: 17px; }
}
@media (max-width: 700px) {
  .navigation { min-height: 70px; }
  .name-link { font-size: 13px; }
  .primary-nav { gap: 0; }
  .nav-resume { margin-top: 10px; text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding: 48px 0 55px; }
  .hero h1 { font-size: clamp(36px, 8.7vw, 54px); letter-spacing: -1.8px; margin: 0; }
  .hero .hero-description { font-size: 13px; margin-top: 18px; max-width: 470px; }
  .role-line { font-size: clamp(17px, 4.5vw, 24px); min-height: 36px; margin-top: 16px; }
  .hero .hero-actions { gap: 12px; }
  .hero .button { font-size: 11px; padding: 11px 15px; gap: 14px; }
  .hero-links { font-size: 10px; gap: 20px; margin-top: 24px; }
  .location { flex-basis: auto; }
  .portrait { justify-self: start; max-width: 180px; }
  .portrait img { aspect-ratio: 1.1; border-radius: 7px; object-position: 50% 22%; }
  .portrait figcaption { font-size: 7px; text-align: left; margin-top: 9px; }
  .section { padding-block: 60px; }
  h2 { font-size: 35px; letter-spacing: -1.5px; }
  .section-index { font-size: 8px; }
  .section-intro { font-size: 12px; margin-top: 18px; }
  .featured-project .project-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-section { padding: 60px 0; }
  .bio-columns { grid-template-columns: 1fr; gap: 17px; margin: 23px 0 30px; font-size: 12px; }
  .education-grid { grid-template-columns: 1fr; gap: 18px; }
  .education-card { padding: 25px; }
  .education-top { margin-bottom: 25px; }
  .education-card h3 { font-size: 20px; }
  .credentials { gap: 20px; }
  .profiles-layout { gap: 22px; }
  .repo-grid { gap: 11px; }
  .repo-card { padding: 17px 14px; }
  .repo-card h3 { font-size: 11px; }
  .repo-card > p { font-size: 9px; }
  .repo-meta { font-size: 7px; }
  .repo-top { margin-bottom: 13px; }
  .feed-heading { gap: 10px; }
  .feed-heading .eyebrow { font-size: 7px; }
  .feed-status { font-size: 7px; max-width: 100px; }
  .linkedin-card { display: block; padding: 25px; }
  .linkedin-top { margin-bottom: 24px; }
  .linkedin-card h3 { margin: 19px 0 12px; font-size: 21px; }
  .profile-location { margin-top: 12px; }
  .profile-topics { display: flex; }
  .linkedin-card .button { margin-top: 24px; }
  .profile-footnote { margin-top: 12px; text-align: center; }
  .contact-section { padding: 60px 0; }
  .contact-copy h2 { font-size: 37px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .footer-top { gap: 25px; }
}
@media (max-width: 380px) {
  .role-line { font-size: 16px; letter-spacing: -.5px; }
  .role-prefix { margin-right: 6px; }
  .animation-toggle { padding-inline: 5px; }
  .hero .button { font-size: 10px; padding-inline: 12px; }
  .repo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .typing-cursor { display: none; } }

/* Photo-led introduction and simpler project cards. */
.hero.hero-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 660px;
  padding: 0;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 64%;
  pointer-events: none;
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1);
  opacity: .62;
}

.hero-inner {
  position: relative;
  padding-block: 100px;
}
.hero-photo .hero-copy { width: 64%; max-width: 720px; }
.hero-photo .hero-description { max-width: 480px; }
.hero-photo h1 { font-size: clamp(42px, 5.3vw, 72px); }
.hero-photo .hero-actions { margin-top: 30px; }
.hero-photo .secondary-button { background: color-mix(in srgb, var(--paper) 78%, transparent); }
.hero-photo .hero-links { color: var(--ink); }
.hero-photo .location { color: var(--muted); }
.minimal-project-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
.minimal-project { display: flex; flex-direction: column; }
.minimal-project .project-visual {
  height: 260px;
  min-height: 260px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.minimal-project .project-body { padding: 23px 25px; }
.project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.minimal-project .project-heading h3 { font-size: 21px; letter-spacing: -.6px; margin: 0; line-height: 1.4; }
.project-source-link { flex-shrink: 0; color: var(--accent); font-size: 10px; white-space: nowrap; padding-block: 5px; }
.project-source-link span { margin-left: 6px; font-size: 15px; }
.project-source-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-private { flex-shrink: 0; font-size: 9px; color: var(--muted); padding-top: 7px; }
.minimal-project .project-summary { margin: 12px 0 17px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.minimal-project .tag-list { margin-top: auto; gap: 6px; }
.minimal-project .tag-list > span { font-size: 10px; padding: 5px 9px; }
.minimal-project .hearth-visual { padding: 30px 30px 0; }
.minimal-project .hearth-window { height: 255px; transform: translateY(26px) rotate(-2deg); }
.minimal-project .rag-art { height: 230px; margin-top: 16px; }
.minimal-project .hand-art { height: 250px; margin-top: 0; }
.minimal-project .data-project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  background-image: radial-gradient(var(--line) .7px, transparent .7px);
  background-size: 20px 20px;
}
.minimal-project .compact-art { position: static; display: block; flex: 0 0 150px; width: 150px; height: 150px; margin: 0; opacity: 1; }
.minimal-project .compact-art svg { width: 100%; height: 100%; }
.skill-group > p { font-size: 12px; line-height: 1.8; }
.skill-logos > span { font-size: 11px; }
.skill-words { font-size: 10px; line-height: 1.9; }
@media (max-width: 1000px) {
  .hero-photo .hero-copy { width: 70%; }
  .hero.hero-photo { min-height: 620px; }
  .hero-photo h1 { font-size: 54px; }
  .minimal-project .project-heading h3 { font-size: 19px; }
  .minimal-project .project-body { padding: 22px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .container { width: calc(100% - 40px); }
  .navigation { min-height: 70px; }
  .icon-button { min-width: 44px; min-height: 44px; }
  .primary-nav { top: 70px; }
  .hero.hero-photo { min-height: 610px; }
  .hero-background { width: 100%; }
  .hero-background img { object-position: 25% 20%; opacity: .5; }
  
  .hero-inner { padding-block: 70px 65px; }
  .hero-photo .hero-copy { width: 100%; max-width: 530px; }
  .hero-photo h1 { font-size: clamp(34px, 8.6vw, 54px); letter-spacing: -1.6px; }
  .hero-photo .role-line { font-size: clamp(18px, 4.4vw, 25px); min-height: 42px; flex-wrap: nowrap; }
  .hero-photo .hero-description { max-width: 420px; font-size: 14px; line-height: 1.9; margin-top: 20px; }
  .hero-photo .hero-actions { gap: 12px; margin-top: 28px; }
  .hero-photo .button { min-height: 49px; font-size: 12px; padding: 11px 16px; gap: 16px; }
  .hero-photo .hero-links { font-size: 12px; gap: 23px; margin-top: 26px; }
  .hero-photo .location { flex-basis: 100%; font-size: 11px; }
  .section { padding-block: 56px; }
  .section-heading { margin-bottom: 25px; }
  .work-section .section-heading { display: flex; align-items: flex-end; gap: 20px; }
  .work-section .section-heading .text-link { font-size: 11px; margin-bottom: 3px; }
  .work-section .section-index { margin-bottom: 12px; }
  .minimal-project-grid { grid-template-columns: 1fr; gap: 22px; }
  .minimal-project .project-visual { height: 235px; min-height: 235px; }
  .minimal-project .project-body { padding: 21px; }
  .minimal-project .project-heading h3 { font-size: 21px; }
  .minimal-project .project-summary { font-size: 12px; line-height: 1.8; margin: 10px 0 17px; }
  .project-source-link { font-size: 11px; min-height: 40px; padding: 4px 0 8px 7px; }
  .project-private { font-size: 9px; }
  .minimal-project .tag-list > span { font-size: 10px; padding: 5px 8px; }
  .minimal-project .hearth-visual { padding-inline: 21px; }
  .minimal-project .hearth-window { height: 240px; transform: translateY(17px) rotate(-2deg); }
  .minimal-project .rag-art { height: 215px; margin-top: 10px; }
  .minimal-project .hand-art { height: 230px; }
  .minimal-project .compact-art { flex-basis: 135px; width: 135px; height: 135px; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 28px; }
  .skill-grid .skill-group { padding: 18px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
  .skill-number { font-size: 9px; }
  .skill-group h3 { font-size: 15px; line-height: 1.4; min-height: 42px; margin: 14px 0 12px; }
  .skill-group > p { font-size: 11px; min-height: 73px; line-height: 1.8; }
  .skill-group .skill-logos { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 82px; gap: 12px; margin: 18px 0; }
  .skill-logos > span { font-size: 10px; gap: 7px; }
  .skill-logos img { width: 26px; height: 26px; }
  .skill-group .skill-text-logos { min-height: 82px; margin: 18px 0; }
  .skill-words { font-size: 10px; gap: 5px 7px; }
  .learning-note > p { font-size: 11px; }
  .bio-columns { font-size: 13px; }
  .education-card { padding: 24px; }
  .education-card h3 { font-size: 20px; line-height: 1.4; }
  .education-card .university { font-size: 12px; }
  .education-location { font-size: 11px; }
  .repo-grid { grid-template-columns: 1fr; gap: 12px; }
  .repo-card { padding: 22px; }
  .repo-card:nth-child(n+5) { display: none; }
  .repo-card h3 { font-size: 13px; }
  .repo-card > p { font-size: 12px; -webkit-line-clamp: 2; }
  .repo-meta { font-size: 9px; }
  .repo-top { margin-bottom: 12px; }
  .feed-heading .eyebrow, .feed-status { font-size: 8px; }
  .linkedin-card { padding: 25px; }
  .profile-headline { font-size: 13px; }
  .contact-layout { gap: 28px; }
  .contact-copy > p:not(.eyebrow) { font-size: 13px; }
  .email-link { font-size: clamp(15px, 4.3vw, 21px); gap: 10px; overflow-wrap: anywhere; }
  .contact-socials { font-size: 12px; }
  .contact-socials a { min-height: 44px; display: inline-flex; align-items: center; }
  .contact-form { padding: 25px 21px; }
  .form-row { grid-template-columns: 1fr; gap: 15px; }
  .contact-form label { font-size: 12px; margin-bottom: 8px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; min-height: 48px; }
  .contact-form textarea { min-height: 135px; }
  .contact-form .button { min-height: 49px; font-size: 13px; }
  .form-note { font-size: 10px; line-height: 1.8; }
  .footer-links { gap: 15px 23px; font-size: 11px; }
  .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
  .footer-bottom { font-size: 10px; }
}
@media (max-width: 370px) {
  .hero-photo .role-line { font-size: 16px; }
  .hero-photo .button { font-size: 11px; padding-inline: 13px; gap: 12px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-group h3, .skill-group > p { min-height: 0; }
  .skill-group .skill-logos { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 44px; gap: 18px; }
  .minimal-project .project-heading h3 { font-size: 19px; }
  .project-private { max-width: 65px; text-align: right; }
}

/* Full-bleed portrait background, with the introduction layered over it. */
.hero.hero-photo {
  --accent: #a1bfff;
  --accent-contrast: #101522;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 700px;
  color: #f7f7f7;
  text-align: center;
}
.hero-photo .hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-photo .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 17%;
  filter: grayscale(1);
  opacity: 1;
}

.hero-photo .hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 95px 115px;
}
.hero-photo .hero-copy {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}
.hero-photo .intro { color: #dddddd; font-size: 18px; margin-bottom: 15px; }
.hero-photo h1 { font-size: clamp(42px, 5.6vw, 76px); color: #ffffff; text-shadow: 0 2px 25px #00000020; }
.hero-photo .role-line { justify-content: center; font-size: clamp(22px, 2.4vw, 31px); margin-top: 19px; }
.hero-photo .role-prefix { color: #dddddd; }
.hero-photo .animation-toggle { color: #dddddd; }
.hero-photo .hero-description { max-width: 520px; margin: 24px auto 0; color: #dddddd; font-size: 14px; }
.hero-photo .hero-actions { justify-content: center; margin-top: 30px; }
.hero-photo .secondary-button { background: #00000035; border-color: #ffffff65; color: #ffffff; }
.hero-photo .secondary-button:hover { border-color: #ffffff; background: #00000065; }
.hero-photo .hero-links { justify-content: center; color: #eeeeee; margin-top: 28px; }
.hero-photo .hero-links a:hover { color: var(--accent); }
.hero-photo .location { color: #cccccc; justify-content: center; }
@media (max-width: 760px) {
  .hero.hero-photo { min-height: 660px; }
  .hero-photo .hero-inner { padding-block: 80px 100px; }
  .hero-photo .hero-background img { object-position: 50% 20%; }
  
  .hero-photo h1 { font-size: clamp(35px, 8.2vw, 57px); letter-spacing: -1.8px; }
  .hero-photo .intro { font-size: 16px; }
  .hero-photo .role-line { font-size: clamp(17px, 4.3vw, 26px); min-height: 40px; }
  .hero-photo .hero-description { font-size: 13px; max-width: 420px; margin-top: 23px; }
  .hero-photo .hero-actions { gap: 11px; }
  .hero-photo .button { font-size: 11px; padding-inline: 15px; }
  .hero-photo .hero-links { font-size: 11px; gap: 22px; }
  .hero-photo .location { flex-basis: 100%; margin-top: 2px; }
}
@media (max-width: 380px) {
  .hero.hero-photo { min-height: 625px; }
  .hero-photo h1 { font-size: 34px; letter-spacing: -1.5px; }
  .hero-photo .role-line { font-size: 16px; }
  .hero-photo .hero-description { font-size: 12px; }
  .hero-photo .button { font-size: 10px; padding-inline: 12px; }
}

/* Resume viewer stays inside the site, with its own scroll area. */
.resume-dialog {
  width: min(1040px, calc(100% - 40px));
  height: min(900px, 91dvh);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.resume-dialog[open] { display: flex; flex-direction: column; }
.resume-dialog::backdrop { background: #000000bd; backdrop-filter: blur(7px); }
body.resume-open { overflow: hidden; }
.resume-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.resume-heading h2 { font-size: 18px; letter-spacing: -.4px; line-height: 1.3; }
.resume-heading p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.resume-toolbar-actions { display: flex; align-items: center; gap: 16px; }
.resume-download { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 42px; padding: 9px 16px; border-radius: 5px; background: var(--accent); color: var(--accent-contrast); font-size: 12px; font-weight: 600; }
.resume-download:hover { opacity: .9; }
.resume-download span { font-size: 18px; }
.resume-close { font-size: 28px; line-height: 1; width: 42px; height: 42px; }
.resume-viewer { position: relative; flex: 1; min-height: 0; background: #e5e5e5; }
.resume-native-pdf { display: block; width: 100%; height: 100%; border: 0; background: #e5e5e5; }
.resume-mobile-controls, .resume-mobile-scroll { display: none; }
.resume-viewer-footer { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.resume-viewer-footer a { color: var(--accent); }
@media (max-width: 700px) {
  .resume-dialog { width: calc(100% - 16px); height: 94dvh; max-height: 94dvh; border-radius: 10px; }
  .resume-toolbar { padding: 14px; gap: 12px; }
  .resume-heading h2 { font-size: 17px; }
  .resume-heading p { font-size: 10px; }
  .resume-toolbar-actions { gap: 8px; }
  .resume-download { font-size: 11px; padding-inline: 12px; gap: 10px; min-height: 43px; }
  .resume-mobile-controls { display: flex; align-items: center; flex-shrink: 0; gap: 5px; padding: 7px 11px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .resume-mobile-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border-radius: 4px; background: var(--soft); color: var(--ink); font-size: 19px; }
  .resume-mobile-controls output { min-width: 47px; text-align: center; font-family: var(--mono); font-size: 10px; }
  .resume-mobile-controls .resume-fit { font-size: 10px; padding-inline: 10px; margin-left: 5px; }
  .resume-mobile-controls a { font-size: 10px; color: var(--accent); margin-left: auto; padding: 8px 3px; white-space: nowrap; }
  .resume-native-pdf { display: none; }
  .resume-mobile-scroll { display: block; height: 100%; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px; }
  .resume-page { width: var(--resume-width, 100%); max-width: none; margin: 0 auto; background: white; box-shadow: 0 3px 14px #0000001a; }
  .resume-page img { display: block; width: 100%; max-width: none; height: auto; }
  .resume-viewer-footer { padding: 10px 14px; font-size: 9px; }
}

/* Keep the introduction left and leave the portrait's face clear on the right. */
.hero.hero-photo { text-align: left; min-height: 700px; }
.hero-photo .hero-background {
  inset: 0 0 0 auto;
  width: 65%;
  height: 100%;
}
.hero-photo .hero-background img {
  object-fit: cover;
  object-position: 52% 14%;
  opacity: 1;
}

.hero-photo .hero-inner { padding-block: 105px 115px; }
.hero-photo .hero-copy {
  width: 58%;
  max-width: 700px;
  margin: 0;
  text-align: left;
}
.hero-photo .intro { color: var(--muted); }
.hero-photo h1 { color: var(--ink); font-size: clamp(42px, 5.1vw, 68px); }
.hero-photo .role-line { justify-content: flex-start; font-size: clamp(21px, 2.15vw, 29px); }
.hero-photo .role-prefix, .hero-photo .animation-toggle { color: var(--muted); }
.hero-photo .hero-description { margin: 24px 0 0; color: var(--muted); max-width: 470px; }
.hero-photo .hero-actions { justify-content: flex-start; }
.hero-photo .secondary-button { background: color-mix(in srgb, var(--paper) 78%, transparent); color: var(--ink); border-color: var(--line); }
.hero-photo .secondary-button:hover { background: var(--soft); border-color: var(--accent); }
.hero-photo .hero-links { justify-content: flex-start; color: var(--ink); }
.hero-photo .location { color: var(--muted); justify-content: flex-start; }
@media (max-width: 1050px) {
  .hero-photo .hero-copy { width: 62%; }
  .hero-photo h1 { font-size: 51px; }
  .hero-photo .role-line { font-size: 22px; }
}
@media (max-width: 760px) {
  .hero.hero-photo { min-height: 680px; align-items: flex-start; }
  .hero-photo .hero-background { width: 100%; }
  .hero-photo .hero-background img {
    object-fit: cover;
    object-position: 27% 15%;
    opacity: 1;
  }
  
  .hero-photo .hero-inner { padding-block: 64px 60px; }
  .hero-photo .hero-copy { width: 100%; max-width: 530px; }
  .hero-photo .intro { font-size: 15px; margin-bottom: 13px; }
  .hero-photo h1 {
    max-width: 64%;
    font-size: clamp(34px, 7.3vw, 51px);
    line-height: 1.15;
    letter-spacing: -1.6px;
    overflow-wrap: normal;
  }
  .hero-photo .role-line {
    justify-content: flex-start;
    margin-top: 24px;
    font-size: clamp(17px, 4.15vw, 24px);
    min-height: 40px;
  }
  .hero-photo .hero-description { margin: 25px 0 0; max-width: 440px; font-size: 13px; }
  .hero-photo .hero-actions { justify-content: flex-start; margin-top: 26px; }
  .hero-photo .hero-links { justify-content: flex-start; font-size: 11px; gap: 22px; }
  .hero-photo .location { justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .hero.hero-photo { min-height: 670px; }
  .hero-photo .hero-inner { padding-top: 58px; }
  .hero-photo h1 { font-size: 33px; max-width: 68%; }
  .hero-photo .role-line { font-size: 16px; }
  .hero-photo .hero-description { font-size: 12px; }
}

/* Fade the photo's transparency into the exact page background. */
.hero.hero-photo { background: var(--paper); }
.hero.hero-photo::after { content: none; display: none; }
.hero-photo .hero-background {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.03) 10%, rgba(0,0,0,.2) 24%, rgba(0,0,0,.62) 38%, #000 54%, #000 94%, rgba(0,0,0,.85) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%, #000 61%, rgba(0,0,0,.68) 77%, rgba(0,0,0,.18) 92%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.03) 10%, rgba(0,0,0,.2) 24%, rgba(0,0,0,.62) 38%, #000 54%, #000 94%, rgba(0,0,0,.85) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%, #000 61%, rgba(0,0,0,.68) 77%, rgba(0,0,0,.18) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero-photo .hero-background img {
  opacity: 1;
  filter: grayscale(1) brightness(.86) contrast(1.03);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
[data-theme="light"] .hero-photo .hero-background img { filter: grayscale(1); }
.hero-photo h1 { text-shadow: none; }
@media (max-width: 760px) {
  .hero-photo .hero-background {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.06) 16%, rgba(0,0,0,.28) 36%, rgba(0,0,0,.74) 55%, #000 72%, #000 94%, rgba(0,0,0,.82) 100%),
      linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.6) 8%, #000 17%, #000 31%, rgba(0,0,0,.6) 43%, rgba(0,0,0,.16) 57%, transparent 69%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.06) 16%, rgba(0,0,0,.28) 36%, rgba(0,0,0,.74) 55%, #000 72%, #000 94%, rgba(0,0,0,.82) 100%),
      linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.6) 8%, #000 17%, #000 31%, rgba(0,0,0,.6) 43%, rgba(0,0,0,.16) 57%, transparent 69%);
  }
}

/* Skills show domain labels and technologies without explanatory filler. */
.skill-grid .skill-group h3 {
  margin: 0 0 20px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.45;
}
.skill-grid .skill-logos,
.skill-grid .skill-text-logos {
  margin: 0 0 18px;
  min-height: 44px;
}
.skills-section .section-heading { margin-bottom: 34px; }
.profiles-section .profile-footnote { display: none; }
.repo-meta:empty { display: none; }
.contact-copy .email-link { margin-top: 23px; }
@media (max-width: 760px) {
  .skill-grid .skill-group { padding: 21px 16px; }
  .skill-grid .skill-group h3 { font-size: 15px; min-height: 44px; margin: 0 0 18px; }
  .skill-grid .skill-logos,
  .skill-grid .skill-text-logos { min-height: 74px; margin: 0 0 16px; }
  .skill-grid .skill-words { font-size: 10px; }
}
@media (max-width: 370px) {
  .skill-grid .skill-group h3 { min-height: 0; }
  .skill-grid .skill-logos,
  .skill-grid .skill-text-logos { min-height: 40px; }
}

/* Updated typography and a fixed dark, full-color portrait introduction. */
@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root, :root[data-theme="dark"] {
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --paper: #090909;
  --surface: #121212;
  --soft: #161616;
  --line: #2a2a2a;
  --ink: #f3f3f3;
  --muted: #a3a3a3;
  --accent: #9bb8ff;
  --accent-contrast: #0c1424;
  color-scheme: dark;
}
body { font-family: var(--sans); font-size: 16px; line-height: 1.75; }
h1, h2, h3 { font-family: var(--sans); word-spacing: normal; }
h2 { font-size: clamp(29px, 3.1vw, 39px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
h3 { font-weight: 600; letter-spacing: -.02em; }
.eyebrow, .section-index { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .1em; }
.name-link { font-size: 14px; letter-spacing: -.025em; font-weight: 600; }
.nav-link { font-size: 12px; font-weight: 500; }
.primary-nav { gap: 25px; }
.header-actions { gap: 0; }
.hero.hero-photo { min-height: 760px; align-items: center; }
.hero-photo .hero-inner { padding-block: 82px 100px; }
.hero-photo .hero-copy { width: 58%; max-width: 690px; }
.hero-photo .intro { font-size: 15px; letter-spacing: 0; margin-bottom: 17px; color: #bbbbbb; }
.hero-photo h1 { width: 100%; max-width: none; font-family: var(--sans); font-size: clamp(66px, 7.6vw, 100px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; text-shadow: none; }
.hero-photo h1 > span { color: var(--accent); }
.hero-photo .role-line { font-family: var(--sans); margin-top: 25px; font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.025em; min-height: 45px; font-weight: 500; }
.hero-photo .role-prefix { font-size: .7em; font-weight: 400; }
.hero-photo .hero-description { max-width: 370px; font-size: 14px; line-height: 1.8; margin-top: 18px; }
.hero-photo .hero-actions { margin-top: 28px; gap: 12px; }
.hero-photo .button { font-size: 12px; font-weight: 500; border-radius: 5px; padding: 12px 20px; min-height: 47px; }
.hero-photo .secondary-button { background: var(--paper); }
.hero-photo .hero-links { gap: 24px; font-size: 11px; margin-top: 27px; }
.hero-photo .hero-background { width: 74%; right: -11%; left: auto; top: 0; bottom: 0; }
.hero-photo .hero-background img { filter: none; opacity: 1; object-fit: cover; object-position: 50% 17%; transform: translateX(7%); transform-origin: right center; }
.profile-avatar { filter: none; }
.hero-photo .hero-background {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.04) 14%, rgba(0,0,0,.3) 29%, rgba(0,0,0,.8) 43%, #000 56%, #000 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 9%, #000 21%, #000 68%, rgba(0,0,0,.48) 86%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.04) 14%, rgba(0,0,0,.3) 29%, rgba(0,0,0,.8) 43%, #000 56%, #000 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 9%, #000 21%, #000 68%, rgba(0,0,0,.48) 86%, transparent 100%);
}
.section-intro, .bio-columns { font-size: 14px; line-height: 1.85; }
.skill-grid .skill-group h3 { font-weight: 600; letter-spacing: -.025em; }
.skill-logos > span { font-weight: 500; }
.minimal-project .project-heading h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.minimal-project .project-summary { font-size: 13px; line-height: 1.8; }
.minimal-project .tag-list > span { font-family: var(--sans); font-size: 10px; }
.mock-conversation p, .hearth-logo, .serif-word { font-family: var(--sans); font-style: normal; letter-spacing: -.025em; }
.repo-card { padding: 23px; }
.repo-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; overflow-wrap: normal; }
.repo-card > p { font-size: 12px; line-height: 1.85; -webkit-line-clamp: 3; margin-top: 11px; margin-bottom: 20px; }
.repo-meta { font-size: 10px; }
.repo-top { margin-bottom: 17px; }
.feed-heading .eyebrow { font-size: 9px; }
.feed-status { font-size: 9px; }
.education-card h3 { font-weight: 600; }
.contact-copy h2 { font-family: var(--sans); font-size: 42px; font-weight: 600; letter-spacing: -.04em; }
@media (max-width: 1050px) {
  .hero.hero-photo { min-height: 700px; }
  .hero-photo h1 { font-size: 76px; }
  .hero-photo .hero-copy { width: 62%; }
  .hero-photo .role-line { font-size: 22px; }
  .primary-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .hero.hero-photo { align-items: flex-start; min-height: 710px; }
  .hero-photo .hero-inner { padding-block: 67px 65px; }
  .hero-photo .hero-copy { width: 100%; max-width: 500px; }
  .hero-photo .intro { font-size: 14px; margin-bottom: 17px; }
  .hero-photo h1 { max-width: 100%; font-size: clamp(45px, 11.2vw, 68px); line-height: 1.06; letter-spacing: -.05em; }
  .hero-photo .role-line { font-size: clamp(18px, 4.4vw, 25px); min-height: 42px; margin-top: 28px; }
  .hero-photo .hero-description { font-size: 13px; max-width: 330px; line-height: 1.85; margin-top: 16px; }
  .hero-photo .hero-actions { margin-top: 26px; gap: 11px; }
  .hero-photo .button { font-size: 11px; padding: 12px 16px; }
  .hero-photo .hero-links { font-size: 11px; margin-top: 25px; }
  .hero-photo .hero-background { width: 112%; right: -25%; height: 560px; bottom: auto; }
  .hero-photo .hero-background img { filter: none; transform: none; object-position: 0% 20%; }
  .hero-photo .hero-background {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.45) 38%, #000 64%, #000 100%),
      linear-gradient(180deg, rgba(0,0,0,.1) 0%, #000 17%, #000 38%, rgba(0,0,0,.5) 61%, transparent 88%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.45) 38%, #000 64%, #000 100%),
      linear-gradient(180deg, rgba(0,0,0,.1) 0%, #000 17%, #000 38%, rgba(0,0,0,.5) 61%, transparent 88%);
  }
  h2 { font-size: 31px; letter-spacing: -.035em; }
  .skill-grid .skill-group h3 { font-size: 15px; }
  .minimal-project .project-heading h3 { font-size: 21px; }
  .minimal-project .project-summary { font-size: 13px; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-card { padding: 23px; }
  .repo-card:nth-child(n+5) { display: flex; }
  .repo-card h3 { font-size: 16px; }
  .repo-card > p { font-size: 13px; -webkit-line-clamp: 3; }
  .repo-meta { font-size: 10px; }
  .profiles-section .section-heading { gap: 18px; }
  .profiles-section .text-link { font-size: 11px; }
  .contact-copy h2 { font-size: 34px; }
}
@media (max-width: 380px) {
  .hero-photo h1 { font-size: 44px; }
  .hero-photo .role-line { font-size: 16px; }
  .hero-photo .button { font-size: 10px; padding-inline: 13px; }
}

/* Apple-design principles translated for this personal website. */
:root, :root[data-theme="dark"] {
  --paper: #090909;
  --surface: #151515;
  --soft: #191919;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #9bb8ff;
  --line: #2b2b2f;
  --control-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --motion-fast: 160ms;
  --motion-normal: 240ms;
  --radius-control: 12px;
  --radius-card: 18px;
}
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { font-size: 17px; line-height: 1.75; }
.container { width: calc(100% - clamp(40px, 8vw, 128px)); max-width: 1200px; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.14; letter-spacing: -.035em; }
h3 { line-height: 1.35; }
button, input, textarea, select, .button, .nav-resume, .resume-download { font-family: var(--control-font); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 5px;
}
.site-header {
  background: rgba(9, 9, 9, .84);
  border-bottom-color: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: saturate(135%) blur(20px);
  backdrop-filter: saturate(135%) blur(20px);
}
.navigation { min-height: 80px; gap: 24px; }
.name-link { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.primary-nav { gap: 20px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: 13px; transition: color var(--motion-fast) var(--ease-standard); }
.nav-link[aria-current]::after { width: 12px; height: 2px; border-radius: 2px; bottom: 2px; left: calc(50% - 6px); }
.nav-resume { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border-radius: 11px; font-size: 12px; background: rgba(255,255,255,.045); transition: background var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard); }
.icon-button { min-width: 44px; min-height: 44px; transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
.hero.hero-photo { min-height: 760px; }
.hero-photo .hero-inner { padding-block: 96px 112px; }
.hero-photo h1 { font-size: clamp(4.25rem, 7.5vw, 6.25rem); letter-spacing: -.05em; line-height: 1.02; }
.hero-photo .intro { margin-bottom: 20px; font-size: 16px; }
.hero-photo .hero-description { font-size: 16px; line-height: 1.65; margin-top: 20px; max-width: 380px; }
.hero-photo .hero-actions { margin-top: 32px; gap: 12px; }
.hero-photo .hero-links { font-size: 13px; gap: 24px; margin-top: 24px; }
.hero-links a { min-height: 36px; display: inline-flex; align-items: center; }
.hero-photo .hero-copy > .intro,
.hero-photo .hero-copy > h1,
.hero-photo .hero-copy > .role-line,
.hero-photo .hero-copy > .hero-description,
.hero-photo .hero-copy > .hero-actions,
.hero-photo .hero-copy > .hero-links {
  animation: introduction-in 560ms var(--ease-out) both;
}
.hero-photo .hero-copy > h1 { animation-delay: 35ms; }
.hero-photo .hero-copy > .role-line { animation-delay: 70ms; }
.hero-photo .hero-copy > .hero-description { animation-delay: 100ms; }
.hero-photo .hero-copy > .hero-actions { animation-delay: 130ms; }
.hero-photo .hero-copy > .hero-links { animation-delay: 160ms; }
.hero-copy:focus-within > * { animation: none !important; }
.hero-photo .role-line { display: flex; align-items: center; gap: 0; min-height: 48px; font-size: clamp(21px, 2.1vw, 28px); }
.hero-photo .role-prefix { flex: 0 0 4.6ch; margin-right: 9px; font-size: .7em; }
.role-rotator { display: inline-flex; align-items: baseline; min-inline-size: 20ch; line-height: 1.4; white-space: nowrap; }
.typed-role { display: inline-block; font-variant-ligatures: none; }
.typing-cursor { display: inline-block; margin-left: 2px; animation: caret-pulse 1200ms ease-in-out infinite; }
.hero-photo .animation-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; margin-left: 3px; font-size: 12px; border-radius: 50%; opacity: .72; transition: opacity var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); }
.hero-photo .animation-toggle:hover { opacity: 1; background: rgba(255,255,255,.06); }
.hero-photo .animation-toggle[hidden] { display: none; }
.button, .hero-photo .button, .contact-form .button, .resume-download {
  min-height: 48px;
  padding: 12px 21px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  transition: transform var(--motion-normal) var(--ease-out), background var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.button > span, .project-source-link > span, .text-link > span { transition: transform var(--motion-normal) var(--ease-out); }
.button:active, .hero-photo .button:active, .resume-download:active { transform: scale(.985); }
.section { padding-block: 96px; }
.section-heading { margin-bottom: 40px; }
.project-grid { gap: 24px; }
.project-card, .education-card, .linkedin-card, .repo-card { border-radius: var(--radius-card); border-color: rgba(255,255,255,.085); background: var(--surface); }
.project-card, .repo-card { transition: transform 320ms var(--ease-out), border-color var(--motion-normal) var(--ease-standard), box-shadow 320ms var(--ease-out); }
.project-card:hover, .repo-card:hover { transform: none; box-shadow: none; }
.project-card:focus-within { border-color: var(--accent); }
.minimal-project .project-visual { border-bottom-color: rgba(255,255,255,.06); }
.minimal-project .project-body { padding: 26px 28px; }
.minimal-project .project-heading h3 { font-size: 23px; letter-spacing: -.03em; font-weight: 600; }
.minimal-project .project-summary { font-size: 15px; line-height: 1.7; margin: 12px 0 20px; }
.project-source-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; font-size: 12px; }
.minimal-project .tag-list > span { font-size: 11px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.045); }
.text-link { font-size: 13px; }
.skills-section .section-heading { margin-bottom: 40px; }
.skill-grid { margin-top: 40px; }
.skill-grid .skill-group h3 { font-size: 17px; line-height: 1.4; min-height: 48px; margin-bottom: 20px; }
.skill-grid .skill-logos > span { font-size: 12px; }
.skill-grid .skill-words { font-size: 12px; line-height: 1.85; gap: 7px 8px; }
.about-section { padding-block: 96px; }
.bio-columns { gap: 64px; font-size: 16px; line-height: 1.8; margin: 32px 0 48px; }
.education-grid { gap: 24px; }
.education-card { padding: 32px; }
.education-card h3 { font-size: 22px; letter-spacing: -.03em; }
.education-card .university { font-size: 14px; }
.education-location { font-size: 13px; }
.education-card .timeline-date, .small-badge { font-size: 11px; letter-spacing: .045em; }
.credentials p { font-size: 12px; line-height: 1.8; }
.credentials strong { font-size: 14px; }
.repo-grid { gap: 16px; }
.repo-card { padding: 26px; min-height: 220px; }
.repo-card h3 { font-size: 17px; line-height: 1.35; }
.repo-card > p { font-size: 14px; line-height: 1.7; }
.repo-meta { font-size: 11px; }
.feed-heading .eyebrow, .feed-status { font-size: 11px; letter-spacing: .035em; }
.linkedin-card { padding: 28px; }
.linkedin-wordmark { font-size: 14px; }
.profile-headline { font-size: 14px; }
.profile-location { font-size: 12px; }
.profile-topics > span { font-size: 11px; border-radius: 5px; }
.linkedin-card .button { font-size: 13px; }
.contact-section { padding-block: 96px; }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -.035em; }
.email-link { font-size: clamp(18px, 2vw, 24px); padding-block: 14px; }
.contact-secondary > button { font-size: 12px; min-height: 44px; }
.contact-socials { font-size: 13px; }
.contact-socials a { min-height: 44px; display: inline-flex; align-items: center; }
.contact-form { border-radius: var(--radius-card); padding: 30px; border-color: rgba(255,255,255,.085); }
.form-topline { font-size: 12px; letter-spacing: 0; text-transform: none; margin-bottom: 24px; }
.contact-form label { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 9px; font-size: 16px; min-height: 48px; padding: 12px 14px; transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.form-note { font-size: 11px; line-height: 1.7; }
.footer-links { font-size: 12px; }
.footer-bottom, .footer-bottom > a { font-size: 11px; }
.footer-name > span { font-size: 12px; }
.resume-dialog { border-radius: 22px; border-color: rgba(255,255,255,.13); box-shadow: 0 24px 96px rgba(0,0,0,.42); }
.resume-dialog[open] { animation: resume-enter 300ms var(--ease-out) both; }
.resume-dialog::backdrop { animation: backdrop-enter 220ms var(--ease-standard) both; }
.resume-toolbar { padding: 18px 22px; }
.resume-heading h2 { font-size: 20px; }
.resume-heading p { font-size: 12px; }
.resume-close, .resume-mobile-controls button { min-width: 44px; min-height: 44px; }
.resume-mobile-controls button { border-radius: 9px; }
.resume-mobile-controls output { font-size: 12px; }
.resume-mobile-controls .resume-fit, .resume-mobile-controls a { font-size: 11px; }
.resume-viewer-footer { font-size: 11px; }
.back-to-top { width: 44px; height: 44px; font-size: 20px; border-color: var(--line); }
@keyframes introduction-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes caret-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes resume-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .hero-photo .button:hover, .resume-download:hover { transform: translateY(-1px); }
  .button:hover > span, .text-link:hover > span, .project-source-link:hover > span { transform: translate(2px, -1px); }
  .project-card:hover, .repo-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
}
@media (max-width: 1050px) {
  .hero-photo h1 { font-size: 4.75rem; }
  .hero-photo .role-line { font-size: 22px; }
  .primary-nav { gap: 16px; }
  .nav-link { font-size: 12px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 40px); }
  .navigation { min-height: 72px; }
  .name-link { font-size: 15px; }
  .menu-toggle { display: inline-flex; }
  .site-header .primary-nav {
    position: absolute;
    inset: calc(100% + 8px) 12px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(23,23,25,.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    box-shadow: 0 14px 48px rgba(0,0,0,.3);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 220ms var(--ease-standard), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .site-header .primary-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .site-header .primary-nav .nav-link { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 10px; }
  .site-header .primary-nav .nav-link[aria-current] { background: rgba(255,255,255,.06); }
  .site-header .primary-nav .nav-link[aria-current]::after { display: none; }
  .site-header .primary-nav .nav-resume { margin: 5px 0 0; min-height: 48px; justify-content: center; font-size: 14px; }
  .hero.hero-photo { min-height: 720px; }
  .hero-photo .hero-inner { padding-block: 68px 64px; }
  .hero-photo h1 { font-size: clamp(2.8rem, 11.2vw, 4.25rem); letter-spacing: -.045em; }
  .hero-photo .intro { font-size: 15px; margin-bottom: 20px; }
  .hero-photo .role-line { font-size: clamp(17px, 4.3vw, 24px); margin-top: 24px; min-height: 48px; }
  .hero-photo .role-prefix { margin-right: 6px; }
  .role-rotator { min-inline-size: 19.6ch; }
  .hero-photo .animation-toggle { width: 44px; min-width: 44px; height: 44px; margin-left: 0; }
  .hero-photo .hero-description { font-size: 15px; line-height: 1.7; max-width: 310px; margin-top: 18px; }
  .hero-photo .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-photo .button { min-height: 48px; font-size: 13px; padding: 12px 16px; }
  .hero-photo .hero-links { font-size: 13px; gap: 22px; margin-top: 22px; }
  .hero-photo .location { font-size: 12px; }
  .section, .about-section, .contact-section { padding-block: 64px; }
  .section-heading, .skills-section .section-heading { margin-bottom: 28px; }
  h2 { font-size: 2rem; letter-spacing: -.035em; }
  .project-grid { gap: 20px; }
  .minimal-project .project-body { padding: 24px; }
  .minimal-project .project-heading h3 { font-size: 21px; }
  .minimal-project .project-summary { font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
  .minimal-project .tag-list > span { font-size: 11px; }
  .project-source-link { font-size: 12px; }
  .skill-grid { margin-top: 28px; gap: 14px; }
  .skill-grid .skill-group { border-radius: 14px; padding: 22px 18px; border-color: rgba(255,255,255,.085); }
  .skill-grid .skill-group h3 { font-size: 16px; min-height: 48px; }
  .skill-grid .skill-logos > span, .skill-grid .skill-words { font-size: 11px; }
  .bio-columns { font-size: 15px; line-height: 1.8; gap: 20px; margin: 24px 0 32px; }
  .education-card { padding: 28px 24px; }
  .education-card h3 { font-size: 21px; }
  .education-card .university { font-size: 14px; }
  .education-location { font-size: 12px; }
  .credentials { gap: 24px; }
  .repo-card { padding: 25px; min-height: 0; }
  .repo-card h3 { font-size: 18px; }
  .repo-card > p { font-size: 14px; line-height: 1.75; }
  .repo-meta { font-size: 11px; }
  .feed-heading { align-items: flex-start; }
  .feed-heading .eyebrow, .feed-status { font-size: 10px; }
  .linkedin-card { padding: 28px; }
  .linkedin-card h3 { font-size: 23px; }
  .profile-headline { font-size: 14px; }
  .contact-copy h2 { font-size: 2rem; }
  .contact-form { padding: 26px 22px; }
  .form-row { gap: 18px; }
  .contact-form label { font-size: 14px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; min-height: 50px; }
  .contact-form .button { min-height: 50px; font-size: 14px; }
  .form-note { font-size: 11px; }
  .resume-dialog { border-radius: 20px; }
  .resume-toolbar { padding: 16px; }
  .resume-toolbar-actions { gap: 8px; }
  .resume-download { min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .resume-mobile-controls { flex-wrap: wrap; gap: 4px; padding: 8px 10px; }
  .resume-mobile-controls button { min-height: 44px; min-width: 44px; }
  .resume-viewer-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .footer-top { padding-bottom: 28px; }
  .footer-bottom { gap: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .hero-photo h1 { font-size: 2.7rem; }
  .hero-photo .role-line { font-size: 15px; }
  .role-rotator { min-inline-size: 19.3ch; }
  .hero-photo .role-prefix { margin-right: 4px; }
  .hero-photo .animation-toggle { margin-left: -3px; }
  .hero-photo .button { font-size: 12px; padding-inline: 13px; }
  .minimal-project .project-heading { flex-wrap: wrap; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-photo .hero-copy > * { opacity: 1; transform: none; }
  .site-header .primary-nav { transform: none; }
  .project-card:hover, .repo-card:hover, .button:hover, .button:active { transform: none; }
  .typing-cursor { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header .primary-nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .resume-dialog::backdrop { background: rgba(0,0,0,.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root, :root[data-theme="dark"] { --muted: #d1d1d6; --line: #68686d; }
  .project-card, .repo-card, .education-card, .linkedin-card, .contact-form { border-color: var(--line); }
  .site-header { background: var(--paper); border-bottom-color: var(--line); }
  .nav-resume, .secondary-button { border-color: var(--muted); }
}

/* Blend the actual photo edges, including its horizontal offset. */
.hero-photo .hero-background {
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-photo .hero-background img {
  --portrait-fade-x: linear-gradient(90deg, transparent 0%, transparent 4%, rgba(0,0,0,.015) 10%, rgba(0,0,0,.06) 16%, rgba(0,0,0,.15) 23%, rgba(0,0,0,.33) 32%, rgba(0,0,0,.64) 43%, rgba(0,0,0,.95) 56%, #000 65%, #000 100%);
  --portrait-fade-y: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.015) 4%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.28) 13%, rgba(0,0,0,.58) 18%, rgba(0,0,0,.85) 24%, #000 31%, #000 56%, rgba(0,0,0,.95) 63%, rgba(0,0,0,.85) 70%, rgba(0,0,0,.65) 77%, rgba(0,0,0,.39) 84%, rgba(0,0,0,.15) 91%, rgba(0,0,0,.03) 96%, transparent 100%);
  -webkit-mask-image: var(--portrait-fade-x), var(--portrait-fade-y);
  mask-image: var(--portrait-fade-x), var(--portrait-fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Give every skill domain an equal, centered share of the section. */
.skills-section .section-heading {
  justify-content: center;
  text-align: center;
}
.skills-section .skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}
.skills-section .skill-grid .skill-group {
  min-width: 0;
  padding: 8px 24px;
  text-align: center;
  border: 0;
}
.skills-section .skill-grid .skill-group + .skill-group {
  border-inline-start: 1px solid var(--line);
}
.skills-section .skill-grid .skill-group h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  min-height: 48px;
}
.skills-section .skill-grid .skill-logos,
.skills-section .skill-grid .skill-text-logos {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 12px 16px;
  min-height: 64px;
  margin: 0 0 20px;
}
.skills-section .skill-words { justify-content: center; }

@media (max-width: 1050px) {
  .skills-section .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
  }
  .skills-section .skill-grid .skill-group:nth-child(odd) {
    border-inline-start: 0;
  }
}
@media (max-width: 760px) {
  .hero-photo .hero-background img {
    --portrait-fade-x: linear-gradient(90deg, transparent 0%, transparent 3%, rgba(0,0,0,.015) 10%, rgba(0,0,0,.06) 17%, rgba(0,0,0,.18) 26%, rgba(0,0,0,.42) 38%, rgba(0,0,0,.74) 51%, #000 65%, #000 100%);
    --portrait-fade-y: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.03) 4%, rgba(0,0,0,.2) 9%, rgba(0,0,0,.64) 15%, #000 22%, #000 34%, rgba(0,0,0,.88) 42%, rgba(0,0,0,.63) 51%, rgba(0,0,0,.34) 61%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.02) 83%, transparent 92%, transparent 100%);
  }
  .skills-section .skill-grid { gap: 14px; }
  .skills-section .skill-grid .skill-group {
    padding: 24px 16px;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 14px;
    background: var(--surface);
  }
  .skills-section .skill-grid .skill-group:nth-child(odd) {
    border-inline-start: 1px solid rgba(255,255,255,.085);
  }
  .skills-section .skill-grid .skill-logos,
  .skills-section .skill-grid .skill-text-logos { min-height: 76px; }
}
@media (max-width: 380px) {
  .skills-section .skill-grid { grid-template-columns: 1fr; }
  .skills-section .skill-grid .skill-group h3 { min-height: 0; }
  .skills-section .skill-grid .skill-logos,
  .skills-section .skill-grid .skill-text-logos { min-height: 44px; }
}

/* Keep the small introduction and rotating title on a shared text baseline. */
.hero-photo .role-line {
  align-items: baseline;
  flex-wrap: nowrap;
  column-gap: 8px;
  white-space: nowrap;
  line-height: 1.4;
}
.hero-photo .role-prefix {
  flex: 0 0 auto;
  min-inline-size: 0;
  margin: 0;
  font-size: .68em;
  line-height: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}
.hero-photo .role-rotator {
  flex: 0 0 auto;
  min-inline-size: 0;
  align-items: baseline;
  line-height: inherit;
  white-space: nowrap;
}

/* Preserve the square photograph: no top crop and no vignette over the head. */
.hero-photo .hero-background {
  inset: 24px -4% auto auto;
  width: min(74vw, 760px);
  height: min(74vw, 760px);
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask: none;
  mask: none;
}
.hero-photo .hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
  opacity: 1;
  border: 0;
  border-radius: 0;
  -webkit-mask: none;
  mask: none;
}
.hero-photo .hero-background::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  /* Fully cover the perimeter; horizontal blending finishes before the hair. */
  background:
    linear-gradient(90deg,
      var(--paper) 0%, var(--paper) 2%,
      rgb(9 9 9 / .98) 5%, rgb(9 9 9 / .85) 10%,
      rgb(9 9 9 / .53) 16%, rgb(9 9 9 / .18) 23%,
      rgb(9 9 9 / .02) 29%, transparent 33%),
    linear-gradient(180deg,
      var(--paper) 0%, rgb(9 9 9 / .85) .5%,
      rgb(9 9 9 / .3) 1.5%, transparent 3%,
      transparent 64%, rgb(9 9 9 / .04) 69%,
      rgb(9 9 9 / .19) 76%, rgb(9 9 9 / .48) 83%,
      rgb(9 9 9 / .8) 90%, rgb(9 9 9 / .98) 96%,
      var(--paper) 98%, var(--paper) 100%);
}
@media (max-width: 760px) {
  .hero-photo .role-line {
    font-size: clamp(16px, 4.4vw, 24px);
    column-gap: 6px;
  }
  .hero-photo .hero-background {
    inset: 32px -27% auto auto;
    width: 112vw;
    height: 112vw;
  }
}
