:root{color-scheme:dark;--bg:#101311;--surface:#181d19;--line:#343c33;--text:#f0f2eb;--muted:#a9b2a6;--accent:#c7f76b;--max:1200px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:35px}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button{font:inherit}a,button,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}a:hover{color:var(--accent)}.wrap{width:min(var(--max),calc(100% - 96px));margin-inline:auto}.site-header{height:104px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:17px}.monogram{display:inline-grid;place-items:center;width:42px;height:42px;background:var(--accent);color:var(--bg);border-radius:10px;font-size:24px;letter-spacing:-2px;padding-right:2px}nav{display:flex;gap:30px;align-items:center;font-size:14px}nav .nav-contact{border:1px solid #59634f;border-radius:7px;padding:9px 17px}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:70px;padding-top:82px;padding-bottom:70px;align-items:center}.eyebrow{font-family:Consolas,'Courier New',monospace;font-size:13px;font-weight:600;letter-spacing:.12em;color:var(--accent);margin:0 0 22px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(3.2rem,5.2vw,4.7rem);font-weight:600;line-height:1.06;letter-spacing:-.065em;margin-bottom:26px}h1 span{color:var(--accent)}.hero-description{font-size:19px;line-height:1.7;max-width:470px;color:#c2c9be}.hero-actions{display:flex;gap:13px;flex-wrap:wrap;margin:30px 0}.button{display:inline-block;padding:12px 21px;border-radius:6px;font-size:14px;font-weight:700}.primary{background:var(--accent);color:#19210f}.primary:hover{background:#d7ff90;color:#19210f}.secondary{border:1px solid #59634f}.location{font-size:12px;color:var(--muted);margin-top:30px}.location span{margin:0 9px;color:var(--accent)}.system-card{background:linear-gradient(145deg,#20291e,#151a16);border:1px solid #43503a;border-radius:13px;padding:26px;transform:rotate(1deg)}.system-top{display:flex;justify-content:space-between;font:12px Consolas,monospace;letter-spacing:.08em;color:var(--muted);padding-bottom:29px}.index{color:var(--accent)}.system-layer{display:flex;align-items:flex-start;gap:16px;border:1px solid #404a39;background:#1a2019;padding:21px 17px;border-radius:8px}.layer-number{color:var(--accent);font:13px Consolas,monospace;padding-top:5px}.system-layer p{color:var(--muted);font-size:12px;margin-bottom:3px}.system-layer h2{font-size:21px;line-height:1.3;letter-spacing:-.03em;margin:0 0 12px}.small-tags{display:flex;gap:9px;flex-wrap:wrap;color:#bdc9b3;font:12px Consolas,monospace}.layer-symbol{margin-left:auto;color:#869c71;font:22px Consolas,monospace}.connector{height:22px;border-left:1px dashed #748c5b;margin-left:23px}.system-bottom{font-size:12px;margin:23px 0 0;color:var(--muted);text-align:center}.proof-strip{display:grid;grid-template-columns:repeat(3,1fr);padding-block:29px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:34px}.proof-strip>div{display:flex;gap:18px;align-items:center}.proof-strip strong{font-size:34px;line-height:1;font-weight:500;letter-spacing:-.04em}.proof-strip span{color:var(--muted);font-size:13px;max-width:160px;line-height:1.5}.section{padding-block:100px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-bottom:34px}.section-heading .eyebrow{margin-bottom:12px}h2{font-size:clamp(2rem,3.3vw,2.8rem);line-height:1.15;letter-spacing:-.045em;font-weight:500;margin-bottom:0}.section-heading>p{font-size:15px;color:var(--muted);margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:29px}.filters[hidden]{display:none}.filters button{border:1px solid var(--line);background:transparent;color:var(--muted);padding:7px 17px;border-radius:30px;font-size:13px;cursor:pointer}.filters button.active{background:var(--accent);border-color:var(--accent);color:#18200f}.filters button:hover{border-color:var(--accent)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px}.project-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#151a16}.project-card[hidden]{display:none}.project-visual{min-height:190px;background:#202c29;padding:28px;display:flex;flex-direction:column;justify-content:center;gap:20px;border-bottom:1px solid var(--line)}.project-card:nth-child(3n+2) .project-visual{background:#282839}.project-card:nth-child(3n) .project-visual{background:#302b21}.visual-label{font:12px Consolas,monospace;letter-spacing:.06em;color:#c9d1c4}.flow{display:flex;align-items:stretch;gap:10px}.flow-node{flex:1;min-width:0;padding:17px 9px;text-align:center;background:#10131160;border:1px solid #64705c80;border-radius:6px;font-size:13px;line-height:1.4}.flow-line{align-self:center;flex:0 0 15px;border-top:1px solid #9dad8e}.project-visual small{font:12px Consolas,monospace;color:#b7c2b0}.project-body{padding:28px}.project-kicker{display:flex;justify-content:space-between;font:12px Consolas,monospace;color:var(--muted);margin-bottom:13px;gap:12px}.project-body h3{font-size:25px;letter-spacing:-.035em;line-height:1.2;margin-bottom:14px}.project-body>p{color:var(--muted);font-size:15px;min-height:74px;margin-bottom:21px}.tags{padding:0;margin:0;list-style:none;display:flex;gap:7px;flex-wrap:wrap}.tags li{font-size:12px;color:#bfcab6;border:1px solid #414a3d;border-radius:4px;padding:3px 9px}.project-body details{border-top:1px solid var(--line);margin-top:24px;padding-top:17px;font-size:14px}.project-body summary{cursor:pointer;color:var(--accent);width:fit-content}.project-body details p{color:var(--muted);margin:17px 0 0}.project-link{display:inline-block;margin-top:16px;color:var(--accent);text-decoration:underline;text-underline-offset:4px}.project-media{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;background:#111}.media-caption{font-size:12px;color:var(--muted);margin:0;padding:8px 28px}.capabilities-section{background:#191e18;border-block:1px solid var(--line)}.capability-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;margin-top:50px}.cap-number{font:14px Consolas,monospace;color:var(--accent)}.capability-grid h3{font-size:23px;letter-spacing:-.03em;margin:25px 0 15px}.capability-grid p{color:var(--muted);font-size:15px}.capability-grid .tags{margin-top:25px}.experience-section{display:grid;grid-template-columns:1fr 1.3fr;gap:110px}.experience-intro>p:last-child{margin-top:25px;max-width:310px;color:var(--muted)}.timeline{border-left:1px solid #46533d;padding-left:34px}.timeline article{position:relative;padding-bottom:35px}.timeline article:last-child{padding-bottom:0}.timeline article:before{content:'';position:absolute;left:-39px;top:7px;width:8px;height:8px;background:var(--accent);border-radius:50%}.date{font:12px Consolas,monospace;color:var(--muted);margin-bottom:10px}.timeline h3{font-size:23px;margin:0;letter-spacing:-.03em}.timeline .role{font-size:14px;color:#c8d6bd;margin:4px 0 12px}.timeline article>p:last-child{font-size:15px;color:var(--muted);margin:0}.about-section{display:grid;grid-template-columns:1fr 1.3fr;gap:110px;border-top:1px solid var(--line);padding-block:80px}.about-lead{font-size:23px;line-height:1.5;letter-spacing:-.025em}.about-section>div>p:not(.eyebrow):not(.about-lead){color:var(--muted)}.education{margin-top:27px;font-size:14px}.education span{color:var(--text)}.education p{font-size:13px;color:var(--muted);margin-top:3px}.contact-section{background:var(--accent);color:#18210f;border-radius:12px;padding:52px 58px;margin-block:15px 80px}.contact-section .eyebrow{color:#405523;margin-bottom:16px}.contact-section h2{font-size:clamp(2.5rem,5vw,4.2rem)}.contact-email{display:inline-block;font-size:clamp(1rem,2.5vw,1.6rem);margin-top:28px;text-decoration:underline;text-underline-offset:6px;overflow-wrap:anywhere}.contact-email:hover{color:#405523}.contact-section>p:last-of-type{color:#405523;font-size:14px;margin:15px 0 0}.profile-links{display:flex;gap:22px}.profile-links a{margin-top:20px;text-decoration:underline}.profile-links a:hover{color:#405523}footer{display:flex;align-items:center;justify-content:space-between;gap:25px;padding-bottom:35px}footer p,footer>a:last-child{font-size:12px;color:var(--muted);margin:0}.skip-link{position:absolute;top:-100px;left:20px;background:var(--accent);color:#111;padding:10px;z-index:10}.skip-link:focus{top:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.hero{padding-top:100px;padding-bottom:90px}}@media(max-width:1000px){.wrap{width:calc(100% - 48px)}.hero{gap:30px}.system-card{padding:18px}.system-layer{gap:9px;padding:16px 12px}.layer-symbol{display:none}.experience-section,.about-section{gap:45px}.capability-grid{gap:25px}.flow-line{flex-basis:8px}.flow{gap:5px}.flow-node{font-size:12px}.section{padding-block:75px}}@media(max-width:700px){.wrap{width:calc(100% - 36px)}.site-header{height:auto;min-height:90px;flex-wrap:wrap;gap:18px;padding-block:20px}.brand{font-size:15px}nav{gap:17px;font-size:13px}nav .nav-contact{padding:4px 9px}.hero{grid-template-columns:1fr;padding-top:49px;padding-bottom:45px;gap:30px}h1{font-size:clamp(2.8rem,11vw,4.1rem)}.hero-description{font-size:17px}.location{font-size:12px}.system-card{transform:none}.layer-symbol{display:block}.system-layer{padding:19px}.proof-strip{gap:20px;grid-template-columns:1fr}.proof-strip>div{gap:22px}.proof-strip strong{min-width:80px}.proof-strip span{max-width:none}.section-heading{display:block}.section-heading>p{margin-top:20px}.project-grid,.capability-grid,.experience-section,.about-section{grid-template-columns:1fr}.project-body{padding:23px}.project-body>p{min-height:0}.project-visual{min-height:170px;padding:22px}.flow-node{font-size:12px}.capability-grid{gap:40px}.capability-grid h3{margin-top:15px}.section,.about-section{padding-block:60px}.experience-intro>p:last-child{max-width:none}.about-section{gap:28px}.contact-section{padding:35px 25px;margin-bottom:45px}.contact-section h2{font-size:2.7rem}footer{flex-wrap:wrap}footer p{order:3;flex-basis:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep native hidden behavior when a project has a real screenshot or video. */
[hidden]{display:none!important}

/* Mobile reading and touch layout. Desktop keeps the original composition. */
@media (max-width: 700px) {
  :root { --muted: #bdc5b9; }
  html { scroll-padding-top: 20px; }
  .site-header { gap: 16px; padding-block: 18px; }
  .site-header nav { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .site-header nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 3px; font-size: .875rem; text-align: center; line-height: 1.3; border-radius: 6px; }
  .site-header nav .nav-contact { padding: 8px 3px; }
  .hero { padding-top: 34px; gap: 24px; }
  h1 { font-size: clamp(2.5rem, 10.5vw, 4.1rem); letter-spacing: -.05em; line-height: 1.12; }
  .hero-description { font-size: 1.125rem; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-block: 24px; }
  .button { min-height: 48px; text-align: center; font-size: 1rem; padding: 11px 16px; }
  .location { font-size: .875rem; line-height: 1.7; margin-block: 20px 0; }
  .location span { display: block; height: 0; overflow: hidden; }
  .system-card { padding: 18px; }
  .system-top { padding-bottom: 16px; font-size: .75rem; }
  .system-layer { border: 0; background: transparent; padding: 12px 0; gap: 14px; }
  .system-layer + .connector { height: 10px; margin-left: 7px; }
  .system-layer h2 { font-size: 1.25rem; margin-bottom: 0; }
  .system-layer p { font-size: .875rem; }
  .small-tags, .layer-symbol, .system-bottom { display: none; }
  .proof-strip { gap: 22px; padding-block: 24px; }
  .proof-strip span { font-size: .875rem; }
  .section, .about-section { padding-block: 48px; }
  h2 { line-height: 1.2; letter-spacing: -.035em; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p, .project-body > p, .project-body details,
  .capability-grid p, .timeline article > p:last-child { font-size: 1rem; line-height: 1.7; }
  .section-heading > p br { display: none; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
  .filters button { min-height: 48px; padding: 10px 8px; font-size: .875rem; border-radius: 8px; line-height: 1.4; }
  .project-grid { gap: 20px; }
  /* The written project summary carries the story on small screens. Real media stays visible. */
  .project-visual { display: none; }
  .project-body { padding: 22px 20px; }
  .project-kicker { flex-wrap: wrap; font-size: .75rem; line-height: 1.6; gap: 4px 12px; }
  .project-body h3 { font-size: 1.625rem; line-height: 1.25; }
  .tags li { font-size: .875rem; padding: 4px 9px; line-height: 1.5; }
  .project-body details { padding-top: 8px; margin-top: 20px; }
  .project-body summary { width: 100%; min-height: 48px; padding-block: 10px; font-size: 1rem; }
  .project-body details p { margin-top: 8px; }
  .project-link { min-height: 48px; padding-block: 10px; }
  .capability-grid { margin-top: 32px; gap: 32px; }
  .timeline { padding-left: 24px; }
  .timeline article:before { left: -29px; }
  .timeline .role, .education, .education p { font-size: .9375rem; line-height: 1.6; }
  .date { font-size: .8125rem; }
  .about-lead { font-size: 1.25rem; line-height: 1.6; }
  .contact-section { padding: 30px 22px; }
  .contact-section h2 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .contact-email { font-size: 1.0625rem; min-height: 48px; padding-block: 8px; }
  footer > a:last-child { font-size: .875rem; min-height: 48px; display: flex; align-items: center; }
}
@media (max-width: 360px) {
  .site-header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
