/* Apple-style design language, compact density.
   SF Pro on Apple devices (system font); Inter as the open-source stand-in elsewhere. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fill: #e8e8ed;
  --fill-hover: #dcdce1;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --pill-text: #424245;
  --sep: rgb(0 0 0 / 0.09);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --eyebrow: #b64400;
  --nav-bg: rgb(245 245 247 / 0.8);
  --grad: linear-gradient(90deg, #0a6cff 0%, #7b4dff 55%, #c2409b 100%);
  --shadow: 0 4px 24px rgb(0 0 0 / 0.07);
  --t-blue: #007aff;
  --t-green: #34c759;
  --t-purple: #af52de;
  --t-orange: #ff9500;
  --t-indigo: #5856d6;
  --t-teal: #30b0c7;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --r-tile: 18px;
  --r-group: 12px;
  --wrap: 980px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: #2c2c2e;
    --fill-hover: #3a3a3c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #636366;
    --pill-text: #d1d1d6;
    --sep: rgb(255 255 255 / 0.1);
    --link: #2997ff;
    --eyebrow: #f56300;
    --nav-bg: rgb(22 22 23 / 0.8);
    --grad: linear-gradient(90deg, #2997ff 0%, #a77bff 55%, #ff6ac1 100%);
    --shadow: 0 4px 24px rgb(0 0 0 / 0.5);
    --t-blue: #0a84ff;
    --t-green: #30d158;
    --t-purple: #bf5af2;
    --t-orange: #ff9f0a;
    --t-indigo: #5e5ce6;
    --t-teal: #40c8e0;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --fill: #2c2c2e;
  --fill-hover: #3a3a3c;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #636366;
  --pill-text: #d1d1d6;
  --sep: rgb(255 255 255 / 0.1);
  --link: #2997ff;
  --eyebrow: #f56300;
  --nav-bg: rgb(22 22 23 / 0.8);
  --grad: linear-gradient(90deg, #2997ff 0%, #a77bff 55%, #ff6ac1 100%);
  --shadow: 0 4px 24px rgb(0 0 0 / 0.5);
  --t-blue: #0a84ff;
  --t-green: #30d158;
  --t-purple: #bf5af2;
  --t-orange: #ff9f0a;
  --t-indigo: #5e5ce6;
  --t-teal: #40c8e0;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.47 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 6px;
}
img,
svg {
  display: block;
}
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}
.skip:focus {
  top: 8px;
}
.tile {
  background: var(--surface);
  border-radius: var(--r-tile);
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .gradient-text {
    background: none;
    color: CanvasText;
  }
}
.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 980px;
  font: 500 14px/1 var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border-color: var(--link);
  color: var(--link);
}
.btn-secondary:hover {
  background: var(--link);
  color: var(--surface);
}
.btn-xs {
  min-height: 26px;
  padding: 0 12px;
  font-size: 12px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: var(--fill-hover);
  color: var(--text);
}
.icon-btn-lg {
  width: 36px;
  height: 36px;
}
.socials {
  display: inline-flex;
  gap: 10px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* theme icon: show the icon for the theme you'd switch TO */
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: none;
  }
}

