
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05060a;
  --surface: #0e121c;
  --surface-strong: #161d2c;
  --ink: #f4f6ff;
  --muted: #9ba4b7;
  --soft: #c4cbd9;
  --line: #252c3b;
  --line-strong: #3b465b;
  --inverse-bg: #f5f5f2;
  --inverse-ink: #070707;
  --logo-filter: invert(1);
  --header-bg: rgba(5, 6, 10, .78);
  --ambient: rgba(255, 255, 255, .09);
  --space-mask: rgba(5, 6, 10, .68);
  --panel: rgba(13, 18, 30, .76);
  --panel-shine: rgba(173, 199, 255, .065);
  --accent: #bed3ff;
  --name-edge: #303a51;
  --name-shadow: rgba(0, 0, 0, .55);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #e9eef7;
  --surface-strong: #dce4f1;
  --ink: #111b2e;
  --muted: #56647c;
  --soft: #394a64;
  --line: #d0d9e7;
  --line-strong: #acbad1;
  --inverse-bg: #0a0a0a;
  --inverse-ink: #f7f7f4;
  --logo-filter: invert(0);
  --header-bg: rgba(244, 246, 250, .82);
  --ambient: rgba(0, 0, 0, .075);
  --space-mask: rgba(244, 246, 250, .7);
  --panel: rgba(249, 251, 255, .82);
  --panel-shine: rgba(72, 114, 185, .06);
  --accent: #2e5696;
  --name-edge: #c2cede;
  --name-shadow: rgba(47, 74, 117, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .28s ease, color .28s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
.shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
main { position: relative; isolation: isolate; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
  color: #f5f5f2;
  opacity: 1;
  visibility: visible;
  transition: opacity .62s cubic-bezier(.4, 0, .2, 1), visibility .62s step-end;
}
.site-preloader[data-state="leaving"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  position: relative;
  width: clamp(150px, 18vw, 230px);
  aspect-ratio: 1.65;
  transform: translateY(4px);
}
.preloader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
  user-select: none;
}
.preloader-logo-base {
  opacity: .3;
}
.preloader-logo-shine {
  opacity: 1;
  filter: invert(1) brightness(1.8) drop-shadow(0 0 16px rgba(255, 255, 255, .48));
  -webkit-mask-image: linear-gradient(108deg, transparent 27%, #000 44%, #000 56%, transparent 73%);
  mask-image: linear-gradient(108deg, transparent 27%, #000 44%, #000 56%, transparent 73%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  animation: preloader-shine 2.8s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes preloader-shine {
  from { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  to { -webkit-mask-position: -130% 0; mask-position: -130% 0; }
}

.space-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.space-canvas { display: block; width: 100%; height: 100%; }
.space-veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--space-mask), transparent 82%), linear-gradient(0deg, var(--space-mask), transparent 50%); }
.spatial-ready [data-reveal] {
  opacity: var(--reveal-opacity, 1);
  transform: perspective(1100px) translate3d(0, var(--reveal-y, 0px), var(--reveal-z, 0px)) rotateX(var(--reveal-rx, 0deg)) rotateY(var(--reveal-ry, 0deg));
  transform-origin: center center;
}
.spatial-ready [data-reveal].is-near { will-change: transform, opacity; }
[data-tilt] { transform-style: preserve-3d; }
.motion-toggle { position: fixed; right: 24px; bottom: 22px; z-index: 30; min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--header-bg); color: var(--soft); backdrop-filter: blur(12px); font-size: 12px; cursor: pointer; box-shadow: 0 4px 22px var(--name-shadow); }
.motion-toggle:hover { color: var(--ink); border-color: var(--accent); }
.motion-toggle:disabled { visibility: hidden; }

