:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fffefa;
  --surface-2: #ebeae3;
  --ink: #1d211e;
  --muted: #646a63;
  --line: #dedfd6;
  --accent: #c4f16b;
  --accent-strong: #9ad63c;
  --blue: #4c63e8;
  --purple: #d9d1ff;
  --shadow: 0 22px 70px rgba(32, 37, 29, 0.08);
  --radius: 22px;
  --shell: 1160px;
  /* Always-dark surfaces (same in light and dark mode) */
  --feature-bg: #1d211e;
  --feature-fg: #f5f4ef;
  --feature-line: #465041;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141713;
  --surface: #1d211b;
  --surface-2: #292e26;
  --ink: #f0f1e9;
  --muted: #b1b7aa;
  --line: #353b31;
  --accent: #c4f16b;
  --accent-strong: #9ad63c;
  --blue: #a9b2ff;
  --purple: #4b436d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  --feature-bg: #0e100d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "DM Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #1d211e;
}

.shell {
  width: min(var(--shell), calc(100% - 56px));
  margin-inline: auto;
}

.section-pad {
  padding-block: 112px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  z-index: 999;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark,
.footer-brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.08em;
  font-size: 23px;
}

.brand-mark span,
.footer-brand span {
  color: #76a92d;
}

.brand-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.site-nav>a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav>a:hover,
.site-nav>a:focus-visible,
.site-nav>a.is-active {
  color: var(--ink);
}

.site-nav>a.is-active:not(.nav-contact) {
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-nav .nav-contact {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  background: var(--surface);
}

.nav-contact span {
  margin-left: 7px;
}

.theme-toggle,
.menu-toggle {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
}

.menu-toggle span+span {
  margin-top: -9px;
  transform: translateY(5px);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 48px;
  padding-top: 87px;
  padding-bottom: 102px;
  position: relative;
  overflow-x: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 25px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79b836;
  box-shadow: 0 0 0 4px color-mix(in srgb, #79b836 16%, transparent);
}

.eyebrow-sep {
  opacity: 0.45;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Manrope", "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.045;
}

.headline-italic {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero h1 .headline-italic {
  position: relative;
  white-space: nowrap;
}

.hero h1 .headline-italic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 2%;
  bottom: -4px;
  height: 8px;
  background: var(--accent);
  z-index: -1;
  transform: rotate(-1.2deg);
  border-radius: 8px 4px 9px 3px;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 49px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--paper));
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tiny-line {
  display: inline-block;
  flex: 0 0 27px;
  width: 27px;
  height: 1px;
  background: var(--muted);
}

.hero-visual {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  width: min(360px, 78%);
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.72;
  filter: blur(0.2px);
  z-index: -2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.42;
  background-image: radial-gradient(var(--muted) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, #000 10%, transparent 73%);
}

.visual-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 440px;
  height: 235px;
}

.orbit-two {
  width: 420px;
  height: 300px;
  transform: rotate(52deg);
}

.code-window {
  width: min(390px, 90%);
  position: relative;
  z-index: 2;
  background: #202720;
  color: #eff3e9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 35px 70px rgba(27, 39, 25, 0.25);
  transform: rotate(-3deg);
}

.window-top,
.window-bottom {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #9ba69a;
  font:
    11px "DM Mono",
    monospace;
}

.window-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d776b;
}

.window-dots i:first-child {
  background: #ee8c7d;
}

.window-dots i:nth-child(2) {
  background: #e5c36e;
}

.window-dots i:nth-child(3) {
  background: #a5ce78;
}

.window-lock {
  border: 1px solid #495449;
  padding: 3px 5px;
  border-radius: 4px;
}

.code-body {
  padding: 25px 17px 22px;
  font:
    11px/2.1 "DM Mono",
    monospace;
  white-space: nowrap;
}

.line-no {
  display: inline-block;
  width: 26px;
  color: #6e7e6d;
  user-select: none;
}

.code-muted {
  color: #c5a5f1;
}

.code-blue {
  color: #9fd0ff;
}

.code-green {
  color: #bde98a;
}

.code-gap {
  height: 12px;
}

.window-bottom {
  height: 38px;
  background: #283128;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
}

