:root {
  --paper: #f6f6f2;
  --white: #ffffff;
  --ink: #172029;
  --muted: #68717a;
  --line: #dcdfdc;
  --blue: #254de4;
  --blue-dark: #1a35a0;
  --blue-wash: #e9edff;
  --dark-panel: #1c2b51;
  --warm: #eeeae1;
  --body-font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --display-font: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono-font: "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); text-wrap: balance; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-family: var(--mono-font); font-size: 11px; line-height: 1.5; letter-spacing: .1em; font-weight: 600; }
.mono { font-family: var(--mono-font); font-size: 11px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 18px; color: white; background: var(--blue); z-index: 100; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,246,242,.94); border-bottom: 1px solid rgba(220,223,220,.7); backdrop-filter: blur(18px); }
.nav-row { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 15px; }
.wordmark-symbol { font: 700 32px/1 var(--display-font); letter-spacing: -2px; }
.wordmark-symbol > span { color: var(--blue); }
.wordmark-name { font-size: 14px; font-weight: 700; }
.wordmark-name > span { display: block; margin-top: 2px; font: 9px/1.4 var(--mono-font); font-weight: 500; letter-spacing: .16em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.main-nav > a { position: relative; padding: 9px 0; transition: color .18s ease; }
.main-nav > a:hover { color: var(--blue); }
.main-nav .nav-contact { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--ink); }
.menu-toggle { display: none; }

