:root {
  --bg: #0B0D10; --surface-1: #11141A; --surface-2: #171B22;
  --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.16);
  --text: #ECEEF1; --text-muted: #A1A9B5; --text-dim: #6B7380;
  --accent: #F5A524; --accent-soft: rgba(245,165,36,0.12); --info: #7AA8FF;
  --ok: #3DD68C; --danger: #F2665F;
  --font: 'Instrument Sans', Arial, sans-serif; --mono: 'Geist Mono', Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1); --radius: 4px;
  color-scheme: dark; font-family: var(--font); color: var(--text); background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-gutter: stable; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
body.scroll-locked { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, [tabindex] { scroll-margin: 100px 0 24px; }
button:disabled { cursor: default; }
img, canvas { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.13; }
h2 { font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 23px; letter-spacing: -.025em; }
p { color: var(--text-muted); }
ul { padding: 0; margin: 0; list-style: none; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.mono, .eyebrow, .section-index, .tech-list, .experience-meta { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 32px; }
.wordmark { font-size: 30px; font-weight: 700; letter-spacing: -.07em; min-height: 44px; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 30px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
nav a:hover, nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.header-actions, .language-switch { display: flex; align-items: center; }
.language-switch { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2px; }
.language-switch button { background: transparent; border: 0; min-width: 44px; min-height: 44px; font: 12px var(--mono); color: var(--text-muted); }
.language-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); padding: 8px 16px; min-height: 44px; }
.hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); column-gap: clamp(32px,5vw,80px); padding-top: 64px; }
.hero-copy { padding-top: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.signal-mark { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
h1 { font-size: clamp(44px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -.055em; margin: 30px 0 24px; text-wrap: balance; }
h1 > span { display: block; }
.headline-secondary { color: var(--text-muted); }
.hero-description { font-size: 15px; line-height: 1.8; max-width: 61ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.primary:hover { background: #ffb740; border-color: #ffb740; }
.secondary { background: transparent; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 13px; background: none; border: 0; padding: 8px 0; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.cv-link { margin-left: 6px; }
.identity-stage { align-self: start; min-width: 0; }
.stage-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text); }
.status-dot { background: var(--ok); width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.card-stage { height: 640px; position: relative; isolation: isolate; }
.card-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; cursor: grab; }
.card-stage canvas:active { cursor: grabbing; }
.card-fallback { display: flex; justify-content: center; align-items: flex-end; position: absolute; inset: 0; padding-bottom: 25px; }
.lanyard-static { position: absolute; top: 0; height: calc(100% - 525px); width: 10px; background: var(--surface-2); border-inline: 1px solid var(--line-strong); }
.lanyard-static::after { content: ''; position: absolute; bottom: -14px; left: -3px; width: 16px; height: 26px; border: 3px solid #89909a; border-radius: 4px; z-index: 2; }
.id-card { width: min(320px, 100%); min-height: 500px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 15px; overflow: hidden; }
.id-top { display: flex; align-items: center; justify-content: space-between; margin: 0 20px; height: 56px; }
.id-top > :first-child { font-weight: 700; font-size: 23px; letter-spacing: -.06em; }
.id-top .mono { color: var(--text-muted); font-size: 10px; }
.id-photo { width: calc(100% - 40px); margin-inline: 20px; height: 180px; object-fit: cover; object-position: 50% 8%; filter: saturate(.6); border-radius: 3px; }
.id-details { padding: 14px 20px 10px; }
.id-handle { font-size: 12px; margin-bottom: 5px; }
.id-details h2 { font-size: 27px; letter-spacing: -.04em; }
.id-alias { font-size: 12px; margin-top: 4px; }
.id-role { font-size: 13px; color: var(--text); margin-top: 14px; }
.id-location, .id-status { font-size: 12px; margin-top: 6px; }
.id-status { display: flex; align-items: center; gap: 7px; color: var(--text); }
.foil { height: 5px; margin-top: 16px; background: linear-gradient(100deg,#787e88,#d0c8b4,#b98b42,#7b828b); }
.id-number { margin-top: 10px; font-size: 9px; }
.id-back .id-details h2 { margin-top: 12px; }
.id-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.id-stack li { border: 1px solid var(--line-strong); padding: 5px 8px; font: 12px var(--mono); }
.id-contacts { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); }
.barcode { height: 35px; margin-top: 24px; background: repeating-linear-gradient(90deg,var(--text-muted) 0 2px,transparent 2px 4px,var(--text-muted) 4px 5px,transparent 5px 9px); }
.card-fallback[role="button"] { cursor: pointer; }
.hero-baseline { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 52px; padding: 16px 0; color: var(--text-muted); }
.roles { display: flex; gap: 28px; align-items: center; font-size: 12px; }
.roles span + span::before { content: '/'; margin-right: 28px; color: var(--text-dim); }
.section { padding-top: 112px; }
.section-header { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 48px; }
.section-index { display: flex; gap: 24px; align-items: baseline; color: var(--text-muted); }
.section-index > :first-child { color: var(--accent); }
.section-header p:not(.section-index) { max-width: 53ch; margin-top: 18px; }
.skills-table { border-top: 1px solid var(--line-strong); }
.skill-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.skill-row h3 { font-size: 18px; padding-top: 3px; line-height: 1.4; }
.tools { color: var(--text); font-size: 18px; line-height: 1.8; }
.tools span { color: var(--text-dim); padding-inline: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px 20px; margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.skills-notes { display: grid; grid-template-columns: 1.3fr 1fr; border-bottom: 1px solid var(--line); }
.skill-note { padding: 40px 48px 40px 0; }
.skill-note + .skill-note { border-left: 1px solid var(--line); padding-left: 48px; padding-right: 0; }
.note-mark { color: var(--accent); display: block; margin-bottom: 16px; font: 22px var(--mono); }
.skill-note p { margin-top: 18px; font-size: 14px; }
.skill-note .tools { color: var(--text); }
.service-row { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.service-number { color: var(--text-muted); }
.service-row h3 { font-size: 26px; max-width: 15ch; line-height: 1.25; }
.service-row p { font-size: 15px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; color: var(--text-muted); font-size: 11px; }
.tech-list li { border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 2px; }
.projects-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card { position: relative; min-width: 0; text-align: left; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: border-color .22s, transform .22s var(--ease); }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px 64px; padding: 40px; }
.project-card .project-kicker { display: block; color: var(--text-muted); font: 11px var(--mono); margin-bottom: 28px; }
.project-card .project-name { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.project-card:first-child .project-name { font-size: 44px; max-width: 10ch; }
.project-card .project-summary { display: block; color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-top: 18px; }
.project-card:first-child .project-summary { margin-top: 44px; }
.project-card .project-tech { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font: 11px var(--mono); color: var(--text-muted); }
.project-card .project-open { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 13px; }
.project-card:first-child .project-open { grid-column: 1 / -1; margin-top: 0; }
.project-open svg { transition: transform .2s var(--ease); }
.project-card:hover .project-open svg { transform: translateX(4px); }
.projects-footer { display: flex; justify-content: flex-end; margin-top: 24px; }
.experience-section { display: grid; grid-template-columns: 1fr 1.65fr; gap: 80px; }
.experience-intro { align-self: start; position: sticky; top: 128px; }
.experience-intro h2 { margin: 36px 0 20px; }
.experience-intro > p:last-child { font-size: 15px; }
.experience-item { padding: 0 0 40px 28px; border-left: 1px solid var(--line-strong); position: relative; }
.experience-item::before { content: ''; width: 7px; height: 7px; position: absolute; left: -4px; top: 9px; background: var(--text-dim); }
.experience-item:first-child::before { background: var(--accent); }
.experience-meta { display: flex; gap: 16px; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 11px; margin-bottom: 18px; }
.state { border: 1px solid var(--line-strong); padding: 2px 8px; font-size: 10px; }
.state.current { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.experience-item h3 { font-size: 24px; }
.experience-role { color: var(--text); font-size: 14px; margin-top: 10px; }
.team { font-size: 12px; margin-top: 5px; }
.experience-description { font-size: 14px; margin-top: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.experience-item:last-child { padding-bottom: 0; }
.contact-section { padding-bottom: 96px; }
.contact-section > .section-index { border-top: 1px solid var(--line-strong); padding-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 56px; }
.contact-grid h2 { font-size: clamp(48px,5vw,72px); margin: 22px 0; max-width: 9ch; }
.contact-grid p { max-width: 38ch; }
.contact-details a, .contact-details .location { display: grid; grid-template-columns: 75px 1fr 20px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); min-height: 80px; padding: 16px 0; font-size: 14px; max-width: none; }
.contact-details a > span:nth-child(2), .location span { overflow-wrap: anywhere; min-width: 0; }
.contact-details .mono { font-size: 11px; color: var(--text-muted); }
.contact-details a:hover { color: var(--info); }
.contact-details .location { grid-template-columns: 75px 1fr; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.site-footer p { font-size: 11px; }
.site-footer a { white-space: nowrap; font-size: 11px; }
dialog { color: var(--text); background: var(--surface-1); border: 1px solid var(--line-strong); padding: 0; border-radius: 8px; max-height: calc(100dvh - 48px); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0,0,0,.82); }
dialog[open] { animation: dialog-in .24s var(--ease); }
dialog.closing { animation: dialog-out .15s ease-in forwards; }
.project-dialog { width: min(960px,calc(100% - 48px)); }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: var(--surface-1); }
.dialog-toolbar > span { color: var(--text-muted); }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); }
#project-content { padding: 32px; }
#project-title { font-size: clamp(32px,4vw,52px); outline-offset: 8px; }
.modal-summary { max-width: 65ch; margin-top: 20px; }
.project-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-context h3 { font: 12px var(--mono); color: var(--text-muted); margin-bottom: 12px; }
.project-context p { font-size: 14px; line-height: 1.7; }
.modal-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin: 36px 0; }
.modal-details h3, .gallery-heading { font: 12px var(--mono); color: var(--text-muted); letter-spacing: 0; margin-bottom: 20px; }
.features-list li { padding: 10px 0 10px 20px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.features-list li::before { content: ''; width: 4px; height: 4px; background: var(--accent); position: absolute; left: 0; top: 21px; }
.modal-details .tech-list { margin-top: 0; }
.tech-groups { display: grid; gap: 16px; }
.tech-group h4 { color: var(--text-muted); font: 11px var(--mono); margin-bottom: 5px; }
.tech-group p { font-size: 13px; line-height: 1.6; }
.project-role { margin-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.screenshot-slot { position: relative; aspect-ratio: 16/10; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.slot-placeholder { position: absolute; inset: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; padding: 12px; }
.slot-placeholder::before, .slot-placeholder::after { content: ''; position: absolute; width: 8px; height: 8px; border-color: var(--text-dim); }
.slot-placeholder::before { left: -1px; top: -1px; border-top: 1px solid; border-left: 1px solid; }
.slot-placeholder::after { right: -1px; bottom: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.slot-placeholder .mono { font-size: 10px; color: var(--text-muted); }
.slot-placeholder small { font-size: 10px; color: var(--text-muted); }
.screenshot-button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: var(--surface-2); }
.screenshot-button img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-button:focus-visible { outline-offset: -4px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.project-private { border-top: 1px solid var(--line); color: var(--text-muted); font-size: 14px; margin-top: 28px; padding-top: 20px; }
.dialog-navigation { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 32px; border-top: 1px solid var(--line); }
.dialog-navigation .mono { font-size: 11px; color: var(--text-muted); }
.lightbox { width: min(1200px,calc(100% - 32px)); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; }
.lightbox h2 { font: 13px var(--mono); letter-spacing: 0; }
.lightbox img { width: 100%; height: auto; max-height: 75dvh; object-fit: contain; }
.reveal.is-pending { opacity: 0; transform: translateY(12px); }
.reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(6px); } }
@media (min-width: 1600px) { .hero { padding-top: 80px; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  nav { gap: 20px; }
  .hero { column-gap: 32px; grid-template-columns: 1.2fr 1fr; }
  h1 { font-size: clamp(44px,5vw,60px); }
  .card-stage { height: 620px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .cv-link { margin-left: 0; }
  .experience-section, .contact-grid { gap: 48px; }
  .contact-details a, .contact-details .location { grid-template-columns: 1fr 20px; gap: 4px 12px; }
  .contact-details a .mono, .contact-details .location .mono { grid-column: 1 / -1; }
  .contact-details .location { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 76px; }
  .header-actions { gap: 12px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 32px; background: var(--surface-1); border-bottom: 1px solid var(--line-strong); grid-template-columns: 1fr 1fr; }
  nav.is-open { display: grid; }
  nav a { padding: 4px 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { padding-top: 0; }
  h1 { font-size: clamp(44px,7.8vw,64px); max-width: 13ch; }
  .hero-description { font-size: 16px; max-width: 62ch; }
  .identity-stage { width: min(420px,100%); justify-self: center; margin-top: 48px; }
  .card-stage { height: 620px; }
  .hero-baseline { margin-top: 40px; }
  .roles { gap: 14px; font-size: 11px; flex-wrap: wrap; }
  .roles span + span::before { margin-right: 14px; }
  .section { padding-top: 80px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .skill-row { grid-template-columns: 1fr 1.65fr; gap: 24px; }
  .skills-notes { grid-template-columns: 1fr 1fr; }
  .skill-note { padding-right: 28px; }
  .skill-note + .skill-note { padding-left: 28px; }
  .service-row { grid-template-columns: 30px 1fr 1.1fr; gap: 20px; }
  .service-row h3 { font-size: 22px; }
  .project-card { padding: 28px; }
  .project-card:first-child { padding: 32px; gap: 24px; }
  .project-card:first-child .project-name { font-size: 36px; }
  .project-card .project-name { font-size: 30px; }
  .experience-section { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
  .experience-intro h2 { margin-top: 24px; }
  .contact-grid { gap: 32px; }
  .site-footer { align-items: flex-start; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; min-height: 72px; }
  .wordmark { font-size: 28px; }
  .header-actions { gap: 8px; }
  .menu-toggle { font-size: 12px; padding-inline: 12px; }
  .eyebrow { font-size: 10px; gap: 8px; }
  h1 { font-size: clamp(42px,11.6vw,60px); margin-top: 28px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .button { padding-inline: 18px; }
  .cv-link { margin-top: 2px; }
  .identity-stage { margin-top: 32px; }
  .card-stage { height: 580px; }
  .card-fallback { padding-bottom: 16px; }
  .lanyard-static { height: calc(100% - 516px); }
  .hero-baseline { align-items: flex-start; gap: 8px; }
  .roles { flex-direction: column; align-items: flex-start; gap: 5px; }
  .roles span + span::before { content: none; }
  .hero-baseline > a { font-size: 11px; }
  .skill-row { grid-template-columns: 1fr; gap: 14px; }
  .tools { font-size: 17px; }
  .tools span { padding-inline: 3px; }
  .skills-notes { grid-template-columns: 1fr; }
  .skill-note { padding: 32px 0; }
  .skill-note + .skill-note { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0; }
  .service-row { grid-template-columns: 24px 1fr; gap: 16px; padding: 28px 0; }
  .service-row h3 { max-width: 21ch; }
  .service-row > div { grid-column: 2; }
  .projects-list { grid-template-columns: 1fr; }
  .project-card, .project-card:first-child { padding: 24px; display: block; }
  .project-card:first-child .project-name { font-size: 36px; }
  .project-card:first-child .project-summary { margin-top: 18px; }
  .project-card:first-child .project-open { margin-top: 28px; }
  .projects-footer { justify-content: flex-start; }
  .experience-section { gap: 36px; }
  .experience-item { padding-left: 20px; }
  .experience-meta { font-size: 10px; gap: 8px; }
  .experience-item h3 { font-size: 23px; }
  .contact-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .contact-section { padding-bottom: 56px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-toolbar { padding-inline: 20px; }
  #project-content { padding: 24px 20px; }
  .project-context { grid-template-columns: 1fr; gap: 24px; }
  .modal-details { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .slot-placeholder .mono, .slot-placeholder small { font-size: 12px; }
  .dialog-navigation { padding: 12px 20px; gap: 8px; }
  .dialog-navigation button { font-size: 11px; text-align: left; }
  .dialog-navigation button:last-child { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .button:hover, .project-card:hover { transform: none; }
}
