/* Propuesta «Brasa» — night studio in steel and graphite; heat only as response. */
:root {
  --g0: #0b0c0e;
  --g1: #111316;
  --g2: #17191d;
  --g3: #22252a;
  --line: rgba(201, 204, 209, .14);
  --line-2: rgba(201, 204, 209, .28);
  --steel: #d3d6db;
  --steel-2: #a3a8b0;
  --steel-3: #868b93;
  --text: #e8e9ec;
  --ember: #ff5a1f;
  --ember-2: #ffb347;
  --ember-deep: #a3260c;
  --gutter: clamp(16px, 3.4vw, 56px);
  --header-h: 64px;
  --gap: clamp(8px, .9vw, 14px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wide: 125%;
  --cond: 75%;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--g0); -webkit-text-size-adjust: 100%; scrollbar-color: var(--g3) var(--g0); scrollbar-width: thin; }
body {
  margin: 0; background: var(--g0); color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  font-stretch: 100%; font-weight: 400; font-kerning: normal; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--ember);
}
::selection { background: var(--ember); color: #120402; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--g0); }
::-webkit-scrollbar-thumb { background: var(--g3); border: 2px solid var(--g0); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--steel); color: var(--g0); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.shell { padding-inline: var(--gutter); }

/* Type voices */
.display, .hero-title, .p-title, .svc-title, .wb-title, .brand-word, .close-title {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -.02em; line-height: .95; color: var(--steel);
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 6.2vw, 6rem); }
.lede { color: var(--steel-2); font-size: clamp(1.05rem, 1.35vw, 1.3rem); max-width: 46ch; line-height: 1.5; text-wrap: pretty; }
.page-head { display: grid; gap: clamp(1rem, 2vw, 1.75rem); padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem)); padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }

