/* Preserve the original portfolio’s Hey Comic typography across the redesign. */
@font-face{font-family:HeyComic;src:url('custom.fonts/HeyComic.woff2') format('woff2'),url('custom.fonts/HeyComic.woff') format('woff');font-display:swap}
:root{--nav-edge:3px solid #000;--nav-shadow:.5px 4px 0 #000;--portfolio-font:HeyComic,"Comic Sans MS",cursive;--ink:#252036;--copy:#4a4057;--purple:#674bb5;--stroke:#584672;--edge:#9d849d;--paper:#f3dfc5;--glass:rgba(255,250,252,.82);--glow:0 4px 0 #5c46634d,0 16px 34px #54395713}
html{scroll-padding-top:6.6rem;overflow-x:clip}
body{font-family:var(--portfolio-font);color:var(--ink);background:var(--paper)}
body *{font-family:var(--portfolio-font);cursor:auto}
button,a,button *,a *{cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--purple);outline-offset:4px}
.skip-link{position:fixed;z-index:3000;top:.65rem;left:.65rem;background:#fff;padding:.55rem .85rem;border-radius:8px;transform:translateY(-200%)}.skip-link:focus{transform:none}
.header{position:fixed;z-index:1200;top:0;left:50%;right:auto;transform:translateX(-50%);margin:.8rem 0 0;padding:.52rem .62rem .52rem .95rem;width:min(calc(100% - 2rem),1130px);max-width:none;min-height:61px;display:flex;gap:.7rem;justify-content:space-between;align-items:center;border:var(--nav-edge);border-radius:20px;background:#fff;box-shadow:var(--nav-shadow)}
.header .logo{font-size:1.15rem;max-width:none;white-space:nowrap;line-height:1.1}.header .logo:hover{transform:none}.header .logo span{font-weight:400;color:var(--ink)}
.header .nav-links{display:flex;gap:.2rem}.nav-links li a,.mobile-menu li a{display:flex;align-items:center;min-height:42px;padding:.38rem .72rem;border-radius:11px;color:var(--copy)!important;font-size:.93rem;font-weight:650;white-space:nowrap;text-decoration:none}.nav-links li a:hover{background:#f1e5ff;transform:none}.mobile-menu li a:hover{background:transparent;transform:none}.nav-links li a[aria-current]{color:#452879!important;background:#e7d9fd;font-weight:760}.header .visit-btn{display:inline-flex;align-items:center;justify-content:center;background:#fffdfb;color:var(--ink)!important;box-shadow:none;border:1px solid var(--edge);border-radius:10px;min-height:40px;padding:.4rem .7rem;font-size:.875rem;font-weight:700;white-space:nowrap}.header .visit-btn:hover{background:#e7d9fd;transform:none}
.header #menu-icon{display:none;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--edge);border-radius:10px;background:#fffdfb}
.mobile-menu,.mobile-menu.closing{display:none}.mobile-menu.active{display:none}
.hero-section{margin:7.4rem auto 0;width:min(calc(100% - 2rem),1130px);max-width:none;padding:0;overflow:visible;text-align:left;background:#fffaf8;border:2px solid var(--stroke);border-radius:23px;box-shadow:5px 6px 0 #5c466378,0 22px 42px #54395722;animation:none;transition:none}.hero-section:hover{transform:none;box-shadow:5px 6px 0 #5c466378,0 22px 42px #54395722;z-index:auto}
.mac-titlebar{border-bottom:1px solid #c3afd7;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;min-height:46px;padding:.35rem 1rem;background:linear-gradient(98deg,#f8e9f6,#e7dbfc);border-radius:20px 20px 0 0;color:#59476e;font-size:.875rem;font-weight:650}
.traffic{display:flex;gap:6px}.traffic i{width:11px;height:11px;border-radius:50%;background:#ff675f;border:1px solid #ca423d}.traffic i:nth-child(2){background:#ffd066;border-color:#b78b27}.traffic i:nth-child(3){background:#56d383;border-color:#2b9252}
.mac-body{display:grid;grid-template-columns:1.45fr 1fr;align-items:center;gap:clamp(1rem,4vw,3rem);padding:clamp(1.4rem,5vw,4.15rem);border-radius:0 0 21px 21px;background:radial-gradient(ellipse at 90% 12%,#f5eaff,transparent 72%),#fffaf8}
.eyebrow{color:#664597;font-size:.875rem;line-height:1.4;font-weight:800;letter-spacing:.075em}
.hero-copy{min-width:0}.hero-copy h1{color:var(--ink);font-size:clamp(2.15rem,6.05vw,4.55rem);line-height:1.06;letter-spacing:-.043em;font-weight:400;margin:.45rem 0 .75rem}.hero-copy h1 span{color:#8260cc}
.hero-description{max-width:34ch;color:var(--copy);font-size:clamp(1rem,2vw,1.25rem);line-height:1.55}
.hero-actions,.hero-links{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.hero-actions{margin-top:1.2rem}.hero-links{gap:1rem;margin-top:.85rem}.hero-links a{color:#603b98!important;text-decoration:underline;text-underline-offset:.18em;font-weight:650;font-size:.925rem}
.portfolio-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.48rem .85rem;background:#fff;border:1px solid #8a73a5;border-radius:11px;font-weight:720;color:#40276a!important}.portfolio-btn:hover{background:#f1e8ff}.portfolio-btn.primary,.portfolio-btn.primary:visited{background:#6550a0;border-color:#6550a0;color:white!important}.portfolio-btn.primary:hover{background:#503981}
.hero-portrait{justify-self:center;align-self:center;position:relative;display:grid;place-items:center;width:min(100%,340px);min-width:0;padding:.15rem;border-radius:28px;background:linear-gradient(145deg,#e5d6fc,#f8efff);border:1px solid #cfb9e9}.hero-portrait img{display:block;width:100%;height:auto;filter:drop-shadow(0 9px 12px #47344742)}
.update-section{display:block;text-align:left;margin:clamp(3.5rem,8vw,6.25rem) auto 0;width:min(calc(100% - 2rem),1130px);max-width:none;padding:0;background:none;border:0;box-shadow:none}.update-heading{margin-bottom:1.15rem}.update-heading h2{font-weight:400;font-size:clamp(2rem,5vw,3.2rem);line-height:1.05;margin-top:.24rem;color:var(--ink)}
.about-panel,.skill-tile,.experience-grid .experience-card,.project-grid .project-card{border:1px solid var(--edge);border-radius:20px;background:var(--glass);box-shadow:var(--glow);min-width:0}
@supports(backdrop-filter:blur(10px)){.about-panel,.skill-tile,.experience-grid .experience-card,.project-grid .project-card{backdrop-filter:blur(10px) saturate(128%);background:rgba(255,250,252,.64)}}
.about-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:clamp(1rem,3vw,2.35rem);align-items:center;padding:clamp(1rem,3vw,1.7rem)}.about-panel>img{width:100%;height:clamp(180px,26vw,285px);object-fit:cover;object-position:center;border-radius:13px;display:block}
.about-panel .about-card,.about-panel .about-card:hover{padding:0;margin:0;width:100%;max-width:100%;border:0;background:none;box-shadow:none;transform:none}.about-panel h3{font-size:clamp(1.4rem,3.2vw,2.1rem);font-weight:400;line-height:1.14;margin-bottom:.5rem}.about-panel .about-card p{font-size:1rem;line-height:1.6;font-weight:450;color:var(--copy);max-width:49ch}
.compact-tags{display:flex;flex-wrap:wrap;gap:.38rem;margin-top:.75rem}.compact-tags li,.project-body .tech-tag{display:inline-block;padding:.2rem .54rem;background:#ece1ff;border:1px solid #d5c4ef;border-radius:8px;color:#493471;font-size:.875rem;font-weight:650;line-height:1.45;box-shadow:none}
.skills-grid,.experience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.skill-tile{padding:1.05rem 1.2rem}.skills-section .skill-tile h3,.experience-grid .exp-title{color:var(--ink);text-align:left;margin:0;padding:0;opacity:1;font-size:1.25rem;line-height:1.2;font-weight:400}
.experience-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.experience-grid .experience-card,.experience-grid .experience-card:hover{transform:none;box-shadow:var(--glow);padding:1rem;gap:.65rem;align-items:stretch;justify-content:flex-start}.experience-grid .exp-header{align-items:flex-start;gap:.65rem}.experience-grid .exp-logo{width:40px;height:40px;flex:none;border-radius:10px;box-shadow:none}.experience-grid .exp-logo img{width:30px;height:30px;border-radius:5px}.experience-grid .exp-company{line-height:1.3;font-size:.92rem}.experience-grid .exp-badges{gap:.3rem;flex-wrap:wrap}.experience-grid .exp-badge{margin:0;font-size:.86rem;padding:.22rem .53rem;background:#ebe0fc;color:#493471}.experience-grid .exp-badge.location{background:#f3e8df;color:#4e3d4c}.experience-grid .exp-description{line-height:1.55;color:var(--copy);font-size:1rem;margin:0}
.projects.update-section .filter-container{justify-content:flex-start;gap:.4rem;margin:0 0 .5rem}.projects .filter-btn{box-shadow:none;border:1px solid var(--edge);min-height:44px;background:#fff9f7;border-radius:10px;color:var(--copy);padding:.4rem .72rem;font-size:.875rem}.projects .filter-btn:hover,.projects .filter-btn.active{background:#e8d8ff;color:#40296a;transform:none;box-shadow:none}.projects .filter-btn.active{border-color:#7952ad}.project-count{color:var(--copy);font-size:.875rem;margin:.75rem 0}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0;justify-content:start}.project-grid .project-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:hidden;padding:0;height:auto;text-align:left;gap:0;box-shadow:var(--glow);cursor:auto}.project-grid .project-card:hover{transform:none;box-shadow:var(--glow);z-index:auto}.project-grid .project-card[hidden]{display:none}.project-grid .project-card>img{width:100%;height:auto;max-width:none;aspect-ratio:1;object-fit:contain;border-radius:0;display:block;background:#e8d6f6}.project-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:.9rem 1rem 1rem}.projects .project-title{font-size:1.28rem;color:var(--ink);text-align:left;font-weight:400;opacity:1;line-height:1.2;margin-bottom:.35rem}.project-body>p{font-size:1rem;line-height:1.46;color:var(--copy)}.project-body .tech-stack{justify-content:flex-start;margin:.7rem 0;gap:.3rem}.project-body .tech-tag:hover{transform:none;box-shadow:none;background:#ece1ff;color:#493471}.project-body .btn-group{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-top:.2rem;margin-top:auto;gap:.45rem}.project-body .btn,.project-body .btn:hover{background:none;border:0;box-shadow:none;padding:0;margin:0;transform:none}.project-body .btn a{display:inline-flex;min-height:42px;align-items:center;padding:.32rem .64rem;border:1px solid var(--edge);border-radius:9px;color:#513379!important;background:#fffbfa;font-weight:670;font-size:.875rem}.project-body .btn a:hover{background:#ede0fb}
/* Original circular arrow, without a sticky touch hover or focus fill. */
.back-to-top,.back-to-top:focus,.back-to-top:active{background:#fff;color:#000}
.back-to-top{bottom:max(2rem,env(safe-area-inset-bottom));z-index:1100;border:var(--nav-edge);box-shadow:var(--nav-shadow)}
.back-to-top:hover{transform:none;box-shadow:var(--nav-shadow);background:#fff}
.back-to-top:focus-visible{outline:3px solid var(--purple);outline-offset:4px}
.back-to-top svg{width:24px;height:24px;stroke:currentColor}
@media(max-width:768px){
  .back-to-top{bottom:max(1.5rem,env(safe-area-inset-bottom))}
  .back-to-top svg{width:21px;height:21px}
}
.preview-stamp{text-align:center;color:var(--copy);font-size:.875rem;padding:.55rem 0 1rem}
@media(max-width:900px){.experience-grid,.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:735px){.header .nav-links{display:none}.header .visit-btn{display:none}.header #menu-icon{display:grid!important}.mobile-menu.active{display:block;position:fixed;z-index:1195;left:auto;right:1rem;top:5.05rem;transform:none;width:min(290px,calc(100% - 2rem));max-width:none;padding:.5rem;border:1px solid var(--edge);border-radius:16px;background:#fff9f7;box-shadow:var(--glow);animation:none}.mobile-menu.active ul{display:grid;gap:.15rem}.mobile-menu li a{display:flex;justify-content:flex-start;width:100%;padding:.45rem .85rem}.mobile-menu .icon-box{display:none}.mobile-menu .menu-label{font-size:1rem}.hero-section{margin-top:6.2rem}}
@media(max-width:575px){html{scroll-padding-top:5.7rem}.mac-body{grid-template-columns:1fr;gap:1rem;padding:1.15rem}.hero-portrait{justify-self:start;width:min(100%,230px)}.hero-copy h1{font-size:clamp(2.05rem,9vw,3.3rem)}.about-panel,.skills-grid,.experience-grid,.project-grid{grid-template-columns:1fr}.about-panel>img{height:190px}.update-section{margin-top:3.15rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Original portfolio colors and mascot, with alignment tied to the layout. */
:root{--paper:#efd9c0;--brand-purple:#9381ff}

.mac-titlebar{background:linear-gradient(100deg,#fff3ed,#9381ff4a)}
.hero-portrait{background:linear-gradient(145deg,#9381ff52,#f9f0ff)}
.nav-links li a[aria-current],.projects .filter-btn.active{background:#9381ff48}
#contact{margin:clamp(3.5rem,8vw,6.5rem) auto 0;width:min(calc(100% - 2rem),1130px);padding:0 0 3.5rem;text-align:center}
#contact .section-title h3{color:#664597;font-weight:800;font-size:.875rem;letter-spacing:.075em;text-transform:uppercase;padding:0;opacity:1}
#contact .section-title h2{margin:.3rem 0 .7rem;padding:0;font-weight:400;font-size:clamp(2rem,5vw,3.2rem);color:var(--ink)}
#contact .parent-container{display:grid;justify-items:center;align-items:end;gap:0;margin:0 auto;padding:0}
#contact .contact-mascot{position:relative;z-index:1;display:block;border:0;background:none;padding:0;width:clamp(116px,24vw,164px);margin:0 auto -4px;line-height:0;transition:none}
#contact .contact-mascot img{display:block;position:static;width:100%;height:auto;padding:0;margin:0;transform:none;filter:drop-shadow(0 2px 1px #39244a44)}
#contact .contact-mascot:hover img{transform:none}
#contact .email-btn{margin:0;max-width:100%;min-height:58px;padding:.75rem clamp(.75rem,4vw,1.4rem);gap:.6rem;border:1px solid var(--stroke);border-radius:15px;box-shadow:0 4px 0 #5c466356;background:rgba(255,250,250,.87);color:#40296a!important}
#contact .email-btn:hover{background:#f4e9ff}
#contact .email-btn svg{flex:none}
#contact .email-btn #email{font-size:clamp(.875rem,4vw,1rem);overflow-wrap:anywhere;color:#40296a;font-weight:680}
#contact .socials{margin:1.2rem auto 0}

#loader[hidden]{display:none!important}
#loader{position:fixed;inset:0;width:100%;height:100%;display:grid;place-items:center;background:#efd9c0;z-index:9999;animation:runner-exit 1.52s ease-in-out both;pointer-events:none}
#loader .loader-bar-container{width:min(320px,calc(100vw - 3rem));display:grid;gap:0}
#loader .loader-lane{position:relative;width:100%;height:55px;--sprite:clamp(58px,20vw,74px)}
#loader #pikachu-loader-gif{position:absolute;display:block;width:var(--sprite);height:auto;left:0;top:auto;bottom:-2px;opacity:1;margin:0;transition:none;animation:pika-run 1.18s linear both}
#loader .loader-bar-bg{margin-top:0;height:15px;border:2px solid #9381ff;background:#fff7ee;box-shadow:0 3px 0 #47335785}
#loader .loader-bar-fill{width:100%;border-radius:10px;background:linear-gradient(90deg,#9381ff,#b29cff);transform-origin:left;transition:none;animation:pika-fill 1.18s linear both}
@keyframes pika-run{from{left:0}to{left:calc(100% - var(--sprite))}}
@keyframes pika-fill{from{transform:scaleX(.025)}to{transform:scaleX(1)}}
@keyframes runner-exit{0%,78%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){#loader{display:none!important}}

.footer{padding:1.2rem max(4.4rem,env(safe-area-inset-right)) 1.2rem 1rem;font-size:.9rem}

/* Comic boxes: firm ink outlines and offset shadows, with frosted surfaces inside. */
:root{--comic-ink:#171219;--comic-box-shadow:4px 5px 0 var(--comic-ink)}
.about-panel{border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;padding:0;grid-template-columns:minmax(0,.84fr) minmax(0,1fr);gap:clamp(1.25rem,4vw,3rem)}
.about-panel>img{display:block;justify-self:center;width:min(100%,450px);height:auto;aspect-ratio:1;object-fit:contain;border:3px solid var(--comic-ink);border-radius:14px;box-shadow:var(--comic-box-shadow);background:#f9ebdb}
.about-panel .about-card,.about-panel .about-card:hover{padding:clamp(1.15rem,3vw,2.05rem);border:3px solid var(--comic-ink);border-radius:18px;background:linear-gradient(145deg,#fff5ff73,transparent 70%),#b7a8ff;box-shadow:var(--comic-box-shadow)}
.about-panel .about-card p{color:#302345}
.skill-tile,.experience-grid .experience-card,.experience-grid .experience-card:hover,.project-grid .project-card,.project-grid .project-card:hover{border:3px solid var(--comic-ink);border-radius:18px;box-shadow:var(--comic-box-shadow)}
.skill-tile{background:linear-gradient(125deg,#fff9f4dd,#eee1ffbb)}
.skill-tile .compact-tags li{background:#282032;color:#fff9f4;border:1px solid #282032;border-radius:6px;box-shadow:1px 2px 0 #9381ff}
.experience-grid .experience-card{background:#fffafaed}
.project-grid .project-card{background:#fffafaed}
.project-grid .project-card>img{width:calc(100% - 1.4rem);margin:.7rem .7rem 0;border:1.5px solid var(--comic-ink);border-radius:10px}
#contact .email-btn{border:2px solid var(--comic-ink);box-shadow:2px 3px 0 var(--comic-ink)}
@media(max-width:575px){
  .about-panel{grid-template-columns:1fr;gap:1rem}
  .about-panel>img{width:min(100%,360px);height:auto}
}

.update-section .update-heading .eyebrow{margin:0;text-align:left}
.about-panel>img{padding:4px}

/* Give the Mac window the same printed-panel edge as the project and experience cards. */
.hero-section,.hero-section:hover{border:3px solid var(--comic-ink);box-shadow:6px 7px 0 var(--comic-ink)}
.mac-titlebar{border-bottom:2px solid var(--comic-ink)}
.mac-body{border-radius:0 0 19px 19px}
@media(max-width:575px){.hero-section,.hero-section:hover{box-shadow:4px 5px 0 var(--comic-ink)}}

/* Touch targets and color transitions, without press movement. */
:where(.portfolio-btn,.visit-btn,.nav-links a,.mobile-menu a,#menu-icon,.filter-btn,.project-body .btn a,.email-btn,.contact-mascot,.back-to-top){
  touch-action:manipulation;
}
.portfolio-btn,.header .visit-btn,.nav-links li a,.mobile-menu li a,.header #menu-icon,.projects .filter-btn,.project-body .btn a,#contact .email-btn,#contact .contact-mascot{
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s cubic-bezier(.2,.65,.32,1);
}
.nav-links li a[aria-current]{font-weight:650;box-shadow:inset 0 0 0 1px #9381ff75}
.menu-glyph{width:21px;height:18px;display:grid;align-content:space-between;position:relative}
.menu-glyph i{display:block;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s ease,opacity .16s ease}
#menu-icon[aria-expanded=true] .menu-glyph i:first-child{transform:translateY(8px) rotate(45deg)}
#menu-icon[aria-expanded=true] .menu-glyph i:nth-child(2){opacity:0}
#menu-icon[aria-expanded=true] .menu-glyph i:last-child{transform:translateY(-8px) rotate(-45deg)}
@media(max-width:735px){
  .header .desktop-navigation{display:none}
  .mobile-menu,.mobile-menu.active{display:block;position:fixed;z-index:1195;top:5.65rem;right:1rem;left:auto;margin:0;width:min(290px,calc(100% - 2rem));min-width:0;max-width:none;max-height:calc(100dvh - 6.25rem);overflow:auto;padding:.5rem;border:var(--nav-edge);border-radius:16px;background:#fff;box-shadow:var(--nav-shadow);animation:none;transition:opacity .18s ease,transform .2s cubic-bezier(.2,.65,.32,1),visibility 0s linear .2s}
  .mobile-menu{visibility:hidden;opacity:0;transform:translateY(-7px) scale(.985);transform-origin:top right;pointer-events:none}
  .mobile-menu.active{visibility:visible;opacity:1;transform:none;pointer-events:auto;transition-delay:0s}
}

/* Portrait-first Mac window, centered on the window itself at every width. */
.mac-body{
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:clamp(1rem,2.2vw,1.55rem);
  padding:clamp(1.2rem,3.5vw,2.65rem) clamp(1rem,4vw,3rem) clamp(1.55rem,3.7vw,2.9rem);
}
.hero-portrait{justify-self:center;width:min(100%,clamp(178px,23vw,234px))}
.hero-copy{width:min(100%,34rem)}
.hero-copy h1{font-size:clamp(2.1rem,6.2vw,4.1rem)}
.hero-description{max-width:100%}

/* Latest-first timeline: alternating panels on wide screens, one left rail on phones. */
.experience-grid.experience-timeline{
  --rail:50%;
  --half-gap:2rem;
  --pin:2rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(.95rem,2.2vw,1.45rem);
  position:relative;
  max-width:940px;
  margin:1.7rem auto .25rem;
  isolation:isolate;
  padding:0 0 2px;
}
.experience-timeline::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:var(--rail);
  top:var(--pin);
  bottom:1rem;
  width:4px;
  transform:translateX(-50%);
  border:1px solid var(--comic-ink);
  border-radius:8px;
  background:#9381ff;
}
.career-entry{position:relative;min-width:0;padding-right:calc(50% + var(--half-gap))}
.career-entry:nth-child(even){padding:0 0 0 calc(50% + var(--half-gap))}
.career-entry::before{
  content:"";
  position:absolute;
  z-index:1;
  top:var(--pin);
  left:var(--rail);
  width:15px;
  height:15px;
  transform:translate(-50%,-50%);
  border:2px solid var(--comic-ink);
  border-radius:50%;
  background:#b7a8ff;
  box-shadow:2px 2px 0 var(--comic-ink);
}
.career-entry:first-child::before{background:#fff7e9}
.career-entry::after{
  content:"";
  position:absolute;
  z-index:-1;
  height:2px;
  top:calc(var(--pin) - 1px);
  right:var(--rail);
  width:var(--half-gap);
  background:var(--comic-ink);
}
.career-entry:nth-child(even)::after{left:var(--rail);right:auto}
.experience-grid .career-entry .experience-card{padding:clamp(.9rem,2vw,1.25rem)}
@media(max-width:700px){
  .experience-grid.experience-timeline{--rail:.55rem;--half-gap:1.2rem;margin-top:1.25rem}
  .career-entry,.career-entry:nth-child(even){padding:0 0 0 calc(var(--rail) + var(--half-gap))}
  .career-entry::after,.career-entry:nth-child(even)::after{left:var(--rail);right:auto}
}

/* Keep the complete three-character sticker visible within the centered hero. */
.hero-portrait.hero-illustration{width:min(100%,clamp(212px,32vw,300px));padding:0;border:3px solid var(--comic-ink);border-radius:18px;background:#fff;box-shadow:var(--comic-box-shadow)}
.hero-portrait.hero-illustration img{border-radius:15px;filter:none;object-fit:contain}

/* Original Education and Fidelity card finishes, inside the new timeline. */
.experience-grid .career-entry .experience-card,
.experience-grid .career-entry .experience-card:hover{
  border:3px solid #000;
  border-radius:20px;
  background:#f7faf9;
  box-shadow:.5px 4px 0 #000;
  backdrop-filter:none;
}
.experience-grid .exp-header{align-items:center;gap:clamp(.65rem,2vw,1.2rem)}
.experience-grid .exp-logo{
  width:56px;height:56px;border-radius:16px;
  box-shadow:.5px 4px 0 #000;
}
.experience-grid .exp-logo img{width:38px;height:38px;border-radius:10px}
.experience-grid .exp-title-group{min-width:0}
.experience-grid .exp-title{color:#181c1f;overflow-wrap:anywhere}
.experience-grid .exp-company{color:#4b5563;overflow-wrap:anywhere}
.experience-grid .exp-badge{background:#e6f4ea;color:#1a3c34}
.experience-grid .exp-badge.location{background:#e6f0fa;color:#2a3c5a}
@media(max-width:600px){
  .experience-grid .career-entry .experience-card,
  .experience-grid .career-entry .experience-card:hover{border-radius:14px}
  .experience-grid .exp-logo{width:38px;height:38px;border-radius:8px}
  .experience-grid .exp-logo img{width:24px;height:24px;border-radius:5px}
}

/* One continuous, swipeable Projects row. Keep the square art and hard comic edges. */
.project-carousel-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.4rem 0 .7rem}
#project-carousel-position{color:var(--copy);font-size:.92rem}
.project-carousel-controls:not([hidden]){display:flex;gap:.55rem}
.project-carousel-button{
  display:grid;place-items:center;width:44px;height:44px;padding:0;
  border:var(--nav-edge);border-radius:50%;background:#fff;color:#000;box-shadow:var(--nav-shadow);
  touch-action:manipulation;transition:background-color .16s ease,box-shadow .16s ease;
}
.project-carousel-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.project-carousel-button[aria-disabled=true]{opacity:.45;cursor:default}
.project-grid#project-carousel{
  --carousel-gap:1rem;
  position:relative;grid-template-columns:none;grid-auto-flow:column;
  grid-auto-columns:calc((100% - 2 * var(--carousel-gap)) / 3);
  gap:var(--carousel-gap);padding:4px 6px 13px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:6px;
  scrollbar-width:thin;scrollbar-color:#846bc4 transparent;
}
#project-carousel .project-card{scroll-snap-align:start;min-width:0;text-align:left}
#project-carousel .project-body{gap:.45rem}
#project-carousel .project-body .btn-group{padding-top:.5rem}
@media (max-width:900px){
  .project-grid#project-carousel{grid-auto-columns:calc((100% - var(--carousel-gap)) / 2)}
}
@media (max-width:575px){
  .project-grid#project-carousel{grid-auto-columns:calc(100% - 2.2rem)}
}

/* About badges echo the comic card outline without changing the Skills tags. */
.about-card .compact-tags{gap:.55rem .65rem;padding:0 3px 4px 0}
.about-card .compact-tags li{border:2px solid var(--comic-ink);box-shadow:2px 3px 0 var(--comic-ink)}

/* Match the About badges while keeping the hero's primary and secondary fills. */
.hero-actions{gap:.7rem .8rem;padding:0 3px 4px 0}
.hero-actions .portfolio-btn,
.hero-actions .portfolio-btn.primary:visited{
  border:2px solid var(--comic-ink);
  box-shadow:2px 3px 0 var(--comic-ink);
}

.project-grid .project-card>img.arcade-hub-art{background:#10131c}

/* Outline and shadow on the date, location, and project technology badges. */
.experience-grid .exp-badges,#project-carousel .tech-stack{gap:.5rem .6rem;padding:0 3px 4px 0}
.experience-grid .exp-badge,#project-carousel .tech-tag,#project-carousel .tech-tag:hover{
  border:2px solid var(--comic-ink);
  box-shadow:2px 3px 0 var(--comic-ink);
}
#project-carousel .tech-stack{display:flex;flex-wrap:wrap;margin:.2rem 0 .25rem}

/* Use the comic X in the visible year without changing how it is read aloud. */
.year-readable{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Primary project links share the same comic offset as the hero actions. */
#project-carousel .project-body .btn-group{gap:.65rem .75rem;padding:.5rem 3px 4px 0}
#project-carousel .project-body .btn a{border:2px solid var(--comic-ink);box-shadow:2px 3px 0 var(--comic-ink)}

/* Local language logos, sized to sit inside the existing comic chips. */
.skill-tile .compact-tags li:has(.skill-brand-icon){display:inline-flex;align-items:center;gap:.4rem}
.skill-brand-icon{display:block;width:20px;height:20px;flex:none;padding:2px;border-radius:4px;background:#fff;object-fit:contain}
.skill-tile .compact-tags{gap:.46rem .53rem}

/* Icon-only social links, with full-size touch and keyboard focus targets. */
.hero-links{gap:.23rem}
.hero-links a{
  display:inline-grid;place-items:center;width:44px;height:44px;
  border-radius:9px;color:var(--comic-ink)!important;text-decoration:none;
}
.hero-links a:hover{background:#e8d8ff}
.hero-links svg{width:24px;height:24px;pointer-events:none}

/* A small zoom replaces the vertical lift, keeping the comic offset shadow. */
@media (hover:hover) and (pointer:fine){
  #project-carousel{padding-block:8px 18px}
  .about-panel .about-card,.skills-grid .skill-tile,
  .experience-grid .career-entry .experience-card,#project-carousel .project-card,
  .online-grid .social-box,.online-grid .social-title{
    position:relative;
    transition:scale .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1),background-color .2s ease,color .2s ease;
  }
  .about-panel .about-card:hover,.skills-grid .skill-tile:hover,
  .experience-grid .career-entry .experience-card:hover,#project-carousel .project-card:hover{
    z-index:1;
    box-shadow:6px 7px 0 var(--comic-ink);
  }
  .online-grid .social-box:hover,.online-grid .social-title:hover{
    z-index:1;
    box-shadow:7px 7px 0 #1b1620;
  }
  .online-grid #social-photos:hover{
    background-color:#e1306c;
    color:#080609;
  }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .about-panel .about-card:hover,.skills-grid .skill-tile:hover,
  .experience-grid .career-entry .experience-card:hover,#project-carousel .project-card:hover,
  .online-grid .social-box:hover,.online-grid .social-title:hover{scale:1.02}
}

/* A looping row has no useful scrollbar endpoints; arrows and native swipes stay available. */
#project-carousel.is-looping{scrollbar-width:none;overflow-anchor:none}
#project-carousel.is-looping::-webkit-scrollbar{display:none}

/* Lift and settle on hover without reintroducing the old press animation.
   Use transform for cards so their independent scroll-reveal translate stays intact. */
@media (any-hover:hover) and (any-pointer:fine) and (prefers-reduced-motion:no-preference){
  #skills-section .skill-tile{
    transition:transform .22s cubic-bezier(.4,0,.2,1),scale .2s cubic-bezier(.4,0,.2,1),
      box-shadow .2s ease,background-color .2s ease,color .2s ease,
      opacity .38s ease,translate .5s cubic-bezier(.2,.7,.25,1);
  }
  #skills-section .skill-tile:hover{transform:translateY(-3px)}
  :is(#skills-section .compact-tags li,.hero-actions .portfolio-btn,.header .visit-btn,
      .hero-links a,.ai-links a,.project-carousel-controls button,
      #project-carousel .project-body .btn a,#contact .email-btn,.back-to-top){
    transition:translate .22s cubic-bezier(.4,0,.2,1),background-color .2s ease,
      color .2s ease,box-shadow .2s ease,opacity .2s ease;
  }
  :is(#skills-section .compact-tags li,.hero-actions .portfolio-btn,.header .visit-btn,
      .hero-links a,.ai-links a,.project-carousel-controls button,
      #project-carousel .project-body .btn a,#contact .email-btn,.back-to-top):hover{
    translate:0 -3px;
  }
}
