@layer reset, base, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  img, svg { display: block; }
  img { max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --paper: #f7f8f4; --white: #fff; --ink: #242b27; --muted: #666f66;
    --green: #234d3c; --green-light: #edf1e8; --lime: #d8ed9e;
    --line: #dce1d7; --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 110px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--lime); color: var(--green); }
  :focus-visible { outline: 3px solid #46734b; outline-offset: 5px; border-radius: 3px; }
  button { cursor: pointer; }
  h1, h2, h3 { font-weight: 500; }
  h1 { font-size: clamp(48px, 5.05vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
  h2 { font-size: clamp(30px, 3.05vw, 46px); line-height: 1.15; letter-spacing: -.042em; }
  h3 { letter-spacing: -.025em; }
  em { font-family: var(--serif); font-weight: 400; color: var(--green); letter-spacing: -.065em; }
  p { text-wrap: pretty; }
  .icon { flex: 0 0 auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .muted { color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
  .tags li { font-family: var(--mono); font-size: 9px; color: #53604f; border: 1px solid #d3dccb; padding: 3px 7px; border-radius: 4px; line-height: 1.5; }
  .eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .13em; line-height: 1.6; }
  .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #658448; margin-right: 9px; flex: 0 0 auto; }
  .skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--green); color: var(--white); padding: 12px 20px; }
  .skip-link:focus { top: 14px; }
}

@layer layout {
  .shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
  .section { padding-block: 100px; }
  .site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
  .brand { display: inline-flex; align-items: center; gap: 13px; }
  .brand-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--green); color: var(--paper); font-size: 29px; letter-spacing: -.08em; font-weight: 600; border-radius: 9px; padding-bottom: 4px; }
  .brand-mark span { color: var(--lime); }
  .brand-name { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
  .brand-name > span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; margin-top: 4px; color: var(--muted); }
  .desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 30px; }
  .desktop-nav a { font-size: 12px; color: var(--muted); padding: 16px 0; transition: color .2s; }
  .desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--green); }
  .desktop-nav a[aria-current] { box-shadow: 0 1px 0 var(--green); }
  .header-actions { display: flex; align-items: center; gap: 20px; }
  .language-switch { padding: 3px; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 7px; }
  .language-switch a { display: grid; place-items: center; min-height: 30px; min-width: 32px; font-family: var(--mono); font-size: 10px; color: var(--muted); border-radius: 4px; }
  .language-switch a[aria-current] { background: var(--green); color: var(--white); }
  .menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: transparent; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 38px; }
  .hero-topline, .hero-bottom { display: flex; align-items: center; justify-content: space-between; }
  .hero-topline { color: var(--green); }
  .hero-topline .eyebrow { display: flex; align-items: center; }
  .location { font-family: var(--mono); color: var(--muted); font-size: 10px; }
  .location span { margin-left: 12px; }
  .hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: center; padding-block: 65px 74px; }
  .hero-description { max-width: 480px; margin-top: 27px; color: var(--muted); font-size: 16px; line-height: 1.8; }
  .hero-actions { margin-top: 33px; display: flex; gap: 27px; align-items: center; flex-wrap: wrap; }
  .hero-bottom { padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .hero-bottom > a { display: grid; place-items: center; width: 32px; height: 32px; }
  .hero-bottom .icon { width: 19px; height: 19px; }
  .hero-stack b { font-weight: 400; color: #a5ae9c; margin-inline: 9px; }
  .about > .eyebrow { margin-bottom: 30px; }
  .about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .about-grid h2 { font-size: clamp(29px, 2.75vw, 40px); }
  .about-copy { color: var(--muted); font-size: 14px; }
  .about-copy p + p { margin-top: 17px; }
  .expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-block: 1px solid var(--line); }
  .expertise { padding: 27px 30px; }
  .expertise:first-child { padding-left: 0; }
  .expertise:last-child { padding-right: 0; }
  .expertise + .expertise { border-left: 1px solid var(--line); }
  .expertise-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; color: var(--green); }
  .expertise-top > span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .expertise h3 { font-size: 18px; margin-bottom: 10px; }
  .expertise > p { color: var(--muted); font-size: 13px; max-width: 260px; min-height: 43px; }
  .expertise .tags { margin-top: 22px; }
  .experience-section { background: #eef1e9; border-block: 1px solid var(--line); }
  .section-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 90px; align-items: end; margin-top: 29px; }
  .section-heading > p { color: var(--muted); font-size: 14px; }
  .timeline { padding: 0; margin: 53px 0 0; list-style: none; }
  .timeline-item { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; border-top: 1px solid #d3dacd; padding-block: 33px; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-date { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 7px; align-content: flex-start; }
  .timeline-point { width: 7px; height: 7px; border: 1px solid #8f9b85; border-radius: 50%; margin-top: 5px; }
  .current-point { background: var(--green); border-color: var(--green); }
  .current-label { font-family: var(--mono); font-size: 8px; color: var(--green); border: 1px solid #c4d2bb; padding: 3px 7px; border-radius: 3px; margin-left: 19px; letter-spacing: .05em; }
  .job-heading { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .job-heading h3 { font-size: 26px; line-height: 1.3; }
  .job-heading > span { font-size: 11px; color: var(--muted); }
  .job-role { font-size: 13px; margin-top: 6px; }
  .job-description { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 565px; }
  .timeline .tags { margin-top: 17px; }
  .projects-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 90px; margin-top: 30px; margin-bottom: 45px; }
  .projects-heading h2 { font-size: clamp(40px, 4vw, 60px); line-height: 1.06; }
  .projects-heading > p { color: var(--muted); font-size: 14px; }
  .flagship { display: grid; grid-template-columns: .86fr 1.14fr; background: #edf1e8; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .flagship-copy { padding: 38px 34px; }
  .flagship-kicker { display: flex; align-items: center; gap: 16px; font-size: 9px; font-family: var(--mono); letter-spacing: .08em; color: var(--green); margin-bottom: 32px; }
  .flagship-kicker > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #bdccb1; border-radius: 50%; font-size: 10px; }
  .project-category { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  .flagship h3 { font-size: 39px; letter-spacing: -.045em; line-height: 1.2; margin-bottom: 9px; }
  .project-status { display: inline-block; font-family: var(--mono); font-size: 9px; line-height: 1.5; color: var(--green); border: 1px solid #c8d6bc; background: #e6eddf; padding: 4px 8px; border-radius: 4px; }
  .project-description { font-size: 14px; color: var(--muted); margin-top: 21px; }
  .project-features { font-size: 12px; color: var(--muted); list-style: none; padding: 0; margin: 19px 0 25px; }
  .project-features li { position: relative; padding-left: 15px; margin-top: 8px; }
  .project-features li::before { content: '+'; position: absolute; left: 0; color: var(--green); }
  .flagship-figure { display: flex; flex-direction: column; justify-content: center; background: #e2e9d9; padding: 35px 0 35px 27px; position: relative; overflow: hidden; }
  .macro-capture { display: block; position: relative; border: 1px solid #cbd4c1; border-right: 0; border-radius: 7px 0 0 7px; box-shadow: 0 15px 35px #233a2412; overflow: hidden; background: white; }
  .macro-capture img { max-width: none; width: 720px; height: auto; min-height: 370px; object-fit: cover; object-position: left top; }
  .flagship-figure figcaption { display: flex; align-items: center; font-size: 9px; font-family: var(--mono); color: #53654a; margin-top: 20px; padding-right: 25px; }
  .flagship-figure figcaption > span:last-child { margin-left: auto; }
  .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 25px; }
  .project-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fbfcf9; }
  .project-figure { margin: 0; border-bottom: 1px solid var(--line); }
  .project-figure > :first-child { height: 185px; }
  .project-figure figcaption { font-family: var(--mono); font-size: 8px; color: var(--muted); background: #f1f3ed; padding: 9px 16px; border-top: 1px solid #e5e9df; }
  .project-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
  .project-card-kicker { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 8px; letter-spacing: .065em; color: var(--muted); margin-bottom: 16px; }
  .project-card h3 { font-size: 21px; letter-spacing: -.035em; margin-bottom: 9px; }
  .project-card .project-status { align-self: flex-start; margin-bottom: 20px; }
  .project-card-body > p:not(.project-status) { font-size: 13px; color: var(--muted); }
  .project-card .project-note { margin-top: 13px; padding-top: 14px; border-top: 1px solid #e5e9df; font-size: 11px !important; }
  .project-card .tags { margin-top: auto; padding-top: 24px; gap: 6px; }
  .method { display: grid; grid-template-columns: 44px .9fr 1.1fr; gap: 24px; align-items: center; border-block: 1px solid var(--line); margin-top: 56px; padding-block: 31px; }
  .method-symbol { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: grid; place-items: center; color: var(--green); }
  .method .eyebrow { font-size: 8px; color: var(--muted); }
  .method h3 { font-size: 21px; margin-top: 5px; }
  .method > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
  .contact-section { background: var(--green); color: var(--paper); }
  .contact-inner { padding-block: 66px 32px; }
  .contact-inner > .eyebrow { color: #b3c8b6; }
  .contact-grid { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 70px; margin-top: 28px; }
  .contact-grid h2 { font-size: clamp(34px, 3.7vw, 54px); }
  .contact-grid em { color: var(--lime); }
  .contact-grid p { color: #bccfc0; font-size: 13px; margin-top: 22px; }
  .contact-asterisk { color: var(--lime); font-size: 140px; line-height: 1; justify-self: end; font-family: var(--sans); }
  .email-link { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 36px 28px; font-size: clamp(26px, 4.5vw, 65px); letter-spacing: -.045em; border-bottom: 1px solid #597560; transition: color .2s; }
  .email-link .icon { width: 40px; height: 40px; }
  .email-link:hover { color: var(--lime); }
  .contact-bottom { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-top: 22px; }
  .contact-bottom > span { font-family: var(--mono); font-size: 9px; color: #b7cbbd; }
  .social-links { display: flex; gap: 30px; }
  .social-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; padding-block: 8px; }
  .social-link:hover { color: var(--lime); }
  .social-link .icon { width: 15px; height: 15px; }
  .site-footer { padding-block: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
  .footer-brand { font-size: 13px; color: var(--ink); }
  .footer-brand span { font-size: 9px; font-family: var(--mono); color: var(--muted); margin-left: 14px; }
  .back-top { display: inline-flex; align-items: center; gap: 12px; }
  .back-top .icon { height: 15px; width: 15px; }
}

@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 48px; padding: 12px 20px; font-size: 12px; border-radius: 6px; transition: background .2s, transform .2s; }
  .button .icon { width: 17px; height: 17px; }
  .button-primary { background: var(--green); color: var(--white); border: 1px solid var(--green); }
  .button-primary:hover { background: #32634b; transform: translateY(-2px); }
  .text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; padding-block: 10px; }
  .text-link .icon { width: 14px; height: 14px; }
  .text-link:hover { color: #51772c; }
  .architecture { align-self: stretch; display: flex; flex-direction: column; color: var(--green); margin-top: 2px; }
  .architecture-top, .architecture-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 8px; color: #6a7862; letter-spacing: .08em; }
  .architecture-bottom { letter-spacing: -.02em; font-size: 8px; }
  .tiny-cross { color: #95a68b; font-family: var(--mono); font-size: 17px; line-height: 1; }
  .architecture-map { flex: 1; min-height: 305px; position: relative; background-image: radial-gradient(#b5c0a9 1px, transparent 1px); background-size: 18px 18px; background-position: center; margin-block: 12px; overflow: hidden; }
  .orbit { position: absolute; border: 1px solid #c5d0b9; border-radius: 50%; width: 210px; height: 210px; top: calc(50% - 105px); left: calc(50% - 105px); }
  .orbit-two { width: 304px; height: 304px; top: calc(50% - 152px); left: calc(50% - 152px); border-style: dashed; border-color: #d2daca; }
  .arch-core { position: absolute; top: calc(50% - 58px); left: calc(50% - 58px); display: flex; align-items: center; justify-content: center; flex-direction: column; width: 116px; height: 116px; border: 1px solid var(--green); border-radius: 21px; background: var(--green); color: var(--paper); box-shadow: 0 0 0 9px var(--paper), 0 0 0 10px #c8d3bd; transform: rotate(-5deg); }
  .core-symbol { font-family: var(--mono); font-size: 45px; line-height: 1; letter-spacing: -.14em; margin-left: -5px; }
  .core-symbol i { color: var(--lime); font-style: normal; font-size: 34px; margin-inline: 4px; }
  .arch-core > span:last-child { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; margin-top: 8px; }
  .arch-node { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: absolute; background: var(--paper); border: 1px solid #c3cfb8; border-radius: 6px; font-size: 10px; padding: 11px 13px; white-space: nowrap; }
  .arch-node .icon { width: 15px; height: 15px; }
  .node-index { font-family: var(--mono); font-size: 8px; color: #7a8c6d; }
  .node-input { top: 22px; left: 4px; transform: rotate(-3deg); }
  .node-service { top: 53%; right: 0; transform: translateY(38px) rotate(3deg); }
  .node-data { bottom: 14px; left: 26px; transform: rotate(-3deg); }
  .data-symbol { font-size: 17px; line-height: 1; }
  .map-label { position: absolute; font-family: var(--mono); font-size: 9px; background: #e9f0df; padding: 3px 6px; color: #6b8059; }
  .label-api { right: 35px; top: 40px; }
  .label-go { left: 6px; top: 55%; }
  .map-dot { position: absolute; height: 6px; width: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper); }
  .dot-one { top: 73px; right: 98px; }
  .dot-two { bottom: 66px; left: 90px; background: #91af5e; }
  .capture-link { cursor: zoom-in; }
  .capture-link:focus-visible { outline-offset: -5px; }
  .zoom-corner { position: absolute; right: 12px; bottom: 12px; background: var(--paper); border: 1px solid #d5dece; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; transition: background .2s; }
  .zoom-corner .icon { width: 16px; height: 16px; }
  .capture-link:hover .zoom-corner { background: var(--lime); }
  .arango-capture { display: flex; position: relative; align-items: center; background: #202534; overflow: hidden; padding: 18px 0 18px 18px; }
  .arango-capture img { max-width: none; height: 148px; width: auto; border-radius: 3px; border: 1px solid #525968; }
  .arango-capture .zoom-corner { background: #323d45; border-color: #5a666b; color: #e4eccd; }
  .email-art { background: #e9eee2; padding: 47px 24px 30px; }
  .email-flow { display: flex; align-items: center; justify-content: space-between; }
  .flow-mail, .flow-ai { width: 43px; height: 43px; border: 1px solid #bdcbae; background: #f5f7ed; border-radius: 8px; display: grid; place-items: center; position: relative; flex-shrink: 0; color: var(--green); }
  .mail-mark { position: absolute; top: -3px; right: -3px; height: 9px; width: 9px; border: 2px solid #e9eee2; border-radius: 50%; background: #6a8e46; }
  .flow-ai { background: var(--green); color: var(--lime); border-color: var(--green); }
  .flow-line { flex: 1; position: relative; border-top: 1px dashed #a6b598; margin-inline: 8px; }
  .flow-line::after { content: ''; position: absolute; right: 0; top: -3px; width: 5px; height: 5px; border-right: 1px solid #8c9f7a; border-top: 1px solid #8c9f7a; transform: rotate(45deg); }
  .flow-folders { width: 43px; height: 47px; position: relative; }
  .flow-folders span { position: absolute; width: 30px; height: 23px; border: 1px solid #809964; background: #cbdcaf; border-radius: 2px 4px 4px 4px; }
  .flow-folders span::before { content: ''; position: absolute; left: -1px; top: -4px; width: 13px; height: 4px; border: 1px solid #809964; border-bottom: 0; border-radius: 2px 2px 0 0; background: inherit; }
  .flow-folders span:first-child { left: 0; top: 0; }
  .flow-folders span:nth-child(2) { left: 6px; top: 11px; background: #dce7ca; }
  .flow-folders span:last-child { left: 12px; top: 22px; background: #f1f5e9; }
  .flow-labels { display: flex; justify-content: space-between; gap: 6px; margin-top: 18px; font-family: var(--mono); font-size: 8px; color: #61734f; }
  .discord-art { background: #eeeaf5; padding: 22px 24px 18px; color: #6f6686; }
  .presence-header { display: flex; align-items: center; font-family: var(--mono); font-size: 9px; margin-bottom: 20px; }
  .presence-header > span:last-child { margin-left: auto; }
  .presence-dot { width: 5px; height: 5px; background: #8571ab; border-radius: 50%; margin-right: 7px; }
  .presence-rows { display: flex; flex-direction: column; gap: 8px; }
  .presence-row { display: flex; align-items: center; gap: 15px; }
  .presence-avatar { height: 18px; width: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 7px; font-family: var(--mono); background: #e0d9ec; }
  .presence-track { display: flex; gap: 4px; align-items: center; height: 10px; background: #e5e0ed; flex: 1; border-radius: 2px; }
  .presence-track span { height: 100%; background: #baaace; width: 22%; border-radius: 2px; }
  .presence-track span:first-child { width: 38%; background: #9d87b7; }
  .row-2 .presence-track span:first-child { margin-left: 15%; width: 28%; }
  .row-2 .presence-track span:nth-child(2) { width: 12%; }
  .row-3 .presence-track span:first-child { width: 20%; }
  .row-3 .presence-track span:nth-child(2) { width: 38%; }
  .presence-foot { display: flex; gap: 13px; justify-content: space-between; font-size: 7px; font-family: var(--mono); margin-top: 17px; }
  .macro-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 360px; color: var(--green); }
  .macro-monogram { font-size: 95px; letter-spacing: -.1em; line-height: 1; }
  .macro-monogram > span { font-size: 65px; }
  .macro-wordmark { font-size: 30px; margin-top: 15px; }
  .macro-placeholder > span:last-child { font-family: var(--mono); font-size: 12px; }
  .arango-fallback { display: grid; place-content: center; gap: 10px; background: #202534; color: #bfce99; font-family: var(--mono); }
  .arango-fallback > span:last-child { font-size: 10px; }
  .lightbox { max-width: min(1200px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #83927c; border-radius: 9px; background: var(--paper); color: var(--ink); }
  .lightbox::backdrop { background: #17261dd9; }
  .lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 8px 16px; position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .lightbox-toolbar p { font-family: var(--mono); font-size: 11px; }
  .lightbox-close { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 0; background: transparent; }
  .lightbox-image { width: 100%; max-height: calc(100dvh - 116px); object-fit: contain; }
  .lightbox-open { overflow: hidden; }
  .not-found { padding-block: 70px; }
  .not-found > .eyebrow { margin-top: 100px; margin-bottom: 20px; }
  .not-found > p:not(.eyebrow) { color: var(--muted); margin-top: 30px; }
}

@layer responsive {
  @media (min-width: 1600px) { .hero-grid { padding-block: 84px 96px; } }
  @media (max-width: 1100px) {
    .shell { width: calc(100% - 72px); }
    .desktop-nav { gap: 22px; margin-right: 10px; }
    .hero-grid { gap: 24px; grid-template-columns: 1.5fr 1fr; }
    .architecture-map { min-height: 300px; }
    .arch-node { gap: 8px; padding: 9px; font-size: 9px; }
    .node-data { left: 2px; }
    .node-input { left: 0; }
    .section-heading, .about-grid, .projects-heading { gap: 45px; }
    .expertise { padding-inline: 20px; }
    .project-grid { gap: 16px; }
    .project-card-body { padding: 20px; }
    .flagship-copy { padding: 30px 25px; }
    .timeline-item { gap: 25px; }
    .method { grid-template-columns: 36px 1fr 1fr; gap: 20px; }
    .method-symbol { width: 36px; height: 36px; }
    .method h3 { font-size: 19px; }
  }
  @media (max-width: 800px) {
    .shell { width: calc(100% - 48px); }
    .header-inner { min-height: 76px; gap: 16px; }
    .brand-mark { width: 38px; height: 38px; font-size: 25px; }
    .brand-name { font-size: 14px; }
    .brand-name > span { font-size: 7px; }
    .desktop-nav { display: none; }
    .header-actions { gap: 12px; }
    .menu-toggle { display: flex; }
    .mobile-nav { position: absolute; top: calc(100% + 1px); left: -24px; right: -24px; padding: 14px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 15px #1830260c; }
    .mobile-nav a { display: flex; align-items: center; gap: 22px; font-size: 23px; padding-block: 15px; border-bottom: 1px solid var(--line); }
    .mobile-nav a > span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
    .mobile-nav a .icon { margin-left: auto; width: 19px; }
    .section { padding-block: 72px; }
    .hero { padding-top: 25px; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 45px 48px; }
    .hero-copy h1 { font-size: clamp(42px, 7.7vw, 65px); }
    .hero-description { max-width: 540px; }
    .architecture { display: none; }
    .hero-actions { gap: 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 25px; }
    .about-grid h2 { font-size: 35px; }
    .about-copy { max-width: 600px; }
    .expertise h3 { font-size: 16px; }
    .expertise > p { min-height: 64px; font-size: 12px; }
    .expertise .tags { gap: 5px; }
    .section-heading { grid-template-columns: 1fr; gap: 17px; }
    .section-heading > p { max-width: 440px; }
    .timeline { margin-top: 35px; }
    .timeline-item { grid-template-columns: 1fr 1.8fr; }
    .timeline-date { gap: 8px; font-size: 10px; }
    .job-heading { gap: 4px; flex-direction: column; }
    .projects-heading { gap: 35px; }
    .projects-heading h2 { font-size: 42px; }
    .flagship { grid-template-columns: 1fr; }
    .flagship-copy { padding: 30px; }
    .flagship-kicker { margin-bottom: 22px; }
    .flagship-figure { padding: 30px; }
    .macro-capture { border-right: 1px solid #cbd4c1; border-radius: 7px; }
    .macro-capture img { width: 100%; min-height: 0; }
    .flagship-figure figcaption { margin-top: 14px; padding-right: 0; }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .project-card:last-child .project-figure { border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
    .project-card:last-child .discord-art { flex: 1; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
    .project-card:last-child .project-figure figcaption { margin-top: auto; }
    .method { grid-template-columns: 40px 1fr; gap: 18px; margin-top: 35px; }
    .method > p { grid-column: 2; }
    .contact-grid { grid-template-columns: 1fr 90px; gap: 20px; }
    .contact-asterisk { font-size: 90px; }
    .contact-grid h2 { font-size: 36px; }
    .email-link { font-size: 40px; }
    .email-link .icon { width: 28px; height: 28px; }
    .site-footer { flex-wrap: wrap; }
    .site-footer > span { order: 3; flex-basis: 100%; }
  }
  @media (max-width: 520px) {
    .shell { width: calc(100% - 40px); }
    .header-inner { gap: 12px; min-height: 72px; }
    .header-actions { gap: 8px; }
    .brand { gap: 9px; }
    .brand-name > span { display: none; }
    .brand-name { font-size: 13px; }
    .language-switch a { min-height: 30px; min-width: 29px; }
    .menu-toggle { width: 38px; height: 38px; }
    .mobile-nav { left: -20px; right: -20px; padding-inline: 20px; }
    .hero-topline .eyebrow { font-size: 8px; letter-spacing: .08em; }
    .location { font-size: 8px; }
    .location span { margin-left: 4px; }
    .hero-grid { padding-block: 40px 43px; }
    .hero-copy h1 { font-size: clamp(32px, 8.3vw, 45px); letter-spacing: -.055em; }
    .hero-copy h1 em { letter-spacing: -.045em; }
    .hero-description { font-size: 14px; margin-top: 23px; line-height: 1.8; }
    .hero-actions { margin-top: 26px; gap: 19px; }
    .button { font-size: 11px; padding-inline: 15px; gap: 12px; min-height: 47px; }
    .text-link { font-size: 11px; gap: 6px; }
    .hero-bottom { font-size: 8px; padding-block: 12px; gap: 10px; }
    .hero-stack b { margin-inline: 4px; }
    .hero-bottom .icon { width: 17px; }
    .section { padding-block: 58px; }
    .about > .eyebrow { margin-bottom: 24px; }
    .eyebrow { font-size: 9px; }
    .about-grid h2 { font-size: 29px; }
    .about-copy { font-size: 13px; }
    .expertise-grid { grid-template-columns: 1fr; margin-top: 30px; }
    .expertise { padding: 22px 0; }
    .expertise + .expertise { border-left: 0; border-top: 1px solid var(--line); }
    .expertise-top { margin-bottom: 14px; }
    .expertise h3 { font-size: 19px; }
    .expertise > p { font-size: 13px; min-height: 0; max-width: 100%; }
    .expertise .tags { margin-top: 15px; }
    .timeline-item { grid-template-columns: 1fr; gap: 15px; padding-block: 26px; }
    .timeline-date { padding-top: 0; gap: 10px; align-items: center; }
    .timeline-point { margin-top: 0; }
    .current-label { margin-left: auto; }
    .timeline-content { padding-left: 17px; }
    .job-heading h3 { font-size: 25px; }
    .job-heading > span { font-size: 10px; }
    .section-heading { margin-top: 22px; }
    .section-heading h2 { font-size: 31px; }
    .section-heading > p { font-size: 13px; }
    .projects-heading { grid-template-columns: 1fr; gap: 22px; margin-top: 23px; margin-bottom: 29px; }
    .projects-heading h2 { font-size: 46px; }
    .projects-heading > p { font-size: 13px; }
    .flagship-copy { padding: 24px; }
    .flagship h3 { font-size: 36px; }
    .project-description { font-size: 13px; }
    .flagship-figure { padding: 20px 16px; }
    .flagship-figure figcaption { font-size: 8px; }
    .flagship-figure figcaption .status-dot { width: 4px; height: 4px; margin-right: 5px; }
    .project-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
    .project-card:last-child { display: flex; grid-column: auto; }
    .project-card:last-child .project-figure { border-right: 0; border-bottom: 1px solid var(--line); }
    .project-card:last-child .discord-art { min-height: 0; }
    .project-card-body { padding: 24px; }
    .project-figure > :first-child { height: 190px; }
    .email-art { padding-inline: 43px; }
    .flow-labels { font-size: 9px; }
    .arango-capture { padding-left: 25px; }
    .arango-capture img { height: 150px; }
    .discord-art { padding-inline: 40px; }
    .presence-foot { font-size: 8px; }
    .method { grid-template-columns: 1fr; gap: 15px; padding-block: 25px; }
    .method-symbol { display: none; }
    .method > p { grid-column: 1; }
    .method h3 { font-size: 22px; }
    .contact-inner { padding-block: 48px 25px; }
    .contact-grid { grid-template-columns: 1fr; margin-top: 25px; }
    .contact-grid h2 { font-size: 31px; }
    .contact-asterisk { display: none; }
    .contact-grid p { font-size: 12px; margin-top: 20px; max-width: 300px; }
    .email-link { font-size: clamp(22px, 6.2vw, 32px); padding-block: 28px 23px; gap: 8px; }
    .email-link .icon { width: 22px; height: 22px; }
    .contact-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 15px; }
    .contact-bottom > span { font-size: 8px; }
    .social-links { gap: 26px; }
    .site-footer { padding-block: 23px; gap: 16px; }
    .site-footer > span { font-size: 9px; }
    .lightbox { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .lightbox-toolbar { padding-inline: 10px; gap: 10px; }
    .lightbox-toolbar p { font-size: 9px; }
    .not-found > .eyebrow { margin-top: 65px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
  @media print {
    body { background: white; font-size: 11px; }
    .site-header { position: static; }
    .header-actions, .desktop-nav, .hero-actions, .architecture, .hero-bottom, .lightbox, .back-top { display: none; }
    .shell { width: 100%; }
    .section { padding-block: 28px; }
    .hero-grid { padding-block: 30px; }
    .hero-copy h1 { font-size: 36px; }
    .expertise, .timeline-item, .project-card { break-inside: avoid; }
    .contact-section { background: white; color: var(--ink); }
    .contact-section p, .contact-section em, .contact-bottom > span { color: var(--muted); }
    .contact-asterisk { display: none; }
    .email-link { font-size: 30px; }
  }
}
