:root {
  --void: #080908;
  --ink: #f4f0e9;
  --muted: #a9aaa5;
  --acid: #9cff45;
  --line: rgba(244, 240, 233, 0.18);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--ink); font-family: var(--serif); overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.skip-link { min-height: 44px; position: fixed; z-index: 50; top: 12px; left: 12px; display: inline-flex; align-items: center; padding: 10px 14px; background: var(--acid); color: #111; font: 12px var(--mono); transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-stage { position: fixed; z-index: -1; inset: 0; overflow: hidden; background: var(--void); pointer-events: none; }
.site-stage video { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: .4; filter: blur(3px) saturate(.65) contrast(1.16); transform: scale(1.04); }
.stage-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 8, .78), rgba(8, 9, 8, .2) 30%, rgba(8, 9, 8, .92) 92%), radial-gradient(circle at 68% 38%, rgba(156, 255, 69, .12), transparent 34%); }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.topbar { position: fixed; z-index: 20; top: 22px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; font: 12px var(--mono); letter-spacing: .08em; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 24px; height: 24px; border-radius: 5px; }
.brand span { font-weight: 600; }
.toplinks { display: flex; gap: 26px; color: var(--muted); }
.toplinks a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; transition: color .2s ease; }
.toplinks a:hover, .toplinks a[aria-current="true"] { color: var(--acid); }
.menu-toggle { min-width: 44px; min-height: 44px; display: none; border: 1px solid var(--line); background: rgba(8, 9, 8, .66); padding: 8px 11px; font: 11px var(--mono); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.menu-toggle:hover { border-color: var(--acid); color: var(--acid); }

main { position: relative; }
main section[id] { scroll-margin-top: 88px; }
.hero { min-height: 112dvh; display: flex; align-items: flex-end; position: relative; padding: 0 7vw 13vh; }
.hero-copy { width: 100%; max-width: 1200px; }
.eyebrow, .section-heading p, .skill-label, .log-label { margin: 0 0 20px; color: var(--acid); font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 1200px; margin: 0 0 28px; font-size: clamp(58px, 8.5vw, 130px); font-weight: 900; line-height: .98; letter-spacing: -.07em; text-wrap: balance; }
h1 em, h2 em { color: var(--acid); font-style: normal; }
.hero-lead { max-width: 650px; margin: 0; color: #d9d8d0; font-size: clamp(19px, 2.1vw, 29px); line-height: 1.45; }
.hero-meta { display: flex; align-items: center; gap: 12px; max-width: 620px; margin-top: 36px; color: var(--muted); font: 12px var(--mono); line-height: 1.5; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--acid); box-shadow: 0 0 20px var(--acid); }
.scroll-cue { min-width: 44px; position: absolute; right: 7vw; bottom: 12vh; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 11px var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 80px; background: linear-gradient(var(--acid), transparent); }

.section-dark { background: rgba(12, 14, 12, .92); }
.manifesto { min-height: 150vh; display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; align-items: center; padding: 16vh 7vw; }
.section-intro h2, .section-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
.section-intro p:not(.eyebrow) { max-width: 360px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.signal { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); }
.signal b { color: var(--acid); }
.manifesto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.manifesto-card { min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 9, 8, .26); backdrop-filter: blur(8px); }
.manifesto-card:nth-child(2) { margin-top: 70px; }
.manifesto-card:nth-child(3) { margin-top: 140px; }
.card-index { color: var(--acid); font: 11px var(--mono); }
.manifesto-card i { display: block; width: 46px; height: 2px; margin-bottom: 18px; background: var(--acid); }
.manifesto-card h3 { margin: 0 0 15px; font-size: clamp(24px, 3vw, 42px); line-height: 1.1; }
.manifesto-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.about { padding: 16vh 7vw 18vh; }
.section-heading { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; align-items: start; margin-bottom: 70px; }
.section-heading > span, .work-head > div > span { grid-row: span 2; padding-top: 5px; color: var(--muted); font: 12px var(--mono); }
.section-heading p { grid-column: 2; color: var(--muted); }
.section-heading h2 { grid-column: 2; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; align-items: end; }
.profile-card { max-width: 320px; padding: 28px; border: 1px solid var(--line); background: rgba(8, 9, 8, .34); backdrop-filter: blur(8px); }
.profile-card img { width: 76px; height: 76px; margin-bottom: 24px; border-radius: 12px; }
.profile-card .eyebrow { margin-bottom: 14px; color: var(--muted); }
.profile-card h3 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.04em; }
.profile-card > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; }
.profile-card dl { display: grid; gap: 15px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-card dl div { display: flex; justify-content: space-between; gap: 12px; font: 11px var(--mono); }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; text-align: right; }
.about-copy { max-width: 720px; }
.about-copy p { max-width: 650px; margin: 0 0 22px; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.55; letter-spacing: -.02em; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-stats b { display: block; font: 30px var(--mono); }
.about-stats span { color: var(--muted); font: 11px var(--mono); }

.skills { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; padding: 16vh 7vw 18vh; }
.skills .section-heading { display: block; margin: 0; }
.skills .section-heading > span { display: block; margin-bottom: 20px; color: var(--muted); }
.skills .section-heading p { margin-bottom: 25px; color: var(--muted); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.skill-group { border-top: 1px solid var(--line); }
.skill-label { margin: 20px 0 5px; color: var(--muted); }
.skill-group a { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.skill-group a span { color: var(--acid); font: 10px var(--mono); }

.work { padding: 16vh 7vw 18vh; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 58px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.work-head > div { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; }
.work-head > div > span { grid-row: span 2; }
.work-head p { grid-column: 2; margin: 0 0 20px; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; }
.work-head h2 { grid-column: 2; margin: 0; font-size: clamp(44px, 7vw, 100px); line-height: .95; letter-spacing: -.07em; }
.work-note { max-width: 230px; margin: 0 0 8px; text-align: right; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(180px, .55fr); gap: 20px; align-items: stretch; }
.project-card { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; min-height: 330px; border: 1px solid var(--line); background: rgba(8, 9, 8, .34); backdrop-filter: blur(8px); }
.project-cover { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 330px; padding: 28px; border: 0; border-right: 1px solid var(--line); background: #111410; color: var(--ink); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.project-cover:hover { background: #1a2017; }
.project-cover img { width: 110px; height: 110px; border-radius: 18px; box-shadow: 0 18px 35px rgba(30, 32, 26, .18); }
.project-cover span { font: 600 13px var(--mono); letter-spacing: .08em; }
.project-cover small { color: var(--muted); font: 10px var(--mono); }
.project-info { padding: 32px; }
.project-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-title-row h3 { margin: 0; font-size: 42px; letter-spacing: -.05em; }
.chip { padding: 6px 8px; color: #294d12; background: var(--acid); font: 10px var(--mono); }
.project-info > p { max-width: 520px; margin: 20px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.project-links { display: flex; gap: 20px; margin-top: 30px; font: 12px var(--mono); }
.project-links button { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.project-links a { color: var(--acid); }
.project-links button, .project-links a, .contact-meta a, .footer a, .modal-link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s ease, opacity .15s ease; }
.project-links button:hover, .project-links a:hover, .contact-meta a:hover, .footer a:hover, .modal-link:hover { color: var(--acid); }
.project-links button:active, .project-links a:active, .contact-meta a:active, .footer a:active, .modal-link:active, .menu-toggle:active, .modal-close:active { opacity: .68; }
.coming-soon { display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 24px; border: 1px dashed var(--line); color: var(--muted); background: rgba(8, 9, 8, .2); }
.coming-soon span, .coming-soon b { font: 11px var(--mono); }
.coming-soon b { color: var(--ink); }
.coming-soon p { margin: 0; font-size: 15px; }

.project-grid > .project-card:first-child { grid-column: 1; grid-row: 1; }
.project-grid > .coming-soon { grid-column: 2; grid-row: 1; }
.project-card-agent { grid-column: 1 / -1; grid-row: 2; }
.project-card-devmind { grid-column: 1 / -1; grid-row: 3; }
.project-cover-devmind { position: relative; align-items: flex-start; justify-content: space-between; overflow: hidden; text-align: left; background: #171b16; color: var(--acid); }
.project-cover-devmind img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; opacity: .42; box-shadow: none; }
.project-cover-devmind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 8, .1), rgba(8, 9, 8, .92)); }
.project-cover-devmind span, .project-cover-devmind small { font: 11px var(--mono); }
.project-cover-devmind span, .project-cover-devmind small { position: relative; z-index: 1; }
.project-cover-devmind small { color: var(--muted); }
.project-cover-agent { position: relative; overflow: hidden; align-items: flex-start; justify-content: flex-end; text-align: left; }
.project-cover-agent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 8, .04), rgba(8, 9, 8, .88)); }
.project-cover-agent img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 18% center; box-shadow: none; opacity: .84; }
.project-cover-agent span, .project-cover-agent small { position: relative; z-index: 1; }
.chip-outline { border: 1px solid rgba(156, 255, 69, .6); background: transparent; color: var(--acid); }
.agent-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.agent-stages span { padding: 10px; border-left: 2px solid var(--acid); background: rgba(156, 255, 69, .06); color: var(--muted); font: 10px var(--mono); }
.agent-stages b { margin-right: 7px; color: var(--acid); }