/* app icon (iOS Settings-style squircle) */
.app-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 80%, #fff), var(--tint));
}
.app-icon.sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.tint-blue {
  --tint: var(--t-blue);
}
.tint-green {
  --tint: var(--t-green);
}
.tint-purple {
  --tint: var(--t-purple);
}
.tint-orange {
  --tint: var(--t-orange);
}
.tint-indigo {
  --tint: var(--t-indigo);
}
.tint-teal {
  --tint: var(--t-teal);
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 44px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  flex: none;
}
.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  color: var(--text);
  opacity: 0.8;
  font-size: 12px;
}
.nav nav a:hover {
  opacity: 1;
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 734px) {
  .nav nav {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding-block: 56px 28px;
  text-align: center;
}
.eyebrow {
  margin-bottom: 8px;
  color: var(--eyebrow);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-name {
  font-size: clamp(34px, 3vw + 22px, 56px);
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.nick {
  color: var(--text-2);
  font-weight: 500;
}
.hero-role {
  margin-top: 6px;
  padding-bottom: 3px;
  font-size: clamp(20px, 1vw + 16px, 28px);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.hero-lead {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.016em;
}
.hero-intro {
  max-width: 640px;
  margin: 8px auto 0;
  color: var(--text-2);
}
.hero .cta {
  margin-top: 20px;
}
.hero-loc {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 12px;
}

/* ------------------------------------------------------------------ bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 150px;
  padding: 20px;
}
.stat strong {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  padding-bottom: 2px;
}
.stat span {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.35;
}

/* macOS Terminal window */
.terminal {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #1e1e1e;
  color: #e5e5ea;
}
.term-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #2a2a2c;
  border-bottom: 1px solid #000;
}
.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tl-r {
  background: #ff5f57;
}
.tl-y {
  background: #febc2e;
}
.tl-g {
  background: #28c840;
}
.term-bar p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #98989d;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.term-body {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  font: 400 12px/1.55 var(--mono);
  letter-spacing: 0;
  tab-size: 2;
}
.tk-prompt {
  color: #fc5fa3;
  user-select: none;
}
.tk-key {
  color: #5dd8ff;
}
.tk-str {
  color: #fc6a5d;
}
.terminal figcaption {
  padding: 10px 16px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: #98989d;
  font-size: 12px;
}
.terminal figcaption a {
  color: #2997ff;
}

@media (max-width: 734px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .terminal {
    grid-row: auto;
    order: 2;
  }
  .stat {
    min-height: 124px;
    padding: 16px;
  }
  .stat strong {
    font-size: 36px;
  }
  .stat span {
    font-size: 13px;
  }
}
@media (max-width: 440px) {
  .term-body {
    padding-inline: 14px;
    font-size: 11px;
  }
}

/* ------------------------------------------------------------------ sections */
.section {
  padding-top: 56px;
}
main > .section:last-child {
  padding-bottom: 56px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(24px, 1vw + 18px, 32px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.section-head p {
  max-width: 640px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}
.meta {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
}
.list-caption {
  margin: 18px 0 6px 14px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.edu-grid > div > .list-caption:first-child {
  margin-top: 0;
}

/* about */
.about-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  color: var(--text-2);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.feature {
  padding: 20px;
}
.feature h3 {
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: -0.014em;
}
.feature p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
}
@media (max-width: 734px) {
  .about-text,
  .features {
    grid-template-columns: 1fr;
  }
}

/* case studies */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.case {
  display: flex;
  flex-direction: column;
  padding: 20px;
  scroll-margin-top: 60px;
  transition: box-shadow 0.25s;
}
.case:hover {
  box-shadow: var(--shadow);
}
.case:target {
  box-shadow: 0 0 0 2px var(--link);
}
.case:first-child {
  grid-column: 1 / -1;
}
/* Half-width cards: dates drop under the role line so titles keep the full width */
.case:not(:first-child) .case-head {
  grid-template-columns: auto minmax(0, 1fr);
}
.case:not(:first-child) .case-dates {
  grid-column: 2;
  margin-top: -10px;
}
.case-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.case h3,
.job h3 {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.016em;
}
.case-dates,
.job-dates {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.case-summary {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}
.checks {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
}
.case:first-child .checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.checks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--link);
  border-bottom: 1.8px solid var(--link);
  transform: rotate(-45deg);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.pills li {
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--fill);
  color: var(--pill-text);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 734px) {
  .cases {
    grid-template-columns: 1fr;
  }
  .case:first-child .checks {
    grid-template-columns: 1fr;
  }
  .case-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .case-dates {
    grid-column: 2;
    margin-top: -8px;
  }
}

/* experience */
.jobs {
  display: grid;
  gap: 12px;
}
.job {
  padding: 20px;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.job-summary {
  max-width: 78ch;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.job .list-caption {
  margin-left: 14px;
}

/* grouped list (iOS Settings-style) */
.group {
  overflow: hidden;
  border-radius: var(--r-group);
  background: var(--surface);
}
.tile .group,
.job .group {
  background: var(--surface-2);
}
.group.tile {
  background: var(--surface);
}
.group li > * {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 14px;
  color: var(--text);
}
.group li + li > *::before {
  content: '';
  position: absolute;
  top: 0;
  left: 52px;
  right: 0;
  height: 1px;
  background: var(--sep);
}
.group a:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--fill) 55%, transparent);
}
.g-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.g-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.g-sub {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.35;
}
.g-sub strong {
  color: var(--text);
  font-weight: 600;
}
.g-value {
  flex: none;
  color: var(--text-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chev {
  margin-left: -4px;
  color: var(--text-3);
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 734px) {
  .job-head {
    flex-direction: column;
    gap: 0;
  }
  .group a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 1px;
  }
  .group a .app-icon {
    grid-row: span 2;
  }
  .group a .g-value {
    grid-column: 2;
    font-size: 12px;
  }
  .group a .chev {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-left: 0;
  }
}

/* tech specs */
.specs {
  padding: 4px 20px;
}
.specs > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}
.specs > div + div {
  border-top: 1px solid var(--sep);
}
.specs dt {
  font-size: 14px;
  font-weight: 600;
}
.specs dd {
  font-size: 14px;
}
@media (max-width: 734px) {
  .specs > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* education */
.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.edu-grid .group {
  border-radius: 14px;
}
@media (max-width: 734px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .edu-grid > div + div > .list-caption:first-child {
    margin-top: 18px;
  }
}

/* contact */
.contact {
  padding: 36px 24px;
  text-align: center;
}
.contact .app-icon {
  margin: 0 auto;
}
.contact h2 {
  margin-top: 12px;
  font-size: clamp(24px, 1vw + 18px, 32px);
  letter-spacing: -0.022em;
}
.contact p {
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--text-2);
}
.contact .cta {
  margin-top: 18px;
}

/* footer */
.footer {
  border-top: 1px solid var(--sep);
  color: var(--text-2);
  font-size: 12px;
}
.footer .wrap {
  padding-block: 16px 24px;
}
.footer p + p {
  margin-top: 6px;
}
.footer a {
  color: var(--text);
}

/* 404 */
.notfound {
  padding-block: 120px;
  text-align: center;
}
.notfound h1 {
  font-size: clamp(30px, 2vw + 22px, 44px);
  letter-spacing: -0.026em;
}
.notfound p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-2);
}
.notfound .btn {
  margin-top: 16px;
}

