/* Method Relay brand. Fonts are self-hosted (copied from @fontsource-variable/* by build.mjs). */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("fonts/space-grotesk.woff2") format("woff2") }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter.woff2") format("woff2") }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/jetbrains-mono.woff2") format("woff2") }

/* Design tokens. Brand palette: Obsidian #101114 · Electric Lime #C5FA65 · Off White #F5F5F5 · Titanium #A1A1AA.
   Light palette is the default. The dark palette applies when the OS prefers dark (unless the visitor forced
   light) or when the visitor forced dark. Both dark blocks must stay identical.
   Lime has too little contrast on light backgrounds, so light mode uses a deep olive (--accent, --mark) for text
   and the logo mark; lime stays as the button colour in both modes (with Obsidian text). */
:root {
  color-scheme: light;
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Cascadia Mono", ui-monospace, monospace;
  --paper: #f5f5f5; --surface: #fff; --ink: #101114; --body: #3f4048; --muted: #5a5b63; --text-2: #2a2b31;
  --label: #55565e; --line: #e2e2e5; --line-strong: #c9c9ce; --accent: #3f6212; --mark: #4d7c0f; --hover-bg: #ebebee;
  --btn-bg: #c5fa65; --btn-fg: #101114; --btn-hover: #b4ec4c; --sage: #ebf8d3; --light: #ececef;
  --radius: 13px;
  --art-bg: #ececef; --art-glow: #e8f6cf; --art-border: #e2e2e5; --art-soft: #f6f6f7; --art-line: #e4e4e7;
  --art-line-dk: #c8d9a8; --art-div: #ededf0; --art-chip: #eaf6d4; --art-note: #55565e; --art-shadow: rgba(16, 17, 20, .10);
  --tile-1: #d4ec9f; --tile-2: #cfd0d6; --tile-3: #b8d980; --chip-1: #dfeec1; --chip-2: #e6dfcf; --chip-3: #cfe3a8;
  --park: #e3efcd; --roof: #c5c6cc; --bar: #9bc25a; --pin: #4d7c0f;
  --term-bg: #121317; --term-line: #2a2c33; --term-ink: #f5f5f5; --term-muted: #a1a1aa; --term-lime: #c5fa65;
  --field-dot: rgba(16, 17, 20, .13); --field-hot: #4d7c0f; --card-shadow: 0 18px 40px rgba(16, 17, 20, .10);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101114; --surface: #17181c; --ink: #f5f5f5; --body: #c4c4cb; --muted: #a1a1aa; --text-2: #dcdce0;
    --label: #a1a1aa; --line: #24252b; --line-strong: #34353d; --accent: #c5fa65; --mark: #c5fa65; --hover-bg: #1c1d22;
    --btn-bg: #c5fa65; --btn-fg: #101114; --btn-hover: #d4ff85; --sage: #17191d; --light: #1c1d22;
    --art-bg: #15161a; --art-glow: #1d2117; --art-border: #26272d; --art-soft: #1b1c21; --art-line: #2a2b31;
    --art-line-dk: #3f4a2a; --art-div: #222329; --art-chip: #23281b; --art-note: #a1a1aa; --art-shadow: rgba(0, 0, 0, .4);
    --tile-1: #3f4a2a; --tile-2: #34353d; --tile-3: #4d5c2c; --chip-1: #3f4a2a; --chip-2: #3a3530; --chip-3: #2f3a24;
    --park: #20261a; --roof: #2e3036; --bar: #8fb34a; --pin: #c5fa65;
    --field-dot: rgba(245, 245, 245, .085); --field-hot: #c5fa65; --card-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101114; --surface: #17181c; --ink: #f5f5f5; --body: #c4c4cb; --muted: #a1a1aa; --text-2: #dcdce0;
    --label: #a1a1aa; --line: #24252b; --line-strong: #34353d; --accent: #c5fa65; --mark: #c5fa65; --hover-bg: #1c1d22;
    --btn-bg: #c5fa65; --btn-fg: #101114; --btn-hover: #d4ff85; --sage: #17191d; --light: #1c1d22;
    --art-bg: #15161a; --art-glow: #1d2117; --art-border: #26272d; --art-soft: #1b1c21; --art-line: #2a2b31;
    --art-line-dk: #3f4a2a; --art-div: #222329; --art-chip: #23281b; --art-note: #a1a1aa; --art-shadow: rgba(0, 0, 0, .4);
    --tile-1: #3f4a2a; --tile-2: #34353d; --tile-3: #4d5c2c; --chip-1: #3f4a2a; --chip-2: #3a3530; --chip-3: #2f3a24;
    --park: #20261a; --roof: #2e3036; --bar: #8fb34a; --pin: #c5fa65;
    --field-dot: rgba(245, 245, 245, .085); --field-hot: #c5fa65; --card-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box }
html { scroll-padding-top: 5.5rem }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
h1, h2, h3, h4, .stats div, .proof div { font-family: var(--font-display) }
a { color: inherit; text-decoration: none }
img { max-width: 100% }
.shell { width: min(75rem, calc(100% - clamp(2rem, 7vw, 5.5rem))); margin-inline: auto }
.skip { position: fixed; left: 1rem; top: .75rem; z-index: 100; background: var(--surface); padding: .5rem .75rem; border-radius: 6px }
.skip:not(:focus), .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px }