.timeline { padding: 16vh 7vw 18vh; }
.timeline .section-heading { display: block; margin-bottom: 90px; }
.timeline .section-heading > span { display: block; margin-bottom: 20px; color: var(--muted); }
.timeline .section-heading p { color: var(--muted); }
.timeline-list { max-width: 930px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.timeline-list li { display: grid; grid-template-columns: 170px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline-list time { color: var(--acid); font: 12px var(--mono); }
.timeline-list h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.04em; }
.timeline-list p:not(.log-label) { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.log-label { margin-bottom: 12px; color: var(--muted); }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 60px; min-height: 78vh; padding: 14vh 7vw 10vh; border-top: 1px solid var(--line); }
.contact h2 { max-width: 820px; margin: 0; font-size: clamp(54px, 10vw, 150px); line-height: .9; letter-spacing: -.08em; }
.contact-meta { max-width: 270px; color: var(--muted); font: 12px var(--mono); line-height: 1.8; }
.contact-meta p { margin: 0; }
.contact-meta a { width: fit-content; margin-top: 10px; color: var(--acid); }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 20px 7vw; color: var(--muted); background: var(--void); font: 10px var(--mono); letter-spacing: .04em; }
.footer a { color: var(--acid); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 5vh 5vw; background: rgba(4, 5, 4, .82); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal-window { width: min(1120px, 100%); max-height: 90vh; overflow: auto; border: 1px solid rgba(244, 240, 233, .28); background: #121411; box-shadow: 0 30px 100px rgba(0, 0, 0, .5); transform: translateY(18px); transition: transform .25s ease; }
.modal-backdrop.is-open .modal-window { transform: none; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); }
.modal-close { width: 44px; height: 44px; display: grid; place-items: center; margin: -9px -8px -9px 0; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; transition: color .2s ease, opacity .15s ease; }
.modal-close:hover { color: var(--acid); }
.modal-content { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; padding: 38px; }
.modal-copy h2 { margin: 0 0 20px; font-size: clamp(48px, 6vw, 82px); line-height: .95; letter-spacing: -.06em; }
.modal-copy > p:not(.eyebrow) { color: #d6d5cf; font-size: 16px; line-height: 1.75; }
.modal-copy strong { color: var(--acid); font-weight: 500; }
.modal-copy ul { display: grid; gap: 10px; margin: 25px 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-copy .tag-row { margin-top: 20px; }
.modal-copy .tag-row span { border-color: var(--line); }
.modal-link { margin-top: 20px; color: var(--acid); font: 12px var(--mono); }
.modal-media { display: grid; gap: 20px; align-content: start; }
.modal-media figure { margin: 0; }
.modal-media img, .modal-media video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 320px; object-fit: contain; background: #080908; }
.modal-media figcaption { margin-top: 9px; color: var(--muted); font: 10px var(--mono); }

.agent-modal-backdrop { place-items: stretch center; overflow-y: auto; padding: 3vh 4vw; }
.agent-modal-window { width: min(1260px, 100%); max-height: none; margin: auto 0; overflow: visible; background: #0b0d0b; }
.agent-modal-content { padding: 52px; }
.agent-modal-intro { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.agent-modal-intro h2 { margin: 0; font-size: clamp(54px, 8vw, 112px); line-height: .9; letter-spacing: 0; }
.agent-modal-intro h2 em { color: var(--acid); font-style: normal; }
.agent-lead { max-width: 720px; margin: 28px 0 0; color: #d6d5cf; font-size: clamp(18px, 2vw, 26px); line-height: 1.55; }
.agent-pipeline { display: grid; grid-template-columns: repeat(11, auto); align-items: center; gap: 10px; margin-top: 42px; overflow-x: auto; padding-bottom: 7px; }
.agent-pipeline span { min-width: max-content; padding: 11px 12px; border: 1px solid var(--line); color: var(--ink); font: 10px var(--mono); }
.agent-pipeline span b { margin-right: 6px; color: var(--acid); }
.agent-pipeline i { color: var(--acid); font: 12px var(--mono); }
.agent-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.agent-stage-card { min-height: 410px; padding: 42px 36px 42px 0; border-right: 1px solid var(--line); }
.agent-stage-card + .agent-stage-card { padding-right: 0; padding-left: 36px; border-right: 0; }
.agent-stage-card-accent { background: linear-gradient(145deg, rgba(156, 255, 69, .055), transparent 58%); }
.agent-stage-kicker { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font: 10px var(--mono); }
.agent-stage-kicker span { color: var(--acid); }
.agent-stage-card h3 { max-width: 520px; margin: 78px 0 22px; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: 0; }
.agent-stage-card p { max-width: 500px; margin: 0; color: #d2d2cc; font-size: 15px; line-height: 1.8; }
.agent-stage-card ul { display: grid; gap: 10px; margin: 24px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.agent-evidence { padding: 52px 0; border-bottom: 1px solid var(--line); }
.agent-section-label { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 10px var(--mono); }
.agent-section-label em { color: var(--acid); font-style: normal; }
.agent-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.agent-evidence-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #080908; }
.agent-evidence-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; filter: saturate(.76) contrast(1.04); transition: filter .25s ease; }
.agent-evidence-grid figure:hover img { filter: saturate(1) contrast(1); }
.agent-evidence-grid figcaption { padding: 12px 14px; color: var(--muted); font: 10px var(--mono); }
.agent-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7vw; padding-top: 42px; }
.agent-footer-grid .agent-section-label { color: var(--acid); }
.agent-footer-grid p { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.devmind-modal-backdrop { place-items: stretch center; overflow-y: auto; padding: 3vh 4vw; }
.devmind-modal-window { width: min(1120px, 100%); max-height: none; margin: auto 0; background: #0b0d0b; }
.devmind-modal-content { padding: 52px; }
.devmind-intro { max-width: 820px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.devmind-intro h2 { margin: 0; font-size: clamp(52px, 8vw, 104px); line-height: .9; }
.devmind-intro h2 em { color: var(--acid); font-style: normal; }
.devmind-intro p:last-child { max-width: 700px; margin: 28px 0 0; color: #d2d2cc; font-size: 18px; line-height: 1.7; }
.devmind-flow { display: flex; align-items: center; gap: 9px; overflow-x: auto; padding: 30px 0; border-bottom: 1px solid var(--line); }
.devmind-flow span { min-width: max-content; padding: 11px 12px; border: 1px solid var(--line); color: var(--ink); font: 10px var(--mono); }
.devmind-flow b { margin-right: 6px; color: var(--acid); }
.devmind-flow i { color: var(--acid); font: 12px var(--mono); }
.devmind-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5vw; padding: 42px 0; border-bottom: 1px solid var(--line); }
.devmind-detail-grid ul { display: grid; gap: 12px; margin: 20px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.devmind-boundary { padding-top: 34px; }
.devmind-boundary p { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.devmind-screenshot { margin: 34px 0 0; padding-top: 34px; border-top: 1px solid var(--line); }
.devmind-screenshot img { display: block; width: 100%; border: 1px solid var(--line); background: #080908; }
.devmind-screenshot figcaption { margin-top: 9px; color: var(--muted); font: 10px var(--mono); }

@media (max-width: 900px) {
  .topbar { top: 16px; left: 18px; right: 18px; }
  .menu-toggle { display: block; }
  .toplinks { position: fixed; top: 58px; right: 18px; left: 18px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line); background: rgba(8, 9, 8, .92); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .toplinks.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .toplinks a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .toplinks a:last-child { border-bottom: 0; }
  .hero { min-height: 100dvh; padding: 0 18px 14vh; }
  .hero h1 { font-size: clamp(52px, 14vw, 100px); }
  .hero-lead { font-size: 18px; }
  .scroll-cue { display: none; }
  .manifesto { display: block; min-height: auto; padding: 16vh 18px; }
  .section-intro { margin-bottom: 50px; }
  .manifesto-grid { display: block; }
  .manifesto-card, .manifesto-card:nth-child(2), .manifesto-card:nth-child(3) { min-height: 240px; margin: 0 0 14px; }
  .about, .work, .timeline, .contact { padding-right: 18px; padding-left: 18px; }
  .section-heading { grid-template-columns: 40px 1fr; gap: 12px; margin-bottom: 50px; }
  .section-heading h2 { font-size: clamp(42px, 12vw, 70px); }
  .about-grid, .skills { display: block; }
  .profile-card { max-width: none; margin-bottom: 42px; }
  .about-copy p { font-size: 22px; }
  .skills .section-heading { margin-bottom: 56px; }
  .skills-grid { display: block; }
  .skill-group { margin-bottom: 42px; }
  .work-head { display: block; }
  .work-note { margin-top: 22px; text-align: left; }
  .project-grid { display: block; }
  .project-card-agent { margin-top: 14px; }
  .project-card-devmind { margin-top: 14px; }
  .project-card-agent .project-cover-agent { min-height: 250px; }
  .agent-stages { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-cover { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-info { padding: 24px; }
  .coming-soon { min-height: 180px; margin-top: 14px; }
  .timeline .section-heading { margin-bottom: 55px; }
  .timeline-list { margin: 0; }
  .timeline-list li { grid-template-columns: 1fr; gap: 14px; }
  .contact { display: block; min-height: auto; padding-top: 16vh; padding-bottom: 12vh; }
  .contact-meta { margin-top: 42px; }
  .footer { flex-wrap: wrap; padding: 20px 18px; }
  .modal-backdrop { padding: 18px; }
  .modal-window { max-height: 94vh; }
  .modal-content { display: block; padding: 25px 20px 30px; }
  .modal-media { margin-top: 36px; }
  .agent-modal-backdrop { padding: 10px; }
  .agent-modal-window { width: 100%; max-width: 100%; max-height: calc(100dvh - 20px); min-width: 0; overflow-x: hidden; overflow-y: auto; }
  .agent-modal-content { min-width: 0; padding: 30px 20px 34px; overflow: hidden; }
  .devmind-modal-window { max-height: calc(100dvh - 20px); overflow-y: auto; }
  .devmind-modal-content { padding: 30px 20px 34px; }
  .devmind-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .agent-modal-intro { padding-bottom: 32px; }
  .agent-modal-intro h2 { max-width: 100%; font-size: 48px; overflow-wrap: anywhere; }
  .agent-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; gap: 8px; margin-top: 30px; overflow: visible; padding-bottom: 0; }
  .agent-pipeline span { min-width: 0; }
  .agent-pipeline i { display: none; }
  .agent-stage-grid, .agent-evidence-grid, .agent-footer-grid { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .agent-stage-card, .agent-stage-card + .agent-stage-card { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-stage-kicker { flex-wrap: wrap; }
  .agent-stage-card h3 { margin-top: 48px; }
  .agent-stage-card:last-child { border-bottom: 0; }
  .agent-evidence { padding: 34px 0; }
  .agent-section-label { align-items: flex-start; flex-direction: column; gap: 7px; }
  .agent-footer-grid { gap: 28px; padding-top: 32px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; align-items: flex-start; padding-top: 104px; padding-bottom: 64px; }
  .hero h1 { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .modal-window, .modal-backdrop, .toplinks { transition: none; }
  .site-stage video, #particles { display: none; }
}