/* Buttons and links */
.btn {
  --b: var(--steel);
  display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .7rem 1.25rem;
  font: inherit; font-stretch: 112%; font-weight: 650; font-size: .98rem; letter-spacing: 0; text-decoration: none;
  border: 1px solid var(--b); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .5s var(--ease), border-color .35s var(--ease);
}
.btn .icon { transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--steel); color: #0b0c0e; }
.btn-primary:hover { background: #efe6dc; box-shadow: 0 14px 30px -14px rgba(255, 90, 31, .7), 0 2px 0 var(--ember) inset; }
.btn-ghost { background: transparent; color: var(--steel); --b: var(--line-2); }
.btn-ghost:hover { --b: var(--ember-2); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--steel); text-decoration: none;
  font-stretch: 112%; font-weight: 600; padding-block: .5rem; border-bottom: 1px solid var(--line-2);
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.link-arrow:hover { color: #fff; border-color: var(--ember); }
.link-arrow .icon { transition: transform .45s var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* Brand mark (small) */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-d { width: 34px; height: 34px; flex: none; background: url(/media/d-steel.webp) center / 128% no-repeat; }
.brand-word { font-size: 1.02rem; letter-spacing: .01em; line-height: 1; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
html:not([data-view="home"]) .site-header, .site-header.is-solid { background: rgba(11, 12, 14, .94); border-color: var(--line); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.5rem); }
.site-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a { text-decoration: none; color: var(--steel-2); font-weight: 500; font-size: .98rem; padding-block: .5rem; position: relative; transition: color .3s; }
.site-nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a:hover::after { background: var(--ember); }
.lang { font-stretch: var(--cond); font-weight: 650; letter-spacing: .08em; border: 1px solid var(--line-2); padding: .3rem .55rem !important; font-size: .82rem !important; }
.lang:hover { border-color: var(--ember-2); }
.menu-toggle { display: none; }

/* ───────── Portal: studio → monitor → Work ───────── */
.portal { position: relative; }
.portal-stage { position: relative; min-height: 100svh; overflow: hidden; background: var(--g0); }
.js .portal { height: 300svh; }
.js .portal-stage { position: sticky; top: 0; height: 100svh; }
.portal-stage { --sw: max(100vw, calc((100svh - var(--header-h)) * 1.7778)); }
.studio {
  position: absolute; left: 50%; top: 50%; width: var(--sw); aspect-ratio: 16 / 9;
  margin-left: calc(var(--sw) * -.5); top: var(--header-h);
  transform-origin: 49.79% 52.85%; will-change: transform, opacity;
}
.studio-photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); }
/* The screen is lit: covers read as content on the LG, and its light spills onto the desk */
.studio::after { content: ''; position: absolute; left: 26%; top: 36%; width: 48%; height: 46%; pointer-events: none; background: radial-gradient(50% 50% at 50% 40%, rgba(214, 222, 235, .13), transparent 70%); mix-blend-mode: screen; }
.monitor-static { background: rgba(28, 31, 36, .55); }
.monitor-static { position: absolute; left: 32.08%; top: 39.95%; width: 35.42%; height: 25.79%; container-type: size; }
.monitor-static img { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--s) * 100cqh); rotate: var(--r); box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.portal-live .monitor-static { visibility: visible; }
.portal-live .monitor-static img { visibility: hidden; }
.studio-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, .8) 0%, rgba(11, 12, 14, .45) 30%, rgba(11, 12, 14, 0) 52%),
    linear-gradient(180deg, rgba(11, 12, 14, .5) 0%, rgba(11, 12, 14, 0) 16%, rgba(11, 12, 14, 0) 82%, rgba(11, 12, 14, .55) 100%);
}
.hero {
  position: relative; z-index: 4; min-height: 100svh; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: var(--gap); padding: calc(var(--header-h) + 3.5svh) var(--gutter) calc(2svh + 44px);
}
.js .hero { position: absolute; inset: 0; }
.hero > * { pointer-events: auto; }
.hero-d { grid-column: 10 / 13; grid-row: 1 / 3; justify-self: end; align-self: start; width: min(27svh, 16vw); margin-top: -2svh; }
.hero-text { grid-column: 1 / 7; grid-row: 2; align-self: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 27rem; padding-top: 1.6rem; }
.hero-role { font-stretch: 112%; font-weight: 650; color: var(--steel); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.25; }
.hero-line { max-width: 52ch; color: var(--steel-2); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.55; text-wrap: pretty; }
.hero-title {
  grid-column: 1 / 9; grid-row: 1; font-size: clamp(2.6rem, 5.4vw, 5.8rem); line-height: .88; letter-spacing: -.03em; margin-left: -.04em;
  color: var(--steel); white-space: nowrap;
}
.scroll-cue { display: none !important; grid-column: 9 / 13; grid-row: 3; align-self: end; justify-self: end; display: flex; align-items: center; gap: .75rem; color: var(--steel-3); font-size: .8rem; font-stretch: var(--cond); letter-spacing: .1em; text-transform: uppercase; margin-top: 1svh; }
.scroll-cue span { width: 44px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; inset: 0; background: var(--ember-2); transform: translateX(-100%); animation: cue 2.8s var(--ease) infinite 1.6s; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }
.no-js-hidden { display: none; }

.work-frame { position: relative; z-index: 3; }
.js .work-frame { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 2svh); padding-bottom: 4svh; pointer-events: none; }
.js .work-frame.is-open { pointer-events: auto; }
.js .work-frame .tile { pointer-events: auto; }
.js .portal [data-wb-reveal] { opacity: var(--reveal, 0); transform: translateY(calc((1 - var(--reveal, 0)) * 22px)); }
.portal-live .tile-slot { transform-origin: 0 0; will-change: transform; }
.portal-live .tile-slot .tile { transition: none; }
.portal-live:not(.is-settled) .tile { box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.portal-live:not(.is-settled) .tile-cap { opacity: 0 !important; }

/* Thermal D */
.dmark { position: relative; aspect-ratio: 1; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .65)); }
.dmark-steel, .dmark-heat {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: url(/media/brand/logo.png) center / contain no-repeat; mask: url(/media/brand/logo.png) center / contain no-repeat;
}
.dmark-steel {
  background: url(/media/d-steel.webp) center / contain no-repeat;
}
.dmark-steel::after {
  content: ''; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: linear-gradient(112deg, transparent calc(var(--lx, 38%) - 18%), rgba(255, 255, 255, .55) var(--lx, 38%), transparent calc(var(--lx, 38%) + 14%));
}
.dmark-heat { mix-blend-mode: screen; opacity: .95; }

