:root {
  --paper: #0d1417;
  --paper-deep: #152126;
  --ink: #edf4ef;
  --muted: #91a29e;
  --line: #2a3b40;
  --blue: #64adff;
  --blue-dark: #9acbff;
  --lime: #cde96f;
  --white: #f5faf5;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  animation: grid-drift 24s linear infinite;
  background:
    linear-gradient(90deg, rgba(100, 173, 255, .09) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(100, 173, 255, .09) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, rgba(205, 233, 111, .055) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(45deg, transparent 49.5%, rgba(100, 173, 255, .04) 50%, transparent 50.5%) 0 0 / 112px 112px,
    linear-gradient(135deg, transparent 49.5%, rgba(205, 233, 111, .03) 50%, transparent 50.5%) 0 0 / 160px 160px,
    var(--paper);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 16px; }
.site-shell { max-width: 1240px; margin: auto; padding: 0 64px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -1.5px; text-decoration: none; }
.wordmark::before { content: "◼"; margin-right: 9px; color: var(--blue); font-family: sans-serif; font-size: 13px; vertical-align: 3px; }
.wordmark span { margin-left: 12px; color: var(--muted); font-family: "Trebuchet MS", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.actions { display: flex; align-items: center; gap: 23px; font-size: 13px; font-weight: 700; }
.actions > a { text-decoration: none; }
button { border: 1px solid var(--lime); border-radius: 0; padding: 11px 17px; color: var(--lime); background: var(--paper-deep); font-size: 13px; font-weight: 700; box-shadow: 4px 4px 0 var(--blue); }
button:hover { color: var(--paper); background: var(--lime); border-color: var(--lime); box-shadow: 4px 4px 0 var(--blue); }
button span { margin-left: 13px; }
.hero { position: relative; padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.hero, .resume-section, footer { animation: page-rise .7s cubic-bezier(.2, .75, .25, 1) both; }
.resume-section:nth-of-type(2) { animation-delay: .08s; }
.resume-section:nth-of-type(3) { animation-delay: .16s; }
.resume-section:nth-of-type(4) { animation-delay: .24s; }
.resume-section:nth-of-type(5) { animation-delay: .32s; }
.resume-section:nth-of-type(6) { animation-delay: .4s; }
.eyebrow { position: relative; z-index: 1; margin: 0 0 24px; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow span { margin: 0 12px; color: var(--ink); }
h1 { position: relative; z-index: 1; max-width: 780px; margin: 0 0 24px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(52px, 8vw, 104px); font-weight: 700; letter-spacing: -6px; line-height: .92; }
.name-break { display: none; }
.name-period { color: var(--blue); }
.headline { margin: 0 0 19px; color: var(--blue-dark); font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.headline span { padding: 0 6px; color: var(--muted); }
.positioning { max-width: 660px; margin: 0 0 31px; color: #b8c8c1; font-size: 20px; line-height: 1.5; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; font-weight: 700; }
.contact-links a { border-bottom: 1px solid #8e988f; overflow-wrap: anywhere; text-decoration: none; }
.contact-links a:hover { border-color: var(--blue); }
.hero-orb { position: absolute; right: -10px; bottom: 15px; width: 320px; height: 260px; cursor: grab; touch-action: none; user-select: none; }
.hero-orb:active { cursor: grabbing; }
.resume-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.section-label > span { display: block; margin-bottom: 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.section-label h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; letter-spacing: -.7px; line-height: 1.1; }
.section-body { min-width: 0; }
.profile-copy { max-width: 780px; margin: 0; color: #c0cec7; font-size: 18px; line-height: 1.62; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); }
.entry-heading h3, .project h3, .skill-grid h3, .learning-grid h3 { margin: 0; font-family: Georgia, serif; line-height: 1.2; }
.entry-heading h3 { font-size: 26px; letter-spacing: -.5px; }
.date { margin: 0; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.role { margin: 8px 0 19px; color: var(--blue-dark); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
ul { margin: 0; padding-left: 18px; }
li { margin-bottom: 11px; padding-left: 4px; color: #bccbc3; }
li::marker { color: var(--blue); }
.support-experience { margin-top: 43px; padding-top: 31px; border-top: 1px solid var(--line); }
.support-experience .entry-heading h3 { font-size: 22px; }
.support-experience .role { margin-bottom: 13px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; perspective: 1200px; }
.project { min-height: 100%; padding: 21px; border: 1px solid var(--line); background: rgba(21, 33, 38, .78); transform: translateZ(0); transform-style: preserve-3d; transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.project:hover { transform: translate3d(-3px, -5px, 12px) rotateX(1deg) rotateY(-1deg); border-color: var(--blue); background: var(--white); box-shadow: 8px 8px 0 rgba(21, 94, 239, .14); }
.featured-project { grid-column: 1 / -1; padding: 27px; border-color: var(--ink); background: var(--ink); color: var(--white); box-shadow: 8px 8px 0 var(--lime); }
.featured-project:hover { border-color: var(--ink); background: #202d27; box-shadow: 11px 11px 0 var(--lime); }
.project-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project h3 { font-size: 21px; }
.featured-project h3 { font-size: 29px; }
.project-type { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.featured-project .project-type { color: var(--lime); }
.project p { margin: 13px 0 0; color: #aebdb5; line-height: 1.55; }
.featured-project p { max-width: 740px; color: #dce6db; font-size: 17px; }
.project .tags { margin-top: 20px; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .7px; }
.featured-project .tags { color: var(--lime); }
.tags span { padding: 0 5px; color: var(--muted); }
.featured-project .tags span { color: #91a69b; }
.skill-grid, .learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: transparent; }
.skill-grid article, .learning-grid article { min-height: 150px; padding: 21px; background: rgba(21, 33, 38, .62); }
.skill-grid article::before, .learning-grid article::before { display: block; width: 23px; height: 4px; margin-bottom: 19px; background: var(--blue); content: ""; }
.skill-grid h3, .learning-grid h3 { font-size: 18px; }
.skill-grid p, .learning-grid p { margin: 11px 0 0; color: #aebdb5; font-size: 14px; line-height: 1.5; }
.learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learning-grid .markets { grid-column: 1 / -1; }
.learning-grid .markets::before { background: var(--lime); }
.separator { margin: 0 7px; color: var(--blue); }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 65px 0 78px; }
footer h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); letter-spacing: -1.8px; line-height: 1; }
footer p { color: var(--muted); }
footer > div > p { margin: 0 0 22px; }
.footer-email { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.signature { align-self: end; margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 20px; line-height: 1.25; text-align: right; }
.signature span { color: var(--muted); font-family: "Trebuchet MS", sans-serif; font-size: 12px; }
.print-label { display: none; }

@keyframes page-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, -48px -48px, 96px 96px, 56px 56px, -80px -80px, 0 0; }
}

@media (min-width: 1400px) { .hero { padding-top: 84px; } }
@media (max-width: 900px) {
  .site-shell { padding: 0 32px; }
  .wordmark span { display: none; }
  .resume-section { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
  .project-heading { display: block; }
  .project-type { display: block; margin-top: 9px; }
  .hero-orb { position: relative; right: auto; bottom: auto; display: block; width: min(320px, 100%); height: 230px; margin: 24px 0 -8px auto; }
}
@media (max-width: 620px) {
  .site-shell { padding: 0 22px; }
  .topbar { padding: 18px 0; gap: 12px; }
  .actions { gap: 15px; }
  .actions > a { display: none; }
  button { padding: 10px 14px; }
  .hero { padding: 39px 0 33px; }
  .eyebrow { max-width: 290px; font-size: 11px; letter-spacing: .8px; }
  .eyebrow span { margin: 0 6px; }
  .name-break { display: block; }
  h1 { font-size: clamp(46px, 14vw, 55px); letter-spacing: -3px; }
  .headline { max-width: 320px; font-size: 16px; line-height: 1.7; }
  .headline span { padding: 0 2px; }
  .positioning { font-size: 18px; }
  .contact-links { gap: 10px 18px; font-size: 13px; }
  .hero-orb { width: 100%; height: 210px; margin: 18px auto 0; }
  .resume-section { display: block; padding: 31px 0; }
  .section-label { display: flex; align-items: baseline; gap: 13px; margin-bottom: 21px; }
  .section-label > span { margin: 0; }
  .section-label h2 { font-size: 20px; }
  .profile-copy { font-size: 16px; }
  .entry-heading { display: block; }
  .entry-heading h3 { font-size: 23px; }
  .section-body .date { margin-top: 7px; }
  li { font-size: 15px; }
  .projects, .skill-grid, .learning-grid { grid-template-columns: 1fr; }
  .featured-project { padding: 20px !important; }
  .featured-project h3 { font-size: 24px; }
  .project h3 { font-size: 18px; }
  .skill-grid article, .learning-grid article { min-height: 0; }
  .learning-grid .markets { grid-column: auto; }
  footer { display: block; padding: 42px 0 50px; }
  .signature { margin-top: 27px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .project { transition: none; }
  .project:hover { transform: none; box-shadow: none; }
  .hero, .resume-section, footer { animation: none; }
}

@page { size: A4; margin: 12mm 14mm; }
@media print {
  :root { background: white; color: #171717; }
  html { scroll-behavior: auto; }
  body { font-family: Arial, sans-serif; font-size: 9pt; line-height: 1.34; background: white; }
  body { animation: none; }
  .site-shell { max-width: none; padding: 0; }
  .topbar, .skip-link, .screen-label, .name-period { display: none !important; }
  .hero, .resume-section, footer { animation: none; }
  .print-label { display: inline; }
  .hero { padding: 0 0 10pt; border: 0; }
  .hero-orb { display: none; }
  .eyebrow { font-size: 7.5pt; letter-spacing: .5pt; margin: 0 0 7pt; }
  .eyebrow span { margin: 0 6pt; }
  h1 { font-size: 29pt; letter-spacing: -1pt; margin: 0 0 7pt; }
  .name-break { display: none; }
  .headline { font-size: 10pt; max-width: none; margin: 0 0 6pt; }
  .positioning { font-size: 9.5pt; max-width: none; line-height: 1.35; margin: 0 0 8pt; }
  .contact-links { gap: 3pt 13pt; font-size: 7.7pt; line-height: 1.45; }
  .contact-links a { border: 0; text-decoration: none; }
  .resume-section { display: block; padding: 10pt 0; border-color: #bcbcbc; }
  .section-label { display: block; margin: 0 0 7pt; }
  .section-label > span { display: none; }
  .section-label h2 { color: #193cb8; font-size: 10pt; letter-spacing: .15pt; }
  .profile-copy { color: #171717; font-size: 9pt; line-height: 1.4; }
  .entry-heading { display: flex; gap: 10pt; }
  .entry-heading h3 { font-size: 12pt; letter-spacing: 0; margin: 0 0 3pt; }
  .section-body .date { font-size: 8pt; margin: 0; }
  .section-body .role { font-size: 9pt; margin: 0 0 6pt; }
  .primary-experience ul { padding-left: 13pt; }
  li { color: #171717; font-size: 9pt; padding-left: 2pt; margin-bottom: 4pt; }
  .support-experience { margin-top: 9pt; padding-top: 8pt; }
  .support-experience .entry-heading h3 { font-size: 10pt; }
  .support-experience .role { font-size: 8.5pt; margin-bottom: 4pt; }
  .support-experience li { font-size: 8.5pt; margin-bottom: 2pt; }
  .projects { display: block; }
  .project { padding: 7pt 0; border: 0; background: none; break-inside: avoid; }
  .featured-project { padding: 0 0 7pt !important; border: 0; color: #171717; box-shadow: none; background: none; transform: none; }
  .project-heading { display: flex; gap: 10pt; }
  .project h3 { font-size: 10pt; letter-spacing: 0; margin: 0 0 3pt; }
  .project-type { display: inline; margin: 0; font-size: 7.5pt; }
  .project p, .featured-project p { color: #171717; font-size: 8.8pt; line-height: 1.36; }
  .project .tags { color: #193cb8; font-size: 7.7pt; margin-top: 4pt; }
  .skills-section { break-before: auto; }
  .skill-grid, .learning-grid { display: block; border: 0; background: none; }
  .skill-grid article, .learning-grid article { min-height: 0; padding: 0 0 7pt; background: none; }
  .skill-grid article::before, .learning-grid article::before { display: none; }
  .skill-grid h3, .learning-grid h3 { font-family: Arial, sans-serif; font-size: 9.5pt; }
  .skill-grid p, .learning-grid p { color: #171717; font-size: 8.5pt; line-height: 1.35; margin: 2pt 0 0; }
  footer { display: none; }
}
