:root {
  --canvas-mist: #e3e9ec;
  --canvas-jade: #d1e4dc;
  --paper: #f8fafb;
  --ink: #1b2a2f;
  --gutter: clamp(22px, 4.4vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --layer-header: 10;
  --layer-drawer: 9;
  --layer-modal: 30;
  --layer-toast: 40;
}

body::before { display: none; }
body { isolation: isolate; }
html { scroll-padding-top: 110px; scrollbar-gutter: stable; }
main, .site-footer { position: relative; z-index: 1; }
.dot-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
section { scroll-margin-top: 108px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: translateY(1px); }
::selection { background: var(--accent-primary); color: var(--paper); }
.section-container, .header-container, .hero-grid-container { padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: var(--accent-primary); color: var(--paper); border-radius: 8px; z-index: var(--layer-toast); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 11; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent-primary); transform: scaleX(0); transform-origin: left; }
.mono-accent { font-size: .72rem; color: var(--accent-primary); letter-spacing: .08em; }
.section-title { font-size: clamp(2.7rem, 4.5vw, 4.1rem); line-height: 1.04; font-weight: 600; letter-spacing: -.065em; text-wrap: balance; }
.muted-heading { color: var(--text-muted); }
.section-desc { font-size: 1rem; max-width: 350px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: .94rem; font-weight: 600; }
.text-link span { font-size: 1.4rem; transition: transform 220ms var(--ease-out); }
.text-link:hover { color: var(--accent-primary); }
.text-link:hover span { transform: translate(3px, -3px); }
.btn { border-radius: 9px; font-family: var(--font-body); font-size: .92rem; font-weight: 600; padding: 17px 24px; gap: 24px; min-height: 52px; will-change: auto; }
.btn-primary { box-shadow: none; color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: none; transform: translateY(-2px); }
.btn-primary .btn-icon { transition: transform 220ms var(--ease-out); }
.btn-primary:hover .btn-icon { transform: translateY(3px); }