.hero { padding-block: 82px 78px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--muted); }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { flex: 0 0 7px; height: 7px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px var(--blue-wash); }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 4.15vw, 62px); line-height: 1.28; letter-spacing: -.055em; font-weight: 650; }
.hero h1 > span { color: var(--blue); }
.hero-description { max-width: 480px; margin-top: 27px; font-size: 15px; color: var(--muted); line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 48px; padding: 11px 21px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-light { background: var(--white); color: var(--blue); }
.button-light:hover { background: var(--blue-wash); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--blue); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 43px; font-size: 12px; color: var(--muted); }
.hero-meta span + span { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-visual { position: relative; align-self: center; padding: 32px 24px 25px; border-radius: 16px; background: var(--blue-wash); }
.hero-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 27px; }
.hero-visual-top .mono { color: var(--muted); }
.hero-screen { border-radius: 9px; overflow: hidden; background: var(--white); border: 1px solid rgba(23,32,41,.12); box-shadow: 0 16px 32px rgba(27,46,108,.1); transform: rotate(-2.5deg); }
.window-bar { display: flex; align-items: center; justify-content: space-between; min-height: 31px; padding: 0 12px; color: var(--muted); background: var(--white); font-size: 9px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; align-items: center; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border: 1px solid #c5c9ca; border-radius: 50%; }
.hero-screen img { width: 100%; height: auto; }
.hero-note { position: relative; margin: 14px -5px 0 35px; padding: 21px 25px; color: var(--white); background: var(--dark-panel); border-radius: 8px; box-shadow: 0 13px 24px rgba(27,46,108,.1); transform: rotate(1.5deg); }
.hero-note .eyebrow { color: #aebde8; font-size: 9px; }
.hero-note-label { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
.mini-flow { display: flex; align-items: center; gap: 13px; margin-top: 15px; font-size: 11px; }
.mini-flow span { padding: 5px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; }
.mini-flow b { color: #aebde8; font-weight: 400; }
.visual-caption { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; margin-top: 23px; }
.tiny-square { display: inline-block; width: 5px; height: 5px; background: var(--blue); }
.tool-ribbon { border-block: 1px solid var(--line); }
.ribbon-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font: 500 16px/1.4 var(--display-font); color: var(--muted); }
.ribbon-label { font: 11px/1.5 var(--mono-font); letter-spacing: .06em; }

.work-section { padding-block: 98px 104px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 15px; }
h2 { font-size: clamp(28px, 2.8vw, 39px); line-height: 1.45; letter-spacing: -.04em; font-weight: 600; }
.section-intro { max-width: 290px; color: var(--muted); font-size: 13px; line-height: 1.8; padding-bottom: 3px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 29px; gap: 20px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 40px; padding: 8px 16px; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 12px; line-height: 1.5; transition: background .18s ease, color .18s ease; }
.filter-button span { margin-left: 7px; font-size: 9px; }
.filter-button:hover { background: var(--blue-wash); }
.filter-button.is-active { color: var(--white); background: var(--ink); }
.result-count { color: var(--muted); font-size: 11px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.project-card { min-width: 0; }
.project-cover { position: relative; display: block; width: 100%; text-align: left; border: 0; border-radius: 12px; overflow: hidden; transition: box-shadow .22s ease; }
.project-cover:hover { box-shadow: 0 10px 28px rgba(23,32,41,.1); }
.project-cover:focus-visible { outline-offset: 5px; }
.project-cover:active { box-shadow: none; }
.featured-card .project-cover { height: 310px; padding: 23px 25px; }
.cover-topline, .cover-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cover-topline { font: 9px/1.5 var(--mono-font); letter-spacing: .025em; }
.cover-topline > span:last-child { font-family: var(--body-font); font-size: 9px; }
.cover-bottomline { position: absolute; left: 25px; right: 25px; bottom: 22px; font: 10px/1.5 var(--mono-font); }
.cover-open { opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.project-cover:hover .cover-open, .project-cover:focus-visible .cover-open { opacity: 1; transform: none; }
.devpilot-cover { color: var(--white); background: var(--dark-panel); }
.devpilot-cover .cover-topline { color: #aebde8; }
.devpilot-wordmark { margin-top: 20px; font: 550 48px/1.2 var(--display-font); letter-spacing: -.05em; }
.devpilot-wordmark > span { color: #aebde8; }
.agent-cover-flow { display: flex; gap: 10px; align-items: center; margin-top: 25px; }
.cover-node { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 11px 10px; }
.cover-node small { display: block; font: 8px/1.4 var(--mono-font); color: #aebde8; }
.cover-node strong { display: block; font-size: 13px; margin-top: 5px; font-weight: 500; }
.cover-node > span { display: block; margin-top: 4px; color: #c5d0ef; font-size: 8px; }
.cover-node-model { background: rgba(233,237,255,.09); border-color: #8c9ed5; }
.cover-flow-arrow { color: #aebde8; font-size: 17px; }
.sports-cover { color: var(--blue-dark); background: #e4e9f6; }
.sports-screen { margin: 26px 12px 0; background: var(--white); border-radius: 6px; box-shadow: 0 8px 25px rgba(23,32,41,.1); overflow: hidden; transform: rotate(-1.5deg); }
.sports-screen img { width: 100%; height: 170px; object-fit: cover; object-position: top; }
.sports-cover .cover-bottomline { background: #e4e9f6; padding-top: 10px; }
.project-copy { padding: 22px 0 0; }
.project-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-copy h3 { font-size: 25px; letter-spacing: -.035em; font-weight: 600; line-height: 1.4; }
.project-category { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.project-copy > p { max-width: 95%; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.project-card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); }
.project-card-actions .text-link { min-height: 30px; font-size: 12px; }
.project-card-actions > a { padding: 3px 0; font-size: 11px; color: var(--muted); }
.project-card-actions > a:hover { color: var(--blue); }
.small-card .project-cover { height: 230px; }
.small-card .project-copy h3 { font-size: 22px; }
.small-card .project-copy > p { min-height: 48px; }
.food-cover { padding: 0; color: var(--white); background: var(--dark-panel); }
.food-cover > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: transform .4s ease; }
.food-cover:hover > img { transform: scale(1.035); }
.food-cover-caption { position: absolute; inset: 25px 25px auto; }
.food-cover-caption small { font: 9px var(--mono-font); letter-spacing: .05em; }
.food-cover-caption strong { display: block; margin-top: 34px; font-size: 31px; font-weight: 500; }
.food-cover-caption > span { display: block; margin-top: 6px; font-size: 12px; }
.asset-caption { position: absolute; right: 18px; bottom: 13px; color: rgba(255,255,255,.8); font-size: 9px; }
.collector-cover { padding: 20px 18px; background: #1c222b; color: #c5d0ef; }
.collector-cover .cover-topline { gap: 8px; font-size: 8px; }
.collector-cover > img { width: 113%; max-width: none; height: auto; margin: 24px 0 0 8px; border: 1px solid #3b424a; border-radius: 5px; transform: rotate(-3deg); }
.research-cover { background: var(--warm); padding: 20px 22px; }
.research-cover .cover-topline { font-size: 8px; color: var(--muted); }
.research-words { display: flex; flex-direction: column; margin-top: 19px; font: 600 39px/1.04 var(--display-font); letter-spacing: -.055em; }
.research-words > span:nth-child(2) { color: var(--muted); }
.blue-dot { color: var(--blue); }
.research-flow-label { position: absolute; bottom: 17px; left: 23px; font-size: 10px; color: var(--muted); }
.noscript-note { margin-top: 20px; color: var(--muted); font-size: 13px; }

.skills-section { background: #eeefeb; padding-block: 85px 92px; border-block: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 45px; margin-top: 47px; }
.skill-group + .skill-group { border-left: 1px solid #d4d8d4; padding-left: 40px; }
.skill-number { color: var(--blue); font: 11px var(--mono-font); }
.skill-group h3 { margin-top: 13px; font-size: 22px; letter-spacing: -.03em; font-weight: 500; }
.skill-group p { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 290px; line-height: 1.9; }
.skill-list { margin-top: 24px; font-size: 12px; line-height: 2.2; }
.about-section { display: grid; grid-template-columns: .9fr 1.3fr; gap: 100px; padding-block: 100px 90px; }
.about-title .eyebrow { margin-bottom: 25px; color: var(--muted); }
.about-title h2 { font-size: clamp(33px,3.5vw,47px); line-height: 1.4; }
.about-content { padding-top: 37px; }
.about-lead { font-size: 19px; line-height: 1.8; }
.about-content > p + p { margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.about-facts { margin-top: 32px; }
.about-facts > div { display: grid; grid-template-columns: 94px 1fr; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.about-facts dt { font-size: 11px; color: var(--muted); padding-top: 2px; }
.about-facts dd { margin: 0; font-size: 13px; }
.about-facts dd > span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.contact-section { padding-bottom: 40px; }
.contact-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; padding: 52px 55px; color: var(--white); background: var(--blue); border-radius: 12px; }
.contact-heading .eyebrow { color: #c9d2ff; }
.contact-heading h2 { margin-top: 18px; font-size: 32px; }
.contact-heading p:last-child { margin-top: 19px; font-size: 12px; color: #d1d9ff; }
.contact-actions { align-self: center; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--display-font); font-size: clamp(20px, 2.3vw, 30px); letter-spacing: -.025em; border-bottom: 1px solid rgba(255,255,255,.4); padding-block: 10px 18px; }
.contact-email:hover { color: #d1d9ff; }
.contact-email > span { font-size: 27px; }
.contact-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.contact-controls .button { min-height: 42px; font-size: 12px; padding: 10px 18px; }
.contact-controls > a { font-size: 12px; }
.contact-controls > a:hover { text-decoration: underline; }
.phone-link { display: inline-block; margin-top: 22px; color: #d1d9ff; font-size: 12px; }
.site-footer { min-height: 85px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.site-footer > a:hover { color: var(--blue); }

.project-dialog { width: min(1000px, calc(100% - 64px)); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--paper); overscroll-behavior: contain; box-shadow: 0 25px 100px rgba(0,0,0,.25); }
.project-dialog::backdrop { background: rgba(13,22,36,.65); backdrop-filter: blur(5px); }
.project-dialog[open] { animation: dialog-in .2s ease-out; }
.dialog-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 36px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-top .eyebrow { color: var(--muted); }
.close-button { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 3px 0 3px 12px; border: 0; background: transparent; font-size: 12px; }
.close-button > span { font-size: 28px; line-height: 1; font-weight: 300; }
.close-button:hover { color: var(--blue); }
.detail-content { padding: 35px 42px 44px; }
.detail-category { font: 10px/1.5 var(--mono-font); color: var(--blue); letter-spacing: .08em; }
.detail-title { margin-top: 12px; font-size: clamp(29px, 4vw, 42px); line-height: 1.3; letter-spacing: -.04em; }
.detail-subtitle { color: var(--muted); font-size: 15px; margin-top: 8px; }
.detail-intro { font-size: 15px; line-height: 1.9; max-width: 760px; margin-top: 22px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 23px; }
.detail-actions .button { min-height: 43px; font-size: 12px; }
.button-outline { border: 1px solid var(--line); background: transparent; }
.button-outline:hover { background: var(--blue-wash); }
.detail-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block: 30px 0; border-block: 1px solid var(--line); }
.detail-facts > div { padding: 17px 20px 17px 0; }
.detail-facts dt { color: var(--muted); font-size: 10px; }
.detail-facts dd { margin: 4px 0 0; font-size: 12px; }
.detail-facts > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.detail-section { margin-top: 31px; }
.detail-section > h3 { margin-bottom: 14px; font-size: 20px; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.detail-point { border-top: 1px solid var(--line); padding-top: 16px; }
.detail-point > h4 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.detail-point > p, .detail-validation { font-size: 13px; line-height: 1.9; color: var(--muted); }
.detail-flow { margin-top: 28px; padding: 24px; border-radius: 8px; background: var(--blue-wash); }
.detail-flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.detail-flow-heading h3 { font-size: 16px; font-weight: 500; }
.detail-flow-heading > span { color: var(--muted); font-size: 10px; }
.flow-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.flow-step { min-height: 67px; text-align: left; padding: 11px 12px; border: 1px solid #cbd3f4; border-radius: 4px; background: transparent; font-size: 11px; line-height: 1.5; }
.flow-step > span { display: block; margin-bottom: 5px; font: 9px var(--mono-font); color: var(--blue); }
.flow-step:hover { background: rgba(255,255,255,.55); }
.flow-step[aria-pressed="true"] { background: var(--white); border-color: var(--blue); }
.flow-description { margin-top: 16px; color: #4a5682; font-size: 12px; line-height: 1.85; min-height: 44px; }
.detail-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.detail-gallery.single-image { grid-template-columns: 1fr; }
.detail-gallery figure { margin: 0; min-width: 0; }
.detail-gallery a { display: block; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--white); }
.detail-gallery img { width: 100%; max-height: 400px; object-fit: contain; }
.detail-gallery figcaption { color: var(--muted); font-size: 10px; margin-top: 7px; }
.detail-sources { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }
.detail-sources h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.detail-sources ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.detail-sources a { font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.detail-sources a:hover { color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100% - 32px); padding: 11px 20px; color: var(--white); background: var(--ink); border-radius: 5px; font-size: 12px; text-align: center; opacity: 0; transform: translate(-50%,12px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1400px) {
  .hero { gap: 72px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 36px; padding-block: 64px; }
  .hero-visual { padding: 25px 18px 20px; }
  .hero-note { margin-left: 15px; padding: 18px; }
  .featured-card .project-cover { padding: 22px 18px; height: 285px; }
  .cover-bottomline { left: 18px; right: 18px; }
  .devpilot-wordmark { font-size: 42px; }
  .agent-cover-flow { gap: 7px; }
  .cover-node { padding: 9px 7px; }
  .cover-node strong { font-size: 11px; }
  .cover-node > span { font-size: 7px; }
  .project-title-row { display: block; }
  .project-category { display: block; margin-top: 5px; }
  .more-grid, .featured-grid { gap: 24px; }
  .small-card .project-cover { height: 205px; }
  .small-card .project-copy h3 { font-size: 20px; }
  .small-card .project-copy > p { min-height: 72px; }
  .research-words { font-size: 33px; }
  .skills-grid { gap: 28px; }
  .skill-group + .skill-group { padding-left: 26px; }
  .about-section { gap: 55px; }
  .contact-panel { padding: 40px; gap: 35px; }
  .contact-heading h2 { font-size: 28px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { font-size: 55px; }
  .hero-description { max-width: 590px; }
  .hero-visual { width: min(570px,100%); justify-self: center; }
  .hero-meta { margin-top: 28px; }
  .hero-screen img { max-height: 240px; object-fit: cover; object-position: top; }
  .hero-visual-top { margin-bottom: 22px; }
  .hero-note { margin-left: 80px; }
  .ribbon-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: 20px; gap: 14px 28px; font-size: 14px; }
  .ribbon-label { flex-basis: 100%; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-intro { max-width: 100%; margin-top: 14px; }
  .work-section { padding-block: 68px; }
  .featured-grid { grid-template-columns: 1fr; gap: 38px; }
  .featured-card .project-cover { height: 320px; padding: 25px; }
  .cover-bottomline { left: 25px; right: 25px; }
  .devpilot-wordmark { font-size: 52px; }
  .cover-node { padding: 13px; }
  .cover-node strong { font-size: 14px; }
  .cover-node > span { font-size: 10px; }
  .agent-cover-flow { gap: 13px; margin-top: 24px; }
  .sports-screen { margin-top: 23px; }
  .sports-screen img { height: 200px; }
  .project-title-row { display: flex; }
  .more-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 38px; }
  .small-card .project-cover { height: 230px; }
  .small-card .project-copy > p { min-height: 72px; }
  .skills-section { padding-block: 60px; }
  .skills-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 28px; }
  .skill-group { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; }
  .skill-number { padding-top: 7px; }
  .skill-group h3 { margin-top: 0; }
  .skill-group p { grid-column: 2; max-width: none; }
  .skill-list { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 13px; }
  .skill-group + .skill-group { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .about-section { grid-template-columns: 1fr; gap: 22px; padding-block: 65px 55px; }
  .about-title h2 br { display: none; }
  .about-content { padding-top: 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 30px; }
  .contact-email { font-size: 28px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 40px); }
  .nav-row { min-height: 72px; }
  .wordmark-symbol { font-size: 29px; }
  .wordmark { gap: 11px; }
  .wordmark-name { font-size: 12px; }
  .wordmark-name > span { font-size: 8px; }
  .menu-toggle { display: flex; align-items: flex-end; justify-content: center; flex-direction: column; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle span:last-child { width: 17px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { width: 24px; transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); padding: 20px; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px rgba(23,32,41,.05); }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 20px; }
  .main-nav > a { display: block; min-height: 44px; }
  .main-nav .nav-contact { justify-content: flex-start; gap: 20px; border-bottom: 0; }
  .hero { padding-block: 44px 45px; gap: 36px; }
  .hero h1 { font-size: clamp(34px, 8.3vw, 44px); margin-top: 22px; line-height: 1.38; }
  .hero-description { font-size: 13px; margin-top: 20px; }
  .hero-actions { gap: 23px; margin-top: 26px; }
  .hero-actions .button { font-size: 12px; padding-inline: 16px; gap: 18px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-meta { font-size: 10px; gap: 9px 14px; }
  .hero-meta span + span { padding-left: 14px; }
  .hero-visual { border-radius: 10px; padding: 22px 16px 18px; }
  .hero-visual-top .eyebrow { font-size: 9px; }
  .hero-visual-top .mono { font-size: 9px; }
  .hero-screen .window-bar { font-size: 8px; padding-inline: 8px; }
  .hero-note { padding: 15px; margin-left: 25px; }
  .hero-note-label { font-size: 13px; }
  .mini-flow { gap: 8px; margin-top: 12px; font-size: 9px; }
  .mini-flow span { padding: 5px 8px; }
  .visual-caption { font-size: 9px; margin-top: 18px; }
  .ribbon-inner { gap: 13px 23px; font-size: 13px; }
  .work-section { padding-block: 50px 56px; }
  h2 { font-size: 27px; }
  .section-heading .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .section-intro { font-size: 12px; }
  .filter-row { display: block; margin-bottom: 22px; }
  .project-filters { gap: 3px; }
  .filter-button { min-height: 42px; padding: 8px 11px; font-size: 11px; }
  .result-count { margin-top: 12px; font-size: 10px; }
  .featured-card .project-cover { height: 275px; padding: 20px 16px; }
  .cover-topline { font-size: 8px; gap: 10px; }
  .cover-topline > span:last-child { font-size: 8px; }
  .cover-bottomline { left: 16px; right: 16px; bottom: 19px; font-size: 9px; }
  .cover-open { opacity: 1; transform: none; font-size: 9px; }
  .devpilot-wordmark { margin-top: 18px; font-size: 42px; }
  .agent-cover-flow { gap: 5px; margin-top: 23px; }
  .cover-node { padding: 10px 7px; }
  .cover-node small { font-size: 7px; }
  .cover-node strong { font-size: 10px; }
  .cover-node > span { font-size: 7px; }
  .cover-flow-arrow { font-size: 12px; }
  .sports-screen { margin: 24px 0 0; }
  .sports-screen img { height: 155px; }
  .project-copy { padding-top: 18px; }
  .project-copy h3 { font-size: 24px; }
  .project-category { font-size: 10px; }
  .project-title-row { display: block; }
  .project-copy > p { max-width: none; font-size: 12px; margin-top: 9px; }
  .tags { margin-top: 14px; }
  .project-card-actions { margin-top: 18px; padding-top: 12px; }
  .more-grid { grid-template-columns: 1fr; gap: 33px; margin-top: 35px; }
  .small-card .project-cover { height: 245px; }
  .small-card .project-copy > p { min-height: 0; }
  .small-card .project-copy h3 { font-size: 23px; }
  .food-cover-caption { top: 25px; }
  .food-cover-caption strong { margin-top: 40px; font-size: 33px; }
  .collector-cover > img { margin-top: 22px; }
  .research-words { font-size: 44px; }
  .research-flow-label { bottom: 20px; }
  .skills-section { padding-block: 48px; }
  .skill-group { column-gap: 7px; grid-template-columns: 28px 1fr; }
  .skill-group h3 { font-size: 20px; }
  .skill-group p { font-size: 12px; }
  .skill-list { font-size: 11px; }
  .about-section { padding-block: 50px; gap: 20px; }
  .about-title h2 { font-size: 33px; }
  .about-lead { font-size: 17px; }
  .about-content > p + p { font-size: 12px; }
  .about-facts > div { grid-template-columns: 72px 1fr; gap: 10px; }
  .about-facts dd { font-size: 12px; }
  .about-facts dt, .about-facts dd > span { font-size: 10px; }
  .contact-panel { padding: 30px 23px; gap: 21px; border-radius: 8px; }
  .contact-heading h2 { font-size: 27px; margin-top: 14px; }
  .contact-heading p:last-child { font-size: 11px; }
  .contact-email { font-size: 22px; gap: 8px; overflow-wrap: anywhere; }
  .contact-email > span { font-size: 23px; }
  .contact-controls { gap: 15px; margin-top: 19px; }
  .contact-controls > a { font-size: 10px; }
  .site-footer { font-size: 9px; gap: 10px 20px; padding-bottom: 20px; }
  .site-footer > span:first-child { flex-basis: 100%; }
  .project-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  .dialog-top { padding: 10px 20px; }
  .detail-content { padding: 24px 20px 30px; }
  .detail-title { font-size: 30px; overflow-wrap: anywhere; }
  .detail-subtitle { font-size: 13px; }
  .detail-intro { font-size: 13px; }
  .detail-facts { grid-template-columns: 1fr; margin-top: 22px; }
  .detail-facts > div { display: grid; grid-template-columns: 75px 1fr; padding: 9px 0; gap: 10px; }
  .detail-facts dd { margin-top: 0; font-size: 11px; }
  .detail-facts > div + div { border-left: 0; padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-point > p, .detail-validation { font-size: 12px; }
  .detail-flow { padding: 17px; }
  .detail-flow-heading { align-items: flex-start; gap: 10px; }
  .detail-flow-heading h3 { font-size: 14px; }
  .detail-flow-heading > span { font-size: 9px; }
  .flow-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow-step { min-height: 60px; }
  .flow-description { font-size: 11px; min-height: 64px; }
  .detail-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .project-filters, .result-count, .hero-actions, .project-card-actions, .menu-toggle, .toast, .contact-controls, .project-dialog, .hero-visual { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .container { width: 100%; }
  .hero { display: block; padding: 20px 0; }
  .hero h1 { font-size: 29pt; }
  .hero-description { max-width: none; }
  .tool-ribbon { display: none; }
  .work-section, .about-section, .skills-section { padding-block: 22px; }
  .featured-grid, .more-grid, .skills-grid { gap: 20px; }
  .project-cover { max-height: 150px; break-inside: avoid; }
  .project-copy { break-inside: avoid; }
  .skills-section { background: white; }
  .contact-panel { background: white; color: black; padding: 10px 0; border-top: 1px solid #999; }
  .contact-heading { display: none; }
  .contact-actions { grid-column: 1 / -1; }
  .contact-email, .phone-link { color: black; }
  .contact-email { font-size: 17pt; border: 0; }
}
