*{box-sizing:border-box}
:root{--sidebar-width:clamp(360px,25.5vw,460px);--sidebar-collapsed-width:78px}
html,body{margin:0;height:100%;font-family:"Inter",Arial,sans-serif;color:var(--text);background:var(--page-bg)}
body{overflow:hidden}.app-shell{height:100vh;display:flex;width:100%;overflow:hidden}.sidebar{flex:0 0 var(--sidebar-width)}.viewport{flex:1 1 auto;min-width:0}.sidebar,.viewport{transition:flex-basis .48s cubic-bezier(.76,0,.24,1),width .48s cubic-bezier(.76,0,.24,1)}
.app-shell.sidebar-collapsed .sidebar{flex-basis:var(--sidebar-collapsed-width);width:var(--sidebar-collapsed-width)}

/* SIDEBAR */
.sidebar{height:100vh;background:var(--sidebar-bg);color:var(--sidebar-text);padding:42px 38px 30px;display:flex;flex-direction:column;position:relative;z-index:20;overflow:visible;transition:padding .48s cubic-bezier(.76,0,.24,1)}
.sidebar:before{content:"";position:absolute;left:46px;top:106px;bottom:54px;width:1px;background:color-mix(in srgb,var(--sidebar-text) 18%,transparent);pointer-events:none}
.sidebar-toggle{position:absolute;right:-22px;top:50%;transform:translateY(-50%);width:44px;height:74px;border:0;background:var(--accent);color:#252525;display:grid;place-items:center;font:800 29px/1 "Work Sans",Arial,sans-serif;cursor:pointer;z-index:100;box-shadow:0 10px 28px rgba(0,0,0,.18);transition:background .2s ease,box-shadow .2s ease;pointer-events:auto;touch-action:manipulation}
.sidebar-toggle:hover{background:color-mix(in srgb,var(--accent) 88%,white);box-shadow:0 12px 32px rgba(0,0,0,.24)}
.sidebar-toggle span{display:block;transition:transform .48s cubic-bezier(.76,0,.24,1)}
.sidebar-collapsed .sidebar-toggle span{transform:rotate(180deg)}
.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer;text-align:left;position:relative;z-index:2;white-space:nowrap}
.brand-mark{width:42px;height:42px;flex:0 0 42px;border:1px solid color-mix(in srgb,var(--sidebar-text) 35%,transparent);display:grid;place-items:center;font-family:"Work Sans",Arial,sans-serif;font-weight:800;font-size:18px}
.brand-name{font-family:"Work Sans",Arial,sans-serif;font-weight:700;letter-spacing:.025em;font-size:17px;text-transform:uppercase;transition:opacity .25s ease,transform .35s ease}
.side-nav{margin-top:112px;display:flex;flex-direction:column;gap:13px;position:relative;z-index:2}
.side-nav button{color:color-mix(in srgb,var(--sidebar-text) 54%,transparent);text-decoration:none;padding:10px 0;display:grid;grid-template-columns:42px 1fr;align-items:center;font-size:14px;transition:color .25s ease,transform .25s ease;background:none;border:0;width:100%;font-family:"Inter",Arial,sans-serif;text-align:left;cursor:pointer;white-space:nowrap}
.side-nav button:hover,.side-nav button.active{color:var(--sidebar-text);transform:translateX(7px)}
.side-nav button.active .nav-index{color:var(--accent);opacity:1}
.nav-index{font-family:"Work Sans",Arial,sans-serif;font-size:10px;font-weight:700;opacity:.48;letter-spacing:.14em;transition:color .2s ease}
.nav-label{text-transform:uppercase;font-family:"Work Sans",Arial,sans-serif;font-weight:600;letter-spacing:.025em;transition:opacity .22s ease,transform .35s ease}
.sidebar-bottom{margin-top:auto;position:relative;z-index:2;padding-left:42px;font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:color-mix(in srgb,var(--sidebar-text) 48%,transparent);white-space:nowrap;transition:opacity .2s ease}
.sidebar-collapsed .sidebar{padding-left:21px;padding-right:21px}
.sidebar-collapsed .sidebar:before{left:41px}
.sidebar-collapsed .brand-name,.sidebar-collapsed .nav-label,.sidebar-collapsed .sidebar-bottom{opacity:0;pointer-events:none}
.sidebar-collapsed .brand-name,.sidebar-collapsed .nav-label{transform:translateX(-10px)}
.sidebar-collapsed .side-nav button{grid-template-columns:42px 0fr}
.sidebar-collapsed .side-nav button:hover,.sidebar-collapsed .side-nav button.active{transform:none}

/* FULL-SCREEN SECTIONS */
.viewport{height:100vh;overflow:hidden;position:relative;background:var(--page-bg)}
.section-track{height:100%;transition:transform 850ms cubic-bezier(.76,0,.24,1);will-change:transform}
.portfolio-section{height:100vh;width:100%;position:relative;overflow:hidden}

/* Maple leaf watermark — present on every page */
.portfolio-section:after{content:"";position:absolute;right:-58px;top:-54px;width:285px;height:285px;background:#737A80;opacity:.085;transform:rotate(225deg);transform-origin:52% 52%;pointer-events:none;z-index:0;-webkit-mask:url("../images/maple-watermark.png") center/contain no-repeat;mask:url("../images/maple-watermark.png") center/contain no-repeat}

/* HERO */
.hero-section{background:var(--page-bg);display:grid;grid-template-columns:minmax(320px,.82fr) minmax(450px,1.18fr);padding:58px 64px 58px 66px;gap:58px;align-items:center}
.hero-portrait-stage{--portrait-x:0px;--portrait-y:0px;--accent-x:0px;--accent-y:0px;height:min(68vh,650px);min-height:470px;position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:590px;justify-self:center;z-index:2;opacity:0;filter:blur(10px);clip-path:inset(0 96% 0 0);transform:translate3d(-42px,26px,0) scale(.955) rotate(-1.4deg);transition:opacity 1.15s ease,transform 1.45s cubic-bezier(.16,1,.3,1),filter 1.25s ease,clip-path 1.35s cubic-bezier(.16,1,.3,1)}
.hero-section.is-active .hero-portrait-stage{opacity:1;filter:blur(0);clip-path:inset(0 0 0 0);transform:translate3d(0,0,0) scale(1) rotate(0)}
.portrait-accent{position:absolute;left:50%;top:20%;width:94%;height:60%;background:var(--accent);z-index:0;transform:translate3d(calc(-50% + var(--accent-x)),var(--accent-y),0) scaleX(.22);transform-origin:left center;opacity:.35;transition:transform .18s ease-out,opacity .45s ease}
.hero-section.is-active .portrait-accent{animation:portraitAccentReveal 1.35s .28s cubic-bezier(.16,1,.3,1) both}
@keyframes portraitAccentReveal{0%{opacity:.25;transform:translate3d(calc(-50% + var(--accent-x)),var(--accent-y),0) scaleX(.22)}100%{opacity:1;transform:translate3d(calc(-50% + var(--accent-x)),var(--accent-y),0) scaleX(1)}}
.portrait-frame{position:relative;z-index:1;width:clamp(330px,78%,440px);height:auto;aspect-ratio:4/5;border:10px solid var(--text);background:var(--section-bg);padding:13px;box-shadow:0 18px 42px rgba(0,0,0,.08);transform:translate3d(var(--portrait-x),var(--portrait-y),0);transition:transform .18s ease-out,box-shadow .3s ease}
.hero-portrait-stage:hover .portrait-frame{box-shadow:0 26px 58px rgba(0,0,0,.13)}
.portrait-frame:after{content:"";position:absolute;inset:13px;border:1px solid color-mix(in srgb,var(--line) 75%,transparent);pointer-events:none}
.portrait-frame img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;filter:saturate(.9) contrast(1.02);transition:transform .55s cubic-bezier(.22,1,.36,1),filter .35s ease}
.hero-portrait-stage:hover .portrait-frame img{transform:scale(1.018);filter:saturate(.95) contrast(1.03)}
.hero-copy{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;max-width:760px;padding-right:10px;z-index:2}
.hero-copy>*{opacity:0;filter:blur(7px);transition:opacity 1.05s ease,transform 1.28s cubic-bezier(.16,1,.3,1),filter 1.1s ease}
.hero-copy>*:nth-child(1){transform:translate3d(-34px,12px,0) scale(.98)}
.hero-copy>*:nth-child(2){transform:translate3d(0,34px,0) scale(.95)}
.hero-copy>*:nth-child(3){transform:translate3d(-22px,0,0) scaleX(.42);transform-origin:left center}
.hero-copy>*:nth-child(4){transform:translate3d(28px,12px,0)}
.hero-copy>*:nth-child(5){transform:translate3d(0,30px,0)}
.hero-copy>*:nth-child(6){transform:translate3d(0,24px,0)}
.hero-section.is-active .hero-copy>*{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}
.hero-section.is-active .hero-copy>*:nth-child(1){transition-delay:.42s}
.hero-section.is-active .hero-copy>*:nth-child(2){transition-delay:.58s}
.hero-section.is-active .hero-copy>*:nth-child(3){transition-delay:.76s}
.hero-section.is-active .hero-copy>*:nth-child(4){transition-delay:.92s}
.hero-section.is-active .hero-copy>*:nth-child(5){transition-delay:1.08s}
.hero-section.is-active .hero-copy>*:nth-child(6){transition-delay:1.22s}
.hero-greeting{position:relative;margin:0 0 17px;font-family:"Work Sans",Arial,sans-serif;font-size:17px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;color:var(--text);width:max-content}
.hero-greeting:before{content:"";position:absolute;left:-14px;top:50%;width:47px;height:47px;border-radius:50%;background:var(--accent);transform:translateY(-50%);z-index:0}
.hero-greeting span{position:relative;z-index:1}
.hero-section h1{font-family:"Work Sans",Arial,sans-serif;text-transform:uppercase;font-size:clamp(50px,4.3vw,76px);line-height:.98;letter-spacing:-.045em;margin:0;max-width:760px;font-weight:700;color:var(--text)}
.title-decoration{width:190px;height:10px;display:flex;align-items:center;margin-top:18px}
.title-decoration span{width:64px;height:8px;background:var(--accent);clip-path:polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%)}
.title-decoration i{height:1px;flex:1;background:var(--line);display:block;margin-left:-3px}
.typing-line{min-height:32px;margin-top:25px;display:flex;align-items:center;font-family:"Work Sans",Arial,sans-serif;font-size:19px;line-height:1.3;font-weight:700;letter-spacing:.025em;text-transform:uppercase;color:var(--muted)}
.typing-text{color:var(--muted)}
.typing-caret{width:2px;height:23px;background:var(--accent);display:inline-block;margin-left:4px;animation:caretBlink .8s steps(1,end) infinite}
@keyframes caretBlink{0%,46%{opacity:1}47%,100%{opacity:0}}
.hero-intro{max-width:680px;font-size:16px;line-height:1.75;color:var(--muted);margin:25px 0 0;font-weight:400}
.hero-traits{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:22px;max-width:690px}
.hero-traits span{display:inline-flex;align-items:center;font-family:"Work Sans",Arial,sans-serif;font-size:10px;font-weight:700;letter-spacing:.065em;text-transform:uppercase;color:color-mix(in srgb,var(--text) 68%,var(--muted));white-space:nowrap}
.hero-traits span+span:before{content:"•";display:inline-block;margin:0 14px;color:color-mix(in srgb,var(--muted) 65%,transparent);font-size:10px}

/* OTHER SECTIONS — intentionally empty for now */
.blank-section{background:var(--section-bg)}