/* Header */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 80 }
.nav-row { min-height: 4rem; display: flex; align-items: center; gap: clamp(.375rem, 2.3vw, 1.75rem) }
.logo { font-family: var(--font-display); font-size: 21px; letter-spacing: -.4px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap }
.mark { width: 34px; height: 24px; flex: none; color: var(--mark) }
.nav-links { display: flex; align-items: center; gap: clamp(.25rem, 1.6vw, 1.5rem); margin-left: auto }
.nav-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .25rem; font-size: .875rem; font-weight: 600; color: var(--body); transition: color 160ms }
.nav-links a:hover, .nav-links a:active, .nav-links a[aria-current="page"] { color: var(--accent) }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: .625rem; padding: .65rem 1rem; font-size: .875rem; font-weight: 700; text-align: center; transition: background-color 160ms, border-color 160ms, transform 200ms var(--ease-out) }
.btn-outline { border: 1px solid var(--line-strong); color: var(--accent) }
.btn-outline:active { background: var(--hover-bg); border-color: var(--accent) }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg) }
.btn-solid:active { background: var(--btn-hover) }
.btn-ghost { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); font-size: .875rem; font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em }
.btn-ghost:hover, .btn-ghost:active { text-decoration-color: currentColor }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex: none; border: 1px solid var(--line-strong); border-radius: .625rem; background: transparent; color: var(--body); cursor: pointer; padding: 0; transition: background-color 160ms, color 160ms, transform 200ms var(--ease-out) }
.theme-toggle:active { background: var(--hover-bg); color: var(--accent) }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; display: none }
:root[data-theme="system"] .theme-toggle .icon-system, :root[data-theme="light"] .theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: block }
/* Without JavaScript the button can't work, so hide it; the OS preference still applies. */
:root:not([data-theme]) .theme-toggle { display: none }

/* Shared type */
.eyebrow { display: flex; gap: .625rem; align-items: center; margin: 0; font-family: var(--font-mono); font-size: .8125rem; text-transform: uppercase; color: var(--accent); letter-spacing: .07em; font-weight: 600 }
.eyebrow::before { content: ""; width: .45rem; height: .45rem; flex: none; border-radius: 50%; background: currentColor }
.kicker { font-family: var(--font-mono); font-size: .8125rem; color: var(--accent); letter-spacing: .06em; font-weight: 600; text-transform: uppercase }
.section-title { font-size: 32px; line-height: 1.2; letter-spacing: -1.2px; margin: 10px 0 0; font-weight: 690 }
.section-line { height: 1px; background: var(--line) }
.lede { font-size: clamp(1rem, 1.65vw, 1.125rem); color: var(--body); line-height: 1.65; max-width: 40rem; margin: 0 }

