/* Antalos palette, adapted for antblu. */
:root{--ink:#0a1420;--paper:#e4ebf2;--dark:#070d16;--muted:#435a71;--brand:#3488ff;--brand-bright:#62a5ff;--cyan:#57d8ff;--brand-link:#0866d8}
body{background:var(--paper)}
.header{padding-left:10%;padding-right:10%}.wordmark{display:block;line-height:0}.wordmark img{width:190px;height:auto}.header nav{gap:30px}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:var(--brand-link)}
.hero{background:#dcecff}.hero-dark{background:linear-gradient(140deg,#112a4a,#070d16 75%)}.hero-copy{left:10%;max-width:40%}.role{color:#435a71}.greeting{color:#0c335f}
nav .contact-link{background:#62a5ff;color:#070d16}
/* Magic UI Pulsating Button: 1.5s pulse expanding 8px in the brand color. */
nav .contact-link{--pulse-color:#62a5ff;--pulse-duration:1.5s;--pulse-distance:8px;position:relative;isolation:isolate}
nav .contact-link::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;animation:antblu-contact-pulse var(--pulse-duration) ease-out infinite}
@keyframes antblu-contact-pulse{0%{box-shadow:0 0 0 0 var(--pulse-color)}100%{box-shadow:0 0 0 var(--pulse-distance) transparent}}
@media(prefers-reduced-motion:reduce){nav .contact-link::before{animation:none}}
@media(forced-colors:active){nav .contact-link{border:1px solid ButtonText}nav .contact-link::before{display:none}}
nav .contact-link:hover{background:#a9d7ff;opacity:1}nav:where(:not(.svc-nav, .svc-footer nav))>a:hover{color:#57d8ff;opacity:1}
.socials a{background:#b7d8ff;box-shadow:0 4px 12px #112a4a22}.socials a:hover{background:#91c6ff}
.portrait{left:53%;width:37%;height:76%;overflow:hidden;border-radius:22px 22px 0 0;box-shadow:0 0 70px #3488ff22}.portrait img{width:100%;height:100%;object-fit:cover;object-position:35% 32%;transform:scale(1.18);transform-origin:35% 28%}
.intro{background:#080f19;border-top:1px solid #22374d}.intro h2{color:#62a5ff}.intro p{color:#dbe6f2}.intro-mark{color:#112a4a;border-color:#112a4a}
.paper{background:radial-gradient(ellipse at center,#f5f9ff,#e4ebf2)}.boxed-title{border-color:#0c335f;color:#0c335f}.bracket-link{border-color:#0866d8;color:#0c335f}.bracket-link:hover{background:#0866d8;color:white}.bracket-link.light{color:#d4e8ff;border-color:#62a5ff}.bracket-link.light:hover{background:#62a5ff;color:#070d16}
.skill-note,.form-note{color:#435a71}.tech-glyph{color:#0866d8}.focus-list span{border-color:#a9bbce}.skill-content h3,.services h3{color:#0c335f}
.portfolio{background:#070d16}.portfolio-heading{background-image:linear-gradient(#d4e8ff99,#d4e8ff99),url('assets/3c74e.png')}.project:after{background:#070d16aa}.project:hover:after{background:#070d16cc}.project h3{color:#fff}.project-actions .bracket-link{min-height:44px}.portfolio-footer a{color:#62a5ff}
.email-address{color:#0866d8;border-color:#0866d8}input,textarea{border-color:#0c335f;color:#0a1420}input::placeholder,textarea::placeholder{color:#435a71}.copy-message{margin-left:18px}#form-status{color:#0c335f}
footer:where(:not(.svc-footer)){background:#070d16;border-top:1px solid #22374d}.footer-brand{display:block;width:170px;margin:0 auto 32px}.footer-brand img{width:100%;height:auto}.footer-links a{color:#62a5ff}.footer-links a,.back-top{min-height:44px}.design-credit{color:#a9bbce}
dialog{background:#f5f9ff;border-top:5px solid #3488ff}dialog::backdrop{background:#070d16cc}.dialog-close:hover{color:#0866d8}body:has(dialog[open]){overflow:hidden}
@media(max-width:1100px){.header{padding-left:6%;padding-right:6%}.wordmark img{width:160px}.header nav{gap:20px}.hero-copy{left:6%;max-width:44%}.portrait{left:54%;width:42%;height:76%}}
@media(max-width:700px){.header{background:#070d16;padding:0 22px}.wordmark img{width:140px}.header nav{gap:0;background:#070d16fa}.hero{background:#070d16}.portrait{left:0;bottom:145px;width:100%;height:575px;border-radius:0;box-shadow:none}.portrait img{object-position:35% 22%;transform:scale(1.15);transform-origin:35% 20%}.hero-copy{left:0;max-width:none;background:linear-gradient(174deg,transparent 0%,#070d16f5 13%)}.greeting{color:#d4e8ff}.role{color:#b7d8ff}.socials a{background:#b7d8ff}.copy-message{margin:20px 0 0}form>.bracket-link{display:table;margin-left:auto;margin-right:auto}}

/* Transparent portrait sits directly on the hero background. */
.portrait{left:48%;width:44%;height:86%;border-radius:0;box-shadow:none}
.portrait>picture{display:block;height:100%}
.portrait img{object-fit:contain;object-position:center bottom;transform:none}
@media(max-width:1100px) and (min-width:701px){.portrait{left:49%;width:49%;height:84%}}
/* Keep the portrait near the top and let the mobile hero grow with its copy. */
@media(max-width:700px){
  .hero{--hero-portrait-space:clamp(132px,41vw,280px);height:auto;min-height:0;padding-top:var(--hero-portrait-space)}
  .portrait{top:12px;bottom:auto;left:50%;width:min(100%,480px);height:calc(var(--hero-portrait-space) + 80px);transform:translateX(-50%);-webkit-mask-image:linear-gradient(#000 58%,transparent 96%);mask-image:linear-gradient(#000 58%,transparent 96%)}
  .portrait img{object-fit:contain;object-position:center top;transform:none}
  .hero-copy{position:relative;inset:auto;max-width:none;padding:16px clamp(16px,5vw,24px) 24px;background:linear-gradient(to bottom,#070d1600,#070d16eb 56px,#070d16 112px)}
  .greeting{font-size:16px;margin-bottom:4px}
  .hero h1{font-size:clamp(36px,10vw,54px);line-height:1.08;overflow-wrap:anywhere}
  .hero h1>span{max-inline-size:100%;white-space:normal}
  .hero h1 br{display:block}
  .hero .role{font-size:15px;line-height:1.6;margin-top:8px;color:#b7d8ff}
  .hero .role[data-text-3d-flip]>.sr-only{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
  .hero .role>.text-flip-visual{display:none}
  .socials{gap:12px}
  .socials a{width:46px;height:46px;border-radius:12px}
}

/* Trim the lower foreground hand in the hero portrait. */
.portrait img{clip-path:inset(0 0 18% 0)}

/* Fade the portrait into the next section without reserving the cropped area. */
@media(min-width:701px){
  .portrait{transform:translateY(18%)}
  .hero::after{content:'';position:absolute;inset:auto 0 0;height:80px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,#080f1900,#080f1966 45%,#080f19d9)}
  .intro{padding-top:26px;padding-bottom:30px}
}

/* Theme controls remain available beside the mobile navigation button. */
:root{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;flex-shrink:0;border:1px solid #62a5ff;border-radius:24px;background:#070d16;color:#d4e8ff;font:600 12px var(--heading);margin-left:auto;margin-right:24px;white-space:nowrap}
.theme-toggle:hover{background:#112a4a;border-color:#57d8ff}
:root[data-theme="dark"]{color-scheme:dark;--ink:#dbe6f2;--paper:#101c2b;--muted:#a9bbce;--brand-link:#62a5ff}
[data-theme="dark"] .hero{background:#101f33}
[data-theme="dark"] .hero-dark{background:linear-gradient(140deg,#162f50,#070d16 75%)}
[data-theme="dark"] .paper{background:radial-gradient(ellipse at center,#17283d,#101c2b)}
[data-theme="dark"] .greeting,[data-theme="dark"] .boxed-title,[data-theme="dark"] .skill-content h3,[data-theme="dark"] .services h3{color:#d4e8ff}
[data-theme="dark"] .boxed-title{border-color:#62a5ff}
[data-theme="dark"] .role,[data-theme="dark"] .skill-note,[data-theme="dark"] .form-note{color:#a9bbce}
[data-theme="dark"] .bracket-link{color:#d4e8ff;border-color:#62a5ff}
[data-theme="dark"] .bracket-link:hover{background:#62a5ff;color:#070d16}
[data-theme="dark"] .tech-glyph,[data-theme="dark"] .email-address{color:#62a5ff;border-color:#62a5ff}
[data-theme="dark"] .focus-list span{border-color:#435a71}
[data-theme="dark"] input,[data-theme="dark"] textarea{color:#dbe6f2;border-color:#62a5ff}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#a9bbce}
[data-theme="dark"] #form-status{color:#d4e8ff}
[data-theme="dark"] dialog{background:#17283d;color:#dbe6f2}
[data-theme="dark"] .dialog-close:hover{color:#62a5ff}
[data-theme="dark"] .separator,[data-theme="dark"] .services img{filter:invert(1)}
[data-theme="dark"] .portfolio-heading{background-image:linear-gradient(#070d16bb,#070d16bb),url('assets/3c74e.png')}
[data-theme="dark"] .skip-link{background:#17283d;color:#dbe6f2}
@media(min-width:701px) and (max-width:1100px){.header{padding-left:4%;padding-right:4%}.header nav{gap:16px}.theme-toggle{margin-right:16px;padding:9px 10px}}
@media(max-width:700px){.theme-toggle{margin-right:16px;padding:8px 12px}[data-theme="dark"] .hero{background:#070d16}}
@media(max-width:380px){.theme-toggle{width:44px;padding:8px;margin-right:10px}}

.hero .hero-dark{z-index:-2}

/* Magic UI-inspired progressive blur: increasingly blurred layers at the hero edge. */
.hero>.progressive-blur{position:absolute;inset:auto 0 0;height:40%;z-index:2;pointer-events:none}
.progressive-blur>span{position:absolute;inset:0;-webkit-backdrop-filter:blur(var(--blur));backdrop-filter:blur(var(--blur));-webkit-mask-image:linear-gradient(to bottom,transparent var(--start),#000 100%);mask-image:linear-gradient(to bottom,transparent var(--start),#000 100%)}
/* Keep hero links and copy sharp and interactive above the decorative effect. */
.hero .hero-copy{z-index:3}
@media(max-width:700px){.hero>.progressive-blur{bottom:0;height:120px}}
@media(forced-colors:active){.hero>.progressive-blur{display:none}}

/* Dia Text Reveal adaptation: lavender, pink, and peach sweep into the theme color. */
/* CSS adaptation of Magic UI Light Rays: https://magicui.design/docs/components/light-rays */
.hero{isolation:isolate}
.light-rays{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;--ray-color:rgba(160,210,255,.2);--ray-blur:36px;--ray-opacity:.65}
.light-rays>span{position:absolute;top:-20%;left:var(--ray-left);width:var(--ray-width,18%);height:140%;transform-origin:50% 0;background:linear-gradient(180deg,var(--ray-color),transparent 85%);filter:blur(var(--ray-blur));opacity:.35;transform:rotate(var(--ray-angle));animation:antblu-light-ray var(--ray-duration,14s) ease-in-out var(--ray-delay,0s) infinite alternate}
.light-rays>span:nth-child(1){--ray-left:6%;--ray-angle:-28deg;--ray-duration:16s;--ray-delay:-9s}
.light-rays>span:nth-child(2){--ray-left:22%;--ray-angle:-18deg;--ray-duration:13s;--ray-delay:-4s;--ray-width:12%}
.light-rays>span:nth-child(3){--ray-left:38%;--ray-angle:-8deg;--ray-duration:15s;--ray-delay:-12s}
.light-rays>span:nth-child(4){--ray-left:52%;--ray-angle:6deg;--ray-duration:14s;--ray-delay:-7s;--ray-width:14%}
.light-rays>span:nth-child(5){--ray-left:66%;--ray-angle:17deg;--ray-duration:17s;--ray-delay:-3s}
.light-rays>span:nth-child(6){--ray-left:80%;--ray-angle:26deg;--ray-duration:12s;--ray-delay:-10s;--ray-width:12%}
.light-rays>span:nth-child(7){--ray-left:94%;--ray-angle:35deg;--ray-duration:15s;--ray-delay:-6s}
@keyframes antblu-light-ray{from{opacity:.15;transform:rotate(var(--ray-angle)) scaleX(.85)}to{opacity:var(--ray-opacity);transform:rotate(calc(var(--ray-angle) + 12deg)) scaleX(1.15)}}
@media(max-width:700px){.light-rays{--ray-blur:24px}}
.intro{isolation:isolate}
.intro>.light-rays{--ray-color:rgba(108,176,255,.48);--ray-blur:clamp(12px,2vw,24px)}
@media(prefers-reduced-motion:reduce){.light-rays>span{animation:none;opacity:.35}}
@media(forced-colors:active){.light-rays{display:none}}

/* Word entrances inspired by Cult UI Text Animate; no runtime dependencies. */
.text-enter-word{display:inline-block;max-width:100%;vertical-align:baseline}
.text-entering .text-enter-word{animation:antblu-text-enter 780ms cubic-bezier(.22,1,.36,1) both;animation-delay:var(--enter-delay,0ms);transform-origin:50% 80%}
.text-enter-word[data-entrance="roll"]{--enter-transform:translateY(.65em) rotate(-16deg);--enter-blur:3px}
.text-enter-word[data-entrance="whip"]{--enter-transform:translateX(-.5em) skewX(-18deg);--enter-blur:6px}
.text-enter-word[data-entrance="fade"]{--enter-transform:translateY(0);--enter-blur:0px}
.text-enter-word[data-entrance="pop"]{--enter-transform:scale(.65);--enter-blur:2px}
.text-enter-word[data-entrance="fade-up"]{--enter-transform:translateY(.55em);--enter-blur:0px}
.text-enter-word[data-entrance="shift-up"]{--enter-transform:translate(-.2em,.7em);--enter-blur:0px}
.text-enter-word[data-entrance="whip-up"]{--enter-transform:translateY(.85em) skewY(8deg) scale(.95);--enter-blur:5px}
.text-enter-word[data-entrance="calm-up"]{--enter-transform:translateY(.25em);--enter-blur:3px}
@keyframes antblu-text-enter{from{opacity:0;transform:var(--enter-transform);filter:blur(var(--enter-blur))}to{opacity:1;transform:none;filter:blur(0)}}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.text-entering .text-enter-word{animation:none}}

/* Procedural clouds inspired by https://ui.aceternity.com/components/cloud-shader.
   Radial clouds provide a static fallback when WebGL is unavailable. */
.cloud-surface>.cloud-background{position:absolute;inset:0;z-index:-2;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 75% 55%,#fbf8f2c9,transparent 45%),radial-gradient(ellipse at 20% 85%,#fbf8f2d9,transparent 48%),linear-gradient(#3876ba,#8cbfe8)}
.cloud-shader{display:block;width:100%;height:100%;opacity:0}
.cloud-shader.is-ready{opacity:1}
[data-theme="dark"] .cloud-background{background:radial-gradient(ellipse at 75% 55%,#3d5c8277,transparent 45%),radial-gradient(ellipse at 20% 85%,#3d5c8277,transparent 48%),linear-gradient(#070f1f,#172f4d)}
/* Soften the sky beneath the copy, retaining the existing diagonal composition. */
.hero>.cloud-background::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#dcecffeb,transparent 80%)}
[data-theme="dark"] .hero>.cloud-background::after{background:linear-gradient(90deg,#101f33e8,transparent 80%)}
@media(max-width:700px){.hero>.cloud-background::after{background:linear-gradient(#070d1622,#070d1699)}}
@media(forced-colors:active){.cloud-surface>.cloud-background{display:none}}

/* SVG distortion inspired by Aceternity Squiggly Text. Five frames, 70ms each. */
.squiggly-filters{position:absolute;pointer-events:none;overflow:hidden}
.squiggly-text{display:inline-block;animation:antblu-squiggly 350ms step-end infinite}
@keyframes antblu-squiggly{
  0%,100%{filter:url('#squiggly-0')}
  20%{filter:url('#squiggly-1')}
  40%{filter:url('#squiggly-2')}
  60%{filter:url('#squiggly-3')}
  80%{filter:url('#squiggly-4')}
}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.squiggly-text{animation:none;filter:none}}

/* Individual letter colours and motion inspired by Aceternity Colourful Text.
   https://ui.aceternity.com/components/colourful-text */
.colourful-text{display:inline-block;white-space:nowrap}
.colourful-text>span{display:inline-block;color:#7755c9;animation:antblu-colourful 5s ease-in-out calc(var(--letter) * -0.55s) infinite}
@keyframes antblu-colourful{
  0%,100%{color:#7755c9;transform:translateY(0) scale(1);filter:blur(0)}
  25%{color:#c33780;transform:translateY(-1px) scale(1.04);filter:blur(.25px)}
  50%{color:#b34f18;transform:translateY(0) scale(1);filter:blur(0)}
  75%{color:#087d96;transform:translateY(-1px) scale(1.04);filter:blur(.25px)}
}
[data-theme="dark"] .colourful-text>span{animation-name:antblu-colourful-dark;color:#c5a5ff}
@keyframes antblu-colourful-dark{
  0%,100%{color:#c5a5ff;transform:translateY(0) scale(1);filter:blur(0)}
  25%{color:#ff8cbd;transform:translateY(-1px) scale(1.04);filter:blur(.25px)}
  50%{color:#ffc078;transform:translateY(0) scale(1);filter:blur(0)}
  75%{color:#57d8ff;transform:translateY(-1px) scale(1.04);filter:blur(.25px)}
}
@media(prefers-reduced-motion:reduce){
  .colourful-text>span{animation:none}
  .colourful-text>span:nth-child(3n+2){color:#c33780}
  .colourful-text>span:nth-child(3n){color:#087d96}
  [data-theme="dark"] .colourful-text>span:nth-child(3n+2){color:#ff8cbd}
  [data-theme="dark"] .colourful-text>span:nth-child(3n){color:#57d8ff}
}
@media(forced-colors:active){.colourful-text>span,[data-theme="dark"] .colourful-text>span{animation:none;color:CanvasText;filter:none}}

@media(max-width:900px){.header nav{gap:16px}}
@media(max-width:700px){.header nav{gap:0}}

@media(min-width:701px) and (max-width:900px){.header nav{gap:10px}.header{padding-left:3%;padding-right:3%}.wordmark img{width:130px}.theme-toggle{margin-right:10px}}

/* Solid theme icons use one contrasting foreground color. */
.theme-toggle{background:#fff;color:#000}
.theme-toggle:hover{background:#e4ebf2}
.theme-icon{display:block;width:22px;height:22px;flex-shrink:0}
.theme-sun{display:none}
[data-theme="dark"] .theme-toggle{background:#070d16;color:#fff}
[data-theme="dark"] .theme-toggle:hover{background:#112a4a}
[data-theme="dark"] .theme-sun{display:block}
[data-theme="dark"] .theme-moon{display:none}

/* Emiliany case study: a warm brand surface above the portfolio's blue platform. */
.em-project>img{filter:brightness(.48)}
.em-project .project-copy{background:linear-gradient(transparent,#16210be6)}
@media(min-width:701px){.projects{grid-template-columns:repeat(2,1fr)}}

/* Resume and career milestones use the shared palette in both themes. */
.about-shortcuts,.career-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.resume>.section-lead{margin:32px auto 24px}
/* Original timeline styling inspired by the resume at https://imiles.me/. */
.resume,.skills{--resume-line:#435a7138;--resume-work:var(--brand-link);--resume-education:#087443;--resume-certificate:#8a5908;--resume-project:#6250ab}
[data-theme="dark"] .resume,[data-theme="dark"] .skills{--resume-line:#a9bbce38;--resume-education:#66d9a1;--resume-certificate:#edc473;--resume-project:#beadff}
.resume-summary,.resume-timeline,.resume-toolkit{max-width:1120px;margin:48px auto 0;text-align:left}
.resume-summary{padding-bottom:32px;border-bottom:1px solid var(--resume-line)}
.resume-summary h3,.resume-toolkit h3{font:700 20px/1.5 var(--heading);margin-bottom:14px}
.resume-summary p,.resume-entry-body p,.resume-entry-body li,.resume-skills{font-size:14px;line-height:1.85;color:var(--muted)}
.resume-timeline{list-style:none;padding:0}
.resume-entry{--resume-accent:var(--resume-work);display:grid;grid-template-columns:192px minmax(0,1fr)}
.resume-entry--education{--resume-accent:var(--resume-education)}
.resume-entry--certificate{--resume-accent:var(--resume-certificate)}
.resume-entry--project{--resume-accent:var(--resume-project)}
.resume-when{padding:0 24px 48px 0}
.resume-when-inner{position:sticky;top:32px}
.resume-period{font-size:13px;line-height:1.5;color:var(--muted)}
.resume-entry-body{position:relative;min-width:0;border-left:1px solid var(--resume-line);padding:0 0 48px 32px;overflow-wrap:anywhere}
.resume-entry-body::before{content:'';position:absolute;top:7px;left:0;transform:translateX(-50%);width:12px;height:12px;border-radius:50%;background:var(--resume-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--resume-accent) 16%,var(--paper))}
.resume-entry-body h3{font:700 24px/1.35 var(--heading);margin-bottom:8px}
.resume-entry-body .career-meta{margin:0 0 12px}
.resume-entry-body>ul{padding-left:20px;margin:20px 0 0}
.resume-entry-body>ul li+li{margin-top:10px}
.resume-entry:last-child .resume-entry-body{padding-bottom:12px;border-image:linear-gradient(var(--resume-line),transparent) 1}
.resume-entry:last-child .resume-when{padding-bottom:0}
.resume-toolkit{padding-top:32px;border-top:1px solid var(--resume-line)}
.resume-skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px;margin:24px 0 0}
.resume-skills>div{min-width:0;overflow-wrap:anywhere}
.resume-skills dt{font-weight:700;color:var(--ink)}
.resume-skills dd{margin:6px 0 0}
@media(max-width:767px){.resume-entry{grid-template-columns:minmax(0,1fr);gap:12px}.resume-when{padding:0}.resume-when-inner{position:static}.resume-entry-body{padding-left:20px;padding-bottom:36px}.resume-entry-body::before{width:8px;height:8px;top:9px;box-shadow:none}.resume-entry-body h3{font-size:21px}.resume-skills{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.resume-summary,.resume-timeline,.resume-toolkit{margin-top:36px}.resume-skills{grid-template-columns:minmax(0,1fr);gap:20px}}
@media(forced-colors:active){.resume,.skills{--resume-line:CanvasText;--resume-work:CanvasText;--resume-education:CanvasText;--resume-certificate:CanvasText;--resume-project:CanvasText}.resume-entry-body::before{background:CanvasText;box-shadow:none}.resume-entry:last-child .resume-entry-body{border-image:none}}
.career-panel{border:1px solid var(--muted);border-radius:16px;padding:28px;background:var(--paper);overflow-wrap:anywhere}
.career-panel h3{font:700 20px/1.5 var(--heading);margin-bottom:14px}
.career-panel p,.career-panel li,.resume-skills{font-size:14px;line-height:1.85}
.career-meta{display:block;color:var(--muted);font-size:13px;margin-top:8px}
.career-panel ul{padding-left:20px;margin:14px 0 0}.career-panel li+li{margin-top:10px}
.career-text-link{display:inline-flex;align-items:center;min-height:44px;color:var(--brand-link);font-weight:700;text-decoration:underline;text-underline-offset:4px;margin-top:12px}
.career-commitments{max-width:1050px;margin:0 auto;text-align:left}.career-commitments summary{cursor:pointer;font-weight:700;min-height:44px;padding:8px 0}.career-commitments summary:focus-visible{outline:3px solid var(--brand-link);outline-offset:5px}
@media(min-width:1001px){.header nav{gap:20px}.header{padding-left:5%;padding-right:5%}.wordmark img{width:160px}}
/* Give all seven destinations room before switching to the mobile menu. */
@media(min-width:701px) and (max-width:1000px){.header{height:70px;padding:0 25px;background:#070d16}.wordmark img{width:140px}.theme-toggle{margin-right:16px}.menu-toggle{display:flex;flex-direction:column;gap:6px;background:none;border:0;padding:12px 0 12px 12px}.menu-toggle span{display:block;width:27px;height:2px;background:white}.menu-toggle[aria-expanded=true] span:nth-child(1){transform:translateY(8px) rotate(45deg)}.menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}.menu-toggle[aria-expanded=true] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}.header nav{position:absolute;top:70px;left:0;right:0;background:#070d16fa;display:none;flex-direction:column;gap:0;padding:12px 25px 20px}.header nav.open{display:flex}.header nav a{padding:12px;text-align:center;width:100%}.header nav .contact-link{margin-top:8px;width:auto}}
@media(max-width:700px){.career-panel{padding:22px}.resume .boxed-title{font-size:18px;letter-spacing:3px;text-indent:3px;padding:20px}.career-actions .bracket-link{min-height:44px;padding:10px 14px}.about-shortcuts{gap:14px}}
@media(max-height:650px) and (max-width:1000px){.header nav{max-height:calc(100dvh - 70px);overflow-y:auto}}

/* Clouds replace the former dotted backgrounds on every decorated surface. */
.cloud-surface{position:relative;isolation:isolate}
.cloud-surface:not(.hero)>.cloud-background{z-index:-1;opacity:.16}
.intro>.cloud-background,.portfolio>.cloud-background{opacity:.3}

/* Concentric background rings inspired by Magic UI's Ripple component. */
.contact{position:relative;isolation:isolate;overflow:hidden}
.contact>.section-ripple{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;mask-image:linear-gradient(#000,transparent 85%)}
.contact>:not(.section-ripple):not(.cloud-background){position:relative;z-index:1}
.section-ripple>span{--ring:0;position:absolute;left:50%;top:220px;width:calc(210px + var(--ring)*70px);aspect-ratio:1;border:1px solid currentColor;border-radius:50%;color:#2463a5;background:#2463a503;opacity:calc(.24 - var(--ring)*.025);transform:translate(-50%,-50%);animation:antblu-ripple 4s ease-in-out infinite;animation-delay:calc(var(--ring)*.16s)}
.section-ripple>span:nth-child(2){--ring:1}.section-ripple>span:nth-child(3){--ring:2}.section-ripple>span:nth-child(4){--ring:3}.section-ripple>span:nth-child(5){--ring:4}.section-ripple>span:nth-child(6){--ring:5}.section-ripple>span:nth-child(7){--ring:6}.section-ripple>span:nth-child(8){--ring:7}
[data-theme="dark"] .section-ripple>span{color:#8fc6ff;background:#8fc6ff03}
@keyframes antblu-ripple{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(.9)}}
@media(prefers-reduced-motion:reduce){.section-ripple>span{animation:none}}
@media(forced-colors:active){.contact>.section-ripple{display:none}}

/* Moving line shadow adapted from https://magicui.design/docs/components/line-shadow-text. */
.line-shadow-text{position:relative;isolation:isolate;display:inline-block;font-style:italic;-webkit-text-fill-color:currentColor}
.line-shadow{position:absolute;top:.04em;left:.04em;z-index:-1;pointer-events:none;user-select:none;white-space:nowrap;color:transparent;-webkit-text-fill-color:transparent;background-image:linear-gradient(45deg,transparent 45%,var(--line-shadow-color,#fff) 45%,var(--line-shadow-color,#fff) 55%,transparent 55%);background-size:.06em .06em;background-clip:text;-webkit-background-clip:text;animation:antblu-line-shadow 15s linear infinite}
@keyframes antblu-line-shadow{to{background-position:.6em -.6em}}
@media(prefers-reduced-motion:reduce){.line-shadow{animation:none}}
@media(forced-colors:active){.line-shadow{display:none}}

/* Landscape photos sit behind section content, with theme-aware contrast. */
.photo-surface{position:relative;isolation:isolate}
.photo-surface>.photo-background.photo-background{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.photo-background>img,.photo-background>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--photo-position,center);pointer-events:none}
#consulting-services{--photo-position:39% 57%}
#consulting-services .svc-grid > .svc-card{background:color-mix(in srgb,var(--svc-surface) 55%,transparent)}
#resume{--photo-position:44% center}
#contact{--photo-position:57% center}
#portfolio{--photo-position:64% center}
#homelab{--photo-position:50% center}
#emiliany{--photo-position:58% center}
@media(max-width:700px){#resume{--photo-position:38% center}#contact{--photo-position:64% center}}
.photo-background>canvas{opacity:0}
.photo-background.chromatic-ready>canvas{opacity:1}
.photo-background::after{content:'';position:absolute;inset:0;background:linear-gradient(#edf3f8dc,#edf3f8c9 50%,#edf3f8e8);pointer-events:none}
[data-theme="dark"] .photo-background::after{background:linear-gradient(#0a1420e6,#0a1420c9 50%,#0a1420ed)}
.portfolio>.photo-background::after{background:linear-gradient(#070d16ed,#070d16cc,#070d16ed)}
.photo-surface>.cloud-background{display:none}
.photo-surface .portfolio-heading{background:transparent}
@media(prefers-reduced-motion:reduce){.photo-background>canvas{display:none}}
@media(forced-colors:active){.photo-background{display:none}}

/* Product marks replace the text-only skills badges. */
.skill-logo{display:block;width:80px;height:80px;object-fit:contain}
.project .project-brand{display:flex;align-items:center;justify-content:center;gap:12px}
.project .project-logo{position:static;width:60px;height:40px;object-fit:contain;filter:none}
@media(max-width:700px){.skill-logo{width:65px;height:65px}}

/* Original technical artwork gives each skill its own quiet visual identity. */
.program-card[aria-label="Kubernetes"]{--skill-art:url("assets/skills/kubernetes.svg")}
.program-card[aria-label="Proxmox"]{--skill-art:url("assets/skills/proxmox.svg")}
.program-card[aria-label="Talos Linux"]{--skill-art:url("assets/skills/talos.svg")}
.program-card[aria-label="Debian"]{--skill-art:url("assets/skills/debian.svg")}
.program-card[aria-label="OpenTofu"]{--skill-art:url("assets/skills/opentofu.svg")}
.program-card[aria-label="Ansible"]{--skill-art:url("assets/skills/ansible.svg")}
.program-card[aria-label="Argo CD"]{--skill-art:url("assets/skills/argo-cd.svg")}
.program-card[aria-label="Git"]{--skill-art:url("assets/skills/git.svg")}
 .program-card .program-front{background-image:linear-gradient(0deg,#f3f7fc 0%,#f3f7fce8 28%,#f3f7fc35 100%),var(--skill-art);background-size:cover;background-position:center}
[data-theme="dark"] .program-card .program-front{background-image:linear-gradient(0deg,#182537 0%,#182537e8 28%,#18253735 100%),var(--skill-art)}
@media(forced-colors:active){.program-card .program-front{background-image:none}}

/* Electric logo: decorative silhouette lightning leaves the original mark readable. */
.wordmark,.footer-brand{position:relative;isolation:isolate}
.electric-logo{position:absolute;inset:-15px;width:calc(100% + 30px);height:calc(100% + 30px);pointer-events:none;z-index:1}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.electric-logo{display:none}}

/* React Bits Flip Card inspired interaction, adapted for the buildless site. */
.skills .skill-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;max-width:1100px;margin:32px auto 60px}
.program-card{position:relative;min-width:0;text-align:left;color:#162c46;perspective:1100px}
.program-tilt{height:100%;transition:transform .25s ease;transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-style:preserve-3d}
.program-turn{display:grid;height:100%;transform-style:preserve-3d;transition:transform .32s ease-in-out}
.program-face{position:relative;padding:26px 22px;border:1px solid #829bb950;border-radius:22px;background:#f3f7fc;box-shadow:0 14px 32px #0002;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.program-front{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:310px;text-align:center}
.program-front .skill-logo{width:80px;height:80px;object-fit:contain}
.program-face h4{font:700 18px/1.35 var(--heading);margin:0}
.program-hint{font-size:11px;color:#536782}
.program-back{margin-top:12px}
.program-back h4{margin:18px 0 14px;font-size:19px}
.program-back p{font-size:13px;line-height:1.75}
.program-toggle{position:absolute;inset:0;z-index:3;width:100%;height:100%;border:0;border-radius:22px;background:transparent;touch-action:pan-y}
.program-toggle span{position:absolute;right:16px;bottom:12px;font-size:22px;color:inherit}
.program-toggle:focus-visible{outline:3px solid #9868ef;outline-offset:5px}
.flip-ready .program-face{grid-area:1/1;min-height:340px;padding-bottom:44px}
.flip-ready .program-back{margin:0;transform:rotateY(180deg)}
.flip-ready.is-flipped .program-turn{transform:rotateY(180deg)}
.flip-ready .program-face::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--glare-x,50%) var(--glare-y,0%),#fff 0,transparent 65%);opacity:0;transition:opacity .25s}
@media(hover:hover){.flip-ready:hover .program-face::after{opacity:.22}.flip-ready:hover .program-tilt{transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(1.03)}}
[data-theme="dark"] .program-card{color:#edf4ff}
[data-theme="dark"] .program-face{background:#182537;border-color:#829bb94d;box-shadow:0 14px 32px #0007}
[data-theme="dark"] .program-hint{color:#b1c7e2}
@media(max-width:1000px){.skills .skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}}
@media(max-width:480px){.skills .skill-grid{grid-template-columns:minmax(0,1fr);max-width:340px}.flip-ready .program-face{min-height:310px}}
@media(prefers-reduced-motion:reduce){.program-tilt,.program-turn{transition:none!important;transform:none!important}.flip-ready .program-face::after{display:none}.flip-ready .program-back{transform:none;visibility:hidden}.flip-ready.is-flipped .program-back{visibility:visible}.flip-ready.is-flipped .program-front{visibility:hidden}}
@media(forced-colors:active){.program-face{border:1px solid CanvasText;background:Canvas;color:CanvasText}.program-face::after{display:none}.program-hint{color:CanvasText}}
.skills .skill-content{max-width:1100px}

/* Lightning and particle layers sit above the clouds, behind the content. */
.cloud-surface>.lightning-background,.cloud-surface>.particles-background{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.cloud-surface>.lightning-background{opacity:.65}
.cloud-surface>.particles-background{opacity:.8}
@media(forced-colors:active){.lightning-background,.particles-background{display:none}}

/* ClickSpark: eight 14px line sparks travel 30px in 500ms. */
.click-spark{position:fixed;inset:0;overflow:hidden;z-index:2147483647;pointer-events:none;user-select:none;color:#185fae}
[data-theme="dark"] .click-spark{color:#fff}
.click-spark>span{position:absolute;left:var(--spark-x);top:calc(var(--spark-y) - 1px);width:14px;height:2px;border-radius:2px;background:currentColor;transform-origin:0 50%;animation:click-spark-ray 500ms cubic-bezier(.16,1,.3,1) both;pointer-events:none}
@keyframes click-spark-ray{from{opacity:1;transform:rotate(var(--spark-angle)) translateX(0) scaleX(1)}to{opacity:0;transform:rotate(var(--spark-angle)) translateX(30px) scaleX(0)}}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.click-spark{display:none}}

/* React Bits fluid glow cursor, above the page without intercepting controls. */
.glow-cursor-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:2147483646;pointer-events:none;mix-blend-mode:screen}
[data-theme="light"] .glow-cursor-canvas{mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.glow-cursor-canvas{display:none}}

/* Circular text: an original buildless adaptation of the React Bits interaction. */
.intro .circular-text{position:relative;flex:0 0 188px;width:188px;height:188px;color:#8bbdff;user-select:none;touch-action:pan-y;cursor:grab;perspective:600px}
.circular-text-tilt{position:relative;width:100%;height:100%;transition:transform .35s}
.circular-text-ring{display:block;width:100%;height:100%;overflow:visible;fill:currentColor;font:900 24px var(--heading);letter-spacing:0;animation:circular-text-spin 20s linear infinite}
.circular-text-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font:900 58px/1 var(--heading);pointer-events:none;color:#fff}
.circular-text-center>span{font:700 10px/2 var(--heading);letter-spacing:3px;color:#8bbdff}
.circular-text.is-dragging{cursor:grabbing}
@keyframes circular-text-spin{to{transform:rotate(360deg)}}
@media(hover:hover){.circular-text:hover .circular-text-tilt{transform:rotateX(20deg)}}
@media(max-width:700px){.intro .circular-text{flex-basis:140px;width:140px;height:140px;margin:0 auto 12px}.circular-text-center{font-size:44px}}
@media(prefers-reduced-motion:reduce){.circular-text-ring{animation:none!important}.circular-text-tilt{transition:none;transform:none!important}.intro .circular-text{cursor:default}}
@media(forced-colors:active){.intro .circular-text,.circular-text-center,.circular-text-center>span{color:CanvasText}}
.intro{display:flex;align-items:center;gap:clamp(16px,3vw,44px)}
.intro-inner{min-width:0;flex:1}
@media(max-width:700px){.intro{flex-direction:column;gap:0}.intro .circular-text{flex-basis:auto}}

/* Circular project carousel: semantic cards remain a grid without JavaScript. */
.projects .project-art-logo{object-fit:contain;background:#f5f5ed;padding:24px 24px 200px;transform:none}
.projects .project:has(.project-art-logo):after{background:linear-gradient(transparent 12%,#070d16 48%)}
.projects .project:has(.project-art-logo) .project-copy{align-self:flex-end}
.projects.circular-carousel{display:block;position:relative;height:560px;overflow:hidden;perspective:2500px;touch-action:pan-y pinch-zoom;cursor:grab;isolation:isolate}
.projects.circular-carousel.is-swiping{cursor:grabbing;user-select:none}
.circular-carousel .project{position:absolute;left:50%;top:48%;translate:-50% -50%;width:min(340px,78vw);height:370px;aspect-ratio:auto;border-radius:12px;background:#070d16;box-shadow:0 18px 50px #0005;backface-visibility:hidden;will-change:transform;animation:carousel-rise 1.4s both}
.circular-carousel .project-copy{width:100%;padding:24px 16px}
.circular-carousel .project h3{font-size:23px;letter-spacing:1px}
.circular-carousel .project-actions{flex-wrap:wrap;gap:10px}
.circular-carousel .project-actions .bracket-link{padding:5px 10px}
.circular-carousel .project>img.project-art-logo{padding:24px 24px 200px}
.carousel-controls{display:flex;align-items:center;justify-content:center;gap:16px;padding:0 16px 32px;color:#d4e8ff;flex-wrap:wrap}
.carousel-controls[hidden]{display:none}
.carousel-controls button{min-height:44px;min-width:44px;padding:8px 16px;font:600 12px var(--heading)}
.carousel-controls>button{border:1px solid currentColor;border-radius:24px;background:transparent;color:inherit}
.carousel-controls button:disabled{opacity:.4;cursor:default}
.carousel-position{font-variant-numeric:tabular-nums;min-width:40px;text-align:center}
.button-group{display:flex;align-items:stretch;gap:0;--group-border:#526e8f}
.button-group>:is(button,.carousel-position){border:1px solid var(--group-border);border-radius:0;background:#101e30;color:#d4e8ff}
.button-group>:first-child{border-start-start-radius:10px;border-end-start-radius:10px}
.button-group>:last-child{border-start-end-radius:10px;border-end-end-radius:10px}
.button-group>:not(:first-child){border-inline-start:0}
.button-group>button:not(:disabled):hover{background:#203957;color:#fff}
.button-group>button:focus-visible{position:relative;z-index:1;outline:2px solid #8bbdff;outline-offset:2px}
.filters.button-group>button{flex:1 1 auto;min-inline-size:0;padding:8px 4px;font-size:clamp(10px,2.8vw,13px);overflow-wrap:anywhere}
.filters.button-group>button[aria-pressed="true"]{border-bottom:1px solid var(--group-border);background:#24496e;color:#fff;text-decoration:underline;text-underline-offset:.25em}
.carousel-controls .button-group>button{padding-inline:12px;font-size:16px}
.button-group>.carousel-position{display:grid;place-items:center;padding:0 12px}
@media(forced-colors:active){.button-group>button:focus-visible{outline-color:Highlight}}
@keyframes carousel-rise{from{margin-top:70px;opacity:0}to{margin-top:0}}
@media(prefers-reduced-motion:reduce){.circular-carousel .project{animation:none}}

.scroll-progress:not([hidden]){position:fixed;z-index:89;inset-block-end:calc(12px + env(safe-area-inset-bottom));inset-inline-end:calc(12px + env(safe-area-inset-right));display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#f4f9ff;color:#17283d;box-shadow:0 2px 12px #070d1626;font:700 11px/1 Montserrat,sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
[data-theme="dark"] .scroll-progress{background:#101c2b;color:#dbe6f2}
.scroll-progress svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:3}
.scroll-progress-track{stroke:currentColor;opacity:.2}
.scroll-progress-fill{stroke:var(--brand-link);stroke-dasharray:100;stroke-dashoffset:var(--scroll-progress-offset,100);transition:stroke-dashoffset .16s ease-out}
@media(prefers-reduced-motion:reduce){.scroll-progress-fill{transition:none}}
@media(forced-colors:active){.scroll-progress{outline:1px solid CanvasText}.scroll-progress-fill{stroke:Highlight}}

/* More readable copy and comfortable controls on narrow touch screens. */
@media(max-width:700px){
  .intro{padding:32px 24px}
  .intro .circular-text{width:112px;height:112px;margin-bottom:10px}
  .intro h2{max-width:none;font-size:18px;letter-spacing:1.5px}
  .intro p,.services p{font-size:14px}
  .section-lead{font-size:15px}
  .skill-note,.form-note{font-size:13px}
  .section .boxed-title{max-width:100%;padding:18px 20px;font-size:clamp(17px,4.6vw,21px);letter-spacing:3px;text-indent:3px;border-width:4px}
  .about-shortcuts .bracket-link,.intro .bracket-link,.footer-links a{min-height:44px}
  .footer-links{flex-wrap:wrap;gap:8px 24px}
  .footer-links a{display:inline-flex;align-items:center}
  input,textarea,select{font-size:16px}
}

/* Phone layouts retain the desktop treatments with room for copy and touch. */
.portfolio .portfolio-heading .boxed-title{color:#d4e8ff;border-color:#8bbdff;background:#070d1666}
@media(max-width:700px){
  .portfolio-heading{height:168px}
  .portfolio .boxed-title{max-width:calc(100% - 48px);padding:18px 20px;border-width:4px;font-size:21px;letter-spacing:4px;text-indent:4px}
  .filters{padding:8px 16px 16px}
  .projects.circular-carousel{height:460px}
  .circular-carousel .project{top:50%;width:min(340px,80vw);height:360px}
  .circular-carousel .project-copy{padding:22px 16px}
  .circular-carousel .project h3{font-size:22px;overflow-wrap:anywhere}
  .carousel-controls{gap:12px;padding-bottom:20px}
  dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:480px){
  .skills .skill-grid{gap:18px;margin-bottom:40px}
  .flip-ready .program-face{min-height:250px}
  .program-front{min-height:250px;gap:18px}
  .program-front .skill-logo{width:68px;height:68px}
  .program-back p{font-size:14px}
}
@media(forced-colors:active){.portfolio .portfolio-heading .boxed-title{color:CanvasText;border-color:CanvasText;background:Canvas}}

#contact-form.svc-form{margin:1.25rem 0 0}
#contact-form label[hidden]{display:none}
#contact-form label:not([hidden]){display:grid;gap:.35rem;margin:0;text-align:start;color:var(--svc-ink)}
#contact-form button[type="submit"]{justify-self:start}

/* Keep the longer explanations comfortable to read. */
body{font-size:16px}
.intro p{font-size:17px;line-height:1.7}
.section-lead{font-size:17px;line-height:1.7}
.services p,.program-back p,.resume-summary p,.resume-entry-body p,.resume-entry-body li,.resume-skills{font-size:16px}
.skill-note,.resume-period,.career-meta{font-size:15px}
@media(max-width:700px){
  .intro p,.services p,.section-lead,.program-back p{font-size:16px}
}

/* Employer reading path: experience, selected work, then technical detail. */
.hero-summary{max-width:480px;margin-top:18px;color:var(--muted);font-size:17px;line-height:1.7}
.home-statement{padding:clamp(3.5rem,8vw,8rem) 1rem;background:var(--svc-surface);color:var(--svc-muted);text-align:center}
.home-statement p{max-inline-size:46rem;margin:0 auto;font:400 clamp(1.25rem,3vw,2.25rem)/1.35 var(--svc-body-font);letter-spacing:-.025em;text-wrap:balance}
.home-statement strong{color:var(--svc-accent);font-weight:600}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-top:22px}
.hero-actions .gradient-pill{margin-top:0;min-height:46px}
.hero-actions .animated-gradient-text,.hero-text-link>span:first-child{min-inline-size:0;overflow-wrap:anywhere}
/* Dot-to-fill interaction inspired by Magic UI's Interactive Hover Button. */
.hero-text-link{position:relative;isolation:isolate;display:inline-flex;align-items:center;min-height:44px;padding:0 2rem 0 1.75rem;border:1px solid currentColor;border-radius:999px;color:var(--brand-link);font-weight:600;text-decoration:none;transition:color .25s,border-color .25s}
.hero-text-link::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--brand-link);clip-path:circle(4px at 14px 50%);transition:clip-path .3s ease}
.hero-text-link>span:first-child{transition:transform .3s ease}
.hero-link-arrow{position:absolute;right:.75rem;opacity:0;transform:translateX(-4px);transition:opacity .25s,transform .3s ease}
.hero-text-link:focus-visible{outline-offset:4px}
.hero-text-link:focus-visible,.hero-text-link:active{color:var(--hero-link-fill-ink,#fff);border-color:var(--brand-link)}
.hero-text-link:focus-visible::before,.hero-text-link:active::before{clip-path:circle(100% at 14px 50%)}
.hero-text-link:focus-visible>span:first-child,.hero-text-link:active>span:first-child{transform:translateX(-8px)}
.hero-text-link:focus-visible .hero-link-arrow,.hero-text-link:active .hero-link-arrow{opacity:1;transform:none}
@media(hover:hover){
  .hero-text-link:hover{color:var(--hero-link-fill-ink,#fff);border-color:var(--brand-link)}
  .hero-text-link:hover::before{clip-path:circle(100% at 14px 50%)}
  .hero-text-link:hover>span:first-child{transform:translateX(-8px)}
  .hero-text-link:hover .hero-link-arrow{opacity:1;transform:none}
}
:where([data-theme="dark"]) .hero-text-link{--hero-link-fill-ink:var(--svc-action-ink,var(--dark));transition-property:border-color}
:where([data-theme="dark"]) .hero-text-link:focus-visible{background-color:var(--brand-link)}
@media(forced-colors:active){
  .hero-text-link::before{display:none}
  .hero-text-link:is(:hover,:focus-visible,:active){color:LinkText;border-color:LinkText;background-color:transparent}
}
.hero-actions+.socials{margin-top:24px}
.experience-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 32px;margin:24px 0 0;padding-top:20px;border-top:1px solid #435a71}
.experience-highlights dt{color:#8bbdff;font:700 12px/1.6 var(--heading)}
.experience-highlights dd{margin:6px 0 0;color:#dbe6f2;font-size:15px;line-height:1.6}
.skills .resume-toolkit{border-color:#899dbb66}
.selected-work{padding:70px 24px 24px}
.selected-work .portfolio-heading{height:auto;padding:0 0 24px}
.portfolio-lead{max-width:720px;margin:0 auto 16px;color:#d4e8ff;text-align:center;font-size:17px;line-height:1.7}
.selected-work .projects{max-width:1120px;margin:0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.selected-work .project{aspect-ratio:auto;min-height:390px;border:1px solid #435a71;border-radius:16px;align-items:flex-end;background:#101f33}
.selected-work .project::after{background:linear-gradient(#070d1622,#070d16e8 50%,#070d16)}
.selected-work .project-copy{width:100%;padding:32px;text-align:left;background:none}
.selected-work .project h3{font-size:26px;letter-spacing:1px;overflow-wrap:anywhere}
.selected-work .project .project-brand{justify-content:flex-start}
.selected-work .project .project-category{display:block;font-size:12px;line-height:1.6}
.selected-work .project p{max-width:490px;font-size:16px;line-height:1.7;color:#dbe6f2}
.selected-work .project-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px}
.selected-work .project-actions .bracket-link{padding:8px 12px;font-size:11px}
.selected-work .project-art-logo{object-position:center top;padding:24px 32px 230px;background:#e4ebf2}
.selected-work .project:has(.project-art-logo)::after{background:linear-gradient(transparent,#070d16ee 38%,#070d16 65%)}
@media(min-width:701px){.hero{min-height:780px}.hero-copy{top:20%}.intro .intro-inner{flex:1;min-width:0;max-width:none}}
@media(max-width:1000px){.experience-highlights{grid-template-columns:minmax(0,1fr);gap:14px}.experience-highlights dd{margin-top:2px}}
@media(max-width:700px){
  .portfolio-page{overflow-wrap:anywhere}
  .hero-summary{margin-top:12px;font-size:16px;line-height:1.5;color:#d4e8ff}
  .hero-actions{gap:8px 16px;margin-top:14px}
  .hero-actions+.socials{margin-top:16px}
  .hero-text-link{max-inline-size:100%;padding:.3rem .75rem .3rem 1.75rem;gap:.4rem;color:#8bbdff}
  .hero-link-arrow{position:static;flex:none}
  .boxed-title{overflow-wrap:anywhere}
  .boxed-title .kinetic-text{max-inline-size:100%;flex-wrap:wrap;justify-content:center}
  .experience-highlights{width:100%}
  .selected-work{padding:60px 24px 16px}
  .selected-work .portfolio-heading .boxed-title{max-width:100%;font-size:20px;letter-spacing:3px;text-indent:3px}
  .portfolio-lead{font-size:16px}
  .selected-work .projects{grid-template-columns:minmax(0,1fr);gap:20px}
  .selected-work .project{min-height:400px}
  .selected-work .project-copy{padding:24px 20px}
  .selected-work .project h3{font-size:24px}
  .selected-work .project-actions{gap:12px 8px}
}
@media(forced-colors:active){.hero-summary,.experience-highlights dt,.experience-highlights dd,.portfolio-lead,.selected-work .project p{color:CanvasText}.hero-text-link{color:LinkText}.selected-work .project{border-color:CanvasText}.selected-work .project::after{display:none}.selected-work .project-copy{background:Canvas}.selected-work .project h3,.selected-work .project .project-category{color:CanvasText}}

.training{max-width:1120px;margin:64px auto 0;text-align:left}
.training>h3{font:700 20px/1.5 var(--heading)}
/* Reserve a clear artwork area above the supporting project descriptions. */
.selected-work .project:has(.project-art-logo){padding-top:150px}
.selected-work .project-art-logo{top:0;height:170px;object-position:center;padding:20px 32px}
.selected-work .project:has(.project-art-logo)::after{background:linear-gradient(transparent,#070d16ee 165px,#070d16 230px)}

/* Fit the expanded project summaries in the restored carousel. */
.circular-carousel .project p{font-size:15px;line-height:1.6}
.circular-carousel .project-actions{flex-wrap:wrap;gap:10px}
.circular-carousel .project-actions .bracket-link{padding:8px 10px}

/* Keep the About content close to the support and systems headline. */
.intro{padding-top:24px;padding-bottom:12px}
.intro p{margin-bottom:0}
.about{padding-top:16px;padding-bottom:40px}
.about>.section-lead{margin-top:18px;margin-bottom:12px}
@media(max-width:700px){.intro{padding-top:20px;padding-bottom:12px}.about{padding-top:16px}}

/* About tiles: Star Border and Animated List inspired, dependency-free. */
#about .services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:900px;margin:32px auto 0;align-items:stretch}
#about .services article:last-child{grid-column:auto;width:auto;justify-self:stretch}
@media(max-width:700px){#about .services{grid-template-columns:minmax(0,1fr);max-width:400px}}
#about .services article{min-width:0;padding:16px;border:1px solid var(--svc-line);border-radius:12px;background:var(--svc-surface);box-shadow:none}
#about .services h3{margin-bottom:8px;color:var(--svc-ink);letter-spacing:normal;overflow-wrap:break-word}
#about .services p{color:var(--svc-muted);line-height:1.5}
#about .services.is-waiting article{opacity:0;transform:translateY(24px) scale(.92)}
#about .services.is-revealing article{animation:about-tile-enter .7s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--about-index)*30ms)}
@keyframes about-tile-enter{from{opacity:0;transform:translateY(24px) scale(.92)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#about .services article,#about .services.is-waiting article,#about .services.is-revealing article{opacity:1;transform:none;animation:none}}
@media(forced-colors:active){#about .services article{border:1px solid CanvasText;background:Canvas}}

/* Reserve the longest greeting so typing never moves the hero content. */
[data-typing-text]{position:relative;min-height:1.5em}
.typing-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.typing-display{display:inline-block;min-width:12ch;white-space:nowrap}
.typing-cursor{visibility:hidden}
.is-typing .typing-cursor{visibility:visible;animation:typing-caret 1s ease-in-out infinite alternate}
@keyframes typing-caret{from{opacity:.2}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.typing-cursor{display:none}}


/* Technical skills bento, inspired by https://magicui.design/docs/components/bento-grid */
.skills .skills-bento{grid-template-columns:minmax(0,1fr);gap:16px}
.skills-bento>div{display:flex;flex-direction:column;justify-content:flex-end;min-height:172px;padding:22px;border:1px solid var(--resume-line);border-radius:16px;background:var(--paper);overflow:hidden;position:relative;isolation:isolate}
.skills-bento>div::before{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--brand) 20%,transparent),transparent 65%)}
.skills-bento-art{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:auto;padding-bottom:16px;transition:transform .25s ease}
.skills-bento-art img{box-sizing:content-box;display:block;width:32px;height:32px;object-fit:contain;padding:8px;border:1px solid #c1cede;border-radius:12px;background:#f3f7fb}
.skills-bento-art .skills-bento-light-logo{background:#263b54}
.skills-bento dt{display:flex;flex:1;flex-direction:column;font:700 16px/1.4 var(--heading)}
.skills-bento dd{line-height:1.55}
@media(min-width:580px) and (max-width:959px){
  .skills .skills-bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .skills-bento>div:last-child{grid-column:1/-1}
}
@media(min-width:960px){
  .skills .skills-bento{grid-template-columns:repeat(3,minmax(0,1fr))}
  .skills-bento-wide{grid-column:span 2}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .skills-bento>div:hover .skills-bento-art{transform:translateY(-4px)}
}
@media(forced-colors:active){
  .skills-bento>div{border-color:CanvasText}
  .skills-bento>div::before{display:none}
}

#project-carousel .project{flex-direction:column;align-items:stretch;justify-content:flex-start;aspect-ratio:auto;height:auto;border:1px solid var(--svc-line);border-radius:12px;background:var(--svc-soft);box-shadow:0 8px 24px #070d1633}
#project-carousel .project::after{content:none}
.project-media{flex:none;height:160px;overflow:hidden;background:#e4ebf2}
.project-media img{display:block;width:100%;height:100%;object-fit:cover}
.projects .project-media .project-art-logo{object-fit:contain;padding:24px;background:none}
#project-carousel .project-copy{display:flex;flex:1;align-self:stretch;flex-direction:column;padding:16px;text-align:left;background:none}
.project-heading{display:grid;gap:4px}
#project-carousel .project h3{margin:0;color:var(--svc-ink);font-size:18px;letter-spacing:0;overflow-wrap:anywhere}
#project-carousel .project-brand{justify-content:flex-start}
#project-carousel .project-logo{width:32px;height:24px}
#project-carousel .project-category{color:var(--svc-muted);font-size:13px;line-height:1.4}
#project-carousel .project p{margin:10px 0 14px;color:var(--svc-muted);font-size:14px;line-height:1.5}
#project-carousel .project-actions{margin-top:auto;gap:2px 16px}
.project-primary,.project-source{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--svc-action);font-size:11px;font-weight:700}
.project-primary{width:100%;padding:8px;border:1px solid transparent;border-radius:6px;background:var(--svc-action);color:var(--svc-action-ink);text-align:center;cursor:pointer}
.project-primary:hover,.project-source:hover{text-decoration:underline;text-underline-offset:3px}
.project-actions :focus-visible{outline:2px solid var(--svc-action);outline-offset:2px}
@media(max-width:700px){#project-carousel.circular-carousel{height:540px}}

@media(min-width:701px){#project-carousel.circular-carousel .project{width:min(430px,52vw)}.project-media{height:210px}}

/* Keep the restored homepage atmosphere above the solid hero base. */
.hero.cloud-surface>.cloud-background{display:block;z-index:-1;opacity:.82}
.hero.cloud-surface>.cloud-background::after{background:linear-gradient(90deg,#dcecffd9 0%,#dcecff55 44%,transparent 78%)}
[data-theme="dark"] .hero.cloud-surface>.cloud-background::after{background:linear-gradient(90deg,#101f33e8 0%,#101f3366 44%,transparent 78%)}
.hero.cloud-surface>.lightning-background,.hero.cloud-surface>.particles-background{display:block;z-index:0}
.hero.cloud-surface>.light-rays{z-index:0}
.hero.cloud-surface>.hero-dark{z-index:-1}
.hero.cloud-surface .hero-copy,.hero.cloud-surface .portrait{z-index:1}
@media(forced-colors:active){.hero.cloud-surface>.cloud-background,.hero.cloud-surface>.lightning-background,.hero.cloud-surface>.particles-background{display:none}}
