@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0e1013; --paper: #f3f1ec; --rule: #cbc6ba; --muted: #66686a; --tone3: #8d897f; --soft: #3b3d40; --figbg: #f8f7f3; --hover: #dcd8ce;
  --night: #e9e6de; --night-ink: #0e1013; --night-rule: #c6c1b4; --night-muted: #66686a; --night-soft: #3b3d40; --night-dim: #7d7f80;
  --flag: #e23d2e;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 4.2vw, 64px);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0eee8; --paper: #0b0d10; --rule: #2b2f35; --muted: #9a9ea6; --tone3: #6f737b; --soft: #c9cbd0; --figbg: #111419; --hover: #23272d;
  --night: #0b0d10; --night-ink: #f0eee8; --night-rule: #2b2f35; --night-muted: #9a9ea6; --night-soft: #c9cbd0; --night-dim: #6f737b;
  --flag: #ee4a3a;
}
html[data-theme="dark"] #services, html[data-theme="dark"] #contact { --night: #111419; }
body, .hero, .night, figure svg { transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--sans); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
html[data-lang="en"] [lang="it"], html[data-lang="it"] [lang="en"] { display: none !important; }
a { color: inherit; }
::selection { background: var(--flag); color: #fff; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); color: #fff; mix-blend-mode: difference; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top .name { margin-right: auto; font-weight: 500; }
.top nav { display: flex; gap: 26px; }
.langs { display: flex; gap: 2px; }
.langs button { all: unset; cursor: pointer; padding: 2px 6px; opacity: 0.5; }
.langs button:hover { opacity: 1; }
html[data-lang="en"] .langs button[data-set="en"], html[data-lang="it"] .langs button[data-set="it"] { opacity: 1; box-shadow: inset 0 -1px 0 #fff; }


.hero { background: var(--night); color: var(--night-ink); padding: clamp(120px, 17vh, 180px) var(--pad) clamp(40px, 5vw, 72px); }
.hero .kicker { color: var(--night-muted); margin: 0 0 clamp(20px, 3vw, 36px); display: flex; gap: 14px; align-items: center; }
.hero .kicker::before { content: ""; width: 9px; height: 9px; background: var(--flag); border-radius: 50%; flex: none; }
h1 { font: 400 clamp(2.7rem, 7.6vw, 7rem)/0.98 var(--serif); letter-spacing: -0.022em; margin: 0; max-width: 15.5em; text-wrap: balance; }
h1 em { font-style: italic; color: var(--flag); }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pad); align-items: end; margin-top: clamp(28px, 4.5vw, 60px); }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--night-soft); margin: 0; max-width: 38em; }
.jump { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.jump a { text-decoration: none; border-bottom: 1px solid var(--night-rule); padding-bottom: 6px; display: inline-flex; gap: 14px; }
.jump a:hover { color: var(--flag); border-color: var(--flag); }
@media (max-width: 760px) { .hero-row { grid-template-columns: 1fr; } .jump { align-items: flex-start; } }

.scope { margin-top: clamp(64px, 8vw, 110px); position: relative; }
.scope-head { display: flex; justify-content: space-between; gap: 16px; color: var(--night-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 44px; }
.scope-box { position: relative; height: clamp(110px, 17vw, 200px); }
.scope-box svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scope-box rect { fill: var(--night-ink); opacity: 0.22; transition: opacity 0.25s, fill 0.25s; }
.scope-box rect.on { opacity: 0.92; }
.scope-box rect.on.hit { fill: var(--flag); opacity: 1; }
.playhead { position: absolute; top: -8px; bottom: -8px; width: 1px; background: var(--night-ink); left: 0; }
.flagtag { position: absolute; top: -30px; left: 50%; width: 10%; border-top: 1px solid var(--flag); color: var(--flag); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 5px; white-space: nowrap; opacity: 0; transition: opacity 0.4s; }
.flagtag::before, .flagtag::after { content: ""; position: absolute; top: 0; width: 1px; height: 7px; background: var(--flag); }
.flagtag::before { left: 0; } .flagtag::after { right: 0; }
.flagtag.show { opacity: 1; }
@media (max-width: 760px) { .flagtag .tt { display: none; } }
.play { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); border: 1px solid var(--night-ink); padding: 7px 14px 7px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.play:hover, .play.playing { background: var(--flag); border-color: var(--flag); color: #fff; }
.theme { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.theme:hover { text-decoration: underline; text-underline-offset: 4px; }
.theme .dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%); }
html[data-theme="dark"] .theme .to-dark, html:not([data-theme="dark"]) .theme .to-light { display: none; }
@media (max-width: 480px) { .theme .lbl { display: none; } .top { gap: 18px; } }
.play .pi { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play.playing .pi { width: 9px; height: 11px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.scope-head { align-items: center; }
.scope-head .what { max-width: 46em; line-height: 1.6; }
.scope-box { cursor: pointer; }
.track { position: relative; height: 54px; margin-top: 14px; border-top: 1px solid var(--night-rule); }
.track svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.track .tl { position: absolute; left: 0; top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
.truth { position: relative; height: 26px; border-top: 1px solid var(--night-rule); }
.truth i { position: absolute; top: -2px; height: 3px; background: var(--night-ink); }
.truth span { position: absolute; top: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); white-space: nowrap; }
.scope-credit { margin: 14px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--night-dim); }
.ticks { display: flex; justify-content: space-between; color: var(--night-muted); font-family: var(--mono); font-size: 11px; margin-top: 12px; }

.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(40px, 6vw, 80px) calc(var(--pad) * -1) 0; border-top: 1px solid var(--night-rule); }
.readouts > div { padding: clamp(22px, 3vw, 38px) var(--pad) clamp(28px, 4vw, 48px); border-left: 1px solid var(--night-rule); }
.readouts > div:first-child { border-left: 0; }
.readouts b { display: block; font: 400 clamp(2.3rem, 4.5vw, 4.1rem)/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.readouts b i { font: 500 12px var(--mono); letter-spacing: 0.08em; margin-left: 10px; color: var(--night-muted); font-style: normal; vertical-align: 0.9em; }
.readouts p { margin: 14px 0 0; color: var(--night-muted); font-size: 15px; line-height: 1.5; max-width: 26em; }
.readouts p strong { color: var(--night-ink); font-weight: 500; }
@media (max-width: 860px) { .readouts { grid-template-columns: 1fr; } .readouts > div { border-left: 0; border-top: 1px solid var(--night-rule); } .readouts > div:first-child { border-top: 0; } }

.sec-head { padding: clamp(64px, 9vw, 130px) var(--pad) clamp(30px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.sec-head .mono { color: var(--muted); }
.sec-head h2 { font: 400 clamp(2rem, 4.4vw, 3.9rem)/1.02 var(--serif); letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
.sec-head h2 em { font-style: italic; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 14px; } }

.project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "fig head" "fig text"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 5.5vw, 88px); padding: clamp(40px, 5.5vw, 80px) var(--pad) clamp(56px, 7.5vw, 112px); border-top: 1px solid var(--ink); }
.project:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head fig" "text fig"; }
.phead { grid-area: head; } .ptext { grid-area: text; }
.phead h3 { font: 400 clamp(2.3rem, 4.6vw, 4.3rem)/0.98 var(--serif); letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.kind { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flag); margin: 0 0 clamp(20px, 2.6vw, 34px); }
.ptext .lede { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; margin: 0 0 14px; max-width: 34em; }
.ptext .measured { margin-top: clamp(22px, 3vw, 38px); }
.more { border-top: 1px solid var(--ink); padding: clamp(36px, 5vw, 64px) var(--pad); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; justify-content: space-between; }
.more p { font: 400 clamp(1.5rem, 2.8vw, 2.4rem)/1.1 var(--serif); margin: 0; }
.more a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--flag); padding-bottom: 5px; display: inline-flex; gap: 14px; }
.more a:hover { color: var(--flag); }
.fig { grid-area: fig; align-self: start; }
.figno { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; display: flex; gap: 18px; }
.figno b { color: var(--ink); font-weight: 500; }
figure { margin: 0; }
[hidden] { display: none !important; }
figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--figbg); color: var(--ink); }
.viewer .bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.viewer .seg { display: flex; border: 1px solid var(--ink); }
.viewer .seg button { all: unset; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; padding: 6px 10px; border-left: 1px solid var(--ink); }
.viewer .seg button:first-child { border-left: 0; }
.viewer .seg button:hover { background: var(--hover); }
.viewer .seg button.on { background: var(--ink); color: var(--paper); }
.viewer .seg.view button.on[data-k="det"] { background: var(--flag); color: #fff; }
.stage { position: relative; border: 1px solid var(--ink); background: #15171a; overflow: hidden; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.stage img.on { opacity: 1; }
.stage .verdict { position: absolute; left: 0; top: 0; background: var(--flag); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; opacity: 0; transition: opacity 0.3s; }
.stage .verdict.on { opacity: 1; }
.viewer.narrow { max-width: 520px; margin-inline: auto; }
figcaption a { text-underline-offset: 2px; }
figcaption { font-family: var(--mono); font-size: 11px; line-height: 1.55; letter-spacing: 0.03em; color: var(--muted); margin-top: 10px; }
figcaption b { color: var(--ink); font-weight: 500; }
svg text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--ink); text-transform: uppercase; }
svg text.big { font-family: var(--serif); font-size: 34px; letter-spacing: -0.01em; text-transform: none; }
svg text.red { fill: var(--flag); }
svg text.dim { fill: var(--muted); }

