:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #202020;
  color: #efefed;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --border: #ffffff18;
  --muted: #a1a1a1;
  --panel: #262626;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #ddd; outline-offset: 6px; border-radius: 4px; }
::selection { background: #ddd; color: #202020; }
.particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--particle-opacity, 1); }
.site-header { position: absolute; z-index: 3; inset: 0 0 auto; padding: 28px 5vw; }
.wordmark { display: inline-flex; }
.wordmark img { display: block; width: 38px; height: 38px; }
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px 24px; overflow: hidden; }
.identity { position: relative; z-index: 1; text-align: center; opacity: var(--intro-opacity, 1); transform: translateY(var(--intro-offset, 0px)); }
h1 { margin: 0; font-size: clamp(50px, 10.4vw, 155px); font-weight: 600; line-height: 1.08; letter-spacing: -0.075em; }
.name-period, h2 > span, h3 > span { color: #777; }
.section-inner { max-width: 1120px; margin: auto; }
.about-section, .employment, .github-section, .skills-section, .contact-section { position: relative; z-index: 1; padding: 0 5vw; }
.experience-layout { display: grid; gap: 44px; padding: 96px 0; }
.section-heading { min-width: 0; }
h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1.1; letter-spacing: -0.06em; }
h3 { margin: 0; font-size: clamp(30px, 3.1vw, 42px); font-weight: 500; line-height: 1.14; letter-spacing: -0.05em; }