/* ------------------------------------------------------------------ résumé page */
.r-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
}
.r-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: -4px;
  font-size: 14px;
}
.resume {
  width: min(100% - 32px, 210mm);
  margin: 24px auto 48px;
  padding: clamp(20px, 5vw, 16mm);
  background: var(--surface);
  border-radius: var(--r-tile);
  /* Static (non-variable) fonts: Chrome embeds variable system fonts in PDFs as
     Type 3 glyphs with no word spaces, which breaks ATS text extraction. */
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
  letter-spacing: 0;
}
/* No negative tracking or balanced wrapping on the résumé: both split text into
   positioned runs in the PDF, which scrambles extraction by ATS parsers. */
.resume h1,
.resume h2,
.resume h3,
.resume h4 {
  letter-spacing: 0;
  text-wrap: wrap;
}
.r-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sep);
}
.r-head h1 {
  font-size: 22pt;
  font-weight: 600;
}
.r-head h1 span {
  color: var(--text-2);
  font-weight: 400;
}
.r-title {
  margin-top: 2px;
  color: var(--link);
  font-size: 12.5pt;
  font-weight: 500;
}
.r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 9.5pt;
}
.r-contact a {
  color: inherit;
}
.resume section {
  margin-top: 16px;
}
.resume h2 {
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 8.5pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resume section > p {
  color: var(--text-2);
}
.r-job + .r-job {
  margin-top: 14px;
}
.r-job header,
.r-eng header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.r-job header > span,
.r-eng header > span {
  flex: none;
  color: var(--text-2);
  font-size: 9pt;
  font-variant-numeric: tabular-nums;
}
.r-job h3 {
  font-size: 11pt;
}
.r-job > p {
  margin-top: 2px;
  color: var(--text-2);
}
.r-eng {
  margin-top: 9px;
  padding-left: 12px;
  border-left: 2px solid var(--sep);
  break-inside: avoid;
}
.r-eng h4 {
  font-size: 10pt;
}
.r-eng h4 small {
  display: block;
  color: var(--text-2);
  font-size: 9pt;
  font-weight: 400;
}
.r-eng ul {
  margin-top: 2px;
  padding-left: 16px;
  list-style: disc;
  color: var(--text-2);
}
.r-eng li::marker {
  color: var(--text-3);
}
.r-skills {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 3px 12px;
}
.r-skills dt {
  font-weight: 600;
}
.r-skills dd {
  color: var(--text-2);
}
.r-two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  break-inside: avoid;
}
.r-two h2 + .r-list + h2 {
  margin-top: 12px;
}
.r-list {
  display: grid;
  gap: 6px;
  color: var(--text-2);
}
.r-list strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 640px) {
  .r-job header,
  .r-eng header {
    flex-direction: column;
    gap: 0;
  }
  .r-skills,
  .r-two {
    grid-template-columns: 1fr;
  }
  .r-skills dd {
    margin-bottom: 6px;
  }
}

/* ------------------------------------------------------------------ print */
@page {
  size: A4;
  margin: 13mm 14mm;
}
@media print {
  /* :not(#_) lifts specificity above the dark-mode blocks so print is always light */
  :root:not(#_) {
    --bg: #fff;
    --surface: #fff;
    --text: #111;
    --text-2: #444;
    --text-3: #888;
    --sep: #dcdcdc;
    --link: #0058b0;
    color-scheme: light;
  }
  .r-toolbar,
  .nav,
  .footer,
  .skip,
  .cta,
  .terminal {
    display: none !important;
  }
  .resume {
    width: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  a {
    color: inherit;
  }
}