/* Home hero */
.hero { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 6.25vw, 6.25rem) clamp(2.75rem, 5.5vw, 5rem) }
.hero h1 { font-size: clamp(2.375rem, 7.8vw, 4.75rem); font-weight: 650; letter-spacing: -.068em; line-height: .99; text-wrap: balance; margin: .9rem 0 1.2rem }
.hero h1 .accent { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% .07em no-repeat; padding-bottom: .04em }
.hero .lede { max-width: 33rem }
.hero-actions { display: flex; gap: .625rem; flex-wrap: wrap; margin-top: 1.5rem }
.hero-actions .btn { min-height: 3rem }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0 }
.proof div { font-size: 28px; font-weight: 710; letter-spacing: -1px }
.proof span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 4px }
.proof-note { font-size: 11px; color: var(--muted); margin: -12px 0 24px }

/* Selected work */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem 1.25rem; border-top: 1px solid var(--line-strong) }
.work-head h2 { font-size: clamp(1.75rem, 4.2vw, 3.125rem); line-height: 1.06; letter-spacing: -.05em; margin: 0 }
.work-head .btn { flex-shrink: 0 }
.cat-row { display: grid; gap: 1rem; padding-block: clamp(1.375rem, 3.4vw, 2.75rem); border-top: 1px solid var(--line) }
.cat-intro h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; margin: 0 0 .5rem }
.cat-intro p { margin: 0; color: var(--body); max-width: 34ch }

/* CTA band + footer */
.cta { background: var(--sage); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 3.5vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; margin: 2.75rem 0 2.5rem }
.cta h2 { font-size: 26px; letter-spacing: -.8px; margin: 0 0 6px; font-weight: 660 }
.cta p { color: var(--body); margin: 0; line-height: 1.6 }
.footer { border-top: 1px solid var(--line); padding: 1rem 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .875rem }
.footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem }
.footer a:hover { color: var(--accent) }

/* Page headers (projects, category, about) */
.page-head { padding: 56px 0 36px }
.page-head h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -2.2px; font-weight: 680; margin: 18px 0 16px }
.breadcrumb { font-size: 12px; color: var(--muted); margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong) }
.breadcrumb a:hover { color: var(--accent) }
nav + .eyebrow { margin-top: 34px }

/* Project cards */
.cat-section { padding: 36px 0 20px }
.cat-section .section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px }
.cat-section .section-top p { margin: 8px 0 0; color: var(--body); max-width: 620px; line-height: 1.6 }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem) }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 180ms, transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out) }
.card .art { aspect-ratio: 18 / 11; border-bottom: 1px solid var(--line); transition: filter 160ms }
.card .art img { transition: transform 360ms var(--ease-out) }
.card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.1vw, 1.375rem) }
.card h3, .card h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 670; margin: 0 0 .5rem }
.card p { margin: 0 0 1rem; line-height: 1.55; color: var(--body); max-width: 34rem }
.card .go { font-size: .875rem; margin-top: auto; color: var(--accent); font-weight: 680; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color 160ms }
.card:is(:active, :focus-visible) { border-color: var(--accent) }
.card:is(:active, :focus-visible) .go { text-decoration-color: currentColor }
.card:active .art { filter: brightness(.92) }

/* Case study */
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: end; padding: 40px 0 40px }
.case-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.625rem); line-height: 1.04; letter-spacing: -.05em; font-weight: 685; text-wrap: balance; margin: 18px 0 16px }
.case-head p { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 720px; margin: 0 }
.case-side { font-size: 13px; color: var(--body); line-height: 1.6; padding-left: 21px; border-left: 1px solid var(--line-strong) }
.case-side strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px }
.case-side div + div { margin-top: 16px }
.case-art { height: min(460px, 42vw); min-height: 300px; border-radius: 13px; overflow: hidden; border: 1px solid var(--art-border); margin-bottom: 52px }
.case-art .art { height: 100% }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left }
.case-shot { margin: 0 0 52px; height: auto; min-height: 0; border: 0; border-radius: 0; overflow: visible }
.case-shot .art { height: auto; border: 1px solid var(--art-border); border-radius: 13px }
.case-shot img { height: auto; max-height: 620px }
.case-shot figcaption { font-size: 12px; color: var(--muted); margin-top: 10px }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 80px; align-items: start }
.case-body section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line) }
.case-body section:last-child { border-bottom: 0 }
.case-body h2 { font-size: 22px; letter-spacing: -.6px; margin: 0 0 12px; font-weight: 690 }
.case-body p { font-size: 16px; line-height: 1.8; color: var(--text-2); margin: 0 }
.stats { display: flex; gap: 34px; padding-top: 22px; flex-wrap: wrap }
.stats div { font-size: 27px; font-weight: 710; letter-spacing: -1px }
.stats span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 4px }
.case-body .stats-note { font-size: 12px; color: var(--muted); margin-top: 14px }
.links { display: flex; flex-wrap: wrap; gap: 12px }
.aside { border-top: 1px solid var(--line-strong); position: sticky; top: 96px }
.aside-group { border-bottom: 1px solid var(--line); padding: 18px 0 }
.aside-label { font-family: var(--font-mono); font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 770; margin-bottom: 9px }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0 }
.tags li { font-size: 12px; background: var(--light); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; color: var(--text-2) }
.plain { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; color: var(--text-2) }
.plain li + li { margin-top: 8px }
.related { padding: 48px 0 10px; border-top: 1px solid var(--line); margin-top: 30px }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 24px }
.related-grid a { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: block; transition: border-color 180ms }
.related-grid a:is(:active, :focus-visible) { border-color: var(--accent) }
.related-grid small { font-size: 11px; color: var(--label); letter-spacing: .8px; text-transform: uppercase }
.related-grid h3 { font-size: 17px; letter-spacing: -.4px; margin: 10px 0 8px }
.related-grid span { font-size: 13px; color: var(--accent) }

