@layer base, components, utilities;

@layer base {
  :root { --paper:#f6f5f0; --ink:#252e2b; --body:#515a55; --muted:#69716a; --line:#dcded5; --accent:#ac4d31; --green:#294d3d; --display:'Manrope',Arial,sans-serif; --sans:'DM Sans',Arial,sans-serif; }
  *,*::before,*::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; scroll-padding-top:28px; }
  body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); font-size:15px; line-height:1.75; -webkit-font-smoothing:antialiased; }
  h1,h2,h3,h4,p,figure,dl,dd { margin:0; }
  h1,h2,h3,h4 { font-family:var(--display); }
  h1,h2,h3 { text-wrap:balance; }
  a { color:inherit; text-decoration:none; }
  ul { margin:0; padding:0; list-style:none; }
  img { display:block; max-width:100%; height:auto; }
  svg { flex-shrink:0; }
  ::selection { background:#ead0be; color:var(--ink); }
  :focus-visible { outline:3px solid var(--accent); outline-offset:5px; border-radius:2px; }
}

@layer components {
  .page-shell { width:min(1100px,calc(100% - 96px)); margin-inline:auto; }
  .icon { display:inline-block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
  .svg-defs { position:absolute; width:0; height:0; overflow:hidden; }
  .skip-link { position:fixed; top:-100px; left:24px; z-index:50; padding:12px 20px; background:var(--ink); color:white; opacity:0; pointer-events:none; }
  .skip-link:focus { top:12px; opacity:1; pointer-events:auto; }
  .site-header { border-bottom:1px solid var(--line); }
  .header-inner { display:flex; align-items:center; justify-content:space-between; min-height:83px; gap:25px; }
  .brand { font-family:var(--display); font-size:34px; font-weight:800; letter-spacing:-3px; line-height:1; }
  .brand-dot,.accent-text { color:var(--accent); }
  .main-nav { display:flex; align-items:center; gap:30px; font-size:13px; font-weight:550; }
  .main-nav a { padding-block:10px; }
  .main-nav a:hover,.back-top:hover,.contact-links a:hover { color:var(--accent); }
  .header-contact { display:inline-flex; align-items:center; gap:22px; font-size:13px; font-weight:600; padding-block:8px; border-bottom:1px solid var(--ink); }
  .header-contact .icon { width:16px; height:16px; }
  .hero { display:grid; grid-template-columns:1.6fr 1fr; gap:80px; align-items:center; padding-block:56px; }
  .eyebrow { display:flex; gap:9px; align-items:center; font-size:10px; font-weight:600; line-height:1.6; letter-spacing:1.3px; text-transform:uppercase; }
  .eyebrow > span:not(.status-dot) { color:var(--muted); }
  .status-dot { display:inline-block; width:6px; height:6px; border-radius:50%; flex-shrink:0; background:var(--green); box-shadow:0 0 0 3px #294d3d0b; }
  .hero h1 { font-size:clamp(42px,4.3vw,59px); font-weight:600; line-height:1.15; letter-spacing:-3px; margin-top:24px; max-width:650px; }
  .hero-lead { font-size:16px; line-height:1.8; color:var(--body); margin-top:23px; max-width:580px; }
  .hero-support { font-size:13px; line-height:1.8; color:var(--muted); margin-top:12px; max-width:520px; }
  .hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:26px; }
  .button { display:inline-flex; align-items:center; justify-content:center; gap:22px; min-height:46px; padding:11px 18px; border-radius:4px; font-size:12px; font-weight:600; transition:background .2s,transform .2s; }
  .button:hover { transform:translateY(-2px); }
  .button-dark { color:var(--paper); background:var(--ink); border:1px solid var(--ink); }
  .button-dark:hover { background:#35483d; }
  .button-outline { border:1px solid #c8cec3; }
  .button-outline:hover { background:#eeeee7; }
  .button .icon { width:16px; height:16px; }
  .button-note { font-size:9px; color:var(--muted); }
  .hero-location { font-size:11px; color:var(--muted); margin-top:21px; }
  .hero-location span { padding-inline:6px; }
  .hero-aside { max-width:345px; width:100%; justify-self:end; }
  .portrait-frame { width:160px; max-width:100%; margin-inline:auto; padding:0; overflow:hidden; border-radius:8px; }
  .portrait { width:100%; aspect-ratio:1; object-fit:cover; object-position:50% 35%; border-radius:2px; }
  .hero-proof { display:flex; align-items:center; gap:13px; padding:14px; margin-top:11px; border-radius:4px; background:var(--green); color:#f0f2e9; font-size:9px; line-height:1.7; }
  .hero-proof strong { font-size:10px; font-weight:550; }
  .proof-number { font-family:var(--display); font-size:36px; line-height:1; padding-right:13px; border-right:1px solid #ffffff30; }
  .hero-proof .icon { width:15px; height:15px; margin-left:auto; }
  .stack-strip { border-block:1px solid var(--line); }
  .stack-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:68px; font-family:var(--display); font-size:14px; font-weight:600; letter-spacing:-.3px; }
  .stack-label { color:var(--muted); font-family:var(--sans); font-size:9px; font-weight:400; text-transform:uppercase; letter-spacing:1.4px; padding-right:20px; border-right:1px solid var(--line); }
  .section-space { padding-block:70px; }
  .section-heading { display:flex; align-items:end; justify-content:space-between; gap:50px; margin-bottom:28px; }
  .section-kicker { margin-bottom:13px; color:var(--muted); }
  h2 { font-size:31px; line-height:1.3; letter-spacing:-1.2px; font-weight:600; }
  .section-intro { max-width:350px; font-size:13px; line-height:1.8; color:var(--body); }
  .project-case { margin-top:20px; border:1px solid var(--line); border-radius:6px; background:#fcfcf8; overflow:hidden; }
  .case-heading { display:flex; align-items:start; justify-content:space-between; gap:22px; padding:28px 30px 0; }
  .case-context { color:var(--muted); font-size:10px; line-height:1.7; }
  .project-index { color:var(--accent); font-weight:650; margin-right:12px; }
  .case-heading h3 { font-size:25px; font-weight:650; line-height:1.4; letter-spacing:-.9px; margin-top:8px; }
  .case-heading h3 > span { color:var(--muted); font-size:17px; font-weight:500; margin-left:8px; letter-spacing:-.4px; }
  .case-summary { font-size:14px; line-height:1.8; margin-top:5px; color:var(--body); }
  .tag { display:inline-flex; align-items:center; gap:7px; border-radius:20px; padding:5px 10px; font-size:9px; line-height:1.8; white-space:nowrap; margin-top:2px; }
  .tag-green { color:var(--green); background:#e9efdf; }
  .tag-clay { color:#82462e; background:#f0e4d9; }
  .tag .status-dot { width:4px; height:4px; box-shadow:none; }
  .case-body { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:34px; padding:23px 30px 27px; }
  .case-story p,.case-points { font-size:14px; line-height:1.85; color:var(--body); }
  .case-points { margin-top:14px; }
  .case-points li { padding-left:15px; position:relative; margin-top:11px; }
  .case-points li::before { content:''; position:absolute; left:0; top:11px; width:4px; height:4px; border-radius:50%; background:#98a68d; }
  .case-points strong { color:var(--ink); font-weight:600; }
  .case-story .case-result { margin-top:16px; padding-top:13px; border-top:1px solid var(--line); color:var(--green); font-size:13px; }
  .case-story .demo-note { font-size:12px; line-height:1.8; margin-top:16px; padding:10px 13px; background:#f0f2e9; border-left:2px solid #a3b18e; border-radius:2px; }
  .case-aside { align-self:start; border-radius:4px; padding:18px; background:#f0f1e9; }
  .featured-project .case-aside { background:var(--green); color:#e8efdf; }
  .repair-project .case-aside,.promo-project .case-aside { background:#f0e9e0; }
  .aside-label { text-transform:uppercase; font-size:9px; line-height:1.5; letter-spacing:1px; color:var(--muted); }
  .featured-project .aside-label { color:#bbceaf; }
  .toolkit-label { margin-top:20px; }
  .tech-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
  .tech-tags li { border:1px solid #cfd6c7; border-radius:3px; font-size:9px; line-height:1.6; padding:4px 7px; color:var(--body); }
  .featured-project .tech-tags li { color:#e0e8d7; border-color:#80957766; }
  .erp-flow { display:flex; flex-direction:column; align-items:center; text-align:center; font-size:11px; margin-top:17px; }
  .erp-flow > span:first-child { color:#c8d8bc; }
  .flow-arrow { color:#9eb48e; font-size:20px; line-height:1.4; margin-block:4px; }
  .erp-flow > strong { font-family:var(--display); font-size:16px; font-weight:500; padding:10px 12px; border:1px solid #92ab7d77; border-radius:4px; background:#3c5744; width:100%; }
  .erp-flow > div { display:grid; grid-template-columns:1fr 1fr; gap:6px; width:100%; margin-top:9px; }
  .erp-flow > div > span { padding:5px 8px; border:1px solid #92ab7d44; border-radius:3px; color:#d1dfc6; font-size:9px; }
  .focus-list { margin-top:13px; }
  .focus-list li { font-size:11px; line-height:1.7; color:var(--body); padding-block:7px; border-bottom:1px solid #d3d7ca; }
  .focus-list li:first-child { padding-top:0; }
  .focus-list li:last-child { border-bottom:0; padding-bottom:0; }
  .offer-flow { display:flex; flex-direction:column; align-items:center; margin-top:15px; font-size:11px; line-height:1.7; color:#75513b; gap:3px; }
  .offer-flow > span:nth-child(even) { color:#af8f75; }
  .offer-flow strong { font-size:11px; font-weight:600; }
  .case-footer { display:flex; align-items:center; justify-content:space-between; gap:22px; border-top:1px solid var(--line); padding:14px 30px; background:#f8f9f3; }
  .case-footer > span { color:var(--muted); font-size:10px; line-height:1.8; }
  .text-link { display:inline-flex; align-items:center; gap:7px; font-size:11px; font-weight:600; white-space:nowrap; border-bottom:1px solid currentColor; padding-bottom:2px; line-height:1.7; }
  .text-link .icon { width:13px; height:13px; transition:transform .2s; }
  .text-link:hover .icon { transform:translate(2px,-2px); }
  .secondary-link { color:var(--body); border-color:#bdc7b4; }
  .project-links { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
  .work-footnote { font-size:10px; line-height:1.9; color:var(--muted); margin-top:14px; }
  .github-line { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); font-size:13px; }
  .github-line > span { margin-right:auto; color:var(--body); }
  .about-section { padding-block:61px; border-block:1px solid #e0e3d7; background:#eceee5; }
  .about-grid { display:grid; grid-template-columns:.85fr 1.25fr; gap:75px; }
  .about-grid h2 { font-size:30px; line-height:1.4; font-weight:550; }
  .about-signature { font-family:var(--display); font-size:13px; font-weight:650; margin-top:28px; }
  .about-signature > span { display:block; color:var(--muted); font-family:var(--sans); font-size:10px; font-weight:400; margin-top:4px; }
  .about-copy p { font-size:14px; line-height:1.9; color:var(--body); margin-top:15px; }
  .about-copy .about-opening { font-size:16px; color:var(--ink); margin-top:0; }
  .about-copy .about-closing { color:var(--green); font-weight:600; }
  .experience-layout { display:grid; grid-template-columns:1.35fr 1fr; gap:55px; }
  .timeline-entry { display:grid; grid-template-columns:118px minmax(0,1fr); gap:20px; border-top:1px solid var(--line); padding-block:23px 27px; }
  .timeline-date { color:var(--body); font-size:10px; font-weight:550; padding-top:3px; }
  .timeline-date > span { display:block; color:var(--muted); font-size:9px; font-weight:400; margin-top:5px; }
  .timeline-entry h3 { font-size:16px; line-height:1.5; letter-spacing:-.4px; font-weight:650; }
  .timeline-entry p { font-size:13px; line-height:1.85; color:var(--body); margin-top:12px; }
  .timeline-entry .timeline-company { color:var(--accent); font-size:11px; margin-top:4px; font-weight:550; }
  .timeline-entry .timeline-stack { color:var(--muted); font-size:10px; }
  .earlier-work { padding:20px; border:1px solid var(--line); border-radius:4px; background:#f0f1e8; margin-top:4px; }
  .earlier-work .eyebrow { font-size:8px; color:var(--muted); }
  .earlier-work h3 { font-size:16px; font-weight:600; letter-spacing:-.3px; margin-top:8px; }
  .earlier-work p:not(.eyebrow) { font-size:13px; color:var(--body); margin-top:9px; line-height:1.85; }
  .earlier-work .text-link { margin-top:13px; }
  .education-panel { border:1px solid var(--line); border-radius:4px; padding:25px; background:#efefe7; align-self:start; }
  .education-panel > .eyebrow { font-size:9px; color:var(--muted); }
  .education-panel > h3 { font-size:20px; font-weight:600; letter-spacing:-.5px; line-height:1.5; margin-top:12px; }
  .education-panel > p:not(.eyebrow) { font-size:12px; color:var(--body); margin-top:10px; line-height:1.85; }
  .degree { border-top:1px solid #d6dccb; margin-top:21px; padding-top:16px; }
  .degree-year { color:var(--accent); font-size:9px; font-weight:550; }
  .degree h4 { font-size:13px; font-weight:650; letter-spacing:-.2px; margin-top:4px; }
  .degree p { color:var(--body); font-size:12px; line-height:1.85; margin-top:6px; }
  .degree .thesis { padding-left:11px; border-left:2px solid #b0be9f; margin-top:12px; }
  .thesis strong { display:block; color:var(--ink); font-size:11px; font-weight:600; margin-bottom:4px; }
  .academic-qt .thesis { margin-top:0; }
  .award-link { display:inline-block; font-size:10px; color:var(--green); line-height:1.9; margin-top:10px; text-decoration:underline; text-decoration-color:#b1bea2; text-underline-offset:3px; }
  .award-link .icon { width:12px; height:12px; }
  .approach-section { padding-block:60px; background:#293b32; color:#edf1e5; }
  .approach-section .section-kicker { color:#becbb3; }
  .approach-section h2 { font-size:29px; line-height:1.4; }
  .principles-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:35px; margin-top:30px; }
  .principles-grid article { border-top:1px solid #ffffff30; padding-top:19px; }
  .principles-grid h3 { font-size:16px; letter-spacing:-.3px; font-weight:550; line-height:1.5; }
  .principles-grid p { color:#c7d3c0; font-size:13px; line-height:1.9; margin-top:12px; }
  .capabilities { display:grid; grid-template-columns:.75fr 1.25fr; gap:60px; border-top:1px solid #ffffff25; padding-top:31px; margin-top:36px; }
  .capabilities h3 { font-size:18px; line-height:1.5; letter-spacing:-.5px; font-weight:550; }
  .capabilities p { font-size:13px; color:#c7d3c0; line-height:1.9; margin-top:12px; }
  .skill-list > div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:18px; padding-block:0 12px; margin-bottom:12px; border-bottom:1px solid #ffffff17; }
  .skill-list > div:last-child { border:0; margin-bottom:0; padding-bottom:0; }
  .skill-list dt { color:#b9cbae; font-size:10px; line-height:1.9; }
  .skill-list dd { color:#e0e8d9; font-size:11px; line-height:1.9; }
  .contact-top { display:grid; grid-template-columns:1fr 1fr; gap:75px; align-items:start; }
  .contact-top h2 { font-size:36px; line-height:1.3; letter-spacing:-1.4px; }
  .contact-intro p { font-size:14px; line-height:1.85; color:var(--body); }
  .contact-intro p + p { margin-top:10px; }
  .contact-email { display:flex; align-items:center; justify-content:space-between; gap:15px; font-family:var(--display); font-size:clamp(20px,2.8vw,37px); font-weight:500; letter-spacing:-1.3px; padding-block:22px; margin-top:27px; border-block:1px solid #bfc7b8; transition:color .2s; }
  .contact-email:hover { color:var(--accent); }
  .contact-email .icon { width:28px; height:28px; stroke-width:1; }
  .contact-bottom { display:grid; grid-template-columns:1.4fr 1fr; gap:80px; margin-top:28px; }
  .language-note h3 { font-size:14px; line-height:1.5; font-weight:600; letter-spacing:-.2px; }
  .language-note > p { font-size:12px; color:var(--body); line-height:1.85; margin-top:9px; }
  .language-list { display:flex; flex-wrap:wrap; gap:17px 23px; margin-top:18px; }
  .language-list li { font-size:10px; font-weight:600; }
  .language-list span { display:block; font-size:9px; color:var(--muted); font-weight:400; margin-top:3px; }
  .contact-links { display:flex; flex-direction:column; gap:10px; padding-left:28px; border-left:1px solid var(--line); }
  .contact-links > a { display:flex; align-items:center; justify-content:space-between; gap:18px; font-size:11px; color:var(--body); padding-bottom:9px; border-bottom:1px solid var(--line); }
  .contact-links .icon { width:13px; height:13px; }
  .site-footer { border-top:1px solid var(--line); }
  .footer-inner { display:flex; align-items:center; gap:22px; min-height:78px; color:var(--muted); font-size:9px; }
  .footer-inner .brand { font-size:27px; color:var(--ink); }
  .footer-inner p { margin-left:auto; }
  .back-top { margin-left:25px; }

  @media (max-width:1050px) {
    .page-shell { width:calc(100% - 64px); }
    .hero { gap:45px; grid-template-columns:1.5fr 1fr; }
    .hero h1 { font-size:48px; letter-spacing:-2.3px; }
    .hero-lead { font-size:15px; }
    .hero-copy > .eyebrow { font-size:9px; letter-spacing:1px; gap:7px; }
    .hero-proof { gap:10px; padding:12px; }
    .hero-proof .icon { display:none; }
    .hero-proof strong { font-size:9px; }
    .hero-proof > span:not(.proof-number) { font-size:8px; }
    .stack-inner { font-size:13px; gap:16px; }
    .stack-label { font-size:8px; padding-right:15px; }
    .case-body { grid-template-columns:minmax(0,1fr) 230px; gap:25px; }
    .case-heading,.case-body { padding-inline:25px; }
    .case-footer { padding-inline:25px; flex-wrap:wrap; gap:12px; }
    .about-grid { gap:50px; }
    .experience-layout { gap:35px; grid-template-columns:1.3fr 1fr; }
    .timeline-entry { grid-template-columns:95px minmax(0,1fr); gap:17px; }
    .timeline-date { font-size:9px; }
    .education-panel { padding:22px; }
    .principles-grid { gap:25px; }
    .contact-top { gap:50px; }
    .contact-bottom { gap:50px; }
  }
  @media (max-width:800px) {
    .page-shell { width:calc(100% - 48px); }
    .header-inner { min-height:75px; }
    .main-nav { gap:20px; font-size:12px; }
    .header-contact { font-size:12px; gap:12px; }
    .hero { gap:30px; padding-block:42px; }
    .hero h1 { font-size:40px; letter-spacing:-1.9px; }
    .hero-lead { font-size:14px; line-height:1.85; }
    .hero-support { font-size:12px; }
    .hero-location { font-size:9px; }
    .hero-copy > .eyebrow { flex-wrap:wrap; font-size:8px; letter-spacing:.6px; gap:6px; }
    .button { font-size:11px; padding-inline:13px; gap:13px; }
    .hero-actions { gap:9px; }
    .hero-proof { font-size:8px; gap:8px; }
    .proof-number { font-size:30px; padding-right:8px; }
    .stack-inner { flex-wrap:wrap; justify-content:flex-start; min-height:70px; gap:10px 23px; padding-block:17px; }
    .section-space { padding-block:55px; }
    .section-heading { gap:30px; }
    h2 { font-size:27px; }
    .section-intro { font-size:12px; max-width:265px; }
    .case-heading { flex-wrap:wrap; gap:12px; }
    .case-heading .tag { margin-top:0; }
    .case-body { grid-template-columns:minmax(0,1fr) 200px; gap:22px; }
    .case-story p,.case-points { font-size:13px; }
    .case-aside { padding:16px; }
    .case-heading h3 { font-size:23px; }
    .case-summary { font-size:13px; }
    .case-footer > span { font-size:9px; }
    .about-grid { gap:35px; grid-template-columns:.9fr 1.25fr; }
    .about-grid h2 { font-size:26px; }
    .about-copy p { font-size:13px; }
    .about-copy .about-opening { font-size:15px; }
    .experience-layout { grid-template-columns:1fr; gap:27px; }
    .timeline-entry { grid-template-columns:140px minmax(0,1fr); gap:25px; }
    .timeline-date { font-size:10px; }
    .education-panel { padding:25px; }
    .degree { display:grid; grid-template-columns:80px minmax(0,1fr); gap:0 15px; }
    .degree-year { grid-row:span 3; padding-top:3px; }
    .degree h4 { margin-top:0; }
    .degree p,.degree a { grid-column:2; }
    .degree.academic-qt { display:block; }
    .approach-section h2 { font-size:26px; }
    .principles-grid { gap:23px; }
    .principles-grid h3 { font-size:15px; }
    .principles-grid p { font-size:12px; }
    .capabilities { grid-template-columns:1fr; gap:25px; }
    .capabilities p { max-width:550px; }
    .contact-top { gap:35px; }
    .contact-top h2 { font-size:31px; }
    .contact-intro p { font-size:13px; }
    .contact-bottom { gap:35px; }
    .contact-links { padding-left:20px; }
    .footer-inner { gap:17px; }
  }
  @media (max-width:600px) {
    .page-shell { width:calc(100% - 36px); }
    .header-inner { min-height:69px; gap:15px; }
    .brand { font-size:29px; }
    .main-nav { margin-left:auto; font-size:10px; gap:15px; }
    .main-nav a:nth-child(3) { display:none; }
    .header-contact { font-size:10px; gap:5px; border:0; }
    .header-contact .icon { width:13px; height:13px; }
    .hero { grid-template-columns:1fr; gap:28px; padding-block:35px; }
    .hero h1 { font-size:clamp(36px,9.5vw,49px); letter-spacing:-1.8px; line-height:1.2; margin-top:20px; }
    .hero-lead { font-size:14px; margin-top:19px; }
    .hero-support { font-size:12px; }
    .hero-actions { margin-top:22px; gap:10px; }
    .button { font-size:11px; padding-inline:14px; min-height:44px; }
    .hero-location { font-size:9px; margin-top:17px; }
    .hero-location span { padding-inline:3px; }
    .hero-aside { max-width:none; display:grid; grid-template-columns:1.15fr 1fr; gap:12px; align-items:end; }
    .portrait-frame { width:120px; padding:0; }
    .portrait { aspect-ratio:1; }
    .hero-proof { flex-direction:column; align-items:start; padding:14px; gap:11px; margin:0; min-height:142px; }
    .proof-number { width:100%; border-right:0; border-bottom:1px solid #ffffff35; padding:0 0 7px; font-size:34px; }
    .hero-proof strong { font-size:9px; }
    .hero-proof > span:not(.proof-number) { font-size:8px; }
    .stack-inner { font-size:12px; gap:10px 21px; padding-block:17px; }
    .stack-label { flex-basis:100%; padding:0; border:0; font-size:8px; }
    .section-space { padding-block:44px; }
    .section-heading { display:block; margin-bottom:22px; }
    .section-kicker { margin-bottom:12px; font-size:9px; }
    h2 { font-size:26px; letter-spacing:-.9px; }
    .section-intro { max-width:430px; font-size:13px; margin-top:13px; }
    .project-case { margin-top:17px; }
    .case-heading { padding:22px 20px 0; gap:13px; }
    .case-context { font-size:9px; }
    .case-heading h3 { font-size:23px; margin-top:7px; }
    .case-heading h3 > span { font-size:15px; margin-left:4px; }
    .case-summary { font-size:13px; margin-top:7px; }
    .tag { font-size:8px; padding:4px 9px; }
    .case-body { display:block; padding:18px 20px 22px; }
    .case-story p,.case-points { font-size:14px; line-height:1.85; }
    .case-points { margin-top:13px; }
    .case-points li { padding-left:13px; margin-top:13px; }
    .case-points li::before { top:11px; }
    .case-aside { margin-top:20px; padding:16px; }
    .aside-label { font-size:8px; }
    .focus-list { display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; margin-top:12px; }
    .focus-list li { font-size:10px; padding:0; border:0; }
    .toolkit-label { margin-top:16px; }
    .repair-project .focus-list,.school-project .focus-list,.repair-project .case-aside > .aside-label:first-child,.school-project .case-aside > .aside-label:first-child { display:none; }
    .repair-project .toolkit-label,.school-project .toolkit-label { margin-top:0; }
    .tech-tags { gap:5px; margin-top:8px; }
    .tech-tags li { font-size:9px; padding:4px 7px; }
    .erp-flow { margin-top:12px; }
    .erp-flow > div { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .erp-flow > div > span { font-size:8px; padding-inline:4px; }
    .erp-flow > strong { font-size:15px; padding:8px; }
    .flow-arrow { font-size:17px; }
    .offer-flow { font-size:11px; margin-top:12px; }
    .case-footer { padding:13px 20px; gap:13px; display:block; }
    .case-footer > span { display:block; font-size:9px; }
    .case-footer > .text-link,.case-footer > .project-links { margin-top:10px; }
    .project-links { gap:17px; }
    .text-link { font-size:11px; }
    .work-footnote { font-size:9px; line-height:1.9; margin-top:12px; }
    .github-line { gap:13px 20px; font-size:12px; margin-top:20px; padding-top:18px; }
    .github-line > span { flex-basis:100%; }
    .about-section { padding-block:42px; }
    .about-grid { grid-template-columns:1fr; gap:22px; }
    .about-grid h2 { font-size:28px; letter-spacing:-1px; }
    .about-signature { display:none; }
    .about-copy p { font-size:14px; line-height:1.9; }
    .about-copy .about-opening { font-size:15px; }
    .timeline-entry { grid-template-columns:1fr; gap:10px; padding-block:20px 23px; }
    .timeline-date { display:flex; align-items:center; gap:12px; font-size:10px; padding:0; }
    .timeline-date > span { display:inline; margin:0; font-size:9px; }
    .timeline-entry h3 { font-size:16px; }
    .timeline-entry p { font-size:14px; }
    .timeline-entry .timeline-stack { font-size:10px; }
    .earlier-work { padding:19px; }
    .earlier-work p:not(.eyebrow) { font-size:13px; }
    .education-panel { padding:22px 20px; }
    .degree { grid-template-columns:64px minmax(0,1fr); gap:0 11px; }
    .degree-year { font-size:8px; }
    .degree h4 { font-size:12px; }
    .degree p { font-size:12px; }
    .thesis strong { font-size:10px; }
    .approach-section { padding-block:42px; }
    .approach-section h2 { font-size:26px; letter-spacing:-.9px; }
    .principles-grid { grid-template-columns:1fr; gap:23px; margin-top:25px; }
    .principles-grid article { padding-top:15px; }
    .principles-grid h3 { font-size:17px; }
    .principles-grid p { font-size:14px; margin-top:10px; }
    .capabilities { margin-top:29px; padding-top:26px; gap:23px; }
    .capabilities h3 { font-size:18px; }
    .capabilities p { font-size:13px; }
    .skill-list > div { grid-template-columns:88px minmax(0,1fr); gap:14px; }
    .skill-list dt { font-size:9px; }
    .skill-list dd { font-size:11px; }
    .contact-top { grid-template-columns:1fr; gap:20px; }
    .contact-top h2 { font-size:32px; letter-spacing:-1.3px; }
    .contact-intro p { font-size:14px; }
    .contact-email { font-size:clamp(13px,4.35vw,25px); padding-block:21px; margin-top:23px; letter-spacing:-.6px; gap:7px; }
    .contact-email .icon { width:20px; height:20px; }
    .contact-bottom { grid-template-columns:1fr; gap:25px; margin-top:23px; }
    .language-note > p { font-size:12px; }
    .language-list { gap:15px 22px; }
    .contact-links { padding:0; border:0; gap:11px; }
    .contact-links > a { font-size:12px; }
    .footer-inner { flex-wrap:wrap; gap:14px; min-height:100px; padding-block:20px; font-size:8px; }
    .footer-inner .brand { font-size:26px; }
    .footer-inner p { flex-basis:100%; order:5; margin:0; }
    .back-top { margin-left:auto; }
  }
  @media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { transition:none !important; animation:none !important; }
  }
  @media print {
    :root { --paper:white; --ink:black; --body:#333; --muted:#555; }
    .page-shell { width:100%; }
    .site-header,.hero-aside,.hero-actions,.stack-strip,.site-footer,.skip-link { display:none !important; }
    .hero,.case-body,.about-grid,.experience-layout,.contact-top,.contact-bottom,.capabilities { display:block; }
    .hero,.section-space,.about-section,.approach-section { padding-block:18px; }
    .hero h1 { font-size:34px; letter-spacing:-1.5px; }
    h2,.about-grid h2,.approach-section h2,.contact-top h2 { font-size:24px; }
    .case-heading { padding:16px 16px 0; }
    .case-body { padding:14px 16px; }
    .case-footer { padding:12px 16px; }
    .case-aside { margin-top:15px; }
    .project-case,.timeline-entry,.degree,.principles-grid article { break-inside:avoid; }
    .about-section,.education-panel,.approach-section { background:white; color:black; }
    .principles-grid p,.capabilities p,.skill-list dd,.skill-list dt,.approach-section .section-kicker { color:#333; }
    .contact-email { font-size:24px; }
    .contact-links { border:0; padding:0; margin-top:20px; }
  }
}

/* Compact portrait and discreet project note. */
@layer utilities {
  .hero-aside { align-self:start; justify-self:end; padding-top:8px; display:flex; flex-direction:column; align-items:center; gap:11px; max-width:260px; }
  .portrait-frame { width:144px; height:144px; border-radius:50%; padding:0; margin:0; overflow:hidden; border:2px solid #e1e4d9; }
  .portrait { width:100%; height:100%; aspect-ratio:1; object-fit:cover; object-position:50% 31%; border-radius:50%; }
  .hero-proof { display:block; background:transparent; color:#69716a; padding:0; margin:0; min-height:0; font-size:10px; font-weight:400; line-height:1.7; text-align:center; }
  @media(max-width:600px) {
    .hero-aside { justify-self:end; width:auto; max-width:230px; padding-top:0; gap:8px; }
    .portrait-frame { width:104px; height:104px; }
    .hero-proof { font-size:9px; min-height:0; padding:0; }
  }
}

@layer utilities {
  html { scroll-padding-top:100px; }
  .site-header { position:sticky; top:0; z-index:40; background:var(--paper); box-shadow:0 2px 10px #252e2b08; }
  @media(max-width:600px) {
    html { scroll-padding-top:85px; }
    .main-nav a:nth-child(3) { display:block; }
    .main-nav { gap:11px; font-size:10px; }
    .header-inner { gap:12px; }
    .header-contact { display:none; }
  }
  @media print { .site-header { position:static; } }
}

/* Compact project galleries: thumbnails load first; full images open on demand. */
@layer utilities {
  .project-gallery { min-width:0; margin:20px 0; }
  .gallery-heading { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:11px; color:#66716a; }
  .gallery-heading > span:first-child { font-weight:600; color:#293d34; }
  .gallery-strip { display:flex; gap:10px; overflow-x:auto; padding:3px 2px 12px; scroll-snap-type:x proximity; scrollbar-width:thin; }
  .gallery-thumb { flex:0 0 156px; position:relative; display:block; border:1px solid #dce0d8; border-radius:8px; overflow:hidden; background:#eef0eb; scroll-snap-align:start; }
  .gallery-thumb img { display:block; width:100%; height:98px; object-fit:contain; }
  .gallery-thumb span { position:absolute; right:5px; bottom:5px; padding:1px 5px; background:#163c2ee6; color:white; font-size:9px; border-radius:4px; }
  .gallery-thumb:hover { border-color:#a45b40; }
  .gallery-thumb:focus-visible, .gallery-lightbox button:focus-visible { outline:3px solid #c57954; outline-offset:2px; }
  .gallery-lightbox { position:fixed; inset:0; margin:auto; padding:16px; width:min(1200px,94vw); max-width:94vw; max-height:94dvh; border:1px solid #dce0d8; border-radius:14px; background:#fafaf6; color:#203d30; box-shadow:0 24px 100px #0005; }
  .gallery-lightbox::backdrop { background:#101e19d9; }
  .lightbox-toolbar, .lightbox-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .lightbox-toolbar { margin-bottom:12px; }
  .lightbox-toolbar p { font-size:13px; font-weight:600; }
  .gallery-lightbox button { min-width:44px; min-height:44px; padding:8px 12px; cursor:pointer; border:1px solid #d8ded6; border-radius:8px; background:white; font-size:13px; }
  .lightbox-stage { display:flex; align-items:center; justify-content:center; background:#e9ece6; border-radius:6px; overflow:hidden; }
  .lightbox-image { display:block; width:100%; height:min(70dvh,800px); object-fit:contain; }
  .lightbox-controls { margin-top:12px; }
  .lightbox-controls span { font-size:11px; color:#66716a; }
  @media(max-width:600px) {
    .gallery-thumb { flex-basis:130px; }
    .gallery-thumb img { height:82px; }
    .gallery-heading { font-size:10px; flex-wrap:wrap; gap:4px; }
    .gallery-lightbox { padding:10px; width:96vw; max-width:96vw; }
    .lightbox-image { height:65dvh; }
    .lightbox-controls span { display:none; }
  }
  @media print { .project-gallery, .gallery-lightbox { display:none; } }
}

@layer utilities {
  .language-switch { display:flex; align-items:center; gap:2px; padding:3px; border:1px solid #d8ded6; border-radius:8px; flex-shrink:0; }
  .language-switch a { display:inline-flex; align-items:center; justify-content:center; min-width:32px; min-height:38px; padding:4px 6px; border-radius:5px; font-size:11px; font-weight:600; }
  .language-switch a[aria-current="page"] { background:#203d30; color:#fff; }
  .language-switch a:focus-visible { outline:2px solid #a45b40; outline-offset:2px; }
  .header-inner { gap:16px; }
  @media(max-width:800px) { .header-contact { display:none; } }
  @media(max-width:600px) {
    .header-inner { flex-wrap:wrap; gap:4px 12px; padding-top:8px; padding-bottom:8px; }
    .header-inner > .brand { order:0; }
    .language-switch { order:1; margin-left:auto; }
    .main-nav { order:2; flex-basis:100%; justify-content:center; gap:28px; font-size:12px; }
    .main-nav a { display:block; padding:8px 0; }
    html { scroll-padding-top:125px; }
  }
}
