/* Home page design tokens. Shared legacy styles remain unchanged. */
:root {
  color-scheme: dark;
  --background: #192428;
  --surface: #1f2e33;
  --border: #31464d;
  --divider: #2b3d43;
  --accent: #39ace7;
  --white: #fff;
  --body: #c9d3d6;
  --muted: #98a6ab;
  --ink: #0e1a1e;
  --purple: #9b5de5;
  --magenta: #e0509f;
  --mono: 'Fira Code', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--body); font: 16px/1.7 var(--sans); }
body, h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a, button, summary { touch-action: manipulation; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--white); font-family: var(--mono); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(68px, 5.56vw, 80px); }
h2 { font-size: 44px; }
h3 { font-size: 24px; }
p { text-wrap: pretty; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.page-shell { overflow: clip; isolation: isolate; }
.skip-link { position: absolute; top: 12px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--accent); color: var(--ink); font: 600 14px var(--mono); transform: translateY(-180%); }
.skip-link:focus { transform: none; color: var(--ink); }
.eyebrow { margin-bottom: 18px; font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid #36708a; border-radius: 4px; font: 500 14px/1.6 var(--mono); color: var(--accent); background: transparent; transition: background .2s, border-color .2s, color .2s; }
.button:hover { background: #263d46; border-color: var(--accent); color: var(--white); }
.button-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.button-primary:hover { background: #70c8f4; border-color: #70c8f4; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip { display: inline-block; padding: 5px 10px; border: 1px solid #36708a; border-radius: 4px; background: #203944; color: var(--accent); font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.panel { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.site-header { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; min-height: 88px; border-bottom: 1px solid var(--divider); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font: 700 20px/1.3 var(--mono); letter-spacing: -.04em; }
.brand img { width: 32px; height: 32px; }
.primary-navigation { display: flex; justify-content: center; flex: 1; gap: 34px; }
.primary-navigation a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font: 600 14px/1.5 var(--mono); }
.primary-navigation a:hover, .primary-navigation .is-active { color: var(--white); }
.primary-navigation .is-active::after { content: ''; height: 2px; background: var(--accent); position: absolute; bottom: 0; left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.availability { font: 500 12px/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.availability::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--magenta); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 13px; border: 1px solid #36708a; border-radius: 4px; color: var(--accent); background: transparent; cursor: pointer; }
.menu-toggle svg { display: block; width: 100%; height: 100%; }
.menu-toggle[aria-expanded='true'] .menu-middle { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-top { transform: translateY(6px) rotate(45deg); transform-origin: center; }
.menu-toggle[aria-expanded='true'] .menu-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: center; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding-block: 104px 100px; }
.hero::before { content: ''; pointer-events: none; position: absolute; z-index: -1; width: 760px; height: 760px; left: 60%; top: -24px; border-radius: 50%; background: linear-gradient(45deg, #ff0099, #3023ae); opacity: .17; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 9ch; line-height: 1.02; margin-bottom: 28px; }
.hero-role { margin-bottom: 24px; font: 500 22px/1.5 var(--mono); color: var(--accent); }
.hero-intro { max-width: 58ch; font-size: 18px; line-height: 1.7; }
.role-chips { margin-top: 26px; gap: 8px 10px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.portrait-scene { position: relative; width: 100%; max-width: 450px; min-width: 0; padding: 48px 56px 48px 32px; justify-self: end; }
.portrait-scene::before { content: ''; position: absolute; inset: 12px -25px 0 -25px; border: 1px dashed #285169; border-radius: 50%; transform: rotate(-12deg); }
.portrait-frame { position: relative; width: 100%; isolation: isolate; }
.portrait-frame::after { content: ''; position: absolute; z-index: -1; inset: 15px -15px -15px 15px; border: 2px solid var(--purple); border-radius: 5px; }
.portrait { width: 100%; aspect-ratio: 340 / 430; height: auto; object-fit: cover; object-position: 50% 52%; border-radius: 6px; }
.portrait-caption { position: absolute; left: 14px; bottom: 14px; padding: 4px 8px; color: #e1eaee; background: #14201fe6; border-radius: 3px; font: 500 11px/1.5 var(--mono); }
.astronaut { position: absolute; width: 205px; top: -28px; right: -32px; animation: drift 7s ease-in-out infinite; }
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--white); }
.star-one { top: 8%; left: -8%; width: 6px; height: 6px; background: var(--accent); }
.star-two { top: 72%; left: -12%; }
.star-three { bottom: 8%; right: 4%; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--divider); }
.stat { padding: 28px 24px; border-right: 1px solid var(--divider); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat dt { color: var(--white); font: 700 40px/1.3 var(--mono); margin-bottom: 8px; }
.stat dd { color: var(--muted); font-size: 14px; line-height: 1.5; }
.section { margin-top: 108px; position: relative; }
.section-heading { margin-bottom: 44px; }
.section-heading-split { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading-split > p { max-width: 340px; color: var(--muted); }
.title-with-paw { display: flex; align-items: center; gap: 14px; }
.title-with-paw img { width: 32px; height: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project-card { grid-column: span 5; min-width: 0; min-height: 340px; padding: 32px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.project-card:first-child, .project-card:last-child { grid-column: span 7; }
.project-card:hover, .project-card:focus-within { border-color: var(--purple); transform: translateY(-3px); }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.project-number { color: var(--muted); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; }
.project-tag { flex-shrink: 0; text-transform: uppercase; }
.project-card h3 { margin-bottom: 20px; font-size: 32px; }
.project-card h3 a { color: var(--white); }
.project-card h3 a:hover { color: var(--accent); }
.project-card p { margin-bottom: 24px; }
.project-card .chips { margin-top: auto; }
.more-builds { margin-top: 20px; display: inline-flex; min-height: 44px; align-items: center; font: 500 13px var(--mono); }
.experience { display: grid; grid-template-columns: 1fr 1.8fr; gap: 64px; margin-top: 128px; }
.experience-intro p:last-child { margin-top: 18px; color: var(--muted); max-width: 36ch; }
.timeline { list-style: none; padding: 0 0 0 30px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -37px; top: 5px; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; background: var(--background); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px #39ace72b; }
.timeline .eyebrow { color: var(--muted); margin-bottom: 8px; }
.timeline h3 { margin-bottom: 10px; font-size: 22px; }
.skills { margin-top: 128px; }
.skills::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 610px; height: 610px; right: calc(100% - 240px); top: -450px; border-radius: 50%; background: linear-gradient(45deg, #ff0099, #3023ae); opacity: .1; }
.skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.skill-card { padding: 24px; min-width: 0; }
.skill-card h3 { font-size: 16px; margin-bottom: 18px; letter-spacing: -.025em; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 96px; }
.credentials-card { padding: 32px; }
.credentials-card h2 { font-size: 30px; margin-bottom: 24px; }
.cert-list { list-style: none; padding: 0; }
.cert-list li { padding-block: 14px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 500; }
.cert-list time { flex-shrink: 0; color: var(--muted); font: 500 12px/1.8 var(--mono); }
.cert-details { border-bottom: 1px solid var(--border); }
.cert-details summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; border-top: 1px solid var(--border); cursor: pointer; color: var(--muted); list-style: none; }
.cert-details summary::-webkit-details-marker { display: none; }
.cert-details summary .details-action { color: var(--accent); font: 500 12px/1.5 var(--mono); white-space: nowrap; }
.cert-details[open] .details-action::after { content: ' −'; }
.cert-details:not([open]) .details-action::after { content: ' →'; }
.credentials-card > p:not(.eyebrow) { margin-bottom: 20px; }
.community-details { margin-top: 18px; color: var(--muted); font-size: 14px; }
.community-details summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); cursor: pointer; font: 500 12px/1.5 var(--mono); }
.community-details p { margin-top: 8px; }
.recent-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; padding: 28px; color: var(--body); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.post-card .eyebrow { color: var(--muted); margin-bottom: 12px; }
.post-card h3 { font-size: 22px; margin-bottom: 14px; }
.post-card > span:last-child { color: var(--accent); font: 500 13px/1.5 var(--mono); margin-top: auto; }
.contact { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; padding: 60px 64px; margin-top: 132px; border: 2px solid var(--purple); }
.contact h2 { margin-bottom: 24px; }
.contact p:not(.eyebrow) { font-size: 18px; }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.peeking-cat { position: absolute; width: 96px; height: 77px; right: 110px; bottom: 100%; margin-bottom: -2px; }
.site-footer { padding-block: 80px 60px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-signoff { display: flex; align-items: center; gap: 28px; }
.footer-signoff img { width: 112px; height: 64px; }
.footer-signoff p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 13px/1.5 var(--mono); }
.copyright { margin-top: 6px; text-align: right; color: var(--muted); font: 400 12px/1.6 var(--mono); }
@media (max-width: 1199px) {
  h1 { font-size: 68px; }
  h2 { font-size: 38px; }
  .availability { display: none; }
  .primary-navigation { gap: 26px; }
  .hero { grid-template-columns: 1fr; gap: 46px; padding-block: 52px 60px; }
  .hero h1 { max-width: none; line-height: 1.15; margin-bottom: 20px; }
  .hero-role { margin-bottom: 22px; }
  .hero-intro { max-width: 58ch; }
  .hero::before { width: 640px; height: 640px; left: 60%; top: 570px; }
  .portrait-scene { justify-self: center; max-width: 520px; padding: 54px 120px 42px 100px; margin-top: 8px; }
  .portrait-scene::before { inset: 24px -38px 0 -38px; }
  .astronaut { width: 195px; top: 25px; right: -35px; }
  .portrait { aspect-ratio: 260 / 330; }
  .portrait-caption { left: 8px; bottom: 10px; font-size: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 24px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--divider); }
  .stat dt { font-size: 36px; }
  .section { margin-top: 86px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading-split { display: block; }
  .section-heading-split > p { max-width: none; margin-top: 16px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-card, .project-card:first-child, .project-card:last-child { grid-column: auto; padding: 26px; min-height: 360px; }
  .project-card h3 { font-size: 28px; }
  .experience { display: block; margin-top: 110px; }
  .experience-intro { margin-bottom: 44px; }
  .experience-intro p:last-child { max-width: none; }
  .timeline { margin-left: 5px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .skill-card { min-height: 154px; }
  .credentials-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 96px; }
  .credentials-card { padding: 28px; }
  .credentials-card h2 { font-size: 28px; }
  .posts-grid { gap: 20px; }
  .post-card { padding: 26px; }
  .post-card h3 { font-size: 20px; }
  .contact { grid-template-columns: 1fr; gap: 32px; padding: 48px; margin-top: 110px; }
  .contact h2 { max-width: 17ch; font-size: 40px; }
  .contact-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .peeking-cat { right: 70px; }
  .site-footer { flex-direction: column; padding-block: 72px 48px; }
  .footer-signoff { flex-direction: column; gap: 18px; text-align: center; }
  .footer-links { justify-content: center; }
  .copyright { text-align: center; }
}
@media (min-width: 640px) and (max-width: 950px) {
  .nav-writing { display: none !important; }
  .site-header { gap: 16px; min-height: 80px; }
  .primary-navigation { gap: 24px; }
  .header-contact { padding-inline: 18px; }
  .header-contact .desktop-label { display: none; }
  .header-contact .tablet-label { display: inline; }
}
@media (min-width: 951px) { .tablet-label { display: none; } }
@media (max-width: 639px) {
  html { scroll-padding-top: 20px; }
  .container { width: calc(100% - 40px); }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .eyebrow { margin-bottom: 16px; }
  .button { min-height: 48px; }
  .site-header { min-height: 72px; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .brand { font-size: 18px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { display: none; }
  .menu-toggle:not([hidden]) { display: block; }
  .primary-navigation { flex: 0 0 100%; display: flex; flex-direction: column; gap: 0; padding-block: 12px; }
  .primary-navigation a { min-height: 48px; padding-inline: 12px; }
  .primary-navigation .is-active::after { width: 2px; height: auto; top: 10px; bottom: 10px; right: auto; }
  .hero { gap: 44px; padding-block: 58px 48px; }
  .hero-copy { order: 2; }
  .portrait-scene { order: 1; max-width: 300px; padding: 28px 40px 24px 30px; margin-top: 0; }
  .portrait-scene::before { inset: 0 -10px 0 -10px; }
  .portrait { aspect-ratio: 200 / 260; }
  .portrait-caption { font-size: 9px; }
  .astronaut { width: 130px; top: -18px; right: -20px; }
  .star-one { left: 0; top: 6%; }
  .star-two { left: -3%; }
  .hero::before { width: 400px; height: 400px; left: 45%; top: 350px; }
  .hero h1 { max-width: 9ch; font-size: 48px; line-height: 1.05; margin-bottom: 22px; }
  .hero-role { font-size: 18px; margin-bottom: 20px; }
  .hero-intro { font-size: 16px; }
  .role-chips { margin-top: 20px; }
  .role-chips .chip { font-size: 11px; padding: 5px 8px; }
  .hero-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
  .hero-buttons .button { padding-inline: 6px; font-size: 13px; }
  .hero-buttons .button-primary { grid-column: 1 / -1; }
  .stats .stat { padding: 22px 18px; }
  .stats .stat:nth-child(odd) { padding-left: 0; }
  .stat dt { font-size: 28px; }
  .stat dd { font-size: 12px; }
  .stat .wide-label { display: none; }
  .stat .short-label { display: inline; }
  .section { margin-top: 72px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading-split { gap: 0; }
  .title-with-paw { gap: 10px; }
  .title-with-paw img { width: 26px; height: 26px; }
  .title-with-paw h2 { font-size: 30px; }
  .section-heading-split > p, .experience-intro p:last-child { font-size: 15px; }
  .project-grid, .skill-grid, .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card, .project-card:first-child, .project-card:last-child { min-height: 0; padding: 22px; }
  .project-meta { gap: 8px; margin-bottom: 20px; }
  .project-number { font-size: 11px; }
  .project-tag { font-size: 10px; padding-inline: 8px; }
  .project-card h3 { font-size: 26px; margin-bottom: 16px; }
  .project-card p { font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
  .chip { font-size: 11px; padding: 5px 9px; }
  .more-builds { font-size: 12px; }
  .experience { margin-top: 80px; }
  .experience-intro { margin-bottom: 34px; }
  .timeline { padding-left: 24px; }
  .timeline li { padding-bottom: 32px; }
  .timeline li::before { left: -31px; }
  .timeline .eyebrow { font-size: 11px; }
  .timeline h3 { font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
  .timeline p:not(.eyebrow) { font-size: 15px; }
  .skills::before { width: 380px; height: 380px; top: -200px; right: calc(100% - 140px); }
  .skill-card { padding: 22px; min-height: 0; }
  .skill-card h3 { font-size: 16px; margin-bottom: 16px; }
  .credentials-grid { margin-top: 56px; gap: 16px; }
  .credentials-card { padding: 22px; }
  .credentials-card h2 { font-size: 26px; margin-bottom: 18px; }
  .cert-list li { flex-direction: column; gap: 2px; font-size: 14px; }
  .cert-details summary { font-size: 14px; }
  .credentials-card > p:not(.eyebrow) { font-size: 15px; }
  .recent-heading { display: contents; }
  .recent-heading > div { margin-bottom: 26px; }
  .recent-heading > .button { order: 3; margin-top: 14px; }
  .recent { display: flex; flex-direction: column; }
  .post-card { padding: 22px; }
  .post-card h3 { font-size: 18px; }
  .contact { grid-template-columns: minmax(0, 1fr); margin-top: 96px; padding: 26px 22px; gap: 24px; }
  .contact h2 { font-size: 32px; line-height: 1.15; margin-bottom: 20px; }
  .contact p:not(.eyebrow) { font-size: 16px; }
  .contact-buttons { grid-template-columns: 1fr; gap: 10px; }
  .peeking-cat { width: 76px; height: 61px; right: 34px; }
  .site-footer { padding-block: 64px 44px; gap: 18px; }
  .footer-signoff img { width: 110px; height: 62px; }
  .footer-links { gap: 24px; }
  .footer-links a { font-size: 12px; }
  .copyright { font-size: 11px; }
}
@media (min-width: 640px) { .short-label { display: none; } }
@media (max-width: 359px) {
  h1, .hero h1 { font-size: 42px; }
  .hero-role { font-size: 16px; }
  .title-with-paw h2 { font-size: 26px; }
  .project-card, .project-card:first-child, .project-card:last-child { padding: 18px; }
  .project-meta { align-items: start; }
  .project-tag { max-width: 118px; white-space: normal; }
  .project-card h3 { font-size: 24px; }
  .contact h2 { font-size: 28px; }
  .footer-links { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