.window-bottom .status-dot {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  box-shadow: none;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.chip-react {
  top: 50px;
  left: 3px;
  transform: rotate(-7deg);
}

.chip-ts {
  right: 0;
  bottom: 65px;
  transform: rotate(5deg);
}

.tech-symbol {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
}

.react-symbol {
  color: #4e9fe8;
  background: #e0f2ff;
}

.ts-symbol {
  color: #fff;
  background: #3178c6;
  font:
    700 11px "DM Mono",
    monospace;
}

.visual-note {
  position: absolute;
  left: -3px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.35;
  font-style: italic;
}

.note-star {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #4c4477;
  font-size: 19px;
  font-style: normal;
}

:root[data-theme="dark"] .note-star {
  color: #e4defc;
}

.visual-index {
  position: absolute;
  right: 2px;
  top: 27px;
  font:
    11px "DM Mono",
    monospace;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 37px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.scroll-cue span {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.intro-strip {
  overflow: hidden;
  background: var(--accent);
  color: #252b20;
}

.strip-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  white-space: nowrap;
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.strip-inner b {
  font-size: 15px;
  font-weight: 400;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 49px;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.heading-number {
  color: var(--muted);
  opacity: 1;
  margin-left: 7px;
}

h2 {
  font-size: clamp(37px, 4.5vw, 58px);
  line-height: 1.13;
  margin-bottom: 0;
}

.section-intro {
  max-width: 350px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.experience-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-topline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 49px;
  height: 49px;
  border-radius: 14px;
  background: var(--feature-bg);
  color: var(--feature-fg);
  border: 1px solid var(--feature-line);
  font:
    800 15px "Manrope",
    sans-serif;
  letter-spacing: -0.06em;
}

.company-monogram span {
  color: var(--accent);
}

.experience-company {
  min-width: 0;
  flex: 1;
}

.experience-company h3,
.timeline-main h3 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.at-company {
  color: var(--muted);
  font-weight: 500;
}

.at-company a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-underline-offset: 3px;
}

.experience-company p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bullet-sep {
  padding-inline: 5px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  white-space: nowrap;
  font:
    11px "DM Mono",
    monospace;
}

.experience-summary {
  max-width: 820px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 33px;
  border-top: 1px solid var(--line);
}

.responsibility-grid>div {
  padding-right: 13px;
}

.responsibility-index {
  color: #526b2f;
  font: 500 11px "DM Mono", monospace;
}

.responsibility-grid p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.project-divider,
.other-experience-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.07em;
}

.divider-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.nested-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.nested-project {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: var(--paper);
}

.project-art {
  position: relative;
  aspect-ratio: 1276 / 549;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--line));
  border-bottom: 1px solid var(--line);
}

.project-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-art img.is-missing {
  visibility: hidden;
}

.nested-project:hover .project-art img {
  transform: scale(1.03);
}

.nested-project-content {
  padding: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.05em;
}

.nested-project h4 {
  margin: 12px 0 7px;
  font:
    700 22px "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
}

