/* Layout concept: an institutional technology firm. One typeface, white and near-black, one deep blue, square corners, hairline rules, a strict 12-column grid, tables for the record. */
:root {
  --bg: #FFFFFF; --surface: #F4F5F7; --fg: #0B0F19; --muted: #5B6472; --line: #E3E6EA; --line-strong: #0B0F19;
  --accent: #1E3A8A; --accent-ink: #FFFFFF; --accent-on-ink: #8FB0FF; --ink: #0B0F19; --ink-fg: #F5F7FA; --ink-muted: #9AA3B2; --ink-line: #273041;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 2px; --gutter: clamp(16px, 4vw, 48px); --max: 1280px; --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F19; --surface: #121826; --fg: #F5F7FA; --muted: #9AA3B2; --line: #273041; --line-strong: #F5F7FA;
    --accent: #8FB0FF; --accent-ink: #0B0F19; --ink: #F5F7FA; --ink-fg: #0B0F19; --ink-muted: #5B6472; --ink-line: #D6DAE1; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F19; --surface: #121826; --fg: #F5F7FA; --muted: #9AA3B2; --line: #273041; --line-strong: #F5F7FA;
  --accent: #8FB0FF; --accent-ink: #0B0F19; --ink: #F5F7FA; --ink-fg: #0B0F19; --ink-muted: #5B6472; --ink-line: #D6DAE1; color-scheme: dark;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.8125rem; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2.5vw, 32px); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 18px; height: 18px; flex: none; }
.brand .ai { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--muted); padding-block: 4px; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a.btn { color: var(--accent-ink); padding: 8px 14px; font-size: 0.875rem; }
.nav a.btn:hover { color: var(--accent-ink); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; padding: 11px 18px; border-radius: var(--radius); text-decoration: none; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.btn.on-ink { background: var(--ink-fg); border-color: var(--ink-fg); color: var(--ink); }
.btn.on-ink:hover { background: transparent; color: var(--ink-fg); }
.textlink { font-weight: 500; color: var(--accent); text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Reveal system */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Stage labels: semantic state, text with a square indicator */
.stage { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.stage::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--muted); flex: none; }
.stage[data-stage="published"] { color: var(--fg); }
.stage[data-stage="published"]::before { background: var(--accent); border-color: var(--accent); }
.stage[data-stage="development"]::before { border-color: var(--fg); background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.stage[data-stage="research"]::before, .stage[data-stage="prototype"]::before { border-color: var(--fg); }

/* Sections: label column + content, like a report */
section.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2.5vw, 32px); }
.sec > .label { grid-column: 1 / span 3; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.sec > .label::before { content: attr(data-n) "  "; color: var(--fg); }
.sec > .body { grid-column: 4 / span 9; min-width: 0; }
.sec > .body.wide { grid-column: 1 / span 12; }
.block h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: 12px; }
.block .lede { font-size: 1.0625rem; color: var(--muted); max-width: 60ch; }
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 96px); }
.hero .grid { align-items: end; }
.hero h1 { grid-column: 1 / span 8; grid-row: 1; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w { display: inline-block; }
.hero .sub { grid-column: 1 / span 6; grid-row: 2; display: flex; flex-direction: column; gap: 20px; }
.hero .mark-big { grid-column: 10 / span 3; grid-row: 1; width: 100%; max-width: 220px; justify-self: end; align-self: end; color: var(--fg); }
.hero .lede { font-size: 1.0625rem; color: var(--muted); max-width: 50ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .facts { grid-column: 8 / span 5; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-self: end; }
.hero .facts div { border-top: 1px solid var(--line-strong); padding-top: 10px; font-size: 0.9rem; }
.hero .facts b { display: block; font-weight: 500; }
.hero .facts span { color: var(--muted); }

/* Services: rows with proof image */
.svc { display: grid; grid-template-columns: 3fr 5fr 4fr; gap: 24px clamp(16px, 2.5vw, 32px); padding-block: 32px; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 1.25rem; }
.svc .promise { color: var(--muted); margin-top: 6px; max-width: 40ch; }
.svc ul { display: grid; gap: 6px; }
.svc li { position: relative; padding-left: 16px; font-size: 0.95rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--fg); }
.svc .proof { text-decoration: none; display: grid; gap: 8px; align-content: start; }
.svc .proof .img { border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 10; overflow: hidden; }
.svc .proof img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.svc .proof:hover img { transform: scale(1.02); }
.svc .proof span { font-size: 0.8125rem; color: var(--muted); }
.svc .proof span b { font-weight: 500; color: var(--fg); }
.svc .proof:hover span b { text-decoration: underline; }

/* Approach */
.mani { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; max-width: 30ch; }
.mani .w { display: inline-block; }
.principles { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(16px, 2.5vw, 32px); }
.principles div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.principles h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 6px; }
.principles p { color: var(--muted); font-size: 0.95rem; max-width: 42ch; }