/* About: open typography, with a lead paragraph and a quieter reading column. */
.about-layout { grid-template-columns: 0.7fr 1.3fr; gap: 80px; padding-top: 112px; border-top: 1px solid var(--border); }
.about-copy { max-width: 690px; }
.about-copy p { margin: 0 0 24px; color: #aaa; font-size: 15px; line-height: 1.9; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .about-lead { margin-bottom: 32px; color: #ececec; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; letter-spacing: -0.035em; }

/* Employment: a pair of equal-width cards, each with its own surface. */
.employment-layout { border-top: 1px solid var(--border); }
.employment .section-heading { display: flex; align-items: center; gap: 35px; }
.employment .section-heading::after { content: ''; height: 1px; background: var(--border); flex: 1; }
.employment-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.experience { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid #ffffff24; border-radius: 14px; background: linear-gradient(140deg, #303030, #262626 75%); padding: 30px; box-shadow: 0 1px 0 #ffffff08 inset, 0 12px 35px #00000015; transition: border-color 200ms, box-shadow 200ms; }
.experience:hover { border-color: #ffffff42; box-shadow: 0 12px 35px #00000025; }
.upcoming-company { border-style: dashed; background: #202020a8; box-shadow: none; }
.card-top { display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.company { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.company-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #ffffff24; background: #ffffff04; border-radius: 10px; color: #ccc; }
.company-icon svg { width: 22px; height: 22px; }
.company-name { display: block; font-size: 14px; font-weight: 500; }
.company-domain { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.company-domain > span { display: inline-block; margin-left: 4px; transition: transform 200ms; }
.company:hover .company-domain { color: #eee; }
.company:hover .company-domain > span { transform: translate(2px,-2px); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ffffff18; border-radius: 20px; color: #bbb; font-size: 10px; white-space: nowrap; background: #ffffff03; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: #ccc; }
.experience-details { padding: 40px 0 32px; }
.role-abbreviation { color: var(--muted); font: 10px ui-monospace, monospace; letter-spacing: 0.14em; margin: 0 0 14px; }
.experience-description { margin: 20px 0 0; max-width: 43ch; color: #aaa; font-size: 14px; line-height: 1.8; }
.card-footer { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; padding-top: 23px; margin-top: auto; border-top: 1px solid var(--border); }
.footer-label { color: #929292; font-size: 9px; letter-spacing: 0.12em; }
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; font-size: 12px; color: #ccc; }
.date-separator { color: #888; }
.timeline { display: flex; width: 70px; align-items: center; padding-bottom: 4px; }
.timeline > span { width: 5px; height: 5px; border: 1px solid #888; border-radius: 50%; }
.timeline > span:last-child { background: #ccc; border-color: #ccc; box-shadow: 0 0 0 4px #ffffff08; }
.timeline i { height: 1px; flex: 1; background: linear-gradient(to right, #555, #bbb); }

/* GitHub: a recessed band with four separate metric tiles. */
.github-section { background: #1b1b1bf2; border-block: 1px solid var(--border); }
.github-layout { gap: 35px; padding-block: 64px; }
.github-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.github-profile { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid #ffffff1e; border-radius: 8px; color: #ccc; font-size: 13px; transition: background 200ms; }
.github-profile:hover { background: #ffffff06; }
.github-icon { width: 19px; height: 19px; }
.profile-arrow { margin-left: 9px; color: #999; }
.github-card { min-width: 0; }
.github-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.github-stats > div { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 25px; border: 1px solid #ffffff16; border-radius: 10px; background: #242424; box-shadow: 0 1px 0 #ffffff03 inset; transition: border-color 200ms, background 200ms; }
.github-stats > div:hover { border-color: #ffffff35; background: #282828; }
.github-stats dt { color: #a9a9a9; font-size: 12px; }
.github-stats dd { margin: 0; font-size: 46px; line-height: 1; font-weight: 500; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.github-status { margin: 20px 0 0; color: #999; font-size: 11px; line-height: 1.5; }
.github-status:empty { display: none; }

/* Skills: language tiles beside an unboxed list of personal skills. */
.skills-layout { gap: 40px; }
.skills-list { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; }
.skill-group h3 { margin-bottom: 24px; font-size: 14px; line-height: 1.4; letter-spacing: 0; color: #aaa; }
.skill-tags { list-style: none; padding: 0; margin: 0; }
.language-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.language-tiles li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 146px; border: 1px solid #ffffff1d; border-radius: 10px; background: linear-gradient(160deg, #2d2d2d, #232323); font-size: 12px; color: #bcbcbc; transition: transform 220ms, border-color 220ms; }
.language-tiles li:hover { transform: translateY(-4px); border-color: #ffffff40; }
.personal-skills { border-top: 1px solid var(--border); }
.personal-skills li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); padding: 17px 0; color: #c8c8c8; font-size: 14px; }
.personal-skills li::before { content: ''; width: 5px; height: 5px; border: 1px solid #999; border-radius: 50%; }

/* Contact: a single inset area, with the form separated from its heading. */
.contact-section > .section-inner { border: 1px solid #ffffff1c; border-radius: 16px; padding: 46px; background: #242424ed; }
.contact-layout { grid-template-columns: 0.7fr 1.3fr; gap: 64px; padding: 0; }
.contact-layout .section-heading { padding-top: 2px; }
.contact-direct { display: inline-block; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid #ffffff28; color: #aaa; font-size: 13px; overflow-wrap: anywhere; }
.contact-direct:hover { color: #eee; border-color: #aaa; }
.contact-form { min-width: 0; border-left: 1px solid var(--border); padding-left: 42px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; min-width: 0; }
.contact-field label { color: #c8c8c8; font-size: 12px; }
.contact-field input, .contact-field textarea { width: 100%; min-width: 0; border: 1px solid #ffffff20; border-radius: 7px; background: #1c1c1c99; color: #eee; padding: 12px 13px; font: inherit; font-size: 14px; line-height: 1.5; transition: border-color 180ms, box-shadow 180ms; }
.contact-field textarea { resize: vertical; min-height: 145px; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #818181; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: #aaa; box-shadow: 0 0 0 3px #ffffff09; }
.contact-actions { display: flex; justify-content: flex-end; }
.contact-actions button { border: 1px solid #ddd; border-radius: 7px; background: #e4e4e4; color: #202020; padding: 12px 21px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 180ms; }
.contact-actions button:hover { background: #fff; }
.contact-actions button:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }
.contact-actions button:disabled { cursor: wait; opacity: 0.55; }
.contact-feedback { margin: 20px 0 0; color: #ccc; font-size: 12px; line-height: 1.7; }
.contact-feedback:empty, .contact-honeypot { display: none; }
.message-editor { position: relative; }
.message-editor textarea { display: block; }
.message-caret-layer { position: absolute; inset: 0; overflow: hidden; border-radius: 7px; pointer-events: none; }
.caret-mirror { position: absolute; top: 0; left: 0; height: 0; visibility: hidden; pointer-events: none; border-style: solid; border-color: transparent; overflow: hidden; }
.message-caret { position: absolute; top: 0; left: 0; width: 2px; border-radius: 2px; background: #e5e5e5; visibility: hidden; pointer-events: none; }
.message-caret.is-visible { visibility: visible; transition: transform 85ms cubic-bezier(0.2, 0.65, 0.3, 1); animation: message-caret-blink 1.1s ease-in-out infinite; }
.message-caret.is-moving { animation: none; opacity: 1; }
#contact-message.smooth-caret { caret-color: transparent; }
@keyframes message-caret-blink { 0%, 100% { opacity: 0.1; } 40%, 60% { opacity: 1; } }
.site-footer { position: relative; z-index: 1; padding: 45px 5vw 30px; }
.section-footer { display: flex; justify-content: center; }
.copyright { margin: 0; color: #929292; font-size: 11px; line-height: 1.6; letter-spacing: 0.025em; }
.copyright span { margin-left: 5px; color: #c6c6c6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .experience.reveal { transition-delay: 80ms; }
@media (max-width: 1000px) {
  .skills-list { grid-template-columns: 1fr; gap: 38px; }
  .personal-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .personal-skills li { font-size: 13px; }
  .contact-section > .section-inner { padding: 32px; }
  .contact-layout { gap: 32px; }
  .contact-form { padding-left: 28px; }
}
@media (max-width: 760px) {
  .about-section, .employment, .github-section, .skills-section, .contact-section { padding-inline: 6vw; }
  .experience-layout { padding-block: 64px; gap: 32px; }
  .about-layout, .employment-entries, .contact-layout { grid-template-columns: 1fr; }
  .about-copy { max-width: none; }
  .about-copy .about-lead { font-size: 26px; }
  h2 { font-size: 42px; }
  .employment .section-heading::after { display: none; }
  .experience { padding: 26px; }
  h3 { font-size: 36px; }
  .experience-details { padding: 32px 0; }
  .github-layout { padding-block: 45px; }
  .github-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .github-stats > div { padding: 22px; gap: 22px; }
  .github-stats dd { font-size: 40px; }
  .github-profile { font-size: 11px; padding: 8px 10px; gap: 7px; }
  .github-icon { width: 17px; height: 17px; }
  .profile-arrow { margin-left: 2px; }
  .contact-layout { padding: 0; }
  .contact-form { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .contact-direct { margin-top: 16px; }
  .site-footer { padding-inline: 6vw; }
}
@media (max-width: 480px) {
  .site-header { padding: 22px 6vw; }
  h1 { font-size: 12.5vw; }
  h2 { font-size: 38px; }
  .about-copy p { font-size: 14px; line-height: 1.85; }
  .about-copy .about-lead { font-size: 24px; }
  .experience { padding: 23px; }
  .company { gap: 10px; }
  .company-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 8px; }
  .company-name { font-size: 12px; }
  .company-domain { font-size: 9px; }
  .status { font-size: 9px; padding: 6px 7px; }
  h3 { font-size: 32px; }
  .dates { font-size: 11px; gap: 6px; }
  .timeline { width: 42px; }
  .github-heading { gap: 12px; }
  .github-stats { gap: 10px; }
  .github-stats > div { padding: 18px; }
  .github-stats dt { font-size: 11px; }
  .language-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .language-tiles li { min-height: 126px; gap: 15px; }
  .personal-skills { display: block; }
  .personal-skills li { padding-block: 18px; }
  .contact-section > .section-inner { padding: 25px 22px; border-radius: 12px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-actions button { width: 100%; }
}
@media (max-width: 350px) { .timeline { display: none; } .github-heading { align-items: flex-start; flex-direction: column; } }
@media (max-height: 500px) and (orientation: landscape) { .hero { padding: 95px 24px; } h1 { font-size: 70px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .identity { opacity: 1; transform: none; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
  .message-caret { display: none; animation: none; }
  #contact-message.smooth-caret { caret-color: auto; }
}

/* Broad, soft light moves behind the content as the page scrolls. */
.scroll-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; contain: strict; }
.ambient-light { position: absolute; pointer-events: none; will-change: transform; }
.ambient-light-one { width: 115vmax; height: 42vmax; top: 8vh; left: -36vmax; border-radius: 50%; background: radial-gradient(ellipse at center, #ffffff0f 0%, #ffffff08 25%, #ffffff02 48%, transparent 68%); transform: translate3d(var(--light-x, 0px), var(--light-y, 0px), 0) rotate(var(--light-angle, -28deg)); }
.ambient-light-two { width: 105vmax; height: 35vmax; top: 46vh; right: -48vmax; border-radius: 50%; background: radial-gradient(ellipse at center, #ffffff0b 0%, #ffffff04 32%, transparent 68%); transform: translate3d(var(--light-two-x, 0px), var(--light-two-y, 0px), 0) rotate(var(--light-two-angle, 32deg)); }
.language-icon { display: block; width: 46px; height: 46px; object-fit: contain; }
.lua-icon { padding: 3px; border-radius: 50%; background: #ededed; }
.skills-layout { padding-bottom: 100px; }
.contact-section { margin-top: 80px; }
.contact-section::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: min(1120px, 90vw); height: 1px; background: linear-gradient(90deg, transparent, #ffffff20 20%, #ffffff20 80%, transparent); }
@media (max-width: 760px) {
  .skills-layout { padding-bottom: 68px; }
  .contact-section { margin-top: 64px; }
  .contact-section::before { top: -64px; width: 88vw; }
  .ambient-light-one { width: 140vmax; height: 55vmax; left: -85vmax; }
  .ambient-light-two { width: 130vmax; height: 50vmax; right: -85vmax; }
}
@media (prefers-reduced-motion: reduce) { .ambient-light { transform: none; will-change: auto; } }