/* More visible full-page navigation */
.section-controls{position:absolute;right:34px;bottom:38px;z-index:12;display:grid;grid-template-columns:52px 78px 52px;align-items:stretch;height:52px;background:var(--section-bg);border:1px solid color-mix(in srgb,var(--text) 16%,var(--line));box-shadow:0 14px 34px rgba(0,0,0,.09)}
.section-control{border:0;background:var(--accent);color:#252525;cursor:pointer;display:grid;place-items:center;font-family:"Work Sans",Arial,sans-serif;transition:background .22s ease,transform .22s ease,box-shadow .22s ease}
.section-control-prev{border-right:1px solid color-mix(in srgb,var(--text) 10%,transparent)}
.section-control-next{border-left:1px solid color-mix(in srgb,var(--text) 10%,transparent)}
.section-control:not(:disabled):hover{background:color-mix(in srgb,var(--accent) 88%,white);transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.section-control:disabled{opacity:.26;cursor:default;transform:none;box-shadow:none}
.section-control-arrow{display:block;font:800 29px/1 "Work Sans",Arial,sans-serif;transform-origin:center}
.section-control-prev .section-control-arrow{transform:rotate(90deg)}
.section-control-next .section-control-arrow{transform:rotate(-90deg)}
.section-counter{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;font-size:10px;letter-spacing:.1em;color:var(--muted);background:var(--section-bg)}
.section-counter span:first-child{color:var(--text);font-family:"Work Sans",Arial,sans-serif;font-weight:800}

/* DESKTOP ADAPTATION ONLY FOR NOW */
@media(max-width:1500px){
  :root{--sidebar-width:clamp(400px,29vw,500px)}
  .hero-section{grid-template-columns:minmax(320px,.86fr) minmax(440px,1.14fr);padding-left:54px;padding-right:48px;gap:56px}
  .hero-portrait-stage{height:min(70vh,625px);min-height:470px}
  .hero-copy{max-width:680px}
  .hero-section h1{font-size:clamp(48px,4.1vw,66px)}
}
@media(max-width:1180px){
  :root{--sidebar-width:390px}
  .hero-section{grid-template-columns:330px minmax(400px,1fr);gap:38px;padding-left:42px;padding-right:36px}
  .hero-portrait-stage{height:570px;min-height:440px}
  .hero-section h1{font-size:50px}
  .hero-intro{font-size:15px}
}

/* Keep portrait/yellow composition balanced in both sidebar states */
@media (min-width:1121px){
  .app-shell:not(.sidebar-collapsed) .sidebar{flex-basis:clamp(360px,25.5vw,460px);width:clamp(360px,25.5vw,460px)}
  .app-shell:not(.sidebar-collapsed) .portrait-frame{width:clamp(330px,74%,405px)}
  .app-shell:not(.sidebar-collapsed) .portrait-accent{width:96%}
  .app-shell.sidebar-collapsed .sidebar{flex-basis:78px;width:78px}
}

/* =========================================================
   V2 — SIDEBAR PRESENCE / ICON NAVIGATION
   ========================================================= */
.sidebar{
  padding:36px 30px 28px;
}
.sidebar:before{display:none}
.brand{gap:13px}
.brand-mark{
  width:46px;height:46px;flex:0 0 46px;
  border-color:color-mix(in srgb,var(--sidebar-text) 30%,transparent);
  font-size:14px;letter-spacing:.035em;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.brand:hover .brand-mark{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.brand-name{font-size:17px;letter-spacing:.035em}

.side-nav{
  margin:auto 0;
  gap:9px;
  width:100%;
}
.side-nav button{
  position:relative;
  min-height:60px;
  grid-template-columns:50px minmax(0,1fr) 8px;
  gap:10px;
  padding:0 16px 0 10px;
  color:color-mix(in srgb,var(--sidebar-text) 60%,transparent);
  font-size:15px;
  overflow:hidden;
  isolation:isolate;
  transform:none;
  transition:color .28s ease,background .32s ease,box-shadow .32s ease;
}
.side-nav button:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 13%,transparent),transparent 82%);
  opacity:0;
  transform:scaleX(.72);
  transform-origin:left center;
  transition:opacity .3s ease,transform .38s cubic-bezier(.16,1,.3,1);
  z-index:-1;
}
.side-nav button:hover{
  color:color-mix(in srgb,var(--sidebar-text) 90%,transparent);
  transform:none;
}
.side-nav button:hover:before{opacity:.6;transform:scaleX(1)}
.side-nav button.active{
  color:var(--sidebar-text);
  transform:none;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 20%,var(--sidebar-bg)),color-mix(in srgb,var(--accent) 6%,var(--sidebar-bg)) 72%,var(--sidebar-bg));
  box-shadow:inset 3px 0 0 var(--accent),0 10px 30px rgba(0,0,0,.09);
}
.side-nav button.active:before{opacity:1;transform:scaleX(1)}
.nav-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  color:currentColor;
  transition:background .28s ease,color .28s ease,transform .32s cubic-bezier(.16,1,.3,1);
}
.nav-icon svg{
  width:22px;height:22px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.side-nav button:hover .nav-icon{transform:translateX(2px)}
.side-nav button.active .nav-icon{
  background:var(--accent);
  color:#252525;
  transform:none;
}
.nav-label{
  font-size:15px;
  font-weight:650;
  letter-spacing:.035em;
}
.nav-active-mark{
  width:4px;height:4px;border-radius:50%;
  background:var(--accent);
  opacity:0;
  transform:scale(.25);
  transition:opacity .25s ease,transform .35s cubic-bezier(.16,1,.3,1);
  justify-self:end;
}
.side-nav button.active .nav-active-mark{opacity:1;transform:scale(1)}

.sidebar-bottom{
  margin-top:0;
  padding:18px 0 0;
  border-top:1px solid color-mix(in srgb,var(--sidebar-text) 14%,transparent);
  display:flex;
  align-items:center;
  gap:10px;
  font-size:inherit;
  letter-spacing:normal;
  color:inherit;
  transition:none;
}
.resume-link{
  min-width:0;
  flex:1;
  height:44px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:var(--accent);
  color:#252525;
  font-family:"Work Sans",Arial,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  transition:transform .25s ease,background .25s ease,box-shadow .25s ease;
}
.resume-link:hover{
  transform:translateY(-2px);
  background:color-mix(in srgb,var(--accent) 88%,white);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.footer-icon{display:grid;place-items:center;width:19px;height:19px;flex:0 0 19px}
.footer-icon svg,.linkedin-link svg{
  width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.linkedin-link{
  width:44px;height:44px;flex:0 0 44px;
  display:grid;place-items:center;
  color:color-mix(in srgb,var(--sidebar-text) 72%,transparent);
  border:1px solid color-mix(in srgb,var(--sidebar-text) 22%,transparent);
  background:transparent;
  transition:color .25s ease,border-color .25s ease,background .25s ease,transform .25s ease;
}
.linkedin-link:hover{
  color:var(--sidebar-text);
  border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 8%,transparent);
  transform:translateY(-2px);
}

.sidebar-collapsed .sidebar{padding-left:16px;padding-right:16px}
.sidebar-collapsed .brand{justify-content:center}
.sidebar-collapsed .brand-mark{width:46px;flex-basis:46px}
.sidebar-collapsed .side-nav{align-items:center}
.sidebar-collapsed .side-nav button{
  width:46px;
  min-height:48px;
  padding:0;
  grid-template-columns:46px;
  gap:0;
  justify-content:center;
  background:transparent;
  box-shadow:none;
}
.sidebar-collapsed .side-nav button:before{display:none}
.sidebar-collapsed .nav-icon{width:46px;height:46px}
.sidebar-collapsed .side-nav button.active .nav-icon{
  background:var(--accent);
  color:#252525;
  box-shadow:0 8px 20px rgba(0,0,0,.14);
}
.sidebar-collapsed .nav-active-mark{display:none}
.sidebar-collapsed .sidebar-bottom{
  opacity:1!important;
  pointer-events:auto!important;
  padding-top:14px;
  flex-direction:column;
  gap:8px;
}
.sidebar-collapsed .resume-link{
  width:44px;height:44px;flex:0 0 44px;padding:0;
}
.sidebar-collapsed .footer-label{display:none}
.sidebar-collapsed .linkedin-link{width:44px;height:44px;flex-basis:44px}
.sidebar-bottom .is-disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.sidebar-bottom .is-disabled:hover{transform:none;box-shadow:none}.sidebar-bottom .resume-link.is-disabled:hover{background:var(--accent)}.sidebar-bottom .linkedin-link.is-disabled:hover{color:color-mix(in srgb,var(--sidebar-text) 72%,transparent);border-color:color-mix(in srgb,var(--sidebar-text) 22%,transparent);background:transparent}

/* =========================================================
   V2.1 — RESPONSIVE SYSTEM
   Desktop design is preserved. These rules adapt mechanics,
   spacing and navigation progressively down to small phones.
   ========================================================= */

:root{
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
  --mobile-topbar-height:66px;
}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:280px}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.mobile-topbar,.mobile-sidebar-backdrop{display:none}
.viewport,.portfolio-section{height:100vh;height:100dvh}
.section-track{height:100vh;height:100dvh}

/* Very large displays: avoid a stretched composition. */
@media (min-width:1920px){
  .hero-section{
    grid-template-columns:minmax(390px,560px) minmax(600px,790px);
    justify-content:center;
    gap:clamp(76px,6vw,128px);
    padding-left:clamp(78px,6vw,132px);
    padding-right:clamp(86px,7vw,150px);
  }
  .hero-copy{max-width:790px}
  .hero-portrait-stage{max-width:590px}
}

/* Laptop / compact desktop. Keep the sidebar, but give content room. */
@media (min-width:1101px) and (max-width:1510px){
  :root{--sidebar-width:clamp(310px,23.5vw,370px)}
  .app-shell:not(.sidebar-collapsed) .sidebar{flex-basis:var(--sidebar-width);width:var(--sidebar-width)}
  .sidebar{padding-left:25px;padding-right:25px}
  .side-nav button{min-height:56px;padding-left:8px;padding-right:12px;grid-template-columns:46px minmax(0,1fr) 8px}
  .nav-label{font-size:14px}
  .hero-section{
    grid-template-columns:minmax(285px,.82fr) minmax(420px,1.18fr);
    gap:clamp(34px,3.2vw,52px);
    padding:48px clamp(34px,3.4vw,54px) 48px clamp(38px,3.5vw,58px);
  }
  .hero-portrait-stage{height:min(66vh,590px);min-height:420px}
  .app-shell:not(.sidebar-collapsed) .portrait-frame{width:clamp(285px,73%,370px)}
  .hero-section h1{font-size:clamp(43px,4.15vw,62px)}
  .hero-greeting{font-size:15px}
  .typing-line{font-size:17px;margin-top:21px}
  .hero-intro{font-size:15px;line-height:1.68;margin-top:21px}
  .hero-traits{margin-top:18px}
}

/* Short desktop screens: shrink vertical rhythm without changing layout. */
@media (min-width:1101px) and (max-height:760px){
  .sidebar{padding-top:25px;padding-bottom:20px}
  .brand-mark{width:42px;height:42px;flex-basis:42px}
  .side-nav{gap:5px}
  .side-nav button{min-height:49px}
  .nav-icon{width:38px;height:38px}
  .nav-icon svg{width:20px;height:20px}
  .sidebar-bottom{padding-top:12px}
  .resume-link,.linkedin-link{height:40px}
  .linkedin-link{width:40px;flex-basis:40px}
  .hero-section{padding-top:34px;padding-bottom:34px}
  .hero-portrait-stage{height:min(72vh,500px);min-height:360px}
  .portrait-frame{max-width:345px;border-width:8px;padding:10px}
  .hero-greeting{margin-bottom:12px}
  .hero-greeting:before{width:39px;height:39px}
  .title-decoration{margin-top:13px}
  .typing-line{margin-top:16px;min-height:27px}
  .hero-intro{margin-top:15px;line-height:1.55}
  .hero-traits{margin-top:13px}
  .section-controls{bottom:20px}
}

/* ---------------------------------------------------------
   TABLET / MOBILE NAVIGATION
   The desktop sidebar becomes an off-canvas drawer.
   --------------------------------------------------------- */
@media (max-width:1100px){
  :root{--sidebar-width:min(360px,86vw);--sidebar-collapsed-width:min(360px,86vw)}
  body{overscroll-behavior:none}
  .app-shell{display:block;height:100vh;height:100dvh;position:relative}

  .mobile-topbar{
    display:flex;
    position:fixed;
    z-index:55;
    top:0;left:0;right:0;
    height:calc(var(--mobile-topbar-height) + var(--safe-top));
    padding:var(--safe-top) calc(14px + var(--safe-right)) 0 calc(14px + var(--safe-left));
    align-items:center;
    justify-content:space-between;
    background:color-mix(in srgb,var(--sidebar-bg) 97%,black);
    color:var(--sidebar-text);
    box-shadow:0 1px 0 color-mix(in srgb,var(--sidebar-text) 10%,transparent),0 8px 28px rgba(0,0,0,.10);
  }
  .mobile-brand{
    min-width:0;
    display:flex;align-items:center;gap:11px;
    border:0;background:transparent;color:inherit;padding:0;
    font:inherit;cursor:pointer;text-align:left;
  }
  .mobile-brand-mark{
    width:38px;height:38px;flex:0 0 38px;
    display:grid;place-items:center;
    border:1px solid color-mix(in srgb,var(--sidebar-text) 30%,transparent);
    font:800 12px/1 "Work Sans",Arial,sans-serif;
    letter-spacing:.04em;
  }
  .mobile-brand-name{
    min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font:700 13px/1.15 "Work Sans",Arial,sans-serif;
    letter-spacing:.055em;text-transform:uppercase;
  }
  .mobile-menu-toggle{
    width:42px;height:42px;flex:0 0 42px;
    border:0;background:var(--accent);color:#252525;
    display:grid;place-items:center;cursor:pointer;
    box-shadow:0 7px 18px rgba(0,0,0,.15);
    font:800 28px/1 "Work Sans",Arial,sans-serif;
  }
  .mobile-menu-toggle span{transform:translateX(1px);transition:transform .42s cubic-bezier(.76,0,.24,1)}
  .app-shell.mobile-sidebar-open .mobile-menu-toggle span{transform:rotate(180deg)}

  .mobile-sidebar-backdrop{
    display:block;
    position:fixed;inset:0;
    z-index:58;
    border:0;padding:0;
    background:rgba(16,18,20,.38);
    opacity:0;visibility:hidden;pointer-events:none;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    transition:opacity .34s ease,visibility .34s ease;
  }
  .app-shell.mobile-sidebar-open .mobile-sidebar-backdrop{opacity:1;visibility:visible;pointer-events:auto}

  .sidebar,
  .app-shell.sidebar-collapsed .sidebar,
  .app-shell:not(.sidebar-collapsed) .sidebar{
    position:fixed;
    z-index:65;
    top:0;left:0;bottom:0;
    width:var(--sidebar-width);
    max-width:86vw;
    height:100vh;height:100dvh;
    flex:none;
    padding:calc(28px + var(--safe-top)) 25px calc(24px + var(--safe-bottom));
    transform:translate3d(calc(-100% - 28px),0,0);
    transition:transform .48s cubic-bezier(.76,0,.24,1);
    overflow-y:auto;
    overscroll-behavior:contain;
    box-shadow:24px 0 60px rgba(0,0,0,.24);
  }
  .app-shell.mobile-sidebar-open .sidebar{transform:translate3d(0,0,0)}
  .sidebar-toggle{
    right:-21px;top:50%;
    width:42px;height:68px;
    box-shadow:0 10px 26px rgba(0,0,0,.20);
  }
  .sidebar-collapsed .sidebar-toggle span{transform:none}
  .app-shell.mobile-sidebar-open .sidebar-toggle span{transform:none}

  .sidebar-collapsed .brand-name,.sidebar-collapsed .nav-label{opacity:1;pointer-events:auto;transform:none}
  .sidebar-collapsed .brand{justify-content:flex-start}
  .sidebar-collapsed .brand-mark{width:46px;flex-basis:46px}
  .sidebar-collapsed .side-nav{align-items:stretch}
  .sidebar-collapsed .side-nav button{
    width:100%;min-height:58px;padding:0 14px 0 9px;
    grid-template-columns:50px minmax(0,1fr) 8px;
    gap:10px;justify-content:initial;
  }
  .sidebar-collapsed .side-nav button:before{display:block}
  .sidebar-collapsed .nav-icon{width:42px;height:42px}
  .sidebar-collapsed .nav-active-mark{display:block}
  .sidebar-collapsed .sidebar-bottom{
    padding-top:16px;flex-direction:row;gap:10px;
  }
  .sidebar-collapsed .resume-link{width:auto;height:44px;flex:1;padding:0 14px}
  .sidebar-collapsed .footer-label{display:inline}
  .sidebar-collapsed .linkedin-link{width:44px;height:44px;flex:0 0 44px}

  .viewport{width:100%;height:100vh;height:100dvh}
  .portfolio-section{height:100vh;height:100dvh}
  .portfolio-section:after{width:235px;height:235px;right:-62px;top:calc(var(--mobile-topbar-height) - 38px);opacity:.072}
  .portfolio-section:not(.hero-section):before{left:28px;right:28px;bottom:24px}

  .hero-section{
    grid-template-columns:minmax(255px,.76fr) minmax(0,1.24fr);
    gap:clamp(30px,5vw,52px);
    padding:calc(var(--mobile-topbar-height) + 32px + var(--safe-top)) 42px calc(78px + var(--safe-bottom)) 42px;
    align-items:center;
  }
  .hero-portrait-stage{height:min(61vh,520px);min-height:350px;max-width:420px}
  .portrait-frame{width:clamp(255px,75%,350px);border-width:8px;padding:10px}
  .portrait-frame:after{inset:10px}
  .portrait-accent{width:98%;top:21%;height:58%}
  .hero-copy{max-width:640px;padding-right:0}
  .hero-section h1{font-size:clamp(42px,6.1vw,62px)}
  .hero-greeting{font-size:14px;margin-bottom:13px}
  .hero-greeting:before{width:41px;height:41px;left:-12px}
  .title-decoration{margin-top:15px;width:165px}
  .typing-line{font-size:clamp(15px,2.2vw,18px);margin-top:19px;min-height:28px}
  .hero-intro{font-size:14.5px;line-height:1.62;margin-top:18px}
  .hero-traits{margin-top:16px}
  .hero-traits span{font-size:9px}
  .hero-traits span+span:before{margin:0 10px}

  .section-controls{
    right:calc(18px + var(--safe-right));
    bottom:calc(18px + var(--safe-bottom));
    grid-template-columns:46px 68px 46px;
    height:46px;
  }
  .section-control-arrow{font-size:27px}
}

/* Tablet portrait and large phones: stack the hero. */
@media (max-width:760px){
  :root{--mobile-topbar-height:62px}
  .mobile-topbar{padding-left:calc(12px + var(--safe-left));padding-right:calc(12px + var(--safe-right))}
  .mobile-brand-mark{width:36px;height:36px;flex-basis:36px}
  .mobile-brand-name{font-size:12px;letter-spacing:.045em}
  .mobile-menu-toggle{width:40px;height:40px;flex-basis:40px}

  .hero-section{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    align-content:start;
    gap:14px;
    padding:calc(var(--mobile-topbar-height) + 22px + var(--safe-top)) 22px calc(74px + var(--safe-bottom));
    text-align:left;
  }
  .hero-portrait-stage{
    height:clamp(210px,31dvh,280px);
    min-height:0;
    max-width:100%;
    justify-self:center;
    align-self:start;
  }
  .portrait-frame{
    width:clamp(172px,46vw,230px);
    border-width:7px;
    padding:8px;
    box-shadow:0 12px 30px rgba(0,0,0,.09);
  }
  .portrait-frame:after{inset:8px}
  .portrait-accent{width:min(78vw,330px);height:58%;top:21%}
  .hero-copy{width:100%;max-width:600px;justify-self:center;justify-content:flex-start}
  .hero-greeting{font-size:12px;margin-bottom:10px}
  .hero-greeting:before{width:35px;height:35px;left:-10px}
  .hero-section h1{font-size:clamp(31px,9.4vw,46px);line-height:.96;max-width:620px}
  .title-decoration{width:145px;height:8px;margin-top:11px}
  .title-decoration span{width:50px;height:6px}
  .typing-line{font-size:clamp(13px,4vw,16px);margin-top:13px;min-height:23px}
  .typing-caret{height:18px}
  .hero-intro{font-size:13.5px;line-height:1.5;margin-top:12px;max-width:620px}
  .hero-traits{margin-top:12px;row-gap:5px}
  .hero-traits span{font-size:8.5px;letter-spacing:.05em}
  .hero-traits span+span:before{margin:0 8px}

  .portfolio-section:after{width:185px;height:185px;right:-54px;top:calc(var(--mobile-topbar-height) - 24px);opacity:.065}
  .portfolio-section:not(.hero-section):before{left:20px;right:20px;bottom:17px}

  .section-controls{
    right:50%;transform:translateX(50%);
    bottom:calc(14px + var(--safe-bottom));
    grid-template-columns:44px 64px 44px;
    height:44px;
    box-shadow:0 10px 28px rgba(0,0,0,.10);
  }
  .section-counter{font-size:9px;padding:0 7px}
}

/* Small phones. */
@media (max-width:430px){
  .mobile-brand-name{max-width:190px}
  .sidebar,.app-shell.sidebar-collapsed .sidebar,.app-shell:not(.sidebar-collapsed) .sidebar{max-width:88vw;width:88vw;padding-left:20px;padding-right:20px}
  .side-nav button,.sidebar-collapsed .side-nav button{min-height:54px}
  .nav-label{font-size:13px}
  .hero-section{padding-left:18px;padding-right:18px;gap:11px}
  .hero-portrait-stage{height:clamp(190px,29dvh,245px)}
  .portrait-frame{width:clamp(158px,45vw,205px);border-width:6px;padding:7px}
  .portrait-frame:after{inset:7px}
  .portrait-accent{width:min(82vw,305px)}
  .hero-section h1{font-size:clamp(29px,9.2vw,39px)}
  .hero-intro{font-size:13px;line-height:1.45}
  .typing-line{font-size:12.5px}
  .hero-traits span{font-size:8px}
}

/* Narrow devices down to 280–320px. */
@media (max-width:340px){
  .mobile-brand-name{max-width:138px;font-size:11px}
  .hero-section{padding-left:14px;padding-right:14px}
  .hero-portrait-stage{height:180px}
  .portrait-frame{width:145px}
  .hero-section h1{font-size:27px}
  .typing-line{font-size:11.5px}
  .hero-intro{font-size:12.2px}
  .hero-traits{gap:0}
  .hero-traits span+span:before{margin:0 5px}
  .section-controls{grid-template-columns:40px 58px 40px;height:40px}
}

/* Phone/tablet landscape or any very short viewport. */
@media (min-width:560px) and (max-width:1100px) and (max-height:620px){
  :root{--mobile-topbar-height:54px}
  .mobile-topbar{height:calc(var(--mobile-topbar-height) + var(--safe-top))}
  .mobile-brand-mark{width:32px;height:32px;flex-basis:32px}
  .mobile-menu-toggle{width:36px;height:36px;flex-basis:36px}
  .hero-section{
    grid-template-columns:minmax(165px,.58fr) minmax(0,1.42fr);
    grid-template-rows:1fr;
    gap:24px;
    padding:calc(var(--mobile-topbar-height) + 12px + var(--safe-top)) 25px calc(58px + var(--safe-bottom));
  }
  .hero-portrait-stage{height:min(68vh,300px);min-height:0;max-width:320px}
  .portrait-frame{width:clamp(145px,61%,210px);border-width:6px;padding:7px}
  .portrait-frame:after{inset:7px}
  .portrait-accent{width:94%;height:56%}
  .hero-greeting{font-size:10px;margin-bottom:6px}
  .hero-greeting:before{width:29px;height:29px;left:-8px}
  .hero-section h1{font-size:clamp(26px,5vw,40px);line-height:.94}
  .title-decoration{margin-top:7px;height:6px;width:120px}
  .title-decoration span{height:5px;width:42px}
  .typing-line{font-size:12px;margin-top:8px;min-height:18px}
  .typing-caret{height:15px}
  .hero-intro{font-size:11.5px;line-height:1.36;margin-top:7px;max-width:650px}
  .hero-traits{margin-top:7px}
  .hero-traits span{font-size:7.6px}
  .section-controls{right:calc(12px + var(--safe-right));left:auto;transform:none;bottom:calc(9px + var(--safe-bottom));grid-template-columns:39px 56px 39px;height:39px}
  .portfolio-section:after{width:150px;height:150px;top:calc(var(--mobile-topbar-height) - 32px);right:-46px}
}

/* Touch devices do not need hover/parallax visual shifts. */
@media (hover:none),(pointer:coarse){
  .side-nav button:hover:before{opacity:0}
  .side-nav button.active:hover:before{opacity:1}
  .hero-portrait-stage:hover .portrait-frame{box-shadow:0 18px 42px rgba(0,0,0,.08)}
  .hero-portrait-stage:hover .portrait-frame img{transform:none;filter:saturate(.9) contrast(1.02)}
}

/* Respect users asking for reduced motion. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .hero-portrait-stage,.hero-copy>*{opacity:1!important;filter:none!important;clip-path:none!important;transform:none!important}
  .portrait-accent{transform:translateX(-50%)!important;opacity:1!important}
  .typing-caret{animation:none!important;opacity:1}
}


/* Very small-height portrait phones (e.g. 320×568): keep stacked layout, compress it carefully. */
@media (max-width:559px) and (max-height:680px){
  :root{--mobile-topbar-height:54px}
  .mobile-topbar{height:calc(var(--mobile-topbar-height) + var(--safe-top))}
  .mobile-brand-mark{width:32px;height:32px;flex-basis:32px}
  .mobile-menu-toggle{width:36px;height:36px;flex-basis:36px}
  .hero-section{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    gap:7px;
    padding:calc(var(--mobile-topbar-height) + 9px + var(--safe-top)) 14px calc(52px + var(--safe-bottom));
  }
  .hero-portrait-stage{height:clamp(135px,25dvh,170px);min-height:0}
  .portrait-frame{width:clamp(120px,38vw,150px);border-width:5px;padding:6px}
  .portrait-frame:after{inset:6px}
  .portrait-accent{width:min(66vw,235px);height:56%;top:22%}
  .hero-greeting{font-size:9px;margin-bottom:5px}
  .hero-greeting:before{width:26px;height:26px;left:-7px}
  .hero-section h1{font-size:clamp(24px,8.2vw,31px);line-height:.94}
  .title-decoration{margin-top:5px;height:5px;width:104px}
  .title-decoration span{height:4px;width:36px}
  .typing-line{font-size:10.5px;margin-top:6px;min-height:15px}
  .typing-caret{height:13px}
  .hero-intro{font-size:11.2px;line-height:1.32;margin-top:5px}
  .hero-traits{margin-top:6px;row-gap:2px}
  .hero-traits span{font-size:7px;letter-spacing:.035em}
  .hero-traits span+span:before{margin:0 4px}
  .section-controls{bottom:calc(7px + var(--safe-bottom));grid-template-columns:38px 54px 38px;height:38px}
  .portfolio-section:after{width:132px;height:132px;right:-42px;top:calc(var(--mobile-topbar-height) - 26px)}
}

/* =========================================================
   V2.2 — MOBILE-FIRST RECOMPOSITION
   Mobile is intentionally not a miniaturized desktop layout.
   Desktop rules above remain untouched.
   ========================================================= */
.mobile-bottom-dock{display:none}

@media (max-width:1100px){
  :root{--mobile-topbar-height:64px}

  /* Header: the arrow points right when closed, left when open. */
  .mobile-topbar{
    z-index:80;
    background:color-mix(in srgb,var(--sidebar-bg) 98%,black);
    box-shadow:0 1px 0 color-mix(in srgb,var(--sidebar-text) 11%,transparent),0 8px 30px rgba(0,0,0,.10);
  }
  .mobile-brand-name{font-size:13px;letter-spacing:.055em}
  .mobile-menu-toggle{
    width:44px;height:44px;flex-basis:44px;
    font-size:30px;
    position:relative;z-index:82;
  }
  .mobile-menu-toggle span{transform:translateX(1px) rotate(0deg)}
  .app-shell.mobile-sidebar-open .mobile-menu-toggle span{transform:translateX(-1px) rotate(180deg)}

  /* Drawer: open from the RIGHT. The desktop middle handle disappears. */
  .mobile-sidebar-backdrop{z-index:68}
  .sidebar-toggle{display:none!important}
  .sidebar,
  .app-shell.sidebar-collapsed .sidebar,
  .app-shell:not(.sidebar-collapsed) .sidebar{
    z-index:72;
    top:0;right:0;left:auto;bottom:0;
    width:min(380px,88vw);max-width:88vw;
    height:100vh;height:100dvh;
    padding:calc(var(--mobile-topbar-height) + 28px + var(--safe-top)) 24px calc(84px + var(--safe-bottom));
    transform:translate3d(calc(100% + 30px),0,0);
    box-shadow:-24px 0 60px rgba(0,0,0,.24);
  }
  .app-shell.mobile-sidebar-open .sidebar{transform:translate3d(0,0,0)}
  .sidebar:before{left:34px;top:calc(var(--mobile-topbar-height) + 106px);bottom:92px}
  .brand{gap:13px}
  .brand-mark{width:46px;height:46px;flex-basis:46px;font-size:16px}
  .brand-name{font-size:16px}
  .side-nav{margin-top:52px;gap:10px}
  .side-nav button,
  .sidebar-collapsed .side-nav button{
    min-height:60px;
    padding:0 14px 0 8px;
    grid-template-columns:50px minmax(0,1fr) 9px;
    gap:11px;
  }
  .nav-icon,.sidebar-collapsed .nav-icon{width:44px;height:44px}
  .nav-icon svg{width:22px;height:22px}
  .nav-label{font-size:15px;letter-spacing:.03em}
  .sidebar-bottom,.sidebar-collapsed .sidebar-bottom{padding-top:18px}

  /* Mobile page dock: section navigation + resume + LinkedIn. */
  .section-controls{display:none}
  .mobile-bottom-dock{
    display:flex;
    position:fixed;
    z-index:58;
    left:calc(14px + var(--safe-left));
    right:calc(14px + var(--safe-right));
    bottom:calc(12px + var(--safe-bottom));
    height:58px;
    align-items:stretch;
    justify-content:space-between;
    gap:10px;
    padding:6px;
    background:color-mix(in srgb,var(--sidebar-bg) 96%,black);
    border:1px solid color-mix(in srgb,var(--sidebar-text) 13%,transparent);
    box-shadow:0 14px 34px rgba(0,0,0,.20);
  }
  .mobile-page-nav{display:grid;grid-template-columns:44px 58px 44px;min-width:0}
  .mobile-dock-control{
    border:0;background:transparent;color:var(--sidebar-text);
    display:grid;place-items:center;cursor:pointer;
    font:800 28px/1 "Work Sans",Arial,sans-serif;
  }
  .mobile-dock-control span{display:block}
  .mobile-dock-prev span{transform:rotate(90deg)}
  .mobile-dock-next span{transform:rotate(-90deg)}
  .mobile-dock-control:disabled{opacity:.25;cursor:default}
  .mobile-section-counter{
    display:flex;align-items:center;justify-content:center;gap:4px;
    border-left:1px solid color-mix(in srgb,var(--sidebar-text) 10%,transparent);
    border-right:1px solid color-mix(in srgb,var(--sidebar-text) 10%,transparent);
    color:color-mix(in srgb,var(--sidebar-text) 52%,transparent);
    font:600 9px/1 "Work Sans",Arial,sans-serif;letter-spacing:.06em;
  }
  .mobile-section-counter strong{font-size:13px;color:var(--sidebar-text)}
  .mobile-quick-links{display:flex;align-items:stretch;gap:6px;margin-left:auto}
  .mobile-resume-link,.mobile-linkedin-link{
    text-decoration:none;color:inherit;display:flex;align-items:center;justify-content:center;
  }
  .mobile-resume-link{
    min-width:94px;padding:0 12px;gap:7px;
    background:var(--accent);color:#252525;
    font:800 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.065em;
  }
  .mobile-linkedin-link{
    width:44px;flex:0 0 44px;
    border:1px solid color-mix(in srgb,var(--sidebar-text) 20%,transparent);
    color:var(--sidebar-text);
  }
  .mobile-resume-link svg,.mobile-linkedin-link svg{
    width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  }
  .mobile-bottom-dock .is-disabled{opacity:.38;pointer-events:none}

  /* Tablet composition: lighter visual, readable text, no tiny labels. */
  .portfolio-section:after{top:calc(var(--mobile-topbar-height) - 34px);right:-48px;opacity:.065}
  .hero-section{
    grid-template-columns:minmax(250px,.82fr) minmax(0,1.18fr);
    gap:clamp(34px,5vw,58px);
    padding:calc(var(--mobile-topbar-height) + 34px + var(--safe-top)) 42px calc(88px + var(--safe-bottom));
  }
  .hero-portrait-stage{height:min(58vh,500px);min-height:360px;max-width:410px}
  .portrait-accent{width:102%;height:55%;top:25%}
  .portrait-frame{
    width:clamp(245px,74%,335px);
    border-width:5px;padding:0;
    box-shadow:0 18px 42px rgba(0,0,0,.10);
  }
  .portrait-frame:after{display:none}
  .portrait-frame img{filter:saturate(.92) contrast(1.025)}
  .hero-greeting{font-size:15px;margin-bottom:14px}
  .hero-section h1{font-size:clamp(43px,6vw,60px);line-height:.96}
  .typing-line{font-size:17px;min-height:28px;margin-top:20px}
  .hero-intro{font-size:15.5px;line-height:1.62;margin-top:18px}
  .hero-traits{margin-top:17px;display:flex;flex-wrap:wrap;gap:7px 16px}
  .hero-traits span{font-size:11px;line-height:1.3;letter-spacing:.045em}
  .hero-traits span+span:before{content:"•";margin:0 12px 0 0;color:var(--accent)}
}

/* Portrait tablet and phones: an editorial mobile hero, not desktop shrunk down. */
@media (max-width:760px){
  :root{--mobile-topbar-height:62px}
  .mobile-topbar{padding-left:calc(14px + var(--safe-left));padding-right:calc(12px + var(--safe-right))}
  .mobile-brand-mark{width:38px;height:38px;flex-basis:38px;font-size:12px}
  .mobile-brand-name{font-size:13px;max-width:210px}
  .mobile-menu-toggle{width:42px;height:42px;flex-basis:42px}

  .hero-section{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:stretch;
    gap:18px;
    text-align:left;
    padding:calc(var(--mobile-topbar-height) + 24px + var(--safe-top)) 20px calc(88px + var(--safe-bottom));
  }
  .hero-portrait-stage{
    order:0;
    flex:0 0 auto;
    width:100%;max-width:none;
    height:clamp(190px,27dvh,250px);
    min-height:0;
    display:block;
    opacity:0;
    clip-path:none;
    filter:none;
    transform:translate3d(0,-18px,0) scale(.97);
  }
  .hero-section.is-active .hero-portrait-stage{transform:translate3d(0,0,0) scale(1)}
  .portrait-accent{
    left:4%;right:0;top:34%;
    width:92%;height:46%;
    transform:none!important;
    opacity:1!important;
    animation:none!important;
  }
  .portrait-frame{
    position:absolute;
    right:5%;top:0;
    width:clamp(150px,46vw,220px);
    height:100%;aspect-ratio:auto;
    border:4px solid var(--text);
    padding:0;
    background:var(--section-bg);
    box-shadow:0 16px 34px rgba(0,0,0,.12);
    overflow:hidden;
    clip-path:polygon(0 0,100% 0,100% 94%,91% 100%,0 100%);
  }
  .portrait-frame img{object-position:center 22%;transform:none!important}
  .hero-copy{
    order:1;
    width:100%;max-width:640px;
    padding:0;
    justify-self:auto;
    justify-content:flex-start;
  }
  .hero-copy>*{filter:none}
  .hero-greeting{font-size:13px;margin-bottom:11px}
  .hero-greeting:before{width:35px;height:35px;left:-10px}
  .hero-section h1{font-size:clamp(34px,10.6vw,48px);line-height:.96;letter-spacing:-.045em}
  .title-decoration{width:148px;margin-top:12px}
  .typing-line{font-size:clamp(15px,4.2vw,18px);line-height:1.35;min-height:25px;margin-top:16px}
  .typing-caret{height:20px}
  .hero-intro{font-size:15px;line-height:1.55;margin-top:14px;max-width:620px}
  .hero-traits{margin-top:15px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
  .hero-traits span{font-size:11.5px;line-height:1.35;letter-spacing:.035em}
  .hero-traits span+span:before{content:"•";margin:0 10px 0 0;color:var(--accent)}

  .portfolio-section:after{width:175px;height:175px;right:-50px;top:calc(var(--mobile-topbar-height) - 30px);opacity:.06}
  .portfolio-section:not(.hero-section):before{left:20px;right:20px;bottom:82px}
}

@media (max-width:430px){
  .mobile-brand-name{max-width:170px}
  .sidebar,.app-shell.sidebar-collapsed .sidebar,.app-shell:not(.sidebar-collapsed) .sidebar{
    width:90vw;max-width:90vw;
    padding-left:19px;padding-right:19px;
  }
  .side-nav{margin-top:40px;gap:8px}
  .side-nav button,.sidebar-collapsed .side-nav button{min-height:57px}
  .nav-label{font-size:14px}

  .mobile-bottom-dock{left:calc(9px + var(--safe-left));right:calc(9px + var(--safe-right));bottom:calc(8px + var(--safe-bottom));height:56px;gap:6px;padding:5px}
  .mobile-page-nav{grid-template-columns:40px 52px 40px}
  .mobile-resume-link{min-width:82px;padding:0 9px;font-size:9px;gap:5px}
  .mobile-linkedin-link{width:40px;flex-basis:40px}
  .mobile-resume-link svg,.mobile-linkedin-link svg{width:17px;height:17px}

  .hero-section{gap:15px;padding-left:17px;padding-right:17px;padding-bottom:calc(80px + var(--safe-bottom))}
  .hero-portrait-stage{height:clamp(172px,25dvh,215px)}
  .portrait-frame{width:clamp(140px,45vw,185px);right:4%;border-width:3px}
  .portrait-accent{left:2%;width:94%;top:35%;height:44%}
  .hero-greeting{font-size:12.5px}
  .hero-section h1{font-size:clamp(32px,10.4vw,41px)}
  .typing-line{font-size:15px}
  .hero-intro{font-size:14.5px;line-height:1.52}
  .hero-traits{gap:7px 12px}
  .hero-traits span{font-size:11px}
}

/* Very narrow phones: simplify instead of making text microscopic. */
@media (max-width:340px){
  .mobile-brand-name{display:none}
  .mobile-page-nav{grid-template-columns:38px 46px 38px}
  .mobile-resume-link{min-width:46px;width:46px;padding:0}
  .mobile-resume-link span{display:none}
  .mobile-linkedin-link{width:38px;flex-basis:38px}
  .mobile-bottom-dock{gap:4px}
  .hero-section{padding-left:14px;padding-right:14px;gap:12px}
  .hero-portrait-stage{height:150px}
  .portrait-frame{width:130px;right:3%}
  .portrait-accent{width:90%;left:3%}
  .hero-greeting{font-size:12px;margin-bottom:9px}
  .hero-section h1{font-size:30px}
  .title-decoration{width:120px;margin-top:9px}
  .typing-line{font-size:14px;margin-top:12px}
  .hero-intro{font-size:14px;line-height:1.47}
  .hero-traits{gap:5px 10px;margin-top:12px}
  .hero-traits span{font-size:10.5px}
  .hero-traits span+span:before{margin-right:7px}
}

/* Landscape mobile: use a purposeful two-column editorial layout, not tiny portrait typography. */
@media (min-width:560px) and (max-width:1100px) and (max-height:620px){
  :root{--mobile-topbar-height:54px}
  .mobile-topbar{height:calc(var(--mobile-topbar-height) + var(--safe-top))}
  .mobile-menu-toggle{width:38px;height:38px;flex-basis:38px}
  .hero-section{
    display:grid;
    grid-template-columns:minmax(180px,.62fr) minmax(0,1.38fr);
    grid-template-rows:1fr;
    gap:28px;
    padding:calc(var(--mobile-topbar-height) + 16px + var(--safe-top)) 28px calc(72px + var(--safe-bottom));
    align-items:center;
  }
  .hero-portrait-stage{order:initial;width:100%;height:min(62vh,290px);max-width:320px}
  .portrait-frame{position:absolute;right:5%;width:72%;height:100%;border-width:3px}
  .portrait-accent{left:0;top:34%;width:94%;height:44%}
  .hero-copy{order:initial}
  .hero-greeting{font-size:12.5px;margin-bottom:8px}
  .hero-greeting:before{width:32px;height:32px;left:-9px}
  .hero-section h1{font-size:clamp(31px,5.2vw,44px)}
  .title-decoration{margin-top:8px;width:130px}
  .typing-line{font-size:14px;margin-top:10px;min-height:20px}
  .hero-intro{font-size:13.5px;line-height:1.43;margin-top:9px}
  .hero-traits{margin-top:9px;gap:5px 12px}
  .hero-traits span{font-size:10px}
  .portfolio-section:after{width:145px;height:145px;top:calc(var(--mobile-topbar-height) - 30px)}
}

/* Short portrait phones: remove decoration before sacrificing readability. */
@media (max-width:559px) and (max-height:680px){
  :root{--mobile-topbar-height:54px}
  .mobile-topbar{height:calc(var(--mobile-topbar-height) + var(--safe-top))}
  .mobile-brand-mark{width:34px;height:34px;flex-basis:34px}
  .mobile-menu-toggle{width:38px;height:38px;flex-basis:38px}
  .hero-section{gap:9px;padding-top:calc(var(--mobile-topbar-height) + 10px + var(--safe-top));padding-bottom:calc(68px + var(--safe-bottom))}
  .hero-portrait-stage{height:128px}
  .portrait-frame{width:112px;right:3%;border-width:3px}
  .portrait-accent{top:37%;height:42%}
  .hero-greeting{font-size:11.5px;margin-bottom:6px}
  .hero-greeting:before{width:29px;height:29px;left:-8px}
  .hero-section h1{font-size:clamp(27px,8.7vw,34px)}
  .title-decoration{display:none}
  .typing-line{font-size:13px;margin-top:7px;min-height:18px}
  .typing-caret{height:16px}
  .hero-intro{font-size:13.5px;line-height:1.4;margin-top:6px}
  .hero-traits{margin-top:7px;gap:4px 10px}
  .hero-traits span{font-size:10px}
  .mobile-bottom-dock{height:50px;bottom:calc(6px + var(--safe-bottom))}
  .mobile-page-nav{grid-template-columns:36px 46px 36px}
  .mobile-resume-link{min-width:72px}
  .mobile-linkedin-link{width:36px;flex-basis:36px}
}

/* =========================================================
   V2.3 — MOBILE NAVIGATION + RECRUITER ACTIONS
   Keep desktop identity, redesign the small-screen mechanics.
   ========================================================= */
.hero-title-short{display:none}
.contact-link{
  width:44px;height:44px;flex:0 0 44px;
  border:1px solid color-mix(in srgb,var(--sidebar-text) 22%,transparent);
  background:transparent;color:color-mix(in srgb,var(--sidebar-text) 72%,transparent);
  display:grid;place-items:center;cursor:pointer;
  transition:color .25s ease,border-color .25s ease,background .25s ease,transform .25s ease;
}
.contact-link svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-link:hover{color:var(--sidebar-text);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);transform:translateY(-2px)}

/* RESUME remains readable even when the desktop sidebar is collapsed. */
.sidebar-collapsed .sidebar-bottom{gap:7px}
.sidebar-collapsed .resume-link{
  width:46px;height:56px;flex:0 0 56px;padding:5px 2px;
  flex-direction:column;gap:3px;
}
.sidebar-collapsed .footer-label{
  display:block!important;
  font-size:7.5px;line-height:1;letter-spacing:.045em;
}
.sidebar-collapsed .linkedin-link,.sidebar-collapsed .contact-link{width:44px;height:44px;flex-basis:44px}

.mobile-page-nav-floating,.mobile-recruiter-actions{display:none}

@media (max-width:1100px){
  /* Long labels are allowed to breathe instead of being truncated. */
  .side-nav button,.sidebar-collapsed .side-nav button{
    white-space:normal;
    height:auto;
    min-height:60px;
    align-items:center;
  }
  .nav-label{
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.22;
    font-size:14.5px;
    letter-spacing:.025em;
  }
  .sidebar-bottom,.sidebar-collapsed .sidebar-bottom{
    flex-direction:row;
    gap:8px;
    align-items:center;
  }
  .sidebar-collapsed .resume-link{
    width:auto;height:44px;flex:1 1 auto;padding:0 12px;
    flex-direction:row;gap:8px;
  }
  .sidebar-collapsed .footer-label{font-size:10px;letter-spacing:.07em}

  /* Mobile drawer arrow: closed points LEFT (towards drawer), open points RIGHT. */
  .mobile-menu-toggle span{transform:translateX(-1px) rotate(0deg)!important}
  .app-shell.mobile-sidebar-open .mobile-menu-toggle span{transform:translateX(1px) rotate(180deg)!important}

  /* Remove the old bottom dock completely. */
  .mobile-bottom-dock{display:none!important}
  .section-controls{display:none!important}

  /* Independent section navigation: no enclosing black bar. */
  .mobile-page-nav-floating{
    display:grid;
    position:fixed;
    z-index:57;
    left:calc(12px + var(--safe-left));
    bottom:calc(12px + var(--safe-bottom));
    grid-template-columns:44px 48px 44px;
    align-items:center;
    gap:5px;
  }
  .mobile-page-arrow{
    width:44px;height:44px;border:0;background:var(--accent);color:#252525;
    display:grid;place-items:center;cursor:pointer;
    box-shadow:0 10px 26px rgba(0,0,0,.14);
    font:800 28px/1 "Work Sans",Arial,sans-serif;
    transition:transform .22s ease,opacity .22s ease,box-shadow .22s ease;
  }
  .mobile-page-prev span{display:block;transform:rotate(90deg)}
  .mobile-page-next span{display:block;transform:rotate(-90deg)}
  .mobile-page-arrow:not(:disabled):active{transform:scale(.94)}
  .mobile-page-arrow:disabled{opacity:.27;cursor:default;box-shadow:none}
  .mobile-section-counter{
    min-width:48px;height:44px;
    display:flex;align-items:center;justify-content:center;gap:3px;
    color:color-mix(in srgb,var(--text) 48%,transparent);
    font:650 9px/1 "Work Sans",Arial,sans-serif;
    letter-spacing:.03em;
  }
  .mobile-section-counter strong{font-size:13px;color:var(--text)}

  /* RESUME is always visible. + expands the secondary recruiter actions upward. */
  .mobile-recruiter-actions{
    display:flex;
    position:fixed;
    z-index:60;
    right:calc(12px + var(--safe-right));
    bottom:calc(12px + var(--safe-bottom));
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
    pointer-events:none;
  }
  .mobile-action-primary,.mobile-action-menu{pointer-events:auto}
  .mobile-action-primary{display:flex;align-items:center;gap:7px}
  .mobile-resume-primary{
    height:44px;min-width:100px;padding:0 13px;
    display:flex;align-items:center;justify-content:center;gap:7px;
    background:var(--accent);color:#252525;text-decoration:none;
    font:800 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.075em;
    box-shadow:0 10px 26px rgba(0,0,0,.14);
  }
  .mobile-resume-primary svg,.mobile-action-item svg{
    width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 18px;
  }
  .mobile-action-toggle{
    width:44px;height:44px;border:1px solid color-mix(in srgb,var(--text) 18%,var(--line));
    background:var(--section-bg);color:var(--text);cursor:pointer;
    display:grid;place-items:center;
    box-shadow:0 10px 26px rgba(0,0,0,.11);
  }
  .mobile-action-toggle span{font:500 27px/1 "Inter",Arial,sans-serif;transition:transform .32s cubic-bezier(.16,1,.3,1)}
  .mobile-action-toggle[aria-expanded="true"] span{transform:rotate(45deg)}
  .mobile-action-menu{
    display:flex;flex-direction:column;align-items:stretch;gap:7px;
    width:145px;
    opacity:0;visibility:hidden;
    transform:translate3d(0,12px,0) scale(.96);
    transform-origin:bottom right;
    transition:opacity .24s ease,transform .32s cubic-bezier(.16,1,.3,1),visibility .24s step-end;
  }
  .mobile-action-menu[aria-hidden="false"]{
    opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1);
    transition:opacity .24s ease,transform .32s cubic-bezier(.16,1,.3,1),visibility 0s;
  }
  .mobile-action-item{
    width:100%;min-height:42px;padding:0 12px;border:1px solid color-mix(in srgb,var(--text) 13%,var(--line));
    background:color-mix(in srgb,var(--section-bg) 96%,transparent);color:var(--text);
    display:flex;align-items:center;gap:9px;text-decoration:none;cursor:pointer;
    font:750 10px/1.1 "Work Sans",Arial,sans-serif;letter-spacing:.055em;text-align:left;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
    backdrop-filter:blur(8px);
  }
  .mobile-action-item.is-disabled,.mobile-resume-primary.is-disabled{opacity:.4;pointer-events:none}

  .portfolio-section:not(.hero-section):before{bottom:70px}
}