/* ───────── Work browser: Mosaic + Index ───────── */
.wb { display: grid; gap: clamp(1.25rem, 3svh, 2.25rem); }
.wb-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: .75rem; }
.wb-title { font-size: clamp(2.2rem, 4.4vw, 4.6rem); }
.wb-line { color: var(--steel-2); max-width: 34ch; line-height: 1.45; }
.wb-switch { display: none; }
.wb-body { display: grid; grid-template-columns: auto minmax(15rem, 1fr); column-gap: clamp(2rem, 4.5vw, 5rem); align-items: end; }
.mosaic {
  --H: min(56svh, 33vw); --u: calc((var(--H) - var(--gap)) / 2);
  display: grid; gap: var(--gap); grid-template-columns: var(--H) var(--u) var(--u); grid-template-rows: var(--u) var(--u);
}
.work-page .mosaic { --H: min(62svh, 36vw); }
.slot-1 { grid-row: 1 / 3; }
.tile { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--tone, var(--g2)); outline: 1px solid transparent; outline-offset: 0; transition: outline-color .4s var(--ease), box-shadow .6s var(--ease); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.tile-cap {
  position: absolute; left: 0; bottom: 0; display: grid; padding: .55rem .75rem .6rem; background: var(--g0); max-width: 100%;
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.tile-title { font-stretch: 112%; font-weight: 700; color: #fff; line-height: 1.15; }
.tile-artist { font-size: .85rem; color: var(--steel-2); line-height: 1.3; }
.wb[data-active] .tile:not(.is-active) img { filter: grayscale(.85) brightness(.42); }
.tile.is-active { outline-color: var(--ember-2); box-shadow: 0 22px 44px -18px rgba(255, 90, 31, .55); }
.tile.is-active img { transform: scale(1.025); }
.tile.is-active .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }

.index { border-top: 1px solid var(--line); counter-reset: none; }
.row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .85rem 0 .9rem; text-decoration: none;
  border-bottom: 1px solid var(--line); color: var(--steel-2); transition: color .35s var(--ease);
}
.row-title { font-stretch: 112%; font-weight: 700; font-size: clamp(1.08rem, 1.35vw, 1.3rem); color: var(--steel); line-height: 1.2; display: flex; align-items: center; gap: .6rem; transition: color .35s var(--ease); }
.row-title::before { content: ''; width: 7px; height: 7px; background: var(--ember); flex: none; transform: scale(0); margin-right: calc(-7px - .6rem); transition: transform .45s var(--ease), margin .45s var(--ease); }
.row-year { color: var(--steel-3); font-size: .9rem; align-self: center; }
.row-artist { grid-column: 1 / -1; font-size: .95rem; line-height: 1.35; margin-top: .15rem; }
.row-role { grid-column: 1 / -1; font-stretch: var(--cond); font-size: .82rem; letter-spacing: .02em; color: var(--steel-3); line-height: 1.35; margin-top: .3rem; }
.wb[data-active] .row:not(.is-active) .row-title { color: var(--steel-3); }
.row.is-active .row-title { color: #fff; }
.row.is-active .row-title::before { transform: none; margin-right: 0; }
.row.is-active .row-role { color: var(--ember-2); }

/* ───────── Home sections ───────── */
.home-services { padding-block: clamp(5rem, 14vh, 10rem) clamp(3rem, 8vh, 6rem); display: grid; gap: clamp(2rem, 5vh, 3.5rem); border-top: 1px solid var(--line); }
.hs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.rail-stop { position: relative; padding: 2.4rem 2rem 0 0; display: grid; gap: .8rem; align-content: start; }
.rail-stop::before { content: ''; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; background: var(--g0); border: 1px solid var(--steel-2); }
.rail-stop h3 { font-stretch: 112%; font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--steel); }
.rail-stop p { color: var(--steel-2); font-size: .98rem; line-height: 1.55; max-width: 32ch; }
.rail-continuity { max-width: 62ch; color: var(--steel-2); padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.rail-label { color: var(--steel); font-stretch: 112%; font-weight: 650; }
.home-services .link-arrow { justify-self: start; }

.home-about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vh, 6rem) clamp(5rem, 12vh, 9rem); }
.ha-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.ha-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 92%; transform: scale(1.5); transform-origin: 30% 92%; filter: saturate(.55) brightness(.75) contrast(1.08); }
.ha-text { display: grid; gap: 1.2rem; justify-items: start; }
.ha-text p { color: var(--steel-2); max-width: 46ch; }
.ha-text p:first-of-type { color: var(--text); font-size: 1.25rem; line-height: 1.45; }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--line); }
.close { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-block: clamp(4rem, 12vh, 8rem); }
.close-title { font-size: clamp(2.6rem, 6.2vw, 6rem); }
.close-body { display: grid; gap: 1.5rem; justify-items: start; color: var(--steel-2); font-size: 1.15rem; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-block: 1.75rem 4.5rem; border-top: 1px solid var(--line); color: var(--steel-3); font-size: .92rem; }
.footer-role { margin-right: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--steel-2); }
.footer-nav a:hover { color: #fff; }

.review-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: .45rem;
  background: rgba(11, 12, 14, .9); border: 1px solid var(--line-2); padding: .3rem .6rem; font-size: .72rem; font-stretch: var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--steel-2);
}
.review-badge > span:first-child { width: 6px; height: 6px; background: var(--ember); }