.nav {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.signature-logo { width: 82px; height: 54px; object-fit: contain; filter: var(--logo-filter); transition: filter .25s ease; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav-links a, .linkedin-nav { transition: color .2s ease; }
.nav-links a:hover, .linkedin-nav:hover { color: var(--ink); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.linkedin-nav { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 12px; }
.linkedin-nav svg { width: 14px; height: 14px; }

.theme-toggle {
  width: 72px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.theme-option { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
.theme-option svg { width: 15px; height: 15px; }
.theme-option.active { background: var(--ink); color: var(--bg); }

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 44px clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 95px 45px;
}
.hero-main { max-width: 860px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 45px; }
.status-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.name-stage { perspective: 1000px; margin: 0 0 35px; }
.hero-name {
  color: var(--ink);
  font-size: clamp(4.5rem, 8.7vw, 7.8rem);
  line-height: 1.08;
  letter-spacing: -.06em;
  font-weight: 650;
  margin: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--name-x, 0px), 0, 18px) rotateX(var(--name-rx, 0deg)) rotateY(var(--name-ry, 0deg));
}
h1, h2, h3, p { margin-top: 0; }
.hero-name-word { display: block; width: fit-content; color: var(--ink); text-shadow: 1px 1px 0 var(--name-edge), 2px 2px 0 var(--name-edge), 3px 3px 0 var(--name-edge), 4px 4px 0 var(--name-edge), 5px 5px 0 var(--name-edge), 0 22px 35px var(--name-shadow); animation: name-float 7s ease-in-out infinite; }
.hero-name-word:last-child { font-size: 1.18em; color: var(--accent); animation-delay: -3.5s; }
@keyframes name-float { 0%, 100% { transform: translate3d(0, 0, 28px) rotateZ(-.35deg); } 50% { transform: translate3d(0, -12px, 42px) rotateZ(.35deg); } }
.hero-role { margin-bottom: 22px; color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.035em; font-weight: 520; }
.hero-role span { color: var(--muted); }
.hero-intro { max-width: 690px; color: var(--soft); font-size: 18px; line-height: 1.65; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); border-radius: 8px; font-size: 14px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.button:hover svg { transform: translate(2px, -2px); }
.button-solid { background: var(--ink); color: var(--bg); }
.button-solid:hover { background: transparent; color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--bg); }
.hero-aside { width: 100%; max-width: 370px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(145deg, var(--panel-shine), transparent 50%), var(--panel); justify-self: end; align-self: center; box-shadow: 0 28px 65px var(--name-shadow); }
.aside-number, .section-index { display: block; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.aside-number { margin-bottom: 20px; font-size: 12px; line-height: 1.4; }
.profile-portrait { aspect-ratio: 1; margin: 0 0 20px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.06) brightness(.94); }
:root[data-theme="light"] .profile-portrait img { filter: grayscale(1) contrast(1.04); }
.profile-details { min-width: 0; border-top: 1px solid var(--line); }
.aside-line { min-height: 48px; padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.aside-line span { color: var(--muted); font-size: 14px; }
.aside-line strong { font-size: 14px; line-height: 1.5; font-weight: 560; text-align: right; }
.scroll-cue { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; width: fit-content; padding: 10px 0; color: var(--soft); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.scroll-cue-line { position: relative; width: 1px; height: 38px; background: var(--line-strong); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: -20px 0 auto; height: 18px; background: var(--accent); animation: scroll-light 2.4s ease-in-out infinite; }
@keyframes scroll-light { to { transform: translateY(76px); } }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-strong); }
.proof article { min-height: 130px; padding: 25px 0; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof article:not(:first-child) { padding-left: 28px; }
.proof article:last-child { border-right: 0; }
.proof strong { font-size: clamp(34px, 4vw, 55px); letter-spacing: -.055em; font-weight: 560; }
.proof span { color: var(--muted); font-size: 11px; margin-top: 7px; }

.stack-strip { min-height: 104px; padding-block: 28px; display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; border-bottom: 1px solid var(--line-strong); }
.stack-strip > span { color: var(--muted); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.stack-strip > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.stack-strip strong { padding: 7px 10px; border: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 540; letter-spacing: .02em; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.stack-strip strong:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-2px); }

.work-section { padding-block: 150px 130px; }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 56px; align-items: start; margin-bottom: 70px; }
.section-head h2 { max-width: 900px; margin: -10px 0 0; font-size: clamp(44px, 5.8vw, 78px); line-height: .98; letter-spacing: -.06em; font-weight: 570; }
.work-list { border-top: 1px solid var(--line-strong); }
.work-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 42px; padding: 44px 18px; margin-inline: -18px; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .3s ease; }
.work-row:hover { background: var(--surface); }
.work-copy { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.work-row:hover .work-copy { transform: translateX(7px); }
.work-index { display: flex; flex-direction: column; gap: 13px; }
.work-index > span { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.work-index small { max-width: 150px; color: var(--muted); font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.work-copy h3 { font-size: 29px; letter-spacing: -.035em; font-weight: 580; margin-bottom: 13px; }
.work-copy > p { max-width: 630px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag-list span { padding: 6px 9px; border: 1px solid var(--line); color: var(--soft); font-size: 9px; }
.work-links { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; }
.work-links a, .work-links > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.work-links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.work-links svg { width: 13px; height: 13px; }

.expertise-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.expertise-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.expertise-list article { min-height: 280px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--panel-shine), transparent 60%), var(--panel); transition: background-color .3s ease; }
.expertise-list article:hover { background: var(--surface); }
.expertise-list h3, .expertise-list p { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.expertise-list article:hover h3, .expertise-list article:hover p { transform: translateX(8px); }
.expertise-list article > span { color: var(--accent); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.expertise-list h3 { margin: 67px 0 15px; font-size: 27px; letter-spacing: -.035em; font-weight: 580; }
.expertise-list p { max-width: 500px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.growth-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.growth-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding: 0 0 36px 236px; border-bottom: 1px solid var(--line-strong); }
.growth-intro > p { max-width: 670px; margin: 0; color: var(--soft); font-size: 16px; line-height: 1.65; }
.growth-intro > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.growth-intro span { padding: 7px 9px; border: 1px solid var(--line-strong); color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.growth-grid article { min-height: 560px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--panel-shine), transparent 60%), var(--panel); transition: background-color .3s ease; }
.growth-grid article:hover { background: var(--surface); }
.growth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.growth-card-top small { font: inherit; }
.growth-grid h3 { margin: 74px 0 17px; font-size: clamp(30px, 3.1vw, 43px); line-height: 1; letter-spacing: -.05em; font-weight: 570; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.growth-grid article:hover h3 { transform: translateX(7px); }
.growth-grid > article > p { min-height: 68px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.growth-grid ul { list-style: none; padding: 0; margin: 38px 0 0; border-top: 1px solid var(--line); }
.growth-grid li { min-height: 43px; padding: 10px 0; display: grid; grid-template-columns: 13px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 14px; line-height: 1.55; }
.growth-grid li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.journey-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.journey-layout { display: block; }
.experience-list { max-width: 1000px; margin-left: 236px; border-top: 1px solid var(--line-strong); }
.experience-list article { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.experience-meta { display: flex; flex-direction: column; gap: 8px; }
.experience-meta span { font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.experience-meta small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.experience-copy h3 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.03em; font-weight: 580; }
.experience-copy strong { color: var(--soft); font-size: 11px; font-weight: 550; }
.experience-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 18px 0 0; }
.credentials-section { padding-block: 115px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line-strong); }
.credentials-section h2 { max-width: 470px; margin: 28px 0 0; font-size: clamp(38px, 4.7vw, 64px); line-height: 1; letter-spacing: -.055em; font-weight: 570; }
.credentials-section ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.credentials-section li { min-height: 66px; display: grid; grid-template-columns: 55px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.credentials-section li span { color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.credentials-section li strong { font-size: 13px; font-weight: 560; }

.life-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.life-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.life-grid article { min-height: 410px; padding: 30px 42px 34px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.life-grid article::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--ink); right: -170px; bottom: -170px; opacity: 0; filter: blur(70px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.life-grid article:hover::before { opacity: .12; transform: translate(-60px, -55px) scale(1.18); }
.life-grid article > * { position: relative; z-index: 1; }
.life-grid article:first-child { border-right: 1px solid var(--line); }
.life-grid article:last-child { padding-left: 42px; }
.life-card-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.life-card-top small { font: inherit; }
.life-grid h3 { max-width: 520px; margin: 100px 0 19px; font-size: clamp(38px, 4.4vw, 62px); line-height: .98; letter-spacing: -.055em; font-weight: 570; }
.life-grid p { max-width: 530px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.life-grid > article > strong { margin-top: auto; color: var(--soft); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }

.contact-strip { min-height: 360px; padding-block: 68px; border-block: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.contact-strip h2 { max-width: 760px; margin: 28px 0 0; font-size: clamp(48px, 6.6vw, 88px); line-height: .94; letter-spacing: -.065em; font-weight: 570; }
.contact-strip-actions { min-width: 220px; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.contact-strip-actions a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.contact-strip-actions a:hover { color: var(--muted); }
.contact-strip-actions svg { width: 15px; height: 15px; }
.footer { min-height: 150px; padding-bottom: 45px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 10px; }
.footer-logo { width: 68px; height: 46px; }
.footer-copy { margin: 0; font-size: 14px; line-height: 1.65; }
.footer-copy a { color: var(--ink); text-underline-offset: 4px; }
.footer-copy a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .linkedin-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-aside { max-width: 680px; justify-self: start; display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 1fr); gap: 0 28px; align-items: center; }
  .aside-number { grid-column: 1 / -1; }
  .profile-portrait { margin-bottom: 0; }
  .stack-strip { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .stack-strip > div { justify-content: flex-start; }
  .work-row { grid-template-columns: 130px 1fr; }
  .work-links { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .growth-intro { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .growth-intro > div { justify-content: flex-start; }
  .growth-grid { grid-template-columns: 1fr; }
  .growth-grid article { min-height: auto; padding: 30px; }
  .growth-grid h3 { margin-top: 50px; }
  .growth-grid > article > p { min-height: 0; }
  .experience-list { margin-left: 0; }
  .credentials-section { grid-template-columns: 1fr; gap: 55px; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip-actions { max-width: 500px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1240px); }
  .nav { min-height: 74px; grid-template-columns: 1fr auto; }
  .signature-logo { width: 66px; height: 44px; }
  .nav-links, .linkedin-nav { display: none; }
  .nav-actions { grid-column: 2; }
  .hero { padding-block: 64px 35px; gap: 45px; }
  .hero-aside { display: block; max-width: 390px; }
  .profile-portrait { margin-bottom: 24px; }
  .eyebrow { margin-bottom: 38px; font-size: 12px; letter-spacing: .02em; }
  .name-stage { margin-bottom: 30px; }
  .hero-name { font-size: clamp(3.3rem, 13.5vw, 5.8rem); }
  .hero-name-word { text-shadow: 1px 1px 0 var(--name-edge), 2px 2px 0 var(--name-edge), 3px 3px 0 var(--name-edge), 0 12px 22px var(--name-shadow); }
  .hero-role { font-size: 24px; }
  .hero-intro { font-size: 16px; }
  .button { width: 100%; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article { min-height: 105px; border-bottom: 1px solid var(--line); }
  .proof article:nth-child(2n) { border-right: 0; padding-left: 18px; }
  .proof article:nth-last-child(-n+2) { border-bottom: 0; }
  .proof article:nth-child(3) { padding-left: 0; }
  .stack-strip { min-height: 0; }
  .work-section { padding-block: 100px 80px; }
  .section-head { grid-template-columns: 1fr; gap: 35px; margin-bottom: 50px; }
  .section-head h2 { margin-top: 0; font-size: 45px; }
  .work-row { grid-template-columns: 1fr; gap: 30px; padding-block: 36px; }
  .work-links { grid-column: 1; }
  .expertise-section, .growth-section, .journey-section { padding-block: 95px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list article { min-height: 235px; padding: 26px 24px; }
  .expertise-list h3 { margin-top: 52px; }
  .experience-list article { grid-template-columns: 1fr; gap: 25px; }
  .experience-meta { flex-direction: row; justify-content: space-between; }
  .credentials-section { padding-block: 90px; gap: 42px; }
  .life-section { padding-block: 95px; }
  .life-grid { grid-template-columns: 1fr; }
  .life-grid article, .life-grid article:last-child { min-height: 340px; padding: 26px 0 30px; border-right: 0; }
  .life-grid h3 { margin-top: 72px; font-size: 44px; }
  .contact-strip { min-height: 0; padding-block: 80px; }
  .contact-strip h2 { font-size: 49px; }
  .footer { min-height: 160px; padding-block: 24px 72px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
  .motion-toggle { right: 14px; bottom: 14px; }
}

:root:not([data-motion="on"]) .hero-name-word,
:root:not([data-motion="on"]) .scroll-cue-line::after,
:root[data-page-visible="false"] .hero-name-word,
:root[data-page-visible="false"] .scroll-cue-line::after { animation-play-state: paused; }
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] .hero-name { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  :root:not([data-motion="on"]) *, :root:not([data-motion="on"]) *::before, :root:not([data-motion="on"]) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