/* Mobile hero: a compact portrait signature rather than a reduced desktop frame. */
@media (max-width:760px){
  .hero-section{
    display:block;
    position:relative;
    padding:calc(var(--mobile-topbar-height) + 26px + var(--safe-top)) 20px calc(76px + var(--safe-bottom));
    text-align:left;
  }
  .hero-copy{display:block;width:100%;max-width:none;padding:0;position:relative;z-index:3}
  .hero-greeting{font-size:13px;margin-bottom:12px}
  .hero-section h1{
    font-size:clamp(35px,10vw,49px);
    line-height:.94;
    max-width:calc(100% - 150px);
    min-height:1.9em;
  }
  .title-decoration{width:132px;margin-top:12px}

  .hero-portrait-stage{
    position:absolute;
    z-index:2;
    top:calc(var(--mobile-topbar-height) + 22px + var(--safe-top));
    right:20px;
    width:126px;height:148px;min-height:0;max-width:none;
    display:block;
    opacity:0;filter:none;clip-path:none;
    transform:translate3d(14px,-12px,0) scale(.94) rotate(1.2deg);
  }
  .hero-section.is-active .hero-portrait-stage{transform:translate3d(0,0,0) scale(1) rotate(0)}
  .portrait-accent{
    left:10px;top:14px;width:116px;height:134px;
    background:var(--accent);
    transform:translate3d(0,0,0)!important;
    opacity:1!important;animation:none!important;
    clip-path:polygon(0 0,100% 0,100% 84%,84% 100%,0 100%);
  }
  .portrait-frame{
    position:absolute;left:0;top:0;width:112px;height:136px;aspect-ratio:auto;
    border:1px solid color-mix(in srgb,var(--text) 24%,transparent);padding:0;
    background:var(--section-bg);overflow:hidden;
    box-shadow:0 13px 28px rgba(0,0,0,.13);
    clip-path:polygon(0 0,100% 0,100% 84%,84% 100%,0 100%);
    transform:none!important;
  }
  .portrait-frame:after{display:none}
  .portrait-frame img{width:100%;height:100%;object-fit:cover;object-position:center 20%;transform:none!important;filter:saturate(.92) contrast(1.025)}

  /* Push long-form content below the portrait signature. */
  .typing-line{margin-top:54px;font-size:16px;min-height:24px;line-height:1.35}
  .hero-intro{font-size:15px;line-height:1.58;margin-top:14px;max-width:none}
  .hero-traits{margin-top:15px;display:flex;flex-wrap:wrap;gap:7px 12px}
  .hero-traits span{font-size:11px;line-height:1.28;white-space:normal}
  .hero-traits span+span:before{margin:0 8px 0 0}

  .portfolio-section:after{width:164px;height:164px;right:-47px;top:calc(var(--mobile-topbar-height) - 28px)}
}

@media (max-width:430px){
  .mobile-brand-name{font-size:12px;max-width:145px}
  .side-nav{margin-top:34px;gap:6px}
  .side-nav button,.sidebar-collapsed .side-nav button{min-height:58px;padding-right:9px}
  .nav-label{font-size:13.2px;line-height:1.2;letter-spacing:.018em}

  .hero-section{padding-left:17px;padding-right:17px;padding-top:calc(var(--mobile-topbar-height) + 23px + var(--safe-top))}
  .hero-portrait-stage{right:17px;width:112px;height:132px;top:calc(var(--mobile-topbar-height) + 19px + var(--safe-top))}
  .portrait-accent{left:9px;top:12px;width:103px;height:120px}
  .portrait-frame{width:99px;height:121px}
  .hero-section h1{font-size:clamp(32px,10.6vw,41px);max-width:calc(100% - 126px);min-height:1.9em}
  .typing-line{margin-top:44px;font-size:15px}
  .hero-intro{font-size:14.5px;line-height:1.54}
  .hero-traits{gap:6px 10px}
  .hero-traits span{font-size:10.8px}

  .mobile-page-nav-floating{left:calc(8px + var(--safe-left));bottom:calc(8px + var(--safe-bottom));grid-template-columns:40px 40px 40px;gap:3px}
  .mobile-page-arrow{width:40px;height:40px;font-size:25px}
  .mobile-section-counter{min-width:40px;height:40px;font-size:8px}
  .mobile-section-counter strong{font-size:12px}
  .mobile-recruiter-actions{right:calc(8px + var(--safe-right));bottom:calc(8px + var(--safe-bottom));gap:6px}
  .mobile-action-primary{gap:5px}
  .mobile-resume-primary{height:40px;min-width:88px;padding:0 10px;font-size:9.5px}
  .mobile-action-toggle{width:40px;height:40px}
  .mobile-action-menu{width:132px;gap:5px}
  .mobile-action-item{min-height:39px;padding:0 10px;font-size:9.3px}
}

/* If the complete name would become cramped, use the intentional short identity. */
@media (max-width:390px){
  .mobile-brand-name{display:none}
  .hero-title-full{display:none}
  .hero-title-short{display:inline}
  .hero-section h1{max-width:calc(100% - 116px);font-size:35px;min-height:1em}
  .hero-portrait-stage{width:103px;height:124px;right:14px}
  .portrait-accent{width:95px;height:112px;left:8px;top:11px}
  .portrait-frame{width:91px;height:113px}
  .typing-line{margin-top:39px}
}

@media (max-width:340px){
  .hero-section{padding-left:14px;padding-right:14px}
  .hero-greeting{font-size:11.5px}
  .hero-section h1{font-size:32px;max-width:calc(100% - 102px)}
  .hero-portrait-stage{right:12px;width:91px;height:110px}
  .portrait-accent{width:83px;height:99px;left:8px;top:10px}
  .portrait-frame{width:80px;height:100px}
  .typing-line{margin-top:31px;font-size:14px}
  .hero-intro{font-size:14px;line-height:1.48}
  .hero-traits span{font-size:10.3px}
  .mobile-resume-primary{min-width:82px;padding:0 8px}
}

/* Low-height landscape: keep the bespoke two-column layout, but use the lighter portrait styling. */
@media (min-width:560px) and (max-width:1100px) and (max-height:620px){
  .hero-section{
    display:grid;
    grid-template-columns:minmax(150px,.52fr) minmax(0,1.48fr);
    gap:26px;
    padding:calc(var(--mobile-topbar-height) + 14px + var(--safe-top)) 24px calc(62px + var(--safe-bottom));
  }
  .hero-portrait-stage{position:relative;top:auto;right:auto;width:100%;height:min(57vh,250px);max-width:230px}
  .portrait-accent{left:12%;top:13%;width:84%;height:84%}
  .portrait-frame{left:0;top:0;width:82%;height:100%}
  .hero-section h1{max-width:none;min-height:0;font-size:clamp(30px,5.1vw,43px)}
  .typing-line{margin-top:10px;font-size:14px}
  .hero-intro{font-size:13.5px;line-height:1.42;margin-top:9px}
  .hero-traits{margin-top:8px}
}

/* Mobile topbar name fallback */
.mobile-brand-short{display:none}
@media (max-width:390px){
  .mobile-brand-name{display:block!important;max-width:90px!important}
  .mobile-brand-full{display:none}
  .mobile-brand-short{display:inline}
}

/* V2.3.1 — keep long mobile menu labels and footer actions fully visible */
@media (max-width:430px){
  .sidebar,.app-shell.sidebar-collapsed .sidebar,.app-shell:not(.sidebar-collapsed) .sidebar{
    width:94vw!important;max-width:94vw!important;
    padding-left:18px;padding-right:18px;
  }
  .side-nav button,.sidebar-collapsed .side-nav button{
    grid-template-columns:44px minmax(0,1fr) 6px;
    gap:9px;padding-left:6px;padding-right:7px;
  }
  .nav-icon,.sidebar-collapsed .nav-icon{width:40px;height:40px}
  .nav-label{font-size:13px;line-height:1.18;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal}
  .sidebar-bottom,.sidebar-collapsed .sidebar-bottom{
    display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;gap:7px;width:100%;
  }
  .sidebar-bottom .resume-link,.sidebar-collapsed .sidebar-bottom .resume-link{width:100%;min-width:0}
  .sidebar-bottom .linkedin-link,.sidebar-bottom .contact-link,
  .sidebar-collapsed .sidebar-bottom .linkedin-link,.sidebar-collapsed .sidebar-bottom .contact-link{
    width:42px;height:44px;min-width:42px;flex:0 0 42px;
  }
}


/* =========================================================
   V2.4 — SMALL/MEDIUM SCREEN REFINEMENTS
   Focused changes only: menu arrow alignment, mobile title,
   tighter title/typing rhythm, and stacked work traits.
   ========================================================= */
@media (max-width:1100px){
  /* Keep the mobile drawer arrow optically centered in its square. */
  .mobile-menu-toggle{
    display:grid!important;
    place-items:center!important;
    padding:0!important;
  }
  .mobile-menu-toggle span{
    width:100%;height:100%;
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
    margin:0!important;
    transform:rotate(0deg)!important;
    transform-origin:50% 50%!important;
  }
  .app-shell.mobile-sidebar-open .mobile-menu-toggle span{
    transform:rotate(180deg)!important;
  }

  /* On tablet/mobile, each interpersonal quality gets its own line. */
  .hero-traits{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:6px!important;
  }
  .hero-traits span{
    display:block!important;
    width:auto!important;
    white-space:normal!important;
  }
  .hero-traits span+span:before{display:none!important}
}

@media (max-width:760px){
  /* Tighten the rhythm between the identity and the typing line. */
  .typing-line{margin-top:34px!important}
}

@media (max-width:430px){
  .typing-line{margin-top:27px!important}
  .hero-traits{gap:5px!important}
}

@media (max-width:390px){
  /* Preserve the complete identity instead of shortening it to IVAN. */
  .hero-title-full{display:none!important}
  .hero-title-short{display:inline-block!important}
  .hero-title-lastname{display:inline-block;margin-top:.04em}
  .hero-section h1{
    max-width:calc(100% - 116px);
    min-height:1.82em!important;
    line-height:.88!important;
  }
  .typing-line{margin-top:22px!important}
}

@media (max-width:340px){
  .typing-line{margin-top:18px!important}
}

/* =========================================================
   V2.5 — HERO ALIGNMENT / TRAIT TIMELINE / TITLE UNDERLINE
   Focused refinements only.
   ========================================================= */

/* Keep the Hero composition vertically balanced on every screen. */
.hero-section{
  align-items:center;
  align-content:center;
}
.hero-copy{
  align-self:center;
}

/* Work traits: three clean points connected by a vertical line. */
.hero-traits{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  padding-left:20px;
}
.hero-traits::before{
  content:"";
  position:absolute;
  left:4px;
  top:7px;
  bottom:7px;
  width:1px;
  background:color-mix(in srgb,var(--accent) 72%,var(--line));
}
.hero-traits span{
  position:relative;
  display:block!important;
  width:auto!important;
  white-space:normal!important;
}
.hero-traits span::before,
.hero-traits span+span::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:-20px!important;
  top:50%!important;
  width:9px!important;
  height:9px!important;
  margin:0!important;
  border-radius:50%!important;
  background:var(--accent)!important;
  transform:translateY(-50%)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)!important;
}

/* The title underline remains part of the identity on every viewport. */
.title-decoration{
  display:flex!important;
}