/* ───────── Work page ───────── */
.work-page { padding-bottom: clamp(4rem, 10vh, 7rem); }

/* ───────── Project ───────── */
.project { background: var(--g0); padding-top: calc(var(--header-h) + 1.5rem); }
.back { display: inline-flex; align-items: center; gap: .5rem; color: var(--steel-2); text-decoration: none; padding-block: .6rem; font-weight: 500; }
.back:hover { color: #fff; }
.back:hover .icon { transform: translateX(-3px); }
.back .icon { transition: transform .4s var(--ease); }
.p-hero { display: grid; grid-template-columns: minmax(0, min(46vw, 78svh)) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; padding-block: 1.25rem clamp(3rem, 9vh, 6rem); }
.p-cover { position: sticky; top: calc(var(--header-h) + 1.5rem); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px var(--line); }
.p-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p-id { display: grid; gap: 1.25rem; justify-items: start; padding-bottom: .5rem; }
.p-id > section { justify-self: stretch; margin-top: clamp(1.25rem, 3vh, 2rem); }
.p-title { font-size: clamp(3rem, 7.4vw, 6rem); overflow-wrap: anywhere; }
.p-artist { font-stretch: 112%; font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--text); display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.p-year { color: var(--steel-3); font-weight: 500; font-size: .8em; }
.p-role { font-stretch: var(--cond); font-weight: 600; color: var(--steel); letter-spacing: .02em; font-size: 1.02rem; max-width: 40ch; line-height: 1.45; }
.p-id .actions { margin-top: .75rem; }
.p-listen { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.p-h2 { font-stretch: 112%; font-weight: 700; font-size: 1.05rem; color: var(--steel); padding-bottom: .9rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); padding-block: 0 clamp(3rem, 8vh, 5rem); }
/* Spotify: a graphite card holds the place; the single player fades in only once it has painted */
.spotify { height: 152px; border-radius: 12px; overflow: hidden; background: #1c1d20; box-shadow: inset 0 0 0 1px var(--line); }
.spotify iframe { border: 0; display: block; width: 100%; height: 152px; border-radius: 12px; color-scheme: normal; }
.js .spotify iframe { opacity: 0; transition: opacity .45s var(--ease); }
.js .spotify.is-ready iframe { opacity: 1; }
/* Portal: the monitor's own covers stand in until every tile is decoded and the portal starts */
@media (prefers-reduced-motion: no-preference) { .js .portal:not(.portal-live) .tile-slot { visibility: hidden; } }
.spotify-slot { display: grid; grid-template-columns: 152px 1fr; height: 152px; background: var(--g1); border: 1px dashed var(--line-2); }
.spotify-slot img { width: 152px; height: 150px; object-fit: cover; opacity: .9; }
.spotify-slot > div { padding: 1.1rem 1.25rem; display: grid; align-content: center; gap: .4rem; }
.slot-title { display: flex; align-items: center; gap: .5rem; color: var(--steel); font-weight: 600; }
.slot-note { color: var(--steel-2); font-size: .92rem; line-height: 1.45; max-width: 48ch; }
.p-credits dl > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 1.2fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.p-credits dt { font-stretch: var(--cond); font-size: .9rem; letter-spacing: .03em; color: var(--steel-2); }
.p-credits dd { color: var(--text); }
.p-video { padding-bottom: clamp(3rem, 8vh, 5rem); }
.video { position: relative; background: var(--g1); }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--focus, 50% 50%); }
.video-toggle { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(11, 12, 14, .82); border: 1px solid var(--line-2); color: var(--steel); cursor: pointer; }
.video-toggle:hover { border-color: var(--ember-2); color: #fff; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video figcaption { padding-top: .75rem; color: var(--steel-2); font-size: .92rem; }
.p-editorial { padding-bottom: clamp(3rem, 8vh, 5rem); max-width: calc(64ch + 2 * var(--gutter)); }
.p-lead { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.45; color: var(--text); text-wrap: pretty; }
.pending { border: 1px dashed var(--line-2); padding: 1.1rem 1.25rem; color: var(--steel-2); font-size: .95rem; }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.p-step { display: flex; align-items: center; gap: 1.25rem; padding-block: 1.75rem; text-decoration: none; }
.p-step.next { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line); }
.p-step img { width: 88px; height: 88px; object-fit: cover; transition: filter .5s var(--ease); filter: grayscale(.5) brightness(.75); }
.p-step:hover img { filter: none; }
.p-step > span { display: grid; gap: .15rem; }
.p-step-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--steel-3); font-size: .85rem; }
.p-step.next .p-step-label { justify-content: flex-end; }
.p-step-title { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2.1rem); color: var(--steel); line-height: 1.05; }
.p-step:hover .p-step-title { color: #fff; }
.p-step-artist { color: var(--steel-2); font-size: .95rem; }
.p-related { padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); }
.p-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--gap); }
.p-related a { display: grid; gap: .2rem; text-decoration: none; }
.p-related img { aspect-ratio: 1; object-fit: cover; margin-bottom: .6rem; }
.rel-title { font-stretch: 112%; font-weight: 700; color: var(--steel); }
.rel-artist { color: var(--steel-2); font-size: .92rem; }