.body h3 { font: 400 clamp(2rem, 4.1vw, 3.6rem)/1.02 var(--serif); letter-spacing: -0.018em; margin: 0 0 clamp(26px, 3.4vw, 44px); text-wrap: balance; }
.row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.row .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.row p { margin: 0 0 10px; } .row p:last-child { margin-bottom: 0; }
.row .lede { font-size: 1.14rem; line-height: 1.5; }
ol.how { list-style: none; margin: 0; padding: 0; counter-reset: how; }
ol.how li { counter-increment: how; position: relative; padding: 0 0 10px 2.4rem; }
ol.how li:last-child { padding-bottom: 0; }
ol.how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--mono); font-size: 11px; color: var(--flag); letter-spacing: 0.06em; }
ol.how strong, .row strong { font-weight: 600; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 6px; } }

.measured { margin-top: 22px; border-top: 2px solid var(--ink); }
.mhead { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 0 4px; display: flex; justify-content: space-between; gap: 12px; }
.mhead span:last-child { color: var(--muted); }
.reading { display: grid; grid-template-columns: minmax(8.2rem, 11.5rem) minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.mhead + .reading { border-top: 0; }
.val { font: 400 clamp(2.5rem, 4.4vw, 3.7rem)/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.val { display: flex; flex-wrap: wrap; align-items: baseline; }
.val i { font: 500 11px var(--mono); letter-spacing: 0.08em; margin-left: 8px; color: var(--muted); font-style: normal; text-transform: uppercase; }
.val .from { color: var(--tone3); margin-right: 0.18em; }
.reading.wide { grid-template-columns: 1fr; gap: 6px; }
.desc { font-size: 15.5px; line-height: 1.5; }
.desc .ds { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .reading { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 860px) { .project, .project:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "text"; grid-template-rows: auto; } .fig { margin-bottom: 26px; } }

.night { background: var(--night); color: var(--night-ink); }
.night .sec-head .mono { color: var(--night-muted); }
.offers { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--night-rule); }
.offer { padding: clamp(28px, 4vw, 56px) var(--pad) clamp(48px, 7vw, 100px); }
.offer + .offer { border-left: 1px solid var(--night-rule); }
.offer .mono { color: var(--flag); }
.offer h3 { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.08 var(--serif); margin: 14px 0 14px; letter-spacing: -0.01em; }
.offer p { margin: 0; color: var(--night-soft); max-width: 34em; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } .offer + .offer { border-left: 0; border-top: 1px solid var(--night-rule); } }