/* About */
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-bottom: 20px }
.about-body p { font-size: 17px; line-height: 1.8; color: var(--text-2); margin: 0 0 20px }
.focus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 40px 0 }
.focus h3 { font-size: 16px; margin: 0 0 6px }
.focus p { font-size: 14px; color: var(--body); margin: 0; line-height: 1.6 }

/* 404 */
.notfound { padding: 110px 0 60px }
.notfound h1 { font-size: 48px; letter-spacing: -2px; margin: 18px 0 }

/* Conceptual illustrations (CSS only — clearly labelled, never presented as screenshots) */
.art { position: relative; overflow: hidden; background: var(--art-bg) }
.art-canvas { position: absolute; inset: 0; padding: 8%; display: flex; align-items: center; justify-content: center }
.art-note { position: absolute; bottom: 12px; right: 15px; letter-spacing: .4px; color: var(--art-note); font-size: 9px; font-weight: 700 }
.win { box-shadow: 0 22px 45px var(--art-shadow); background: var(--surface); border: 1px solid var(--art-border); border-radius: 11px; overflow: hidden; position: relative }
.dots { height: 26px; border-bottom: 1px solid var(--art-div); display: flex; align-items: center; gap: 5px; padding: 0 12px }
.dots i { display: block; background: var(--art-line-dk); height: 5px; width: 5px; border-radius: 50% }
.ln { height: 6px; background: var(--art-line); border-radius: 5px; margin-bottom: 11px }
.ln.dk { background: var(--art-line-dk) } .w50 { width: 50% } .w60 { width: 60% } .w70 { width: 70% } .w85 { width: 85% }
.tag { font-size: 9px; font-weight: 720; color: var(--accent); border-radius: 12px; background: var(--art-chip); padding: 5px 8px; display: inline-flex }
.badge { position: absolute; background: var(--surface); padding: 10px 13px; border-radius: 9px; border: 1px solid var(--art-border); font-size: 10px; color: var(--accent); font-weight: 730; box-shadow: 0 8px 22px var(--art-shadow); white-space: nowrap }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pin); display: inline-block; margin-right: 6px }

.art-ads { background: radial-gradient(ellipse at 5% 100%, var(--art-glow), transparent 65%), var(--art-bg) }
.art-ads .win { width: 72%; height: 72%; transform: rotate(-2deg) }
.ad-panels { display: grid; grid-template-columns: 31% 1fr; gap: 15px; padding: 14px }
.ad-left { border-right: 1px solid var(--art-div); padding-right: 11px }
.ad-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 14px }
.ad-tiles i { height: 64px; background: linear-gradient(160deg, var(--art-soft) 40%, var(--tile-1)); border-radius: 7px }
.ad-tiles i:nth-child(2) { background: linear-gradient(145deg, var(--art-soft), var(--tile-2)) }
.ad-tiles i:nth-child(3) { background: linear-gradient(145deg, var(--art-soft), var(--tile-3)) }
.art-ads .badge { right: 6%; top: 10% }