/* Portrait phones: vertically center the textual composition instead of pinning it high. */
@media (max-width:760px) and (orientation:portrait){
  .hero-section{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  .hero-copy{
    width:100%!important;
  }
}

@media (max-width:430px){
  .hero-traits{
    gap:7px!important;
    padding-left:19px;
  }
  .hero-traits::before{left:4px;top:6px;bottom:6px}
  .hero-traits span::before,
  .hero-traits span+span::before{
    left:-19px!important;
    width:8px!important;
    height:8px!important;
  }
  .title-decoration{
    margin-top:9px!important;
  }
}

/* Preserve the dedicated low-height landscape composition. */
@media (min-width:560px) and (max-width:760px) and (max-height:620px){
  .hero-section{
    display:grid!important;
    justify-content:initial!important;
  }
}

/* V2.6 — raise mobile bottom controls away from rounded/safe edges. */
@media (max-width:760px){
  .mobile-page-nav-floating{
    bottom:calc(18px + var(--safe-bottom))!important;
  }
  .mobile-recruiter-actions{
    bottom:calc(18px + var(--safe-bottom))!important;
  }
}

@media (max-width:430px){
  .mobile-page-nav-floating{
    bottom:calc(16px + var(--safe-bottom))!important;
  }
  .mobile-recruiter-actions{
    bottom:calc(16px + var(--safe-bottom))!important;
  }
}

/* =========================================================
   V2.7 — CORE EXPERTISE
   Focused recruiter-facing expertise screen.
   ========================================================= */
.expertise-section{background:var(--section-bg);display:flex;align-items:center;padding:54px 64px 58px;position:relative}
.expertise-shell{width:min(1180px,100%);height:min(760px,calc(100vh - 112px));margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:24px;position:relative;z-index:2}
.expertise-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);column-gap:52px;align-items:end}
.section-kicker{grid-column:1;margin:0 0 9px;width:max-content;position:relative;font:700 13px/1.2 "Work Sans",Arial,sans-serif;letter-spacing:.07em;color:var(--text)}
.section-kicker:before{content:"";position:absolute;left:-10px;top:50%;width:34px;height:34px;border-radius:50%;background:var(--accent);transform:translateY(-50%);z-index:-1}
.expertise-heading h2{grid-column:1;margin:0;font:700 clamp(38px,3.9vw,62px)/.98 "Work Sans",Arial,sans-serif;letter-spacing:-.045em;color:var(--text);text-transform:uppercase}
.section-title-decoration{grid-column:1;width:168px;height:9px;display:flex;align-items:center;margin-top:14px}
.section-title-decoration span{width:56px;height:7px;background:var(--accent);clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%)}
.section-title-decoration i{height:1px;flex:1;background:var(--line);display:block;margin-left:-3px}
.expertise-intro{grid-column:2;grid-row:1/4;align-self:center;margin:0;color:var(--muted);font-size:14.5px;line-height:1.72;max-width:510px}

.expertise-layout{min-height:0;display:grid;grid-template-columns:minmax(310px,.83fr) minmax(430px,1.17fr);gap:22px}
.expertise-tabs{min-height:0;display:grid;grid-template-rows:repeat(4,1fr);gap:8px}
.expertise-tab{position:relative;width:100%;min-height:0;padding:13px 18px 13px 14px;border:1px solid color-mix(in srgb,var(--line) 78%,transparent);background:color-mix(in srgb,var(--section-bg) 98%,var(--text));color:var(--text);display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:13px;text-align:left;cursor:pointer;overflow:hidden;transition:background .35s cubic-bezier(.16,1,.3,1),color .3s ease,border-color .3s ease,transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
.expertise-tab:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--accent);transform:scaleY(0);transform-origin:center;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.expertise-tab:hover{transform:translateX(4px);border-color:color-mix(in srgb,var(--text) 20%,var(--line))}
.expertise-tab.active{background:linear-gradient(112deg,color-mix(in srgb,var(--sidebar-bg) 98%,#000) 0%,color-mix(in srgb,var(--sidebar-bg) 91%,var(--accent)) 125%);color:var(--sidebar-text);border-color:transparent;box-shadow:0 16px 34px rgba(0,0,0,.12);transform:translateX(7px)}
.expertise-tab.active:before{transform:scaleY(1)}
.expertise-tab-icon{width:48px;height:48px;display:grid;place-items:center;color:color-mix(in srgb,var(--text) 64%,var(--muted));border:1px solid color-mix(in srgb,var(--text) 13%,var(--line));transition:color .3s ease,border-color .3s ease,background .3s ease,transform .35s ease}
.expertise-tab-icon svg{width:25px;height:25px;display:block;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.expertise-tab.active .expertise-tab-icon{color:#252525;background:var(--accent);border-color:var(--accent);transform:rotate(-2deg)}
.expertise-tab-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.expertise-tab-copy small{font:750 8px/1 "Work Sans",Arial,sans-serif;letter-spacing:.14em;color:var(--muted);text-transform:uppercase}
.expertise-tab.active .expertise-tab-copy small{color:color-mix(in srgb,var(--sidebar-text) 55%,transparent)}
.expertise-tab-copy strong{font:700 clamp(14px,1.15vw,17px)/1.12 "Work Sans",Arial,sans-serif;letter-spacing:-.015em;text-transform:uppercase;white-space:normal}
.expertise-tab-arrow{font:500 24px/1 "Work Sans",Arial,sans-serif;color:color-mix(in srgb,var(--text) 26%,var(--muted));transition:transform .3s ease,color .3s ease}
.expertise-tab.active .expertise-tab-arrow{color:var(--accent);transform:translateX(2px)}

.expertise-panels{position:relative;min-width:0;min-height:0;border:1px solid color-mix(in srgb,var(--line) 76%,transparent);background:linear-gradient(145deg,var(--section-bg),color-mix(in srgb,var(--section-bg) 96%,var(--accent)));overflow:hidden}
.expertise-panels:before{content:"";position:absolute;right:-70px;top:-85px;width:245px;height:245px;border-radius:50%;border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);box-shadow:0 0 0 32px color-mix(in srgb,var(--accent) 4%,transparent),0 0 0 64px color-mix(in srgb,var(--accent) 2.5%,transparent);pointer-events:none}
.expertise-panel{height:100%;padding:28px 32px 25px;display:flex;flex-direction:column;position:relative;z-index:1;opacity:0;transform:translate3d(24px,0,0);filter:blur(5px);transition:opacity .42s ease,transform .62s cubic-bezier(.16,1,.3,1),filter .45s ease}
.expertise-panel.active{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
.expertise-panel[hidden]{display:none!important}
.expertise-panel-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.expertise-panel-topline>span{font:800 11px/1 "Work Sans",Arial,sans-serif;color:var(--accent);letter-spacing:.13em}
.expertise-panel-topline p{margin:0;padding:7px 10px;border:1px solid color-mix(in srgb,var(--text) 14%,var(--line));font:750 8.5px/1 "Work Sans",Arial,sans-serif;letter-spacing:.095em;color:color-mix(in srgb,var(--text) 68%,var(--muted));text-transform:uppercase;background:color-mix(in srgb,var(--section-bg) 88%,transparent)}
.expertise-panel h3{margin:0;font:700 clamp(27px,2.45vw,40px)/1 "Work Sans",Arial,sans-serif;letter-spacing:-.035em;text-transform:uppercase;color:var(--text);max-width:620px}
.expertise-summary{margin:14px 0 18px;color:var(--muted);font-size:13.8px;line-height:1.62;max-width:620px}
.expertise-capabilities{display:grid;gap:7px;margin-top:auto;margin-bottom:18px}
.expertise-capabilities>div{display:grid;grid-template-columns:16px 1fr;align-items:center;gap:9px;min-height:26px}
.expertise-capabilities>div>span{width:8px;height:8px;border-radius:50%;background:var(--accent);position:relative;margin-left:1px}
.expertise-capabilities>div>span:after{content:"";position:absolute;left:50%;top:8px;width:1px;height:25px;background:color-mix(in srgb,var(--accent) 38%,var(--line));transform:translateX(-50%)}
.expertise-capabilities>div:last-child>span:after{display:none}
.expertise-capabilities p{margin:0;font:650 11px/1.35 "Work Sans",Arial,sans-serif;letter-spacing:.015em;color:color-mix(in srgb,var(--text) 80%,var(--muted))}
.expertise-tools{display:flex;flex-wrap:wrap;gap:6px}
.expertise-tools span{padding:7px 9px;border:1px solid color-mix(in srgb,var(--text) 10%,var(--line));background:color-mix(in srgb,var(--section-bg) 94%,var(--line));font:650 8.5px/1 "Work Sans",Arial,sans-serif;letter-spacing:.035em;color:color-mix(in srgb,var(--text) 64%,var(--muted));white-space:nowrap}

.mobile-exploration{display:grid;grid-template-columns:46px auto minmax(260px,1fr);align-items:center;gap:13px 16px;padding:13px 17px;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);background:color-mix(in srgb,var(--section-bg) 97%,var(--text));min-height:66px}
.mobile-exploration-icon{width:42px;height:42px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--section-bg));color:var(--text)}
.mobile-exploration-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.mobile-exploration>div{display:flex;flex-direction:column;gap:3px;min-width:185px}
.mobile-exploration small{font:750 7.5px/1 "Work Sans",Arial,sans-serif;letter-spacing:.14em;color:var(--muted)}
.mobile-exploration strong{font:700 12px/1.15 "Work Sans",Arial,sans-serif;letter-spacing:.015em;color:var(--text)}
.mobile-exploration p{margin:0;color:var(--muted);font-size:11.2px;line-height:1.45}

/* Section entrance — slower and layered, consistent with the Hero. */
.expertise-heading>*{opacity:0;filter:blur(5px);transform:translate3d(0,20px,0);transition:opacity .9s ease,transform 1.05s cubic-bezier(.16,1,.3,1),filter .9s ease}
.expertise-layout{opacity:0;filter:blur(7px);transform:translate3d(0,32px,0) scale(.985);transition:opacity 1s .24s ease,transform 1.22s .24s cubic-bezier(.16,1,.3,1),filter 1s .24s ease}
.mobile-exploration{opacity:0;transform:translate3d(0,20px,0);transition:opacity .9s .48s ease,transform 1.05s .48s cubic-bezier(.16,1,.3,1)}
.expertise-section.is-active .expertise-heading>*{opacity:1;filter:blur(0);transform:translate3d(0,0,0)}
.expertise-section.is-active .expertise-heading>*:nth-child(1){transition-delay:.18s}
.expertise-section.is-active .expertise-heading>*:nth-child(2){transition-delay:.28s}
.expertise-section.is-active .expertise-heading>*:nth-child(3){transition-delay:.38s}
.expertise-section.is-active .expertise-heading>*:nth-child(4){transition-delay:.46s}
.expertise-section.is-active .expertise-layout{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}
.expertise-section.is-active .mobile-exploration{opacity:1;transform:translate3d(0,0,0)}

@media (min-width:1101px) and (max-height:760px){
  .expertise-section{padding-top:38px;padding-bottom:42px}
  .expertise-shell{height:calc(100vh - 80px);gap:15px}
  .expertise-heading h2{font-size:42px}.expertise-intro{font-size:12.5px;line-height:1.5}.section-kicker{margin-bottom:6px}.section-title-decoration{margin-top:9px}
  .expertise-layout{grid-template-columns:minmax(280px,.8fr) minmax(400px,1.2fr);gap:15px}
  .expertise-tabs{gap:6px}.expertise-tab{padding-top:8px;padding-bottom:8px;grid-template-columns:42px minmax(0,1fr) 16px}.expertise-tab-icon{width:42px;height:42px}.expertise-tab-icon svg{width:22px;height:22px}
  .expertise-panel{padding:20px 26px 18px}.expertise-panel-topline{margin-bottom:10px}.expertise-summary{margin:10px 0 12px;line-height:1.48}.expertise-capabilities{gap:4px;margin-bottom:12px}.expertise-tools span{padding:6px 8px}
  .mobile-exploration{min-height:54px;padding:8px 13px}.mobile-exploration-icon{width:36px;height:36px}.mobile-exploration p{font-size:10.4px;line-height:1.35}
}

@media (max-width:1100px){
  .expertise-section{padding:calc(var(--mobile-topbar-height) + 25px + var(--safe-top)) 34px calc(76px + var(--safe-bottom));align-items:center}
  .expertise-shell{height:min(760px,calc(100dvh - var(--mobile-topbar-height) - var(--safe-top) - var(--safe-bottom) - 96px));gap:16px}
  .expertise-heading{grid-template-columns:1fr minmax(250px,42%);column-gap:28px}.expertise-heading h2{font-size:clamp(36px,5.2vw,52px)}.expertise-intro{font-size:13px;line-height:1.55}.section-title-decoration{margin-top:10px}
  .expertise-layout{grid-template-columns:minmax(260px,.78fr) minmax(370px,1.22fr);gap:14px}
  .expertise-tab{grid-template-columns:42px minmax(0,1fr) 14px;padding:9px 12px 9px 10px;gap:10px}.expertise-tab-icon{width:42px;height:42px}.expertise-tab-icon svg{width:22px;height:22px}.expertise-tab-copy strong{font-size:13px}.expertise-tab-copy small{font-size:7px}
  .expertise-panel{padding:20px 22px 18px}.expertise-panel h3{font-size:30px}.expertise-summary{font-size:12.5px;line-height:1.5;margin:10px 0 13px}.expertise-capabilities{gap:4px;margin-bottom:12px}.expertise-capabilities p{font-size:10.5px}.expertise-tools span{font-size:8px;padding:6px 7px}
  .mobile-exploration{grid-template-columns:40px auto 1fr;padding:9px 12px;min-height:56px}.mobile-exploration-icon{width:36px;height:36px}.mobile-exploration strong{font-size:11px}.mobile-exploration p{font-size:10.2px;line-height:1.35}
}

@media (max-width:760px){
  .expertise-section{display:flex;padding:calc(var(--mobile-topbar-height) + 18px + var(--safe-top)) 18px calc(70px + var(--safe-bottom));align-items:center}
  .expertise-shell{height:auto;max-height:calc(100dvh - var(--mobile-topbar-height) - var(--safe-top) - var(--safe-bottom) - 88px);grid-template-rows:auto auto auto;gap:13px}
  .expertise-heading{display:block}.section-kicker{font-size:11px;margin-bottom:6px}.section-kicker:before{width:28px;height:28px;left:-7px}.expertise-heading h2{font-size:clamp(31px,8.2vw,42px)}.section-title-decoration{width:125px;margin-top:8px}.expertise-intro{margin-top:9px;max-width:620px;font-size:11.5px;line-height:1.42}
  .expertise-layout{display:grid;grid-template-columns:1fr;gap:10px;min-height:0}
  .expertise-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:6px}
  .expertise-tab{min-height:54px;padding:7px 8px;grid-template-columns:34px minmax(0,1fr);gap:7px;transform:none!important}
  .expertise-tab:before{width:3px}.expertise-tab-icon{width:34px;height:34px}.expertise-tab-icon svg{width:18px;height:18px}.expertise-tab-copy{gap:2px}.expertise-tab-copy small{font-size:6px;letter-spacing:.1em}.expertise-tab-copy strong{font-size:10.5px;line-height:1.05}.expertise-tab-arrow{display:none}.expertise-tab.active{box-shadow:0 8px 20px rgba(0,0,0,.1)}
  .expertise-panels{min-height:240px}.expertise-panels:before{width:175px;height:175px;right:-70px;top:-85px}
  .expertise-panel{padding:14px 16px 13px;min-height:240px}.expertise-panel-topline{margin-bottom:7px}.expertise-panel-topline p{font-size:6.5px;padding:5px 7px}.expertise-panel h3{font-size:22px}.expertise-summary{font-size:10.8px;line-height:1.42;margin:8px 0 9px}.expertise-capabilities{gap:2px;margin-bottom:8px}.expertise-capabilities>div{grid-template-columns:13px 1fr;gap:7px;min-height:22px}.expertise-capabilities>div>span{width:7px;height:7px}.expertise-capabilities>div>span:after{top:7px;height:21px}.expertise-capabilities p{font-size:9px;line-height:1.25}.expertise-tools{gap:4px}.expertise-tools span{font-size:6.8px;padding:5px 6px}
  .mobile-exploration{grid-template-columns:32px 1fr;gap:7px 10px;padding:8px 10px;min-height:0}.mobile-exploration-icon{width:32px;height:32px;grid-row:1/3}.mobile-exploration-icon svg{width:17px;height:17px}.mobile-exploration>div{min-width:0}.mobile-exploration small{font-size:6px}.mobile-exploration strong{font-size:9.5px}.mobile-exploration p{grid-column:2;font-size:8.7px;line-height:1.28}
}

@media (max-width:430px){
  .expertise-section{padding-left:14px;padding-right:14px;padding-top:calc(var(--mobile-topbar-height) + 14px + var(--safe-top));padding-bottom:calc(66px + var(--safe-bottom))}
  .expertise-shell{gap:10px;max-height:calc(100dvh - var(--mobile-topbar-height) - var(--safe-top) - var(--safe-bottom) - 80px)}
  .expertise-heading h2{font-size:30px}.expertise-intro{font-size:10px;line-height:1.34;margin-top:7px}.section-title-decoration{margin-top:6px}
  .expertise-tab{min-height:50px;grid-template-columns:31px minmax(0,1fr);padding:6px;gap:6px}.expertise-tab-icon{width:31px;height:31px}.expertise-tab-icon svg{width:16px;height:16px}.expertise-tab-copy strong{font-size:9.2px}.expertise-tab-copy small{font-size:5.5px}
  .expertise-panels,.expertise-panel{min-height:222px}.expertise-panel{padding:12px 13px 11px}.expertise-panel h3{font-size:20px}.expertise-summary{font-size:10px;line-height:1.35;margin:7px 0}.expertise-capabilities p{font-size:8.5px}.expertise-tools span{font-size:6.2px;padding:4px 5px}
  .mobile-exploration{padding:7px 8px}.mobile-exploration p{font-size:8px}
}

@media (max-width:559px) and (max-height:680px){
  .expertise-section{align-items:flex-start;padding-top:calc(var(--mobile-topbar-height) + 8px + var(--safe-top));padding-bottom:calc(58px + var(--safe-bottom))}
  .expertise-shell{gap:7px}.section-kicker{display:none}.expertise-heading h2{font-size:27px}.section-title-decoration{margin-top:4px;height:6px}.expertise-intro{font-size:9px;line-height:1.25;margin-top:5px}
  .expertise-tabs{gap:4px}.expertise-tab{min-height:43px}.expertise-tab-icon{width:28px;height:28px}.expertise-tab-copy strong{font-size:8.6px}.expertise-tab-copy small{display:none}
  .expertise-panels,.expertise-panel{min-height:194px}.expertise-panel{padding:9px 11px}.expertise-panel-topline{margin-bottom:4px}.expertise-panel h3{font-size:18px}.expertise-summary{font-size:9px;line-height:1.25;margin:5px 0}.expertise-capabilities{margin-bottom:5px}.expertise-capabilities>div{min-height:17px}.expertise-capabilities p{font-size:7.8px}.expertise-tools span{font-size:5.8px;padding:3px 4px}
  .mobile-exploration{display:none}
}

@media (prefers-reduced-motion:reduce){
  .expertise-heading>*,.expertise-layout,.mobile-exploration,.expertise-panel{transition:none!important;filter:none!important;transform:none!important}
}


/* =========================================================
   V2.9 — CORE EXPERTISE REDESIGN
   Recruiter-focused developer dossier. Skills live inside
   each expertise instead of in a separate section.
   ========================================================= */

/* Keep profile traits horizontal on desktop only. */
@media (min-width:1101px){
  .hero-traits{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px 24px!important;
    padding-left:0!important;
  }
  .hero-traits::before{display:none!important}
  .hero-traits span{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    white-space:nowrap!important;
  }
  .hero-traits span::before,
  .hero-traits span+span::before{
    content:""!important;
    position:static!important;
    display:inline-block!important;
    width:7px!important;
    height:7px!important;
    margin:0 8px 0 0!important;
    border-radius:50%!important;
    background:var(--accent)!important;
    transform:none!important;
    box-shadow:none!important;
  }
}

.expertise-section{
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
  background:var(--section-bg);
}
.expertise-section:before{display:none!important}
.expertise-scroll{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--text) 22%,transparent) transparent;
}
.expertise-scroll::-webkit-scrollbar{width:5px}
.expertise-scroll::-webkit-scrollbar-track{background:transparent}
.expertise-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text) 20%,transparent);border-radius:20px}

.expertise-dossier-shell{
  width:min(1120px,calc(100% - 92px));
  margin:0 auto;
  padding:76px 0 138px;
}
.expertise-dossier-heading{
  margin-bottom:42px;
}
.expertise-dossier-heading h2{
  margin:0;
  font:700 clamp(40px,4vw,62px)/.98 "Work Sans",Arial,sans-serif;
  letter-spacing:-.045em;
  color:var(--text);
  text-transform:uppercase;
}

.expertise-dossier-list{
  display:grid;
  gap:26px;
}
.expertise-dossier{
  position:relative;
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  min-height:248px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line) 92%,transparent);
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--text) 2.4%,var(--section-bg)) 0 112px,transparent 112px),
    var(--section-bg);
  box-shadow:0 16px 42px rgba(24,29,32,.055);
  transition:transform .5s cubic-bezier(.16,1,.3,1),border-color .35s ease,box-shadow .45s ease;
}
.expertise-dossier::before{
  content:"";
  position:absolute;
  left:0;top:0;
  width:5px;height:100%;
  background:var(--accent);
  transform:scaleY(.34);
  transform-origin:top;
  transition:transform .52s cubic-bezier(.16,1,.3,1);
}
.expertise-dossier::after{
  content:"";
  position:absolute;
  right:-52px;
  top:-52px;
  width:104px;
  height:104px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,transparent);
  transform:rotate(45deg);
  opacity:.44;
  pointer-events:none;
  transition:transform .6s cubic-bezier(.16,1,.3,1),opacity .35s ease;
}
.expertise-dossier:hover{
  transform:translateX(7px);
  border-color:color-mix(in srgb,var(--accent) 42%,var(--line));
  box-shadow:0 22px 54px rgba(24,29,32,.09);
}
.expertise-dossier:hover::before{transform:scaleY(1)}
.expertise-dossier:hover::after{transform:translate(-10px,10px) rotate(45deg);opacity:.72}

.expertise-dossier-rail{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  padding:28px 16px;
  border-right:1px solid color-mix(in srgb,var(--line) 90%,transparent);
}
.expertise-dossier-number{
  font:800 33px/1 "Work Sans",Arial,sans-serif;
  letter-spacing:-.055em;
  color:color-mix(in srgb,var(--text) 12%,transparent);
  user-select:none;
}
.expertise-dossier-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#252525;
  clip-path:polygon(0 0,100% 0,100% 77%,77% 100%,0 100%);
  box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 18%,transparent);
}
.expertise-dossier-icon svg{
  width:23px;height:23px;
  fill:none;stroke:currentColor;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}

.expertise-dossier-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:28px 32px 25px;
}
.expertise-dossier-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:18px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 86%,transparent);
}
.expertise-dossier-title-row>div{min-width:0}
.expertise-dossier-title-row small{
  display:block;
  margin-bottom:7px;
  font:750 9px/1 "Work Sans",Arial,sans-serif;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--muted);
}
.expertise-dossier-title-row h3{
  margin:0;
  font:700 clamp(24px,2.25vw,34px)/1 "Work Sans",Arial,sans-serif;
  letter-spacing:-.04em;
  text-transform:uppercase;
  color:var(--text);
}
.expertise-dossier-level{
  flex:0 0 auto;
  min-height:30px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  border:1px solid color-mix(in srgb,var(--text) 16%,var(--line));
  background:color-mix(in srgb,var(--section-bg) 97%,var(--text));
  color:color-mix(in srgb,var(--text) 72%,var(--muted));
  font:750 8px/1 "Work Sans",Arial,sans-serif;
  letter-spacing:.11em;
  text-transform:uppercase;
  white-space:nowrap;
}
.expertise-dossier.is-wordpress .expertise-dossier-level{
  border-color:var(--accent);
  background:var(--accent);
  color:#252525;
}

.expertise-dossier-main{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:42px;
  align-items:start;
  padding:20px 0 21px;
}
.expertise-dossier-summary{
  margin:0;
  max-width:680px;
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
  font-weight:400;
}
.expertise-dossier-capabilities{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:11px;
}
.expertise-dossier-capabilities li{
  position:relative;
  padding-left:20px;
  color:color-mix(in srgb,var(--text) 82%,var(--muted));
  font:600 12px/1.45 "Work Sans",Arial,sans-serif;
}
.expertise-dossier-capabilities li::before{
  content:"";
  position:absolute;
  left:0;
  top:.47em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent);
}

