/* Local presentation layer. Keep the generated application bundle intact. */
@font-face {
  font-family: "Geist Sans";
  src: url("/assets/geist-sans-latin-400-normal-gapTbOY8.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  --background: 250 50% 99%; --foreground: 231 28% 14%;
  --card: 0 0% 100%; --card-foreground: 231 28% 14%;
  --primary: 258 73% 55%; --primary-foreground: 0 0% 100%;
  --muted: 245 30% 96%; --muted-foreground: 230 12% 42%;
  --border: 240 20% 89%; --input: 240 20% 87%; --ring: 258 73% 55%;
  --bg: #faf9ff; --fg: #1a1d2e; --muted-fg: #5e6278;
  --glass-bg: #ffffffdc; --glass-border: #e7e5f0;
  --color-background: hsl(var(--background)); --color-foreground: hsl(var(--foreground));
  --color-primary: hsl(var(--primary)); --color-primary-foreground: hsl(var(--primary-foreground));
  --color-card: hsl(var(--card)); --color-card-foreground: hsl(var(--card-foreground));
  --color-muted: hsl(var(--muted)); --color-muted-foreground: hsl(var(--muted-foreground));
  --color-border: hsl(var(--border));
  color-scheme: light;
}
:root.dark {
  --background: 235 25% 8%; --foreground: 240 25% 96%;
  --card: 235 22% 12%; --card-foreground: 240 25% 96%;
  --primary: 259 92% 74%; --primary-foreground: 246 35% 12%;
  --muted: 235 20% 17%; --muted-foreground: 235 15% 70%;
  --border: 235 19% 23%; --input: 235 19% 26%; --ring: 259 92% 74%;
  --bg: #101119; --fg: #f2f2fa; --muted-fg: #a7aac0;
  --glass-bg: #181a28ed; --glass-border: #303248;
  color-scheme: dark;
}
html { scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body { background: hsl(var(--background)); color: hsl(var(--foreground)); -webkit-font-smoothing: antialiased; cursor: auto !important; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button, input, textarea { outline-offset: 5px; }
:focus-visible { outline: 3px solid hsl(var(--primary)) !important; }
::selection { background: #bca7fa66; color: inherit; }
img { max-width: 100%; }
main { padding-top: 0 !important; }
main > section:not(#hero), #career { width: 100%; max-width: 1200px; margin-inline: auto; padding: 88px 32px; }
main h2 { line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; }
main p { line-height: 1.75; }
.text-gradient-primary { background-image: linear-gradient(110deg, #7142d7, #267fa7); }
.dark .text-gradient-primary { background-image: linear-gradient(110deg, #b49bff, #72d5ea); }
.glass-panel { box-shadow: 0 8px 28px #20204705; }
/* Replace the legacy disappearing header and duplicate floating dock. */
#root header, #root [role="toolbar"], #root > div > .pointer-events-none { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1100; background: hsl(var(--card)); padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.site-header { position: fixed; z-index: 1000; top: 20px; left: 0; width: 100%; padding-inline: 28px; }
.header-inner { max-width: 1240px; margin: auto; display: flex; align-items: center; gap: 24px; padding: 12px 18px; border: 1px solid var(--glass-border); border-radius: 22px; background: var(--glass-bg); backdrop-filter: blur(20px); box-shadow: 0 8px 35px #29204d06; transition: box-shadow .2s; }
.site-header[data-scrolled="true"] .header-inner { box-shadow: 0 8px 32px #18152e12; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: inherit; text-decoration: none; min-height: 44px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 2px; border-radius: 50%; background: linear-gradient(140deg, #9a6aff, #3cbdd5); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border: 2px solid hsl(var(--card)); border-radius: 50%; }
.brand-mark > span { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid hsl(var(--card)); border-radius: 50%; background: #25b67c; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { font-size: 14px; line-height: 1.2; letter-spacing: -.02em; }
.brand-copy small { font-size: 9px; line-height: 1.2; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
#site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 3px; flex: 1; }
#site-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; min-height: 42px; border-radius: 11px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); text-decoration: none; transition: background .2s, color .2s; }
#site-nav a:hover, #site-nav a[aria-current] { background: hsl(var(--primary) / .07); color: hsl(var(--primary)); }
#site-nav .nav-contact { margin-left: 12px; background: hsl(var(--foreground)); color: hsl(var(--background)); padding-inline: 18px; }
#site-nav .nav-contact:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); cursor: pointer; }
.header-actions button:hover { background: hsl(var(--muted)); }
.theme-sun, .dark .theme-moon { display: none; }
.dark .theme-sun { display: block; }
#menu-toggle { display: none; }
/* A calmer hero with a clear reading order. */
#hero { padding-top: 148px; min-height: 0; background: radial-gradient(ellipse at 83% 36%, hsl(var(--primary) / .09), transparent 48%), hsl(var(--background)); }
#hero > .absolute { opacity: .2; }
#hero > .hero-layout { max-width: 1200px; padding-inline: 32px; padding-bottom: 68px; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 48px; align-items: center; }
#hero .hero-copy { min-width: 0; text-align: left; align-items: flex-start; }
#hero .hero-copy > div:first-child { margin-bottom: 26px; }
#hero .hero-copy > div:first-child > div { box-shadow: none; border-color: hsl(var(--border)); background: hsl(var(--card)); }
#hero .hero-title { margin-bottom: 22px; text-align: left; }
#hero h1 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 12px; color: hsl(var(--muted-foreground)); }
#hero .hero-title span, #hero .hero-title h2 { font-size: clamp(48px, 4.7vw, 70px) !important; line-height: 1.06; letter-spacing: -.055em; text-align: left; font-weight: 700; text-wrap: balance; }
#hero .hero-title h2 > div { display: none; }
#hero .hero-title .bg-transparent { background: transparent !important; }
#hero .hero-title h2 { background: linear-gradient(110deg,#c6adff,#8cd8f5); background-clip: text; color: transparent; }
#hero .hero-copy > p { font-size: 17px; max-width: 530px; margin-bottom: 28px; line-height: 1.8; }
#hero .hero-actions { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; margin-bottom: 24px; }
#hero .hero-actions > * { height: 50px; padding: 0 24px; border-radius: 13px; font-weight: 700; box-shadow: none; }
#hero .hero-actions > button { box-shadow: 0 5px 18px hsl(var(--primary) / .15); }
#hero .hero-actions > span { padding: 0; }
#hero .hero-actions a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; gap: 9px; padding-inline: 24px; border-radius: inherit; }
#hero .hero-social { justify-content: flex-start; gap: 8px; }
#hero .hero-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .65); }
#hero .hero-social a:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .4); }
#hero .hero-portrait { max-width: 100%; min-width: 0; padding: 0; }
#hero .hero-portrait .shadow-2xl { box-shadow: 0 24px 55px #24144717; }
#hero .hero-portrait .bg-gradient-to-br { background: linear-gradient(135deg,#6d35b3,#353478); }
#hero .hero-portrait .w-28 { width: 112px; height: 112px; }
#hero .hero-portrait .w-72 { width: 310px; }
#hero .hero-portrait h3 { font-size: 19px; }
#hero .hero-portrait h3 + div { font-size: 14px; line-height: 1.5; font-weight: 700; }
#hero .hero-portrait > div > p { color: hsl(var(--muted-foreground)); margin-top: 20px; }
#hero > .w-full { background: hsl(var(--card) / .6); }
#hero > .w-full > div { padding-block: 17px; }
.skills-marquee > div { box-shadow: none; border-color: hsl(var(--border)); padding: 8px 16px; }
/* Shared spacing and cards. */
#about > div { gap: 64px; }
#about .grid { gap: 14px; }
#about .grid > div { padding: 23px; background: hsl(var(--card)); border-color: hsl(var(--border)); border-radius: 20px; }
#about .grid h3 { letter-spacing: -.04em; }
#about p { font-size: 16px; }
#about .grid p { font-size: 12px; }
#services > div:first-child, #projects > div:first-child, #education > div:first-child { margin-bottom: 36px; }
#services > .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
#services .group { padding: 26px; border-radius: 21px; cursor: default; background: hsl(var(--card)); box-shadow: none; }
#services h3 { font-size: 21px; margin-bottom: 10px; }
#services p { font-size: 14px; }
#services .w-14 { width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px; box-shadow: none; }
#projects > .grid { gap: 22px; }
#projects > .grid > a { border-radius: 23px; box-shadow: 0 8px 24px #10101d0b; height: 360px; }
#projects > .grid > a > div:last-child { padding: 28px; }
#projects h3 { font-size: 26px; }
#projects p { line-height: 1.65; }
#projects a .bg-gradient-to-t { background: linear-gradient(0deg, #090b1af5, #090b1a8a 48%, #090b1a05 90%); }
#projects a .translate-y-2 { transform: none; translate: none; }
#projects a .w-12 { width: 40px; height: 40px; transform: none; rotate: none; }
#career > div { min-height: 0; }
#career > div > div:first-child { padding: 0 0 48px; }
#career > div > div:nth-child(2) { padding-inline: 0; padding-bottom: 0; }
#career .mb-20 { margin-bottom: 24px; }
#career .rounded-lg { border-radius: 20px; box-shadow: none; }
#career .rounded-lg > .rounded-lg { border: 0; background: transparent; }
#career h3 { line-height: 1.4; }
#career p { font-size: 14px; }
#career .career-company { color: hsl(var(--primary)); font-size: 18px; font-weight: 700; line-height: 1.5; margin-block: 6px 12px; }
#career.career-disclosure { padding-block: 32px; }
.career-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 28px 30px; border: 1px solid hsl(var(--border)); border-radius: 22px; background: hsl(var(--card)); cursor: pointer; }
.career-summary::-webkit-details-marker { display: none; }
.career-summary::marker { content: ""; }
.career-summary:hover { border-color: hsl(var(--primary) / .45); }
#career .career-summary h2 { font-size: 28px; margin: 0 0 8px; }
#career .career-summary p { color: hsl(var(--muted-foreground)); font-size: 14px; margin: 0; }
.career-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; padding: 12px 16px; min-height: 46px; border-radius: 12px; background: hsl(var(--primary) / .08); color: hsl(var(--primary)); font-size: 13px; font-weight: 700; }
.career-chevron { font-size: 22px; line-height: 1; transition: transform .2s; }
.career-hide, #career[open] .career-show { display: none; }
#career[open] .career-hide { display: inline; }
#career[open] .career-chevron { transform: rotate(180deg); }
#career > .career-timeline { padding-top: 32px; }
#career > .career-timeline > div:first-child { display: none; }
#education .glass-panel { background: hsl(var(--card)); border-color: hsl(var(--border)); }
#education .education-status { display: inline-flex; align-items: center; width: fit-content; margin-top: 14px; padding: 5px 10px; border: 1px solid hsl(var(--primary) / .18); border-radius: 8px; color: hsl(var(--primary)); background: hsl(var(--primary) / .07); font-size: 12px; line-height: 1.5; font-weight: 500; }
#skills .glass-panel { padding: 28px; border-radius: 22px; }
#skills .glass-panel .flex.items-center.justify-between { flex-wrap: wrap; gap: 10px; }
#skills h4 { font-size: 19px; }
#contact > .glass-panel { border-radius: 28px; padding: 44px; background: radial-gradient(ellipse at top left,hsl(var(--primary)/.07),transparent 65%), hsl(var(--card)); }
#contact > .glass-panel > .relative { gap: 60px; }
#contact .relative > .flex-1.glass-panel { padding: 0; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; }
#contact .space-y-6 > * { min-height: 48px; }
#contact .space-y-6 > div { cursor: default; }
#contact input, #contact textarea { font-size: 16px; line-height: 1.5; width: 100%; background: hsl(var(--background)); border: 1px solid hsl(var(--input)); box-shadow: none; }
#contact input { height: 50px; }
#contact textarea { min-height: 140px; resize: vertical; }
#contact label { color: hsl(var(--foreground)); margin-bottom: 8px; }
#contact form button { box-shadow: none; height: 50px; }
.form-helper { font-size: 12px !important; line-height: 1.6 !important; color: hsl(var(--muted-foreground)); margin-top: 12px; }
footer { border-radius: 28px 28px 0 0 !important; padding-top: 44px !important; padding-bottom: 28px !important; box-shadow: none !important; background: hsl(var(--card)) !important; }
footer > .relative { max-width: 1200px; gap: 24px; }
footer .py-12 { padding-block: 36px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
footer .text-\[10px\] { letter-spacing: .06em; }
@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner { gap: 12px; } #site-nav a { padding-inline: 8px; font-size: 12px; }
  .brand-copy small { font-size: 8px; } #site-nav .nav-contact { margin-left: 4px; padding-inline: 12px; }
  #hero > .hero-layout { gap: 28px; } #hero .hero-portrait .w-72 { width: 285px; }
}
@media (max-width: 1023px) {
  #career .relative.mx-auto > .absolute { left: 9px !important; }
  #career .relative.mx-auto > .relative > .relative.flex { padding: 0 0 0 36px; align-items: stretch; }
  #career .relative.flex > .absolute { left: 9px; top: 30px; }
  #career .relative.flex > .relative { margin-top: 0; width: 100%; }
  #career .w-6.h-6 { width: 14px; height: 14px; background: hsl(var(--primary)); border: 3px solid hsl(var(--background)); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
  .site-header { top: 12px; padding-inline: 16px; }
  .header-inner { position: relative; padding: 9px 11px; gap: 12px; border-radius: 18px; }
  .header-actions { margin-left: auto; }
  #menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  #menu-toggle span { width: 18px; height: 1.5px; background: currentColor; transition: transform .2s; }
  #menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  #menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  #site-nav { display: none; position: absolute; top: calc(100% + 10px); right: 0; left: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 20px; padding: 14px; box-shadow: 0 24px 60px #16152525; max-height: calc(100dvh - 108px); overflow-y: auto; }
  .menu-open #site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  #site-nav a { justify-content: flex-start; min-height: 48px; padding-inline: 16px; font-size: 15px; }
  #site-nav .nav-contact { margin: 8px 0 0; justify-content: space-between; }
  html.menu-open, html.menu-open body { overflow: hidden !important; }
  html.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 999; background: #11122655; backdrop-filter: blur(3px); }
  #hero { padding-top: 122px; }
  #hero > .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding-inline: 28px; gap: 24px; }
  #hero .hero-title span, #hero .hero-title h2 { font-size: 44px !important; }
  #hero .hero-portrait .w-72 { width: 280px; }
  #hero .hero-copy > p { font-size: 16px; }
  #services > .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #about > div { gap: 32px; }
  #contact > .glass-panel { padding: 30px; }
  #contact > .glass-panel > .relative { gap: 32px; }
}
@media (max-width: 700px) {
  main > section:not(#hero), #career { padding: 56px 20px; }
  main h2 { font-size: 32px !important; }
  main > section > div:first-child p { font-size: 15px; }
  #hero { padding-top: 112px; }
  #hero > .hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding-inline: 24px; padding-bottom: 36px; }
  #hero .hero-copy { flex: auto; }
  #hero .hero-copy > div:first-child { margin-bottom: 20px; }
  #hero .hero-title { margin-bottom: 18px; }
  #hero h1 { font-size: 19px; margin-bottom: 10px; }
  #hero .hero-title span, #hero .hero-title h2 { font-size: clamp(36px, 10.2vw, 54px) !important; letter-spacing: -.05em; line-height: 1.09; }
  #hero .hero-copy > p { font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
  #hero .hero-actions { width: 100%; gap: 10px; margin-bottom: 18px; }
  #hero .hero-actions > * { flex: 1; padding-inline: 12px; }
  #hero .hero-actions > span { padding: 0; }
  #hero .hero-actions a { padding-inline: 12px; }
  #hero .hero-portrait { flex: auto; width: 100%; align-self: center; }
  #hero .hero-portrait > div { touch-action: pan-y !important; }
  #hero .hero-portrait > div > .cursor-grab { transform: none !important; cursor: default; }
  #hero .hero-portrait > div > div:first-child, #hero .hero-portrait .cursor-grab > div:first-child, #hero .hero-portrait > div > p { display: none; }
  #hero .hero-portrait .cursor-grab { margin-top: 0 !important; width: 100%; }
  #hero .hero-portrait .w-72 { margin-top: 0; width: 100%; border-radius: 22px; }
  #hero .hero-portrait .w-72 > .absolute { display: none; }
  #hero .hero-portrait .w-72 > .flex { display: grid; grid-template-columns: 95px minmax(0,1fr); background: hsl(var(--card)); padding: 19px; gap: 16px; }
  #hero .hero-portrait .bg-gradient-to-br { background: none; padding: 0; justify-content: center; }
  #hero .hero-portrait .w-28 { width: 90px; height: 90px; margin: 0; border-color: hsl(var(--primary)/.4); }
  #hero .hero-portrait .p-5 { padding: 0; text-align: left; align-items: flex-start; gap: 10px; }
  #hero .hero-portrait h3 { font-size: 17px; line-height: 1.3; }
  #hero .hero-portrait h3 + div { font-size: 14px; padding: 0; border: 0; background: transparent; margin-top: 7px; text-wrap: balance; line-height: 1.5; }
  #hero .hero-portrait .p-5 > .border-t, #hero .hero-portrait .p-5 > .flex-col:last-child { display: none; }
  #hero .hero-portrait .grid-cols-2 { padding: 0; border: 0; background: transparent; gap: 7px; }
  #hero .hero-portrait .grid-cols-2 > div:first-child, #hero .hero-portrait .grid-cols-2 > div:last-child { display: none; }
  #hero .hero-portrait .grid-cols-2 span { font-size: 10px; }
  #hero > .w-full > div { padding-block: 12px; }
  .skills-marquee > div { margin-inline: 6px; }
  #about > div { flex-direction: column; gap: 28px; }
  #about .grid { gap: 12px; }
  #about .grid > div { padding: 18px; border-radius: 17px; }
  #about .grid .mb-4 { margin-bottom: 12px; padding: 9px; }
  #about .grid h3 { font-size: 27px; }
  #services > div:first-child, #projects > div:first-child { text-align: left; margin-bottom: 26px; }
  #services h2, #services > div:first-child p, #projects h2, #projects > div:first-child p { text-align: left; }
  #services > .grid { grid-template-columns: 1fr; gap: 12px; }
  #services .group { padding: 20px; border-radius: 18px; }
  #services .group > .relative > div > div { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 5px 15px; align-items: start; }
  #services .w-14 { width: 44px; height: 44px; margin: 0; grid-row: 1 / 3; }
  #services .w-14 svg { width: 23px; height: 23px; }
  #services h3 { font-size: 18px; margin-bottom: 0; line-height: 1.4; }
  #services p { font-size: 14px; grid-column: 2; }
  #projects > .grid { grid-template-columns: 1fr; gap: 16px; }
  #projects > .grid > a { height: 320px; border-radius: 20px; grid-column: auto; }
  #projects > .grid > a > div:last-child { padding: 22px; }
  #projects h3 { font-size: 23px; }
  #projects p { font-size: 13px; }
  #projects a .flex.items-end { gap: 12px; }
  #projects a .w-12 { width: 34px; height: 34px; }
  #projects a .w-12 svg { width: 18px; height: 18px; }
  #career > div > div:first-child { text-align: left; padding-bottom: 30px; }
  #career .mb-20 { margin-bottom: 18px; }
  #career .p-6 { padding: 20px; }
  #career h3 { font-size: 18px; }
  #career .text-sm { font-size: 12px; }
  #career p { font-size: 13px; }
  #career.career-disclosure { padding-block: 20px; }
  .career-summary { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px; border-radius: 19px; }
  #career .career-summary h2 { font-size: 26px !important; }
  #career .career-summary p { font-size: 13px; }
  .career-toggle { width: 100%; justify-content: space-between; }
  #education { gap: 40px; }
  #education.space-y-20 > * + * { margin-top: 44px; }
  #education .grid { gap: 12px; }
  #education .glass-panel { padding: 20px; border-radius: 18px; }
  #education h3 { font-size: 18px; }
  #skills > h3 { font-size: 26px; }
  #skills .glass-panel { padding: 22px; }
  #skills .text-sm { font-size: 12px; }
  #contact > .glass-panel { padding: 24px; border-radius: 24px; }
  #contact > .glass-panel > .relative { flex-direction: column; gap: 30px; }
  #contact .space-y-8 > * + * { margin-top: 24px; }
  #contact .space-y-6 > * + * { margin-top: 12px; }
  #contact .space-y-6 > * { gap: 12px; font-size: 14px; }
  #contact .space-y-6 .w-12 { width: 40px; height: 40px; flex-shrink: 0; }
  #contact .relative > .flex-1.glass-panel { padding: 0; }
  footer { padding-top: 32px !important; }
  footer .py-12 { padding: 28px 16px; }
  footer .py-12 .text-3xl { font-size: 25px; min-height: 85px; }
  footer .py-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; padding-block: 12px; text-align: center; }
  footer .py-6 a { justify-content: center; font-size: 13px; }
  footer .text-\[10px\] { font-size: 8px; }
}
@media (max-width: 370px) {
  .site-header { padding-inline: 10px; }
  .brand-copy small { font-size: 7px; letter-spacing: .055em; }
  .brand-copy strong { font-size: 12px; }
  .site-brand { gap: 8px; } .brand-mark { width: 36px; height: 36px; }
  .header-inner { gap: 8px; } .header-actions { gap: 3px; }
  #hero > .hero-layout { padding-inline: 20px; }
  #hero .hero-portrait .w-72 > .flex { grid-template-columns: 66px minmax(0,1fr); padding: 16px; gap: 12px; }
  #hero .hero-portrait .w-28 { width: 66px; height: 66px; }
  #hero .hero-portrait h3 { font-size: 15px; }
  #contact > .glass-panel { padding: 20px; }
}
@media (hover: none) {
  #services .group:hover, #hero .hero-actions > *:hover { transform: none; }
  #hero .hero-portrait > div { touch-action: pan-y !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  main [style*="opacity"], footer [style*="opacity"] { opacity: 1 !important; }
  main [style*="translateY"] { transform: none !important; }
  #hero .hero-portrait .cursor-grab { transform: none !important; }
  footer .select-none > span:first-child { opacity: 0 !important; }
  footer .select-none > span:nth-child(2) { opacity: 1 !important; filter: none !important; }
  .skills-marquee { animation: none !important; }
}
@media print {
  .site-header, .skip-link, .career-toggle { display: none !important; }
  #career.career-disclosure { padding: 20px 0; }
  .career-summary { border: 0; padding: 0 0 16px; }
  #career .career-timeline [style] { opacity: 1 !important; transform: none !important; filter: none !important; }
  #career .relative.flex { break-inside: avoid; }
}
