@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #11101a;
  --raised: #181623;
  --card: #1a1727;
  --line: #3b344c;
  --text: #f7f4fc;
  --muted: #c0b9cf;
  --dim: #aaa0b9;
  --accent: #c6b6ff;
  --lime: #d9fb93;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 4vw, 3.2rem);
  --shell: 74rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5.6rem; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 1rem / 1.58 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { object-fit: contain; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { color: var(--base); background: var(--accent); }

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 8;
  top: .65rem;
  left: var(--gutter);
  transform: translateY(-160%);
  padding: .65rem .9rem;
  border-radius: .5rem;
  background: var(--lime);
  color: var(--base);
}
.skip-link:focus { transform: none; }

.site-header { background: #11101af5; border-bottom: 1px solid #302940; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .67rem; text-decoration: none; color: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: .075em; white-space: nowrap; }
.wordmark-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { display: flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; color: var(--muted); font-size: .91rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-contact { border: 1px solid #504564; border-radius: .55rem; padding: .4rem .8rem; color: var(--text); }
.nav-links .nav-contact:hover { border-color: var(--accent); color: var(--accent); }
.menu-button { border: 1px solid var(--line); border-radius: .55rem; min-height: 44px; padding: .4rem .75rem; background: var(--raised); color: var(--text); font-weight: 600; }
.menu-button span { margin-left: .35rem; color: var(--accent); }
.menu-button[aria-expanded="true"] span { display: inline-block; transform: rotate(45deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.6rem);
  padding-block: clamp(3.5rem, 8.2vw, 7.2rem) clamp(3.6rem, 7.3vw, 6.3rem);
}
.eyebrow { font: 600 .72rem / 1.45 var(--mono); letter-spacing: .095em; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.33rem; color: var(--muted); }
.signal { display: inline-block; flex: 0 0 .47rem; height: .47rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .25rem #d9fb9320; margin-right: .24rem; }
.dot-divider { color: var(--accent); }
.hero h1 { font-size: clamp(3rem, 6.35vw, 6.2rem); line-height: .98; font-weight: 700; letter-spacing: -.076em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 38ch; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 48px; padding: .64rem .95rem; border: 1px solid transparent; border-radius: .6rem; font-weight: 700; text-decoration: none; font-size: .94rem; }
.button-primary { background: var(--accent); color: #171124; }
.button-primary:hover { background: #ded3ff; }
.button-primary:disabled { cursor: wait; opacity: .72; }
.button-secondary { border-color: #605170; color: var(--text); background: transparent; }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: .95rem;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid #514363;
  background-color: #1c162b;
  background-image: linear-gradient(90deg, #d7c4ff0b 1px, transparent 1px), linear-gradient(#d7c4ff0b 1px, transparent 1px), radial-gradient(ellipse at 55% 42%, #33214c 0%, transparent 74%);
  background-size: 1.45rem 1.45rem, 1.45rem 1.45rem, auto;
  box-shadow: 0 20px 55px #05030f4d;
}
.hero-visual img { width: 100%; height: auto; }
.hero-visual-top, .hero-visual-bottom { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font: 600 .65rem / 1.3 var(--mono); letter-spacing: .12em; color: #cfbfdf; }
.hero-visual-top { border-bottom: 1px solid #d4bffc27; padding-bottom: .65rem; }
.hero-visual-bottom { border-top: 1px solid #d4bffc27; padding-top: .65rem; }
.hero-visual-bottom b { color: var(--lime); font-weight: 500; }
.visual-dot { display: inline-block; width: .37rem; height: .37rem; border-radius: 50%; background: var(--lime); margin-left: .28rem; }

.section { padding-block: clamp(3.3rem, 7.4vw, 6.5rem); border-top: 1px solid #312a41; }
.section-shaded { background: var(--raised); border-bottom: 1px solid #312a41; }
.section-shaded + .section { border-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.45rem, 4vw, 2.45rem); }
.section-heading > p { color: var(--muted); max-width: 36ch; }
.section-index { color: var(--muted); margin-bottom: .7rem; }
.section-index span { color: var(--accent); }
h2 { font-size: clamp(2.2rem, 4.7vw, 4.1rem); font-weight: 700; line-height: 1.03; letter-spacing: -.065em; }
.accent { color: var(--accent); }
h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.17; }

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: .95rem; background: var(--card); border: 1px solid var(--line); }
.project-art { height: clamp(9.8rem, 15.4vw, 13rem); position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; border-bottom: 1px solid #ffffff28; }
.art-index { position: absolute; z-index: 3; top: .75rem; left: .8rem; color: #fff; text-shadow: 0 1px 8px #100715; font: 600 .58rem / 1.2 var(--mono); letter-spacing: .11em; }
.art-flipit { background: radial-gradient(ellipse at 60% 100%, #b06768, #4d2d43 76%); }
.art-rings { width: 126%; position: absolute; aspect-ratio: 1 / .57; border: 1px solid #eeb8ad50; border-radius: 50%; transform: rotate(-19deg); box-shadow: 0 0 0 1.15rem #eeb8ad21, 0 0 0 2.3rem #eeb8ad12; }
.app-icon { width: clamp(4.65rem, 8vw, 6.4rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 21%; border: 1px solid #ffffff52; position: relative; z-index: 2; box-shadow: 0 16px 30px #130d2190; }
.flip-icon { transform: rotate(6deg) translateX(.42rem); }
.flip-card { position: absolute; height: clamp(4rem, 7.5vw, 6rem); aspect-ratio: 1; border-radius: 20%; border: 1px solid #ffddca8a; }
.flip-card-back { transform: translateX(-1.34rem) rotate(-25deg); background: #624361; }
.flip-card-mid { transform: translateX(-.85rem) rotate(-12deg); background: #a76672; }
.art-verse { background: radial-gradient(ellipse at 48% 90%, #6355a4, #302849 75%); }
.verse-sun { position: absolute; width: 8.25rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid #d6c3ff6b; box-shadow: 0 0 0 1.1rem #ddd0f820, 0 0 0 2.2rem #ddd0f818, 0 0 0 3.4rem #ddd0f812, 0 0 0 4.8rem #ddd0f80a; }
.verse-orbit { position: absolute; border: 1px solid #cbb8fb8f; width: 75%; aspect-ratio: 1 / .24; border-radius: 50%; transform: rotate(-14deg); }
.verse-icon { transform: rotate(-7deg); }
.art-venture { background-color: #183939; background-image: linear-gradient(90deg, #d8fff10d 1px, transparent 1px), linear-gradient(#d8fff10d 1px, transparent 1px), radial-gradient(ellipse at 57% 100%, #205451, #183032 75%); background-size: 1.32rem 1.32rem, 1.32rem 1.32rem, auto; }
.venture-graphic { width: 69%; height: auto; max-width: 14.2rem; margin-top: .6rem; filter: drop-shadow(0 0 .7rem #a5f3e527); }
.project-content { padding: clamp(.95rem, 2vw, 1.48rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.project-category { color: var(--accent); margin-bottom: .6rem; font-size: .66rem; }
.project-content h3 { font-size: clamp(1.3rem, 1.9vw, 1.66rem); }
.project-content p:not(.eyebrow) { color: var(--muted); margin: .75rem 0 1.05rem; }
.project-link, .project-note { display: inline-flex; align-items: center; gap: .38rem; min-height: 44px; margin-top: auto; font-size: .94rem; }
.project-link { color: var(--accent); font-weight: 700; text-decoration-color: #b29de49c; text-underline-offset: .26em; }
.project-link:hover { color: #ede5ff; }
.project-note { color: var(--dim); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.info-panel { padding: clamp(1rem, 2.4vw, 1.55rem); border: 1px solid var(--line); border-radius: .9rem; background: #1f1b2e; }
.info-panel h3, .credentials h3 { font-size: 1.24rem; }
.chips { display: flex; flex-wrap: wrap; gap: .43rem; list-style: none; padding: 0; margin: .84rem 0 0; }
.chips li { padding: .22rem .6rem; border: 1px solid #504264; border-radius: 999px; color: var(--muted); font-size: .87rem; }
.text-list { margin: .76rem 0 0; padding: 0 0 0 1.13rem; color: var(--muted); }
.text-list li + li { margin-top: .3rem; }
.text-list li::marker { color: var(--accent); }
.credentials { margin-top: 2rem; }
.credentials-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: .85rem 0 0; padding: 0; }
.credential { display: flex; align-items: center; gap: .65rem; min-height: 5.2rem; padding: .65rem; border: 1px solid var(--line); border-radius: .74rem; }
.credential img, .credential-icon { flex: 0 0 2.65rem; width: 2.65rem; height: 2.65rem; }
.credential-icon { display: grid; place-items: center; border: 1px solid #685989; border-radius: .6rem; color: var(--accent); background: #28203d; font-size: .9rem; font-weight: 700; }
.credential strong, .credential small { display: block; }
.credential strong { font-size: .88rem; line-height: 1.25; }
.credential small { margin-top: .13rem; font-size: .76rem; color: var(--dim); }

.experience-list { border-bottom: 1px solid var(--line); }
.experience-row { display: grid; grid-template-columns: minmax(8.6rem, .8fr) minmax(11.6rem, 1.18fr) minmax(0, 1.75fr); gap: 1.5rem; padding: 1.45rem 0; border-top: 1px solid var(--line); }
.experience-dates { font: 600 .72rem / 1.6 var(--mono); color: var(--accent); letter-spacing: .055em; }
.experience-row h3 { font-size: 1.31rem; }
.experience-title { margin-top: .2rem; color: var(--muted); }
.experience-row > p:last-child { color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.services-grid article { background: #1e1a2c; border: 1px solid var(--line); border-radius: .78rem; padding: clamp(.95rem, 2vw, 1.4rem); }
.service-number { display: inline-grid; width: 2rem; height: 2rem; place-items: center; margin-bottom: .85rem; border-radius: .5rem; border: 1px solid #5d4a7d; background: #30234a; color: var(--accent); font: 600 .7rem / 1 var(--mono); }
.services-grid h3 { font-size: 1.25rem; }
.services-grid p { color: var(--muted); margin-top: .45rem; }

.contact-panel { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(1.45rem, 5vw, 5rem); padding: clamp(1.15rem, 4vw, 3rem); border: 1px solid #534371; border-radius: 1.18rem; background: radial-gradient(ellipse at 0 0, #32234a 0%, #1b172b 67%); }
.contact-intro > p:not(.section-index) { margin: .8rem 0 .85rem; max-width: 34ch; color: var(--muted); }
.email-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--accent); font-weight: 700; text-underline-offset: .24em; overflow-wrap: anywhere; }
.email-link:hover, .social-links a:hover { color: var(--text); }
.social-links { display: flex; gap: 1rem; padding: 0; margin: .4rem 0 0; list-style: none; }
.social-links a { display: inline-flex; gap: .3rem; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-underline-offset: .22em; }
.contact-form { min-width: 0; display: grid; gap: .9rem; align-content: start; justify-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; }
.field { width: 100%; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .28rem; }
.field input, .field textarea { display: block; width: 100%; min-height: 44px; padding: .57rem .65rem; border: 1px solid #665978; border-radius: .5rem; background: #151122; color: var(--text); }
.field textarea { resize: vertical; }
.status { font-size: .88rem; color: var(--muted); }
.status:empty { margin-top: -.9rem; }
.status[data-tone="success"] { color: var(--lime); }
.status[data-tone="error"] { color: #ffc2ca; }
.status a { text-underline-offset: .15em; }

.site-footer { border-top: 1px solid #312a41; font-size: .86rem; color: var(--dim); }
.footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-block: .9rem; }
.footer-brand { font-size: .82rem; }
.text-button { display: inline-flex; align-items: center; gap: .38rem; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--accent); font: 700 .88rem var(--sans); text-decoration: underline; text-underline-offset: .25em; }
.text-button:hover { color: var(--text); }
.share-area .status { position: absolute; padding-top: .25rem; }
.share-area .status:empty { display: none; }

@media (min-width: 761px) {
  #nav-links[hidden] { display: flex !important; }
}
@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-row { gap: 1rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 4.8rem; }
  .header-inner { min-height: 4rem; flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: .12rem .8rem; }
  .nav-links a { font-size: .85rem; }
  .nav-links[data-enhanced] { position: absolute; top: calc(100% + .45rem); right: 0; width: min(16rem, 100%); padding: .45rem; display: block; border: 1px solid #5c4e70; background: #201a31; border-radius: .7rem; box-shadow: 0 .75rem 1.5rem #09061190; }
  .nav-links[data-enhanced] a { padding: .55rem .65rem; }
  .nav-links[data-enhanced] .nav-contact { margin: .2rem 0 0; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 5.4rem); letter-spacing: -.073em; }
  .hero-visual { width: 100%; max-width: 33rem; padding: .72rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .section-heading > p { max-width: 55ch; }
  .projects-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .45rem .8rem; }
  .experience-dates { grid-column: 1 / -1; }
  .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .projects-grid, .about-grid, .services-grid, .experience-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.52rem, 10.6vw, 3.85rem); }
  .hero-description { margin-top: 1rem; }
  .hero-label { margin-bottom: 1.05rem; font-size: .66rem; gap: .38rem; }
  .button-row { margin-top: 1.15rem; }
  .project-content h3 { font-size: 1.48rem; }
  .credentials-grid { gap: .45rem; }
  .credential { align-items: flex-start; flex-direction: column; gap: .37rem; }
  .credential img, .credential-icon { width: 2.2rem; height: 2.2rem; flex-basis: 2.2rem; }
  .form-row { grid-template-columns: 1fr; gap: .9rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 330px) {
  .hero-label { letter-spacing: .035em; }
  .hero h1 { font-size: 2.25rem; }
}

.education-row { padding-top: 1.45rem; }
.education-row .section-index { margin-bottom: .36rem; }
.education-school { color: var(--muted); }
.action-arrow { flex: 0 0 auto; }

/* Technical support portfolio */
.experience-points { color: var(--muted); display: grid; gap: .6rem; margin: 0; padding-inline-start: 1.1rem; }
.experience-points li::marker { color: var(--accent, #72dfcb); }
.lab-project { margin-block-end: 1.5rem; }
.lab-project h3 { margin-block: .4rem .55rem; }
.lab-project > p:last-child { margin-block-end: 0; max-width: 72ch; }

/* Certification showcase */
.portfolio-credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.portfolio-credentials .credential { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 1.1rem; gap: .85rem; background: #191625; }
.credential-top { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.portfolio-credentials h3 { font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.25; overflow-wrap: anywhere; }
.credential-issuer { margin-top: .45rem; color: var(--muted); font-size: .88rem; }
.credential-date { margin-top: .22rem; color: var(--muted); font-size: .79rem; }
.credential-status { padding: .19rem .48rem; border: 1px solid currentColor; border-radius: 1rem; font-size: .72rem; font-weight: 700; }
.status-active { color: #a0e8cd; }
.status-training { color: #cec1f4; }
.status-expired { color: #ffc38d; }
@media (max-width: 820px) { .portfolio-credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .portfolio-credentials { grid-template-columns: 1fr; } }