/* ───────── Services ───────── */
.services-page { padding-bottom: clamp(3rem, 8vh, 5rem); }
.lede-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 72rem; }
.lede-pair .lede:first-child { color: var(--text); }
.svc-rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-list { position: relative; border-left: 1px solid var(--line-2); }
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem); padding: 0 0 clamp(3rem, 7vh, 5rem) clamp(1.5rem, 3vw, 3rem); position: relative; }
.svc::before { content: ''; position: absolute; left: -6px; top: .55rem; width: 11px; height: 11px; background: var(--g0); border: 1px solid var(--steel-2); }
.svc-title { font-size: clamp(1.6rem, 2.7vw, 2.6rem); line-height: 1.02; }
.svc-body { display: grid; gap: 1rem; justify-items: start; color: var(--steel-2); }
.svc-body > p:first-child { color: var(--text); }
.svc-support { font-size: .98rem; }
.svc-proof { display: grid; gap: .9rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; font-size: .95rem; }
.proof-covers { display: flex; flex-wrap: wrap; gap: 6px; }
.proof-covers a { display: block; width: 56px; height: 56px; outline: 1px solid transparent; transition: outline-color .3s; }
.proof-covers a:hover { outline-color: var(--ember-2); }
.proof-covers img { width: 100%; height: 100%; object-fit: cover; }
.svc-continuity { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; padding: 1.75rem; background: var(--g1); border: 1px solid var(--line); }
.svc-continuity .svc-title { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.svc-proof-line { font-size: .95rem; }
.svc-visual { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); margin-inline: var(--gutter); padding-inline: 0; }

/* ───────── About ───────── */
.about-head { grid-template-columns: 1fr auto; align-items: end; }
.about-d { width: clamp(110px, 16vw, 220px); }
.about-photo { aspect-ratio: 21 / 8; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; filter: saturate(.55) brightness(.72) contrast(1.08); }
.about-body { display: grid; gap: clamp(2rem, 5vh, 3rem); padding-block: clamp(3rem, 9vh, 6rem); }
.about-lead { font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; color: var(--steel); max-width: 30ch; text-wrap: balance; }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); color: var(--steel-2); }

