@font-face {
  font-family: Portfolio;
  src: local("Inter"), local("Arial");
  font-display: swap;
}
:root {
  --ink: #172019;
  --muted: #566259;
  --paper: #f7f9f6;
  --line: #d9e0d8;
  --lime: #c3f36a;
  --dark: #101812;
  font-family: Portfolio, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #478500; outline-offset: 5px; }
::selection { color: var(--dark); background: var(--lime); }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 1rem; top: -8rem; padding: 1rem;
  background: white; color: black; }
.skip:focus { top: 1rem; }
.notice { background: var(--dark); color: #e3eade; font-size: .875rem; }
.notice-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.notice strong { font-weight: 600; color: var(--lime); }
.notice a { white-space: nowrap; }
.site-header { display: flex; justify-content: space-between; align-items: center;
  padding-block: 1.75rem; gap: 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.2rem;
  font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: var(--lime);
  width: 2rem; height: 2rem; font-size: 1.35rem; border-radius: 4px; }
.brand-slash { color: #70816c; font-weight: 400; margin-inline: .2rem; }
.brand-word { font-size: .75rem; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
nav { display: flex; align-items: center; gap: 2rem; font-size: .875rem;
  font-weight: 600; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-contact { border: 1px solid var(--ink); padding: .5rem 1rem; border-radius: 5px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem;
  padding-block: 5rem 5.5rem; align-items: center; min-height: 660px; }
.eyebrow { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; margin: 0 0 1.4rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -.065em;
  font-weight: 650; margin-bottom: 1.75rem; }
h1 em { font-style: normal; position: relative; z-index: 0; }
h1 em::after { content: ""; position: absolute; height: .24em; background: var(--lime);
  bottom: .08em; left: -.01em; right: -.04em; z-index: -1; }
.hero-deck { max-width: 33rem; font-size: 1.3rem; line-height: 1.5; letter-spacing: -.02em; }
.hero-intro { color: var(--muted); max-width: 32rem; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center;
  padding: .85rem 1.35rem; border-radius: 5px; font-weight: 650; font-size: .875rem;
  text-decoration: none; border: 1px solid transparent; min-height: 48px; }
.primary { background: var(--lime); color: var(--dark); border-color: #a8d856; }
.primary:hover { background: #d1ff83; }
.text-link { font-size: .875rem; font-weight: 650; }
.availability { display: flex; align-items: center; gap: .6rem; font-size: .8rem;
  color: var(--muted); margin: 1.8rem 0 0; }
.availability span { width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e7d25;
  flex-shrink: 0;
  }
.hero-visual { position: relative; min-width: 0; height: 440px; }
.visual-grid { position: absolute; inset: -1rem -1rem 0; opacity: .65;
  background-image: linear-gradient(#d9e2d6 1px, transparent 1px),
    linear-gradient(90deg, #d9e2d6 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(ellipse, black 40%, transparent 73%); }
.screen { overflow: hidden; border: 1px solid #414a40; border-radius: 8px;
  background: #141a20; box-shadow: 0 22px 65px #15221720; }
.main-screen { position: absolute; top: 0; left: 0; right: 0; transform: rotate(-3deg); }
.screen-top { padding: .65rem .8rem; display: flex; align-items: center; gap: .6rem;
  color: #d6ded8; font: 500 .6rem ui-monospace, monospace; letter-spacing: .07em; }
.screen-top span:last-child { margin-left: auto; font-size: .55rem; color: #a6b39e; }
.screen-top .screen-dots { font-size: .5rem; color: #8e9b8b; margin: 0; }
.main-screen img { width: 100%; aspect-ratio: 1.63; object-fit: cover; object-position: top; }
.small-screen { position: absolute; width: 65%; right: -1rem; bottom: .4rem;
  transform: rotate(3deg); border-color: #536449; }
.small-screen img { width: 100%; }
.visual-note { position: absolute; bottom: .5rem; left: 0; display: flex; align-items: center;
  gap: .55rem; font: 500 .6rem ui-monospace, monospace; letter-spacing: .08em; }
.crosshair { font-size: 1.8rem; font-weight: 300; }
.discipline-band { border-block: 1px solid var(--line); }
.disciplines { display: flex; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.4rem; font-size: .8rem; font-weight: 550; color: var(--muted); }
.section-space { padding-block: 5.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end;
  gap: 3rem; margin-bottom: 2.5rem; }
h2 { font-size: clamp(2.15rem, 3.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.05em;
  font-weight: 600; margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 1rem; }
.section-heading > p { max-width: 23rem; color: var(--muted); font-size: .9rem; margin: 0; }
.work-controls { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; gap: 1rem; }
.filters { display: none; flex-wrap: wrap; gap: .45rem; }
.js .filters { display: flex; }
.filters button { color: var(--muted); background: transparent; border: 1px solid var(--line);
  padding: .55rem .9rem; font-size: .8rem; border-radius: 4px; min-height: 44px; }
.filters button[aria-pressed="true"] { color: white;
  background: var(--ink);
  border-color: var(--ink);
  }
.result-count { font: .75rem ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.7rem 2rem; }
.project { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.project-image { display: block; overflow: hidden; background: #171d23;
  border: 1px solid #2a332c; border-radius: 6px; position: relative; }
.project-image img { width: 100%; aspect-ratio: 1.56; object-fit: cover; object-position: top;
  transition: transform .25s ease; }
.project-image:hover img { transform: scale(1.025); }
#forensics .project-image img { object-fit: contain; aspect-ratio: 1280 / 382; }
.image-label { position: absolute; bottom: .7rem; right: .7rem; background: #101812e6;
  color: white;
  font-size: .75rem;
  padding: .3rem .6rem;
  border: 1px solid #657160;
  border-radius: 3px;
  }
.project-caption { color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  margin: .65rem 0 1.25rem;
  }
.project-kind { font: 500 .75rem ui-monospace, monospace; color: #576750; margin: 0 0 .55rem; }
.project h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.25;
  margin: 0 0 .6rem; }
.project-summary { font-weight: 600; margin: 0 0 .6rem; }
.project-description { color: var(--muted); font-size: .95rem; }
.tags { display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  }
.tags li { font-size: .7rem; padding: .25rem .5rem; background: #e9eee6; color: #3f503b;
  border: 1px solid #dbe3d6; border-radius: 3px; }
details { font-size: .9rem; }
summary { cursor: pointer; font-weight: 650; padding: .45rem 0; }
details[open] summary { margin-bottom: 1rem; }
details h4 { font-size: .8rem; margin: 1.25rem 0 .3rem; }
details p { color: var(--muted); margin-bottom: .75rem; }
.source-paths { padding-left: 1rem; color: var(--muted); }
.source-paths li { overflow-wrap: anywhere;
  margin: .4rem 0;
  font: .7rem/1.6 ui-monospace, monospace;
  }
.project-status { font-size: .75rem;
  color: #5a6953;
  border-left: 2px solid #a4c480;
  padding-left: .7rem;
  }
.text-project { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.work-note { font-size: .8rem; color: var(--muted); margin: 2.5rem 0 0; max-width: 48rem; }
.architecture-section { background: var(--dark); color: #f2f6ee; }
.architecture-section .eyebrow { color: var(--lime); }
.architecture-section .section-heading > p { color: #a8b8a4; }
.architecture-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #3b4937; border-radius: 6px; overflow: hidden; }
.arch-layer { padding: 1.5rem; border-right: 1px solid #3b4937; }
.arch-layer:last-child { border-right: none; }
.arch-label { font: .7rem ui-monospace, monospace; color: #acc399; letter-spacing: .1em; }
.arch-layer h3 { font-size: 1.15rem; letter-spacing: -.02em; margin: .6rem 0 1.4rem; }
.arch-node { border: 1px solid #3c5135; background: #1a2919; padding: .7rem;
  margin-bottom: .65rem; border-radius: 3px; font-size: .8rem; }
.arch-layer p { font-size: .8rem; color: #a8b8a4; margin: 1rem 0 0; }
.arch-rails { border: 1px solid #3b4937; border-radius: 4px; margin-top: 1rem; }
.arch-rails p { display: flex; gap: 1.5rem; margin: 0; padding: .75rem 1.5rem;
  color: #b9c6b3; font-size: .8rem; }
.arch-rails p + p { border-top: 1px solid #3b4937; }
.arch-rails strong { min-width: 6rem; font: .65rem/2 ui-monospace, monospace; color: var(--lime); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.principles h3 { font-size: 1rem; margin-bottom: .6rem; }
.principles p { font-size: .9rem; color: #a8b8a4; margin: 0; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.code-card { min-width: 0; }
.code-card h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 0 0 .75rem; }
.code-card p { font-size: .9rem; color: var(--muted); max-width: 36rem; }
.code-window { background: #151d19; color: #c7e4b5; border: 1px solid #344432;
  border-radius: 5px; margin-bottom: .75rem; }
.code-window-header { font: .65rem ui-monospace, monospace; letter-spacing: .08em;
  color: #9eb793; padding: .6rem 1rem; border-bottom: 1px solid #344432; }
pre { margin: 0; padding: 1rem; overflow-x: auto; font: .75rem/1.8 ui-monospace, monospace;
  tab-size: 2; min-height: 13rem; }
.code-source { display: block; font: .7rem/1.6 ui-monospace, monospace;
  color: var(--muted); overflow-wrap: anywhere; margin-bottom: .8rem; }
.service-note { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  border-top: 1px solid var(--line); padding-block: 3.5rem 5rem; }
.service-note h2 { font-size: 2.15rem; }
.service-note > div + div { color: var(--muted); font-size: .95rem; }
.contact-section { background: #d2edb3; border-block: 1px solid #b3d68e; }
.contact-inner { display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-block: 4.5rem;
  }
.contact-inner h2 { margin-bottom: 1.5rem; }
.contact-inner > div > p:last-child { max-width: 39rem; color: #354b2c; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch;
  justify-content: center; gap: 1rem; max-width: 22rem; margin-left: auto; }
.contact-actions .primary { background: var(--ink); color: #f2f6ee; border-color: var(--ink); }
.contact-actions .primary:hover { background: #2b3e27; }
.outline { border-color: #738c60; background: transparent; }
.outline:hover { background: #e5f4d4; }
.contact-actions p { font-size: .75rem; color: #405535; margin: .4rem 0 0; }
.site-footer { display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
  flex-wrap: wrap;
  }
.site-footer p { font-size: .8rem; color: var(--muted); margin: 0; }
.site-footer > div { display: flex; gap: 1.5rem; margin-left: auto;
  font-size: .75rem; flex-wrap: wrap; }
dialog { background: #111914; color: #eef5e9; border: 1px solid #5c7050;
  padding: 0; border-radius: 7px; width: min(1440px, 94vw); max-height: 92vh; }
dialog::backdrop { background: #080e0be8; }
dialog figure { margin: 0; }
dialog img { width: 100%; }
dialog figcaption { padding: 1rem; font-size: .875rem; }
.dialog-close { position: sticky; display: block; top: .5rem; margin: .5rem .5rem .5rem auto;
  background: #eaf3e3; color: #162314; border: 1px solid #a4bc96; border-radius: 4px;
  padding: .6rem 1rem; min-height: 44px; z-index: 2; }
.simple-page { max-width: 880px; padding-block: 4rem 6rem; }
.simple-page h1 { font-size: clamp(2.75rem, 5vw, 4.2rem); }
.simple-page h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.simple-page .lead { font-size: 1.2rem; }
.simple-page p, .simple-page li { max-width: 44rem; }
.simple-page li { margin-block: .5rem; }
.simple-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-block: 2rem; }
.resume-entry { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.resume-entry h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.resume-entry p { margin: 0; color: var(--muted); font-size: .9rem; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
@media (min-width: 1600px) { .hero-visual { height: 490px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 4rem); }
  .hero { gap: 1.5rem; }
  h1 { font-size: 3.8rem; }
  .hero-visual { height: 360px; }
  .brand-word { display: none; }
  .architecture-map { grid-template-columns: repeat(2, 1fr); }
  .arch-layer:nth-child(2) { border-right: none; }
  .arch-layer:nth-child(-n+2) { border-bottom: 1px solid #3b4937; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 2.5rem); }
  .notice-inner { font-size: .75rem; flex-wrap: wrap; gap: .2rem; }
  .site-header { gap: 1rem; padding-block: 1rem; }
  nav { gap: 1rem; font-size: .8rem; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .nav-contact { padding: .4rem .6rem; }
  .hero { grid-template-columns: 1fr; padding-block: 3rem 2.5rem; gap: 2.5rem; }
  h1 { font-size: clamp(3.15rem, 9.2vw, 4.75rem); }
  .hero-deck { font-size: 1.2rem; }
  .hero-visual { height: clamp(300px, 75vw, 490px); margin-inline: .3rem; }
  .small-screen { right: 0; }
  .hero-intro { max-width: 100%; }
  .hero-actions { gap: 1.25rem; }
  .disciplines { flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.25rem;
  padding-block: 1rem;
  }
  .section-space { padding-block: 3.5rem; }
  .section-heading { flex-direction: column; align-items: start; gap: 1.4rem; margin-bottom: 2rem; }
  .section-heading > p { max-width: 100%; }
  .work-controls { align-items: start; flex-direction: column; gap: 1rem; }
  .project-grid, .code-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .project h3 { font-size: 1.45rem; }
  .principles { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-note, .contact-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-inner { padding-block: 3.5rem; }
  .contact-actions { margin: 0; max-width: 100%; }
  .contact-actions p { text-align: center; }
  .site-footer { flex-wrap: wrap; gap: 1rem; }
  .site-footer > div { margin-left: 0; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .architecture-map { grid-template-columns: 1fr; }
  .arch-layer { border-right: none; border-bottom: 1px solid #3b4937; }
  .arch-layer:last-child { border-bottom: none; }
  .arch-rails p { flex-direction: column; gap: .25rem; padding: .8rem 1rem; }
  .availability { align-items: start; }
  .availability span { margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .project-image img { transition: none; }
}
@media print {
  :root { color: black; background: white; font-size: 10pt; }
  .notice, nav, .site-footer, .simple-actions, .js-only, dialog { display: none !important; }
  .wrap { width: 100%; }
  .site-header { padding-block: 0 1rem; }
  .simple-page { padding-block: 1.5rem 0; }
  .simple-page h1 { font-size: 30pt; margin-bottom: 1rem; }
  .simple-page h2 { margin-top: 1.5rem; }
  .resume-entry { break-inside: avoid; padding-block: .65rem; }
  a { text-decoration: none; }
  @page { margin: 16mm; }
}
