/* jacopopietrucci.com — a nod to Sincrono.live, not a copy.
   The site reads like Jacopo's running order on the desk: timecode, department tabs,
   tall rows with a coloured item code, chips, hairlines in the item colour.
   Every photo in black and white; galleries and previews open only on request. */
:root {
  --bg: #111112; --bar: #161618; --btn: #232327; --btn-line: #2f2f34; --line: #2a2a2e;
  --ink: #ececee; --muted: #a3a4a9; --dim: #6c6d73;
  --cyan: #4fc3f7; --green: #5bd68a; --green-line: #30a46c; --green-bg: #1b3a2a;
  --red: #e5484d; --amber: #ffb74d; --orange: #ff8a5c; --violet: #b388ff; --yellow: #f2c94c;
  --ui: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --bw: grayscale(1) contrast(1.06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-gutter: stable; }   /* the scrollbar's room is kept, so nothing shifts when the opening screen unlocks the page */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* every photo in black and white */
.reel img, .showreel img, .gallery img, .about img, .viewer.doc .v-stage img { filter: var(--bw); }
.gallery img { transition: filter .4s ease; }
.gallery button:hover img { filter: none; }

/* item colours */
.c-red { --c: var(--red); } .c-cyan { --c: var(--cyan); } .c-orange { --c: var(--orange); }
.c-yellow { --c: var(--yellow); } .c-violet { --c: var(--violet); } .c-amber { --c: var(--amber); }

/* buttons, as in the app toolbar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 6px; background: var(--btn); border: 1px solid var(--btn-line); color: var(--ink); }
.btn:hover { border-color: #4a4a52; }
.btn.live { border-color: var(--red); background: #2a1416; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.btn.live::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.btn.live:hover { background: #3a1719; }
.btn.cyan { color: var(--cyan); }
.btn.go { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.btn.go:hover { background: #22492f; }
.btn.big { font-size: 18px; padding: 14px 26px; }

/* header: language left, name centre, timecode + ONLINE right */
.head { border-bottom: 1px solid var(--line); background: var(--bar); }
.head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px 24px; align-items: center; padding-block: 20px; }
.id { text-align: center; }
.name { font-family: var(--cond); font-weight: 700; font-size: clamp(36px, 3.8vw, 56px); line-height: 1; letter-spacing: .01em; text-decoration: none; display: inline-block; }
.tagline { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.lside { justify-self: start; display: grid; justify-items: start; gap: 8px; }
.desk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 5px; background: #2a1416; border: 1px solid var(--red); color: #ffd9da; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.desk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: tally 2s ease-in-out infinite; }
.desk:hover { background: #3a1719; }
@keyframes tally { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .desk::before { animation: none; } }
.seg { display: inline-flex; background: var(--btn); border: 1px solid var(--btn-line); border-radius: 6px; padding: 2px; }
.seg a, .seg span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 4px; text-decoration: none; color: #6a7280; }
.seg span[aria-current] { background: var(--cyan); color: #0e1014; }
.seg a:hover { color: var(--ink); }
.tcbox { justify-self: end; display: grid; justify-items: end; gap: 8px; }
.clock { font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 1.7vw, 25px); letter-spacing: .05em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock .ff { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--green); border: 1px solid var(--green-line); background: var(--green-bg); padding: 3px 7px; border-radius: 4px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@media (max-width: 900px) {
  .head .wrap { grid-template-columns: auto 1fr; }
  .id { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .lside { grid-row: 2; align-self: center; }
  .clock { font-size: 21px; }
  .tcbox { grid-row: 2; }
}

/* opening screen: the house dark, the cue light off; GO lights it red and the curtain lifts */
.house { display: none; will-change: transform; }
html.standby { overflow: hidden; }
html.standby .house, .house.out { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse at 50% 42%, #18181a 0%, #0a0a0b 62%); }
.house.out { transform: translateY(-100%); transition: transform 1s cubic-bezier(.75, 0, .2, 1); }
.standby { display: grid; justify-items: center; gap: 30px; text-align: center; padding: 20px; }
.standby > * { max-width: 100%; }
.standby > .k { color: var(--dim); line-height: 1.7; text-wrap: balance; }
.cuebox { width: 150px; height: 214px; border-radius: 14px; background: linear-gradient(#1c1c1f, #0e0e10); border: 1px solid var(--line); box-shadow: 0 24px 48px -12px #000; display: grid; justify-items: center; align-content: center; gap: 22px; }
.bulb { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a5a60, #2c2c31 50%, #151517 100%); box-shadow: inset 0 2px 6px rgba(255,255,255,.06), inset 0 -6px 14px rgba(0,0,0,.5); transition: background .12s ease, box-shadow .12s ease; }
.bulb.on { background: radial-gradient(circle at 40% 35%, #ffb1ad, var(--red) 45%, #6e0d10 100%); box-shadow: 0 0 44px 12px rgba(229,72,77,.55), 0 0 160px 60px rgba(229,72,77,.18); }
.cuebox small { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--dim); }
.go-key { min-width: 132px; height: 62px; padding: 0 30px; border: 0; border-radius: 8px; cursor: pointer; background: var(--green); color: #050806; font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: .14em; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 26px -4px rgba(91,214,138,.75); position: relative; }
.go-key::after { content: ""; position: absolute; inset: -2px; border-radius: 10px; border: 2px solid var(--green); opacity: 0; animation: ring 2.2s ease-out infinite; pointer-events: none; }
.go-key:hover { background: #74e39f; }
.go-key:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 20px -4px rgba(91,214,138,.75); }
.go-key:focus, .go-key:focus-visible { outline: none; }
.house.pressed .go-key::after { animation: none; }
.hint { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hint kbd { font: inherit; border: 1px solid var(--btn-line); border-radius: 4px; padding: 2px 6px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .go-key::after { animation: none; } .house.out, .bulb { transition: none; } }

/* lede, over a slow colour slideshow under a 30% black veil */
.lede { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.slides img.on { opacity: 1; }
.lede::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,18,.85) 0%, rgba(17,17,18,0) 22%), rgba(0,0,0,.3); pointer-events: none; }
.lede .wrap { position: relative; z-index: 1; display: grid; justify-items: start; align-content: center; text-align: left; min-height: clamp(440px, 62vh, 660px); padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .lede .wrap { min-height: 460px; } }
.lede h1 { margin: 0; font-family: var(--cond); font-weight: 600; font-size: clamp(46px, 6.4vw, 96px); line-height: .96; letter-spacing: .005em; max-width: 14ch; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 4px 36px rgba(0,0,0,.65); }
.lede p { margin: 18px 0 0; color: #e4e5e8; font-size: 19px; max-width: 50ch; text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 22px rgba(0,0,0,.7); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .slides img { transition: none; } }

/* department tabs = section nav */
.depts { position: sticky; top: 0; z-index: 20; background: rgba(17,17,18,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.depts .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.depts .wrap::-webkit-scrollbar { display: none; }
.depts .wrap > a:first-child { margin-left: -14px; }
.depts a { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; line-height: 1.1; text-align: center; }
.depts a small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.depts a:hover { color: var(--ink); }
.depts a.on { color: var(--green); background: var(--green-bg); border-color: var(--green-line); box-shadow: 0 0 18px -6px rgba(91,214,138,.55); }
.depts a.on small { color: var(--green); opacity: .7; }
.depts a { transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s; }
/* GO: the big green key of the desk */
.gobtn { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 5px 5px 5px 14px; border-radius: 8px; cursor: pointer; background: #1a1a1d; border: 1px solid var(--btn-line); white-space: nowrap; transition: border-color .2s, box-shadow .2s, transform .08s; }
.gobtn .press { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.gobtn b { display: grid; place-items: center; min-width: 74px; height: 40px; padding: 0 14px; border-radius: 5px; background: var(--green); color: #050806; font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 18px -4px rgba(91,214,138,.7); animation: nudge 2.4s ease-in-out infinite; }
.gobtn:hover { border-color: var(--green-line); }
.gobtn:focus { outline: none; }
.gobtn:focus-visible { outline: 2px solid var(--green-line); outline-offset: 3px; border-radius: 8px; }
.gobtn:hover b { background: #74e39f; }
.gobtn:active { transform: translateY(1px); }
.gobtn.end b { background: var(--btn); color: var(--ink); box-shadow: none; animation: none; }
.gobtn.end b::after { animation: none; }
.gobtn b { position: relative; }
.gobtn b::after { content: ""; position: absolute; inset: -2px; border-radius: 7px; border: 2px solid var(--green); opacity: 0; animation: ring 2.2s ease-out infinite; pointer-events: none; }
.gobtn.idle { animation: knock 3.6s ease-in-out 1.2s infinite; }
.gobtn.idle .press { animation: blink 1.8s steps(1) infinite; }
@keyframes ring { 0% { opacity: .75; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45, 1.8); } }
@keyframes knock { 0%, 70%, 100% { transform: none; } 75% { transform: translateY(-3px); } 80% { transform: none; } 85% { transform: translateY(-2px); } 90% { transform: none; } }
@keyframes blink { 50% { color: var(--green); } }
@media (prefers-reduced-motion: reduce) { .gobtn b::after, .gobtn.idle, .gobtn.idle .press { animation: none; } }
@keyframes nudge { 50% { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 28px -2px rgba(91,214,138,.95); } }
@media (prefers-reduced-motion: reduce) { .gobtn b { animation: none; } }
.go-float { display: none; }
@media (max-width: 760px) {
  .go-bar { display: none; }
  .go-float { display: inline-flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; margin: 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
}
@media print { .gobtn { display: none; } }

/* the cue on air, and the ones already gone */
.item > .r { transition: background-color .4s, box-shadow .4s; border-radius: 4px; }
.sec.live > .story .k, .sec.live > .split > .story .k { color: var(--green); }
.sec.live > .story .k::before, .sec.live > .split > .story .k::before { content: "● "; }

/* sections */
.sec { padding-top: clamp(30px, 4vw, 48px); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.sec-h h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
.sec-h span { font-family: var(--mono); font-size: 13px; color: var(--dim); text-align: right; }

/* story: each section says what you are looking at */
.story { padding: clamp(72px, 9vw, 132px) 0 26px; max-width: 760px; }
.story .k { display: block; margin-bottom: 10px; }
.story h2 { margin: 0; font-family: var(--cond); font-weight: 600; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; }
.story p { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 62ch; }
.story p.strong { color: var(--ink); font-size: 19px; }
.sec { padding-top: 0; }
.legend { display: grid; grid-template-columns: var(--cols); gap: 0 var(--gap); padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.legend span:last-child { text-align: center; }
@media (max-width: 960px) { .legend { display: none; } }
.type { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--btn-line); border-radius: 3px; padding: 1px 6px; }
.dur { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--c, var(--muted)); }

/* sections enter with a fade and a small lift */
html.rv .reveal { opacity: 0; transform: translateY(10px); transition: opacity 1s cubic-bezier(.4,0,.2,1) var(--d, 0s), transform 1.4s cubic-bezier(.22,.61,.36,1) var(--d, 0s); }
html.rv .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.rv .reveal { opacity: 1; transform: none; transition: none; } }
@media print { html.rv .reveal { opacity: 1; transform: none; } }

/* running-order rows */
:root { --cols: 132px minmax(0, 1fr) minmax(0, 1.05fr) 128px; --gap: clamp(20px, 3vw, 44px); }
.ro { border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid color-mix(in srgb, var(--c, var(--line)) 45%, transparent); }
.item > .r { display: grid; grid-template-columns: var(--cols); gap: 10px var(--gap); align-items: center; padding: 38px 14px; margin-inline: -14px; }
.t { font-family: var(--mono); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.t small { display: block; font-weight: 500; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); margin-top: 8px; }
.cl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--c, var(--muted)); }
.ttl { font-family: var(--cond); font-weight: 600; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.02; margin: 8px 0 0; text-wrap: balance; }
.ttl a { text-decoration: none; }
.ttl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sub { margin-top: 4px; font-family: var(--cond); font-weight: 500; font-size: 17px; letter-spacing: .02em; color: #d9dade; }
.case-h .sub { font-size: 22px; margin-top: 8px; }
#regia .sub { font-size: 15.5px; margin-top: 2px; }
.desc p strong, .case-b .text strong { color: var(--ink); font-weight: 600; }
.meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.meta .k { font-size: 11px; margin-right: 2px; }
.meta i { font-style: normal; color: var(--dim); margin: 0 10px; }
.desc .h { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--ink)); }
.desc p { margin: 6px 0 0; color: #c9cacf; font-size: 15.5px; line-height: 1.55; max-width: 54ch; }
.desc .by { color: var(--dim); font-style: italic; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tag { font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--cyan); border-radius: 4px; padding: 2px 7px; text-decoration: none; }
.tag.amber { color: var(--amber); border-color: var(--amber); }
a.tag:hover { background: rgba(255,255,255,.04); }
.who { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--btn-line); border-radius: 4px; padding: 3px 9px; }
.k { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.acts-r { display: flex; flex-direction: column; gap: 8px; justify-self: end; }
.thumb { position: relative; display: block; width: 128px; aspect-ratio: 3 / 2; padding: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #0a0a0b; border: 1px solid var(--btn-line); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--bw); opacity: .7; transition: filter .4s, opacity .4s, transform .6s; }
.thumb span { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 5px; border-radius: 4px; background: rgba(10,10,11,.82); font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.thumb svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.thumb.js-reel { cursor: pointer; } .thumb.js-reel svg { fill: var(--ink); stroke: none; }
.thumb:hover { border-color: var(--c, var(--ink)); }
.thumb:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.thumb[aria-expanded="true"] { border-color: var(--cyan); }
@media (max-width: 960px) { .thumb { width: 112px; } }
@media (max-width: 620px) { .thumb { width: 96px; } .thumb span { font-size: 9.5px; } }
.sq { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px; background: var(--btn); border: 1px solid var(--btn-line); cursor: pointer; text-decoration: none; padding: 0; }
.sq:hover { border-color: #4a4a52; }
.sq svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.sq[aria-expanded="true"] { border-color: var(--cyan); }
.sq[aria-expanded="true"] svg { stroke: var(--cyan); }
.js-reel svg { fill: var(--muted); stroke: none; }
.js-reel[aria-expanded="true"] svg { fill: var(--cyan); }
.js-sum[aria-expanded="true"] svg { transform: rotate(45deg); }
@media (max-width: 960px) {
  :root { --cols: 104px minmax(0, 1fr) 112px; }
  .item .desc { grid-column: 2 / 3; grid-row: 2; }
}
@media (max-width: 620px) {
  .item > .r { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px 14px; padding: 28px 14px; }
  .t { font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
  .t small { margin-top: 0; }
  .item .what { grid-column: 1; grid-row: 2; }
  .item .desc { grid-column: 1 / -1; grid-row: 3; }
  .acts-r { grid-column: 2; grid-row: 1 / 3; align-self: start; }
}

/* the running order: a wider box and tighter rows, so all the ITEMs fit on one screen */
@media (min-width: 961px) {
  #regia { --W: min(100vw - 2 * clamp(16px, 3vw, 32px), 1560px); margin-inline: calc((100% - var(--W)) / 2); }
  #regia { --cols: 118px minmax(0, 0.9fr) minmax(0, 1.25fr) 100px; }
  #regia .story { max-width: none; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 48px; align-items: end; padding-bottom: 20px; }
  #regia .story .k { grid-column: 1 / -1; }
  #regia .story p { margin: 0; max-width: 64ch; }
  #regia .item > .r { padding: 11px 14px; }
  #regia .t { font-size: 22px; }
  #regia .t small { margin-top: 6px; }
  #regia .ttl { font-size: clamp(22px, 1.8vw, 27px); margin-top: 5px; }
  #regia .meta { margin-top: 5px; font-size: 13.5px; }
  #regia .desc p { font-size: 15px; line-height: 1.45; max-width: 70ch; margin-top: 4px; }
  #regia .thumb { width: 100px; }
}

/* film preview: a wide strip across the whole row */
.reel { padding: 0 0 24px; }
.reel[hidden] { display: none; }
.screen { position: relative; aspect-ratio: 2.35 / 1; background: #0a0a0b; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.screen img, .screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.screen img { opacity: .8; }
.playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(17,17,18,.78); border: 1px solid var(--btn-line); color: var(--ink); font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); }
.playbtn svg { width: 22px; height: 22px; fill: var(--ink); }
.playbtn:hover { border-color: var(--ink); }
.case-reel { padding-bottom: 24px; }
.showreel .screen { border-radius: 8px; }
.showreel .screen img { opacity: .55; }
.rvm { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink); background: rgba(10,10,11,.7); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; z-index: 1; }
.screen video ~ .rvm, .screen iframe ~ .rvm { display: none; }

/* craft: the statement on one side, four cues on the other */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0 clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split .story { position: static; }
.craft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: calc(clamp(72px, 9vw, 132px) + 30px); }
@media (max-width: 960px) { .craft { padding-top: 0; } }
@media (max-width: 560px) { .craft { grid-template-columns: 1fr; } }
.cue { background: var(--bar); border: 1px solid var(--line); border-left: 3px solid var(--green-line); border-radius: 8px; padding: 18px 18px 20px; }
.cue:nth-child(2) { border-left-color: var(--cyan); } .cue:nth-child(3) { border-left-color: var(--orange); } .cue:nth-child(4) { border-left-color: var(--violet); }
.cue h3 { margin: 6px 0 6px; font-family: var(--cond); font-weight: 600; font-size: 24px; }
.cue p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* operating facts: languages, where, formats — one quiet line of three */
.ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; margin: 28px 0 0; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.ops dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.ops dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .ops { grid-template-columns: 1fr; } }
.cue .code { color: var(--dim); }

/* archive: compact cards in a grid */
.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding-bottom: 8px; }
.arc-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #151517, #121213); }
.arc-card .ttl { font-size: 21px; line-height: 1.1; }
.arc-card .role { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.arc-card .sq { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.arc-card:has(.sq) .ttl { padding-right: 48px; }

/* press */
.press { --cols: 104px minmax(0, 1.5fr) minmax(0, 1fr) 84px; }
.press .item > .r { padding: 14px 14px; }
.press .t { font-size: 18px; }
.press .t small { margin-top: 5px; font-size: 11.5px; }
.press .code { font-size: 11.5px; }
.press .ttl { font-size: clamp(19px, 1.5vw, 22px); margin-top: 4px; }
.press .desc .by { font-size: 14.5px; }
.press .acts-r { flex-direction: row; gap: 6px; }
.press .sq { width: 38px; height: 38px; }
.press .sq svg { width: 17px; height: 17px; }
.press .sum { font-size: 15.5px; }
@media (max-width: 960px) { .press { --cols: 88px minmax(0, 1fr) 84px; } }
@media (max-width: 620px) { .press .item > .r { grid-template-columns: minmax(0, 1fr) auto; } }
.press .sum { padding: 0 0 18px calc(104px + var(--gap)); color: var(--muted); max-width: calc(66ch + 180px); margin: 0; }
.press .sum[hidden] { display: none; }
.press .sum a { color: var(--cyan); }
@media (max-width: 960px) { .press .sum { padding-left: calc(104px + var(--gap)); } }
@media (max-width: 620px) { .press .sum { padding-left: 0; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 640px); gap: 36px; align-items: start; padding-block: 22px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about img { max-width: 360px; } }
.about img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); display: block; }
.about p { margin: 0 0 14px; font-size: 19px; }
.about p.m { color: var(--muted); font-size: 17px; }
.clients { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.clients .k { display: block; margin-bottom: 6px; }

/* contacts: the call under the title, an email for whoever prefers to write */
#contatti .story p { color: var(--muted); }
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.c-call { display: grid; justify-items: start; gap: 14px; }
.c-call p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.c-call .mailto { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--btn-line); text-underline-offset: 4px; }
.c-call .mailto:hover { text-decoration-color: var(--ink); }

/* case page */
.case-h { padding-block: clamp(30px, 4vw, 52px) 20px; border-bottom: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.case-h .back { font-size: 14px; color: var(--cyan); text-decoration: none; }
.case-h .code { display: block; margin-top: 22px; font-size: 14px; }
.case-h h1 { margin: 6px 0 0; font-family: var(--cond); font-weight: 600; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }
.case-h .role { margin-top: 10px; font-family: var(--cond); font-weight: 600; font-size: 24px; color: var(--muted); }
.case-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px 48px; padding-block: 28px; align-items: start; }
@media (max-width: 860px) { .case-b { grid-template-columns: 1fr; } }
.case-b .text p { margin: 0 0 14px; font-size: 18px; max-width: 60ch; }
.facts { background: var(--bar); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 14.5px; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.facts dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 28px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.gallery figcaption { margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 10px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: grid; gap: 2px; }
.pager a:hover .ttl { text-decoration: underline; text-underline-offset: 4px; }
.pager .ttl { font-size: 22px; }
.pager .next { text-align: right; }

/* viewer: galleries that advance on their own, and article previews */
.viewer { width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #0d0d0e; color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgba(5,5,6,.82); backdrop-filter: blur(3px); }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.v-title { font-family: var(--cond); font-weight: 600; font-size: 22px; }
.v-count { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-left: auto; }
.v-close { width: 40px; height: 40px; }
.v-stage { position: relative; height: min(70vh, 720px); background: #080809; }
.v-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s ease; }
.v-stage img.on { opacity: 1; }
.viewer.doc .v-stage { height: auto; max-height: 76vh; overflow: auto; background: #fff; }
.viewer.doc .v-stage img { position: static; height: auto; opacity: 1; display: block; margin: 0 auto; }
.v-cap { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: var(--dim); }
.v-nav { position: absolute; top: 50%; width: 44px; height: 44px; background: rgba(17,17,18,.7); }
.v-prev { left: 12px; } .v-next { right: 12px; }
.viewer.single .v-nav, .viewer.single .v-count { display: none; }
@media (prefers-reduced-motion: reduce) { .v-stage img { transition: none; } }

.notfound { padding-block: 80px; }
.legal { padding-block: 56px 80px; max-width: 760px; }
.legal h1 { font-family: var(--cond); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); margin: 0 0 24px; }
.legal p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.notfound h1 { font-family: var(--cond); font-weight: 600; font-size: clamp(36px, 5vw, 64px); margin: 12px 0 24px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 26px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
footer a { color: var(--muted); }