.art-maps { background: radial-gradient(ellipse at 100% 0%, var(--art-glow), transparent 65%), var(--art-bg) }
.map { width: 80%; height: 76%; background: var(--art-soft); border: 9px solid var(--surface); border-radius: 11px; box-shadow: 0 18px 38px var(--art-shadow); position: relative; overflow: hidden; transform: rotate(1deg) }
.st { position: absolute; background: var(--surface); border: 1px solid var(--art-div); border-radius: 12px }
.st1 { width: 120%; height: 22px; top: 30%; left: -10%; transform: rotate(-27deg) }
.st2 { width: 120%; height: 16px; top: 59%; left: -10%; transform: rotate(18deg) }
.st3 { height: 130%; width: 15px; top: -15%; left: 48%; transform: rotate(20deg) }
.st4 { height: 130%; width: 15px; top: -15%; left: 77%; transform: rotate(-19deg) }
.park { position: absolute; width: 30%; height: 30%; border-radius: 18px; background: var(--park); left: 10%; top: 12%; transform: rotate(-25deg) }
.pin { position: absolute; width: 13px; height: 13px; border-radius: 100% 100% 100% 0; background: var(--pin); transform: rotate(-45deg); border: 2px solid var(--surface); box-shadow: 0 2px 5px var(--art-shadow) }
.p1 { left: 20%; top: 45% } .p2 { left: 42%; top: 28% } .p3 { left: 63%; top: 57% } .p4 { left: 74%; top: 31% } .p5 { left: 38%; top: 69% }
.art-maps .badge { right: 8%; bottom: 12% }

.art-jobs { background: radial-gradient(ellipse at 0% 0%, var(--art-glow), transparent 65%), var(--art-bg) }
.art-jobs .win { width: 74%; height: 76%; transform: rotate(-1deg) }
.job-rows { padding: 12px 14px }
.job { display: grid; grid-template-columns: 22px 1fr 54px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--art-div) }
.job b { width: 22px; height: 22px; border-radius: 6px; background: var(--chip-1) }
.job:nth-child(2) b { background: var(--chip-2) } .job:nth-child(3) b { background: var(--chip-3) }
.job .ln { margin: 0 0 6px } .job .ln + .ln { margin: 0 }
.job em { height: 16px; border-radius: 10px; background: var(--art-chip) }
.art-jobs .badge { right: 5%; bottom: 10% }

.art-dash, .art-restaurant { background: radial-gradient(ellipse at 100% 100%, var(--art-glow), transparent 65%), var(--art-bg) }
.dash { width: 80%; height: 77%; display: grid; grid-template-columns: 25% 1fr }
.dash-l { background: var(--art-soft); border-right: 1px solid var(--art-div); padding: 18px 12px }
.dash-r { padding: 16px 22px }
.metrics { display: flex; gap: 10px; margin-top: 12px }
.metrics i { background: var(--art-soft); border: 1px solid var(--art-line); border-radius: 6px; height: 42px; flex: 1 }
.bars { height: 46%; margin-top: 16px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid var(--art-line) }
.bars b { flex: 1; background: var(--bar); border-radius: 3px 3px 0 0 }
.bars b:nth-child(even) { background: var(--art-line-dk) }
.h1 { height: 31% } .h2 { height: 55% } .h3 { height: 41% } .h4 { height: 79% } .h5 { height: 64% } .h6 { height: 88% } .h7 { height: 72% }
.spark { height: 46%; margin-top: 16px; border-bottom: 1px solid var(--art-line); background: linear-gradient(to top right, transparent 49%, var(--bar) 50%, transparent 52%) }

.art-report { background: radial-gradient(ellipse at 50% 0%, var(--art-glow), transparent 65%), var(--art-bg) }
.art-report .win { width: 76%; height: 74% }
.rep { padding: 12px 16px }
.rep-row { display: grid; grid-template-columns: 2fr 1fr 1fr 70px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--art-div) }
.rep-row .ln { margin: 0 }
.rep-row:first-child .ln { background: var(--art-line-dk) }
.score { height: 8px; border-radius: 5px; background: linear-gradient(90deg, var(--pin) var(--s, 60%), var(--art-line) 0) }
.s1 { --s: 88% } .s2 { --s: 74% } .s3 { --s: 61% } .s4 { --s: 47% }

