:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e3d8;
  --ink: #1d241f;
  --muted-ink: #6d756c;
  --acid: #d9ff4a;
  --coral: #ff6848;
  --sky: #b9d7ff;
  --line: #cfcac0;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --radius: 0;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, .btn, .project-link, .gallery-toggle, .gallery-close { touch-action: manipulation; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.55; overflow-x: hidden; }
body::selection { background: var(--acid); color: var(--ink); }
.grain, .star-canvas, .scene, .ground-fade, .scroll-hint { display: none !important; }

nav { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 76px; padding: 1.1rem 4vw; display: flex; align-items: center; justify-content: space-between; background: rgba(29,36,31,.72); border-bottom: 1px solid rgba(243,240,232,.2); box-shadow: 0 12px 30px rgba(29,36,31,.12); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.logo { color: var(--paper); font-size: 1rem; font-weight: 700; letter-spacing: .18em; }
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: clamp(1rem, 2.8vw, 2.8rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { color: #c2c9bf; font-family: var(--mono); font-size: .65rem; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active::after { display: none; }
.menu-toggle { display: none; position: relative; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .28s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero { min-height: 92svh; padding: 9rem 4vw 5rem; display: grid; align-items: end; background: var(--ink); color: var(--paper); }
.hero-content { width: min(1200px, 100%); margin: 0 auto; padding: 0; text-align: left; }
.eyebrow, .cat, .gallery-label { color: var(--coral); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: var(--acid); }
.hero h1 { max-width: 1000px; margin: 1.4rem 0 1rem; color: var(--paper); font-size: clamp(4rem, 12vw, 11.5rem); font-weight: 600; letter-spacing: -.08em; line-height: .83; }
.hero-sub { margin: 1.5rem 0 0; color: var(--acid); font-family: var(--mono); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .02em; text-transform: uppercase; }
.hero-bio { max-width: 600px; margin: 2rem 0 0; color: #c2c9bf; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; }
.hero-actions { margin-top: 2.3rem; justify-content: flex-start; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.2rem; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn.solid { border-color: rgba(217,255,74,.9); background: rgba(217,255,74,.72); color: var(--ink); box-shadow: 0 8px 24px rgba(120,150,20,.12), inset 0 1px 0 rgba(255,255,255,.45); -webkit-backdrop-filter: blur(12px) saturate(125%); backdrop-filter: blur(12px) saturate(125%); }
.btn.solid:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.hero .btn { border-color: var(--paper); color: var(--paper); }
.hero .btn:hover { background: var(--paper); color: var(--ink); }
.hero .btn.solid { border-color: rgba(217,255,74,.9); background: rgba(217,255,74,.78); color: var(--ink); }

section { width: min(1200px, 100%); padding: clamp(3rem, 5vw, 5rem) 4vw; content-visibility: auto; contain-intrinsic-size: auto 720px; }
#work, #experience, #github, #beta-testing, #beyond, #contact { max-width: 1280px; }
.section-head { display: block; margin-bottom: 1.5rem; }
.section-head > .eyebrow, .section-head > p { display: none; }
.section-head .eyebrow { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.section-head h2 { margin: 0; color: var(--ink); font-size: clamp(2.3rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .9; }
.section-head h2 em, .contact-title em { color: var(--coral); font-style: normal; }
#beyond .section-head h2 { white-space: nowrap; }
.section-head p { grid-column: 2; max-width: 480px; margin: 1.2rem 0 0; color: var(--muted-ink); font-size: 1rem; }
.rule { width: 100%; height: 1px; margin-top: 1rem; background: var(--line); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: none; margin: 0; background: var(--paper); align-items: start; }
.project-column { display: grid; gap: 0; align-content: start; min-width: 0; }
.card { grid-column: auto; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: none; transition: background .25s, transform .25s; }
.card:hover { border: 0; background: #faf8f2; box-shadow: none; transform: none; }
.card::before { display: none; }
.project-jared { order: 1; }
.project-localsentinel { order: 2; }
.project-aiscia { order: 3; }
.project-sehtana { order: 4; }
.project-rahatak { order: 5; }
.project-tcam { order: 6; }
.card > .cat, .card > h3, .card > p, .card > .project-link { margin-left: clamp(1.2rem, 2.5vw, 2.5rem); margin-right: clamp(1.2rem, 2.5vw, 2.5rem); }
.card > .cat { display: block; margin-top: 1.5rem; }
.card h3 { margin-top: .7rem; margin-bottom: .6rem; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.card > p { margin-top: 0; color: var(--muted-ink); font-size: .92rem; line-height: 1.55; }
.card .project-link, .timeline-cv { display: inline-flex; margin-top: .5rem; margin-bottom: 2rem; padding-bottom: .25rem; border-bottom: 1px solid var(--ink); color: var(--ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.card .project-link:hover, .timeline-cv:hover { border-color: var(--coral); color: var(--coral); }
.card .project-link + .project-link { margin-left: .8rem; }
.card-fill { height: 58px; margin: 1.4rem clamp(1.2rem, 2.5vw, 2.5rem) 2rem; background: var(--paper); }

.shot { min-height: 270px; margin: 0; padding: clamp(1.2rem, 3vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 24px); border: 0; border-radius: 0; background: var(--paper); }
.project-jared .shot, .project-localsentinel .shot { background: var(--paper); }
.shot img { display: block; }
.device-phone img, .device-browser > img, .device-kiosk img, .term img { height: auto; }
.device-phone { width: clamp(105px, 14vw, 170px); padding: 5px; border: 1px solid rgba(29,36,31,.3); border-radius: 20px; background: var(--ink); box-shadow: none; }
.device-phone img { width: 100%; border-radius: 16px; }
.project-rahatak .device-phone { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.project-rahatak .device-phone img { border-radius: 0; }
.project-rahatak .card-fill { display: none; }
.device-browser { width: min(100%, 470px); overflow: hidden; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); box-shadow: none; }
.db-bar { padding: 8px 10px; background: var(--ink); }
.db-lights { gap: 4px; }
.db-lights i { width: 7px; height: 7px; }
.db-url { height: auto; padding: .2rem .6rem; border-radius: 0; background: #344038; color: var(--acid); font-family: var(--mono); font-size: .55rem; }
.device-browser > img { width: 100%; }
.device-kiosk { width: min(100%, 380px); }
.dk-screen { border-radius: 0; border: 1px solid var(--ink); box-shadow: none; }
.dk-neck, .dk-base { background: var(--ink); }
.term { width: min(100%, 520px); overflow: hidden; border: 1px solid var(--acid); border-radius: 0; background: #101511; box-shadow: none; }
.term-bar { padding: 11px 12px; border-bottom: 1px solid #394539; background: #202a20; }
.term-body { padding: 1.3rem; color: #a8b4a6; font-family: var(--mono); font-size: .68rem; line-height: 2; }
.term-body > div { overflow-wrap: anywhere; }
.term-body .cmd { color: var(--acid); }
.term-body .ok { color: var(--acid); }
.term-body .warn { color: #ffb36b; }
.type-caret { background: var(--coral); }

.achieve-card, .github-calendar, .photo-gallery, .beyond-panel, .contact-panel { max-width: none; padding: 2rem; border: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.achieve-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.achieve-card::before, .photo-gallery::before, .beyond-panel::before, .contact-panel::before { display: none; }
.achieve-badge { width: 56px; height: 56px; border: 1px solid rgba(217,255,74,.95); border-radius: 50%; background: rgba(217,255,74,.68); color: var(--ink); box-shadow: 0 8px 24px rgba(120,150,20,.12), inset 0 1px 0 rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px) saturate(125%); backdrop-filter: blur(10px) saturate(125%); }
.achieve-body h3 { margin: .4rem 0; font-size: 1.4rem; }
.achieve-body p, .beyond p { color: var(--muted-ink); }
.achieve-stat strong { color: var(--ink); font-size: 2rem; }
.achieve-stat span { color: var(--muted-ink); font-family: var(--mono); }

.github-calendar { overflow-x: auto; }
.contribution-grid { display: grid; width: max-content; max-width: 100%; justify-content: start; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 4px; }
.contribution-day { width: 13px; height: 13px; border-radius: 0; background: var(--paper-deep); }
.contribution-day[data-level="1"] { background: #b6c98c; }
.contribution-day[data-level="2"] { background: #8da94d; }
.contribution-day[data-level="3"] { background: #5d7a2c; }
.contribution-day[data-level="4"] { border: 1px solid rgba(217,255,74,.9); background: rgba(217,255,74,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.github-status, .gh-legend { color: var(--muted-ink); font-family: var(--mono); font-size: .68rem; }
.github-status a { color: var(--ink); }

.beta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--paper); }
.beta-card { display: flex; min-height: 110px; align-items: flex-start; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s; }
.beta-card:hover, .beta-card:focus-visible { border-color: rgba(217,255,74,.95); background: rgba(217,255,74,.48); box-shadow: 0 8px 24px rgba(120,150,20,.1), inset 0 1px 0 rgba(255,255,255,.45); -webkit-backdrop-filter: blur(12px) saturate(125%); backdrop-filter: blur(12px) saturate(125%); transform: none; }
.beta-card img { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 0; }
.beta-card div { min-width: 0; display: grid; gap: .2rem; }
.beta-card strong, .beta-card span { display: block; }
.beta-card strong { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.15; }
.beta-card span { color: var(--muted-ink); font-family: var(--mono); font-size: .6rem; letter-spacing: .03em; line-height: 1.4; }
.beta-card span { max-width: 18ch; }

.photo-gallery { padding: 0; border: 0; }
.gallery-label { margin-bottom: 1rem; }
.gallery-mosaic { display: flex; align-items: flex-start; gap: 1px; background: var(--paper); }
.gallery-mosaic figure { min-width: 0; margin: 0; overflow: hidden; background: var(--paper); }
.gallery-photo-1 { flex: 3.66; }
.gallery-sidebar { display: flex; flex: 1; flex-direction: column; gap: 1px; }
.gallery-extra { display: none !important; }
.gallery-mosaic img { display: block; width: 100%; height: auto; transition: filter .25s; }
.gallery-mosaic figure:hover img, .gallery-mosaic figure:focus-visible img { filter: none; transform: none !important; }
.gallery-album { display: none; padding: 1rem 0 0; background: var(--paper); }
.gallery-album.open { display: block; }
.gallery-album-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: none; margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--muted-ink); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.gallery-close { padding: .55rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-transform: uppercase; }
.gallery-close:hover { color: var(--coral); border-color: var(--coral); }
.gallery-more { display: none; width: 100%; max-width: none; margin: 0; padding-bottom: .8rem; align-items: stretch; gap: 1rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--ink) transparent; scrollbar-width: thin; background: var(--paper); }
.gallery-album.open .gallery-more { display: flex; }
.gallery-album.open .gallery-more .gallery-extra { display: flex !important; flex: 0 0 clamp(220px, 28vw, 360px); height: clamp(220px, 30vw, 360px); align-items: center; justify-content: center; margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--paper-deep); }
.gallery-more img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.gallery-toggle:hover { color: var(--coral); border-color: var(--coral); }
.gallery-toggle span { color: var(--coral); font-size: 1rem; line-height: 1; }
.gallery-album.open + .gallery-toggle { display: none; }
.beyond-panel { margin-top: 1px; padding: 2rem 0; border-width: 1px 0 0; }
.beyond-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 6vw, 8rem); }
.beyond-panel p { max-width: none; margin: 0; }
.beyond .note { border-color: var(--coral); }

.contact { text-align: left; }
.contact-panel { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto auto auto auto; gap: 1rem 3rem; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); }
.contact-panel::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 7px; background: rgba(217,255,74,.72); box-shadow: 0 0 18px rgba(217,255,74,.18); }
.contact-panel > * { grid-column: 1; }
.contact-panel > .eyebrow { grid-row: 1; }
.contact-panel > .contact-title { grid-row: 2; }
.contact-panel > .contact-copy { grid-row: 3; }
.contact-panel > .contact-divider { grid-row: 4; }
.contact-panel > .contact-meta { grid-row: 5; }
.contact-side { grid-column: 2; grid-row: 1 / span 5; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.contact-side .profile-cards, .contact-side .contact-actions, .contact-side .contact-form { margin-top: 0; }
.contact-title { margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .9; }
.contact-copy, .contact-meta { color: var(--muted-ink); }
.contact-divider { display: none; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .4rem 1.3rem; margin-top: 1rem; font-family: var(--mono); font-size: .65rem; }
.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: none; }
.profile-card { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 0; background: transparent; }
.contact-panel a, .contact-panel .btn { text-decoration: none; }
.profile-card:hover { border-color: var(--ink); background: var(--acid); box-shadow: none; transform: none; }
.pc-avatar, .pc-li { display: block; width: 58px; height: 58px; border-radius: 0; object-fit: cover; object-position: center top; }
.pc-body strong { font-size: .82rem; }
.pc-body em { color: var(--coral); font-family: var(--mono); font-size: .56rem; }
.pc-body p { margin: .45rem 0 0; color: var(--muted-ink); font-size: .82rem; line-height: 1.4; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-actions .btn { min-width: 0; }
.contact-form { display: grid; gap: .8rem; max-width: none; padding: 1.2rem; border: 1px solid var(--line); background: var(--paper); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.contact-form label { display: grid; gap: .45rem; color: var(--muted-ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { min-height: 50px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); backdrop-filter: none; }
.contact-form textarea { min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--acid); }
.contact-form .btn { width: 100%; }
.form-note, .field-hint { color: var(--muted-ink); }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 1.4rem 5vw; border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .65rem; }
footer, footer a { color: #c2c9bf; }
footer a:hover { color: var(--acid); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer > span:nth-of-type(1) { color: #89938a; }
footer > span:last-child { width: auto !important; margin-top: 0 !important; text-align: right !important; color: #89938a !important; }
.progress { height: 3px; background: var(--coral); }
.to-top { position: fixed; z-index: 120; width: 42px; height: 42px; right: 1.2rem; bottom: 1.2rem; border: 1px solid rgba(217,255,74,.95); border-radius: 50%; background: rgba(217,255,74,.72); color: var(--ink); box-shadow: 0 8px 24px rgba(120,150,20,.14), inset 0 1px 0 rgba(255,255,255,.45); -webkit-backdrop-filter: blur(12px) saturate(125%); backdrop-filter: blur(12px) saturate(125%); }
.to-top { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4vmin; background: rgba(29,36,31,.95); opacity: 0; pointer-events: none; backdrop-filter: none; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 0; transform: none !important; transition: none !important; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(243,240,232,.3); border-radius: 50%; background: var(--acid); color: var(--ink); cursor: pointer; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.skip-link { background: var(--acid); color: var(--ink); border-radius: 0; }

/* Experience timeline */
.timeline { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.role-item { position: relative; display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); padding: clamp(1.4rem, 2.4vw, 2.2rem) 0; border-top: 1px solid var(--line); }
.role-when { display: grid; align-content: start; gap: .35rem; color: var(--ink); font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.role-when .role-place { color: var(--muted-ink); }
.role-main { min-width: 0; max-width: 760px; }
.role-main .cat { display: inline-flex; align-items: center; gap: .6rem; }
.role-now { padding: .2rem .5rem; border: 1px solid rgba(217,255,74,.95); background: rgba(217,255,74,.68); color: var(--ink); font-weight: 500; letter-spacing: .08em; }
.role-main h3 { margin: .55rem 0 .5rem; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.role-main p { margin: 0; color: var(--muted-ink); }
.role-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.role-tags li { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.role-item.is-current::before { content: ""; position: absolute; top: -1px; left: 0; width: min(240px, 30%); height: 2px; background: var(--coral); }
.role-edu h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.timeline-cv { gap: .35rem; margin-top: 1.6rem; }
#experience .section-head .rule { display: none; }

@media (max-width: 820px) {
  nav { min-height: 68px; }
  .nav-links { position: fixed; top: 68px; left: 0; width: 100%; flex-direction: column; align-items: center; gap: 1.2rem; padding: 1.5rem; background: rgba(29,36,31,.96); border-bottom: 1px solid rgba(243,240,232,.2); transform: translateY(-160%); transition: transform .35s ease; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .nav-links.open { transform: none; }
  .menu-toggle { display: flex; width: 28px; height: 20px; padding: 0; border: 0; background: transparent; }
  .menu-toggle span { background: var(--paper); }
  .hero { min-height: auto; padding-top: 9rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 7rem); }
  .section-head { display: block; }
  .card, .project-jared, .project-localsentinel { grid-column: auto; }
  .achieve-card { grid-template-columns: auto 1fr; }
  .achieve-stat { grid-column: 2; text-align: left; }
  .beta-grid { grid-template-columns: repeat(2, 1fr); }
  .shot { min-height: 240px; padding: 1.2rem; }
  .device-browser, .term { width: min(100%, 100%); }
  .contact-panel { gap: 1.5rem; }
  .contact-title { font-size: clamp(2.5rem, 9vw, 4.5rem); }
  .contact-panel { display: block; }
  .contact-panel { padding: 1.4rem; }
  .contact-side { margin-top: 2rem; }
}

@media (min-width: 821px) {
  .hero h1 { max-width: none; font-size: clamp(4.5rem, 10vw, 13rem); white-space: nowrap; background: linear-gradient(108deg, rgba(243,240,232,.98) 0%, rgba(243,240,232,.78) 48%, rgba(243,240,232,.92) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 1px 0 rgba(255,255,255,.16), 0 12px 30px rgba(0,0,0,.12); }
}

@media (max-width: 560px) {
  nav { padding-inline: 1.2rem; }
  .hero, section { padding-inline: 1.2rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
  .hero-bio { font-size: .95rem; }
  .hero-sub { max-width: 30ch; line-height: 1.45; }
  #beyond .section-head h2 { white-space: normal; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .grid { display: grid; grid-template-columns: 1fr; }
  .project-column { display: contents; }
  .card, .project-jared, .project-localsentinel { grid-column: auto; }
  .shot { min-height: 220px; }
  .device-phone { width: clamp(90px, 28vw, 132px); }
  .profile-cards, .form-row { grid-template-columns: 1fr; }
  .pc-avatar, .pc-li { width: 52px; height: 52px; }
  .achieve-card { display: flex; flex-wrap: wrap; }
  .achieve-stat { width: 100%; margin-left: 0; }
  .beta-grid { grid-template-columns: 1fr; }
  .role-item { grid-template-columns: 1fr; gap: .8rem; }
  .role-when { grid-auto-flow: column; justify-content: start; gap: 1rem; }
  .gallery-mosaic { display: flex; }
  footer { display: block; }
  footer > * { display: block; margin-top: .6rem; }
  footer > span:last-child { text-align: left !important; }
}

@media (max-width: 420px) {
  nav { min-height: 62px; }
  .logo { font-size: .9rem; }
  .nav-links { top: 62px; }
  .hero { padding-top: 8rem; }
  .hero h1 { font-size: clamp(2.65rem, 15.5vw, 4.5rem); }
  section { padding-top: 2.7rem; padding-bottom: 2.7rem; }
  .section-head h2 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .card > .cat, .card > h3, .card > p, .card > .project-link { margin-left: 0; margin-right: 0; }
  .card > .cat { margin-top: 1.2rem; }
  .card h3 { font-size: 1.45rem; line-height: 1.05; }
  .card > p { font-size: .9rem; }
  .shot { margin-inline: -1.2rem; padding-inline: 1.2rem; }
  .device-phone { width: min(29vw, 112px); }
  .term-body { padding: 1rem; font-size: .6rem; line-height: 1.8; }
  .achieve-card, .github-calendar, .contact-panel { padding: 1.1rem; }
  .achieve-body h3 { font-size: 1.2rem; }
  .contribution-grid { grid-auto-columns: 10px; grid-template-rows: repeat(7, 10px); gap: 3px; }
  .contribution-day { width: 10px; height: 10px; }
  .gallery-mosaic { gap: 2px; }
  .gallery-sidebar { gap: 2px; }
  .beyond-panel { display: block; }
  .beyond-panel p + p { margin-top: 1.3rem; }
  .contact-form { padding: 1rem; }
  footer { padding-inline: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Use wide desktop screens without making the content feel stretched. */
@media (min-width: 1200px) {
  nav { padding-inline: 5vw; }
  .hero { padding-inline: 5vw; }
  .hero-content { width: min(1440px, 100%); }
  .hero-bio { max-width: 760px; }
  section { width: min(2400px, 100%); padding-inline: 5vw; }
  #work, #experience, #github, #beta-testing, #beyond, #contact { max-width: 2400px; }
  .hero { min-height: min(82svh, 900px); }
  section { padding-block: clamp(2.5rem, 4vw, 4rem); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 5vw, 7rem); row-gap: 2rem; }
  .card > .cat, .card > h3, .card > p, .card > .project-link { margin-left: 0; margin-right: 0; }
  .card > .cat { margin-top: 1.4rem; }
  .shot { min-height: 280px; padding: 1.5rem; }
  .device-phone { width: clamp(125px, 10vw, 165px); }
  .device-browser { width: min(100%, 520px); }
  .term { width: min(100%, 560px); }
  .section-head { margin-bottom: 1.4rem; }
  .section-head h2 { font-size: clamp(3.5rem, 5.5vw, 6rem); }
  .beta-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-mosaic { min-height: 560px; }
  .contact-panel { grid-template-columns: minmax(0, 1fr) minmax(420px, 1.1fr); gap: 1.25rem 5rem; padding: clamp(1.5rem, 3vw, 2.75rem); }
}

@media (min-width: 1500px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { min-height: 300px; }
}