.site-header { height: 88px; z-index: var(--layer-header); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; transition: border-color 220ms; }
.site-header.scrolled { border-bottom-color: var(--border-hairline); }
.brand-logo { font-family: var(--font-body); font-size: 1.22rem; gap: 11px; letter-spacing: -.065em; }
.brand-mark { color: var(--accent-primary); flex-shrink: 0; }
.logo-light { font-weight: 500; }
.logo-dot { color: var(--accent-primary); }
.main-nav { gap: 25px; }
.nav-item { font-size: .84rem; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.nav-item.active::after { bottom: 4px; height: 2px; left: 2px; width: calc(100% - 4px); }
.header-actions { gap: 16px; }
.header-github { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background 220ms, color 220ms; }
.header-github:hover { background: var(--accent-subtle); color: var(--accent-primary); }
.btn-header-cta { min-height: 44px; padding: 10px 17px; border-radius: 8px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; background: transparent; }
.btn-header-cta:hover { background: var(--accent-subtle); }
.mobile-menu-toggle { width: 44px; height: 44px; border-radius: 8px; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-drawer { top: 88px; z-index: var(--layer-drawer); visibility: hidden; padding: 20px var(--gutter) 28px; background: var(--bg-base); box-shadow: 0 20px 30px rgba(27, 42, 47, .08); }
.mobile-drawer.open { visibility: visible; }
.drawer-nav { gap: 5px; }
.drawer-link { font-size: 1.2rem; min-height: 48px; font-weight: 500; }
.drawer-cta { margin-top: 16px; border-radius: 8px; }

.hero-section { min-height: 780px; padding: 172px 0 32px; display: block; overflow: clip; }
.hero-backdrop-glow { display: none; }
.hero-grid-container { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero-main-column { position: relative; z-index: 2; }
.hero-eyebrow { font-size: .79rem; font-weight: 500; color: var(--text-secondary); display: flex; align-items: center; gap: 9px; margin-bottom: 31px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 0 4px var(--accent-subtle); }
.hero-title { font-size: clamp(3.8rem, 7.45vw, 7rem); line-height: .99; font-weight: 600; letter-spacing: -.075em; margin-bottom: 29px; }
.title-line { display: block; }
.title-period { color: var(--accent-primary); }
.hero-title .highlight-text { color: var(--accent-primary); }
.hero-subtitle { font-size: 1.02rem; max-width: 400px; line-height: 1.75; margin-bottom: 30px; text-wrap: pretty; }
.hero-action-row { gap: 26px; flex-wrap: wrap; }
.hero-footnote { margin-top: 39px; font-size: .73rem; color: var(--text-muted); letter-spacing: .015em; }
.hero-side-column { gap: 0; min-width: 0; position: relative; padding-top: 30px; }
.mode-switch { display: flex; position: absolute; top: 0; left: 28px; gap: 4px; background: var(--paper); padding: 5px; border-radius: 10px; z-index: 3; box-shadow: 0 4px 12px rgba(27, 42, 47, .06); }
.mode-button { min-height: 40px; min-width: 84px; padding: 9px 18px; font-size: .78rem; font-weight: 600; border-radius: 6px; color: var(--text-secondary); transition: background 220ms, color 220ms; }
.mode-button.active { background: var(--accent-primary); color: var(--paper); }
.mode-button:not(.active):hover { background: var(--accent-subtle); color: var(--accent-primary); }
.creative-stage { position: relative; aspect-ratio: 1.12; border-radius: 18px; perspective: 900px; }
.stage-panel { position: absolute; inset: 0; background: var(--canvas-jade); border-radius: inherit; isolation: isolate; overflow: hidden; }
.stage-panel[hidden] { display: none; }
.stage-design { background: #d4e4dd; }
.stage-label { position: absolute; top: 44px; left: 29px; font-family: var(--font-mono); font-size: .63rem; letter-spacing: .01em; color: var(--accent-dark); z-index: 2; }
.stage-image { position: absolute; object-fit: cover; box-shadow: 0 20px 40px rgba(27, 42, 47, .17); border-radius: 6px; }
.stage-drone { width: 82%; height: auto; top: 23%; left: -4%; transform: rotate(-7deg); }
.stage-buds { width: 32%; height: auto; right: 5%; top: 36%; transform: rotate(8deg); }
.stage-flower { position: absolute; width: 26%; right: 6%; top: 12%; color: var(--accent-primary); transform: rotate(12deg); }
.stage-caption { position: absolute; bottom: 25px; left: 29px; right: 29px; display: flex; align-items: center; justify-content: space-between; font-size: .71rem; font-weight: 500; color: var(--accent-dark); }
.stage-caption span { font-size: 1.4rem; }
.stage-hint { font-family: var(--font-mono); font-size: .61rem; color: var(--text-muted); margin-top: 14px; text-align: right; }
.stage-hint span { margin-right: 6px; }
.stage-code { background: #d6e1e8; }
.stage-code .stage-label { color: var(--ink); }
.stage-zabor { position: absolute; width: 94%; top: 24%; left: 9%; border: 6px solid var(--ink); border-radius: 9px; transform: rotate(-5deg); box-shadow: 0 18px 38px rgba(27, 42, 47, .17); }
.code-note { position: absolute; bottom: 6%; left: 5%; padding: 17px 22px; background: #20383a; color: #dbeae7; border-radius: 9px; box-shadow: 0 15px 30px rgba(27, 42, 47, .15); min-width: 60%; transform: rotate(3deg); }
.code-note-label { font-family: var(--font-mono); font-size: .55rem; color: #bacfcb; display: block; margin-bottom: 11px; }
.code-note pre { font-family: var(--font-mono); font-size: clamp(.61rem, .85vw, .76rem); line-height: 1.65; }
.code-keyword { color: #95d7c5; }
.code-string { color: #ebcea5; }
.hero-bottom { margin-top: 65px; display: flex; justify-content: space-between; align-items: center; font-size: .67rem; color: var(--text-muted); }
.hero-bottom a { min-height: 44px; display: inline-flex; gap: 18px; align-items: center; }
.hero-bottom a:hover { color: var(--accent-primary); }

.projects-section { padding: 90px 0 104px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 47px; }
.section-heading .mono-accent { display: block; margin-bottom: 18px; }
.heading-aside { max-width: 330px; font-size: .91rem; color: var(--text-secondary); }
.heading-aside p { line-height: 1.8; margin-bottom: 11px; }
.heading-aside .text-link { font-size: .81rem; color: var(--accent-primary); }
.project-feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.project-feature { min-width: 0; display: block; }
.project-visual { position: relative; height: clamp(260px, 29vw, 390px); overflow: hidden; border-radius: 14px; }
.visual-label { position: absolute; left: 24px; top: 22px; z-index: 2; font-family: var(--font-mono); font-size: .6rem; color: var(--accent-dark); }
.zabor-visual { background: #d3e3dc; }
.zabor-visual img { position: absolute; width: 89%; top: 22%; left: 13%; border: 5px solid var(--ink); border-radius: 8px; transform: rotate(-5deg); box-shadow: 0 20px 40px rgba(27, 42, 47, .17); transition: transform 600ms var(--ease-out); }
.project-zabor:hover .zabor-visual img { transform: rotate(-2deg) translateY(-6px); }
.kintler-visual { background: #dce5eb; display: flex; align-items: center; justify-content: center; }
.network-diagram { width: 92%; height: 85%; color: #35575d; margin-top: 30px; transition: transform 500ms var(--ease-out); }
.network-node { fill: #edf2f4; stroke: #35575d; stroke-width: 1.5; }
.network-node path { fill: none; }
.project-kintler:hover .network-diagram { transform: scale(1.035); }
.project-feature-info { padding: 23px 0 28px; display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; }
.project-kicker { font-family: var(--font-mono); font-size: .62rem; color: var(--text-muted); margin-bottom: 8px; }
.project-feature-info h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.05em; font-size: 1.8rem; line-height: 1.2; margin-bottom: 9px; }
.project-feature-info p { font-size: .85rem; color: var(--text-secondary); max-width: 460px; line-height: 1.7; text-wrap: pretty; }
.project-arrow { width: 43px; height: 43px; border-radius: 50%; border: 1px solid var(--border-hairline); display: grid; place-items: center; flex-shrink: 0; font-size: 1.35rem; margin-top: 9px; transition: background 220ms, color 220ms, transform 220ms; }
.project-feature:hover .project-arrow { background: var(--accent-primary); color: var(--paper); transform: rotate(6deg); border-color: transparent; }
.repo-list { margin-top: 24px; border-top: 1px solid var(--border-hairline); }
.repo-row { display: grid; grid-template-columns: 58px 1fr auto 36px; align-items: center; gap: 23px; padding: 26px 8px; border-bottom: 1px solid var(--border-hairline); transition: background 220ms; }
.repo-row:hover { background: var(--accent-subtle); }
.repo-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--canvas-mist); color: var(--accent-primary); }
.repo-symbol svg { width: 29px; height: 29px; }
.repo-description h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.04em; margin-bottom: 5px; }
.repo-description p { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; }
.repo-tag { font-family: var(--font-mono); font-size: .61rem; color: var(--text-muted); }
.repo-arrow { font-size: 1.4rem; transition: transform 220ms; }
.repo-row:hover .repo-arrow { transform: translate(3px, -3px); color: var(--accent-primary); }
.github-source-note { margin-top: 19px; font-family: var(--font-mono); font-size: .59rem; color: var(--text-muted); }

.about-section { padding: 85px 0 72px; background: var(--canvas-mist); border: none; }
.about-card-container { max-width: none; padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none; box-shadow: none; text-align: left; display: grid; grid-template-columns: 1fr 1.15fr; gap: 38px 75px; }
.about-header-row { align-items: flex-start; gap: 15px; margin-bottom: 0; }
.about-headline { font-size: clamp(2.3rem, 3.7vw, 3.4rem); line-height: 1.08; font-weight: 600; letter-spacing: -.065em; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .73rem; color: var(--text-secondary); margin-top: 8px; }
.about-main-text { font-size: 1rem; line-height: 1.85; max-width: 560px; margin: 39px 0 0; color: var(--text-secondary); text-wrap: pretty; }
.skills-highlight-grid { grid-column: 1 / -1; gap: 24px; margin-top: 13px; }
.skill-tile { flex-direction: row; padding: 24px 0 0; border: 0; border-top: 1px solid var(--border-hairline); border-radius: 0; gap: 12px; background: none; justify-content: flex-start; align-items: flex-start; }
.skill-tile:hover { transform: none; background: none; }
.skill-tile-icon { background: none; width: 27px; height: 34px; }
.skill-tile-icon svg { width: 23px; height: 23px; stroke-width: 1.5; }
.skill-tile-content { align-items: flex-start; gap: 6px; }
.skill-tile-tag { font-size: .57rem; color: var(--text-muted); }
.skill-tile-name { font-family: var(--font-body); font-size: .76rem; font-weight: 600; text-align: left; line-height: 1.5; letter-spacing: -.02em; }

.portfolio-section { padding: 108px 0 110px; }
.portfolio-header-block { margin-bottom: 42px; }
.portfolio-header-left { gap: 18px; }
.filters-bar { gap: 7px; margin-bottom: 38px; padding: 5px; border: 1px solid var(--border-hairline); border-radius: 10px; width: fit-content; }
.filter-btn { background: transparent; border: 0; border-radius: 6px; padding: 11px 16px; font-size: .77rem; font-weight: 500; gap: 10px; min-height: 44px; }
.filter-btn:hover { background: var(--accent-subtle); }
.filter-btn.active { background: var(--accent-primary); color: var(--paper); box-shadow: none; font-weight: 500; }
.filter-count { background: none; border-radius: 0; padding: 0; font-size: .61rem; color: var(--text-muted); }
.filter-btn.active .filter-count { background: none; color: var(--paper); opacity: .8; }
.gallery-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 26px; }
.gallery-card { grid-column: span 6; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; will-change: auto; transition: transform 350ms var(--ease-out); }
.gallery-card:hover { transform: translateY(-4px); box-shadow: none; }
.gallery-card:focus-visible { outline-offset: 7px; border-radius: 12px; }
.card-media { border-radius: 12px; background: var(--canvas-mist); }
.card-img { object-fit: contain; }
.format-standard .card-media { aspect-ratio: 1.6; }
.format-product { grid-column: span 3; }
.format-product .card-media { aspect-ratio: 3 / 4; }
.format-preview { grid-column: span 4; }
.format-preview .card-media { aspect-ratio: 16 / 9; }
.format-panorama { grid-column: 1 / -1; }
.format-panorama .card-media { aspect-ratio: 2.2; }
.format-panorama .card-img { object-fit: cover; }
.card-badge { background: rgba(248, 250, 251, .93); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); border: 0; border-radius: 5px; padding: 5px 9px; font-family: var(--font-body); font-weight: 500; font-size: .59rem; top: 13px; left: 13px; }
.card-hover-action { background: rgba(27, 42, 47, .16); backdrop-filter: none; }
.gallery-card:focus-visible .card-hover-action { opacity: 1; }
.zoom-btn { width: 48px; height: 48px; box-shadow: none; color: var(--paper); }
.gallery-card:focus-visible .zoom-btn { transform: scale(1); }
.card-body { border: 0; padding: 17px 1px 0; gap: 6px; background: none; }
.card-meta { font-size: .62rem; gap: 10px; line-height: 1.5; flex-wrap: wrap; }
.card-year { color: var(--text-muted); }
.card-title { font-size: 1.03rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.4; }

.contacts-section { padding: 91px 0 89px; background: var(--canvas-jade); border-top: 0; }
.contact-cta-card { padding: 0; background: none; border: 0; border-radius: 0; text-align: left; box-shadow: none; overflow: visible; }
.cta-glow-bg { display: none; }
.cta-inner { max-width: none; margin: 0; }
.cta-heading { font-size: clamp(3rem, 6.5vw, 6.1rem); font-weight: 600; letter-spacing: -.07em; line-height: 1.03; margin: 23px 0 23px; color: var(--ink); }
.contact-emphasis { color: var(--accent-primary); }
.contact-description { font-size: .93rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 31px; }
.cta-action-group { justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
.contact-copy { min-height: 48px; display: inline-flex; gap: 12px; align-items: center; font-size: .83rem; color: var(--accent-dark); border-bottom: 1px solid var(--accent-border); transition: color 220ms, border-color 220ms; }
.contact-copy:hover { border-color: var(--accent-dark); }
.site-footer { padding: 34px 0; border: 0; }
.footer-container.center-footer { padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 22px; text-align: left; }
.footer-brand { font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: -.06em; color: var(--ink); }
.footer-brand span { color: var(--accent-primary); }
.footer-copy { font-size: .67rem; letter-spacing: 0; }
.footer-links { display: flex; gap: 24px; font-size: .7rem; color: var(--text-secondary); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent-primary); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; padding: 15px 22px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: .84rem; max-width: calc(100vw - 32px); width: max-content; z-index: var(--layer-toast); transition: transform 220ms, opacity 220ms, visibility 220ms; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.modal-lightbox { z-index: var(--layer-modal); visibility: hidden; }
.modal-lightbox.active { visibility: visible; }
.lightbox-overlay { background: rgba(20, 32, 36, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lightbox-dialog { z-index: 1; width: min(1180px, 94vw); max-width: 94vw; max-height: 94dvh; }
.lightbox-content-box { background: #203034; border-color: rgba(248, 250, 251, .12); box-shadow: none; width: 100%; max-height: 84dvh; border-radius: 12px; }
.lightbox-image-stage { width: 100%; max-width: 100%; height: 65dvh; max-height: 65dvh; background: #17262a; }
.lightbox-img { max-height: 65dvh; width: 100%; height: 100%; object-fit: contain; }
.lightbox-title, .lightbox-meta, .lightbox-counter, .lightbox-btn-close, .lightbox-nav-btn { color: var(--paper); }
.lightbox-title { font-size: 1rem; font-weight: 500; }
.lightbox-meta { font-size: .66rem; color: #c4d2d5; }
.lightbox-counter { background: none; padding: 0; font-size: .75rem; }
.lightbox-top-bar { padding-bottom: 12px; }
.lightbox-btn-close { width: 44px; height: 44px; transition: background-color 160ms, color 160ms, border-color 160ms; }
.lightbox-nav-btn { background: #203034; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(248, 250, 251, .2); width: 48px; height: 48px; z-index: 2; transition: background-color 160ms, color 160ms, border-color 160ms, transform 160ms; }
.lightbox-nav-btn.prev { left: 25px; }
.lightbox-nav-btn.next { right: 25px; }
.lightbox-info-bar { padding: 12px 8px 7px; }
body.overlay-open { overflow: hidden; }

@media (min-width: 1700px) {
  .hero-section { min-height: 870px; padding-top: 195px; }
}

@media (max-width: 1100px) {
  .hero-grid-container { grid-template-columns: 1.15fr 1fr; gap: 30px; }
  .hero-title { font-size: clamp(3.6rem, 7.2vw, 5.9rem); }
  .hero-section { min-height: 680px; padding-top: 153px; }
  .hero-action-row { gap: 20px; }
  .hero-subtitle { font-size: .94rem; }
  .main-nav { gap: 17px; }
  .btn-header-cta { padding: 9px 13px; }
  .header-actions { gap: 7px; }
  .header-container { gap: 12px; }
  .project-feature-grid { gap: 24px; }
  .repo-row { grid-template-columns: 50px 1fr auto 24px; gap: 16px; }
  .repo-tag { font-size: .56rem; }
  .about-card-container { gap: 36px; }
  .skills-highlight-grid { gap: 16px; }
  .skill-tile { gap: 8px; }
  .gallery-grid { gap: 27px 20px; }
  .format-product { grid-column: span 6; }
  .format-preview { grid-column: span 6; }
}

@media (max-width: 800px) {
  .site-header { height: 74px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-drawer { display: block; top: 74px; }
  .hero-section { min-height: auto; padding-top: 133px; padding-bottom: 23px; }
  .hero-grid-container { grid-template-columns: 1fr; gap: 45px; }
  .hero-title { font-size: clamp(3.7rem, 11vw, 6.1rem); }
  .hero-subtitle { font-size: 1rem; max-width: 420px; }
  .hero-side-column { width: 100%; max-width: 580px; justify-self: center; }
  .creative-stage { aspect-ratio: 1.28; }
  .hero-footnote { margin-top: 28px; }
  .hero-bottom { margin-top: 24px; }
  .stage-label { font-size: .65rem; }
  .stage-drone { top: 24%; }
  .stage-flower { width: 22%; }
  .code-note pre { font-size: .74rem; }
  .section-heading { align-items: flex-start; gap: 24px; }
  .section-title { font-size: clamp(2.8rem, 6.7vw, 3.6rem); }
  .heading-aside { max-width: 250px; font-size: .8rem; }
  .project-feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-visual { height: auto; aspect-ratio: 1.7; }
  .kintler-visual { aspect-ratio: 1.8; }
  .network-diagram { width: 75%; margin-top: 32px; }
  .repo-row { grid-template-columns: 48px 1fr 24px; padding-block: 23px; }
  .repo-tag { display: none; }
  .about-card-container { grid-template-columns: 1fr; gap: 23px; }
  .about-main-text { margin: 0; max-width: 650px; }
  .skills-highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .about-section { padding-block: 65px; }
  .projects-section, .portfolio-section { padding-block: 73px; }
  .portfolio-header-block { gap: 22px; }
  .filters-bar { flex-wrap: wrap; width: 100%; gap: 3px; }
  .filter-btn { flex: 1 0 auto; justify-content: center; padding-inline: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 17px; }
  .gallery-card, .format-preview, .format-product { grid-column: span 1; }
  .format-panorama { grid-column: 1 / -1; }
  .format-panorama .card-media { aspect-ratio: 1.78; }
  .card-title { font-size: .92rem; }
  .card-meta { font-size: .57rem; }
  .contacts-section { padding-block: 73px; }
  .cta-heading { font-size: clamp(3rem, 7.6vw, 4.6rem); }
  .footer-container.center-footer { flex-wrap: wrap; }
  .footer-copy { text-align: right; }
  .footer-links { width: 100%; justify-content: space-between; gap: 15px; }
}

@media (max-width: 480px) {
  :root { --gutter: 22px; }
  .header-container { gap: 8px; }
  .brand-logo { font-size: 1.03rem; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .header-github { width: 40px; }
  .btn-header-cta { display: none; }
  .header-actions { gap: 5px; }
  .hero-section { padding-top: 121px; }
  .hero-eyebrow { font-size: .67rem; margin-bottom: 24px; }
  .hero-title { font-size: clamp(2.65rem, 11vw, 3.7rem); line-height: 1.02; margin-bottom: 23px; }
  .hero-subtitle { font-size: .91rem; margin-bottom: 24px; }
  .hero-action-row { gap: 19px; }
  .btn { font-size: .78rem; padding: 15px 18px; gap: 17px; }
  .hero-action-row .text-link { font-size: .79rem; gap: 10px; }
  .hero-footnote { font-size: .64rem; }
  .hero-grid-container { gap: 31px; }
  .creative-stage { aspect-ratio: 1.12; }
  .mode-switch { left: 18px; padding: 4px; }
  .mode-button { min-height: 40px; min-width: 76px; padding-inline: 14px; font-size: .73rem; }
  .stage-label { top: 40px; left: 20px; font-size: .55rem; }
  .stage-drone { top: 24%; }
  .stage-buds { top: 35%; }
  .stage-caption { left: 20px; right: 20px; bottom: 15px; font-size: .6rem; }
  .stage-hint { font-size: .53rem; }
  .stage-flower { top: 15%; width: 23%; }
  .code-note { padding: 12px 16px; bottom: 5%; }
  .code-note pre { font-size: .6rem; }
  .code-note-label { font-size: .48rem; margin-bottom: 6px; }
  .hero-bottom { font-size: .54rem; margin-top: 18px; }
  .hero-bottom a { gap: 8px; }
  .section-heading { flex-direction: column; gap: 22px; margin-bottom: 29px; }
  .section-title { font-size: 2.55rem; }
  .section-heading .mono-accent { margin-bottom: 15px; }
  .heading-aside { max-width: none; }
  .heading-aside p { margin-bottom: 2px; }
  .project-feature-grid { gap: 10px; }
  .project-visual { aspect-ratio: 1.4; border-radius: 11px; }
  .visual-label { left: 17px; top: 18px; font-size: .52rem; }
  .zabor-visual img { top: 28%; width: 96%; left: 9%; border-width: 4px; }
  .network-diagram { width: 97%; height: 82%; margin-top: 35px; }
  .project-feature-info { padding-top: 18px; }
  .project-feature-info h3 { font-size: 1.55rem; }
  .project-kicker { font-size: .56rem; }
  .project-feature-info p { font-size: .79rem; }
  .repo-row { grid-template-columns: 38px 1fr 18px; gap: 14px; padding-inline: 0; }
  .repo-symbol { width: 38px; height: 42px; border-radius: 7px; }
  .repo-symbol svg { width: 24px; height: 24px; }
  .repo-description h3 { font-size: 1rem; }
  .repo-description p { font-size: .74rem; }
  .repo-arrow { font-size: 1.2rem; }
  .github-source-note { font-size: .52rem; max-width: 260px; line-height: 1.8; }
  .about-headline { font-size: 2.45rem; }
  .about-main-text { font-size: .92rem; }
  .about-facts { font-size: .68rem; }
  .skills-highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .skill-tile-name { font-size: .7rem; }
  .portfolio-header-block { margin-bottom: 27px; }
  .section-desc { font-size: .85rem; }
  .filters-bar { margin-bottom: 30px; }
  .filter-btn { flex: 1 0 44%; font-size: .7rem; padding: 10px 7px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-card, .format-panorama, .format-product, .format-preview { grid-column: 1; }
  .format-product .card-media { aspect-ratio: 3 / 4; }
  .card-title { font-size: 1rem; }
  .card-meta { font-size: .62rem; }
  .card-badge { font-size: .6rem; }
  .cta-heading { font-size: clamp(2.55rem, 10vw, 3.3rem); }
  .contact-description { font-size: .85rem; }
  .cta-action-group { gap: 14px; }
  .contact-copy { font-size: .77rem; }
  .footer-container.center-footer { flex-direction: column; align-items: flex-start; gap: 9px; }
  .footer-copy { text-align: left; font-size: .65rem; }
  .footer-links { font-size: .66rem; margin-top: 6px; }
  .lightbox-dialog { width: 94vw; }
  .lightbox-content-box { padding: 6px; }
  .lightbox-image-stage { height: 60dvh; }
  .lightbox-nav-btn { width: 44px; height: 44px; top: auto; bottom: 79px; transform: none; }
  .lightbox-nav-btn:hover { transform: none; }
  .lightbox-nav-btn.prev { left: 15px; }
  .lightbox-nav-btn.next { right: 15px; }
  .lightbox-info-bar { padding-block: 16px 10px; }
  .lightbox-title { font-size: .91rem; }
  .lightbox-meta { font-size: .59rem; }
}

.stage-label, .stage-hint, .project-kicker, .visual-label, .repo-tag, .github-source-note, .skill-tile-tag, .card-meta, .filter-count, .hero-footnote, .hero-bottom, .footer-copy, .footer-links { font-size: .75rem; }
.hero-eyebrow { font-size: .79rem; }
.stage-caption { font-size: .75rem; }
.code-note-label { font-size: .63rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .creative-stage, .stage-panel { transform: none !important; }
}