.art-tasks { background: radial-gradient(ellipse at 0% 100%, var(--art-glow), transparent 65%), var(--art-bg) }
.board { width: 78%; height: 72%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px }
.col { background: var(--art-soft); border-radius: 8px; padding: 10px }
.col i { display: block; height: 30px; border-radius: 6px; background: var(--surface); border: 1px solid var(--art-line); margin-top: 8px }
.col i.on { border-color: var(--bar); box-shadow: inset 3px 0 0 var(--pin) }
.art-tasks .badge { right: 6%; top: 9% }

.art-solar { background: var(--art-bg) }
.roof { position: absolute; width: 60%; height: 70%; left: 20%; top: 15%; background: var(--roof); clip-path: polygon(25% 0, 78% 0, 100% 50%, 77% 100%, 24% 100%, 0 48%) }
.roof-in { position: absolute; inset: 24% 30%; background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, .3) 27px 29px), repeating-linear-gradient(90deg, #294d46 0 35px, #65a083 36px 38px); clip-path: polygon(10% 0, 88% 0, 100% 50%, 88% 100%, 10% 100%, 0 48%); opacity: .96 }
.roof-shade { position: absolute; width: 17%; height: 28%; border: 1px dashed var(--accent); border-radius: 8px; left: 41%; top: 36% }
.art-solar .badge { left: 8%; bottom: 10% }

/* Wider layouts build on the single-column flow. */
@media (min-width: 38rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cat-row .card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) }
  .cat-row .card:only-child .art { border-bottom: 0; border-inline-end: 1px solid var(--line) }
  .cat-row .card:only-child .card-copy { justify-content: center }
  .cat-row .card:only-child .go { margin-top: 0 }
}
@media (min-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr) }
  .hero h1 { font-size: clamp(2.75rem, 5.55vw, 4.75rem) }
  .cat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(1.5rem, 3.5vw, 3rem) }
}
@media (max-width: 950px) {
  .case-head, .about-body { grid-template-columns: 1fr; gap: 26px }
  .case-body { grid-template-columns: 1fr; gap: 20px }
  .aside { position: static }
  .proof { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 650px) {
  .logo { font-size: 1.0625rem; gap: .375rem }
  .mark { width: 1.625rem; height: 1.1875rem }
  .nav-links a:first-child { display: none } /* the logo already links home */
  .nav-cta { display: none }
  .page-head { padding-block: 2.25rem 1.75rem }
  .cta { align-items: flex-start; flex-direction: column }
  .case-art:not(.case-shot) { height: 260px; min-height: 0 }
  .case-art { margin-bottom: 36px }
  .related-grid, .focus { grid-template-columns: 1fr }
  .focus { gap: 1.375rem }
  .cat-section .section-top { display: block }
  .ad-tiles i { height: 38px }
  .badge { font-size: 8px; padding: 7px 9px }
  .rep-row { grid-template-columns: 2fr 1fr 50px } .rep-row .ln:nth-child(3) { display: none }
}
@media (max-width: 22rem) {
  .nav-row { gap: .375rem }
  .logo { font-size: 1rem; gap: .25rem }
  .logo .mark { width: 1.25rem }
  .nav-links a { padding-inline: .125rem }
}

/* Pointer hover, touch press, and viewport entry share the same motion preference. */
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--btn-hover) }
  .btn-outline:hover { background: var(--hover-bg); border-color: var(--accent) }
  .theme-toggle:hover { background: var(--hover-bg); color: var(--accent) }
  .card:hover, .related-grid a:hover { border-color: var(--accent) }
  .card:hover .go { text-decoration-color: currentColor }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth }
  .btn:active, .theme-toggle:active { transform: scale(.98); transition-duration: 90ms }

}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow) }
  .card:hover .art img { transform: scale(1.035) }
  .btn:hover:not(:active) { transform: translateY(-2px) }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme-toggle, .nav-links a, .card, .card .art, .card .art img, .card .go, .related-grid a { transition: none }
}