.path { list-style: none; margin: 0; padding: 0 var(--pad) clamp(60px, 8vw, 120px); }
.path li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.path li:first-child { border-top: 1px solid var(--ink); }
.path .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 9px; }
.path h3 { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.12 var(--serif); margin: 0 0 6px; letter-spacing: -0.01em; }
.path p { margin: 0; color: var(--soft); max-width: 40em; }
.path a { text-decoration-color: var(--flag); text-underline-offset: 3px; }
.path a:hover { color: var(--flag); }
@media (max-width: 760px) { .path li { grid-template-columns: 1fr; gap: 4px; } .path .when { padding-top: 0; } }

.contact { padding: clamp(70px, 10vw, 150px) var(--pad) clamp(40px, 5vw, 70px); }
.contact .mono { color: var(--night-muted); }
.contact h2 { font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--serif); margin: 14px 0 clamp(26px, 4vw, 50px); max-width: 24em; color: var(--night-soft); }
.mail { font: 400 clamp(1.6rem, 6.4vw, 6.2rem)/1.02 var(--serif); letter-spacing: -0.022em; text-decoration: none; border-bottom: 2px solid var(--flag); padding-bottom: 0.06em; }
.mail:hover { color: var(--flag); }
.contact .links { margin-top: clamp(30px, 4vw, 54px); display: flex; flex-wrap: wrap; gap: 10px 34px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact .links a { text-decoration: none; border-bottom: 1px solid var(--night-rule); padding-bottom: 4px; }
.contact .links a:hover { color: var(--flag); border-color: var(--flag); }
footer { padding: 22px var(--pad) 34px; border-top: 1px solid var(--night-rule); color: var(--night-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }

/* ---- multi-page ---- */
.top nav a.cur { box-shadow: inset 0 -1px 0 #fff; }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 10px; padding-top: 14px; padding-bottom: 12px; }
  .top nav { order: 5; width: 100%; gap: 22px; }
}
.hero .lead { margin-top: clamp(24px, 3.4vw, 44px); }
.whead { display: flex; justify-content: space-between; gap: 16px; padding: clamp(56px, 8vw, 110px) var(--pad) 18px; color: var(--muted); }
.windex { border-top: 1px solid var(--ink); }
.windex a { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto 2rem; gap: clamp(14px, 2.4vw, 36px); align-items: baseline; padding: clamp(16px, 2.2vw, 30px) var(--pad); border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color 0.2s; }
.windex .n, .windex .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.windex .t { font: 400 clamp(1.7rem, 4.4vw, 4rem)/1.02 var(--serif); letter-spacing: -0.02em; transition: color 0.2s; }
.windex .ar { font-family: var(--mono); text-align: right; transition: transform 0.2s; }
.windex a:hover { background: var(--night); }
.windex a:hover .t { color: var(--flag); font-style: italic; }
.windex a:hover .ar { transform: translateX(6px); color: var(--flag); }
@media (max-width: 760px) { .windex a { grid-template-columns: 2rem minmax(0, 1fr) 1.2rem; } .windex .k { display: none; } }
.doors { display: grid; grid-template-columns: 1fr 1fr; }
.doors a { display: grid; gap: 16px; align-content: start; padding: clamp(36px, 5vw, 72px) var(--pad) clamp(40px, 5.5vw, 80px); text-decoration: none; border-bottom: 1px solid var(--ink); }
.doors a + a { border-left: 1px solid var(--ink); }
.doors .mono { color: var(--muted); }
.doors .dt { font: 400 clamp(1.5rem, 2.7vw, 2.4rem)/1.1 var(--serif); letter-spacing: -0.012em; max-width: 18em; }
.doors .ar { font-family: var(--mono); transition: transform 0.2s; justify-self: start; }
.doors a:hover .dt, .doors a:hover .ar { color: var(--flag); }
.doors a:hover .ar { transform: translateX(6px); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .doors a + a { border-left: 0; } }
.colophon { padding: 22px var(--pad) 34px; border-top: 1px solid var(--night-rule); color: var(--night-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }

.phero { padding: clamp(120px, 17vh, 170px) var(--pad) clamp(30px, 4.5vw, 60px); }
.crumbs { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-bottom: clamp(22px, 3vw, 40px); }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { color: var(--flag); }
.phero h1 { max-width: 13em; }
.phero .kind { margin: clamp(16px, 2vw, 26px) 0 0; }
.band { padding: clamp(26px, 4vw, 56px) var(--pad) clamp(30px, 4vw, 56px); }
.band .scope { margin-top: 0; }
.pgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5.5vw, 88px); padding: clamp(8px, 2vw, 24px) var(--pad) clamp(60px, 8vw, 120px); border-top: 1px solid var(--ink); padding-top: clamp(36px, 5vw, 64px); }
.pgrid.text-first { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-top: 0; }
.pgrid .fig, .pgrid .ptext { grid-area: auto; }
.pgrid .ptext .lede:first-child { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.32; font-family: var(--serif); letter-spacing: -0.005em; }
.pgrid.text-first .measured { margin-top: 0; }
@media (max-width: 860px) { .pgrid, .pgrid.text-first { grid-template-columns: minmax(0, 1fr); } }
.pnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pnav a { display: grid; gap: 12px; padding: clamp(26px, 3.6vw, 48px) var(--pad); text-decoration: none; }
.pnav a + a { border-left: 1px solid var(--ink); text-align: right; }
.pnav .mono { color: var(--muted); }
.pnav .pt { font: 400 clamp(1.3rem, 2.4vw, 2.1rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.pnav a:hover .pt { color: var(--flag); font-style: italic; }
@media (max-width: 600px) { .pnav { grid-template-columns: 1fr; } .pnav a + a { border-left: 0; border-top: 1px solid var(--rule); text-align: left; } }
.foot { padding: clamp(30px, 4vw, 52px) var(--pad) clamp(30px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--ink); }
.fmail { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid var(--flag); }
.fmail:hover { color: var(--flag); }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); }
.flinks a { text-decoration: none; color: var(--night-ink); }
.flinks a:hover { color: var(--flag); }
body.inner .offers { border-top: 1px solid var(--ink); }
body.inner .offer + .offer { border-left: 1px solid var(--ink); }
body.inner .offer p { color: var(--soft); font-size: 1.08rem; }
@media (max-width: 760px) { body.inner .offer + .offer { border-left: 0; border-top: 1px solid var(--ink); } }
.seework { border-top: 1px solid var(--ink); padding: clamp(30px, 4vw, 56px) var(--pad) clamp(50px, 7vw, 100px); display: grid; gap: 6px; }
.seework .mono { color: var(--muted); margin-bottom: 14px; }
.seework a { font: 400 clamp(1.5rem, 3vw, 2.6rem)/1.15 var(--serif); letter-spacing: -0.012em; text-decoration: none; width: fit-content; }
.seework a:hover { color: var(--flag); font-style: italic; }
.bio { padding: 0 var(--pad) clamp(40px, 6vw, 80px); max-width: 62rem; }
.bio p { font: 400 clamp(1.35rem, 2.4vw, 2.1rem)/1.25 var(--serif); letter-spacing: -0.008em; margin: 0 0 0.7em; }
@media (max-width: 760px) { .track { margin-top: 34px; } .track .tl { top: -20px; } }

/* ---- one page with a map ---- */
section[id], .group[id], article[id] { scroll-margin-top: 84px; }
body.one .hero { padding-bottom: clamp(48px, 6vw, 88px); }
body.one .hero-row { align-items: start; margin-top: clamp(30px, 4.5vw, 60px); }
body.one .hero .lead { margin-top: 0; }
.map { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-rule); }
.map a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 0 12px; border-bottom: 1px solid var(--night-rule); text-decoration: none; }
.map .n, .map .s { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
.map .t { font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.map a:hover .t { color: var(--flag); font-style: italic; }
.group { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(34px, 5vw, 70px) var(--pad) clamp(10px, 1.6vw, 20px); border-top: 1px solid var(--ink); }
.group h3 { font: italic 400 clamp(3.4rem, 10vw, 9rem)/0.86 var(--serif); letter-spacing: -0.03em; color: var(--flag); margin: 0; }
.group .mono { color: var(--muted); }
.group .mono a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.group .mono a:hover { color: var(--flag); border-color: var(--flag); }
body.one .project { border-top: 1px solid var(--rule); }
@media (min-width: 861px) { body.one .project:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "fig head" "fig text"; } }
body.one .figno { gap: 8px; }
.pfull { border-top: 1px solid var(--rule); }
.pfull .phead { padding: clamp(40px, 5.5vw, 80px) var(--pad) clamp(18px, 2.4vw, 30px); }
.pfull .pgrid { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(48px, 6.5vw, 96px); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.mitem { padding: clamp(30px, 4.5vw, 64px) var(--pad) clamp(40px, 6vw, 88px); min-width: 0; }
.mitem + .mitem { border-left: 1px solid var(--ink); }
.mitem .kind { margin: 0 0 14px; }
.mitem h3 { font: 400 clamp(2rem, 3.6vw, 3.2rem)/1 var(--serif); letter-spacing: -0.02em; margin: 0 0 clamp(22px, 3vw, 36px); text-wrap: balance; }
.mitem figure { margin-bottom: clamp(22px, 3vw, 34px); }
@media (max-width: 860px) { .mgrid { grid-template-columns: 1fr; } .mitem + .mitem { border-left: 0; border-top: 1px solid var(--ink); } }
body.one .bio { padding-top: 0; }
body.one .bio p { font-size: clamp(1.25rem, 2.1vw, 1.9rem); }
@media (max-width: 760px) {
  .top nav { overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top nav::-webkit-scrollbar { display: none; }
  body.one .hero { padding-top: 132px; }
  .map .s { display: none; }
  .map a { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

/* summary inside the projects section */
.toc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding: 0 var(--pad) clamp(44px, 6vw, 84px); }
.toc .th { display: block; font: italic 400 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--serif); color: var(--flag); text-decoration: none; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.toc .tr { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 1rem; gap: 12px; align-items: baseline; padding: 13px 0 14px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.toc .n, .toc .k, .toc .ar { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.toc .t { display: block; font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.12 var(--serif); letter-spacing: -0.01em; }
.toc .k { display: block; margin-top: 5px; }
.toc .tr:hover .t { color: var(--flag); font-style: italic; }
.toc .tr:hover .ar { color: var(--flag); }
@media (max-width: 760px) { .toc { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* numbers: one format everywhere */
.mhead span:first-child { color: var(--ink); }
.meter { padding: 15px 0 17px; border-top: 1px solid var(--rule); }
.mhead + .meter { border-top: 0; padding-top: 8px; }
.mq { font-size: 15.5px; line-height: 1.4; margin-bottom: 4px; }
.mline { display: grid; grid-template-columns: minmax(7.4rem, max-content) minmax(0, 1fr); gap: 18px; align-items: center; }
.mline b { font: 400 clamp(2.3rem, 3.5vw, 3.1rem)/1.05 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.mline b small { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.mbar { display: block; height: 9px; background: var(--rule); }
.mbar i { display: block; height: 100%; background: var(--ink); }
.mbar.red i { background: var(--flag); }
.meter .ds { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.mnote { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 34em; }
.gchart { margin: 8px 0 4px; }
.grow { display: grid; grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr) 3.4rem; gap: 14px; align-items: center; padding: 6px 0; }
.grow .gn { font-size: 15px; }
.grow b { font: 400 1.45rem/1 var(--serif); text-align: right; letter-spacing: -0.01em; }
@media (max-width: 420px) { .grow { grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr) 3rem; gap: 10px; } }
/* audio demo: example switch */
.scope .seg { display: flex; flex-wrap: wrap; margin-bottom: 22px; border: 1px solid var(--night-ink); width: fit-content; max-width: 100%; }
.scope .seg button { all: unset; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; padding: 8px 12px; border-left: 1px solid var(--night-ink); color: var(--night-ink); flex: 1 1 auto; text-align: center; }
.scope .seg button:first-child { border-left: 0; }
.scope .seg button:hover { background: var(--night-rule); }
.scope .seg button.on { background: var(--night-ink); color: var(--night); }
.scope .seg button.on[data-a="synthetic"], .scope .seg button.on[data-a="insert"] { background: var(--flag); color: #fff; }
.scope-head .whats { max-width: 46em; line-height: 1.6; }
.flagtag { min-width: max-content; }
@media (max-width: 640px) { .scope .seg { width: 100%; } .scope .seg button { border-left: 0; border-top: 1px solid var(--night-ink); flex-basis: 100%; } .scope .seg button:first-child { border-top: 0; } }

/* project 04 (2026-11-12): two examples side by side, each with its own big 1-2-3 control under the photo */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.viewer .seg.steps { margin-top: 8px; width: 100%; box-sizing: border-box; }
.viewer .seg.steps button { flex: 1 1 0; text-align: center; font-size: 11.5px; letter-spacing: 0.04em; padding: 11px 4px; white-space: nowrap; }
.viewer .seg.steps button b { font-weight: 400; opacity: 0.55; margin-right: 5px; }

/* fill the right side on desktop (16/11/2026) */
.ph-r .lede { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; margin: 0 0 14px; max-width: 34em; }
.ph-r .lede:last-child { margin-bottom: 0; }
.pfull .pgrid.solo { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.pgrid.solo .measured { margin-top: 0; }
@media (max-width: 860px) { .ph-r { margin-top: 8px; } }
@media (min-width: 861px) {
  h1 { max-width: none; font-size: clamp(3.2rem, 6.1vw, 7.4rem); }
  .pfull .phead.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5.5vw, 88px); align-items: end; padding-bottom: clamp(30px, 3.6vw, 52px); }
  .ph-l .kind { margin-bottom: 0; }
  .pgrid.solo .measured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
  .pgrid.solo .mhead { grid-column: 1 / -1; }
  .pgrid.solo .meter, .pgrid.solo .mhead + .meter { border-top: 0; padding-top: 8px; }
  .pgrid.solo .measured.one { grid-template-columns: minmax(0, 1fr); }
  .pgrid.solo .measured.one .meter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: 14px; }
  .pgrid.solo .measured.one .mq { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
  .pgrid.solo .measured.one .mline { display: block; }
  .pgrid.solo .measured.one .ds { margin: 0; text-align: right; }
  .contact h2 { max-width: none; }
  .mail { font-size: clamp(3rem, 9.4vw, 11rem); }
}

/* section tints: one background per block, so the map reads at a glance (16/11/2026) */
:root { --bg-audio: #e3eaee; --bg-audio-band: #d3dde3; --bg-images: #f1e8d9; --bg-images-fig: #f8f2e7; --bg-alt: #e6e3da; }
html[data-theme="dark"] { --bg-audio: #0d1722; --bg-audio-band: #070c12; --bg-images: #1b1510; --bg-images-fig: #241c15; --bg-alt: #14181d; }
#audio, #voice, #timeline { background: var(--bg-audio); }
#audio, #voice, #timeline { --night: var(--bg-audio-band); }
#images, #generated, #localise, #age { background: var(--bg-images); --figbg: var(--bg-images-fig); }
#services, #contact, html[data-theme="dark"] #services, html[data-theme="dark"] #contact { --night: var(--bg-alt); }
#audio, #images, #voice, #timeline, #generated, #localise, #age, section { transition: background-color 0.25s; }

/* one template for all five projects: title + text, demo, numbers (16/11/2026) */
:root { --bg-images-band: #e6dac6; }
html[data-theme="dark"] { --bg-images-band: #110d09; }
.band.demo { background: var(--bg-images-band); }
.band.demo figure { margin: 0; }
.band.demo .pair { max-width: 1040px; margin-inline: auto; }
.pfull .pgrid.solo { padding-top: clamp(30px, 4vw, 52px); }
@media (min-width: 861px) {
  .pgrid.solo .measured.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.band.demo > figure { max-width: 520px; margin-inline: auto; }
/* smaller charts in Method (16/11/2026) */
.mitem figure { max-width: 440px; }
/* age: chart and numbers side by side on desktop (16/11/2026) */
@media (min-width: 861px) {
  #age { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #age .phead { grid-area: 1 / 1 / 2 / -1; }
  #age .band.demo { grid-area: 2 / 1; }
  #age .pgrid.solo { grid-area: 2 / 2; }
  #age .band.demo { display: flex; align-items: center; justify-content: center; }
  #age .band.demo > figure { width: 100%; }
  #age .pgrid.solo { align-content: center; padding-top: clamp(26px, 4vw, 56px); padding-bottom: clamp(30px, 4vw, 56px); }
  #age .pgrid.solo .measured.two { grid-template-columns: minmax(0, 1fr); }
  #age .pgrid.solo .meter + .meter { border-top: 1px solid var(--rule); padding-top: 15px; }
}

/* articles on the home page (18/11/2026) */
#articles { border-top: 1px solid var(--rule); }
.arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); padding: 0 var(--pad) clamp(64px, 8vw, 120px); }
.art-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; border-top: 1px solid var(--ink); padding-top: 18px; }
.art-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--figbg); margin-bottom: 8px; }
.art-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.art-img.wave { background: #0d1722; display: flex; align-items: center; justify-content: center; }
.art-img.wave img { width: 82%; height: auto; object-fit: contain; }
.art-card:hover .art-img img { transform: scale(1.02); }
.art-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.art-t { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1.12 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.art-card:hover .art-t { color: var(--flag); }
.art-s { color: var(--soft); line-height: 1.5; max-width: 34em; }
.art-go { margin-top: 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flag); }
@media (max-width: 760px) { .arts { grid-template-columns: 1fr; } }

/* article cards: look clickable (19/11/2026) */
.art-card { border: 1px solid var(--rule); background: var(--figbg); padding: 0 0 22px; gap: 12px; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.art-card .art-img { margin: 0 0 6px; }
.art-card .art-k, .art-card .art-t, .art-card .art-s { padding: 0 22px; }
.art-card .art-go { align-self: flex-start; margin: auto 22px 0; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; background: var(--flag); color: #fff; font-size: 12px; }
.art-card .art-go .arr { display: inline-block; transition: transform .25s; }
.art-card:hover, .art-card:focus-visible { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 34px -18px rgba(0,0,0,.45); }
.art-card:hover .art-go .arr { transform: translateX(5px); }
.art-card:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .art-card, .art-card .art-go .arr, .art-img img { transition: none; } .art-card:hover { transform: none; } }

/* project cards on the home page and project pages (19/11/2026) */
.art-num { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: baseline; margin: 2px 22px 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.art-num b { grid-row: span 2; font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--serif); color: var(--flag); letter-spacing: -0.02em; }
.art-num .lab { color: var(--soft); font-size: 0.95rem; line-height: 1.35; }
.art-num .ds { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.proj-crumb { margin: 0; padding: clamp(96px, 13vh, 130px) var(--pad) 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.proj-crumb a { color: var(--muted); text-decoration: none; }
.proj-crumb a:hover { color: var(--flag); }
body.proj.audio .proj-crumb { background: var(--bg-audio); }
body.proj.images .proj-crumb { background: var(--bg-images); }
body.proj .pfull { border-top: 0; }
.proj-next { padding: clamp(56px, 7vw, 100px) var(--pad); }
.proj-next > .mono { display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proj-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.proj-next a { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); text-decoration: none; }
.proj-next .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.proj-next .t { font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.12 var(--serif); }
.proj-next a:hover .t { color: var(--flag); }
@media (max-width: 760px) { .proj-next ul { grid-template-columns: 1fr; } }

/* projects first, split into audio and images (19/11/2026) */
#projects { border-top: 1px solid var(--rule); }
#articles .sec-head { border-top: 0; }
.pgroup { padding-top: clamp(28px, 4vw, 52px); }
.pgroup.audio { background: var(--bg-audio); }
.pgroup.images { background: var(--bg-images); --figbg: var(--bg-images-fig); }
.pgroup .arts { padding-bottom: clamp(40px, 5vw, 72px); }
.pgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--pad) clamp(16px, 2vw, 24px); }
.pgroup-head h3 { margin: 0; font: italic 400 clamp(2.4rem, 4.4vw, 3.8rem)/0.95 var(--serif); letter-spacing: -0.02em; color: var(--flag); }
.pgroup-head .mono { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#projects .sec-head { background: var(--bg-audio); padding-top: clamp(48px, 6vw, 90px); padding-bottom: 0; }
#projects .pgroup.audio { padding-top: clamp(14px, 2vw, 24px); }

/* smaller contact email (19/11/2026) */
.contact .mail, .mail { font-size: clamp(1.5rem, 3.2vw, 2.6rem) !important; border-bottom-width: 1px; }
