:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --paper-deep: #ebe6db;
  --white: #fffdf8;
  --ink: #17212a;
  --muted: #56616a;
  --navy: #193449;
  --navy-light: #274a62;
  --copper: #8a593b;
  --moss: #64745e;
  --line: #d6d0c4;
  --focus: #315feb;
  --max: 1180px;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 450; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--copper); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: white; background: var(--focus); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--copper); font: 700 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.site-header { background: rgba(245,242,234,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; }
.brand-mark { width: 28px; height: 28px; flex: none; border: 1px solid var(--copper); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--copper); }
.brand-mark::before { width: 7px; height: 7px; right: 4px; bottom: 4px; }
.brand-mark::after { width: 1px; height: 38px; left: 13px; top: -6px; transform: rotate(45deg); background: var(--line); }
.desktop-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a[aria-current="page"] { color: var(--copper); }
.nav-contact { padding: 10px 15px; border: 1px solid var(--ink); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; border: 1px solid var(--ink); padding: 9px 12px; font-size: 13px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 230px; padding: 10px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(24,33,42,.12); }
.mobile-nav-panel a { display: block; padding: 10px; text-decoration: none; }

.hero { padding: 82px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 78px; align-items: end; }
.hero h1 { max-width: 850px; margin: 0 0 25px; font: 500 clamp(38px, 4.2vw, 58px)/1.06 var(--serif); letter-spacing: -.03em; }
.hero-copy { max-width: 700px; margin: 0; color: var(--muted); font-size: 18px; font-weight: 450; line-height: 1.7; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-block; padding: 14px 19px; border: 1px solid var(--navy); background: var(--navy); color: white; text-decoration: none; font-size: 13px; font-weight: 650; }
.button:hover { background: var(--navy-light); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--white); }
.hero-visual { position: relative; min-height: 310px; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border: 1px solid var(--copper); border-radius: 50%; }
.hero-visual::before { width: 190px; height: 190px; left: 35px; top: 42px; }
.hero-visual::after { width: 100px; height: 100px; right: 28px; bottom: 24px; }
.visual-axis { position: absolute; left: -10%; top: 54%; width: 120%; border-top: 1px solid var(--line); transform: rotate(-15deg); }
.visual-chip { position: absolute; right: 18px; top: 18px; color: var(--muted); font: 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; }

.page-hero { padding: 76px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; margin: 0 0 22px; font: 500 clamp(34px, 3.8vw, 50px)/1.1 var(--serif); letter-spacing: -.025em; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; font-weight: 450; }
.section { padding: 76px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section.dark { color: white; background: var(--navy); }
.section.dark .muted, .section.dark .section-lead { color: #bfccd3; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.section-heading h2, .prose h2 { margin: 0; font: 500 clamp(28px, 2.8vw, 38px)/1.14 var(--serif); letter-spacing: -.02em; }
.section-lead { max-width: 480px; justify-self: end; margin: 0; color: var(--muted); }

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.focus-card { min-height: 250px; padding: 27px 24px 28px 0; border-right: 1px solid var(--line); }
.focus-card:not(:first-child) { padding-left: 24px; }
.focus-card:last-child { border-right: 0; }
.index { color: var(--copper); font: 11px/1.4 var(--mono); }
.focus-card h3 { margin: 45px 0 12px; font: 500 21px/1.25 var(--serif); }
.focus-card p { color: var(--muted); font-size: 14px; }

.method-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #496174; }
.method-list li { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid #496174; font: 500 22px/1.3 var(--serif); }
.method-list span { color: #d0a37e; font: 11px/1.5 var(--mono); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { display: flex; flex-direction: column; min-height: 340px; padding: 25px; background: var(--white); border: 1px solid var(--line); }
.status { align-self: flex-start; margin-bottom: 58px; color: var(--navy); border: 1px solid var(--line); padding: 6px 8px; font: 700 10px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.status.development { border-color: #aebc90; background: #eff3e4; }
.status.research { color: #775435; border-color: #c8ad93; background: #f4ebe2; }
.project-card h3 { margin: 0 0 12px; font: 500 25px/1.15 var(--serif); }
.project-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.project-note { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.5 var(--mono); }

.hardware-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; border: 1px solid var(--line); }
.hardware-copy { padding: 54px; }
.hardware-copy h2 { margin: 14px 0 20px; font: 500 clamp(28px, 2.6vw, 36px)/1.14 var(--serif); }
.hardware-copy p { color: var(--muted); }
.hardware-graphic { position: relative; min-height: 320px; background: var(--navy); overflow: hidden; }
.hardware-graphic::before { content: ""; position: absolute; inset: 13%; border: 1px solid #6c8291; background-image: linear-gradient(#314f62 1px, transparent 1px), linear-gradient(90deg, #314f62 1px, transparent 1px); background-size: 36px 36px; }
.hardware-graphic::after { content: "Selected exploration"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 11px 13px; color: #dfe7eb; border: 1px solid #93a4af; background: var(--navy); font: 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.identity-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: start; }
.identity-card { padding: 28px; background: var(--white); border: 1px solid var(--line); }
.identity-card small { display: block; margin-bottom: 14px; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.identity-card strong { display: block; margin-bottom: 12px; font: 500 25px/1.25 var(--serif); }
.identity-card p { margin: 0; color: var(--muted); font-size: 14px; }

.prose-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 80px; align-items: start; }
.side-nav { position: sticky; top: 24px; border-top: 1px solid var(--line); }
.side-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.prose h2 { margin: 52px 0 17px; font-size: clamp(27px, 2.4vw, 32px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; font: 500 22px/1.25 var(--serif); }
.prose p, .prose li { color: #4f5961; }
.prose a { color: var(--navy); }
.prose .callout { margin: 30px 0; padding: 22px; border-left: 3px solid var(--copper); background: var(--white); }
.prose .callout p { margin: 0; }
.definition-list { margin: 0; border-top: 1px solid var(--line); }
.definition-list div { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { font-weight: 650; }
.definition-list dd { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { min-height: 260px; padding: 32px; border: 1px solid var(--line); background: var(--white); }
.contact-card h2 { margin: 35px 0 12px; font: 400 30px/1.15 var(--serif); }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--navy); font-weight: 650; }

.site-footer { padding: 62px 0 30px; color: #dbe3e7; background: #101c25; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.footer-brand { font: 500 28px/1.25 var(--serif); }
.footer-copy { max-width: 520px; color: #93a2ac; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 12px 32px; align-content: start; font-size: 13px; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #32434e; color: #83929c; font-size: 11px; }

@media (max-width: 900px) {
  .shell { width: min(100% - 40px, var(--max)); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { padding: 62px 0 58px; }
  .hero-grid, .section-heading, .method-grid, .identity-grid, .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-lead { justify-self: start; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .focus-card:nth-child(even) { border-right: 0; }
  .focus-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 290px; }
  .hardware-band { grid-template-columns: 1fr; }
  .prose-layout { grid-template-columns: 1fr; gap: 40px; }
  .side-nav { position: static; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 25px; height: 25px; }
  .hero h1 { font-size: 36px; }
  .page-hero { padding: 58px 0 50px; }
  .page-hero h1 { font-size: 34px; }
  .actions { flex-direction: column; }
  .button { text-align: center; }
  .hero-visual { min-height: 220px; }
  .section { padding: 60px 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card, .focus-card:not(:first-child) { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-card h3 { margin-top: 24px; }
  .hardware-copy { padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .definition-list div { grid-template-columns: 1fr; gap: 5px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
