/* Self-hosted Inter. No scripts or external assets. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a1120;
  --panel: #121b30;
  --line: #2a3550;
  --text: #eef2f8;
  --muted: #b8c2d4;
  --red: #ff3b47;
  --red-action: #c41e2a;
  --blue: #4d8dff;
  --link: #8db6ff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  font-feature-settings: "cv08", "cv11";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--link); color: var(--bg); }
a { color: var(--link); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; border-radius: 3px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px 20px; background: var(--text); color: var(--bg); border-radius: 4px; }
.skip:focus { top: 12px; }
.icon { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Compact masthead, generous targets. */
.bar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.mono-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #5b6b8c; border-radius: 7px; font-size: 15px; font-weight: 600; letter-spacing: -.05em; position: relative; }
.mono-mark::after { content: ""; position: absolute; bottom: -1px; left: 11px; right: 11px; height: 2px; background: var(--red); }
.site-head ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-head nav a:hover { color: var(--link); }
/* The name leads; the description supports it. */
.hero { padding-block: 56px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
.eyebrow, .label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.6; letter-spacing: .085em; text-transform: uppercase; }
.hero-name > .eyebrow { margin-bottom: 23px; }
h1 { margin: 0; font-size: clamp(76px, 7.6vw, 104px); line-height: 1.01; font-weight: 600; letter-spacing: -.04em; }
.surname { display: block; }
.period { color: var(--red); }
.hero-details { display: flex; flex-direction: column; align-items: flex-start; }
.hero-details > .eyebrow { margin-bottom: 27px; }
.subhead { margin: 0; max-width: 20em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.4; font-weight: 500; letter-spacing: -.028em; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 12px 20px; border: 1px solid #5b6b8c; border-radius: 5px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--panel); border-color: var(--muted); }
.btn.primary { background: var(--red-action); border-color: var(--red-action); color: #fff; }
.btn.primary:hover { background: #db2634; border-color: #db2634; }
/* A numbered section system carries the brand down the page. */
.section > .wrap { padding-block: 44px 60px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.section-index { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.section-index::after { content: ""; width: 25px; height: 2px; background: var(--red); }
h2 { margin: 0; font-size: 38px; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.projects .techquest { grid-column: 1 / -1; }
.project { display: flex; flex-direction: column; padding: 28px 30px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 27px; margin-bottom: 22px; }
.project-top .label { letter-spacing: .055em; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 1px solid #5b6b8c; border-radius: 20px; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: nowrap; }
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.project h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.desc { flex: 1; margin: 0 0 25px; color: var(--muted); font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.go { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-top: 1px solid var(--line); color: var(--link); font-size: 14px; font-weight: 500; text-decoration: none; }
.go:hover { text-decoration: underline; }
.about { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; }
.about-body p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.85; text-wrap: pretty; }
.about-body p:last-child { margin-bottom: 0; }
.about-body .lede { margin-bottom: 23px; color: var(--text); font-size: 18px; line-height: 1.65; font-weight: 450; letter-spacing: -.012em; }
.approach { padding-left: 28px; border-left: 1px solid var(--line); }
.approach > .label { margin-bottom: 22px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { margin: 0; padding: 20px 0; color: var(--muted); font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.principles li + li { border-top: 1px solid var(--line); }
.principles li:first-child { padding-top: 0; }
.principles li:last-child { padding-bottom: 0; }
.principles strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.link-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.group > .label { margin-bottom: 17px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li + li { border-top: 1px solid var(--line); }
.lnk { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; padding: 15px 16px; color: var(--link); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 5px; transition: background .15s; }
.lnk:hover { background: var(--panel); }
.lnk:hover .link-title { text-decoration: underline; text-underline-offset: 4px; }
.link-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-detail { color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.phone-link { background: var(--red-action); color: #fff; }
.phone-link .link-title { font-size: 13px; font-weight: 500; }
.phone-link .link-detail { color: #fff; font-size: 21px; line-height: 1.4; font-weight: 550; letter-spacing: -.02em; }
.phone-link .icon { width: 21px; height: 21px; flex-basis: 21px; }
.phone-link:hover { color: #fff; background: #db2634; }
.group li:has(.phone-link) + li { border-top-color: transparent; }
.foot { color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-block: 25px calc(32px + env(safe-area-inset-bottom)); }
.foot p { margin: 0; }
.footer-note { margin-left: 20px; }
.fineprint { flex-basis: 100%; font-size: 13px; }
.notfound { padding-block: 100px; }
.notfound .eyebrow { margin-bottom: 24px; color: var(--red); }
.notfound h1 { font-size: clamp(42px, 7vw, 80px); letter-spacing: -.04em; }
.notfound p { color: var(--muted); }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { gap: 40px; }
  .hero { padding-block: 50px; }
  .btn { padding-inline: 16px; }
  .about { gap: 48px; }
  .project { padding-inline: 24px; }
  .link-groups { gap: 40px; }
}
@media (min-width: 761px) and (max-width: 850px) {
  .project-top { min-height: 61px; align-content: flex-start; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 48px); }
  .bar { min-height: 80px; }
  .site-head ul { gap: 12px; }
  .hero { padding-block: 40px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-name > .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(46px, 9.7vw, 72px); letter-spacing: -.045em; line-height: 1.1; }
  .surname { display: inline; }
  .hero-details > .eyebrow { margin-bottom: 12px; }
  .subhead { max-width: 24em; font-size: 26px; line-height: 1.45; }
  .actions { margin-top: 0; padding-top: 24px; }
  .section > .wrap { padding-block: 34px 44px; }
  .section-heading { gap: 15px; margin-bottom: 25px; }
  h2 { font-size: 34px; }
  .projects { grid-template-columns: 1fr; gap: 20px; }
  .project { padding: 25px 25px 0; }
  .project-top { min-height: 27px; margin-bottom: 20px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-body { max-width: 65ch; }
  .approach { padding-left: 24px; }
  .link-groups { grid-template-columns: 1fr; gap: 32px; }
  .lnk { min-height: 88px; padding-inline: 12px; }
}
@media (max-width: 540px) {
  .bar { gap: 12px; min-height: 78px; }
  .mark { gap: 10px; font-size: 13px; }
  .mono-mark { width: 40px; height: 40px; }
  .site-head ul { gap: 2px; }
  .site-head nav a { padding-inline: 8px; font-size: 13px; }
  .hero { padding-block: 32px 40px; }
  .hero-grid { gap: 25px; }
  .eyebrow, .label { font-size: 13px; letter-spacing: .055em; }
  h1 { font-size: clamp(43px, 12.1vw, 62px); }
  .subhead { font-size: 25px; line-height: 1.4; }
  .actions { width: 100%; flex-direction: column; gap: 10px; }
  .btn { min-height: 50px; font-size: 14px; }
  .project { padding: 23px 22px 0; }
  .project-top { gap: 10px; }
  .project h3 { font-size: 23px; }
  .desc { margin-bottom: 23px; }
  .about-body p { line-height: 1.8; }
  .about-body .lede { font-size: 18px; }
  .approach { padding-left: 20px; }
  .link-groups { grid-template-columns: 1fr; gap: 32px; }
  .lnk { min-height: 82px; padding: 15px 14px; }
  .group > .label { margin-bottom: 14px; }
  .foot-in { flex-direction: column; gap: 12px; padding-top: 24px; }
  .footer-note { display: block; margin-left: 0; margin-top: 4px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 40px); }
  .bar { gap: 8px; }
  .mark { gap: 8px; }
  .mark > span:last-child { max-width: 50px; line-height: 1.3; }
  .site-head nav a { padding-inline: 7px; }
  .project-top { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.projects .techquest .desc { max-width: 70ch; }