.expertise-dossier-stack{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding-top:16px;
  border-top:1px solid color-mix(in srgb,var(--line) 86%,transparent);
}
.expertise-dossier-stack-label{
  font:800 8px/1 "Work Sans",Arial,sans-serif;
  letter-spacing:.16em;
  color:var(--muted);
}
.expertise-dossier-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.expertise-dossier-tags span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent);
  background:color-mix(in srgb,var(--text) 2.2%,var(--section-bg));
  color:color-mix(in srgb,var(--text) 80%,var(--muted));
  font:650 9px/1 "Work Sans",Arial,sans-serif;
  letter-spacing:.025em;
  white-space:nowrap;
  transition:border-color .25s ease,background .25s ease,color .25s ease;
}
.expertise-dossier:hover .expertise-dossier-tags span{
  border-color:color-mix(in srgb,var(--accent) 34%,var(--line));
}

/* Entrance: staggered and directional, while staying calm. */
.expertise-dossier-heading,
.expertise-dossier{
  opacity:0;
  filter:blur(5px);
  transition:opacity .85s ease,transform 1.05s cubic-bezier(.16,1,.3,1),filter .8s ease,border-color .35s ease,box-shadow .45s ease;
}
.expertise-dossier-heading{transform:translate3d(0,28px,0)}
.expertise-dossier:nth-child(odd){transform:translate3d(-34px,22px,0)}
.expertise-dossier:nth-child(even){transform:translate3d(34px,22px,0)}
.expertise-section.is-active .expertise-dossier-heading,
.expertise-section.is-active .expertise-dossier{
  opacity:1;
  filter:blur(0);
  transform:translate3d(0,0,0);
}
.expertise-section.is-active .expertise-dossier-heading{transition-delay:.12s}
.expertise-section.is-active .expertise-dossier:nth-child(1){transition-delay:.22s}
.expertise-section.is-active .expertise-dossier:nth-child(2){transition-delay:.32s}
.expertise-section.is-active .expertise-dossier:nth-child(3){transition-delay:.42s}
.expertise-section.is-active .expertise-dossier:nth-child(4){transition-delay:.52s}

@media (max-width:1100px){
  .expertise-dossier-shell{
    width:min(100% - 56px,920px);
    padding:calc(var(--mobile-topbar-height) + var(--safe-top) + 34px) 0 calc(118px + var(--safe-bottom));
  }
  .expertise-dossier-heading{margin-bottom:32px}
  .expertise-dossier{
    grid-template-columns:94px minmax(0,1fr);
    background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.4%,var(--section-bg)) 0 94px,transparent 94px),var(--section-bg);
  }
  .expertise-dossier-rail{padding:24px 13px}
  .expertise-dossier-content{padding:25px 27px 23px}
  .expertise-dossier-main{grid-template-columns:1fr minmax(240px,.78fr);gap:30px}
  .expertise-dossier-summary{font-size:14.5px;line-height:1.62}
}

@media (max-width:760px){
  .expertise-dossier-shell{
    width:calc(100% - 34px);
    padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 26px);
    padding-bottom:calc(112px + var(--safe-bottom));
  }
  .expertise-dossier-heading{margin-bottom:24px}
  .expertise-dossier-heading h2{font-size:clamp(31px,9vw,42px)}
  .expertise-dossier-list{gap:17px}
  .expertise-dossier{
    grid-template-columns:64px minmax(0,1fr);
    min-height:0;
    background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.6%,var(--section-bg)) 0 64px,transparent 64px),var(--section-bg);
  }
  .expertise-dossier::after{width:82px;height:82px;right:-43px;top:-43px}
  .expertise-dossier:hover{transform:none}
  .expertise-dossier-rail{padding:20px 8px;gap:14px}
  .expertise-dossier-number{font-size:21px}
  .expertise-dossier-icon{width:38px;height:38px}
  .expertise-dossier-icon svg{width:19px;height:19px}
  .expertise-dossier-content{padding:20px 18px 19px}
  .expertise-dossier-title-row{display:block;padding-bottom:14px}
  .expertise-dossier-title-row h3{font-size:clamp(19px,5.8vw,26px)}
  .expertise-dossier-level{margin-top:10px;min-height:27px;font-size:7.5px}
  .expertise-dossier-main{grid-template-columns:1fr;gap:16px;padding:16px 0 17px}
  .expertise-dossier-summary{font-size:14.5px;line-height:1.62}
  .expertise-dossier-capabilities{gap:9px}
  .expertise-dossier-capabilities li{font-size:11px;line-height:1.42}
  .expertise-dossier-stack{grid-template-columns:1fr;gap:10px;padding-top:14px}
  .expertise-dossier-tags{gap:6px}
  .expertise-dossier-tags span{min-height:25px;padding:0 8px;font-size:8.5px}
}

@media (max-width:430px){
  .expertise-dossier-shell{width:calc(100% - 24px);padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 20px)}
  .expertise-dossier-heading h2{font-size:29px}
  .expertise-dossier{grid-template-columns:54px minmax(0,1fr);background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.6%,var(--section-bg)) 0 54px,transparent 54px),var(--section-bg)}
  .expertise-dossier-rail{padding:17px 6px}.expertise-dossier-number{font-size:18px}.expertise-dossier-icon{width:33px;height:33px}.expertise-dossier-icon svg{width:16px;height:16px}
  .expertise-dossier-content{padding:17px 14px 16px}
  .expertise-dossier-title-row small{font-size:7.3px}
  .expertise-dossier-title-row h3{font-size:18px}
  .expertise-dossier-summary{font-size:14px;line-height:1.58}
  .expertise-dossier-capabilities li{font-size:10.5px}
  .expertise-dossier-tags span{font-size:8px}
}

@media (prefers-reduced-motion:reduce){
  .expertise-dossier-heading,.expertise-dossier{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}

/* =========================================================
   V3.0 — CORE EXPERTISE REFINEMENT
   Less content, stronger hierarchy, subtle cursor spotlight.
   ========================================================= */

.expertise-dossier-list{
  gap:22px;
}

.expertise-dossier{
  --spot-x:50%;
  --spot-y:50%;
  grid-template-columns:104px minmax(0,1fr);
  min-height:208px;
  isolation:isolate;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--text) 2.2%,var(--section-bg)) 0 104px,transparent 104px),
    var(--section-bg);
  box-shadow:0 14px 38px rgba(24,29,32,.052);
}

/* The left yellow trace remains the signature anchor. */
.expertise-dossier::before{
  z-index:4;
  width:4px;
  transform:scaleY(.28);
  box-shadow:0 0 0 0 transparent;
}

/* A very soft spotlight follows the pointer on desktop. */
.expertise-dossier::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  width:auto;
  height:auto;
  right:auto;
  top:auto;
  border:0;
  transform:none;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    color-mix(in srgb,var(--accent) 13%,transparent) 0%,
    color-mix(in srgb,var(--accent) 5%,transparent) 25%,
    transparent 62%
  );
  transition:opacity .4s ease;
}
.expertise-dossier:hover::after{opacity:1;transform:none}
.expertise-dossier:hover::before{
  transform:scaleY(1);
  box-shadow:0 0 24px color-mix(in srgb,var(--accent) 20%,transparent);
}

.expertise-dossier-rail,
.expertise-dossier-content{
  position:relative;
  z-index:2;
}

.expertise-dossier-rail{
  padding:27px 14px;
  gap:20px;
  background-image:
    linear-gradient(color-mix(in srgb,var(--line) 38%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--line) 30%,transparent) 1px,transparent 1px);
  background-size:18px 18px;
  background-position:center;
}
.expertise-dossier-number{
  font-size:30px;
  color:color-mix(in srgb,var(--text) 10%,transparent);
}
.expertise-dossier-icon{
  width:50px;
  height:50px;
  transition:transform .55s cubic-bezier(.16,1,.3,1),box-shadow .45s ease;
}
.expertise-dossier:hover .expertise-dossier-icon{
  transform:translateY(-3px) rotate(-2deg);
  box-shadow:0 15px 32px color-mix(in srgb,var(--accent) 24%,transparent);
}

.expertise-dossier-content{
  padding:29px 34px 27px;
}

.expertise-dossier-title-row{
  position:relative;
  display:block;
  padding-bottom:15px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent);
}
.expertise-dossier-title-row::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:38px;
  height:2px;
  background:var(--accent);
  transition:width .58s cubic-bezier(.16,1,.3,1);
}
.expertise-dossier:hover .expertise-dossier-title-row::after{width:92px}
.expertise-dossier-title-row h3{
  font-size:clamp(25px,2.15vw,33px);
}

/* There is deliberately no secondary badge or capabilities list. */
.expertise-dossier-level,
.expertise-dossier-capabilities{
  display:none!important;
}

.expertise-dossier-main{
  display:block;
  padding:19px 0 20px;
}
.expertise-dossier-summary{
  max-width:930px;
  font-size:16px;
  line-height:1.72;
  color:var(--muted);
}