/* Work grid */
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.pcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.pcard .media { aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .media img { transform: scale(1.02); }
.pcard .media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 14% 0; }
.pcard .media.duo img { object-position: top; border: 1px solid var(--line); border-bottom: 0; }
.pcard .media.text { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; }
.pcard .media.text .big { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.pcard .media.text .small { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.pcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); }
.pcard h3 { font-size: 1.125rem; }
.pcard:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.pcard p { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.pcard .offer { font-size: 0.8125rem; color: var(--accent); }
.home .pgrid .pcard { grid-column: span 4; }
.home .pgrid .pcard:nth-child(1), .home .pgrid .pcard:nth-child(2) { grid-column: span 6; }
.all .pgrid .pcard { grid-column: span 4; }

/* Inventory table */
.inv-head { margin-top: clamp(48px, 7vw, 80px); display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.inv-head h3 { font-size: 1.25rem; }
.inv-head p { color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
.tablewrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
table.inv { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
table.inv th { text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.inv td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.inv td.name a { font-weight: 500; text-decoration: none; }
table.inv td.name a:hover { text-decoration: underline; text-underline-offset: 3px; }
table.inv td.sum { color: var(--muted); max-width: 44ch; }
table.inv td.off { color: var(--fg); }
table.inv tr:hover td { background: var(--surface); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); position: relative; }
.proc-rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.proc-line { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.step { padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.step .you { font-size: 0.8125rem; color: var(--accent); }
.step h3 { font-size: 1.125rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.process-cta { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.process-cta p { color: var(--muted); font-size: 0.95rem; }

/* Research */
.research { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 48px) clamp(16px, 2.5vw, 32px); align-items: start; }
.research .shot { grid-column: 1 / span 5; margin: 0; }
.research .shot .img { border: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.research .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.research .shot figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.research .list { grid-column: 6 / span 7; min-width: 0; }
.research .list h3.group { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.research .list h3.group + .repo { border-top-color: var(--line-strong); }
.repo { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--line); align-items: start; }
.repo:last-child { border-bottom: 1px solid var(--line); }
.repo h3 { font-size: 1.0625rem; grid-column: 1; }
.repo p { grid-column: 1; color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.repo .facts { grid-column: 1; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.repo .textlink { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: 0.9rem; }
.research .list .group-gap { height: 32px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 18px 0; background: none; border: 0; cursor: pointer; font-weight: 500; font-size: 1.0625rem; }
.q button .plus { width: 18px; height: 18px; flex: none; position: relative; }
.q button .plus::before, .q button .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--fg); transition: transform .3s var(--ease); }
.q button .plus::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.q button .plus::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.q button[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.q .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.q .panel > div { overflow: hidden; }
.q .panel p { color: var(--muted); max-width: 62ch; padding-bottom: 20px; }
.q.open .panel { grid-template-rows: 1fr; }

/* CTA band */
.band { background: var(--ink); color: var(--ink-fg); padding-block: clamp(56px, 8vw, 104px); }
.band .grid { align-items: center; }
.band .copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 16px; }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; }
.band p { color: var(--ink-muted); max-width: 50ch; }
.band .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.band .side { grid-column: 10 / span 3; display: grid; justify-items: end; }
.band .mark-band { width: 100%; max-width: 200px; color: var(--ink-fg); }
.band .links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 0.9375rem; }
.band .links .label { font-size: 0.8125rem; color: var(--ink-muted); }
.band .links a { color: var(--ink-fg); text-decoration: none; border-bottom: 1px solid var(--ink-line); padding-bottom: 2px; }
.band .links a:hover { border-bottom-color: var(--ink-fg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.contact-grid .copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 16px; }
.contact-grid .channels { grid-column: 8 / span 5; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.channel { padding-block: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.channel .label { font-size: 0.8125rem; color: var(--muted); }
.channel a { text-decoration: none; }
.channel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.placeholder { border: 1px dashed var(--accent); padding: 10px 12px; font-size: 0.875rem; color: var(--muted); }
.placeholder strong { color: var(--fg); font-weight: 500; }
.cats { display: grid; gap: 6px; }
.cats li { font-size: 0.95rem; padding-left: 16px; position: relative; }
.cats li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--fg); }

/* Projects index */
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.filters button { font-size: 0.9rem; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); cursor: pointer; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.archived { margin-top: clamp(48px, 6vw, 80px); }
.archived h3 { font-size: 1.125rem; margin-bottom: 4px; }
.archived .lede { margin-bottom: 16px; font-size: 0.95rem; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px clamp(16px, 2.5vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.legend .term { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-strong); }
.legend .term p { font-size: 0.9rem; color: var(--muted); }
.empty { padding: 40px 0; color: var(--muted); }

/* Project detail */
.detail-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px clamp(16px, 2.5vw, 32px); padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 40px); }
.detail-head .crumbs { grid-column: 1 / span 12; font-size: 0.875rem; color: var(--muted); }
.detail-head .crumbs a { text-decoration: none; }
.detail-head .crumbs a:hover { text-decoration: underline; }
.detail-head h1 { grid-column: 1 / span 8; font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; }
.detail-head .lede { grid-column: 1 / span 8; font-size: 1.0625rem; color: var(--muted); max-width: 60ch; }
.detail-head .meta { grid-column: 1 / span 12; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.gallery figure { margin: 0; scroll-snap-align: start; min-width: 0; }
.gallery .img { border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.gallery .img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .img.portrait img { object-fit: contain; }
.gallery figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.detail-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2.5vw, 32px); padding-block: clamp(32px, 5vw, 64px); }
.detail-main { grid-column: 1 / span 7; display: grid; gap: 28px; }
.detail-main h2 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.detail-main p, .detail-main li { max-width: 62ch; }
.detail-main ul.bul { display: grid; gap: 6px; }
.detail-main ul.bul li { padding-left: 16px; position: relative; }
.detail-main ul.bul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--fg); }
.detail-main .future { border-left: 2px solid var(--accent); padding-left: 14px; }
.detail-main .future .tag { font-size: 0.8125rem; color: var(--accent); display: block; margin-bottom: 4px; }
.detail-aside { grid-column: 9 / span 4; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.fact { padding-block: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.fact .k { font-size: 0.8125rem; color: var(--muted); }
.fact .v { font-size: 0.9375rem; }
.fact .v a { color: var(--accent); text-decoration: none; }
.fact .v a:hover { text-decoration: underline; }
.detail-cta { margin-top: 24px; padding: 20px; background: var(--surface); display: grid; gap: 8px; }
.detail-cta strong { font-weight: 500; }
.detail-cta p { font-size: 0.9rem; color: var(--muted); }
.detail-cta .btn { margin-top: 6px; justify-self: start; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2.5vw, 32px); }
.about .main { grid-column: 4 / span 6; display: grid; gap: 18px; }
.about .label { grid-column: 1 / span 3; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.about .label::before { content: attr(data-n) "  "; color: var(--fg); }
.about .main p { font-size: 1.0625rem; max-width: 60ch; }
.about .main h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.about .main h3 { font-size: 1.0625rem; font-weight: 500; margin-top: 10px; }
.about .side { grid-column: 11 / span 2; margin: 0; }
.about .side .img { border: 1px solid var(--line); aspect-ratio: 4 / 5; overflow: hidden; }
.about .side img { width: 100%; height: 100%; object-fit: cover; }
.about .side figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.notlist { display: grid; gap: 8px; }
.notlist li { padding-left: 16px; position: relative; color: var(--muted); max-width: 60ch; }
.notlist li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--fg); }

.boardfig { margin: 0; } .boardfig .img { border: 1px solid var(--line); background: var(--surface); } .boardfig img { width: 100%; display: block; } .boardfig figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px 48px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-foot .note { font-size: 0.8125rem; color: var(--muted); max-width: 56ch; display: grid; gap: 10px; }
.site-foot .brand.foot { color: var(--fg); margin-bottom: 6px; }
.site-foot .lockup-foot { width: 180px; height: auto; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; }
.site-foot .links a { text-decoration: none; color: var(--muted); }
.site-foot .links a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 1000px) {
  .sec > .label, .sec > .body, .about .label, .about .main, .about .side, .hero h1, .hero .sub, .hero .facts, .research .shot, .research .list, .contact-grid .copy, .contact-grid .channels, .detail-main, .detail-aside, .band .copy, .band .side, .detail-head h1, .detail-head .lede { grid-column: 1 / span 12; }
  .about .side .img { aspect-ratio: 16 / 10; }
  .hero .mark-big { grid-column: 1 / span 12; grid-row: auto; max-width: 72px; justify-self: start; order: -1; }
  .hero h1, .hero .sub, .hero .facts { grid-row: auto; }
  .band .side { justify-items: start; }
  .band .mark-band { max-width: 96px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc .proof { grid-column: 1 / span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .proc-rail { display: none; }
  .step { border-top: 1px solid var(--line); }
  .home .pgrid .pcard, .all .pgrid .pcard { grid-column: span 6 !important; }
  .legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) { .nav .btn { display: none; } }
@media (max-width: 620px) {
  .site-head .wrap { justify-content: flex-start; }
  .home .pgrid .pcard, .all .pgrid .pcard { grid-column: span 12 !important; }
  .svc { grid-template-columns: 1fr; }
  .svc .proof { grid-column: auto; }
  .steps, .principles, .legend, .hero .facts { grid-template-columns: 1fr; }
  .repo { grid-template-columns: 1fr; }
  .repo .textlink { grid-column: 1; grid-row: auto; justify-self: start; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .pcard .media.duo { padding-inline: 10%; }
}

/* ---------- Production additions (nimai.ca, 2026-11-12) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
html { scroll-padding-top: 80px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
section.block.top { border-top: 0; }
h1.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; margin-bottom: 12px; }
h2.h3 { font-size: 1.125rem; }
.about .main h2.h3 { font-size: 1.0625rem; font-weight: 500; margin-top: 10px; }
.archived h2.h3 { margin-bottom: 4px; }
.research .list h2.group { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 0 0 4px; letter-spacing: 0; }
.research .list h2.group + .repo { border-top-color: var(--line-strong); }
.repo h3 a { text-decoration: none; }
.repo h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.strong { font-weight: 500; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.site-foot .copy { font-family: var(--mono); font-size: 0.75rem; }
.pcard[hidden] { display: none !important; }
.filters[hidden] { display: none !important; }
