:root {
  color-scheme: dark;
  --ink: #101716;
  --ink-soft: #17201d;
  --ink-lift: #1b2621;
  --paper: #eff1e8;
  --paper-dim: #b7c0b5;
  --muted: #8c9a8d;
  --line: #334139;
  --acid: #b6f36a;
  --acid-dark: #7eaa45;
  --orange: #e58b5d;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Space Grotesk", "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { height: 82px; padding-inline: max(32px, calc((100% - 1160px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(183, 192, 181, .12); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--acid); color: var(--paper); font: 700 19px var(--display); }
.brand-mark span, .accent { color: var(--acid); }
.brand-label, .header-link, .eyebrow, .hero-index, .art-caption, .art-coordinate, .hero-edge, .site-footer, .project-number, .skill-index, .entry-period, .education-period { font-family: var(--mono); letter-spacing: .08em; }
.brand-label { font-size: 10px; font-weight: 500; }
.brand-slash { color: var(--acid); }
.header-link { font-size: 11px; color: var(--paper-dim); }
.header-link span, .text-link span { color: var(--acid); }
.header-link:hover, .site-footer a:hover, .contact-links a:hover { color: var(--acid); }
.hero { position: relative; min-height: 640px; padding-block: 83px 72px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 30px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 10px; font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 13px rgba(182, 243, 106, .55); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .login-panel h1 { margin: 0; font: 600 clamp(54px, 7vw, 88px)/.99 var(--display); letter-spacing: -.075em; }
.hero h1 span, .login-panel h1 span, .contact-section h2 span { color: var(--acid); }
.hero-summary { max-width: 470px; margin: 25px 0 0; color: var(--paper-dim); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 31px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.button-primary { background: var(--acid); color: var(--ink); }
.button-primary:hover { background: #d0ff93; }
.button-outline { border-color: var(--line); background: transparent; color: var(--paper); }
.button-outline:hover { border-color: var(--acid); color: var(--acid); }
.text-link { font-size: 12px; font-weight: 600; }
.hero-index { display: flex; align-items: center; gap: 12px; margin-top: 75px; color: var(--muted); font-size: 9px; }
.hero-index > span:first-child { color: var(--acid); }
.index-line { width: 35px; height: 1px; background: var(--line); }
.hero-art { position: relative; min-height: 475px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 46%, #1c2921 0, #141d19 42%, rgba(16, 23, 22, .15) 74%); }
.circuit-art { width: 100%; max-height: 480px; overflow: visible; }
.art-caption { position: absolute; inset: 14px 0 auto; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.art-caption span:first-child { color: var(--acid); }
.art-stamp { position: absolute; right: 4px; bottom: 45px; display: flex; align-items: center; gap: 10px; color: var(--paper-dim); font: 9px/1.5 var(--mono); letter-spacing: .06em; }
.stamp-circle { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--acid-dark); border-radius: 50%; color: var(--acid); font-size: 10px; }
.art-coordinate { position: absolute; bottom: 15px; left: 0; color: var(--muted); font-size: 8px; }
.hero-edge { position: absolute; right: 0; bottom: 28px; color: var(--muted); font-size: 8px; writing-mode: vertical-rl; }
.hero-edge span { color: var(--acid); }
.intro-band { background: var(--ink-soft); border-block: 1px solid rgba(183, 192, 181, .08); }
.intro-inner { min-height: 235px; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 54px; }
.intro-inner .eyebrow { align-self: start; margin-top: 46px; }
.intro-copy { max-width: 740px; margin: 0; color: var(--paper); font: 500 clamp(20px, 2.5vw, 29px)/1.5 var(--display); letter-spacing: -.025em; }
.section { padding-block: 102px; }
.section-heading { margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2, .contact-section h2 { margin: 0; font: 600 clamp(39px, 5vw, 59px)/1.05 var(--display); letter-spacing: -.06em; }
.timeline { border-top: 1px solid var(--line); }
.timeline-entry { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 29px 0 32px; border-bottom: 1px solid var(--line); }
.timeline-index { padding-top: 5px; color: var(--acid); font: 10px var(--mono); }
.timeline-details h3, .education-details h3 { margin: 0; font: 500 21px/1.4 var(--display); letter-spacing: -.025em; }
.entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.entry-period, .education-period { color: var(--acid); font-size: 10px; white-space: nowrap; }
.entry-company { margin: 4px 0 0; color: var(--paper-dim); font-size: 13px; }
.entry-description { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.entry-highlights { display: grid; gap: 6px; margin: 13px 0 0; padding-left: 18px; color: var(--paper-dim); font-size: 12px; }
.entry-highlights li::marker { color: var(--acid-dark); }
.projects-section { background: #151d1a; border-block: 1px solid rgba(183, 192, 181, .08); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.project-card { min-height: 280px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(38, 53, 44, .54), rgba(23, 32, 29, .2)); }
.project-card-offset { margin-top: 43px; }
.project-number { color: var(--acid); font-size: 9px; }
.project-period { margin-top: 25px; color: var(--muted); font: 10px var(--mono); }
.project-card h3 { margin: 20px 0 0; font: 500 25px var(--display); letter-spacing: -.04em; }
.project-description { max-width: 450px; margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.project-footer { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: auto; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tag, .certification-chip { padding: 5px 9px; border: 1px solid var(--line); color: var(--paper-dim); font: 9px var(--mono); }
.project-link { color: var(--acid); font-size: 10px; white-space: nowrap; }
.project-link:hover { color: var(--paper); }
.skills-section { padding-bottom: 110px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip { display: inline-flex; align-items: center; gap: 13px; padding: 12px 16px; border: 1px solid var(--line); color: var(--paper); font-size: 12px; }
.skill-index { color: var(--acid-dark); font-size: 9px; }
.education-section { background: var(--ink-soft); border-block: 1px solid rgba(183, 192, 181, .08); }
.education-inner { padding-block: 92px; }
.education-inner .section-heading { margin-bottom: 35px; }
.education-entry { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 21px 0; border-top: 1px solid var(--line); }
.education-details h3 { font-size: 18px; }
.education-details > p:not(.entry-description) { margin: 4px 0 0; color: var(--paper-dim); font-size: 13px; }
.education-details .entry-description { margin-top: 7px; }
.certifications-wrap { margin-top: 45px; }
.certifications-wrap .eyebrow { margin-bottom: 14px; }
.certification-list { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-section { padding-block: 110px 118px; text-align: center; }
.contact-section .eyebrow { margin-bottom: 23px; }
.contact-section h2 { font-size: clamp(48px, 7vw, 79px); }
.contact-email { display: inline-block; margin-top: 30px; color: var(--acid); font: 500 clamp(16px, 2.2vw, 22px) var(--display); border-bottom: 1px solid var(--acid-dark); }
.contact-email span { margin-left: 8px; font-size: 15px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.contact-phone { color: var(--muted); }
.site-footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(183, 192, 181, .12); color: var(--muted); font-size: 8px; }
.site-footer a { font: 10px var(--sans); letter-spacing: 0; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; border: 1px solid var(--orange); background: var(--ink-soft); color: var(--paper); font-size: 13px; }

.admin-shell { width: min(850px, calc(100% - 48px)); min-height: calc(100vh - 154px); margin-inline: auto; padding-block: 76px 100px; }
.login-panel { width: min(470px, 100%); margin: 20px auto; }
.login-panel h1, .editor-heading h1 { font-size: clamp(48px, 7vw, 66px); }
.admin-description { margin: 19px 0 29px; color: var(--muted); font-size: 14px; }
.login-form, .profile-form { display: grid; gap: 19px; }
.login-form label, .profile-form label { display: grid; gap: 8px; color: var(--paper-dim); font-size: 11px; font-weight: 600; }
.login-form input, .profile-form input, .profile-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #141d19; color: var(--paper); font-size: 13px; }
.login-form input:focus, .profile-form input:focus, .profile-form textarea:focus { border-color: var(--acid-dark); }
.login-form .button { margin-top: 4px; }
.back-link { display: inline-block; margin-top: 25px; color: var(--muted); }
.form-message { margin: 0; color: var(--acid); font-size: 12px; }
.form-message.message-error { color: #ff9a83; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 43px; }
.editor-heading .admin-description { margin-bottom: 0; }
.editor-heading > .button { flex: 0 0 auto; }
.profile-form fieldset { min-width: 0; margin: 0; padding: 25px; border: 1px solid var(--line); }
.profile-form legend { padding-inline: 8px; color: var(--acid); font: 500 15px var(--display); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.profile-form .field-wide { grid-column: 1 / -1; }
.profile-form textarea { min-height: unset; resize: vertical; line-height: 1.6; }
.profile-form .json-field { color: #d5e0d1; font: 11px/1.65 var(--mono); tab-size: 2; }
.field-help { margin: -4px 0 16px; color: var(--muted); font-size: 12px; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.editor-actions .form-message { max-width: 500px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 40px, 560px); }
  .site-header { height: 70px; padding-inline: 20px; }
  .brand-label { font-size: 8px; }
  .hero { min-height: auto; padding-block: 67px 52px; grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(58px, 14vw, 81px); }
  .hero-index { margin-top: 47px; }
  .hero-art { min-height: 350px; }
  .circuit-art { max-height: 370px; }
  .hero-edge { bottom: 17px; }
  .intro-inner { min-height: auto; padding-block: 31px 37px; grid-template-columns: 1fr; gap: 10px; }
  .intro-inner .eyebrow { margin: 0; }
  .intro-copy { font-size: 21px; }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 31px; }
  .timeline-entry { grid-template-columns: 40px 1fr; gap: 10px; }
  .entry-heading { align-items: start; flex-direction: column; gap: 5px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-offset { margin-top: 0; }
  .project-card { min-height: 245px; }
  .education-inner { padding-block: 72px; }
  .education-entry { grid-template-columns: 1fr; gap: 8px; }
  .contact-section { padding-block: 78px 88px; }
  .site-footer { min-height: 80px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; padding-block: 17px; }
  .admin-shell { width: min(100% - 40px, 560px); padding-block: 55px 72px; }
  .profile-form fieldset { padding: 19px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-form .field-wide { grid-column: auto; }
  .editor-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