/* ───────── Contact ───────── */
.contact-page { padding-bottom: clamp(4rem, 10vh, 7rem); }
.contact-title { max-width: 14ch; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem); max-width: 64rem; }
.field { grid-column: 1 / -1; display: grid; gap: .5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field.half { grid-column: span 1; }
.field label, .field legend { font-stretch: 112%; font-weight: 600; color: var(--steel); font-size: .98rem; padding: 0; margin-bottom: .1rem; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--g1); border: 1px solid var(--line-2); border-radius: 0; padding: .8rem .9rem; min-height: 48px; width: 100%;
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--steel-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember-2); background: var(--g2); box-shadow: 0 0 0 1px var(--ember-2); }
.field ::placeholder { color: var(--steel-3); opacity: 1; }
.help { color: var(--steel-2); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line-2); color: var(--steel-2); font-size: .95rem; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chip input:hover + span { border-color: var(--steel-3); color: var(--text); }
.chip input:checked + span { background: var(--steel); border-color: var(--steel); color: var(--g0); box-shadow: inset 0 -2px 0 var(--ember); }
.chip input:focus-visible + span { outline: 2px solid var(--ember-2); outline-offset: 2px; }
.form-end { grid-column: 1 / -1; display: grid; gap: 1rem; justify-items: start; padding-top: .5rem; }
.form-status { font-size: 1rem; line-height: 1.5; color: var(--steel); max-width: 48ch; outline: none; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--ember-2); font-size: .95rem; }
.brief[aria-busy="true"] button[type=submit] { opacity: .6; cursor: progress; }
/* Sent: only the confirmation stays */
.brief.is-sent > :not(.form-end), .brief.is-sent .form-end > :not(.form-status) { display: none; }
.brief.is-sent .form-status { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-stretch: 112%; font-weight: 600; }
/* Direct email under the form */
.direct-email { margin-top: clamp(2rem, 5vh, 3rem); color: var(--steel-2); font-size: .98rem; line-height: 1.5; }
.inline-link, .direct-email a { color: var(--text); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.inline-link:hover, .direct-email a:hover { text-decoration-color: var(--ember-2); }
/* Privacy */
.legal-body { display: grid; gap: clamp(1.75rem, 4vh, 2.5rem); max-width: 46rem; padding-bottom: clamp(4rem, 10vh, 7rem); }
.legal-body p { color: var(--steel-2); line-height: 1.65; text-wrap: pretty; }
.legal-body .p-h2 { margin-bottom: .9rem; }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.legal-body a:hover { text-decoration-color: var(--ember-2); }
.legal-updated { font-size: .88rem; color: var(--steel-3) !important; }
/* Honeypot: out of sight and out of reach */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .hero-text { grid-template-columns: 1fr; }
  .hero-text .actions { grid-column: 1; }
  .rail { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .rail::before { display: none; }
  .rail-stop { border-top: 1px solid var(--line-2); }
  .rail-stop::before { top: -6px; }
  .svc-rail { grid-template-columns: 1fr; }
  .svc-continuity { position: static; }
  .about-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --header-h: 56px; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; gap: .45rem; font: inherit; font-weight: 600; font-size: .95rem;
    background: transparent; color: var(--steel); border: 1px solid var(--line-2); cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle .menu-close { display: none; }
  .menu-toggle span { display: inline-flex; align-items: center; gap: .45rem; }
  .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: inline-flex; }
  .js .site-nav { position: fixed; inset: 0; background: var(--g0); flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2rem; padding: 6rem var(--gutter) 4.5rem; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .js .site-nav ul { flex-direction: column; gap: .25rem; }
  .js .site-nav ul a { font-stretch: var(--wide); font-weight: 800; font-size: clamp(2.2rem, 11vw, 3.4rem); color: var(--steel); line-height: 1.1; letter-spacing: -.02em; }
  html:not(.js) .site-header { position: absolute; height: auto; flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .menu-toggle { display: none; }

  .portal-stage { --sw: min(260vw, calc((100svh - var(--header-h) - 250px) * 1.7778)); }
  .p-related ul { grid-template-columns: 1fr 1fr; }
  .studio-shade { background: linear-gradient(180deg, rgba(11, 12, 14, .7) 0%, rgba(11, 12, 14, .05) 12%, rgba(11, 12, 14, .1) calc(var(--header-h) + var(--sw) * .4), var(--g0) calc(var(--header-h) + var(--sw) * .55)); }
  .hero { display: flex; flex-direction: column; padding: calc(var(--header-h) + var(--sw) * .5) var(--gutter) 1.5rem; gap: 1rem; }
  .hero-d { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 10px); width: 22vw; }
  .hero-title { order: -1; font-size: 10.7vw; margin-bottom: .5rem; }
  .hero-text { max-width: none; justify-self: stretch; padding-top: 0; gap: .9rem; display: grid; grid-template-columns: 1fr; }
  .hero-line { font-size: .98rem; }
  .scroll-cue { display: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }

  .wb-head { grid-template-columns: 1fr; }
  .wb-head .link-arrow { display: none; }
  .wb-switch { display: flex; gap: 0; justify-self: start; border: 1px solid var(--line-2); }
  .wb-switch button { font: inherit; font-weight: 600; font-size: .92rem; min-height: 44px; padding: 0 1.1rem; background: transparent; color: var(--steel-2); border: 0; cursor: pointer; }
  .wb-switch button[aria-pressed="true"] { background: var(--steel); color: var(--g0); }
  .wb-body { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; width: 100%; }
  .mosaic .tile-slot { aspect-ratio: 1; }
  .slot-1 { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: auto !important; }
  .slot-2 { grid-column: 5 / 7; grid-row: 1; }
  .slot-3 { grid-column: 5 / 7; grid-row: 2; }
  .slot-4 { grid-column: 1 / 4; grid-row: 3; }
  .slot-5 { grid-column: 4 / 7; grid-row: 3; }
  .index { display: none; }
  .wb[data-mode="index"] .index { display: block; }
  .wb[data-mode="index"] .mosaic { display: none; }
  .js .portal .wb[data-mode="index"] .mosaic { display: grid; visibility: hidden; position: absolute; }
  .tile-cap { display: none; }

  .hs-head, .close, .home-about, .p-hero, .p-grid, .svc, .svc-visual, .lede-pair, .about-cols { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .p-hero { gap: 1.75rem; }
  .p-cover { position: static; }
  .p-nav { grid-template-columns: 1fr; }
  .p-step.next { border-left: 0; border-top: 1px solid var(--line); }
  .p-step img { width: 64px; height: 64px; }
  .video video { aspect-ratio: 4 / 5; }
  .spotify-slot { grid-template-columns: 96px 1fr; height: auto; min-height: 152px; }
  .spotify-slot img { width: 96px; height: 100%; }
  .brief { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .about-photo { aspect-ratio: 4 / 3; }
  .about-head { grid-template-columns: 1fr; }
  .about-d { width: 120px; grid-row: 1; }
  .footer-nav { gap: 0 1.25rem; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 820px) and (min-height: 0) {
  .js .work-frame { justify-content: flex-start; padding-top: calc(var(--header-h) + 3svh); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .portal { height: auto; }
  .js .portal-stage { position: relative; height: auto; }
  .js .hero { position: relative; }
  .js .work-frame { position: relative; pointer-events: auto; padding-block: 4rem; }
  .js .portal [data-wb-reveal] { opacity: 1; transform: none; }
  .portal-live .monitor-static { visibility: visible; }
}

/* Contact: brief beside its heading on wide screens */
@media (min-width: 1100px) {
  .contact-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .contact-page .page-head { position: sticky; top: var(--header-h); }
  .brief { padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-shade { height: 100svh; }
}
/* Without JS the stage is a normal hero followed by Work */
html:not(.js) .studio-shade { height: 100svh; }
html:not(.js) .work-frame { padding-block: 4rem; }

/* Variante 3D: the canvas draws the sleeves until they settle, then the DOM mosaic takes over */
.portal-gl { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.portal-3d:not(.is-settled) .tile-slot { visibility: hidden; }
.variant-switch { display: inline-flex; gap: .5rem; margin-left: .35rem; padding-left: .6rem; border-left: 1px solid var(--line-2); }
.variant-switch a { text-decoration: none; color: var(--steel-3); }
.variant-switch a[aria-current="true"] { color: var(--steel); }
.variant-switch a:hover { color: #fff; }
