@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-latin-v2.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #11151d;
  --line: #292e3a;
  --text: #f0f1f6;
  --muted: #a4aaba;
  --mint: #a7f3d0;
  --violet: #b5abff;
  --mono: Consolas, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --read-progress: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--bg); background: var(--mint); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button[hidden] { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); letter-spacing: -.065em; }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--violet); letter-spacing: -.055em; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.eyebrow { color: var(--muted); font: .75rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; background: var(--mint); color: var(--bg); padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 2px; background: linear-gradient(90deg, var(--mint), var(--violet)); transform: scaleX(var(--read-progress)); transform-origin: left; }

/* One quiet, persistent point of orientation. */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(11 13 18 / 92%); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: .95rem; letter-spacing: -.025em; }
.brand-slash { color: #525a6a; padding-inline: 3px; }
.brand-handle { color: var(--muted); font-weight: 400; }
.site-header nav { display: flex; gap: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #10131a; }
.site-header nav a { display: grid; place-items: center; padding: 6px 20px; min-height: 40px; border-radius: 999px; color: var(--muted); font-size: .875rem; transition: background .25s, color .25s; }
.site-header nav a:hover { color: var(--text); background: #202530; }
.site-header nav a[aria-current='location'] { background: #282d3b; color: white; }
.header-github { font-size: .875rem; display: flex; align-items: center; gap: 18px; min-height: 44px; }
.header-github:hover { color: var(--mint); }

/* Introduction: typography and a procedural study, each given room to breathe. */
.hero { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); align-items: center; column-gap: 24px; padding-block: 58px 64px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.short-rule { height: 1px; width: 25px; flex-shrink: 0; background: var(--mint); }
.location { color: #bcc2d0; padding-left: 15px; border-left: 1px solid #3c4350; letter-spacing: .025em; text-transform: none; }
h1 { font-size: clamp(3.5rem, 7.2vw, 6.3rem); letter-spacing: -.075em; line-height: 1.05; font-weight: 530; }
h1 > span { display: block; }
h1 > span:last-child { font-size: .87em; }
.name-period { color: var(--mint); }
.hero-specialisms { margin-top: 29px; font-size: clamp(1.15rem, 1.65vw, 1.45rem); line-height: 1.5; letter-spacing: -.025em; color: #d5d8e3; }
.hero-specialisms > span { color: var(--mint); }
.hero-description { max-width: 490px; margin-top: 21px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 31px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 54px; padding: 0 9px 0 22px; border-radius: 999px; font-size: .875rem; font-weight: 600; transition: background .25s, transform .35s var(--ease); }
.button-primary { background: var(--mint); color: #10231c; }
.button-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #52806a66; font-size: 19px; transition: transform .35s var(--ease); }
.button:hover { background: #c7ffe3; transform: translateY(-2px); }
.button:hover .button-arrow { transform: rotate(-45deg); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: .875rem; }
.text-link > span { transition: transform .3s var(--ease); }
.text-link:hover { color: var(--mint); }
.text-link:hover > span { transform: translate(3px, -3px); }
.systems-study { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 520px; justify-self: end; min-width: 0; }
.systems-study::before { content: ''; position: absolute; inset: 15% -3% 10%; background: radial-gradient(ellipse, #7365f016, transparent 65%); pointer-events: none; }
.study-stage { position: relative; width: 100%; aspect-ratio: 1; touch-action: pan-y; }
.study-stage.is-ready { cursor: crosshair; }
.study-stage canvas, .study-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.study-stage canvas { opacity: 0; transition: opacity .4s; }
.study-stage.is-ready canvas { opacity: 1; }
.study-stage.is-ready .study-fallback { opacity: 0; }
.study-controls { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.seed-life, .motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: .875rem; color: var(--muted); }
.seed-life > span { font-size: 20px; }
.seed-life:hover, .motion-toggle:hover { color: var(--mint); }
.motion-icon { width: 13px; font-size: 12px; }

/* LitHarness leads; the supporting work uses equal columns and shared baselines. */
.section { padding-block: 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading > .text-link { margin-bottom: 5px; }
.featured-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.project-card { min-width: 0; display: flex; flex-direction: column; }
.project-image { display: block; position: relative; flex-shrink: 0; aspect-ratio: 1.5; overflow: hidden; border: 1px solid #363c4d; border-radius: 16px; background: #11151c; isolation: isolate; }
.project-image > img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease), filter .6s; }
.featured-project .project-image { aspect-ratio: 1.2; background: radial-gradient(ellipse at center, #25253c, #10131e); }
.featured-project .project-image > img { object-fit: contain; }
.atlas-card .project-image { background: radial-gradient(at 70% 100%, #253631, #0c141a); }
.cathode-card .project-image { background: #15131c; }
.project-image::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--spot-x, 50%) var(--spot-y, 50%), #b5abff13, transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.project-image:hover::after { opacity: 1; }
.project-image:hover > img, .project-image:focus-visible > img { transform: scale(1.025); }
.project-image:focus-visible, .app-screenshot:focus-visible { outline-offset: -4px; }
.project-copy { display: flex; flex-direction: column; flex: 1; padding-top: 24px; min-width: 0; }
.featured-project .project-copy { padding-top: 0; }
.project-category { color: var(--muted); font: .75rem/1.5 var(--mono); letter-spacing: .045em; text-transform: uppercase; margin-bottom: 15px; }
.project-copy h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -.045em; margin-bottom: 15px; }
.project-copy h3 a:hover { color: var(--mint); }
.featured-project h3 { font-size: clamp(2.4rem, 3.7vw, 3.2rem); }
.project-copy > p:not(.project-category) { color: var(--muted); line-height: 1.8; }
.project-details { margin: 20px 0 14px; padding-left: 20px; color: #d5dae7; }
.project-details li { padding-left: 4px; margin-block: 8px; line-height: 1.65; }
.project-details li::marker { color: var(--mint); }
.project-copy > .project-note { font-size: .875rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 20px 0; padding: 0; }
.tags li { border: 1px solid #313848; border-radius: 999px; padding: 3px 11px; font: .75rem/1.8 var(--mono); color: #b6becf; }
.project-card .tags { margin-top: auto; padding-top: 20px; }
.project-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 22px; border-top: 1px solid var(--line); padding-top: 9px; font-size: .875rem; }
.project-links a { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; }
.project-links a + a { color: var(--muted); }
.project-links a:hover { color: var(--mint); }
.other-projects-title { margin: 52px 0 23px; font-size: 1.3rem; letter-spacing: -.02em; }
.more-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.project-row { display: flex; flex-direction: column; padding: 28px 28px 28px 0; min-width: 0; }
.project-row + .project-row { padding-left: 28px; border-left: 1px solid var(--line); }
.project-row:last-child { padding-right: 0; }
.project-row h4 { font-size: 1.25rem; letter-spacing: -.03em; margin: 0 0 15px; line-height: 1.4; }
.project-row h4 span { margin-left: 7px; font-size: 18px; color: var(--muted); }
.project-row h4 a { display: inline-block; min-height: 44px; }
.project-row h4 a:hover { color: var(--mint); }
.project-row p:not(.project-category) { color: var(--muted); }
.project-row .tags { margin-top: auto; margin-bottom: 0; padding-top: 20px; }

/* A different rhythm for the published apps. */
.apps { background: linear-gradient(140deg, #141624, #101922 70%, #121b20); border-block: 1px solid #2c3142; }
.section-aside { max-width: 290px; padding-bottom: 4px; }
.section-aside p { color: var(--muted); margin-bottom: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.app-card { min-width: 0; display: flex; flex-direction: column; padding: 25px 24px 0; background: #0b101966; border: 1px solid #363d50; border-radius: 18px; overflow: hidden; transition: border-color .3s; }
.app-card:hover { border-color: #727795; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.app-icon { width: 48px; height: 48px; border: 1px solid #505360; border-radius: 13px; }
.app-top .project-category { margin: 0; font-size: .75rem; }
.app-card h3 { font-size: 1.4rem; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 13px; }
.app-card > p { color: #aeb5c6; font-size: 1rem; margin-bottom: 24px; }
.app-screenshot { display: flex; align-items: center; justify-content: center; height: 390px; flex-shrink: 0; margin: auto -24px 0; padding: 25px; border-block: 1px solid #323c4a; background: radial-gradient(ellipse at 50% 60%, #396e6860, #1b303444); }
.armour-app .app-screenshot { background: radial-gradient(ellipse at 50% 60%, #8b765060, #332f2444); }
.roman-app .app-screenshot { background: radial-gradient(ellipse at 50% 60%, #6d558e60, #2b223d44); }
.app-screenshot img { width: auto; height: auto; max-height: 100%; max-width: 100%; border: 1px solid #737382; border-radius: 15px; box-shadow: 0 16px 50px #0006; transition: transform .5s var(--ease), box-shadow .5s; }
.app-screenshot:hover img { transform: translateY(-4px); box-shadow: 0 24px 50px #0009; }
.app-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 65px; font-size: .875rem; }
.app-link:hover { color: var(--mint); }

/* Experience and tooling use concise, factual copy. */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 60px; }
.about-heading .eyebrow { margin-bottom: 23px; }
.about-heading h2 { font-size: clamp(2.6rem, 4.8vw, 4.25rem); }
.about-heading > a { margin-top: 27px; }
.about-copy p { color: var(--muted); margin-bottom: 20px; line-height: 1.85; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .large-copy { font-size: 1.35rem; color: #dce0eb; letter-spacing: -.025em; line-height: 1.7; }
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 60px; border-block: 1px solid var(--line); padding-block: 36px; margin-top: 44px; }
.method h3 { font-size: 1.65rem; letter-spacing: -.035em; line-height: 1.35; max-width: 280px; }
.method > p { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.toolkit-section { margin-top: 52px; }
.toolkit-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.toolkit-heading h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.toolkit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.toolkit h3 { font-size: .875rem; color: #b9c0cf; margin-bottom: 15px; letter-spacing: -.01em; }
.tool-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 8px; }
.tool-pills img { width: 132px; height: auto; transition: transform .3s var(--ease); }
.tool-pills img:hover { transform: translateY(-3px); }

.site-footer { padding-block: 65px 25px; background: #10131b; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding-bottom: 55px; }
.footer-name { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.065em; }
.footer-name span { color: var(--violet); }
.footer-top > div { color: var(--muted); }
.footer-links { display: flex; gap: 28px; margin-top: 17px; color: var(--text); font-size: .875rem; }
.footer-links a, .footer-bottom a { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .75rem; }

/* Progressive motion: the content is visible even if JavaScript never runs. */
.will-reveal { opacity: 0; transform: translateY(24px); }
.will-reveal.is-revealed { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .75s var(--ease); }
body[data-motion='off'] .will-reveal { opacity: 1; transform: none; }
body[data-motion='off'] *, body[data-motion='off'] *::before, body[data-motion='off'] *::after { animation: none !important; transition: none !important; }
body[data-motion='off'] .project-image > img, body[data-motion='off'] .app-screenshot img, body[data-motion='off'] .button, body[data-motion='off'] .button-arrow, body[data-motion='off'] .text-link > span, body[data-motion='off'] .tool-pills img { transform: none !important; }
body[data-motion='off'] { scroll-behavior: auto; }
html:has(body[data-motion='off']) { scroll-behavior: auto; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { column-gap: 12px; padding-top: 58px; }
  .hero-eyebrow { gap: 10px; flex-wrap: wrap; font-size: .75rem; }
  h1 { font-size: clamp(3.3rem, 7.3vw, 5.3rem); }
  .featured-project, .project-grid { gap: 28px; }
  .featured-project .project-image { aspect-ratio: 1; }
  .project-row .project-category { min-height: 36px; }
  .project-row h4 { min-height: 56px; }
  .about-grid, .method { gap: 52px; }
  .app-grid { gap: 20px; }
  .app-card { padding: 22px 20px 0; }
  .app-screenshot { margin-inline: -20px; padding-inline: 20px; height: 362px; }
  .toolkit { gap: 20px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 80px; gap: 18px; }
  .brand-handle, .brand-slash { display: none; }
  .site-header nav a { padding-inline: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  h1 { font-size: clamp(3.5rem, 10.5vw, 5.6rem); }
  .hero-copy { max-width: 660px; }
  .hero-description { max-width: 550px; }
  .hero-specialisms { font-size: 1.35rem; }
  .systems-study { width: min(100%, 320px); margin: 20px auto 0; justify-self: center; }
  .featured-project { grid-template-columns: 1fr; gap: 28px; }
  .featured-project .project-image { aspect-ratio: 1.8; }
  .featured-project .project-copy { max-width: 650px; }
  .more-projects { grid-template-columns: 1fr; }
  .project-row, .project-row + .project-row { padding: 24px 0; border-left: 0; }
  .project-row + .project-row { border-top: 1px solid var(--line); }
  .project-row h4 a { min-height: 0; padding-block: 8px; }
  .project-row .project-category, .project-row h4 { min-height: 0; }
  .project-row .tags { padding-top: 16px; }
  .study-stage { margin-block: 0; }
  .section { padding-block: 76px; }
  .section-heading { gap: 30px; margin-bottom: 38px; }
  h2 { font-size: clamp(2.8rem, 6.4vw, 3.5rem); }
  .project-copy h3 { font-size: 1.75rem; }
  .section-aside { max-width: 250px; }
  .app-grid { grid-template-columns: 1fr; gap: 24px; }
  .app-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: auto auto 1fr auto; gap: 0 28px; padding: 26px; }
  .app-top { grid-column: 1; margin-bottom: 20px; }
  .app-card h3 { grid-column: 1; font-size: 1.6rem; }
  .app-card > p { grid-column: 1; margin-bottom: 22px; }
  .app-screenshot { grid-column: 2; grid-row: 1 / 5; margin: 0; padding: 13px; height: 344px; border: 1px solid #363f4e; border-radius: 12px; }
  .app-link { grid-column: 1; min-height: 48px; border-top: 1px solid var(--line); }
  .about-grid, .method { grid-template-columns: 1fr; gap: 28px; }
  .method h3 { max-width: none; }
  .about-heading h2 { font-size: 2.7rem; }
  .about-copy .large-copy { font-size: 1.2rem; }
  .toolkit { grid-template-columns: 1fr; gap: 26px; }
  .tool-pills { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 92px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; gap: 10px; }
  .brand { gap: 8px; font-size: .9rem; }
  .brand img { width: 28px; height: 28px; }
  .header-github { display: none; }
  .site-header nav { gap: 0; padding: 2px; }
  .site-header nav a { padding-inline: 12px; min-width: 44px; min-height: 40px; font-size: .8125rem; }
  .hero { padding-block: 30px 36px; }
  .hero-eyebrow { margin-bottom: 25px; gap: 9px; font-size: .75rem; letter-spacing: .04em; }
  .hero-eyebrow .location { padding-left: 10px; }
  .short-rule { width: 18px; }
  h1 { font-size: clamp(2.7rem, 12vw, 4.1rem); }
  h1 > span:last-child { font-size: .89em; }
  .hero-specialisms { margin-top: 25px; font-size: 1.15rem; }
  .hero-description { margin-top: 19px; line-height: 1.8; }
  .hero-actions { gap: 13px 22px; margin-top: 25px; }
  .button { min-height: 52px; gap: 22px; padding-left: 18px; }
  .text-link { font-size: .875rem; }
  .systems-study { width: min(100%, 270px); margin-top: 18px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured-project { padding-bottom: 32px; margin-bottom: 32px; }
  .featured-project .project-image { aspect-ratio: 1.6; }
  .project-image { border-radius: 12px; }
  .project-links { gap: 0 16px; }
  .other-projects-title { margin-top: 38px; }

  .section { padding-block: 60px; }
  .section-heading { align-items: start; flex-direction: column; gap: 21px; margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 13px; }
  h2 { font-size: 2.9rem; }
  .project-copy { padding-top: 20px; }
  .project-copy h3 { font-size: 1.9rem; }
  .project-category { font-size: .75rem; margin-bottom: 12px; }
  .section-aside { max-width: 100%; }
  .section-aside p { margin-bottom: 10px; }
  .app-card { display: flex; padding: 23px 23px 0; }
  .app-card h3 { font-size: 1.5rem; }
  .app-top { margin-bottom: 22px; }
  .app-icon { width: 52px; height: 52px; }
  .app-screenshot { margin: auto -23px 0; padding: 24px; height: 405px; border-inline: 0; border-radius: 0; }
  .app-link { min-height: 62px; border: 0; }
  .about-grid, .method { grid-template-columns: 1fr; gap: 32px; }
  .about-heading h2 { font-size: 2.9rem; }
  .about-heading > a { margin-top: 18px; }
  .about-copy .large-copy { font-size: 1.25rem; }
  .method { margin-top: 45px; padding-block: 33px; }
  .toolkit-section { margin-top: 33px; }
  .toolkit-heading { flex-direction: column; gap: 9px; }
  .tool-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); }
  .site-footer { padding-top: 43px; }
  .footer-top { flex-direction: column; align-items: start; gap: 27px; padding-bottom: 30px; }
  .footer-name { font-size: 2.5rem; }
  .footer-links { margin-top: 9px; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 13px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-image > img, .app-screenshot img, .button, .button-arrow, .text-link > span, .tool-pills img { transform: none !important; }
}
