:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #fff;
  --soft: #efeee9;
  --ink: #161c25;
  --muted: #526070;
  --line: #dcdedc;
  --brand: #2546bb;
  --brand-soft: #e9edff;
  --on-brand: #fff;
  --shadow: 0 18px 42px #1a264018;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.25,1);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.65;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151e;
  --surface: #171f2b;
  --soft: #202a39;
  --ink: #f1f3f8;
  --muted: #b2becf;
  --line: #364153;
  --brand: #aabaff;
  --brand-soft: #283655;
  --on-brand: #10192f;
  --shadow: 0 20px 48px #0005;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--bg); transition: background-color .24s, color .24s; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.container { width: min(var(--container), 100% - 64px); margin-inline: auto; }
.mono, .eyebrow, .project-index, .project-row-index {
  font-family: "DM Mono", ui-monospace, monospace;
}
.eyebrow { display: block; color: var(--brand); font-size: 14px; letter-spacing: .055em; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 16px; border-radius: 8px; transform: translateY(-150%); background: var(--ink); color: var(--surface); }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 11; inset: 0 0 auto; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.nav-wrap { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); }
.nav { width: min(var(--container), 100% - 64px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark, .brand-mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.nav-link { padding: 7px 12px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.active, .mobile-panel a.active { color: var(--brand); background: var(--brand-soft); }
.icon-btn { display: grid; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); transition: color .2s, background .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.icon-btn svg { display: block; width: 20px; height: 20px; }
.menu-btn, .mobile-panel { display: none; }
.menu-btn path { transform-box: view-box; transform-origin: center; transition: transform .24s var(--ease); stroke-linecap: round; }
.menu-btn[aria-expanded="true"] path:first-child { transform: rotate(45deg) translateY(4px); }
.menu-btn[aria-expanded="true"] path:last-child { transform: rotate(-45deg) translateY(-4px); }

.hero { padding: clamp(48px, 6.3vw, 88px) 0 clamp(46px, 5.5vw, 74px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr); gap: clamp(30px, 7vw, 110px); align-items: center; }
.availability { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 700; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: #1b9369; box-shadow: 0 0 0 4px #23a87827; }
.hero-title { margin: 18px 0 16px; font-weight: 800; font-size: clamp(46px, 6.4vw, 95px); line-height: 1.01; letter-spacing: -.06em; }
.hero-title span { color: var(--brand); }
.hero-kicker { font-size: clamp(15px, 1.45vw, 19px); font-weight: 750; }
.hero-copy { max-width: 53ch; margin-top: 12px; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); }
.hero-copy strong { color: var(--ink); font-weight: 700; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn, .project-action { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.4; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary, .project-action-live:first-child { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.btn:hover, .project-action:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active, .project-action:active { transform: translateY(0) scale(.98); }
.btn svg, .project-action svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg, .project-action:hover svg { transform: translate(2px, -2px); }
.hero-actions .btn-secondary:hover svg { transform: translateY(2px); }
.hero-portrait { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; object-position: center 44%; }
.hero-portrait figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 11px 16px; color: var(--muted); font-size: 14px; }
.hero-portrait a { color: var(--brand); font-weight: 700; }
.tech-ribbon { border-block: 1px solid var(--line); background: var(--surface); }
.tech-ribbon-inner { min-height: 67px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 2vw, 22px); padding-block: 12px; }
.tech-ribbon-label { color: var(--brand); font-size: 14px; font-weight: 750; }
.tech-ribbon-label:hover { text-decoration: underline; }
.tech-ribbon-window { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 15px, #000 calc(100% - 15px), transparent); }
.tech-ribbon-track, .tech-ribbon-group { display: flex; width: max-content; align-items: center; }
.tech-ribbon-track { animation: ribbon-loop var(--ribbon-duration, 120s) linear infinite; }
.tech-ribbon-group { flex: none; gap: 26px; padding-right: 26px; }
.tech-ribbon-item { white-space: nowrap; }
.tech-ribbon.is-paused .tech-ribbon-track, .tech-ribbon.is-offscreen .tech-ribbon-track { animation-play-state: paused; }
@media (hover: hover) {
  .tech-ribbon-window:hover .tech-ribbon-track { animation-play-state: paused; }
}
.tech-ribbon-toggle { width: 36px; height: 36px; }
.tech-ribbon-toggle .ribbon-play, .tech-ribbon-toggle[aria-pressed="true"] .ribbon-pause { display: none; }
.tech-ribbon-toggle[aria-pressed="true"] .ribbon-play { display: block; }
@keyframes ribbon-loop { to { transform: translateX(-50%); } }
.tech-ribbon-item, .skill, .pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; }
.brand-icon-img, .ui-tech-icon { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.ui-tech-icon svg { width: 100%; height: 100%; }
.icon-wordmark { width: 37px; flex-basis: 37px; }
[data-theme="dark"] .icon-mono { filter: invert(1); }
[data-theme="dark"] .icon-on-light { background: #fff; border-radius: 3px; padding: 2px; }
.theme-logo { display: inline-flex; align-items: center; }
.theme-logo img:nth-child(2), [data-theme="dark"] .theme-logo img:first-child { display: none; }
[data-theme="dark"] .theme-logo img:nth-child(2) { display: inline-flex; }

.section { padding: clamp(52px, 7vw, 96px) 0; scroll-margin-top: 8px; }
.section-head { display: grid; grid-template-columns: 175px minmax(0,1fr); align-items: baseline; gap: 18px 28px; margin-bottom: 32px; }
.section-title, .contact-title { font-size: clamp(34px, 4.2vw, 61px); font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
.section-copy, .skills-sticky p { max-width: 70ch; margin-top: 12px; color: var(--muted); }

.project-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.project-item { min-width: 0; }
.project-row { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 3px 12px; padding: 0 17px 17px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); transition: border-color .22s, box-shadow .22s, transform .22s; }
.project-row:hover, .credential-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.project-thumb-frame { position: relative; display: block; grid-column: 1/-1; aspect-ratio: 16/10; margin: 0 -17px 10px; overflow: hidden; border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.project-thumb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.project-thumb.is-portrait { inset: 7% auto auto 50%; width: auto; height: 86%; max-width: 90%; transform: translateX(-50%); object-fit: contain; border-radius: 7px; box-shadow: 0 8px 22px #10182833; }
.project-thumb, .credential-media img { transition: scale .55s var(--ease); }
.project-row:hover .project-thumb, .credential-card:hover .credential-media img { scale: 1.035; }
.project-row-index { grid-column: 1; color: var(--brand); font-size: 13px; }
.project-card-title { grid-column: 1; font-size: 19px; font-weight: 800; line-height: 1.25; }
.project-row-copy { grid-column: 1; color: var(--muted); font-size: 14px; line-height: 1.48; }
.project-row-copy .api-row-icon { display: none; }
.project-arrow { grid-column: 2; grid-row: 2/5; align-self: center; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); transition: background .2s, border-color .2s; }
.project-arrow svg { display: block; width: 18px; height: 18px; }
.project-row:hover .project-arrow, .project-row:focus-visible .project-arrow { background: var(--brand-soft); border-color: var(--brand); }
.project-dialog { width: min(1030px,100% - 40px); max-height: min(90dvh, 900px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 22px 80px #0005; }
.project-dialog[data-kind="credential"] { width: min(890px, 100% - 40px); }
.project-dialog::backdrop { background: #0a1120af; backdrop-filter: blur(4px); }
.project-dialog[open] { animation: dialog-in .32s var(--ease) both; }
.project-dialog[open]::backdrop { animation: backdrop-in .3s ease both; }
.project-dialog[open].is-closing { animation: dialog-out .19s ease-in both; }
.project-dialog[open].is-closing::backdrop { animation: backdrop-in .19s ease-in reverse both; }
.project-dialog.download-dialog { width: min(420px, calc(100% - 32px)); }
.download-content { padding: clamp(20px, 4vw, 28px); }
.download-content h2 { margin: 0 0 8px; font-size: clamp(21px, 4vw, 25px); line-height: 1.2; }
.download-content p { color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 700; }
.dialog-dismiss { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
.featured-project { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.project-visual { min-width: 0; display: grid; align-content: center; gap: 10px; padding: 25px; background: var(--soft); }
.project-preview { display: block; justify-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.project-preview img { display: block; width: 100%; height: auto; }
.project-preview.is-portrait img { width: auto; max-height: 420px; }
.project-preview-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 14px; }
.project-preview-zoom { color: var(--brand); }
.project-info { min-width: 0; padding: clamp(22px, 3.5vw, 42px); }
.project-index { color: var(--brand); font-size: 13px; }
.project-info h3 { margin-block: 9px 12px; font-size: clamp(25px,4vw,42px); line-height: 1.08; letter-spacing: -.045em; }
.project-info p { color: var(--muted); }
.project-stack, .skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.project-stack { margin: 18px 0; }
.pill, .skill { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.project-detail-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.work-focus { padding-bottom: clamp(28px, 4vw, 52px); }
.work-focus-inner { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.work-focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.work-focus-list dt { font-weight: 800; }
.work-focus-list dd { margin-top: 4px; color: var(--muted); font-size: 15px; }

#experience, #skills { border-top: 1px solid var(--line); background: var(--surface); }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr) minmax(0,2fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.experience-date { color: var(--brand); font-size: 14px; font-weight: 750; }
.experience-role h3 { font-size: 19px; line-height: 1.35; }
.experience-role p { margin-top: 4px; }
.experience-role p, .experience-desc { color: var(--muted); }
.experience-desc { display: grid; align-content: start; gap: 12px; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-content { max-width: 930px; margin-left: auto; }
.about-lead { max-width: 35ch; margin-bottom: 17px; font-size: clamp(21px,3vw,33px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.about-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; color: var(--muted); }
.quick-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.fact { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fact strong, .fact span { display: block; }
.fact span { color: var(--muted); font-size: 14px; }

.skills-sticky { margin-bottom: 26px; }
.skills-sticky h2 { margin-top: 8px; }
.skills-groups { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.skill-group { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.skills-groups > .skill-group { grid-column: span 2; }
.skill-group h3 { margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.certifications { border-block: 1px solid var(--line); }
.credential-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.credential-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-filters button { min-height: 40px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, color .2s; }
.credential-filters button:hover { border-color: var(--brand); color: var(--brand); }
.credential-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.credential-count { color: var(--muted); font-size: 14px; }
.credential-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.credential-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; transition: transform .24s var(--ease), border-color .24s, box-shadow .24s; }
.credential-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.58; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); }
.credential-media img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.credential-info { position: relative; display: grid; align-content: start; gap: 7px; width: 100%; padding: 13px 38px 14px 13px; }
.credential-issuer { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }
.credential-issuer img { width: 21px; height: 21px; object-fit: contain; flex: 0 0 21px; }
.credential-title { font-size: 16px; line-height: 1.35; font-weight: 800; }
.credential-meta { color: var(--muted); font-size: 14px; }
.credential-arrow { position: absolute; top: 13px; right: 13px; color: var(--brand); transition: transform .25s var(--ease); }
.credential-card:hover .credential-arrow { transform: translate(2px,-2px); }
.credential-preview-media { display: grid; place-items: center; padding: clamp(12px,3vw,24px); background: var(--soft); }
.credential-preview-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(60dvh,620px); object-fit: contain; }
.credential-preview-caption { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 15px clamp(15px,3vw,24px) 20px; }
.credential-preview-caption h3 { font-size: clamp(18px,3vw,26px); line-height: 1.25; margin-block: 4px; }

.contact-section { padding: clamp(45px,7vw,80px) 0; }
.contact-panel { padding: clamp(24px,5vw,56px); border: 1px solid var(--line); border-radius: 18px; background: var(--brand-soft); }
.contact-title { margin-top: 8px; max-width: 20ch; }
.contact-title span { color: var(--brand); }
footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid, .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding-block: 17px; }
.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }
.footer-links a:hover, .footer-top:hover { color: var(--brand); }

.motion-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--reveal-delay, var(--delay, 0ms)); }
.motion-ready [data-reveal].is-visible, .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
.motion-ready [data-reveal]:focus-within { transition: none; }
.motion-ready .hero-intro.is-visible > * { animation: reveal-in .62s var(--ease) both; }
.motion-ready .hero-intro.is-visible > :nth-child(2) { animation-delay: 75ms; }
.motion-ready .hero-intro.is-visible > :nth-child(3) { animation-delay: 150ms; }
.motion-ready .hero-intro.is-visible > :nth-child(4) { animation-delay: 210ms; }
.motion-ready .hero-intro.is-visible > :nth-child(5) { animation-delay: 270ms; }
.motion-ready .hero-portrait { --reveal-delay: 170ms; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(7px) scale(.99); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 930px) {
  .nav-links { gap: 0; }
  .nav-link { padding-inline: 8px; }
  .project-list, .skills-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .credential-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .skills-groups > .skill-group { grid-column: auto; }
  .section-head { grid-template-columns: 135px minmax(0,1fr); }
  .work-focus-inner { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .container, .nav { width: calc(100% - 32px); }
  .nav { min-height: 62px; gap: 9px; }
  .nav-links { display: none; }
  #themeToggle { margin-left: auto; }
  .menu-btn { display: grid; }
  .mobile-panel.open { position: fixed; z-index: 9; inset: 62px 0 auto; display: grid; padding: 10px 16px 16px; gap: 2px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); animation: dialog-in .24s var(--ease) both; }
  .mobile-panel a { padding: 9px; border-radius: 6px; }
  .mobile-panel a:hover { background: var(--brand-soft); }
  .hero-grid, .section-head, .work-focus-inner, .about-body { grid-template-columns: 1fr; }
  .hero-grid { gap: 24px; }
  .hero { padding-block: 35px; }
  .hero-portrait { max-width: 460px; }
  .hero-portrait img { aspect-ratio: 1.42; }
  .section-head { gap: 6px; margin-bottom: 20px; }
  .experience-item { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 12px 16px; }
  .experience-desc { grid-column: 1/-1; }
  .featured-project { grid-template-columns: 1fr; }
  .project-dialog, .project-dialog[data-kind="credential"] { width: calc(100% - 24px); max-height: 94dvh; }
  .credential-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-visual { padding: 14px; }
  .project-preview.is-portrait img { max-height: 300px; }
}

@media (max-width: 490px) {
  .project-list, .skills-groups, .quick-facts { grid-template-columns: 1fr; }
  .credential-grid { gap: 9px; }
  .credential-info { padding: 10px; }
  .credential-arrow { display: none; }
  .credential-issuer, .credential-meta { font-size: 13px; }
  .credential-issuer { align-items: flex-start; }
  .credential-issuer img { width: 17px; height: 17px; flex-basis: 17px; }
  .project-list { gap: 13px; }
  .experience-item { grid-template-columns: 1fr; }
  .work-focus-list { grid-template-columns: 1fr; }
  .tech-ribbon-item { font-size: 13px; }
}

@media (max-width: 359px) {
  .credential-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  .tech-ribbon-inner { grid-template-columns: auto minmax(0, 1fr); }
  .tech-ribbon-track { animation: none; }
  .tech-ribbon-group + .tech-ribbon-group, .tech-ribbon-toggle { display: none; }
}