.expertise-dossier-stack{
  grid-template-columns:auto minmax(0,1fr);
  gap:20px;
  padding-top:16px;
}
.expertise-dossier-stack-label{
  font-size:9px;
  letter-spacing:.18em;
}
.expertise-dossier-tags{
  gap:8px;
}
.expertise-dossier-tags span{
  min-height:31px;
  padding:0 11px;
  font-size:10.5px;
  letter-spacing:.02em;
  background:color-mix(in srgb,var(--text) 1.7%,var(--section-bg));
  transition:transform .34s cubic-bezier(.16,1,.3,1),border-color .3s ease,background .3s ease,color .3s ease;
}
.expertise-dossier:hover .expertise-dossier-tags span{
  border-color:color-mix(in srgb,var(--accent) 32%,var(--line));
}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(1){transform:translateY(-1px);transition-delay:.02s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(2){transform:translateY(-1px);transition-delay:.04s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(3){transform:translateY(-1px);transition-delay:.06s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(4){transform:translateY(-1px);transition-delay:.08s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(5){transform:translateY(-1px);transition-delay:.10s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(6){transform:translateY(-1px);transition-delay:.12s}
.expertise-dossier:hover .expertise-dossier-tags span:nth-child(7){transform:translateY(-1px);transition-delay:.14s}

@media (max-width:1100px){
  .expertise-dossier{
    grid-template-columns:88px minmax(0,1fr);
    background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.2%,var(--section-bg)) 0 88px,transparent 88px),var(--section-bg);
    min-height:198px;
  }
  .expertise-dossier-content{padding:25px 27px 23px}
  .expertise-dossier-summary{font-size:15px;line-height:1.62}
  .expertise-dossier-tags span{font-size:10px;min-height:30px}
}

@media (max-width:760px){
  .expertise-dossier-list{gap:16px}
  .expertise-dossier{
    grid-template-columns:60px minmax(0,1fr);
    background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.4%,var(--section-bg)) 0 60px,transparent 60px),var(--section-bg);
  }
  .expertise-dossier-rail{padding:18px 7px;gap:13px;background-size:14px 14px}
  .expertise-dossier-number{font-size:20px}
  .expertise-dossier-icon{width:38px;height:38px}
  .expertise-dossier-content{padding:20px 17px 18px}
  .expertise-dossier-title-row{padding-bottom:12px}
  .expertise-dossier-title-row h3{font-size:clamp(19px,5.8vw,25px)}
  .expertise-dossier-main{padding:15px 0 16px}
  .expertise-dossier-summary{font-size:14.5px;line-height:1.6}
  .expertise-dossier-stack{grid-template-columns:1fr;gap:9px;padding-top:13px}
  .expertise-dossier-stack-label{font-size:8px}
  .expertise-dossier-tags{gap:6px}
  .expertise-dossier-tags span{min-height:28px;padding:0 9px;font-size:9.5px}
}

@media (max-width:430px){
  .expertise-dossier{
    grid-template-columns:52px minmax(0,1fr);
    background:linear-gradient(90deg,color-mix(in srgb,var(--text) 2.4%,var(--section-bg)) 0 52px,transparent 52px),var(--section-bg);
  }
  .expertise-dossier-rail{padding:16px 5px}
  .expertise-dossier-number{font-size:17px}
  .expertise-dossier-icon{width:32px;height:32px}
  .expertise-dossier-content{padding:17px 13px 16px}
  .expertise-dossier-summary{font-size:14px;line-height:1.56}
  .expertise-dossier-tags span{font-size:9px;min-height:27px}
}

@media (hover:none),(pointer:coarse){
  .expertise-dossier::after{display:none}
  .expertise-dossier:hover .expertise-dossier-icon,
  .expertise-dossier:hover .expertise-dossier-tags span{transform:none}
}

/* =========================================================
   V3.1 — CORE EXPERTISE CINEMATIC MOTION
   Layered entrance + directional exit, matching the Hero's rhythm.
   ========================================================= */

/* Heading is now built in three independent beats. */
.expertise-dossier-heading .section-kicker,
.expertise-dossier-heading h2,
.expertise-dossier-heading .section-title-decoration{
  opacity:0;
  filter:blur(7px);
  will-change:transform,opacity,filter;
  transition:
    opacity .95s ease,
    transform 1.25s cubic-bezier(.16,1,.3,1),
    filter 1s ease;
}
.expertise-dossier-heading .section-kicker{transform:translate3d(-34px,8px,0)}
.expertise-dossier-heading h2{transform:translate3d(0,34px,0) scale(.965);transform-origin:left bottom}
.expertise-dossier-heading .section-title-decoration{transform:translate3d(-20px,0,0) scaleX(.28);transform-origin:left center}

.expertise-section.is-active .expertise-dossier-heading .section-kicker,
.expertise-section.is-active .expertise-dossier-heading h2,
.expertise-section.is-active .expertise-dossier-heading .section-title-decoration{
  opacity:1;
  filter:blur(0);
  transform:translate3d(0,0,0) scale(1);
}
.expertise-section.is-active .expertise-dossier-heading .section-kicker{transition-delay:.12s}
.expertise-section.is-active .expertise-dossier-heading h2{transition-delay:.25s}
.expertise-section.is-active .expertise-dossier-heading .section-title-decoration{transition-delay:.42s}

/* The outer dossier reveals vertically, like opening a technical file. */
.expertise-dossier{
  opacity:0;
  filter:blur(8px);
  clip-path:inset(0 0 100% 0);
  transform:translate3d(0,48px,0) scale(.975);
  transform-origin:center top;
  will-change:transform,opacity,filter,clip-path;
  transition:
    opacity .92s ease,
    transform 1.28s cubic-bezier(.16,1,.3,1),
    filter 1s ease,
    clip-path 1.18s cubic-bezier(.16,1,.3,1),
    border-color .35s ease,
    box-shadow .45s ease;
}
.expertise-section.is-active .expertise-dossier{
  opacity:1;
  filter:blur(0);
  clip-path:inset(0 0 0 0);
  transform:translate3d(0,0,0) scale(1);
}
.expertise-section.is-active .expertise-dossier:nth-child(1){transition-delay:.48s}
.expertise-section.is-active .expertise-dossier:nth-child(2){transition-delay:.61s}
.expertise-section.is-active .expertise-dossier:nth-child(3){transition-delay:.74s}
.expertise-section.is-active .expertise-dossier:nth-child(4){transition-delay:.87s}

/* Layers inside each dossier arrive after the shell. */
.expertise-dossier-rail{
  opacity:0;
  transform:translate3d(-24px,0,0);
  filter:blur(4px);
  transition:opacity .7s ease,transform .95s cubic-bezier(.16,1,.3,1),filter .75s ease;
}
.expertise-dossier-number{
  opacity:0;
  transform:translate3d(0,-14px,0) scale(.88);
  transition:opacity .65s ease,transform .9s cubic-bezier(.16,1,.3,1);
}
.expertise-dossier-icon{
  opacity:0;
  transform:translate3d(0,20px,0) scale(.72) rotate(-9deg);
  transition:
    opacity .7s ease,
    transform 1.05s cubic-bezier(.16,1,.3,1),
    box-shadow .45s ease;
}
.expertise-dossier-title-row small,
.expertise-dossier-title-row h3,
.expertise-dossier-summary,
.expertise-dossier-stack-label,
.expertise-dossier-tags span{
  opacity:0;
  filter:blur(4px);
  will-change:transform,opacity,filter;
}
.expertise-dossier-title-row small{transform:translate3d(18px,0,0);transition:opacity .65s ease,transform .85s cubic-bezier(.16,1,.3,1),filter .7s ease}
.expertise-dossier-title-row h3{transform:translate3d(0,19px,0);transition:opacity .78s ease,transform 1.02s cubic-bezier(.16,1,.3,1),filter .8s ease}
.expertise-dossier-title-row::after{transform:scaleX(0);transform-origin:left center;transition:width .58s cubic-bezier(.16,1,.3,1),transform .85s cubic-bezier(.16,1,.3,1)}
.expertise-dossier-summary{transform:translate3d(0,20px,0);transition:opacity .82s ease,transform 1.05s cubic-bezier(.16,1,.3,1),filter .84s ease}
.expertise-dossier-stack-label{transform:translate3d(-14px,0,0);transition:opacity .62s ease,transform .82s cubic-bezier(.16,1,.3,1),filter .65s ease}
.expertise-dossier-tags span{transform:translate3d(0,13px,0) scale(.94);transition:opacity .58s ease,transform .82s cubic-bezier(.16,1,.3,1),filter .62s ease,border-color .3s ease,background .3s ease,color .3s ease}

.expertise-section.is-active .expertise-dossier-rail,
.expertise-section.is-active .expertise-dossier-number,
.expertise-section.is-active .expertise-dossier-icon,
.expertise-section.is-active .expertise-dossier-title-row small,
.expertise-section.is-active .expertise-dossier-title-row h3,
.expertise-section.is-active .expertise-dossier-summary,
.expertise-section.is-active .expertise-dossier-stack-label,
.expertise-section.is-active .expertise-dossier-tags span{
  opacity:1;
  filter:blur(0);
  transform:translate3d(0,0,0) scale(1) rotate(0);
}
.expertise-section.is-active .expertise-dossier-title-row::after{transform:scaleX(1)}

/* Per-card internal sequencing. CSS variables make the rhythm coherent. */
.expertise-dossier:nth-child(1){--card-beat:.56s}
.expertise-dossier:nth-child(2){--card-beat:.69s}
.expertise-dossier:nth-child(3){--card-beat:.82s}
.expertise-dossier:nth-child(4){--card-beat:.95s}
.expertise-section.is-active .expertise-dossier-rail{transition-delay:calc(var(--card-beat) + .10s)}
.expertise-section.is-active .expertise-dossier-number{transition-delay:calc(var(--card-beat) + .16s)}
.expertise-section.is-active .expertise-dossier-icon{transition-delay:calc(var(--card-beat) + .22s)}
.expertise-section.is-active .expertise-dossier-title-row small{transition-delay:calc(var(--card-beat) + .18s)}
.expertise-section.is-active .expertise-dossier-title-row h3{transition-delay:calc(var(--card-beat) + .26s)}
.expertise-section.is-active .expertise-dossier-title-row::after{transition-delay:calc(var(--card-beat) + .31s)}
.expertise-section.is-active .expertise-dossier-summary{transition-delay:calc(var(--card-beat) + .34s)}
.expertise-section.is-active .expertise-dossier-stack-label{transition-delay:calc(var(--card-beat) + .43s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(1){transition-delay:calc(var(--card-beat) + .47s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(2){transition-delay:calc(var(--card-beat) + .51s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(3){transition-delay:calc(var(--card-beat) + .55s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(4){transition-delay:calc(var(--card-beat) + .59s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(5){transition-delay:calc(var(--card-beat) + .63s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(6){transition-delay:calc(var(--card-beat) + .67s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(7){transition-delay:calc(var(--card-beat) + .71s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(8){transition-delay:calc(var(--card-beat) + .75s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(9){transition-delay:calc(var(--card-beat) + .79s)}
.expertise-section.is-active .expertise-dossier-tags span:nth-child(10){transition-delay:calc(var(--card-beat) + .83s)}

/* Directional exit: the content leaves before the global page track finishes moving. */
.expertise-section.is-exiting .expertise-dossier-heading .section-kicker,
.expertise-section.is-exiting .expertise-dossier-heading h2,
.expertise-section.is-exiting .expertise-dossier-heading .section-title-decoration,
.expertise-section.is-exiting .expertise-dossier{
  transition-delay:0s!important;
}
.expertise-section.is-exiting .expertise-dossier-heading .section-kicker,
.expertise-section.is-exiting .expertise-dossier-heading h2,
.expertise-section.is-exiting .expertise-dossier-heading .section-title-decoration{
  opacity:0;
  filter:blur(5px);
}
.expertise-section.is-exiting-forward .expertise-dossier-heading .section-kicker,
.expertise-section.is-exiting-forward .expertise-dossier-heading h2,
.expertise-section.is-exiting-forward .expertise-dossier-heading .section-title-decoration{transform:translate3d(0,-22px,0) scale(.985)}
.expertise-section.is-exiting-backward .expertise-dossier-heading .section-kicker,
.expertise-section.is-exiting-backward .expertise-dossier-heading h2,
.expertise-section.is-exiting-backward .expertise-dossier-heading .section-title-decoration{transform:translate3d(0,22px,0) scale(.985)}

.expertise-section.is-exiting .expertise-dossier{
  opacity:0;
  filter:blur(6px);
  clip-path:inset(0 0 12% 0);
  transition-duration:.62s,.72s,.62s,.7s,.35s,.45s;
}
.expertise-section.is-exiting-forward .expertise-dossier{transform:translate3d(0,-30px,0) scale(.985)}
.expertise-section.is-exiting-backward .expertise-dossier{transform:translate3d(0,30px,0) scale(.985)}
.expertise-section.is-exiting .expertise-dossier:nth-child(1){transition-delay:.00s!important}
.expertise-section.is-exiting .expertise-dossier:nth-child(2){transition-delay:.035s!important}
.expertise-section.is-exiting .expertise-dossier:nth-child(3){transition-delay:.07s!important}
.expertise-section.is-exiting .expertise-dossier:nth-child(4){transition-delay:.105s!important}

/* Returning from Experience feels slightly different from arriving from Profile. */
.expertise-section.is-entering-backward:not(.is-exiting) .expertise-dossier{
  transform-origin:center bottom;
}

/* Preserve the interactive hover only after reveal. */
.expertise-section.is-active .expertise-dossier:hover{
  transform:translateX(7px) scale(1);
}

@media (max-width:1100px){
  /* Mobile/tablet keeps the choreography but removes the heavy blur/clip effect. */
  .expertise-dossier{
    clip-path:none;
    transform:translate3d(0,30px,0) scale(.988);
  }
  .expertise-section.is-active .expertise-dossier{transform:translate3d(0,0,0) scale(1)}
  .expertise-dossier-rail{transform:translate3d(-15px,0,0)}
  .expertise-dossier-title-row h3,.expertise-dossier-summary{transform:translate3d(0,14px,0)}
}

@media (prefers-reduced-motion:reduce){
  .expertise-dossier-heading .section-kicker,
  .expertise-dossier-heading h2,
  .expertise-dossier-heading .section-title-decoration,
  .expertise-dossier,
  .expertise-dossier-rail,
  .expertise-dossier-number,
  .expertise-dossier-icon,
  .expertise-dossier-title-row small,
  .expertise-dossier-title-row h3,
  .expertise-dossier-summary,
  .expertise-dossier-stack-label,
  .expertise-dossier-tags span{
    opacity:1!important;
    filter:none!important;
    clip-path:none!important;
    transform:none!important;
    transition:none!important;
  }
}

/* ==========================================================================\n   V3.4 — EXPERIENCE / INTERACTIVE CAREER STAGE\n   ========================================================================== */
.experience-section{background:var(--section-bg);position:relative;z-index:0}
.experience-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 70%,transparent) transparent}
.experience-scroll::-webkit-scrollbar{width:6px}
.experience-scroll::-webkit-scrollbar-track{background:transparent}
.experience-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 64%,transparent);border-radius:999px}
.experience-shell{width:min(1180px,calc(100% - 92px));min-height:100%;margin:0 auto;padding:54px 0 96px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.experience-heading{margin-bottom:30px}
.experience-heading .section-kicker,.experience-heading h2,.experience-heading .section-title-decoration,.experience-intro{opacity:0;filter:blur(7px);transition:opacity .9s ease,transform 1.12s cubic-bezier(.16,1,.3,1),filter .9s ease}
.experience-heading .section-kicker{transform:translate3d(-34px,8px,0)}
.experience-heading h2{font-family:"Work Sans",Arial,sans-serif;font-size:clamp(38px,4.3vw,62px);line-height:.98;letter-spacing:-.045em;margin:7px 0 0;text-transform:uppercase;transform:translate3d(0,34px,0) scale(.965);transform-origin:left bottom}
.experience-heading .section-title-decoration{transform:translate3d(-20px,0,0) scaleX(.28);transform-origin:left center}
.experience-intro{max-width:830px;margin:19px 0 0;font-size:16px;line-height:1.7;color:var(--muted);transform:translate3d(28px,12px,0)}
.experience-section.is-active .experience-heading .section-kicker,.experience-section.is-active .experience-heading h2,.experience-section.is-active .experience-heading .section-title-decoration,.experience-section.is-active .experience-intro{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}
.experience-section.is-active .experience-heading .section-kicker{transition-delay:.10s}
.experience-section.is-active .experience-heading h2{transition-delay:.22s}
.experience-section.is-active .experience-heading .section-title-decoration{transition-delay:.36s}
.experience-section.is-active .experience-intro{transition-delay:.48s}

/* Career selector: both companies are visible as navigation, never as two full cards. */
.experience-switcher{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0 0 18px;border:1px solid color-mix(in srgb,var(--line) 90%,transparent);background:color-mix(in srgb,var(--text) 1.25%,var(--section-bg));overflow:hidden;opacity:0;transform:translate3d(0,18px,0);transition:opacity .8s ease .56s,transform 1.05s cubic-bezier(.16,1,.3,1) .56s}
.experience-section.is-active .experience-switcher{opacity:1;transform:none}
.experience-switcher::after{content:"";position:absolute;left:0;bottom:0;width:50%;height:3px;background:var(--accent);transform:translateX(var(--experience-tab-shift,0%));transition:transform .58s cubic-bezier(.22,1,.36,1);z-index:4}
.experience-switch{appearance:none;border:0;border-right:1px solid color-mix(in srgb,var(--line) 80%,transparent);background:transparent;min-height:72px;padding:14px 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;text-align:left;color:var(--text);cursor:pointer;position:relative;overflow:hidden;transition:background .28s ease,color .28s ease}
.experience-switch:last-child{border-right:0}
.experience-switch::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 11%,transparent),transparent 62%);opacity:0;transition:opacity .28s ease}
.experience-switch:hover::before,.experience-switch.is-active::before{opacity:1}
.experience-switch-index{font-family:"Work Sans",Arial,sans-serif;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--accent);position:relative;z-index:1}
.experience-switch-copy{display:flex;align-items:baseline;gap:9px;min-width:0;position:relative;z-index:1}
.experience-switch-copy strong{font-family:"Work Sans",Arial,sans-serif;font-size:15px;line-height:1.1;font-weight:760;letter-spacing:-.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.experience-switch-copy small{font-family:"Work Sans",Arial,sans-serif;font-size:9px;font-weight:750;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.experience-switch-arrow{font-family:"Work Sans",Arial,sans-serif;font-size:16px;line-height:1;color:color-mix(in srgb,var(--text) 42%,transparent);transform:rotate(0deg);transition:transform .35s ease,color .35s ease;position:relative;z-index:1}
.experience-switch.is-active .experience-switch-arrow{color:var(--accent);transform:translate(2px,-2px)}

.experience-stage{position:relative;min-height:510px}
.experience-record{--exp-spot-x:50%;--exp-spot-y:50%;position:absolute;inset:0 auto auto 0;width:100%;overflow:hidden;border:1px solid color-mix(in srgb,var(--line) 90%,transparent);background:linear-gradient(125deg,color-mix(in srgb,var(--text) 1.65%,var(--section-bg)),var(--section-bg) 45%,color-mix(in srgb,var(--accent) 1.35%,var(--section-bg)));box-shadow:0 22px 56px rgba(23,27,31,.05);opacity:0;visibility:hidden;pointer-events:none;filter:blur(9px);transform:translate3d(48px,0,0) scale(.992);transition:opacity .52s ease,transform .72s cubic-bezier(.16,1,.3,1),filter .52s ease,visibility 0s linear .72s,border-color .3s ease,box-shadow .3s ease}
.experience-record.is-active{position:relative;opacity:1;visibility:visible;pointer-events:auto;filter:blur(0);transform:none;transition:opacity .62s ease,transform .82s cubic-bezier(.16,1,.3,1),filter .62s ease,visibility 0s linear 0s,border-color .3s ease,box-shadow .3s ease}
.experience-record.is-leaving-left{opacity:0;visibility:visible;transform:translate3d(-48px,0,0) scale(.992);filter:blur(7px)}
.experience-record.is-leaving-right{opacity:0;visibility:visible;transform:translate3d(48px,0,0) scale(.992);filter:blur(7px)}
.experience-record::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at var(--exp-spot-x) var(--exp-spot-y),color-mix(in srgb,var(--accent) 9%,transparent) 0,transparent 27%);opacity:0;transition:opacity .35s ease;pointer-events:none;z-index:0}
.experience-record.is-active:hover::before{opacity:1}
.experience-record-accent{position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(to bottom,var(--accent),color-mix(in srgb,var(--accent) 36%,transparent));z-index:4}
.experience-corner-mark{position:absolute;right:26px;top:24px;width:64px;height:64px;border-top:2px solid color-mix(in srgb,var(--accent) 70%,transparent);border-right:2px solid color-mix(in srgb,var(--accent) 70%,transparent);opacity:.7;z-index:2}
.experience-record-number{position:absolute;right:30px;bottom:10px;font-family:"Work Sans",Arial,sans-serif;font-size:clamp(78px,9vw,132px);line-height:.8;font-weight:800;letter-spacing:-.08em;color:color-mix(in srgb,var(--text) 3.25%,transparent);pointer-events:none;user-select:none;z-index:0;transition:color .35s ease,transform .55s cubic-bezier(.22,1,.36,1)}
.experience-record.is-active:hover .experience-record-number{color:color-mix(in srgb,var(--accent) 6.5%,transparent);transform:translate3d(-8px,-4px,0)}

.experience-record-head,.experience-record-body,.experience-record-footer{position:relative;z-index:2}
.experience-record-head{padding:34px 42px 26px 46px;border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent)}
.experience-company-title{margin:0 0 10px;font-family:"Work Sans",Arial,sans-serif;font-size:clamp(28px,3.05vw,46px);line-height:1;letter-spacing:-.045em;font-weight:800;text-transform:uppercase;color:var(--text)}
.experience-company-title span{font-size:.43em;letter-spacing:.06em;font-weight:700;color:var(--accent);vertical-align:.2em;margin-left:8px}
.experience-record h3{margin:0;font-family:"Work Sans",Arial,sans-serif;font-size:clamp(19px,1.75vw,27px);line-height:1.08;letter-spacing:-.025em;font-weight:680;text-transform:uppercase;color:color-mix(in srgb,var(--text) 90%,var(--muted))}
.experience-role-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:10px;font-family:"Work Sans",Arial,sans-serif;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.experience-role-meta i{width:22px;height:1px;background:var(--accent);display:block}

.experience-record-body{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(520px,1.22fr);gap:46px;padding:30px 42px 31px 46px}
.experience-overview{align-self:start}
.experience-summary{margin:0;font-size:16px;line-height:1.72;color:var(--muted)}
.experience-responsibilities{padding-left:38px;border-left:1px solid color-mix(in srgb,var(--line) 78%,transparent)}
.experience-mini-label{margin:0 0 13px;font-family:"Work Sans",Arial,sans-serif;font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:color-mix(in srgb,var(--text) 58%,var(--muted))}
.experience-responsibilities ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:11px 28px}
.experience-responsibilities li{position:relative;padding-left:18px;font-size:13.7px;line-height:1.5;color:color-mix(in srgb,var(--text) 79%,var(--muted))}
.experience-responsibilities li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 11%,transparent)}

.experience-record-footer{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 42px 19px 46px;background:color-mix(in srgb,var(--text) 1.35%,transparent);border-top:1px solid color-mix(in srgb,var(--line) 76%,transparent)}
.experience-reference{text-align:left;min-width:0}
.experience-reference strong,.experience-reference span{display:block}
.experience-reference strong{font-family:"Work Sans",Arial,sans-serif;font-size:12.5px;line-height:1.35;font-weight:760;color:var(--text)}
.experience-reference span{margin-top:3px;font-size:11.5px;line-height:1.45;color:var(--muted)}
.experience-platform-link{min-height:40px;display:inline-flex;align-items:center;gap:9px;padding:0 15px;background:var(--accent);border:1px solid var(--accent);font-family:"Work Sans",Arial,sans-serif;font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;color:#1f2327;text-decoration:none;transition:transform .28s ease,box-shadow .28s ease}
.experience-platform-link:hover{transform:translateY(-2px);box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 25%,transparent)}
.experience-platform-link span{font-size:14px;line-height:1}

/* Active panel unfolds in a recruiter-reading sequence. */
.experience-record.is-active .experience-record-head,.experience-record.is-active .experience-overview,.experience-record.is-active .experience-responsibilities,.experience-record.is-active .experience-record-footer{animation:experience-panel-reveal .78s cubic-bezier(.16,1,.3,1) both}
.experience-record.is-active .experience-overview{animation-delay:.08s}
.experience-record.is-active .experience-responsibilities{animation-delay:.15s}
.experience-record.is-active .experience-record-footer{animation-delay:.22s}
@keyframes experience-panel-reveal{from{opacity:0;filter:blur(4px);transform:translate3d(0,16px,0)}to{opacity:1;filter:blur(0);transform:none}}

.experience-section.is-exiting .experience-heading .section-kicker,.experience-section.is-exiting .experience-heading h2,.experience-section.is-exiting .experience-heading .section-title-decoration,.experience-section.is-exiting .experience-intro,.experience-section.is-exiting .experience-switcher,.experience-section.is-exiting .experience-record.is-active{transition-delay:0s!important;opacity:0;filter:blur(6px)}
.experience-section.is-exiting-forward .experience-heading .section-kicker,.experience-section.is-exiting-forward .experience-heading h2,.experience-section.is-exiting-forward .experience-heading .section-title-decoration,.experience-section.is-exiting-forward .experience-intro,.experience-section.is-exiting-forward .experience-switcher{transform:translate3d(0,-26px,0)}
.experience-section.is-exiting-backward .experience-heading .section-kicker,.experience-section.is-exiting-backward .experience-heading h2,.experience-section.is-exiting-backward .experience-heading .section-title-decoration,.experience-section.is-exiting-backward .experience-intro,.experience-section.is-exiting-backward .experience-switcher{transform:translate3d(0,26px,0)}
.experience-section.is-exiting-forward .experience-record.is-active{transform:translate3d(-44px,-8px,0) scale(.986)}
.experience-section.is-exiting-backward .experience-record.is-active{transform:translate3d(44px,8px,0) scale(.986)}

@media (max-width:1250px){
  .experience-shell{width:min(1060px,calc(100% - 62px));padding-top:48px}
  .experience-record-body{grid-template-columns:minmax(230px,.72fr) minmax(450px,1.28fr);gap:34px}
  .experience-responsibilities{padding-left:30px}
  .experience-responsibilities ul{gap:10px 19px}
}
@media (max-width:1000px){
  .experience-shell{width:calc(100% - 48px);padding:calc(var(--mobile-topbar-height) + var(--safe-top) + 34px) 0 calc(96px + var(--safe-bottom));justify-content:flex-start}
  .experience-heading{margin-bottom:26px}
  .experience-heading h2{font-size:clamp(34px,7vw,48px)}
  .experience-intro{font-size:15px;line-height:1.65;max-width:720px}
  .experience-switch{min-height:66px;padding:12px 14px;gap:11px}
  .experience-switch-copy{align-items:flex-start;flex-direction:column;gap:3px}
  .experience-switch-copy strong{font-size:13px}
  .experience-stage{min-height:0}
  .experience-record{position:absolute}
  .experience-record.is-active{position:relative}
  .experience-record-head{padding:28px 29px 23px 33px}
  .experience-company-title{font-size:clamp(27px,5.1vw,39px)}
  .experience-record-body{grid-template-columns:1fr;gap:24px;padding:25px 29px 28px 33px}
  .experience-responsibilities{padding-left:0;padding-top:23px;border-left:0;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)}
  .experience-record-footer{padding:19px 29px 20px 33px}
  .experience-record:hover{transform:none}
}
@media (max-width:650px){
  .experience-shell{width:calc(100% - 30px);padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 25px);padding-bottom:calc(108px + var(--safe-bottom))}
  .experience-heading{margin-bottom:21px}
  .experience-heading h2{font-size:32px}
  .experience-intro{font-size:14px;line-height:1.58;margin-top:16px}
  .experience-switcher{margin-bottom:14px}
  .experience-switch{min-height:61px;padding:10px 11px;grid-template-columns:auto 1fr;gap:9px}
  .experience-switch-arrow{display:none}
  .experience-switch-copy strong{font-size:11.5px;white-space:normal;line-height:1.15}
  .experience-switch-copy small{font-size:8px}
  .experience-switch-index{font-size:9px}
  .experience-record-head{padding:23px 20px 20px 24px}
  .experience-company-title{font-size:clamp(25px,8vw,34px);padding-right:36px}
  .experience-company-title span{display:block;margin:7px 0 0;font-size:.34em}
  .experience-record h3{font-size:clamp(18px,5.3vw,23px)}
  .experience-role-meta{font-size:9px;gap:7px;margin-top:9px}
  .experience-role-meta i{width:16px}
  .experience-record-number{font-size:70px;right:12px;bottom:8px}
  .experience-corner-mark{right:16px;top:15px;width:42px;height:42px}
  .experience-record-body{padding:21px 20px 24px 24px}
  .experience-summary{font-size:14px;line-height:1.61}
  .experience-responsibilities ul{grid-template-columns:1fr;gap:9px}
  .experience-responsibilities li{font-size:13px;line-height:1.5}
  .experience-record-footer{align-items:flex-start;flex-direction:column;gap:15px;padding:18px 20px 20px 24px}
  .experience-platform-link{width:100%;justify-content:center}
}
@media (max-height:690px) and (min-width:1001px){
  .experience-shell{justify-content:flex-start;padding-top:32px;padding-bottom:62px}
  .experience-heading{margin-bottom:22px}
  .experience-heading h2{font-size:42px}
  .experience-intro{font-size:14.5px;line-height:1.55;margin-top:14px}
  .experience-switch{min-height:62px}
}
@media (hover:none),(pointer:coarse){
  .experience-record::before{display:none}
  .experience-record.is-active:hover{box-shadow:0 22px 56px rgba(23,27,31,.05);border-color:color-mix(in srgb,var(--line) 90%,transparent)}
}
@media (prefers-reduced-motion:reduce){
  .experience-heading .section-kicker,.experience-heading h2,.experience-heading .section-title-decoration,.experience-intro,.experience-switcher,.experience-record,.experience-record-head,.experience-overview,.experience-responsibilities,.experience-record-footer{opacity:1!important;filter:none!important;transform:none!important;transition:none!important;animation:none!important}
  .experience-record:not(.is-active){display:none!important}
}

/* ==========================================================================
   V3.5 EXPERIENCE REFINEMENT
   Desktop keeps the switcher. Tablet/mobile shows both records vertically.
   ========================================================================== */
.experience-shell{
  justify-content:flex-start;
  padding-top:68px;
}
.experience-stage{min-height:455px}
.experience-company-title{
  font-size:clamp(24px,2.45vw,38px);
  line-height:1.04;
  letter-spacing:-.04em;
}
.experience-record h3{
  font-size:clamp(17px,1.45vw,23px);
  line-height:1.12;
}
.experience-role-meta{
  gap:8px;
  margin-top:9px;
  font-size:10.5px;
}
.experience-role-meta i{display:none}
.experience-record-body{
  display:block;
  padding:27px 42px 30px 46px;
}
.experience-responsibilities{
  padding:0;
  border:0;
}
.experience-responsibilities ul{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px 34px;
}
.experience-responsibilities li{
  font-size:15.5px;
  line-height:1.58;
  padding-left:19px;
}
.experience-mini-label{font-size:9.5px;margin-bottom:15px}
.experience-switch-copy{display:block}
.experience-switch-copy strong{
  font-size:14px;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.experience-switch-copy small{display:none}
.experience-reference{text-align:left}

@media (max-width:1000px){
  .experience-scroll{scroll-padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 52px)}
  .experience-shell{
    width:calc(100% - 48px);
    padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 58px);
    padding-bottom:calc(110px + var(--safe-bottom));
    justify-content:flex-start;
  }
  .experience-heading{margin-bottom:28px}
  .experience-switcher{display:none!important}
  .experience-stage{
    display:flex;
    flex-direction:column;
    gap:22px;
    min-height:0;
  }
  .experience-record,
  .experience-record.is-active,
  .experience-record[aria-hidden="true"]{
    position:relative!important;
    inset:auto!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    filter:none!important;
    transform:none!important;
    transition:border-color .3s ease,box-shadow .3s ease!important;
  }
  .experience-record-head{padding:27px 28px 22px 32px}
  .experience-company-title{font-size:clamp(24px,4.7vw,34px);padding-right:34px}
  .experience-record h3{font-size:clamp(17px,3.3vw,21px)}
  .experience-role-meta{font-size:10px;line-height:1.45;gap:7px}
  .experience-record-body{padding:23px 28px 27px 32px}
  .experience-responsibilities{padding:0;border:0}
  .experience-responsibilities ul{grid-template-columns:1fr;gap:10px}
  .experience-responsibilities li{font-size:15px;line-height:1.58}
  .experience-record-footer{padding:18px 28px 20px 32px}
  .experience-record:hover{transform:none!important}
}

@media (max-width:650px){
  .experience-shell{
    width:calc(100% - 30px);
    padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 48px);
    padding-bottom:calc(118px + var(--safe-bottom));
  }
  .experience-heading{margin-bottom:22px}
  .experience-heading h2{font-size:30px}
  .experience-intro{font-size:15px;line-height:1.62;margin-top:15px}
  .experience-stage{gap:18px}
  .experience-record-head{padding:22px 19px 18px 23px}
  .experience-company-title{font-size:clamp(22px,6.6vw,29px);padding-right:30px}
  .experience-record h3{font-size:17px;line-height:1.18}
  .experience-role-meta{font-size:9.5px;gap:6px;margin-top:8px}
  .experience-record-body{padding:20px 19px 23px 23px}
  .experience-responsibilities li{font-size:14.5px;line-height:1.55;padding-left:17px}
  .experience-record-footer{padding:17px 19px 19px 23px}
  .experience-record-number{font-size:64px}
}
@media (max-width:1000px){
  .experience-record,
  .experience-record.is-active,
  .experience-record[aria-hidden="true"]{display:block!important}
}

/* ==========================================================================
   V3.6 BEST PROJECTS — interactive workstation + project files
   ========================================================================== */
.projects-section{background:var(--section-bg);position:relative;z-index:0}
.projects-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 64%,transparent) transparent}
.projects-scroll::-webkit-scrollbar{width:6px}.projects-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 64%,transparent)}
.projects-shell{width:min(1220px,calc(100% - 108px));min-height:100%;margin:0 auto;padding:58px 0 86px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.projects-heading{margin-bottom:28px;max-width:820px}
.projects-heading .section-kicker,.projects-heading h2,.projects-heading .section-title-decoration{opacity:0;filter:blur(7px);transform:translate3d(0,24px,0);transition:opacity 1s ease,filter 1s ease,transform 1.2s cubic-bezier(.16,1,.3,1)}
.projects-heading h2{font-family:"Work Sans",Arial,sans-serif;font-size:clamp(42px,4.1vw,62px);line-height:1;letter-spacing:-.045em;text-transform:uppercase;margin:7px 0 0;color:var(--text)}
.projects-section.is-active .projects-heading .section-kicker,.projects-section.is-active .projects-heading h2,.projects-section.is-active .projects-heading .section-title-decoration{opacity:1;filter:none;transform:none}
.projects-section.is-active .projects-heading .section-kicker{transition-delay:.12s}.projects-section.is-active .projects-heading h2{transition-delay:.25s}.projects-section.is-active .projects-heading .section-title-decoration{transition-delay:.4s}
.projects-desktop-studio{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:28px;align-items:center;opacity:0;filter:blur(8px);transform:translate3d(0,34px,0) scale(.982);transition:opacity 1.05s .4s ease,filter 1.05s .4s ease,transform 1.35s .4s cubic-bezier(.16,1,.3,1)}
.projects-section.is-active .projects-desktop-studio{opacity:1;filter:none;transform:none}
.project-workstation{position:relative;min-width:0;padding:14px 18px 30px 0}
.project-screen-glow{position:absolute;left:3%;right:7%;top:8%;bottom:16%;background:var(--accent);opacity:.13;filter:blur(1px);transform:translate(16px,13px) rotate(-1.2deg);pointer-events:none}
.project-browser{position:relative;background:#15181b;border:8px solid #24282c;box-shadow:0 28px 66px rgba(18,22,26,.16);min-height:470px;overflow:hidden;z-index:2;transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease}
.project-browser:hover{transform:translateY(-4px);box-shadow:0 36px 78px rgba(18,22,26,.2)}
.project-browser-bar{height:42px;display:grid;grid-template-columns:64px minmax(0,1fr) 42px;align-items:center;background:#22272b;border-bottom:1px solid rgba(255,255,255,.07);padding:0 8px}
.project-browser-dots{display:flex;gap:6px;padding-left:4px}.project-browser-dots span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.2)}.project-browser-dots span:nth-child(2){background:color-mix(in srgb,var(--accent) 45%,#fff 10%)}.project-browser-dots span:nth-child(3){background:rgba(255,255,255,.34)}
.project-browser-address{height:24px;display:flex;align-items:center;justify-content:center;min-width:0;padding:0 14px;background:#171b1e;color:rgba(255,255,255,.52);font-size:9px;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-browser-open{width:30px;height:30px;display:grid;place-items:center;color:var(--accent);text-decoration:none;font:800 16px/1 "Work Sans",sans-serif}
.project-browser-viewport{height:428px;position:relative;background:#f0f1f2;overflow:hidden}
.project-browser iframe{width:100%;height:100%;border:0;background:#fff;display:block;transition:opacity .35s ease}
.project-preview-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8f8f8,#eceef0);opacity:0;visibility:hidden;transition:opacity .32s ease,visibility .32s ease;z-index:2;overflow:hidden}.project-preview-fallback.is-visible{opacity:1;visibility:visible}.project-preview-fallback img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.86) contrast(.98)}.project-preview-fallback:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(20,23,26,.32))}.project-fallback-copy{position:relative;z-index:2;max-width:420px;text-align:center;padding:26px}.project-fallback-copy span{font:800 9px/1 "Work Sans",sans-serif;letter-spacing:.18em;color:var(--accent)}.project-fallback-copy strong{display:block;margin:10px 0 9px;font:700 clamp(24px,2.1vw,36px)/1 "Work Sans",sans-serif;text-transform:uppercase;color:#24282c}.project-fallback-copy p{font-size:12px;line-height:1.55;color:#666d74;margin:0}
.project-screen-overlay{position:absolute;left:0;right:0;bottom:0;z-index:4;min-height:114px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:17px;padding:17px 20px;background:linear-gradient(90deg,rgba(24,28,31,.96),rgba(24,28,31,.9) 67%,rgba(24,28,31,.94));backdrop-filter:blur(8px);color:#fff;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.project-screen-index{font:800 10px/1 "Work Sans",sans-serif;letter-spacing:.16em;color:var(--accent);align-self:start;padding-top:5px}.project-screen-overlay h3{font:700 clamp(20px,1.65vw,27px)/1.05 "Work Sans",sans-serif;letter-spacing:-.035em;text-transform:uppercase;margin:0}.project-screen-overlay p{font-size:12.5px;line-height:1.55;color:rgba(255,255,255,.63);margin:8px 0 0;max-width:590px}.project-more-button{height:42px;border:1px solid var(--accent);background:var(--accent);color:#202428;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font:800 9.5px/1 "Work Sans",sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:transform .28s ease,background .28s ease,box-shadow .28s ease}.project-more-button span{font-size:16px;line-height:1}.project-more-button:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--accent) 88%,white);box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 23%,transparent)}
.project-frame-help{position:absolute;right:12px;top:51px;z-index:5;background:rgba(25,29,32,.86);color:rgba(255,255,255,.54);font:700 7px/1 "Work Sans",sans-serif;letter-spacing:.09em;padding:7px 9px;opacity:0;transform:translateY(-4px);transition:opacity .25s ease,transform .25s ease}.project-browser:hover .project-frame-help{opacity:1;transform:none}.project-frame-help a{color:var(--accent);text-decoration:none;margin-left:5px}
.project-monitor-stand{height:28px;position:relative;z-index:1}.project-monitor-stand span{position:absolute;left:50%;top:0;width:92px;height:22px;transform:translateX(-50%);background:linear-gradient(90deg,#262b2f,#33393e 50%,#262b2f);clip-path:polygon(34% 0,66% 0,78% 100%,22% 100%)}.project-monitor-stand i{position:absolute;left:50%;bottom:0;width:190px;height:7px;transform:translateX(-50%);background:#202428;border-radius:50% 50% 10% 10%}
.project-selector{align-self:stretch;min-height:0;display:flex;flex-direction:column;border-left:1px solid color-mix(in srgb,var(--line) 80%,transparent);padding-left:18px}.project-selector-head{display:flex;justify-content:space-between;align-items:center;padding:5px 4px 13px;border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent);font:800 8px/1 "Work Sans",sans-serif;letter-spacing:.15em;color:var(--muted)}.project-selector-head strong{font-size:12px;color:var(--text)}.project-selector-list{display:flex;flex-direction:column;gap:5px;padding-top:8px;overflow:auto;scrollbar-width:none}.project-selector-list::-webkit-scrollbar{display:none}.project-selector-item{position:relative;min-height:66px;display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:8px;width:100%;padding:10px 8px;border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);background:transparent;color:var(--muted);text-align:left;cursor:pointer;transition:background .3s ease,color .3s ease,transform .3s ease}.project-selector-item>span{font:800 8px/1 "Work Sans",sans-serif;letter-spacing:.12em}.project-selector-item strong{font:700 11.5px/1.15 "Work Sans",sans-serif;text-transform:uppercase}.project-selector-item i{font-style:normal;font-size:13px;color:transparent;transition:color .25s ease,transform .25s ease}.project-selector-item:hover{color:var(--text);transform:translateX(3px)}.project-selector-item.is-active{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 17%,transparent),transparent);color:var(--text)}.project-selector-item.is-active:before{content:"";position:absolute;left:-19px;top:0;bottom:0;width:3px;background:var(--accent)}.project-selector-item.is-active>span,.project-selector-item.is-active i{color:var(--accent)}.project-selector-item.is-active i{transform:translate(2px,-1px)}
.projects-mobile-list{display:none}.projects-empty{min-height:390px;border:1px solid color-mix(in srgb,var(--line) 90%,transparent);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 5%,transparent),transparent)}.projects-empty>span{font:800 10px/1 "Work Sans",sans-serif;letter-spacing:.18em;color:var(--accent)}.projects-empty h3{font:700 clamp(25px,2.6vw,38px)/1 "Work Sans",sans-serif;text-transform:uppercase;margin:13px 0 7px}.projects-empty p{font-size:14px;color:var(--muted);margin:0}

/* Project file modal */
.project-modal{position:absolute;inset:0;z-index:80;display:grid;place-items:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .38s ease,visibility .38s ease}.project-modal.is-open{opacity:1;visibility:visible;pointer-events:auto}.project-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(19,23,26,.56);backdrop-filter:blur(9px);cursor:pointer}.project-modal-panel{position:relative;width:min(1050px,calc(100% - 80px));height:min(700px,calc(100% - 74px));display:grid;grid-template-columns:230px minmax(0,1fr);background:#fff;box-shadow:0 36px 100px rgba(16,20,23,.26);opacity:0;transform:translateY(28px) scale(.975);transition:opacity .5s ease,transform .6s cubic-bezier(.16,1,.3,1);overflow:hidden}.project-modal.is-open .project-modal-panel{opacity:1;transform:none}.project-modal-rail{background:#24292d;color:#fff;padding:34px 28px;display:flex;flex-direction:column;position:relative;overflow:hidden}.project-modal-rail:after{content:"";position:absolute;width:180px;height:180px;right:-85px;bottom:-52px;background:var(--accent);opacity:.12;transform:rotate(34deg)}.project-modal-index{font:800 11px/1 "Work Sans",sans-serif;letter-spacing:.15em;color:var(--accent)}.project-modal-rail-copy{margin-top:auto;position:relative;z-index:2}.project-modal-rail-copy span{display:block;font:800 8px/1 "Work Sans",sans-serif;letter-spacing:.18em;color:rgba(255,255,255,.42);margin-bottom:9px}.project-modal-rail-copy strong{display:block;font:700 24px/1.02 "Work Sans",sans-serif;text-transform:uppercase;letter-spacing:-.04em}.project-modal-rail>a{position:relative;z-index:2;margin-top:25px;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border:1px solid rgba(255,255,255,.18);color:#fff;text-decoration:none;font:800 9px/1 "Work Sans",sans-serif;letter-spacing:.1em}.project-modal-rail>a:hover{border-color:var(--accent);color:var(--accent)}.project-modal-content{position:relative;overflow:auto;padding:52px 58px 60px;scrollbar-width:thin;scrollbar-color:var(--accent) transparent}.project-modal-close{position:absolute;right:22px;top:20px;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--line) 90%,transparent);background:#fff;color:var(--text);font:400 27px/1 Inter,sans-serif;cursor:pointer;display:grid;place-items:center;z-index:4;transition:background .25s ease,transform .25s ease}.project-modal-close:hover{background:var(--accent);transform:rotate(3deg)}.project-modal-header .project-modal-eyebrow{font:800 9px/1 "Work Sans",sans-serif;letter-spacing:.18em;color:var(--accent);margin:0}.project-modal-header h2{font:700 clamp(38px,4vw,58px)/.98 "Work Sans",sans-serif;letter-spacing:-.05em;text-transform:uppercase;margin:10px 70px 0 0}.project-modal-body{padding-top:34px}.project-modal-body section>span{display:block;font:800 8.5px/1 "Work Sans",sans-serif;letter-spacing:.16em;color:var(--muted);margin-bottom:13px}.project-modal-about{padding-bottom:32px;border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent)}.project-modal-about p{font-size:16px;line-height:1.75;color:var(--muted);margin:0;white-space:pre-line}.project-modal-columns{display:grid;grid-template-columns:1fr 1fr;gap:42px;padding-top:31px}.project-modal-columns ol{list-style:none;counter-reset:projectstep;margin:0;padding:0}.project-modal-columns li{counter-increment:projectstep;position:relative;padding:0 0 17px 35px;font-size:14px;line-height:1.58;color:color-mix(in srgb,var(--text) 80%,var(--muted))}.project-modal-columns li:before{content:counter(projectstep,decimal-leading-zero);position:absolute;left:0;top:.2em;font:800 8px/1 "Work Sans",sans-serif;letter-spacing:.1em;color:var(--accent)}.project-modal-columns li+li{border-top:1px solid color-mix(in srgb,var(--line) 58%,transparent);padding-top:17px}.project-modal-columns li+li:before{top:19px}body.project-modal-open .section-controls,body.project-modal-open .mobile-page-nav-floating,body.project-modal-open .mobile-recruiter-actions{opacity:0!important;pointer-events:none!important}

/* Projects section entrance / exit */
.projects-section.is-exiting .projects-heading .section-kicker,.projects-section.is-exiting .projects-heading h2,.projects-section.is-exiting .projects-heading .section-title-decoration,.projects-section.is-exiting .projects-desktop-studio,.projects-section.is-exiting .projects-mobile-list,.projects-section.is-exiting .projects-empty{transition-delay:0s!important;opacity:0;filter:blur(7px)}.projects-section.is-exiting-forward .projects-heading>*{transform:translateY(-24px)}.projects-section.is-exiting-backward .projects-heading>*{transform:translateY(24px)}.projects-section.is-exiting-forward .projects-desktop-studio,.projects-section.is-exiting-forward .projects-mobile-list{transform:translate3d(-32px,-8px,0) scale(.985)}.projects-section.is-exiting-backward .projects-desktop-studio,.projects-section.is-exiting-backward .projects-mobile-list{transform:translate3d(32px,8px,0) scale(.985)}

@media(max-width:1250px) and (min-width:1001px){.projects-shell{width:min(1050px,calc(100% - 66px));padding-top:46px}.projects-desktop-studio{grid-template-columns:minmax(0,1fr) 225px;gap:20px}.project-browser{min-height:430px}.project-browser-viewport{height:388px}.project-screen-overlay{min-height:105px;padding:14px 17px}.project-screen-overlay p{font-size:11.5px}.project-selector-item{min-height:61px}}

@media(max-width:1000px){
  .projects-shell{width:calc(100% - 48px);padding:calc(var(--mobile-topbar-height) + var(--safe-top) + 45px) 0 calc(120px + var(--safe-bottom));justify-content:flex-start}
  .projects-heading{margin-bottom:26px}.projects-heading h2{font-size:clamp(34px,7vw,48px)}
  .projects-desktop-studio{display:none}
  .projects-mobile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;opacity:0;filter:blur(7px);transform:translateY(28px);transition:opacity 1s .38s ease,filter 1s .38s ease,transform 1.2s .38s cubic-bezier(.16,1,.3,1)}.projects-section.is-active .projects-mobile-list{opacity:1;filter:none;transform:none}
  .project-mobile-card{border:1px solid color-mix(in srgb,var(--line) 88%,transparent);background:#fff;box-shadow:0 18px 44px rgba(22,26,30,.055);overflow:hidden}
  .project-mobile-preview{height:210px;position:relative;background:#eceff1;overflow:hidden}.project-mobile-preview img{width:100%;height:100%;object-fit:cover}.project-mobile-preview:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(18,22,25,.15))}.project-mobile-number{position:absolute;left:14px;top:14px;z-index:2;padding:7px 8px;background:#24292d;color:var(--accent);font:800 9px/1 "Work Sans",sans-serif;letter-spacing:.12em}.project-mobile-placeholder{height:100%;display:grid;place-items:center;position:relative;background:linear-gradient(135deg,#262b2f,#171b1e);color:rgba(255,255,255,.2)}.project-mobile-placeholder span{position:absolute;left:15px;bottom:13px;font:800 52px/1 "Work Sans",sans-serif;letter-spacing:-.08em}.project-mobile-placeholder i{font:800 25px/1 "Work Sans",sans-serif;color:var(--accent)}
  .project-mobile-content{padding:20px}.project-mobile-content h3{font:700 22px/1.05 "Work Sans",sans-serif;letter-spacing:-.035em;text-transform:uppercase;margin:0}.project-mobile-content p{font-size:15px;line-height:1.62;color:var(--muted);margin:11px 0 19px}.project-mobile-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-mobile-actions>a{width:42px;height:42px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--line) 95%,transparent);color:var(--text);text-decoration:none;font-size:16px}
  .project-modal{position:fixed;z-index:140}.project-modal-panel{width:100%;height:100%;grid-template-columns:1fr;transform:translateY(40px);box-shadow:none}.project-modal-backdrop{display:none}.project-modal-rail{display:none}.project-modal-content{padding:calc(var(--safe-top) + 78px) 34px calc(var(--safe-bottom) + 46px)}.project-modal-close{position:fixed;right:18px;top:calc(var(--safe-top) + 16px);width:46px;height:46px;background:var(--accent);border-color:var(--accent)}.project-modal-header h2{font-size:clamp(38px,7.6vw,54px);margin-right:0}.project-modal-about p{font-size:16px}.project-modal-columns{gap:28px}
}
@media(max-width:650px){
  .projects-shell{width:calc(100% - 30px);padding-top:calc(var(--mobile-topbar-height) + var(--safe-top) + 34px);padding-bottom:calc(126px + var(--safe-bottom))}.projects-heading{margin-bottom:21px}.projects-heading h2{font-size:30px}.projects-mobile-list{grid-template-columns:1fr;gap:17px}.project-mobile-preview{height:min(52vw,235px)}.project-mobile-content{padding:18px}.project-mobile-content h3{font-size:21px}.project-mobile-content p{font-size:15px;line-height:1.6}.project-more-button{height:40px;font-size:9px}.project-modal-content{padding-left:22px;padding-right:22px}.project-modal-header h2{font-size:36px}.project-modal-body{padding-top:28px}.project-modal-about p{font-size:15px;line-height:1.68}.project-modal-columns{grid-template-columns:1fr;gap:31px}.project-modal-columns li{font-size:14px;line-height:1.56}
}
@media(max-width:370px){.projects-shell{width:calc(100% - 24px)}.project-mobile-content h3{font-size:19px}.project-mobile-preview{height:180px}.project-modal-content{padding-left:18px;padding-right:18px}.project-modal-header h2{font-size:31px}}
@media(prefers-reduced-motion:reduce){.projects-heading .section-kicker,.projects-heading h2,.projects-heading .section-title-decoration,.projects-desktop-studio,.projects-mobile-list,.project-modal,.project-modal-panel{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}}

/* V3.7 project preview refinements */
@media (min-width:1001px){
  .project-browser{overflow:visible}
  .project-browser-bar{grid-template-columns:64px minmax(0,1fr) auto;gap:8px}
  .project-browser-open{width:auto;height:30px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--accent);text-decoration:none;font:800 8px/1 "Work Sans",sans-serif;letter-spacing:.10em;white-space:nowrap;border-left:1px solid rgba(255,255,255,.08)}
  .project-browser-open span{display:block}
  .project-browser-open i{font-style:normal;font-size:14px;line-height:1;transition:transform .25s ease}
  .project-browser-open:hover i{transform:translate(2px,-2px)}
  .project-browser-viewport{height:clamp(500px,58vh,700px);overflow:hidden;position:relative;background:#f0f1f2}
  .project-browser iframe{position:relative;z-index:2;width:100%;height:100%;border:0;background:#fff;display:block;overflow:auto;transition:opacity .35s ease}
  .project-preview-fallback{z-index:1}
  .project-preview-fallback.is-visible{z-index:3}
  .project-screen-overlay{position:relative;left:auto;right:auto;bottom:auto;z-index:3;min-height:112px}
  .project-frame-help{display:none!important}
}

.project-preview-fallback{background:linear-gradient(135deg,#f7f7f7,#e8eaec)}
.project-preview-fallback img{filter:saturate(.9) contrast(.98)}
.project-preview-fallback:after{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(20,23,26,.14))}
.project-fallback-copy{display:none!important}
.project-fallback-mark{position:relative;z-index:2;display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(36,40,44,.16);background:rgba(255,255,255,.62);backdrop-filter:blur(7px);font:800 15px/1 "Work Sans",sans-serif;color:var(--accent);box-shadow:0 12px 28px rgba(24,28,31,.08)}

@media(max-width:1000px){
  .project-mobile-actions{align-items:stretch}
  .project-mobile-live{min-height:40px;width:auto!important;padding:0 13px;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;border:1px solid color-mix(in srgb,var(--line) 95%,transparent);color:var(--text);text-decoration:none;font:800 9px/1 "Work Sans",sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
  .project-mobile-live i{font-style:normal;font-size:14px;line-height:1;color:var(--accent)}
  .project-mobile-live span{display:block}
}
\n\n

/* V3.9 adaptive iframe viewport: use the real monitor width. */
@media (min-width:1001px){
  .projects-desktop-studio,
  .project-workstation,
  .project-browser,
  .project-browser-viewport{
    min-width:0;
  }
  .project-browser-viewport{
    isolation:isolate;
    overflow:hidden;
  }
  .project-browser iframe[data-project-frame]{
    position:relative;
    inset:auto;
    width:100%;
    min-width:0;
    max-width:100%;
    height:100%;
    transform:none;
    border:0;
    background:#fff;
    display:block;
  }
}

/* =========================================================
   V4.0 — EDUCATION & CERTIFICATIONS
   Credential archive: academic foundation + certifications
   ========================================================= */
.education-section{background:var(--section-bg);position:relative;z-index:0}
.education-scroll{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 72%,transparent) transparent;overscroll-behavior:contain}
.education-scroll::-webkit-scrollbar{width:7px}.education-scroll::-webkit-scrollbar-track{background:transparent}.education-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 72%,transparent)}
.education-shell{width:min(1160px,calc(100% - 11vw));margin:0 auto;padding:clamp(76px,9vh,112px) 0 108px;position:relative;z-index:2}
.education-heading{margin-bottom:42px}
.education-heading h2{font:700 clamp(40px,4.1vw,64px)/.98 "Work Sans",Arial,sans-serif;letter-spacing:-.045em;margin:0;color:var(--text);text-transform:uppercase;max-width:900px}
.education-heading .section-kicker,.education-heading h2,.education-heading .section-title-decoration{opacity:0;filter:blur(8px);transition:opacity 1s ease,filter 1s ease,transform 1.25s cubic-bezier(.16,1,.3,1)}
.education-heading .section-kicker{transform:translate3d(-26px,10px,0)}
.education-heading h2{transform:translate3d(0,30px,0) scale(.975)}
.education-heading .section-title-decoration{transform:translate3d(-20px,0,0) scaleX(.32);transform-origin:left center}
.education-section.is-active .education-heading .section-kicker,.education-section.is-active .education-heading h2,.education-section.is-active .education-heading .section-title-decoration{opacity:1;filter:none;transform:none}
.education-section.is-active .education-heading .section-kicker{transition-delay:.10s}.education-section.is-active .education-heading h2{transition-delay:.24s}.education-section.is-active .education-heading .section-title-decoration{transition-delay:.39s}

.education-layout{display:grid;grid-template-columns:minmax(330px,.82fr) minmax(520px,1.48fr);gap:42px;align-items:start}
.education-academic,.education-learning{min-width:0}
.education-column-head{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;min-height:52px;margin-bottom:16px;border-bottom:1px solid color-mix(in srgb,var(--line) 88%,transparent);opacity:0;filter:blur(7px);transform:translateY(20px);transition:opacity .9s ease,filter .9s ease,transform 1.08s cubic-bezier(.16,1,.3,1)}
.education-column-index{font:800 11px/1 "Work Sans",Arial,sans-serif;letter-spacing:.12em;color:var(--accent)}
.education-column-head .education-group-title{font:700 12px/1.2 "Work Sans",Arial,sans-serif;letter-spacing:.08em;color:var(--text)}
.education-count{justify-self:end;padding:7px 10px;background:color-mix(in srgb,var(--accent) 14%,transparent);font:800 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.08em;color:var(--text);white-space:nowrap}
.education-section.is-active .education-column-head{opacity:1;filter:none;transform:none}.education-section.is-active .education-academic .education-column-head{transition-delay:.52s}.education-section.is-active .education-learning .education-column-head{transition-delay:.61s}

.academic-stack{display:grid;gap:16px}
.academic-card{position:relative;overflow:hidden;min-height:330px;padding:34px 34px 32px;background:linear-gradient(145deg,color-mix(in srgb,var(--text) 98%,#000),color-mix(in srgb,var(--text) 88%,#111));color:#fff;isolation:isolate;opacity:0;filter:blur(8px);transform:translate3d(-32px,26px,0) rotate(-.6deg) scale(.985);transition:opacity 1s ease,filter 1s ease,transform 1.25s cubic-bezier(.16,1,.3,1),box-shadow .38s ease}
.academic-card:before{content:"";position:absolute;left:0;top:0;width:8px;height:100%;background:var(--accent);z-index:2;transform:scaleY(.18);transform-origin:top center;transition:transform 1.15s cubic-bezier(.16,1,.3,1)}
.academic-card:after{content:"";position:absolute;right:-86px;bottom:-88px;width:250px;height:250px;border:1px solid color-mix(in srgb,var(--accent) 26%,transparent);border-radius:50%;box-shadow:0 0 0 26px color-mix(in srgb,var(--accent) 3%,transparent),0 0 0 54px color-mix(in srgb,var(--accent) 2%,transparent);z-index:-1}
.education-section.is-active .academic-card{opacity:1;filter:none;transform:none;transition-delay:.68s}.education-section.is-active .academic-card:before{transform:scaleY(1);transition-delay:.9s}
.academic-card:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(0,0,0,.18)}
.academic-card-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:74px;position:relative;z-index:2}
.academic-year{font:800 13px/1 "Work Sans",Arial,sans-serif;letter-spacing:.12em;color:var(--accent)}
.academic-location{font:700 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.11em;color:rgba(255,255,255,.5)}
.academic-card h4{position:relative;z-index:2;margin:0 0 11px;font:700 clamp(28px,2.2vw,38px)/1.02 "Work Sans",Arial,sans-serif;letter-spacing:-.035em;color:#fff;text-transform:uppercase;max-width:430px}
.academic-institution{position:relative;z-index:2;margin:0;font:700 13px/1.35 "Work Sans",Arial,sans-serif;letter-spacing:.045em;color:var(--accent);text-transform:uppercase}
.academic-description{position:relative;z-index:2;margin:25px 0 0;max-width:520px;font:400 16px/1.7 "Inter",Arial,sans-serif;color:rgba(255,255,255,.68)}
.academic-year-watermark{position:absolute;right:-20px;top:46px;font:800 94px/.8 "Work Sans",Arial,sans-serif;letter-spacing:-.08em;color:rgba(255,255,255,.035);z-index:0;pointer-events:none}
.academic-corner{position:absolute;right:24px;bottom:24px;width:19px;height:19px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);opacity:.78}

.certification-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.certification-card{position:relative;min-height:104px;padding:18px 52px 18px 18px;border:1px solid color-mix(in srgb,var(--text) 11%,var(--line));background:color-mix(in srgb,var(--section-bg) 98%,var(--text));display:grid;grid-template-columns:34px minmax(0,1fr);gap:13px;align-items:center;text-decoration:none;color:inherit;overflow:hidden;isolation:isolate;opacity:0;filter:blur(7px);transform:translate3d(24px,18px,0) scale(.985);transition:opacity .8s ease,filter .8s ease,transform .95s cubic-bezier(.16,1,.3,1),border-color .3s ease,box-shadow .3s ease,background .3s ease}
.certification-card:before{content:"";position:absolute;inset:0;background:linear-gradient(105deg,color-mix(in srgb,var(--accent) 11%,transparent),transparent 55%);opacity:0;transform:translateX(-18%);transition:opacity .32s ease,transform .5s cubic-bezier(.16,1,.3,1);z-index:-1}
.certification-card:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);transform:scaleY(0);transform-origin:top;transition:transform .42s cubic-bezier(.16,1,.3,1)}
.education-section.is-active .certification-card{opacity:1;filter:none;transform:none}
.education-section.is-active .certification-card:nth-child(1){transition-delay:.70s}.education-section.is-active .certification-card:nth-child(2){transition-delay:.75s}.education-section.is-active .certification-card:nth-child(3){transition-delay:.80s}.education-section.is-active .certification-card:nth-child(4){transition-delay:.85s}.education-section.is-active .certification-card:nth-child(5){transition-delay:.90s}.education-section.is-active .certification-card:nth-child(6){transition-delay:.95s}.education-section.is-active .certification-card:nth-child(7){transition-delay:1.00s}.education-section.is-active .certification-card:nth-child(8){transition-delay:1.05s}.education-section.is-active .certification-card:nth-child(9){transition-delay:1.10s}.education-section.is-active .certification-card:nth-child(10){transition-delay:1.15s}.education-section.is-active .certification-card:nth-child(11){transition-delay:1.20s}.education-section.is-active .certification-card:nth-child(12){transition-delay:1.25s}.education-section.is-active .certification-card:nth-child(n+13){transition-delay:1.30s}
.certification-card:hover{border-color:color-mix(in srgb,var(--accent) 72%,var(--line));box-shadow:0 12px 30px rgba(0,0,0,.07);transform:translateY(-2px)}.certification-card:hover:before{opacity:1;transform:none}.certification-card:hover:after{transform:scaleY(1)}
.certification-number{font:800 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.11em;color:var(--accent);align-self:start;margin-top:4px}
.certification-copy h4{margin:0;font:700 15px/1.15 "Work Sans",Arial,sans-serif;letter-spacing:-.015em;color:var(--text);text-transform:uppercase}
.certification-copy p{margin:8px 0 0;font:600 9px/1.3 "Work Sans",Arial,sans-serif;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.certification-copy p span{color:color-mix(in srgb,var(--muted) 75%,transparent)}
.certification-mark{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:25px;height:25px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--text) 12%,var(--line));font:700 13px/1 "Work Sans",Arial,sans-serif;color:var(--muted);transition:background .28s ease,color .28s ease,border-color .28s ease,transform .32s ease}
.certification-card:hover .certification-mark{background:var(--accent);border-color:var(--accent);color:#252525;transform:translateY(-50%) rotate(4deg)}

/* Section exit mirrors the premium motion used elsewhere. */
.education-section.is-exiting .education-heading .section-kicker,.education-section.is-exiting .education-heading h2,.education-section.is-exiting .education-heading .section-title-decoration,.education-section.is-exiting .education-column-head,.education-section.is-exiting .academic-card,.education-section.is-exiting .certification-card{transition-delay:0s!important;opacity:0;filter:blur(7px)}
.education-section.is-exiting-forward .education-heading>*{transform:translateY(-24px)}.education-section.is-exiting-backward .education-heading>*{transform:translateY(24px)}
.education-section.is-exiting-forward .academic-card{transform:translate3d(-28px,-10px,0) scale(.985)}.education-section.is-exiting-backward .academic-card{transform:translate3d(-28px,10px,0) scale(.985)}
.education-section.is-exiting-forward .certification-card{transform:translate3d(24px,-14px,0) scale(.985)}.education-section.is-exiting-backward .certification-card{transform:translate3d(24px,14px,0) scale(.985)}

@media(max-width:1320px){
  .education-shell{width:min(1080px,calc(100% - 9vw))}.education-layout{grid-template-columns:minmax(300px,.78fr) minmax(470px,1.32fr);gap:28px}.academic-card{padding:30px 28px;min-height:318px}.academic-description{font-size:15px}.certification-card{min-height:100px;padding-left:16px}
}
@media(max-width:1100px){
  .education-shell{width:min(850px,calc(100% - 44px));padding:104px 0 128px}.education-heading{margin-bottom:34px}.education-heading h2{font-size:clamp(36px,7vw,55px)}.education-layout{grid-template-columns:1fr;gap:34px}.academic-card{min-height:290px}.academic-card-top{margin-bottom:54px}.certification-board{grid-template-columns:repeat(2,minmax(0,1fr))}.education-column-head{margin-bottom:14px}
}
@media(max-width:680px){
  .education-shell{width:calc(100% - 30px);padding:96px 0 118px}.education-heading{margin-bottom:28px}.education-heading h2{font-size:clamp(32px,10.2vw,43px);line-height:1}.education-layout{gap:28px}.education-column-head{grid-template-columns:35px 1fr;gap:9px;min-height:48px}.education-count{grid-column:2;justify-self:start;margin:-7px 0 10px;padding:6px 8px}.academic-card{min-height:0;padding:26px 24px 28px}.academic-card-top{margin-bottom:42px}.academic-card h4{font-size:29px}.academic-description{font-size:15px;line-height:1.65}.academic-year-watermark{font-size:74px;top:40px}.certification-board{grid-template-columns:1fr;gap:10px}.certification-card{min-height:92px;padding:16px 48px 16px 15px;grid-template-columns:30px 1fr}.certification-copy h4{font-size:15px}.certification-copy p{font-size:9px}.certification-mark{right:14px}
}
@media(max-width:380px){
  .education-shell{width:calc(100% - 24px)}.academic-card{padding:23px 20px 25px}.academic-card h4{font-size:25px}.academic-description{font-size:14px}.certification-card{grid-template-columns:27px 1fr;padding-left:13px}.certification-copy h4{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .education-heading .section-kicker,.education-heading h2,.education-heading .section-title-decoration,.education-column-head,.academic-card,.certification-card,.academic-card:before{opacity:1!important;filter:none!important;transform:none!important;transition:none!important;animation:none!important}
}

/* =========================================================
   V4.1 — EDUCATION + PROFILE REFINEMENT
   Languages, cleaner credentials and stronger section labels.
   ========================================================= */

/* Profile location: visible, compact and consistent with the Hero. */
.hero-location{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  color:color-mix(in srgb,var(--text) 72%,var(--muted));
  font:700 10px/1.2 "Work Sans",Arial,sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
  opacity:0;
  filter:blur(6px);
  transform:translateY(10px);
  transition:opacity .85s ease,filter .85s ease,transform 1s cubic-bezier(.16,1,.3,1);
}
.hero-location svg{width:15px;height:15px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.hero-section.is-active .hero-location{opacity:1;filter:none;transform:none;transition-delay:1.02s}

/* Give the two education pillars stronger visual hierarchy. */
.education-column-head{
  position:relative;
  grid-template-columns:38px 1fr auto;
  min-height:58px;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:1px solid color-mix(in srgb,var(--text) 12%,var(--line));
}
.education-column-head:after{
  content:"";
  position:absolute;
  left:50px;
  bottom:-1px;
  width:84px;
  height:3px;
  background:var(--accent);
  transform:scaleX(.35);
  transform-origin:left center;
  transition:transform .9s cubic-bezier(.16,1,.3,1);
}
.education-section.is-active .education-column-head:after{transform:scaleX(1);transition-delay:.78s}
.education-column-index{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#232323;
  font-size:10px;
  letter-spacing:.08em;
}
.education-column-head .education-group-title{
  font:800 17px/1.05 "Work Sans",Arial,sans-serif;
  letter-spacing:-.02em;
  color:var(--text);
  text-transform:uppercase;
}
.education-count{
  padding:7px 10px;
  font-size:9px;
  letter-spacing:.07em;
}

/* Languages sit directly under the academic foundation. */
.language-panel{
  position:relative;
  margin-top:16px;
  border:1px solid color-mix(in srgb,var(--text) 11%,var(--line));
  background:color-mix(in srgb,var(--section-bg) 98%,var(--text));
  overflow:hidden;
  opacity:0;
  filter:blur(7px);
  transform:translate3d(-24px,18px,0) scale(.988);
  transition:opacity .9s ease,filter .9s ease,transform 1.05s cubic-bezier(.16,1,.3,1),box-shadow .3s ease;
}
.language-panel:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.education-section.is-active .language-panel{opacity:1;filter:none;transform:none;transition-delay:.92s}
.language-panel:hover{box-shadow:0 15px 38px rgba(0,0,0,.07)}
.language-panel-head{display:flex;align-items:center;gap:10px;padding:16px 18px 13px;border-bottom:1px solid color-mix(in srgb,var(--text) 9%,var(--line))}
.language-panel-icon{width:27px;height:27px;display:grid;place-items:center;background:var(--text);color:var(--accent);font:800 10px/1 "Work Sans",Arial,sans-serif}
.language-panel-head strong{font:800 12px/1 "Work Sans",Arial,sans-serif;letter-spacing:.08em;color:var(--text)}
.language-list{display:grid}
.language-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 18px 15px 22px}
.language-row+.language-row{border-top:1px solid color-mix(in srgb,var(--text) 8%,var(--line))}
.language-row>div{min-width:0}
.language-row strong{display:block;font:750 13px/1.15 "Work Sans",Arial,sans-serif;letter-spacing:.02em;color:var(--text)}
.language-row small{display:block;margin-top:5px;font:500 11px/1.45 "Inter",Arial,sans-serif;color:var(--muted)}
.language-row>span{font:800 9px/1 "Work Sans",Arial,sans-serif;letter-spacing:.09em;color:var(--text);text-transform:uppercase;padding:7px 9px;background:color-mix(in srgb,var(--accent) 14%,transparent)}

/* Credentials no longer reserve space for a meaningless plus button. */
.certification-card:not(.has-link){padding-right:18px}
.certification-copy p:empty{display:none}

/* Exit motion includes the new language panel. */
.education-section.is-exiting .language-panel{transition-delay:0s!important;opacity:0;filter:blur(7px)}
.education-section.is-exiting-forward .language-panel{transform:translate3d(-24px,-12px,0) scale(.985)}
.education-section.is-exiting-backward .language-panel{transform:translate3d(-24px,12px,0) scale(.985)}

@media(max-width:1100px){
  .education-column-head .education-group-title{font-size:16px}
  .hero-location{font-size:10.5px;margin-top:14px}
}
@media(max-width:680px){
  .education-column-head{grid-template-columns:34px 1fr;min-height:54px;padding-bottom:10px}
  .education-column-head:after{left:43px;width:72px}
  .education-column-head .education-group-title{font-size:15px;line-height:1.1}
  .education-count{grid-column:2;justify-self:start;margin:0 0 2px;padding:6px 8px}
  .language-panel{margin-top:12px}
  .language-panel-head{padding:14px 15px 12px}
  .language-row{padding:14px 15px 14px 19px;gap:10px}
  .language-row strong{font-size:12px}
  .language-row small{font-size:10.5px}
  .hero-location{font-size:10px;margin-top:12px;gap:7px}
  .hero-location svg{width:14px;height:14px}
}
@media(max-width:380px){
  .education-column-head .education-group-title{font-size:14px}
  .language-row{grid-template-columns:1fr;gap:8px}
  .language-row>span{justify-self:start}
}
@media(prefers-reduced-motion:reduce){
  .hero-location,.language-panel,.education-column-head:after{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}


/* =========================================================
   V4.2 — EDUCATION PRIORITY + HERO CLEANUP
   Certifications first, academic foundation second, languages third.
   ========================================================= */

/* The interpersonal trait strip was intentionally removed from the Hero. */
.hero-traits{display:none!important}

/* Make the recruiter-facing responsibility heading substantially easier to scan. */
.experience-responsibilities>.experience-mini-label{
  font-size:13px;
  line-height:1.1;
  letter-spacing:.12em;
  margin-bottom:18px;
  color:var(--text);
}

/* Education now follows an explicit reading order: credentials, degree, languages. */
.education-layout-priority{display:grid;grid-template-columns:1fr;gap:34px}
.education-learning-primary{min-width:0}
.education-learning-primary .certification-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.education-secondary-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:30px;align-items:start}
.education-languages{min-width:0}
.language-panel-standalone{margin-top:0}
.language-panel-standalone .language-panel-head{display:none}

/* Sequence the new 01 / 02 / 03 hierarchy cleanly. */
.education-section.is-active .education-learning-primary .education-column-head{transition-delay:.52s}
.education-section.is-active .education-secondary-grid .education-academic .education-column-head{transition-delay:.68s}
.education-section.is-active .education-languages .education-column-head{transition-delay:.78s}
.education-section.is-active .education-learning-primary .certification-card:nth-child(1){transition-delay:.64s}
.education-section.is-active .education-learning-primary .certification-card:nth-child(2){transition-delay:.69s}
.education-section.is-active .education-learning-primary .certification-card:nth-child(3){transition-delay:.74s}

@media(max-width:1100px){
  .education-learning-primary .certification-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .education-secondary-grid{grid-template-columns:1fr;gap:30px}
}
@media(max-width:680px){
  .education-learning-primary .certification-board{grid-template-columns:1fr}
  .education-layout-priority{gap:28px}
  .education-secondary-grid{gap:28px}
  .experience-responsibilities>.experience-mini-label{font-size:12px;margin-bottom:15px}
}

/* =========================================================
   V4.6 CONTACT
   Recruiter-first contact page. Distinct from the dossier
   sections while preserving the portfolio visual language.
   ========================================================= */
.contact-section{
  background:var(--section-bg);
  display:block;
  overflow:hidden;
}
.contact-scroll{
  width:100%;height:100%;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text) 18%,transparent) transparent;
}
.contact-shell{
  min-height:100%;padding:58px 68px 74px;display:flex;flex-direction:column;justify-content:center;
  max-width:1500px;margin:0 auto;position:relative;
}
.contact-heading{margin-bottom:28px;position:relative;z-index:2}
.contact-heading h2{margin:0;font:800 clamp(40px,4vw,64px)/.95 "Work Sans",Arial,sans-serif;letter-spacing:-.055em;color:var(--text)}
.contact-layout{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(520px,1.22fr);gap:34px;align-items:stretch;position:relative;z-index:2}
.contact-intro-panel{
  position:relative;overflow:hidden;padding:34px 32px 30px;background:var(--sidebar-bg);color:var(--sidebar-text);
  min-height:520px;display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--sidebar-bg) 88%,#fff);
}
.contact-intro-panel:before{content:"";position:absolute;left:0;top:0;width:7px;height:100%;background:var(--accent)}
.contact-intro-panel:after{content:"";position:absolute;width:200px;height:200px;border:1px solid color-mix(in srgb,var(--accent) 44%,transparent);right:-100px;top:-100px;transform:rotate(45deg)}
.contact-panel-index{position:absolute;right:22px;bottom:-20px;font:800 150px/.8 "Work Sans",Arial,sans-serif;color:rgba(255,255,255,.035);letter-spacing:-.08em;pointer-events:none}
.contact-panel-label{margin:0 0 18px;font:700 11px/1 "Work Sans",Arial,sans-serif;letter-spacing:.15em;color:var(--accent)}
.contact-intro-panel h3{margin:0 0 20px;font:800 clamp(35px,3vw,50px)/.96 "Work Sans",Arial,sans-serif;letter-spacing:-.055em;color:#fff;max-width:320px}
.contact-intro{margin:0 0 34px;font:400 15.5px/1.7 Inter,Arial,sans-serif;color:rgba(255,255,255,.72);max-width:470px}
.contact-direct-list{margin-top:auto;border-top:1px solid rgba(255,255,255,.12)}
.contact-direct-item{min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.12);color:#fff;text-decoration:none;transition:padding .3s cubic-bezier(.16,1,.3,1),color .25s ease}
a.contact-direct-item:hover{padding-left:7px;color:var(--accent)}
.contact-direct-icon{width:34px;height:34px;display:grid;place-items:center;color:var(--accent)}
.contact-direct-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.contact-direct-item div{min-width:0;display:flex;flex-direction:column;gap:4px}
.contact-direct-item small{font:700 8px/1 "Work Sans",Arial,sans-serif;letter-spacing:.14em;color:rgba(255,255,255,.4)}
.contact-direct-item strong{font:650 12.5px/1.25 "Work Sans",Arial,sans-serif;letter-spacing:.02em;color:inherit;overflow-wrap:anywhere}
.contact-link-arrow{font:700 16px/1 "Work Sans",Arial,sans-serif;color:var(--accent)}

.contact-form-panel{padding:32px 36px 34px;border:1px solid color-mix(in srgb,var(--line) 88%,transparent);background:color-mix(in srgb,var(--section-bg) 97%,var(--text));position:relative;overflow:hidden}
.contact-form-panel:after{content:"";position:absolute;right:0;top:0;width:82px;height:6px;background:var(--accent)}
.contact-form-topline{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;margin-bottom:24px}
.contact-form-topline span,.contact-form-topline strong{font:700 9px/1 "Work Sans",Arial,sans-serif;letter-spacing:.12em;color:var(--muted)}
.contact-form-topline strong{color:var(--text)}
.contact-form-topline i{height:1px;background:var(--line)}
.contact-form{display:flex;flex-direction:column;gap:20px}
.contact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px}
.contact-form label{display:flex;flex-direction:column;gap:8px;min-width:0}
.contact-form label>span{font:700 9px/1 "Work Sans",Arial,sans-serif;letter-spacing:.105em;color:var(--muted)}
.contact-form input,.contact-form select,.contact-form textarea{
  width:100%;border:0;border-bottom:1px solid color-mix(in srgb,var(--text) 20%,var(--line));border-radius:0;background:transparent;color:var(--text);
  font:500 15px/1.45 Inter,Arial,sans-serif;padding:8px 0 11px;outline:none;transition:border-color .25s ease,box-shadow .25s ease;
}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:color-mix(in srgb,var(--muted) 62%,transparent)}
.contact-form textarea{min-height:124px;resize:vertical;max-height:260px}
.contact-form select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--text) 50%),linear-gradient(135deg,var(--text) 50%,transparent 50%);background-position:calc(100% - 10px) 50%,calc(100% - 5px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:30px}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--accent);box-shadow:0 1px 0 var(--accent)}
.contact-form input[aria-invalid="true"],.contact-form textarea[aria-invalid="true"],.contact-form select[aria-invalid="true"]{border-color:#cc3a3a}
.contact-field-wide{grid-column:1/-1}
.contact-form-actions{display:flex;align-items:center;gap:18px;min-height:50px;margin-top:2px}
.contact-submit{min-width:190px;height:48px;border:0;background:var(--sidebar-bg);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 18px;cursor:pointer;font:750 10px/1 "Work Sans",Arial,sans-serif;letter-spacing:.1em;transition:background .25s ease,color .25s ease,transform .25s ease}
.contact-submit b{font-size:18px;color:var(--accent);font-weight:600}
.contact-submit:hover{background:var(--accent);color:var(--text);transform:translateY(-2px)}
.contact-submit:hover b{color:var(--text)}
.contact-submit:disabled{opacity:.55;cursor:wait;transform:none}
.contact-form-status{margin:0;font:500 12px/1.45 Inter,Arial,sans-serif;color:var(--muted)}
.contact-form-status.is-success{color:#2a7b4f}.contact-form-status.is-error{color:#b63434}
.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

/* Contact entrance mirrors the premium pacing without duplicating Hero motion. */
.contact-heading>*{opacity:0;filter:blur(7px);transform:translate3d(0,24px,0);transition:opacity .85s ease,filter 1s ease,transform 1s cubic-bezier(.16,1,.3,1)}
.contact-intro-panel{opacity:0;filter:blur(8px);transform:translate3d(-34px,18px,0) scale(.985);transition:opacity 1s ease .34s,filter 1.05s ease .34s,transform 1.2s cubic-bezier(.16,1,.3,1) .34s}
.contact-form-panel{opacity:0;filter:blur(8px);transform:translate3d(38px,18px,0) scale(.985);transition:opacity 1s ease .46s,filter 1.05s ease .46s,transform 1.2s cubic-bezier(.16,1,.3,1) .46s}
.contact-section.is-active .contact-heading>*{opacity:1;filter:blur(0);transform:none}
.contact-section.is-active .contact-heading>*:nth-child(1){transition-delay:.12s}.contact-section.is-active .contact-heading>*:nth-child(2){transition-delay:.22s}.contact-section.is-active .contact-heading>*:nth-child(3){transition-delay:.32s}
.contact-section.is-active .contact-intro-panel,.contact-section.is-active .contact-form-panel{opacity:1;filter:blur(0);transform:none}

@media(max-width:1180px){
  .contact-shell{padding-left:42px;padding-right:42px}
  .contact-layout{grid-template-columns:minmax(285px,.72fr) minmax(450px,1.28fr);gap:24px}
  .contact-intro-panel{padding:30px 26px}.contact-form-panel{padding:28px 28px 30px}
}
@media(max-width:1000px){
  .contact-shell{justify-content:flex-start;padding:calc(var(--mobile-topbar-height) + 34px + var(--safe-top)) 28px calc(105px + var(--safe-bottom));min-height:max(100%,760px)}
  .contact-heading{margin-bottom:22px}.contact-heading h2{font-size:clamp(38px,7.2vw,54px)}
  .contact-layout{grid-template-columns:1fr;gap:20px}
  .contact-intro-panel{min-height:auto;padding:28px 26px 24px}
  .contact-intro-panel h3{font-size:37px}.contact-intro{font-size:15px;line-height:1.65;margin-bottom:22px}
  .contact-direct-list{margin-top:10px}
  .contact-form-panel{padding:28px 26px 30px}
}
@media(max-width:620px){
  .contact-shell{padding-left:17px;padding-right:17px;padding-top:calc(var(--mobile-topbar-height) + 24px + var(--safe-top));padding-bottom:calc(112px + var(--safe-bottom))}
  .contact-heading{margin-bottom:17px}.contact-heading h2{font-size:36px}
  .contact-layout{gap:14px}
  .contact-intro-panel{padding:23px 19px 20px}.contact-panel-index{font-size:100px}.contact-panel-label{font-size:9px;margin-bottom:12px}.contact-intro-panel h3{font-size:31px;margin-bottom:14px}.contact-intro{font-size:14px;line-height:1.6;margin-bottom:16px}
  .contact-direct-item{min-height:58px;grid-template-columns:32px minmax(0,1fr) auto;gap:9px}.contact-direct-icon{width:30px;height:30px}.contact-direct-item strong{font-size:11.5px}
  .contact-form-panel{padding:22px 18px 25px}.contact-form-topline{margin-bottom:19px}
  .contact-form-grid{grid-template-columns:1fr;gap:17px}.contact-form{gap:17px}.contact-form input,.contact-form select,.contact-form textarea{font-size:15px}
  .contact-form-actions{align-items:flex-start;flex-direction:column;gap:11px}.contact-submit{width:100%;min-width:0}.contact-form-status{font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){
  .contact-heading>*,.contact-intro-panel,.contact-form-panel{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}


/* =========================================================
   V4.7 CONTACT REFINEMENT
   Form first, simpler fields, stronger direct contact details.
   ========================================================= */
.contact-layout{grid-template-columns:minmax(540px,1.28fr) minmax(300px,.72fr);gap:30px}
.contact-form-panel{padding:30px 32px 32px;background:transparent;border:1px solid color-mix(in srgb,var(--text) 11%,var(--line));box-shadow:none}
.contact-form-panel:after{width:64px;height:4px}
.contact-form{gap:18px}
.contact-form-grid{gap:18px}
.contact-form label{gap:7px}
.contact-form label>span{font-size:10px;letter-spacing:.09em;color:color-mix(in srgb,var(--text) 58%,var(--muted))}
.contact-form input,.contact-form select,.contact-form textarea{
  border:1px solid color-mix(in srgb,var(--text) 15%,var(--line));
  border-radius:3px;
  background:color-mix(in srgb,var(--section-bg) 94%,#fff);
  padding:12px 13px;
  min-height:46px;
  box-shadow:none;
  font-size:15.5px;
}
.contact-form textarea{min-height:142px;padding-top:13px}
.contact-form select{padding-right:38px;background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}
.contact-form-actions{margin-top:0}
.contact-submit{height:50px;min-width:202px}
.contact-form-status{font-size:13px}

.contact-intro-panel{min-height:0;padding:32px 30px 28px}
.contact-panel-label{font-size:12px;margin-bottom:22px}
.contact-intro{font-size:16px;line-height:1.68;margin-bottom:28px}
.contact-direct-list{margin-top:auto}
.contact-direct-item{min-height:74px;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;padding:14px 0}
.contact-direct-icon{width:38px;height:38px}
.contact-direct-icon svg{width:23px;height:23px}
.contact-direct-item small{font-size:9px;letter-spacing:.13em}
.contact-direct-item strong{font-size:15px;line-height:1.3;letter-spacing:.01em}
.contact-link-arrow{font-size:18px}

@media(max-width:1180px){
  .contact-layout{grid-template-columns:minmax(470px,1.2fr) minmax(280px,.8fr);gap:24px}
}
@media(max-width:1000px){
  .contact-layout{grid-template-columns:1fr;gap:18px}
  .contact-form-panel{order:1}
  .contact-intro-panel{order:2}
}
@media(max-width:620px){
  .contact-form-panel{padding:20px 17px 23px}
  .contact-form-grid{gap:15px}
  .contact-form input,.contact-form select,.contact-form textarea{font-size:15px;min-height:45px;padding:11px 12px}
  .contact-intro-panel{padding:24px 19px 21px}
  .contact-panel-label{font-size:11px;margin-bottom:17px}
  .contact-intro{font-size:15px;line-height:1.62;margin-bottom:18px}
  .contact-direct-item{min-height:66px;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:12px 0}
  .contact-direct-icon{width:34px;height:34px}
  .contact-direct-item small{font-size:8.5px}
  .contact-direct-item strong{font-size:14px}
  .contact-form-status{font-size:12px}
}

.education-group-title{font:inherit;font-weight:800;margin:0;}