/* ── Hero band, relay field, relay-log terminal and entrance motion ─────────────────────────────────────── */
.hero-band { position: relative; isolation: isolate; overflow: hidden }
/* Interactive background drawn by src/motion.js; fades out towards the bottom of the hero. */
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent) }

.term { margin: 0; align-self: center; border: 1px solid var(--term-line); border-radius: 1rem; overflow: hidden; background: var(--term-bg); color: var(--term-ink); box-shadow: var(--card-shadow) }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--term-line); font-family: var(--font-mono); font-size: .75rem; color: var(--term-muted) }
.term-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--term-line) }
.term-bar span:first-of-type { margin-left: .5rem }
.term-asof { margin-left: auto }
.term-body { padding: 1.1rem 1.25rem 1.3rem; font-family: var(--font-mono); font-size: clamp(.78rem, 1.15vw, .875rem); line-height: 1.95 }
.term-body p { margin: 0; white-space: nowrap }
.term-p { color: var(--term-lime) }
.term-cmd .type { color: var(--term-lime) }
.term-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.4rem; gap: 1rem; padding-left: 1.1rem }
.term-k { color: var(--term-ink); overflow: hidden; text-overflow: ellipsis }
.term-v { color: var(--term-muted); text-align: right }
.term-ok { color: var(--term-lime); text-align: right }
.term-out { margin-top: .35rem !important; color: var(--term-ink) }
.type { display: inline-block; vertical-align: bottom; overflow: hidden }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .15em; vertical-align: -.2em; background: var(--term-lime) }

@media (min-width: 54rem) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) } }
@media (max-width: 30rem) { .term-line { grid-template-columns: minmax(0, 1fr) auto; } .term-ok { display: none } }

/* Scroll reveal: src/motion.js adds .reveal only to elements that start below the fold. */
.reveal { opacity: 0; transform: translateY(1.25rem) }
.reveal.revealed { opacity: 1; transform: none; transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out) }

@media (prefers-reduced-motion: no-preference) {
  /* Hero copy staggers in on load. */
  .hero-copy > * { animation: rise 700ms var(--ease-out) both }
  .hero-copy > :nth-child(2) { animation-delay: 80ms }
  .hero-copy > :nth-child(3) { animation-delay: 170ms }
  .hero-copy > :nth-child(4) { animation-delay: 250ms }
  .hero h1 .accent { animation: underline 900ms 650ms var(--ease-out) both }
  .term { animation: rise 800ms 200ms var(--ease-out) both }

  /* Relay log types in once: command, result lines with ticks, then the tagline; the caret blinks then rests. */
  .term .type { width: calc(var(--n) * 1ch); animation: type calc(var(--n) * 55ms) steps(var(--n)) both }
  .term .t0 { animation-delay: 700ms }
  .term-line, .term-out { animation: line-in 380ms var(--ease-out) both }
  .term-line .term-ok { animation: tick 260ms var(--ease-out) both }
  .term .l1 { animation-delay: 1.55s } .term .l1 .term-ok { animation-delay: 1.85s }
  .term .l2 { animation-delay: 1.9s }  .term .l2 .term-ok { animation-delay: 2.2s }
  .term .l3 { animation-delay: 2.25s } .term .l3 .term-ok { animation-delay: 2.55s }
  .term .l4 { animation-delay: 2.6s }  .term .l4 .term-ok { animation-delay: 2.9s }
  .term .l5 { animation-delay: 3.05s } .term .t1 { animation-delay: 3.2s }
  .caret { animation: blink 1s 3.2s steps(1) 5 both }

  /* One-time logo draw on the first page view of a visit (.intro is set by src/theme.js). */
  .intro .topbar .mark path { stroke-dasharray: 1; animation: draw 1s 150ms var(--ease-out) both }

  @keyframes rise { from { opacity: 0; transform: translateY(14px) } }
  @keyframes underline { from { background-size: 0 .07em } }
  @keyframes type { from { width: 0 } }
  @keyframes line-in { from { opacity: 0; transform: translateY(4px) } }
  @keyframes tick { from { opacity: 0; transform: scale(.4) } }
  @keyframes blink { 50% { opacity: 0 } }
  @keyframes draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none } }

/* generated by build.mjs: terminal typing widths */
.term .t0 { --n: 14 }
.term .t1 { --n: 20 }
