:root {
    color-scheme: light;
    --canvas: #f8f9fc;
    --surface: #fff;
    --ink: #22282f;
    --muted: #525f73;
    --line: #dfe5ee;
    --accent: #0064fd;
    --accent-hover: #0349d2;
    --accent-soft: #eaf1ff;
    --heading: "Geist", "Segoe UI", sans-serif;
    --body: "DM Sans", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font: 16px/1.55 var(--body); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 700 1rem/1.13 var(--heading); letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 5.5vw, 4.75rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.95rem, 3.65vw, 3.35rem); letter-spacing: -.055em; }
h3 { font-size: 1.28rem; }
.icon { inline-size: 1.1em; block-size: 1.1em; flex: none; vertical-align: -.15em; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.muted, .prose, .page-lead { color: var(--muted); }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .6rem 1rem; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: 151px; flex: 0 0 auto; align-items: center; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.main-nav a { position: relative; color: #485366; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); }
.main-nav a[aria-current]::after { position: absolute; bottom: -9px; left: 50%; width: 4px; height: 4px; border-radius: 100%; background: var(--accent); content: ""; }
.button { display: inline-flex; width: fit-content; min-height: 51px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 750; line-height: 1.2; white-space: normal; text-align: center; transition: border-color .16s, background .16s, color .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 41px; padding-inline: 14px; font-size: .85rem; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 5px 15px #0064fd29; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { color: var(--ink); background: var(--surface); border-color: #d7dfeb; }
.button-outline:hover { color: var(--accent); border-color: #a0bfff; background: #f5f8ff; }
.button-danger { color: #a41f33; background: #fff5f5; border-color: #f1ccd2; }
.button-danger:hover { background: #fde5e9; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--accent-hover); font-size: .92rem; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font: 600 .72rem/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; overflow-wrap: anywhere; }
.section-label { display: flex; align-items: center; gap: 9px; color: var(--accent-hover); margin-bottom: 11px; }
.section-label span { display: inline-block; width: 19px; height: 1px; flex: none; background: #3d78ef; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border: 1px solid #e4e9f2; border-radius: 5px; background: #f5f7fb; color: #4c5b72; font-size: .71rem; line-height: 1.4; font-weight: 700; }
.badge-green { color: #176047; background: #edfaf4; border-color: #cfeedd; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { padding: 5px 8px; border: 1px solid #e1e7f0; border-radius: 5px; color: #3c4a60; background: #f7f9fc; font: 500 .69rem/1.3 var(--mono); overflow-wrap: anywhere; max-width: 100%; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(30px, 5.4vw, 78px); padding-block: 60px 67px; }
.hero-copy { min-width: 0; }
.hero-role { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; color: var(--accent-hover); background: #eaf1ff; border: 1px solid #d9e6ff; border-radius: 5px; margin-block: 0 23px; letter-spacing: .065em; }
.accent-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.65rem, 5.4vw, 5.15rem); line-height: 1.01; }
.hero h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 490px; margin-block: 23px 27px; color: var(--muted); font-size: 1.105rem; line-height: 1.65; overflow-wrap: anywhere; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #1caa6e; box-shadow: 0 0 0 3px #1caa6e17; }
.hero-art { position: relative; isolation: isolate; height: clamp(325px, 31.1vw, 430px); overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse at 60% 52%, #152d60 0%, #0d1b37 39%, #091222 78%); border: 1px solid #243454; box-shadow: 0 18px 42px #0c215520; }
.hero-art::before { position: absolute; z-index: -1; content: ""; inset: 46px 0 44px; background: linear-gradient(#7ca7fa17 1px, transparent 1px), linear-gradient(90deg, #7ca7fa17 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse, #000 24%, #0008 66%, transparent 99%); }
.art-top, .art-bottom { position: absolute; display: flex; align-items: center; justify-content: space-between; left: 0; right: 0; padding: 0 18px; color: #9fb3d3; font: 500 .67rem/1 var(--mono); letter-spacing: .04em; background: #0a1426a6; }
.art-top { top: 0; height: 44px; border-bottom: 1px solid #90a9d329; }
.art-top > span:first-child { display: flex; gap: 5px; width: 38px; }
.art-top i, .mock-top i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #4f6387; }
.art-code { color: #71a6ff; text-align: right; width: 38px; }
.art-bottom { bottom: 0; height: 42px; border-top: 1px solid #90a9d329; }
.art-bottom span { display: flex; align-items: center; gap: 7px; }
.art-bottom i, .art-tag b { width: 5px; height: 5px; border-radius: 50%; background: #60a5ff; box-shadow: 0 0 11px #459eff; }
.art-bottom b { color: #79aeff; font-size: .9rem; }
.art-module, .art-orbit, .art-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-glow { width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(#2864e548, transparent 68%); }
.art-module { display: grid; place-items: center; width: 169px; aspect-ratio: 1; border: 1px solid #5e8aff63; border-radius: 26px; background: linear-gradient(135deg, #436bb439, #112a6129); box-shadow: inset 0 0 25px #4c82ff1f, 0 0 45px #3577f74d; }
.art-logo { display: grid; place-items: center; padding: 17px; width: 127px; aspect-ratio: 1; border-radius: 21px; background: linear-gradient(145deg, #fff, #e8effe); box-shadow: 0 12px 30px #02091f75, 0 0 28px #417eff50; }
.art-logo img { width: 100%; }
.art-orbit { width: 230px; aspect-ratio: 1; border: 1px solid #4074d84d; border-radius: 50%; }
.art-orbit::after { position: absolute; content: ""; inset: 0; background: radial-gradient(circle at 50% 0, #8cb7ff 1.5px, transparent 3px), radial-gradient(circle at 100% 50%, #3f81f7 1.5px, transparent 3px), radial-gradient(circle at 0 50%, #3f81f7 1.5px, transparent 3px); border-radius: 50%; }
.orbit-two { width: 283px; border-style: dashed; border-color: #3b66a65e; }
.art-corner { position: absolute; width: 14px; height: 14px; border: 0 solid #75a5ff; }
.art-corner:nth-child(1) { top: -4px; left: -4px; border-top-width: 1px; border-left-width: 1px; border-radius: 5px 0 0; }
.art-corner:nth-child(2) { top: -4px; right: -4px; border-top-width: 1px; border-right-width: 1px; border-radius: 0 5px 0 0; }
.art-corner:nth-child(3) { bottom: -4px; left: -4px; border-bottom-width: 1px; border-left-width: 1px; border-radius: 0 0 0 5px; }
.art-corner:nth-child(4) { bottom: -4px; right: -4px; border-bottom-width: 1px; border-right-width: 1px; border-radius: 0 0 5px 0; }
.art-cross { position: absolute; width: 13px; height: 13px; background: linear-gradient(#5784c488, #5784c488) center / 100% 1px no-repeat, linear-gradient(#5784c488, #5784c488) center / 1px 100% no-repeat; }
.cross-one { top: 30%; left: 14%; }
.cross-two { bottom: 28%; right: 15%; }
.art-tag { position: absolute; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #4a6fab88; border-radius: 5px; background: #112342ee; color: #b7d4ff; font: 500 .62rem var(--mono); letter-spacing: .045em; }
.tag-one { top: 30%; right: 9%; }
.tag-two { bottom: 24%; left: 8%; }

.section { padding-block: 49px 55px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }
.section-heading > .text-link { margin-bottom: 3px; flex: none; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 4px 12px #17294406; transition: border-color .18s, box-shadow .18s, transform .18s; }
.project-card:hover, .project-card:focus-within { border-color: #a6c1fa; box-shadow: 0 12px 26px #12295611; }
.project-card:hover { transform: translateY(-3px); }
.card-media-link { display: block; }
.project-visual { position: relative; display: grid; place-items: center; min-height: 155px; aspect-ratio: 1.95; overflow: hidden; background: radial-gradient(ellipse at 50% 25%, #e1edff, #c5d8ff); }
.project-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visual-api { background: radial-gradient(ellipse at 58% 12%, #374a80, #202b53 72%); color: #d7e6ff; }
.visual-terminal { background: radial-gradient(ellipse at 55% 16%, #244a50, #143438 73%); color: #d9f8eb; }
.visual-generic { background: radial-gradient(ellipse at 54% 15%, #cfe1ff, #e8efff 75%); }
.mock-window { width: 78%; overflow: hidden; border: 1px solid #a7c3f4; border-radius: 8px; background: #fcfdff; box-shadow: 0 12px 28px #3456822c; font-family: var(--mono); }
.mock-top { height: 22px; display: flex; align-items: center; gap: 8px; padding-inline: 8px; font-size: .51rem; color: #415472; background: #eef4ff; border-bottom: 1px solid #dbe6fb; }
.mock-top > span:first-child { display: flex; gap: 3px; }
.mock-top i { background: #9eb7df; width: 4px; height: 4px; }
.mock-dashboard { display: flex; min-height: 96px; }
.mock-sidebar { width: 18%; display: grid; place-content: start center; justify-items: center; gap: 7px; padding-top: 12px; border-right: 1px solid #e5edf9; background: #f3f7ff; }
.mock-sidebar i { display: block; height: 4px; width: 20px; border-radius: 2px; background: #c6d7f5; }
.mock-sidebar i:first-child { background: #377efe; }
.mock-report { display: grid; gap: 7px; flex: 1; padding: 8px 8px 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-kpis div { border: 1px solid #e5ecf8; border-radius: 3px; padding: 4px 5px; font: 600 .59rem var(--mono); color: #213150; }
.mock-kpis i { display: block; width: 65%; height: 3px; border-radius: 3px; background: #c4d6f3; margin-bottom: 3px; }
.mock-chart { display: flex; align-items: end; justify-content: space-evenly; gap: 4px; height: 37px; padding: 0 3px; background: repeating-linear-gradient(to top, #eaf1fb 0 1px, transparent 1px 11px); }
.mock-chart i { display: block; width: 8%; height: var(--bar); border-radius: 2px 2px 0 0; background: linear-gradient(#4c8dfe, #a5c6ff); }
.visual-api .mock-window, .visual-terminal .mock-window { border-color: #9fb9e344; background: #101b37; }
.visual-api .mock-top, .visual-terminal .mock-top { background: #1d2a49; color: #afc0de; border-color: #637aab44; }
.visual-api .mock-top i, .visual-terminal .mock-top i { background: #5c719a; }
.mock-api { padding: 8px 9px 6px; font-size: .59rem; }
.mock-api > div { display: flex; align-items: center; gap: 6px; }
.mock-api b { color: #89b6ff; background: #2668c84d; border-radius: 3px; padding: 1px 4px; }
.mock-api span { color: #9decd4; margin-left: auto; }
.mock-api pre { font: 400 .59rem/1.32 var(--mono); margin: 7px 0 0; padding: 5px 7px; border-radius: 4px; background: #091328; }
.mock-api em { font-style: normal; color: #b7aafe; }
.mock-api strong { font-weight: 400; color: #a1e0d0; }
.visual-terminal .mock-window { background: #0c2427; border-color: #89b6b150; }
.visual-terminal .mock-top { background: #173538; border-color: #729ca24d; color: #badad6; }
.visual-terminal .mock-top i { background: #608e92; }
.mock-terminal { padding: 9px 12px; font-size: .62rem; line-height: 1.48; }
.mock-terminal b { color: #83e7b3; }
.term-muted { color: #a3bcb6; }
.term-cursor { display: inline-block; width: 5px; height: 8px; background: #83e7b3; vertical-align: -.05em; }
.mock-generic { height: 94px; display: grid; place-items: center; color: #397bdf; }
.mock-generic svg { width: 43px; height: 43px; stroke-width: 1.25; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 17px 19px 20px; }
.card-label { display: flex; align-items: center; gap: 7px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 9px; }
.card-label .eyebrow { color: var(--accent-hover); font-size: .64rem; }
.card-content h3 a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-content h3 a:hover { color: var(--accent-hover); }
.card-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line); color: #345173; flex: none; font-size: .83rem; }
.card-content > p { color: var(--muted); font-size: .89rem; margin-block: 9px 15px; overflow-wrap: anywhere; }
.card-content .tags { margin-top: auto; }

.about-section { display: grid; grid-template-columns: 1fr 1.55fr; gap: 30px; }
.about-section h3 { font-size: 1.65rem; margin-bottom: 10px; }
.about-section .prose { max-width: 670px; }
.about-section .tags, .about-section .text-link { margin-top: 16px; }
.demo-note { font-size: .82rem; margin-top: 10px; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 55px; padding: clamp(22px, 4.1vw, 45px); border: 1px solid #d8e5fc; border-radius: 15px; background: linear-gradient(110deg, #eef4ff, #f7f9ff); }
.contact-section p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.footer-inner .brand { width: 113px; }
.footer-inner > a:last-child { font-size: .83rem; font-weight: 700; }
.footer-inner > a:last-child:hover { color: var(--accent); }

.inner-page { padding-block: clamp(40px, 6vw, 82px) 72px; }
.page-lead { max-width: 700px; margin: 13px 0 23px; font-size: 1.08rem; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 25px; }
.filter { padding: 7px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.filter:hover, .filter[aria-current] { color: var(--accent-hover); background: var(--accent-soft); border-color: #c6d8ff; }
.empty-state { padding: 22px; border: 1px dashed #c9d4e4; border-radius: 10px; background: #f4f7fc; color: var(--muted); }
.back-link { margin-bottom: 18px; }
.detail-links { margin-bottom: 24px; }
.detail-links:empty { display: none; }
.project-detail .project-visual { max-height: 450px; border-radius: 14px; border: 1px solid var(--line); }
.project-detail .project-cover { object-fit: contain; background: #eef2fa; }
.project-detail .mock-window { width: min(72%, 550px); }
.project-detail .mock-top { height: 35px; font-size: .75rem; padding-inline: 14px; }
.project-detail .mock-dashboard { min-height: clamp(105px, 20vw, 225px); }
.project-detail .mock-report { padding: 13px 15px 0; }
.project-detail .mock-kpis div { font-size: 1rem; }
.project-detail .mock-chart { height: 80%; }
.project-detail .mock-api, .project-detail .mock-terminal { padding: 15px; font-size: .87rem; }
.project-detail .mock-api pre { font-size: .8rem; }
.detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; margin-top: 31px; }
.detail-body h2, .resume-page h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.detail-body h2, .detail-body h3 { margin-bottom: 11px; }
.detail-body .badge, .resume-intro .badge { margin-bottom: 9px; }
.resume-page { max-width: 930px; }
.resume-head { align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.resume-head .page-lead { margin-bottom: 0; }
.resume-location { display: flex; align-items: center; gap: 5px; }
.resume-intro { margin-bottom: 25px; }
.resume-intro h2, .resume-group h2 { margin-bottom: 13px; }
.resume-intro .badge { margin-top: 12px; }
.resume-group { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 23px; }
.timeline, .skill-list { display: grid; gap: 11px; }
.skill-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.resume-item { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 9px; padding: 17px; border: 1px solid var(--line); border-left: 3px solid #9bbdfc; border-radius: 9px; background: white; }
.resume-item > .prose { width: 100%; }
.resume-item h3 { font-size: 1.1rem; }
.resume-item .muted { margin-top: 4px; font-size: .87rem; overflow-wrap: anywhere; }

.admin-page { padding-block: 40px 65px; }
.admin-page h1 { font-size: clamp(2rem, 4vw, 3.55rem); }
.admin-page h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.admin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.admin-tile { display: flex; flex-direction: column; align-items: start; gap: 10px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-tile:hover { border-color: #9cbaef; }
.admin-tile p { color: var(--muted); font-size: .9rem; }
.admin-tile .text-link { margin-top: auto; }
.tile-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-hover); font-size: 1.15rem; }
.notice { padding: 12px 15px; margin-bottom: 16px; border-radius: 8px; border: 1px solid #bfebd7; background: #eefbf5; color: #166149; }
.setup-note { border-color: #d6e3ff; background: var(--accent-soft); color: #24467b; }
.form-page { max-width: 840px; }
.login-page { max-width: 465px; }
.login-page h1 { font-size: 2.05rem; margin-bottom: 10px; }
.login-page .form-stack, .login-page .empty-state { margin-top: 20px; }
.form-card { padding: clamp(17px, 3vw, 28px); border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 6px 19px #111f3d07; }
.form-stack { display: grid; align-items: start; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; min-width: 0; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label, .check { color: var(--ink); font-size: .9rem; font-weight: 750; }
.field small { color: var(--muted); font-size: .81rem; }
.field input, .field textarea, .field select { width: 100%; padding: 9px 10px; min-height: 42px; color: var(--ink); background: #fbfcfe; border: 1px solid #cbd5e4; border-radius: 7px; }
.field textarea { resize: vertical; }
.field input::file-selector-button { border: 0; padding: 4px 8px; margin-right: 8px; color: #0848c7; background: var(--accent-soft); border-radius: 4px; font: inherit; cursor: pointer; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.check { display: flex; align-items: center; gap: 7px; width: fit-content; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.validation-summary-valid, .field-validation-valid { display: none; }
.validation-summary-errors { padding: 10px 13px; border: 1px solid #f4c6cf; border-radius: 7px; background: #fff3f5; color: #a41f33; }
.validation ul { margin: 0; padding-left: 18px; }
.input-validation-error { border-color: #c52e47 !important; }
.field-validation-error { color: #a41f33; font-size: .85rem; }
.delete-form { margin-top: 17px; text-align: right; }
.record-list { display: grid; gap: 8px; }
.record { display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 13px 16px; }
.record h2, .record h3 { font-size: 1.1rem; }
.record h2 a:hover, .record h3 a:hover { color: var(--accent); }
.record p { color: var(--muted); font-size: .84rem; margin-top: 4px; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.record-heading { margin-block: 24px 11px; }
.pdf-card { display: grid; gap: 12px; }
.pdf-card h2 { margin-bottom: 5px; }
.file-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.file-form .field { flex: 1 1 235px; max-width: 410px; }
.file-form .button { min-height: 43px; }

@media (max-width: 1020px) {
    .container { width: calc(100% - 64px); }
    .hero { gap: 28px; }
    .art-tag { padding: 6px 8px; }
    .tag-one { right: 6%; }
    .tag-two { left: 7%; }
    .card-content { padding-inline: 14px; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 38px); }
    .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-block: 12px 9px; }
    .header-inner .brand { width: 127px; }
    .main-nav { order: 3; width: 100%; gap: 10px 17px; justify-content: space-between; margin-top: 12px; padding-bottom: 3px; flex-wrap: wrap; }
    .main-nav a { font-size: .84rem; }
    .main-nav a[aria-current]::after { bottom: -5px; }
    .header-inner .button { min-height: 34px; }
    .hero { grid-template-columns: 1fr; padding-block: 37px 41px; gap: 26px; }
    .hero h1 { font-size: clamp(2.75rem, 9.3vw, 4.85rem); }
    .hero-description { margin-block: 14px 19px; }
    .hero-role { margin-bottom: 15px; }
    .hero-art { height: clamp(270px, 64vw, 366px); }
    .section { padding-block: 31px 37px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .contact-section, .section-heading { align-items: start; }
    .contact-section { flex-direction: column; }
    .about-section { grid-template-columns: 1fr; gap: 13px; }
    .admin-tiles { grid-template-columns: 1fr; gap: 9px; }
    .detail-body { grid-template-columns: 1fr; gap: 21px; }
}
@media (max-width: 490px) {
    .container { width: calc(100% - 30px); }
    .button { min-height: 45px; padding-inline: 13px; }
    .button-small { min-height: 37px; }
    .actions { gap: 7px; }
    .section-heading { flex-wrap: wrap; gap: 10px; }
    .project-grid, .form-grid { grid-template-columns: 1fr; }
    .project-visual { aspect-ratio: 1.85; }
    .art-module { width: 135px; border-radius: 20px; }
    .art-logo { width: 100px; padding: 13px; border-radius: 16px; }
    .art-orbit { width: 173px; }
    .orbit-two { width: 211px; }
    .art-top { height: 35px; }
    .art-bottom { height: 35px; }
    .art-tag { font-size: .51rem; padding: 4px 6px; }
    .record { align-items: start; flex-wrap: wrap; }
    .record-actions { justify-content: flex-start; }
    .footer-inner { min-height: 69px; gap: 8px; }
    .footer-inner .brand { width: 86px; }
    .footer-inner small { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