.nested-project-content>p {
  min-height: 75px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tag-list,
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span,
.skill-pills span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
  font-size: 12px;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.other-experience-label {
  margin: 45px 0 22px;
}

.timeline {
  margin-left: 24px;
  padding-left: 35px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 0 33px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  display: grid;
  place-items: center;
  left: -54px;
  top: 1px;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font:
    700 12px "Manrope",
    sans-serif;
}

.marker-muted {
  color: var(--muted);
}

.timeline-main {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child .timeline-main {
  border-bottom: 0;
}

.timeline-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.timeline-org {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.timeline-org a {
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-underline-offset: 3px;
}

.timeline-main>p:not(.timeline-org) {
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.skills-section {
  background: var(--surface-2);
}

.skills-section .section-heading {
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.skill-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.skill-feature {
  grid-column: 1 / -1;
  background: var(--feature-bg);
  color: var(--feature-fg);
  border-color: var(--feature-line);
}

.skill-count {
  color: var(--muted);
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.skill-feature .skill-count {
  color: #c1c7b9;
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 26px 0 18px;
  border-radius: 13px;
  background: var(--accent);
  color: #26321d;
  font:
    700 17px "DM Mono",
    monospace;
}

.icon-grid {
  background: var(--purple);
  color: #504779;
  font-size: 24px;
}

:root[data-theme="dark"] .icon-grid {
  color: #e4defc;
}

:root[data-theme="dark"] .responsibility-index {
  color: var(--accent);
}

.icon-spark {
  background: #f9d3b7;
  color: #795039;
  font-size: 25px;
}

.icon-terminal {
  background: #c8e6ff;
  color: #345b7b;
  font-size: 14px;
}

.skill-card h3 {
  margin: 0 0 8px;
  font:
    700 18px "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
}

.skill-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.skill-feature p {
  color: #c0c6b8;
}

.skill-pills {
  margin-top: auto;
}

.skill-feature .skill-pills span {
  border-color: var(--feature-line);
  background: rgba(255, 255, 255, 0.04);
  color: #d9dfd1;
}

.skill-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 56px;
  align-items: center;
  padding: 32px 36px;
}

.skill-feature>* {
  grid-column: 1;
}

.skill-feature .skill-icon {
  margin: 20px 0 16px;
}

.skill-feature h3 {
  font-size: 24px;
}

.skill-feature p {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 14px;
}

.skill-feature>.skill-pills {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin-top: 0;
  gap: 10px;
  align-content: center;
}

.skill-feature .skill-pills span {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.community-section {
  padding-block: 105px;
}

.community-card {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  overflow: hidden;
  min-height: 390px;
  border-radius: 24px;
  background: #242c23;
  color: #f4f5ee;
}

.community-copy {
  padding: 48px;
}

.community-copy .eyebrow {
  color: #c0c9b7;
}

.community-copy .heading-number {
  color: #a1ad96;
}

.community-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 4vw, 51px);
}

.community-copy>p:not(.eyebrow) {
  max-width: 420px;
  margin-bottom: 27px;
  color: #c1c7ba;
  font-size: 13px;
  line-height: 1.9;
}

.button-light {
  background: var(--accent);
  color: #26321d;
}

.button-light:hover {
  background: #d5fa8f;
}

.community-art {
  min-height: 390px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #303a2d;
}

.community-art::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: #c4f16b;
  filter: blur(1px);
  opacity: 0.9;
}

.community-star {
  position: absolute;
  z-index: 2;
  right: 46px;
  top: 33px;
  color: #c4f16b;
  font-size: 35px;
}

.community-window {
  position: relative;
  z-index: 2;
  width: 72%;
  min-width: 245px;
  background: #f4f4ec;
  border-radius: 10px;
  overflow: hidden;
  color: #272e24;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
  transform: rotate(4deg);
}

.community-window-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #dfe3d6;
  font:
    11px "DM Mono",
    monospace;
  color: #66705f;
}

.community-window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0c0a1;
}

.community-window-bar span {
  margin-left: auto;
}

.community-code {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px 9px;
  padding: 23px;
  font:
    11px "DM Mono",
    monospace;
}

.community-code>span {
  grid-column: 1 / -1;
  color: #5e8850;
}

.community-code b {
  color: #899781;
  font-weight: 400;
}

.community-code i {
  height: 6px;
  width: 90%;
  border-radius: 3px;
  background: #c8d3be;
}

.community-code i.short {
  width: 45%;
  background: #d9cce9;
}

.community-code i.medium {
  width: 68%;
}

.community-window-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: #e8ebdf;
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.community-side-label {
  position: absolute;
  left: 12px;
  bottom: 18px;
  color: #c4f16b;
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.contact-section {
  background: var(--accent);
  color: #22291d;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 60px;
  align-items: center;
  padding-block: 100px;
}

.contact-section .eyebrow {
  color: #4d5b40;
}

.contact-section .heading-number {
  color: #647752;
}

.contact-section h2 {
  font-size: clamp(42px, 5.5vw, 70px);
}

.contact-side>p {
  max-width: 410px;
  color: #46513b;
  font-size: 14px;
  line-height: 1.9;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.contact-section a:focus-visible {
  outline-color: #22291d;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid #5c7045;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.contact-email span {
  transition: transform 0.2s ease;
}

.contact-email:hover span {
  transform: translate(3px, -3px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 26px;
}

.social-links a {
  font:
    11px "DM Mono",
    monospace;
}

.social-links span {
  margin-left: 4px;
}

.site-footer {
  background: var(--paper);
}

.footer-inner {
  min-height: 85px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-brand {
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.back-top {
  margin-left: auto;
  color: var(--muted);
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.copyright {
  color: var(--muted);
  font-size: 11px;
}

/* Reveal animation only hides content when JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-note {
  margin: 0;
  padding: 10px 20px;
  background: #fff0c7;
  color: #483817;
  text-align: center;
  font-size: 13px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Analytics consent banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent .button {
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 25px;
    min-height: 620px;
  }

  h1 {
    font-size: clamp(47px, 6.4vw, 66px);
  }

  .hero-visual {
    transform: scale(0.92);
    transform-origin: center right;
  }

  .section-pad {
    padding-block: 86px;
  }

  .section-heading {
    gap: 28px;
  }

  .nested-project-content {
    padding: 17px;
  }

  .community-copy {
    padding: 38px;
  }

  .community-art {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100% - 36px));
  }

  .nav-wrap {
    min-height: 69px;
  }

  .brand-name {
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav>a {
    padding: 12px;
  }

  .site-nav .nav-contact {
    margin-top: 4px;
    text-align: center;
  }

  .theme-toggle {
    align-self: flex-start;
    margin: 10px 0 0 7px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    min-height: 0;
    padding-top: 68px;
    padding-bottom: 93px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    max-width: 580px;
    font-size: clamp(45px, 10vw, 65px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-footnote {
    margin-top: 26px;
  }

  .hero-visual {
    min-height: 370px;
    transform: none;
    margin-top: 4px;
  }

  .hero-visual::before {
    width: 275px;
  }

  .orbit-one {
    width: 340px;
    height: 195px;
  }

  .orbit-two {
    width: 330px;
    height: 245px;
  }

  .code-window {
    width: min(360px, 84%);
  }

  .code-body {
    font-size: 11px;
  }

  .chip-react {
    left: 3%;
    top: 27px;
  }

  .chip-ts {
    right: 2%;
    bottom: 47px;
  }

  .visual-note {
    left: 1%;
    bottom: 3px;
  }

  .visual-index {
    top: 7px;
    right: 3%;
  }

  .scroll-cue {
    bottom: 28px;
  }

  .strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 8px 16px;
    padding-block: 16px;
    min-height: 56px;
    font-size: 11px;
    text-align: center;
  }

  .section-pad {
    padding-block: 72px;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-intro {
    margin-top: 19px;
    max-width: 520px;
    font-size: 13px;
  }

  h2 {
    font-size: clamp(36px, 8vw, 48px);
  }

  .experience-card {
    padding: 22px 17px;
    border-radius: 17px;
  }

  .experience-topline {
    flex-wrap: wrap;
    gap: 12px;
  }

  .experience-company {
    flex-basis: calc(100% - 64px);
  }

  .experience-company h3 {
    font-size: 16px;
  }

  .date-pill {
    margin-left: 61px;
    font-size: 11px;
  }

  .experience-summary {
    margin: 18px 0 20px;
    font-size: 13px;
  }

  .responsibility-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-bottom: 25px;
  }

  .responsibility-grid>div {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 0;
  }

  .responsibility-grid p {
    margin: 0;
  }

  .project-divider {
    flex-wrap: wrap;
    gap: 9px;
  }

  .divider-rule {
    min-width: 20px;
  }

  .nested-projects {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nested-project-content>p {
    min-height: 0;
  }

  .other-experience-label {
    margin-top: 34px;
    font-size: 11px;
  }

  .timeline {
    margin-left: 12px;
    padding-left: 28px;
  }

  .timeline-marker {
    left: -46px;
    width: 34px;
    height: 34px;
  }

  .timeline-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .timeline-title-row .date-pill {
    margin-left: 0;
  }

  .timeline-main h3 {
    font-size: 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 20px;
  }

  .skill-card h3 {
    font-size: 16px;
  }

  .skill-card p {
    font-size: 12px;
  }

  .skill-feature {
    display: flex;
    padding: 22px 20px;
  }

  .skill-feature h3 {
    font-size: 20px;
  }

  .skill-feature p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .skill-feature>.skill-pills {
    margin-top: 0;
    gap: 8px;
  }

  .skill-feature .skill-pills span {
    padding: 7px 12px;
    font-size: 12px;
  }

  .community-section {
    padding-block: 72px;
  }

  .community-card {
    grid-template-columns: 1fr;
  }

  .community-copy {
    padding: 33px 24px 35px;
  }

  .community-copy h2 {
    font-size: 43px;
  }

  .community-art {
    min-height: 310px;
  }

  .community-art::before {
    width: 280px;
    height: 280px;
  }

  .community-window {
    width: 68%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 73px;
  }

  .contact-section h2 {
    font-size: 52px;
  }

  .contact-side>p {
    font-size: 13px;
  }

  .footer-inner {
    min-height: 100px;
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 10px 17px;
  }

  .footer-inner p {
    flex: 1;
  }

  .back-top {
    margin-left: auto;
  }

  .copyright {
    width: 100%;
  }

  @media (max-width: 420px) {
    .shell {
      width: calc(100% - 30px);
    }

    .hero h1 {
      font-size: 42px;
    }

    .hero-visual {
      min-height: 330px;
      margin-inline: -4px;
    }

    .code-window {
      width: 86%;
    }

    .code-body {
      padding-inline: 10px;
      font-size: 11px;
    }

    .floating-chip {
      font-size: 11px;
      padding: 8px 10px;
    }

    .chip-react {
      left: 0;
    }

    .chip-ts {
      right: 0;
    }

    .visual-note {
      font-size: 12px;
    }

    .contact-email {
      font-size: 16px;
      gap: 10px;
    }

    .experience-company {
      flex-basis: calc(100% - 61px);
    }

    .at-company {
      display: block;
      margin-top: 3px;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .js .reveal {
      opacity: 1;
      transform: none;
    }
  }


  /* Labsquire → TestGO product-transition highlight */
  .legacy-label {
    display: inline-block;
    margin: 0.25rem 0 0.25rem 0.35rem;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font: 400 10px/1.5 "DM Mono", monospace;
    letter-spacing: 0;
    vertical-align: middle;
  }

  .product-transition {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 4px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid #24bfc9;
    border-radius: 12px;
    background: var(--surface-2);
  }

  .transition-indicator {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #24bfc9;
    box-shadow: 0 0 0 3px color-mix(in srgb, #24bfc9 17%, transparent);
  }

  .product-transition strong {
    display: block;
    margin: 0;
    color: var(--ink);
  }
}