/* base.css — Fondamenta V1: font, variabili, tipografia e revisioni 03-07 del primo sito.
   Ordine delle sezioni = ordine di caricamento originale: conta per la cascata. */

/* ===== styles ===== */
@font-face{font-family:RobotoMono;src:url('assets/RobotoMono-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:RobotoMono;src:url('assets/RobotoMono-Light.woff2') format('woff2');font-weight:300;font-display:swap}
:root{--black:#0c0c0c;--white:#f8f6f6;--orange:#eb5b21;--margin:32px;--sp:16px;--mono:RobotoMono,monospace;color-scheme:dark}
*{box-sizing:border-box}html{background:var(--black);scrollbar-color:#777 var(--black);scrollbar-width:thin}body{margin:0;background:var(--black);color:var(--white);font:400 12px/1.5 var(--mono);-webkit-font-smoothing:antialiased}h1,h2,h3,p,figure{margin:0;font:inherit}ul{list-style:none;padding:0;margin:0}img{display:block;max-width:100%}svg{display:block}::selection{color:var(--black)}.orange{color:var(--orange)}.muted{color:var(--muted)}.small{font-size:10px}.frame{position:fixed;inset:var(--margin);border:2px solid var(--white);pointer-events:none;z-index:30}.edge{position:fixed;background:var(--black);pointer-events:none;z-index:29}.edge.top{top:0;left:0;right:0;height:var(--margin)}.edge.bottom{bottom:0;left:0;right:0;height:var(--margin)}.edge.left{top:0;left:0;bottom:0;width:var(--margin)}.edge.right{top:0;right:0;bottom:0;width:var(--margin)}.axis{position:fixed;display:flex;pointer-events:none;z-index:31;color:#f8f6f65c;font-size:10px}.axis span{flex:1;display:grid;place-items:center}.axis.top,.axis.bottom{left:var(--margin);right:var(--margin);height:var(--margin)}.axis.top{top:0}.axis.bottom{bottom:0}.axis.left,.axis.right{top:var(--margin);bottom:var(--margin);width:var(--margin);flex-direction:column}.axis.left{left:0}.axis.right{right:0}.coordinate-grid{position:fixed;inset:var(--margin);display:grid;grid-template-columns:repeat(4,1fr);pointer-events:none;z-index:0}.coordinate-grid>span{border-right:1px solid var(--faint)}.coordinate-grid>span:last-child{border:0}.origin{width:5px;height:5px;background:var(--orange);position:fixed;left:0;top:0;z-index:32}main{position:relative;margin:var(--margin);z-index:1}.site-header{display:grid;}.header-logo{padding-left:16px}.nav-label{text-align:right;padding-right:16px;}.nav-label.about{grid-column:2}.intro{min-height:calc(100svh - var(--margin)*2);display:flex;flex-direction:column;position:relative;border-bottom:1px solid var(--white)}.intro-stage{position:relative;flex:1;min-height:calc(100svh - var(--margin)*2 - 138px);}.hero-logo{left:50%;top:47%;}.callout{position:absolute;z-index:3;border:1px solid var(--orange);padding:8px 10px;color:var(--orange);font-size:12px;line-height:1.45;background:var(--black)}.callout.number{top:17%;right:22%;padding-inline:14px}.callout.description{top:70%;left:51%;width:315px;color:var(--white)}.section-next{height:74px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid var(--line);}.section-head h2{color:var(--orange)}.film-card{flex:0 0 calc((100% - 88px)/3);min-width:0}.media{position:relative;overflow:hidden;background:#171717;border:1px solid #f8f6f61a}.media img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.12) brightness(.95)}.media:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle,transparent 0 .75px,rgba(12,12,12,.48) 1.25px);background-size:3px 3px;z-index:1}.media .corner{position:absolute;width:9px;height:9px;border:0 solid var(--white);z-index:4}.corner.tl{top:7px;left:7px;border-top-width:1px;border-left-width:1px}.corner.tr{top:7px;right:7px;border-top-width:1px;border-right-width:1px}.corner.bl{bottom:7px;left:7px;border-bottom-width:1px;border-left-width:1px}.corner.br{bottom:7px;right:7px;border-bottom-width:1px;border-right-width:1px}.project-list{border-bottom:1px solid var(--white)}.filter.active sup{color:var(--orange)}.projects-table{border-collapse:collapse;}.projects-table col{width:25%}.projects-table th{text-align:left;}.projects-table td:last-child{position:relative;}.project-list .section-next{height:85px}.about-section{border-bottom:1px solid var(--white)}.client-group{padding:0 16px}.client-group h3{font-size:11px;color:var(--orange);padding-bottom:20px}.client-group li{font-size:12px;line-height:1.8}.recognition{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:30px 0 54px;gap:0}.recognition>div{padding:0 16px}.recognition h3{font-size:10px;color:var(--orange);margin-bottom:17px}.recognition p{font-size:12px;line-height:1.8}.recognition .award{grid-column:3 / span 2}.recognition>div:first-child{color:var(--muted);font-size:10px}.contact-section{min-height:590px;display:flex;flex-direction:column}.contact-body{display:grid;grid-template-columns:1fr 1fr 2fr;padding:47px 16px 57px;gap:16px}.contact-body h3{color:var(--orange)}.contact-intro{padding-right:30px;max-width:270px}.static-form{padding-left:0}.field{border:1px solid var(--white);position:relative;}.field .chevron{position:absolute;color:var(--orange)}.field.message{height:125px;margin-top:10px;color:#aaa}.form-bottom{margin-top:10px;display:flex;gap:10px}.form-bottom .field{flex:1;color:#aaa}.send-button{border:1px solid var(--orange);color:var(--orange);min-width:65px;display:grid;place-items:center;}.site-footer{display:grid;grid-template-columns:2fr 1fr 1fr;border-top:1px solid var(--white);margin-top:auto;min-height:240px}.site-footer>div{padding:25px 16px}.footer-logo img{width:170px;height:auto}.footer-logo p{margin-top:18px;}.footer-middle{border-left:1px solid var(--line);border-right:1px solid var(--white);display:flex;flex-direction:column;justify-content:space-between}.socials{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;}.footer-email{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.footer-email>span:first-child{color:var(--orange);display:block;font-size:10px;margin-bottom:7px}.address{display:flex;flex-direction:column;justify-content:space-between;}.address .orange{margin-bottom:6px}.address .vat{color:var(--muted)}.case-page{padding-top:64px;min-height:calc(100svh - var(--margin)*2)}.case-topline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);}.case-topline>span:first-child{color:var(--orange)}.case-layout{min-height:calc(100svh - 190px)}.case-category{font-size:10px;color:var(--orange);margin:9px 0 27px}.case-copy h2{color:var(--orange);}.case-credits{margin-top:auto}.case-media{align-self:stretch}.case-media .media img{object-position:58% center;}.case-media .media:after{background:radial-gradient(circle,transparent 0 .8px,rgba(12,12,12,.38) 1.25px);background-size:3px 3px}.media-bottom{position:absolute;left:20px;right:20px;bottom:21px;z-index:4;text-shadow:0 1px 4px #000}.timecode{display:flex;justify-content:space-between;padding-bottom:13px}.video-timeline{height:1px;background:#f8f6f655;}.video-timeline:before{content:'';width:5px;height:5px;background:var(--orange);position:absolute;left:0;top:-2px}
@media(min-width:1700px){.intro-stage{min-height:650px}.filmstrip{padding-top:70px}.film-card .media{aspect-ratio:1.2}.featured{min-height:800px}.case-media{min-height:760px}}
@media(max-width:1000px){.film-card{flex-basis:calc((100% - 70px)/3)}.film-caption{font-size:10px}.film-caption p{font-size:9px}.callout.tagline{left:11%}.callout.description{width:290px}.case-layout{gap:24px}.case-copy{padding-right:0}.case-specs>div{grid-template-columns:65px 1fr;gap:10px}.case-specs dd{font-size:10px}.case-copy p{font-size:11px}.case-media{min-height:650px}.projects-table td{font-size:10px}.filters{gap:8px}.filter-label{margin-right:0}.filters .filter{font-size:9px}.client-group li{font-size:10px}.client-group h3{font-size:10px}}
@media(max-width:700px){:root{--margin:16px}.axis{font-size:8px}.site-header{height:58px;grid-template-columns:1fr 1fr 1fr 1fr}.header-logo{padding-left:12px}.header-logo img{width:35px}.nav-label{font-size:9px;padding-right:10px}.intro{min-height:690px}.intro-stage{min-height:540px;margin-top:58px}.hero-logo{width:72%;top:43%}.callout{font-size:9px;padding:7px 8px}.callout.tagline{left:6%;top:17%;min-width:190px}.callout.number{right:7%;top:17%;padding:7px}.callout.description{top:65%;left:27%;width:66%;font-size:9px}.intro-label{font-size:7px;bottom:15px;left:12px}.section-next{font-size:9px}.featured{min-height:580px}.section-head{padding:20px 12px;font-size:10px}.section-head h2{font-size:10px}.section-head .section-index{font-size:8px}.featured-head-right{gap:12px}.carousel-controls{gap:5px}.arrow-box{width:25px;height:24px;font-size:16px}.filmstrip{padding:42px 12px 25px}.film-card{flex-basis:85%}.film-card .media{aspect-ratio:1.06}.film-caption{font-size:11px}.film-caption p{font-size:9px}.carousel-progress{padding-left:12px}.filters{padding:18px 12px;font-size:9px;gap:8px}.filter-label{width:100%;margin-bottom:4px}.filters .filter{font-size:8px;padding:5px 6px}.projects-table col:nth-child(1){width:24%}.projects-table col:nth-child(2){width:32%}.projects-table col:nth-child(3){width:28%}.projects-table col:nth-child(4){width:16%}.projects-table th{font-size:8px;padding:12px 8px}.projects-table td{font-size:8px;padding:12px 8px}.projects-table td:last-child{padding-right:12px}.row-arrow{display:none}.row-dot{display:none}.projects-table .year-row td{font-size:9px;padding-inline:10px}.about-intro{grid-template-columns:1fr;padding:32px 12px 37px;gap:20px}.about-intro p{font-size:15px}.client-title{padding-left:12px}.clients-grid{grid-template-columns:1fr 1fr;gap:30px 0}.client-group{padding:0 12px}.client-group h3{font-size:9px;padding-bottom:14px}.client-group li{font-size:9px}.recognition{grid-template-columns:1fr 1fr;padding-top:25px;padding-bottom:35px;gap:25px 0}.recognition>div{padding:0 12px}.recognition>div:first-child{grid-column:1/-1}.recognition .award{grid-column:auto}.recognition p{font-size:10px}.recognition h3{font-size:9px}.contact-body{grid-template-columns:1fr;padding:30px 12px 35px;gap:22px}.contact-intro{font-size:11px;max-width:290px}.static-form{margin-top:8px}.site-footer{grid-template-columns:1fr 1fr}.site-footer>div{padding:23px 12px}.footer-logo{grid-column:1/-1;border-bottom:1px solid var(--line)}.footer-logo img{width:120px}.footer-logo p{font-size:9px}.footer-middle{border-left:0;border-right:1px solid var(--line)}.socials{font-size:9px;gap:8px}.footer-email{font-size:9px}.address{font-size:9px}.address .vat{font-size:8px}.case-page{padding-top:58px}.case-topline{font-size:8px;padding-inline:12px}.case-layout{grid-template-columns:1fr;padding:25px 12px;gap:30px}.case-copy h1{font-size:18px}.case-copy p{font-size:12px}.case-copy .case-credits p{font-size:10px}.case-media{min-height:460px}.case-callout{font-size:8px}.case-callout.one{left:4%;top:23%}.case-callout.two{right:4%;top:60%}.media-label,.media-sequence{font-size:8px}.case-bottom{font-size:8px;padding:18px 12px;gap:20px}.case-description{margin-bottom:23px}.case-specs dd{font-size:11px}.case-credits{margin-top:0}}

/* ===== fidelity ===== */
/* Values and assets measured against the production Machinezero site. */
:root {
  --muted: rgb(248 246 246 / 60%);
  --faint: rgb(248 246 246 / 5%);
}

.case-back { display: flex; align-items: center; gap: 12px; }
.case-back img { transform: rotate(90deg); }

@media (min-width: 920px) {
  /* Original four-column menu baseline and inset. */

  .nav-label:nth-child(3) { padding-right: 0; }

  /* Frozen intro: the logo, boxes and line endpoints share a 700 × 430 plane. */
  .hero-logo {
    left: calc(50% + 8px);
    top: calc(50svh - var(--margin) - 64px);
  }
  
  .callout {
    border-width: 2px;
    padding: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    background: transparent;
  }
  
  .callout.number {
    left: calc(50% + 140px);
    right: auto;
    top: calc(50svh - var(--margin) - 64px - 160px);
    width: 64px;
    padding: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
  }
  .callout.number sup { font-size: 10px; position: relative; top: -3px; }
  .callout.description {
    left: calc(50% - 78px);
    top: calc(50svh - var(--margin) - 64px + 128px);
    width: 360px;
  }

  /* Retain the approved carousel while using the site's 8/16/32 spacing. */

  .media { border-color: rgb(248 246 246 / 5%); }
  .media img, .case-media .media img {
    filter: grayscale(1) contrast(1.18) brightness(.9);
  }
  .media::after, .case-media .media::after {
    background: radial-gradient(circle, transparent 0 .8px, rgb(12 12 12 / 38%) 1.25px);
    background-size: 3px 3px;
  }

  /* Original table: 14 px type, compact rows and very faint dividers. */

  /* Client lists retain the production site's paragraph rhythm. */

  .client-group h3 { font-size: 13px; line-height: normal; padding-bottom: 16px; }
  .client-group ul { font-size: 13px; line-height: normal; }
  .client-group li { display: inline; font-size: 13px; line-height: normal; }
  .client-group li:not(:last-child)::after { content: ', '; }
  .recognition { padding: 32px 0 64px; }
  .recognition h3, .recognition p { font-size: 13px; line-height: normal; }
  .recognition h3 { margin-bottom: 16px; }

  /* Original form dimensions and the footer's aligned 105 px lower cells. */
  .contact-body { padding: 48px 16px 64px; }

  .field.message { height: 128px; margin-top: 8px; }

  .form-bottom { gap: 8px; margin-top: 8px; }
  .send-button { min-width: 64px; }
  .site-footer { min-height: 260px; }
  .site-footer > div { height: 260px; padding: 16px 0; }
  .footer-logo { display: flex; flex-direction: column; }
  .footer-logo img { width: 184px; height: auto; margin-left: 16px; }
  .footer-logo p {
    margin: auto 0 0;
    border-top: 1px solid rgb(248 246 246 / 15%);
    padding: 16px;
    height: 105px;
    flex: 0 0 105px;
  }
  .footer-middle { border-left: 0; }
  .socials { padding-left: 16px; gap: 8px; align-content: start; }
  .footer-email {
    border-top-color: rgb(248 246 246 / 15%);
    padding: 16px;
    height: 105px;
    flex: 0 0 105px;
    margin: auto 0 0;
  }
  .footer-email > span:first-child { color: var(--white); margin-bottom: 8px; }

  .address > div { padding: 0 16px; }
  .address .orange { color: var(--white); margin-bottom: 16px; }
  .address .vat {
    height: 105px;
    flex: 0 0 105px;
    padding: 16px;
    border-top: 1px solid rgb(248 246 246 / 15%);
    color: var(--white);
  }

  /* Same visual language on the two-column project page. */

}

/* ===== review-03 ===== */
/* Review 03: restrained typography and clearer grouping; static layout only. */

*, *::before, *::after {
  animation: none !important;
  transition: none !important;
}

h1, h2, h3, h4, p, li, dt, dd, th, td { font-weight: 400; }
h4 { margin: 0; font-family: var(--mono); }

/* The small wordmark is a single header unit with the existing mark. */
.site-header { align-items: center; }
.header-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-logo img { width: 48px; height: auto; flex: 0 0 48px; }

.nav-label { line-height: 1.4; }

/* Frozen intro: the mark and the single continuation cue. */
.intro-stage {
  margin-top: 64px;
  min-height: calc(100svh - var(--margin) * 2 - 138px);
  display: grid;
  place-items: center;
}
.hero-logo {
  position: static;
  width: 360px;
  max-width: 78%;
  height: auto;
  transform: none;
}
.intro .callout { display: none; }
.section-next {
  gap: 12px;
}

/* Cards retain the horizontal filmstrip. Controls appear on the images only. */

.film-card { flex-basis: calc((100% - 88px) / 3); }
.film-card .media { aspect-ratio: 1.08; }

/* Independent year groups and two text levels keep the index easy to scan. */
.project-list, .about-section { background: var(--black); }
.projects-table { width: 100%; table-layout: fixed; }

.projects-table tbody tr:last-child td { border-bottom: 0; }
.project-list .section-next { margin-top: 16px; }

/* The same label/content relation repeats through the whole About section. */
.about-block {
  display: grid;
  grid-template-columns: 25% minmax(0, 75%);
  gap: 0;
  padding: 40px 16px;
  border-bottom: 1px solid rgb(248 246 246 / 15%);
}
.about-block:last-child { border-bottom: 0; }
.about-label { padding-right: 24px; }
.about-label h3 { color: var(--orange); }
.about-content { min-width: 0; }
.about-content > p {
  max-width: 760px;
  color: var(--white);
}
.about-content > .studio-claim { margin-bottom: 16px; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.client-grid .client-group { min-width: 0; padding: 0; }
.client-grid h4 { margin: 0 0 12px; color: var(--orange); }

.client-grid li { display: inline; }
.client-grid li:not(:last-child)::after { content: ', '; }

/* Carry the same hierarchy into the existing contact and project layouts. */

.field { min-height: 40px; padding: 9px 12px; }
.field .chevron { top: 9px; right: 12px; }
.footer-logo p, .socials, .footer-email > span:first-child, .address .vat {
  font-size: var(--type-meta);
  line-height: 1.5;
}
.footer-email, .address { font-size: var(--type-body); line-height: 1.55; }

.case-copy h2, .case-copy .case-category, .case-credits p, .media-bottom {
  font-size: var(--type-meta);
  line-height: 1.5;
}

.case-credits p { color: var(--muted); }

@media (max-width: 1000px) {
  .client-grid { gap: 28px 28px; }

}

@media (max-width: 700px) {

  .header-logo { gap: 8px; padding-left: 12px; }
  .header-logo img { width: 36px; flex-basis: 36px; }
  .nav-label { padding-right: 8px; }
  .intro-stage { margin-top: 58px; min-height: 540px; }
  .hero-logo { width: 72%; max-width: 78%; }

  .film-card { flex-basis: 85%; }
  .film-card .media { aspect-ratio: 1.06; }

  .about-block { grid-template-columns: 1fr; gap: 20px; padding: 32px 12px; }
  .about-label { padding-right: 0; }
  .client-grid { gap: 28px 24px; }

}

@media (max-width: 520px) {

  .client-grid { grid-template-columns: 1fr; }
}

/* ===== review-04 ===== */
/* Review 04: quieter headings, a compact project index, uniform footer type. */

.section-head { min-height: 62px; padding: 20px 16px; }

/* Full names remain visible. A single-line entry has a roughly 43px rhythm. */
.projects-table col:nth-child(1) { width: 22%; }
.projects-table col:nth-child(2) { width: 38%; }
.projects-table col:nth-child(3) { width: 25%; }
.projects-table col:nth-child(4) { width: 15%; }
.projects-table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgb(248 246 246 / 15%);
}

.projects-table td {
  padding: 11px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgb(248 246 246 / 5%);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
  word-break: normal;
}

.projects-table td:last-child { padding-right: 16px; }

/* The footer uses one size and weight, including its lower cells. */
.site-footer,
.site-footer :is(p, span, a, div, address, small),
.site-footer .footer-email,
.site-footer .footer-email > span:first-child,
.site-footer .address,
.site-footer .address .vat,
.site-footer .socials,

.site-footer .footer-middle {
  border-left: 0;
}
.site-footer .footer-email,
.site-footer .footer-logo p,
.site-footer .address .vat {
  border-top-color: rgb(248 246 246 / 15%);
}

@media (max-width: 700px) {
  .section-head { padding: 20px 12px; min-height: 62px; }
  .projects-table th { padding: 12px 10px; }
  .projects-table td { padding: 11px 10px; }
  .projects-table td:last-child { padding-right: 10px; }
}

@media (max-width: 520px) {
  .projects-table th { padding: 12px 7px; }
  .projects-table td { padding: 11px 7px; }
  .projects-table td:last-child { padding-right: 7px; }
}

/* ===== review-05 ===== */
/* Review 05: one compact reading size, with weight carrying the hierarchy. */
@font-face {
  font-family: RobotoMono;
  src: url('assets/RobotoMono-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --type-section: 12px;
  --type-body: 12px;
  --type-meta: 12px;
}
body, main { font-size: 12px; font-weight: 400; line-height: 1.6; }
.nav-label { font-size: 12px; font-weight: 400; }

.section-head h2 { font-size: 12px; font-weight: 700; line-height: 1.6; }
.about-label h3 { font-size: 12px; font-weight: 700; line-height: 1.6; }
.about-content > p, .client-grid ul, .client-grid li,
.client-grid h4, .contact-body h3, .contact-intro,
.section-next, .field, .send-button {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.projects-table th { line-height: 1.6; }

/* Native control, positioned alongside the project-index title. */
.project-list > .section-head { flex-wrap: wrap; gap: 16px 24px; }
.category-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.category-filter label { color: var(--muted); white-space: nowrap; }
.category-filter select {
  max-width: 100%;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid rgb(248 246 246 / 15%);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: 400 12px/1.6 var(--mono);
  color-scheme: dark;
  appearance: auto;
}
.category-filter select:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}
.category-filter option { background: var(--black); color: var(--white); }

/* The project page keeps its complete narrative beside one frozen poster. */
.case-topline { font-size: 12px; font-weight: 400; line-height: 1.6; }
.case-layout {
  align-items: stretch;
}
.case-copy { padding-right: 0; }
.case-copy h1 { font-weight: 700; }
.case-copy h2 { font-weight: 700; margin-bottom: 12px; }
.case-copy p, .case-copy .case-category,
.case-copy .case-credits p,
.case-facts dt, .case-facts dd, .case-facts p,
.media-bottom, .timecode {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.case-copy .case-category { margin: 8px 0 24px; }

.case-description { margin-bottom: 24px; }
.case-facts { margin: 0 0 24px; padding: 0; border-top: 1px solid rgb(248 246 246 / 10%); }
.case-facts dl { margin: 0; padding: 0; }
.case-facts > div, .case-facts dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgb(248 246 246 / 5%);
}
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; color: var(--white); }

.case-credits { padding-top: 0; }
.case-copy .case-credits p { color: var(--muted); }

/* Uniform footer type remains independent of the smaller page hierarchy. */
.site-footer,
.site-footer :is(p, span, a, div, address, small),
.site-footer .footer-email,
.site-footer .footer-email > span:first-child,
.site-footer .address,
.site-footer .address .vat,
.site-footer .socials,
.site-footer .footer-logo p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 1000px) {

  .case-facts > div, .case-facts dl > div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 700px) {

  .case-copy p, .case-copy .case-credits p { font-size: 12px; }
  .case-facts > div, .case-facts dl > div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .category-filter { width: 100%; margin-left: 0; }
  .category-filter select { flex: 1; min-width: 0; width: 100%; }

  .case-topline > .muted { text-align: right; overflow-wrap: anywhere; }
}

/* Award records share the compact reading size and quiet index dividers. */
.awards-list { margin: 0; padding: 0; list-style: none; }
.awards-list li {
  display: grid;
  grid-template-columns: minmax(0, 28%) minmax(0, 1fr) 40px;
  align-items: start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(248 246 246 / 5%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.awards-list li:first-child { padding-top: 0; }
.awards-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.awards-list .award-name,
.awards-list .award-detail,
.awards-list time {
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.awards-list .award-name { color: var(--white); }
.awards-list .award-detail { color: rgb(248 246 246 / 75%); }
.awards-list time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.projects-table [hidden] { display: none !important; }

@media (max-width: 700px) {
  .awards-list li { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 16px; }
  .awards-list .award-name { grid-column: 1; grid-row: 1; }
  .awards-list time { grid-column: 2; grid-row: 1; }
  .awards-list .award-detail { grid-column: 1 / -1; grid-row: 2; }
}

/* Observed narrow-screen fix: retain two readable columns and move metadata. */
.project-mobile-meta { display: none; }
@media (max-width: 520px) {
  .projects-table col:nth-child(1) { width: 32%; }
  .projects-table col:nth-child(2) { width: 68%; }
  .projects-table col:nth-child(n + 3),
  .projects-table th:nth-child(n + 3),
  .projects-table td:nth-child(n + 3) { display: none; }
  .projects-table th,

  .projects-table td { overflow-wrap: break-word; word-break: normal; }
  .projects-table .project-mobile-meta {
    display: block;
    max-width: 100%;
    margin-top: 6px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* ===== review-06 ===== */
/* Review 06: emphasise the studio claim and compact the awards into prose. */
.about-content > .studio-claim,
.about-studio > .studio-claim {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.awards-list.awards-inline {
  width: 100%;
  list-style: none;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}
.awards-list.awards-inline li,
.awards-list.awards-inline li:first-child,
.awards-list.awards-inline li:last-child {
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
}
.awards-list.awards-inline .award-name,
.awards-list.awards-inline .award-detail,
.awards-list.awards-inline time {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: start;
  font-variant-numeric: normal;
  overflow-wrap: normal;
}

/* ===== review-07 ===== */
/* Review 07: compact award records and consistent light index text. */
.awards-list.awards-inline {
  display: block;
  column-count: 2;
  column-gap: 40px;
  column-fill: balance;
  margin: 0;
  padding: 0;
}
.awards-list.awards-inline li,
.awards-list.awards-inline li:first-child,
.awards-list.awards-inline li:last-child {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  color: rgb(248 246 246 / 75%);
}
.awards-list.awards-inline .award-name {
  display: inline;
  color: var(--white);
  line-height: inherit;
}
.awards-list.awards-inline .award-detail,
.awards-list.awards-inline time {
  display: inline;
  color: rgb(248 246 246 / 75%);
}
.awards-list.awards-inline li::after,
.awards-list.awards-inline li:not(:last-child)::after,
.awards-list.awards-inline li:last-child::after { content: none; }

.projects-table th,
.projects-table th:nth-child(2) {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.projects-table td,
.projects-table td:nth-child(2),
.projects-table td:nth-child(3),
.projects-table td:nth-child(4) {
  color: rgb(248 246 246 / 75%);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}
.projects-table .project-mobile-meta {
  color: rgb(248 246 246 / 75%);
  font-size: 12px;
  font-weight: 300;
}

/* Match the project menu inset to the neighbouring about label. */
.site-header .nav-label:nth-child(3) { padding-right: 16px; }
@media (max-width: 700px) {
  .site-header .nav-label:nth-child(3) { padding-right: 8px; }
}

/* The project narrative is a sequence of cells in the left page half. */
.case-layout {
  display: grid;
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.case-copy {
  min-width: 0;
  padding: 0;
  border-right: 1px solid rgb(248 246 246 / 15%);
  border-bottom: 0;
  background: var(--black);
}
.case-copy > .case-heading,
.case-copy > .case-description,
.case-copy > .case-credits {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgb(248 246 246 / 15%);
}
.case-copy > .case-heading h1 { margin: 0; }
.case-copy > .case-heading .case-category { margin: 8px 0 0; }

.case-copy > .case-facts {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid rgb(248 246 246 / 15%);
}
.case-copy > .case-facts > div {
  display: grid;
  margin: 0;
  border-bottom: 1px solid rgb(248 246 246 / 5%);
}
.case-copy > .case-facts > div:last-child { border-bottom: 0; }
.case-copy > .case-credits {
  color: rgb(248 246 246 / 75%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.case-copy > .case-credits p {
  margin: 0;
}
.case-copy > .case-credits p + p { margin-top: 0; }
.case-copy > :last-child { border-bottom: 0; }
.case-media {
  position: relative;
  align-self: stretch;
  min-width: 0;
  margin: 16px;
  background: var(--black);
}
.case-media .media { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-media .media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .awards-list.awards-inline { column-count: 1; }
}
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-layout { gap: 0; padding: 0; }
  .case-copy { border-right: 0; border-bottom: 1px solid rgb(248 246 246 / 15%); }
  .case-media { margin: 16px 12px; }
}

/* components.css — Componenti condivisi: livello funzionale, player, footer, indice, glifi, pannello info, modello 3D, progetti solo testo, icone, wiki, leggibilita.
   Ordine delle sezioni = ordine di caricamento originale: conta per la cascata. */

/* ===== motion ===== */
/* Functional layer: preserve the approved composition in its settled state. */

.axis .on { color: inherit; }
/* Project guides follow the narrative/media split instead of the home quarters. */
body:has(main[data-page="project"]) .coordinate-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
body:has(main[data-page="project"]) .coordinate-grid > span:nth-child(2) { border-right: 0; }
body:has(main[data-page="project"]) .coordinate-grid > span:nth-child(n + 3) { display: none; }
@media (max-width: 700px) {
  body:has(main[data-page="project"]) .coordinate-grid { display: none; }
}
/* Use the single background guide for the footer's vertical divider. */
.site-footer .footer-middle { border-right: 0; }
.site-footer .footer-email {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: flex-start;
  gap: 4px 12px;
}
.site-footer .footer-email > span:first-child { margin-bottom: 0; white-space: nowrap; }
.site-footer .footer-email > a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.site-header {
  position: fixed;
  z-index: 40;
}
.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--faint);
  pointer-events: none;
}
.site-header::before { left: calc((100vw - var(--margin) * 2) / 2 - 2px); }
.site-header::after { left: calc((100vw - var(--margin) * 2) * .75 - 2px); }
.header-logo { padding-right: 16px; }
.site-header .nav-label[data-scroll="project-index"] { grid-column: 2; }
.site-header .nav-label.about { grid-column: 3; }
.header-logo .header-brandmark {
  width: 90px;
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
  filter: brightness(0) invert(1);
}
section[id] { scroll-margin-top: calc(var(--margin) + var(--header-height)); }
/* The featured pane fits between the persistent header and the outer frame. */
#intro { border-bottom: 0; }
#selected-projects {
  --featured-height: calc(100dvh - var(--margin) * 2 - var(--header-height));
  --featured-heading-height: 70px;
  --featured-cta-height: 83px;
  --featured-padding: clamp(12px, 3dvh, 32px);
  --featured-caption-space: 64px;
  display: grid;
  grid-template-rows: var(--featured-heading-height) minmax(0, 1fr) var(--featured-cta-height);
  height: var(--featured-height);
  min-height: 0;
}
#selected-projects > .section-head { min-height: 0; height: 100%; padding-block: 0; }

#selected-projects .film-scrollport { min-height: 0; max-height: 100%; }
#selected-projects .film-card .media {
  width: 100%;
  max-height: max(1px, calc(var(--featured-height) - var(--featured-heading-height) - var(--featured-cta-height) - var(--featured-padding) * 2 - var(--featured-caption-space)));
}
#selected-projects > .section-next { height: 100%; min-height: 0; margin-top: 0; }
@media (max-width: 700px) {
  #selected-projects { --featured-caption-space: 60px; }
}

.intro-stage { overflow: hidden; }

@media (max-width: 700px) {
  .header-logo { padding-right: 8px; }
  .header-logo .header-brandmark { width: 82px; }
}
.header-logo,
.site-header .nav-label,
.section-next,
.project-link,
.case-topline a,
.socials a,
.footer-email a {
  color: inherit;
  text-decoration: none;
}
.site-header .nav-label,
.section-next,
.project-link,
.case-topline a,
.socials a,
.footer-email a { cursor: pointer; }

/* Keep the existing four header cells readable on 320px screens. */
@media (max-width: 380px) {

  .site-header::before { left: calc(108px + (100% - 108px) / 3); }
  .site-header::after { left: calc(108px + (100% - 108px) * 2 / 3); }
}
.project-link { display: block; min-width: 0; }

.project-link { font: inherit; }
.case-topline a.orange { color: var(--orange); }
.case-topline .case-back { text-decoration: none; }
button.section-next {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}
.film-scrollport:focus-visible,
.project-video:focus-visible { outline: 1px solid var(--orange); outline-offset: 3px; }
.case-media:has(> .project-video:focus-visible) { outline: 1px solid var(--orange); outline-offset: 3px; }
.case-heading h1:focus { outline: none; }

/* The orange cross and full-length guides stay visible while using the mouse. */
#mz-cursor, #mz-cursor * { pointer-events: none; }
#mz-cursor { position: fixed; inset: 0; z-index: 999; visibility: hidden; }
#mz-cursor.is-visible { visibility: visible; }
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }
#mz-cursor .cursor-mark { position: fixed; left: 0; top: 0; width: clamp(16px, 1.245vw, 24px); height: clamp(16px, 1.245vw, 24px); color: var(--orange); }
#mz-cursor .cursor-mark svg { width: 100%; height: 100%; transform: translate(-50%, -50%); }
#mz-cursor .cursor-x, #mz-cursor .cursor-y { position: absolute; left: 0; top: 0; background: rgb(248 246 246 / 18%); }
#mz-cursor .cursor-x { width: 1px; height: 100%; }
#mz-cursor .cursor-y { width: 100%; height: 1px; }
html.has-custom-cursor .origin { visibility: hidden; }
@media (max-width: 991px), (hover: none), (pointer: coarse) { #mz-cursor { display: none; } }
@media (hover: hover) {
  .site-header .nav-label:hover,
  .project-link:hover,
  .socials a:hover,
  .footer-email a:hover { color: var(--orange); }
  .projects-table tr.has-project:hover { background: rgb(248 246 246 / 2%); }
  
}
.projects-table tr.has-project { cursor: pointer; }

/* Section titles and the framed client column carry the reading hierarchy. */
.section-head h2 { text-transform: uppercase; }
.site-footer .address > div > .orange,
.site-footer .address > .vat { text-transform: uppercase; }
#project-index .projects-table col:nth-child(1) { width: 22%; }
#project-index .projects-table col:nth-child(2) { width: 63%; }
#project-index .projects-table col:nth-child(3) { width: 15%; }
@media (max-width: 520px) {
  #project-index .projects-table col:nth-child(1) { width: 30%; }
  #project-index .projects-table col:nth-child(2) { width: 70%; }
}
.projects-table th:first-child,
#project-rows > tr > td:first-child {
  border-left: 2px solid rgb(248 246 246 / 55%);
  border-right: 2px solid rgb(248 246 246 / 55%);
}
.projects-table th:first-child { border-top: 2px solid rgb(248 246 246 / 55%); }
#project-index > .section-head { border-bottom: 0; }
#project-index .projects-table thead th {
  border-top: 2px solid rgb(248 246 246 / 55%);
  border-bottom: 2px solid rgb(248 246 246 / 55%);
}
#project-rows > tr > td:first-child {
  color: var(--white);
  font-weight: 700;
}
#project-rows > tr:not([hidden]):not(:has(~ tr:not([hidden]))) > td:first-child {
  border-bottom: 2px solid rgb(248 246 246 / 55%);
}

/* Preserve the 12px row movement while highlighting the full selection. */
#project-rows { --index-inset: 16px; }
#project-rows .index-cell { display: block; min-width: 0; }
.scroll-compose { display: block; position: relative; }
.compose-output {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
}
.scroll-compose.is-composing > .compose-source { opacity: 0; }
.scroll-compose.is-composing > .compose-output { display: block; }
#project-rows > tr > td:first-child { position: relative; }
#project-rows > tr > td:first-child::before {
  content: '';
  position: absolute;
  left: var(--index-inset);
  top: 50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  transform: translateY(-50%) scale(0);
}
html.motion-enabled #project-rows .index-cell {
  transition: transform 400ms cubic-bezier(.19, 1, .22, 1) !important;
}
html.motion-enabled #project-rows > tr > td { transition: color 300ms ease !important; }
html.motion-enabled #project-rows > tr > td:first-child::before {
  transition: transform 300ms cubic-bezier(.19, 1, .22, 1) !important;
}
#project-rows > tr:has(:focus-visible) { background: var(--orange); }
#project-rows > tr:has(:focus-visible) > td,
#project-rows > tr:has(:focus-visible) .project-mobile-meta { color: var(--black); }
#project-rows > tr:has(:focus-visible) .project-link:focus-visible { outline-color: var(--black); }
#project-rows > tr:has(:focus-visible) .index-cell { transform: translateX(12px); }
#project-rows > tr:has(:focus-visible) > td:first-child::before { transform: translateY(-50%) scale(1); }
#project-rows .project-link:hover { color: inherit; }
@media (hover: hover) {
  main:not(.index-pointer-pending) #project-rows > tr:hover { background: var(--orange); }
  main:not(.index-pointer-pending) #project-rows > tr:hover > td,
  main:not(.index-pointer-pending) #project-rows > tr:hover .project-mobile-meta { color: var(--black); }
  main:not(.index-pointer-pending) #project-rows > tr:hover .index-cell { transform: translateX(12px); }
  main:not(.index-pointer-pending) #project-rows > tr:hover > td:first-child::before { transform: translateY(-50%) scale(1); }
}

@media (max-width: 520px) { #project-rows { --index-inset: 7px; } }

.project-list > .section-head { position: relative; }
.project-list > .section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes index-line-draw {
  0% { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Native horizontal movement lives inside the original positioned filmstrip. */

.film-scrollport {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin-right: -16px;
  padding-right: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}
.film-scrollport::-webkit-scrollbar { display: none; width: 0; height: 0; }

.film-preview {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.12) brightness(.95);
  opacity: 0;
  pointer-events: none;
}
.film-card.is-previewing .film-preview { opacity: 1; }

/* Playback reuses the poster's crop, halftone overlay and existing control line. */
.case-media > video.project-video {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0;
  pointer-events: none;
}
.case-media.has-started > video.project-video { opacity: 1; }
.case-media .media img { filter: contrast(1.08) brightness(1.12); }
.player-toggle {
  appearance: none;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-shadow: inherit;
  box-shadow: none;
  cursor: pointer;
}
.player-toggle:disabled { cursor: default; }
.playback-time { font: inherit; font-variant-numeric: tabular-nums; }
.video-timeline { position: relative; }
.video-timeline::before { left: var(--playhead, 0%); }
.video-progress {
  display: block;
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  pointer-events: none;
}
.player-seek {
  appearance: none;
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  cursor: pointer;
}
.player-seek::-webkit-slider-runnable-track { border: 0; background: transparent; }
.player-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.player-seek::-moz-range-track,
.player-seek::-moz-range-progress { border: 0; background: transparent; }
.player-seek::-moz-range-thumb { width: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* Native fields occupy the same boxes as the approved form drawing. */
form.static-form { margin: 0; font: inherit; min-width: 0; }
.static-form input.field,
.static-form textarea.field,
.static-form .field.reason-field {
  box-sizing: border-box;
  appearance: none;
  width: 100%;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  padding: 9px 12px;
  box-shadow: none;
}
.static-form input.field,
.static-form textarea.field { display: block; }
.static-form textarea.field.message { resize: none; }
.static-form .field::placeholder { color: #aaa; opacity: 1; }
.static-form .field:focus-visible,
.static-form .reason-field:focus-within {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}

.reason-field .chevron { pointer-events: none; }
button.send-button {
  appearance: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  box-shadow: none;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Scoped overrides deliberately supersede the static review's motion lock. */
html.motion-enabled main {
  opacity: 1;
  transform: none;
  transition: opacity 400ms ease, transform 400ms ease !important;
}
html.motion-enabled main.route-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition-duration: 200ms !important;
}
html.motion-enabled main.route-entering { opacity: 0; transform: translateY(8px); }
html.motion-enabled .film-preview,
html.motion-enabled .case-media > video.project-video { transition: opacity 250ms ease; }
html.motion-enabled .film-card .corner { transition: opacity 400ms ease !important; }
html.motion-enabled .site-header .nav-label,
html.motion-enabled .project-link,
html.motion-enabled .socials a,
html.motion-enabled .footer-email a { transition: color 200ms ease !important; }
html.motion-enabled #project-rows > tr { transition: background-color 200ms ease !important; }

@media (min-width: 920px) {
  .film-preview, .case-media > video.project-video,
  .case-media .media img { filter: contrast(1.18) brightness(.9); }
}
@media (max-width: 700px) {
  .film-scrollport { margin-right: -12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.motion-enabled main,
  html.motion-enabled main.route-leaving,
  html.motion-enabled main.route-entering {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  html.motion-enabled .film-preview,
  html.motion-enabled .case-media > video.project-video,
  html.motion-enabled .film-card .corner,
  html.motion-enabled .site-header .nav-label,
  html.motion-enabled .project-link,
  html.motion-enabled .socials a,
  html.motion-enabled .footer-email a,
  html.motion-enabled #project-rows > tr { transition: none !important; }
  html.motion-enabled #project-rows .index-cell,
  html.motion-enabled #project-rows > tr > td,
  html.motion-enabled #project-rows > tr > td:first-child::before { transition: none !important; }
  
}

/* ===== player-controls ===== */
/* A quieter text column leaves two thirds of the project sheet to the film. */
.case-layout {
  --case-workspace-height: max(360px, calc(100svh - var(--margin) * 2 - var(--header-height) - 56px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.case-copy { display: flex; flex-direction: column; }
.case-copy > * { flex-shrink: 0; }
.case-copy h1 { font-size: 12px; line-height: 1.5; }
.case-copy p,
.case-copy h2,
.case-facts dt,
.case-facts dd { font-size: 11px; line-height: 1.55; }
.case-copy > .case-heading,
.case-copy > .case-description { padding: 14px 16px; }
.case-copy > .case-description h2,
.case-copy > .case-credits h2 { margin-bottom: 9px; }
.case-copy > .case-facts > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 7px 16px; }
.case-copy > .case-credits { padding: 14px 16px; }
.case-copy > .case-credits h2,
.case-copy > .case-credits p { font-size: 11px; line-height: 1.55; font-weight: 400; }
.case-copy > .case-credits h2 { color: var(--orange); font-weight: 700; text-transform: lowercase; }
.case-copy > .case-credits p { color: var(--white); }
.case-back, .case-next-label { text-transform: uppercase; }
.case-media { min-height: max(240px, calc(var(--case-workspace-height) - 32px)); }
/* The media mosaic fills the available viewport and the narrative's row. */
.case-moodboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto minmax(180px, 1fr);
  min-width: 0;
  min-height: var(--case-workspace-height);
}
.case-moodboard > .case-media {
  grid-column: 1 / span 4;
  grid-row: 1;
  align-self: start;
  width: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.case-moodboard .case-media .project-video { object-fit: contain; }
.case-moodboard .case-media .media img { object-fit: cover; }
.case-moodboard .case-media.is-fullscreen .media img { object-fit: contain; }
.case-moodboard > .case-media.is-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
}
.case-moodboard-photos { display: contents; }
.case-photo { position: relative; min-width: 0; min-height: 0; padding: 16px; border-top: 1px solid var(--line); }
.case-photo:nth-child(1) { grid-column: 5 / span 2; grid-row: 1; border-top: 0; border-left: 1px solid var(--line); }
.case-photo:nth-child(2) { grid-column: 1 / span 3; grid-row: 2; border-right: 1px solid var(--line); }
.case-photo:nth-child(3) { grid-column: 4 / span 3; grid-row: 2; }
.case-photo img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: cover;
  object-position: center;
  filter: none;
}
/* Short, panoramic windows fit the photographs beside the film. */
@media (min-width: 1200px) and (min-aspect-ratio: 14 / 5) {
  .case-moodboard { grid-template-rows: repeat(3, minmax(120px, 1fr)); }
  .case-moodboard > .case-media { grid-row: 1 / span 3; align-self: stretch; aspect-ratio: auto; }
  .case-photo:nth-child(n) { grid-column: 5 / span 2; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 0; }
  .case-photo:nth-child(1) { grid-row: 1; border-top: 0; }
  .case-photo:nth-child(2) { grid-row: 2; }
  .case-photo:nth-child(3) { grid-row: 3; }
}
.player-buttons, .player-meta { display: flex; align-items: center; gap: 8px; }
.player-audio, .player-fullscreen, .player-exit-fullscreen {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.player-toggle { min-width: 28px; min-height: 28px; }
.player-audio svg, .player-fullscreen svg, .player-exit-fullscreen svg { display: block; }
.player-audio:hover, .player-fullscreen:hover, .player-exit-fullscreen:hover { color: var(--orange); }
.case-media .timecode { align-items: center; padding-bottom: 20px; }
.player-seek { top: -16px; height: 32px; z-index: 10; touch-action: none; pointer-events: auto; }
.player-seek::-webkit-slider-runnable-track { height: 32px; }
.player-seek::-webkit-slider-thumb { height: 32px; }
.player-seek::-moz-range-track, .player-seek::-moz-range-progress, .player-seek::-moz-range-thumb { height: 32px; }
.player-exit-fullscreen { position: absolute; top: 12px; right: 12px; z-index: 8; border: 1px solid rgb(248 246 246 / 50%); background: rgb(12 12 12 / 35%); }
.player-exit-fullscreen[hidden] { display: none !important; }
.case-media.is-fullscreen .player-exit-fullscreen { display: grid; }
.case-media:fullscreen { width: 100vw; height: 100vh; min-height: 0; margin: 0; background: var(--black); }
.case-media:fullscreen .player-exit-fullscreen { display: grid; }
.case-media:fullscreen .project-video,
.case-media:fullscreen .media img { object-fit: contain; object-position: center; }
.case-media:-webkit-full-screen { width: 100vw; height: 100vh; min-height: 0; margin: 0; background: var(--black); }
.case-media:-webkit-full-screen .player-exit-fullscreen { display: grid; }
.case-media:-webkit-full-screen .project-video,
.case-media:-webkit-full-screen .media img { object-fit: contain; object-position: center; }
/* The next-project link shares the top navigation row with the index link. */
.case-topline {
  height: auto;
  min-height: 56px;
  gap: 24px;
  padding: 6px 16px;
}
.case-topline .case-back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.case-next {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content) 18px;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  color: var(--white);
  font-size: 11px;
  line-height: 1.55;
  text-decoration: none;
}
.case-next-label, .case-next-arrow { color: var(--orange); }
.case-next-label { white-space: nowrap; }

.case-next-arrow { text-align: right; font-size: 18px; }

@media (max-width: 700px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .case-layout > .case-media,
  .case-layout > .case-moodboard { grid-column: 1; grid-row: 1; }
  .case-layout > .case-copy { grid-column: 1; grid-row: 2; }
  .case-media { min-height: clamp(260px, 62svh, 440px); }
  .case-layout > .case-media:has(> .project-video) { min-height: 0; aspect-ratio: 16 / 9; }
  .case-moodboard { display: flex; flex-direction: column; min-height: 0; }
  .case-moodboard > .case-media { align-self: stretch; width: calc(100% - 24px); margin: 16px 12px; min-height: 0; aspect-ratio: 16 / 9; }
  .case-moodboard > .case-media.is-fullscreen { width: 100vw; margin: 0; }
  .case-moodboard-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .case-photo:nth-child(n) { grid-column: auto; grid-row: auto; padding: 10px; border-top: 0; border-left: 0; border-right: 1px solid var(--line); }
  .case-photo:last-child { border-right: 0; }
  .case-photo img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .case-topline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 12px; }
  .case-topline .case-back { min-height: 36px; }
  .case-topline .case-next { gap: 8px; min-height: 44px; }
}
@media (max-width: 520px) {
  .case-moodboard-photos { grid-template-columns: minmax(0, 1fr); }
  .case-photo:nth-child(n) { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-photo:last-child { border-bottom: 0; }
}

/* A custom list avoids the operating system's blue option highlight. */
.reason-field { position: relative; }
.reason-toggle {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 24px 0 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reason-toggle:focus-visible { outline: 0; }
.reason-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: -1px;
  right: -1px;
  display: grid;
  gap: 6px;
  padding: 6px;
  background: var(--black);
  border: 1px solid var(--orange);
}
.reason-options[hidden] { display: none !important; }
.reason-option {
  appearance: none;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgb(235 91 33 / 60%);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reason-option:hover, .reason-option:focus-visible, .reason-option[aria-selected='true'] {
  outline: none;
  border-color: var(--orange);
  background: rgb(235 91 33 / 12%);
  color: var(--orange);
}

/* ===== footer-logo ===== */
/* Keep both official marks in one footprint, with no layout shift on hover. */
.site-footer .footer-logo .footer-brandmark {
  display: grid;
  place-items: center;
  position: relative;
  width: 170px;
  max-width: 100%;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  --footer-wire-opacity: 1;
  --footer-solid-clip: inset(0 100% 0 0);
  --footer-wire-motion: none;
  --footer-solid-motion: none;
  --footer-white-motion: none;
  --footer-orange-motion: none;
}
.site-footer .footer-logo .footer-brandmark img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}
.footer-brandmark .footer-brandmark-wire { opacity: var(--footer-wire-opacity); }
.footer-brandmark .footer-brandmark-filled {
  opacity: 1;
  clip-path: var(--footer-solid-clip);
}
/* The extra silhouettes only exist during the entry burst. Their footprint
   follows the official solid mark, independently of the taller link cell. */
.site-footer .footer-brandmark::before,
.site-footer .footer-brandmark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 220 / 95.65;
  transform: translateY(-50%);
  -webkit-mask: url('/assets/hero-brandmark.svg') center / contain no-repeat;
  mask: url('/assets/hero-brandmark.svg') center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
}
.site-footer .footer-brandmark::before { background: var(--white); }
.site-footer .footer-brandmark::after { background: var(--orange); }

html.motion-enabled .site-footer .footer-brandmark .footer-brandmark-filled {
  animation: var(--footer-solid-motion);
  transition: clip-path 180ms steps(3, end);
}
html.motion-enabled .site-footer .footer-brandmark .footer-brandmark-wire {
  animation: var(--footer-wire-motion);
  transition: none;
}
html.motion-enabled .site-footer .footer-brandmark::before { animation: var(--footer-white-motion); }
html.motion-enabled .site-footer .footer-brandmark::after { animation: var(--footer-orange-motion); }

.site-footer .footer-logo .footer-brandmark:focus-visible {
  --footer-wire-opacity: 0;
  --footer-solid-clip: inset(0);
  --footer-wire-motion: footer-wire-break 650ms steps(1, end) both;
  --footer-solid-motion: footer-solid-lock 650ms steps(1, end) both;
  --footer-white-motion: footer-glitch-white 650ms steps(1, end) both;
  --footer-orange-motion: footer-glitch-orange 650ms steps(1, end) both;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer .footer-logo .footer-brandmark:hover {
    --footer-wire-opacity: 0;
    --footer-solid-clip: inset(0);
    --footer-wire-motion: footer-wire-break 650ms steps(1, end) both;
    --footer-solid-motion: footer-solid-lock 650ms steps(1, end) both;
    --footer-white-motion: footer-glitch-white 650ms steps(1, end) both;
    --footer-orange-motion: footer-glitch-orange 650ms steps(1, end) both;
  }
}

/* Short digital cuts settle into the unmodified white brandmark. */
@keyframes footer-solid-lock {
  0% { clip-path: inset(74% 0 12%); transform: translateX(-3px); }
  8% { clip-path: inset(12% 0 64%); transform: translateX(4px) skewX(-3deg); }
  16% { clip-path: inset(42% 0 24%); transform: translateX(-5px); }
  25% { clip-path: inset(0 38% 0 0); transform: translateX(2px); }
  34% { clip-path: inset(17% 0 9%); transform: translateX(-2px) skewX(2deg); }
  44% { clip-path: inset(0); transform: translateX(1px); }
  53% { clip-path: inset(29% 0 21%); transform: translateX(-3px); }
  62% { clip-path: inset(0); transform: translateX(1px); }
  72%, 100% { clip-path: inset(0); transform: none; }
}
@keyframes footer-wire-break {
  0% { opacity: 1; transform: none; }
  10% { opacity: .8; transform: translateX(2px); }
  20% { opacity: .35; transform: translateX(-2px); }
  30% { opacity: .7; transform: none; }
  42% { opacity: .2; transform: translateX(1px); }
  54%, 100% { opacity: 0; transform: none; }
}
@keyframes footer-glitch-white {
  0% { opacity: 0; clip-path: inset(0); transform: translateY(-50%); }
  8% { opacity: .85; clip-path: polygon(0 12%, 100% 12%, 100% 22%, 0 22%, 0 48%, 100% 48%, 100% 54%, 0 54%, 0 78%, 100% 78%, 100% 84%, 0 84%); transform: translate(-5px, -50%); }
  17% { opacity: .6; clip-path: inset(32% 0 57%); transform: translate(6px, -50%); }
  26% { opacity: 0; }
  35% { opacity: .7; clip-path: polygon(0 23%, 100% 23%, 100% 28%, 0 28%, 0 67%, 100% 67%, 100% 76%, 0 76%); transform: translate(-4px, -50%); }
  46% { opacity: .85; clip-path: inset(55% 0 38%); transform: translate(3px, -50%); }
  57% { opacity: 0; }
  65% { opacity: .45; clip-path: inset(18% 0 78%); transform: translate(-2px, -50%); }
  76%, 100% { opacity: 0; transform: translateY(-50%); }
}
@keyframes footer-glitch-orange {
  0% { opacity: 0; clip-path: inset(0); transform: translateY(-50%); }
  12% { opacity: .85; clip-path: polygon(0 28%, 100% 28%, 100% 31%, 0 31%, 0 71%, 100% 71%, 100% 73%, 0 73%); transform: translate(4px, -50%); }
  21% { opacity: 0; }
  32% { opacity: .7; clip-path: inset(45% 0 52%); transform: translate(-5px, -50%); }
  41% { opacity: 0; }
  50% { opacity: .65; clip-path: inset(83% 0 14%); transform: translate(3px, -50%); }
  59%, 100% { opacity: 0; transform: translateY(-50%); }
}
/* The lower claim cell keeps its approved height and horizontal rule. */
@media (min-width: 920px) {
  .site-footer .footer-logo { padding-top: 0; }
  .site-footer .footer-logo .footer-brandmark {
    flex: 1 1 auto;
    width: 184px;
    min-height: 0;
    margin-left: 16px;
  }
  .site-footer .footer-logo > p { margin-top: 0; }
}
@media (max-width: 700px) {
  .site-footer .footer-logo .footer-brandmark { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-enabled .site-footer .footer-brandmark .footer-brandmark-filled,
  html.motion-enabled .site-footer .footer-brandmark .footer-brandmark-wire,
  html.motion-enabled .site-footer .footer-brandmark::before,
  html.motion-enabled .site-footer .footer-brandmark::after {
    animation: none;
    transition: none;
  }
}

/* ===== mobile-index ===== */
/* One project per readable grid row on narrow screens; desktop stays tabular. */
@media (max-width: 700px) {
  #project-index > .section-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 14px; padding: 18px 12px; }
  #project-index .category-filter { width: 100%; margin: 0; gap: 12px; }
  #project-index .category-filter label { min-width: 60px; font-size: 11px; }
  #project-index .category-filter select { flex: 1; min-width: 0; width: 100%; min-height: 44px; font-size: 12px; padding: 10px 12px; }
  #project-index .projects-table { display: block; width: 100%; border-top: 1px solid var(--line); }
  #project-index .projects-table colgroup { display: none; }
  /* Keep column headings available to assistive technology. */
  #project-index .projects-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
  #project-rows { display: block; width: 100%; --index-inset: 0px; }
  #project-rows > tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
  #project-index .projects-table #project-rows > tr > td { display: block; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; overflow: visible; overflow-wrap: normal; word-break: normal; white-space: normal; text-overflow: clip; font-size: 12px; font-weight: 400; line-height: 1.7; color: rgb(248 246 246 / 78%); }
  #project-index .projects-table #project-rows > tr > td:first-child { position: relative; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--white); }
  #project-index .projects-table #project-rows > tr > td:last-child { font-size: 11px; line-height: 1.5; color: var(--muted); }
  #project-rows .project-mobile-meta { display: none; }
  
  #project-rows > tr > td:last-child .index-cell { display: flex; flex-wrap: wrap; gap: 0 7px; }
  #project-rows > tr > td:last-child .index-cell::before { content: 'location /'; opacity: .7; }
  #project-rows > tr.has-project > td:first-child { padding-right: 24px !important; }
  #project-rows > tr.has-project > td:first-child::after { position: absolute; top: 0; right: 0; width: 16px; height: 16px; color: var(--orange); background: currentColor; -webkit-mask: var(--ui-arrow-mask) center / 8px 14px no-repeat; mask: var(--ui-arrow-mask) center / 8px 14px no-repeat; transform: rotate(-135deg); }
  #project-rows > tr > td:first-child::before { display: none; }
  #project-rows > tr:has(:focus-visible) .index-cell { transform: translateX(6px); }
  #project-index .projects-table #project-rows > tr:has(:focus-visible) > td,
  #project-index .projects-table #project-rows > tr:has(:focus-visible) .project-link,
  #project-rows > tr:has(:focus-visible) > td:first-child::after { color: var(--black); }
}
@media (max-width: 700px) and (hover: hover) {
  main:not(.index-pointer-pending) #project-rows > tr:hover .index-cell { transform: translateX(6px); }
  main:not(.index-pointer-pending) #project-index .projects-table #project-rows > tr:hover > td,
  main:not(.index-pointer-pending) #project-index .projects-table #project-rows > tr:hover .project-link,
  main:not(.index-pointer-pending) #project-rows > tr:hover > td:first-child::after { color: var(--black); }
}

/* ===== mobile-footer ===== */
/* Mobile footer cells replace the page's quarter-width background guides. */
@media (max-width: 700px) {
  .site-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "socials address"
      "email vat";
    gap: 0;
    min-height: 0;
    background: var(--black);
  }

  .site-footer > .footer-logo {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    height: auto;
    padding: 24px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer .footer-logo > p {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  /* These nonsemantic wrappers keep their inherited type and interactions;
     their children share the footer's actual rows, so every rule aligns. */
  .site-footer > .footer-middle,
  .site-footer > .address {
    display: contents;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .site-footer .socials,
  .site-footer .address > div,
  .site-footer .footer-email,
  .site-footer .address > .vat {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 20px 12px;
    border: 0;
  }

  .site-footer .socials {
    grid-area: socials;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .site-footer .socials a { white-space: nowrap; }

  .site-footer .address > div {
    grid-area: address;
    border-left: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .site-footer .address > div > .orange { margin-bottom: 12px; }

  .site-footer .footer-email {
    grid-area: email;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-top: 1px solid var(--line);
  }

  .site-footer .footer-email > span:first-child { margin: 0; }

  .site-footer .address > .vat {
    grid-area: vat;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
}

/* Keep the complete email on one line in the narrowest phone cells. */
@media (max-width: 390px) {
  .site-footer .footer-email > a {
    font-size: 11px !important;
    white-space: nowrap;
  }
}

/* ===== media-glyphs ===== */
/* A clipped, noninteractive layer over each project photograph or film. */
.case-media > .media-glyph-layer,
.case-photo > .media-glyph-layer {
  position: absolute;
  display: block;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  contain: strict;
  mix-blend-mode: normal;
}
.media-glyph-layer[data-contrast="difference"] { mix-blend-mode: difference; }
@media (max-width: 700px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .media-glyph-layer { display: none !important; }
}

/* ===== case-info ===== */
/* Project entry gives the viewport to the work; the narrative opens on request. */
.case-page[data-case-info] {
  --case-info-height: 48px;
  --case-gallery-height: max(200px, calc(100dvh - var(--margin) * 2 - var(--header-height) - 56px - var(--case-info-height)));
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--margin) * 2);
  padding-top: var(--header-height);
  padding-bottom: var(--case-info-height);
}
.case-page[data-case-info] .case-copy[hidden] { display: none !important; }
.case-page[data-case-info] > .case-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.case-topline .case-back { justify-self: start; }
.case-topline .case-current-title {
  min-width: 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.case-current-title .case-current-brand { text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.case-current-title .case-current-name { color: var(--muted); font-weight: 400; }
.case-copy > .case-heading .case-copy-title { margin: 0; color: var(--white); font-size: 12px; font-weight: 700; line-height: 1.5; }
.case-copy-title:focus, .case-current-title:focus { outline: none; }
.case-info-bar { justify-content: space-between; gap: 16px; }

.case-topline .case-next {
  grid-template-columns: max-content 18px;
  justify-self: end;
  margin-left: 0;
}
.case-page[data-case-info] > .case-layout { --case-workspace-height: var(--case-gallery-height); }
.case-page[data-case-info]:not(.is-info-open) > .case-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  container-type: size;
  height: var(--case-gallery-height);
  min-height: 0;
}
.case-page[data-case-info]:not(.is-info-open) .case-layout > .case-media,
.case-page[data-case-info]:not(.is-info-open) .case-layout > .case-moodboard {
  grid-column: 1;
  grid-row: 1;
}
.case-page[data-case-info]:not(.is-info-open) .case-layout > .case-media {
  align-self: stretch;
  min-height: 0;
  height: calc(100% - 32px);
  margin: 16px;
  aspect-ratio: auto;
}
.case-page[data-case-info]:not(.is-info-open) .case-layout > .case-moodboard {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
}
.case-page[data-case-info]:not(.is-info-open) .case-moodboard > .case-media {
  align-self: stretch;
  min-height: 0;
  aspect-ratio: auto;
}
body:has(.case-page[data-case-info]:not(.is-info-open)) .coordinate-grid { visibility: hidden; }
.case-info-bar {
  position: fixed;
  left: calc(var(--margin) + 2px);
  right: calc(var(--margin) + 2px);
  bottom: calc(var(--margin) + 2px);
  z-index: 12;
  display: flex;
  align-items: center;
  min-height: var(--case-info-height);
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: var(--black);
}
.case-info-toggle {
  appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.case-info-toggle:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
/* Wide, shallow windows place all three photographs beside the film. */
@media (min-width: 1101px), (min-width: 901px) and (min-height: 501px) {
@container (min-aspect-ratio: 2 / 1) {
  .case-page[data-case-info]:not(.is-info-open) .case-layout > .case-moodboard { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .case-page[data-case-info]:not(.is-info-open) .case-moodboard > .case-media { grid-column: 1 / span 4; grid-row: 1 / span 3; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(n) { grid-column: 5 / span 2; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 0; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(1) { grid-row: 1; border-top: 0; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(2) { grid-row: 2; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(3) { grid-row: 3; }
}
@container (min-aspect-ratio: 3.2 / 1) {
  .case-page[data-case-info]:not(.is-info-open) .case-layout > .case-moodboard { grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .case-page[data-case-info]:not(.is-info-open) .case-moodboard > .case-media { grid-column: 1; grid-row: 1; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(n) { grid-row: 1; border-top: 0; border-left: 1px solid var(--line); }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(1) { grid-column: 2; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(2) { grid-column: 3; }
  .case-page[data-case-info]:not(.is-info-open) .case-photo:nth-child(3) { grid-column: 4; }
}
}
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-page[data-case-info] > .case-topline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  .case-topline .case-back { grid-column: 1; grid-row: 1; min-height: 44px; }
  .case-topline .case-next { grid-column: 2; grid-row: 1; }
  .case-topline .case-current-title { grid-column: 1 / -1; grid-row: 2; padding-bottom: 8px; }
  .case-page[data-case-info] > .case-layout { grid-template-columns: minmax(0, 1fr); }
  .case-page[data-case-info]:is(.is-info-open) > .case-layout { grid-template-rows: var(--case-gallery-height) auto; min-height: 0; }
  .case-page[data-case-info] .case-layout > .case-copy { grid-column: 1; grid-row: 2; }
  .case-page[data-case-info] .case-layout > .case-media,
  .case-page[data-case-info] .case-layout > .case-moodboard { grid-column: 1; grid-row: 1; }
  .case-page[data-case-info] .case-layout > .case-media,
  .case-page[data-case-info]:not(.is-info-open) .case-layout > .case-media { min-height: 0; height: calc(var(--case-gallery-height) - 24px); margin: 12px; aspect-ratio: auto; }
  .case-page[data-case-info] .case-layout > .case-moodboard,
  .case-page[data-case-info]:not(.is-info-open) .case-layout > .case-moodboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 2.1fr) repeat(2, minmax(0, 1fr));
    min-height: 0;
    height: var(--case-gallery-height);
  }
  .case-page[data-case-info] .case-moodboard > .case-media { grid-column: 1 / -1; grid-row: 1; align-self: stretch; width: auto; min-height: 0; margin: 12px; aspect-ratio: auto; }
  .case-page[data-case-info] .case-moodboard-photos { display: contents; }
  .case-page[data-case-info] .case-photo:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 0; padding: 12px; border: 0; border-top: 1px solid var(--line); }
  .case-page[data-case-info] .case-photo:nth-child(1) { grid-column: 1; grid-row: 2 / span 2; }
  .case-page[data-case-info] .case-photo:nth-child(2) { grid-column: 2; grid-row: 2; border-left: 1px solid var(--line); }
  .case-page[data-case-info] .case-photo:nth-child(3) { grid-column: 2; grid-row: 3; border-left: 1px solid var(--line); }
  .case-page[data-case-info] .case-photo img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); aspect-ratio: auto; }
  .case-info-bar { padding-inline: 10px; }
}
/* Release size containment for the player's fixed-position fullscreen fallback. */
.case-page[data-case-info] > .case-layout:has(.case-media.is-fullscreen) { container-type: normal; }
/* The player's real fullscreen surface always wins over the gallery fitting. */
.case-page[data-case-info] .case-media:is(.is-fullscreen, :fullscreen, :-webkit-full-screen) {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
}

/* Phones read one page: media, Description, then the complete narrative.
   Media descriptions remain in the accessible content and Wiki. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .case-page[data-case-info].is-mobile-flow {
    padding-bottom: 0;
  }
  .case-page[data-case-info].is-mobile-flow > .case-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--case-gallery-height) auto auto;
    height: auto;
    min-height: 0;
    container-type: normal;
  }
  .case-page[data-case-info].is-mobile-flow > .case-layout > .case-copy {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    overscroll-behavior: auto;
    border-right: 0;
  }
  .case-page[data-case-info].is-mobile-flow .case-info-bar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-page[data-case-info].is-mobile-flow .case-info-bar > .case-info-toggle {
    gap: 10px;
  }
}

/* ===== case-model ===== */
/* The 3D follows Interaction and leaves room for the next text cell to peek in. */
.case-copy > .case-installation {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: var(--case-model-height, clamp(144px, 28vh, 260px));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}
.case-installation[hidden] { display: none !important; }
.case-installation > .index-model-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.case-installation.is-model-ready > .index-model-canvas { opacity: 1; }

@media (min-width: 1101px), (min-width: 901px) and (min-height: 501px) {
  /* The workspace keeps the gallery in view while its text column scrolls. */
  .case-page[data-case-info].is-info-open > .case-layout {
    height: var(--case-gallery-height);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .case-page[data-case-info].is-info-open .case-layout > .case-copy {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }
  .case-page[data-case-info].is-info-open .case-layout > .case-media {
    align-self: stretch;
    min-height: 0;
    height: calc(100% - 32px);
    aspect-ratio: auto;
  }
  .case-page[data-case-info].is-info-open .case-layout > .case-moodboard {
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  }
  .case-page[data-case-info].is-info-open .case-moodboard > .case-media {
    align-self: stretch;
    min-height: 0;
    aspect-ratio: auto;
  }
}
@media (min-width: 1200px) and (min-aspect-ratio: 14 / 5) {
  .case-page[data-case-info].is-info-open .case-layout > .case-moodboard {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  /* Mobile retains one natural page scroll, with the gallery before the copy. */
  .case-page[data-case-info].is-info-open .case-layout > .case-copy {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .case-copy > .case-installation { margin: 0; }
}

/* ===== text-project ===== */
/* Text-only projects have no simulated gallery or hidden information panel. */
.case-page.case-text-page {
  min-height: calc(100dvh - var(--margin) * 2);
  padding-top: var(--header-height);
  padding-bottom: 0;
}
.case-text-page > .case-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.case-text-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  min-height: calc(100dvh - var(--margin) * 2 - var(--header-height) - 56px);
  border-bottom: 1px solid var(--line);
}
.case-text-facts {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--black);
}
.case-text-heading, .case-text-credits { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.case-text-heading h2 { color: var(--white); font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.case-text-heading .case-category { margin: 8px 0 0; font-size: 11px; line-height: 1.55; }
.case-text-facts .case-facts { margin: 0; padding: 0; border: 0; }
.case-text-facts .case-facts > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.55;
}
.case-text-facts .case-facts dd { overflow-wrap: anywhere; }
.case-text-content { min-width: 0; }
.case-text-section { padding: 24px 32px; border-bottom: 1px solid var(--line); }
.case-text-section:last-child { border-bottom: 0; }
.case-text-section h2, .case-text-credits h2 { margin: 0 0 10px; color: var(--orange); font-size: 11px; font-weight: 700; line-height: 1.55; }
.case-text-section p, .case-text-credits p { max-width: 84ch; color: var(--white); font-size: 11px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.case-text-section p + p { margin-top: 12px; }
.case-text-credits p { line-height: 1.55; }
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-text-page > .case-topline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .case-text-page .case-topline .case-back { grid-column: 1; grid-row: 1; min-height: 44px; }
  .case-text-page .case-topline .case-next { grid-column: 2; grid-row: 1; }
  .case-text-page .case-topline .case-current-title { grid-column: 1 / -1; grid-row: 2; padding-bottom: 8px; }
  .case-text-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .case-text-facts { border-right: 0; }
  .case-text-heading, .case-text-credits { padding-inline: 12px; }
  .case-text-facts .case-facts > div { padding-inline: 12px; }
  .case-text-section { padding: 24px 12px; }
}

/* ===== index-affordance ===== */
/* A plus only marks rows that have an available project page. It sits outside
   the animated .index-cell so the right-hand edge stays steady on selection. */
#project-index .projects-table #project-rows > tr.has-project > td:last-child {
  position: relative;
  padding-right: 48px;
}
#project-rows > tr.has-project .index-open-mark {
  position: absolute;
  top: 50%;
  right: 16px;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--orange);
  transform: translateY(-50%);
  pointer-events: none;
}
#project-rows .index-open-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
#project-rows > tr:not(.has-project) .index-open-mark { display: none; }
#project-rows > tr.has-project:has(:focus-visible) .index-open-mark {
  color: var(--white);
}
@media (hover: hover) {
  main:not(.index-pointer-pending) #project-rows > tr.has-project:hover .index-open-mark {
    color: var(--white);
  }
}
@media (min-width: 701px) and (max-width: 920px) {
  #project-rows > tr.has-project .index-open-mark { right: 10px; }
}
@media (max-width: 700px) {
  #project-rows > tr.has-project { position: relative; }
  #project-index .projects-table #project-rows > tr.has-project > td:last-child {
    position: static;
    padding-right: 0;
  }
  /* Replace the former arrow with the same plus in the card's upper corner. */
  #project-rows > tr.has-project > td:first-child::after {
    content: none;
    display: none;
  }
  #project-rows > tr.has-project .index-open-mark {
    top: 18px;
    right: 12px;
    transform: none;
  }
}

/* ===== ui-icons ===== */
/* One original SVG silhouette, recoloured by context and rotated by direction. */
:root { --ui-arrow-mask: url('/assets/arrow-down.svg'); }
.ui-arrow {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: var(--ui-arrow-mask) center / 8px 14px no-repeat;
  mask: var(--ui-arrow-mask) center / 8px 14px no-repeat;
  pointer-events: none;
}
.ui-arrow-left { transform: rotate(90deg); }
.ui-arrow-right { transform: rotate(-90deg); }
.ui-arrow-up-right { transform: rotate(-135deg); }
.case-topline .case-back { gap: 8px; }

.socials a { display: inline-flex; align-items: center; gap: 6px; }
.socials a > .scroll-compose { display: inline-block; }
button.send-button { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ===== wiki ===== */
/* Public text reference: keep real text available without interaction or motion. */
.site-footer .footer-logo > .footer-claim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer .footer-wiki {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
}
.site-footer .footer-wiki:hover { color: var(--white); }
.footer-wiki:focus-visible, .wiki-page a:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
.wiki-page {
  min-height: calc(100dvh - var(--margin) * 2);
  padding-top: var(--header-height);
  background: var(--black);
  text-transform: none;
}
body:has(.wiki-page) .coordinate-grid { display: none; }
.wiki-page a { color: inherit; text-decoration: none; }
.wiki-page a:hover { color: var(--orange); }
.wiki-toolbar, .wiki-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.wiki-toolbar a, .wiki-end a, .wiki-project-link { display: inline-flex; align-items: center; gap: 12px; min-height: 32px; }
.wiki-page .wiki-toolbar a, .wiki-page .wiki-project-link { color: var(--orange); }
.wiki-intro { padding: 32px 16px; border-bottom: 1px solid var(--line); }
.wiki-intro h1 { margin: 0 0 12px; color: var(--orange); font-size: 16px; font-weight: 700; line-height: 1.5; }
.wiki-intro > p { color: var(--muted); }
.wiki-intro .wiki-updated { margin-top: 12px; font-size: 11px; }
.wiki-contents { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 100ch; margin-top: 22px; }
.wiki-contents a { display: inline-flex; align-items: center; min-height: 32px; }
.wiki-project-facts { color: var(--muted); margin-bottom: 12px; }
.wiki-page .wiki-asset-link { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; margin-top: 6px; color: var(--orange); }
.wiki-media li, .wiki-content > [id] { scroll-margin-top: calc(var(--margin) + var(--header-height) + 16px); }
.wiki-content > [id] { max-width: 84ch; }
.wiki-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--margin) + var(--header-height) + 16px);
}
.wiki-section > h2 { margin: 0; padding: 30px 16px; color: var(--orange); font-size: 12px; font-weight: 700; line-height: 1.7; }
.wiki-content { min-width: 0; padding: 30px 32px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.wiki-content > :is(p, ul, ol) { max-width: 84ch; }
.wiki-content p + p { margin-top: 12px; }
.wiki-content h3 { margin: 0 0 14px; font-size: 12px; font-weight: 700; line-height: 1.8; }
.wiki-topic { max-width: 84ch; }
.wiki-topic h3 { margin-bottom: 6px; }
.wiki-topic + .wiki-topic, .wiki-content > p + .wiki-topic { margin-top: 22px; }
.wiki-content h4 { margin: 24px 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; }
.wiki-content ul { list-style: square; padding-left: 18px; margin: 0; }
.wiki-content ul > li + li { margin-top: 6px; }
.wiki-index, .wiki-media { list-style: none; margin: 0; padding: 0; }
.wiki-index li + li { margin-top: 6px; }
.wiki-index span { color: var(--muted); }
.wiki-index a { display: inline-block; padding: 3px 0; }
.wiki-media li + li { margin-top: 14px; }
.wiki-media-label { color: var(--muted); }
.wiki-content .wiki-project-link { margin-top: 20px; }
.wiki-end { border-bottom: 0; }
.wiki-page #wiki-title { scroll-margin-top: calc(var(--margin) + var(--header-height) + 16px); }
@media (max-width: 700px) {
  .site-footer .footer-wiki { min-height: 44px; }
  .site-footer .footer-logo > .footer-claim { gap: 4px; }
  .wiki-toolbar, .wiki-end { padding: 8px 12px; gap: 12px; font-size: 11px; }
  .wiki-toolbar a, .wiki-end a { min-height: 44px; gap: 8px; }
  .wiki-intro { padding: 28px 12px; }
  .wiki-intro h1 { font-size: 14px; }
  .wiki-section { grid-template-columns: minmax(0, 1fr); }
  .wiki-section > h2 { padding: 22px 12px 0; }
  .wiki-content { padding: 14px 12px 26px; border-left: 0; }
  .wiki-index a { padding: 8px 0; }
  .wiki-contents a, .wiki-page .wiki-asset-link { min-height: 44px; }
}

/* ===== mobile-selected ===== */
/* The five additional media-backed cards belong only to the mobile proposal. */

@media (max-width: 700px) {
  #selected-projects {
    /* Browser chrome can move while swiping without resizing the cards. */
    --featured-height: max(440px, calc(100svh - var(--margin) * 2 - var(--header-height)));
    --featured-heading-height: 52px;
    --featured-cta-height: 52px;
    --featured-padding: 10px;
    --selected-caption-height: 76px;
    height: var(--featured-height);
    min-height: 0;
    grid-template-rows: var(--featured-heading-height) minmax(0, 1fr) var(--featured-cta-height);
  }
  #selected-projects > .section-head { padding-inline: 12px; }
  
  #selected-projects .film-scrollport {
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y pinch-zoom;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
  }
  
  #selected-projects .film-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) var(--selected-caption-height);
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    margin: 0;
    scroll-snap-align: start;
  }
  
  #selected-projects .film-card .media {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  #selected-projects .film-card .media img { width: 100%; height: 100%; object-fit: cover; }

  #selected-projects > .section-next { height: 100%; min-height: 44px; margin: 0; }
  .case-page[data-case-info] {
    --case-gallery-height: max(200px, calc(100svh - var(--margin) * 2 - var(--header-height) - 56px - var(--case-info-height)));
    min-height: calc(100svh - var(--margin) * 2);
  }
}

/* The cursor origin is decorative desktop feedback, never a touch marker. */
@media (max-width: 700px), (hover: none), (pointer: coarse) {
  .origin { display: none; }
}

/* A denied play request must leave a useful branded still, even with focus. */

/* ===== readability ===== */
/* Mono gives the interface its identity; sans makes longer passages easier to read. */
:root {
  --reading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --reading-size: 14px;
  --reading-compact: 13px;
}

/* Keep the frame, navigation, titles, brand labels and controls in Roboto Mono. */
.site-header,
.section-head,
.section-next,
.category-filter,
.about-label,
.client-group h4,
.studio-claim,
.contact-body h3,
.case-heading,
.case-current-title,
.case-text-heading,
.case-facts dt,
.case-description h2,
.case-credits h2,
.case-text-section h2,
.case-text-credits h2,
.case-command,
.media-bottom,
.player-exit-fullscreen,
.wiki-page :is(h1, h2, h3, h4),
.wiki-toolbar,
.wiki-end,
.wiki-contents,
.wiki-project-link,
.wiki-asset-link {
  font-family: var(--mono);
}

/* Descriptions and locations share a quiet, compact reading rhythm. */
#project-index .projects-table #project-rows > tr > td:not(:first-child),
#project-index .projects-table .project-mobile-meta {
  font-family: var(--reading-font);
  font-size: var(--reading-compact);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
#project-index .projects-table #project-rows > tr > td:first-child {
  font-family: var(--mono);
}

/* Keep section labels distinct from their prose and lists. */
.about-content > p:not(.studio-claim),
.client-group > .scroll-compose,
.client-grid :is(ul, li),
.contact-body .contact-intro {
  font-family: var(--reading-font);
  font-size: var(--reading-size);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.about-content > p:not(.studio-claim) { max-width: 76ch; }
.awards-list.awards-inline li,
.awards-list.awards-inline li:first-child,
.awards-list.awards-inline li:last-child,
.awards-list.awards-inline .award-detail,
.awards-list.awards-inline time {
  font-family: var(--reading-font);
  font-size: var(--reading-compact);
  font-weight: 400;
  line-height: 1.55;
}
.awards-list.awards-inline .award-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

/* Project prose stays compact enough to share the column with installation media. */
.case-page .case-copy .case-description p,
.case-page .case-copy .case-credits p,
.case-page .case-text-content .case-text-section p,
.case-page .case-text-credits p,
.case-page .case-facts dd {
  font-family: var(--reading-font);
  font-size: var(--reading-compact);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.case-page .case-text-section p { max-width: 76ch; }

/* User-entered text and business details use the same reading face. */
.static-form textarea.field,
.static-form input.field {
  font-family: var(--reading-font);
  font-size: var(--reading-size);
  font-weight: 400;
  line-height: 1.5;
}
.site-footer .address > div > p:not(.orange),
.site-footer .footer-email > a {
  font-family: var(--reading-font);
  font-size: var(--reading-compact);
  font-weight: 400;
  line-height: 1.5;
}

/* The Wiki remains plain, selectable text with clearly separate mono headings. */
.wiki-page .wiki-intro > p,
.wiki-page .wiki-content p,
.wiki-page .wiki-content li,
.wiki-page .wiki-project-facts,
.wiki-page .wiki-index span {
  font-family: var(--reading-font);
  font-size: var(--reading-size);
  font-weight: 400;
  line-height: 1.6;
}
.wiki-page .wiki-content p { max-width: 76ch; }
.wiki-page .wiki-index a {
  font-family: var(--mono);
  font-size: 12px;
}
.wiki-page .wiki-intro .wiki-updated { font-size: var(--reading-compact); }

@media (max-width: 700px) {
  .about-content > p:not(.studio-claim),
  .client-group > .scroll-compose,
  .client-grid :is(ul, li),
  .contact-body .contact-intro,
  .wiki-page .wiki-intro > p,
  .wiki-page .wiki-content p,
  .wiki-page .wiki-content li,
  .wiki-page .wiki-project-facts,
  .wiki-page .wiki-index span {
    font-size: var(--reading-compact);
  }
  .static-form textarea.field,
  .static-form input.field {
    font-size: 16px;
  }
}

/* ===== refinements-47 ===== */
/* Close the complete visible index, including category-filtered results. */
@media (min-width: 701px) {
  #project-index .projects-table #project-rows > tr:not([hidden]):not(:has(~ tr:not([hidden]))) > td {
    border-bottom: 2px solid rgb(248 246 246 / 55%);
  }
}
@media (max-width: 700px) {
  #project-index .projects-table #project-rows > tr:not([hidden]):not(:has(~ tr:not([hidden]))) {
    border-bottom: 1px solid rgb(248 246 246 / 55%);
  }
  #project-index .projects-table #project-rows > tr:not([hidden]):not(:has(~ tr:not([hidden]))) > td { border-bottom: 0; }
}
/* High-contrast carousel controls remain discoverable over moving imagery. */

/* project-page.css — Pagina progetto: scorrimento del testo, comandi, maiuscole editoriali, media, selettore categorie, galleria.
   Ordine delle sezioni = ordine di caricamento originale: conta per la cascata. */

/* ===== case-scroll ===== */
/* A quiet continuation cue appears only while more narrative remains below. */
.case-copy-scroll-hint {
  position: fixed;
  left: var(--case-hint-left, 0px);
  top: var(--case-hint-top, 0px);
  z-index: 11;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: var(--case-hint-width, 0px);
  height: 30px;
  padding: 0 12px 5px;
  background: linear-gradient(transparent, rgb(12 12 12 / 92%));
  color: var(--orange);
  pointer-events: none;
}
.case-copy-scroll-hint[hidden] { display: none !important; }
.case-copy-scroll-hint > .ui-arrow { width: 14px; height: 14px; flex-basis: 14px; }

/* Hide only the native nested scrollbar; mobile keeps its normal page scroll. */
.case-scroll-custom { scrollbar-width: none !important; -ms-overflow-style: none; }
.case-scroll-custom::-webkit-scrollbar { display: none; width: 0; height: 0; }
.case-scroll-rail {
  position: fixed;
  z-index: 12;
  width: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.case-scroll-rail[hidden] { display: none !important; }
.case-scroll-rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: rgb(235 91 33 / 28%);
}
.case-scroll-thumb {
  position: absolute;
  top: 0;
  left: 7px;
  width: 4px;
  min-height: 24px;
  border-radius: 0;
  background: var(--orange);
}
.case-scroll-rail:focus-visible { outline: 1px solid var(--orange); outline-offset: 1px; }

/* ===== case-commands ===== */
/* Commands are full grid cells; selection matches the project index rows. */
.case-page[data-project-id] > .case-topline {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 56px;
}
.case-page .case-command {
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  text-decoration: none;
  transition: background-color 180ms ease, color 300ms ease, padding 300ms cubic-bezier(.19,1,.22,1);
}
.case-page .case-topline .case-back,
.case-page .case-topline .case-next {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-self: stretch;
  min-height: 56px;
}
.case-page .case-topline .case-back { justify-content: flex-start; border-right: 1px solid var(--line); }
.case-page .case-topline .case-next { justify-content: flex-end; border-left: 1px solid var(--line); }
.case-page .case-topline .case-current-title { align-self: center; padding: 10px 16px; }
.case-page .case-info-bar {
  display: grid;
  left: var(--margin);
  right: var(--margin);
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.case-page .case-info-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1;
  border-right: 1px solid var(--line);
}

.case-page .case-command :where(.case-next-label, .case-next-arrow) { color: inherit; }
.case-page .case-command:is(:focus-visible, :active) {
  background: var(--orange);
  color: var(--black);
  padding-inline: 20px 12px;
}
.case-page .case-command:focus-visible { outline: 1px solid var(--orange); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .case-page .case-command:hover {
    background: var(--orange);
    color: var(--black);
    padding-inline: 20px 12px;
  }
}
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-page[data-project-id] > .case-topline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-page .case-topline .case-back { grid-column: 1; grid-row: 1; }
  .case-page .case-topline .case-next { grid-column: 2; grid-row: 1; border-left: 0; }
  .case-page .case-topline .case-back,
  .case-page .case-topline .case-next { min-height: 48px; border-bottom: 1px solid var(--line); }
  .case-page .case-topline .case-current-title { grid-column: 1 / -1; grid-row: 2; padding: 8px 12px; }
  .case-page .case-info-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  
  .case-page .case-command { padding-inline: 12px; line-height: 1.4; }
  .case-page .case-command:is(:focus-visible, :active) { padding-inline: 15px 9px; }
  @media (hover: hover) and (pointer: fine) {
    .case-page .case-command:hover { padding-inline: 15px 9px; }
  }
}
@media (prefers-reduced-motion: reduce) { .case-page .case-command { transition: none; } }
html:not(.motion-enabled) .case-page .case-command { transition: none; }

/* ===== editorial-case ===== */
/* Preserve editorial capitals in prose, names and labels rather than forcing lowercase. */
body { text-transform: none; }
.category-filter select { text-transform: none; }
.case-page .case-copy > .case-credits h2 { text-transform: none; }

/* Section banners, command labels, the brand wordmark and current-project brand
   retain their intentional uppercase styling from the approved interface. */

/* ===== case-media-clean ===== */
/* Project films keep their original pixels on every input device. */
.case-media .media::after { content: none; }
.case-media > .media-glyph-layer { display: none !important; }

/* ===== category-select ===== */
/* Machinezero category picker: one shared, non-native control on every device. */
.category-filter.is-custom-category > select { display: none !important; }
.category-filter .category-select {
  position: relative;
  flex: 0 1 220px;
  min-width: 200px;
  width: 220px;
  max-width: 100%;
  font: 400 12px/1.6 var(--mono);
}
.category-filter .category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line, rgb(248 246 246 / 18%));
  border-radius: 0;
  background: var(--black, #0c0c0c);
  color: var(--white, #f8f6f6);
  font: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.category-filter .category-toggle:hover,
.category-filter .category-toggle[aria-expanded="true"] { border-color: var(--orange, #eb5b21); }
.category-filter .category-toggle:focus-visible {
  outline: 1px solid var(--orange, #eb5b21);
  outline-offset: 3px;
}
.category-filter .category-value { min-width: 0; overflow-wrap: break-word; }
.category-filter .category-chevron {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 0;
  border-right: 1px solid var(--orange, #eb5b21);
  border-bottom: 1px solid var(--orange, #eb5b21);
  transform: rotate(45deg);
}
.category-filter .category-toggle[aria-expanded="true"] .category-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}
.category-filter .category-options {
  position: absolute;
  z-index: 18;
  top: calc(100% + 5px);
  right: 0;
  width: 100%;
  max-width: calc(100vw - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--orange, #eb5b21);
  background: var(--black, #0c0c0c);
  scrollbar-width: thin;
  scrollbar-color: var(--orange, #eb5b21) var(--black, #0c0c0c);
}
.category-filter .category-options[hidden] { display: none !important; }
.category-filter .category-select[data-placement="above"] .category-options {
  top: auto;
  bottom: calc(100% + 5px);
}
.category-filter .category-option {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line, rgb(248 246 246 / 18%));
  border-radius: 0;
  background: transparent;
  color: var(--white, #f8f6f6);
  font: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.category-filter .category-option:last-child { border-bottom: 0; }
.category-filter .category-option[aria-selected="true"] { color: var(--orange, #eb5b21); }
.category-filter .category-option:hover,
.category-filter .category-option:focus-visible {
  outline: 0;
  background: var(--orange, #eb5b21);
  color: var(--black, #0c0c0c);
}
@media (max-width: 700px) {
  .category-filter .category-select { flex: 1 1 0; min-width: 0; width: auto; }
  .category-filter .category-toggle { min-height: 44px; }
  .category-filter .category-option { min-height: 44px; }
}

/* The contact-reason listing follows the same category-menu treatment. */
.static-form .reason-options {
  top: calc(100% + 5px);
  display: block;
  gap: 0;
  padding: 0;
  font: 400 12px/1.6 var(--mono);
}
.static-form .reason-option {
  display: block;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line, rgb(248 246 246 / 18%));
  background: transparent;
  color: var(--white, #f8f6f6);
  font: inherit;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
}
.static-form .reason-option:last-child { border-bottom: 0; }
.static-form .reason-option[aria-selected="true"] {
  background: transparent;
  color: var(--orange, #eb5b21);
}
.static-form .reason-option:hover,
.static-form .reason-option:focus-visible {
  outline: 0;
  background: var(--orange, #eb5b21);
  color: var(--black, #0c0c0c);
}
@media (max-width: 700px) {
  .static-form .reason-option { min-height: 44px; }
}

/* ===== case-media-fit ===== */
/* The film keeps its native shape; the existing photo mosaic fills the rest. */
.case-page[data-case-info] .case-layout > .case-moodboard[data-case-media-layout] {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: var(--case-gallery-height);
}

.case-page[data-case-info] .case-moodboard[data-case-media-layout] > .case-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) {
  grid-column: 1 / span 4;
  grid-row: 1;
  align-self: start;
  width: calc(100% - 32px);
  height: auto;
  min-height: 0;
  margin: 16px;
  aspect-ratio: var(--case-video-ratio, 16 / 9);
}

.case-page[data-case-info] .case-moodboard[data-case-media-layout] > .case-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) > .project-video {
  object-fit: contain;
  object-position: center;
}

.case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(n) {
  min-height: 0;
  padding: 16px;
  border: 0;
  border-top: 1px solid var(--line);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(1) {
  grid-column: 5 / span 2;
  grid-row: 1;
  border-top: 0;
  border-left: 1px solid var(--line);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(2) {
  grid-column: 1 / span 3;
  grid-row: 2;
  border-right: 1px solid var(--line);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(3) {
  grid-column: 4 / span 3;
  grid-row: 2;
}

/* A full-height film with the photographs stacked to its right. */
.case-page[data-case-info] .case-layout > .case-moodboard[data-case-media-layout="stacked"] {
  grid-template-columns: minmax(0, var(--case-film-column-width)) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="stacked"] > .case-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) {
  grid-column: 1;
  grid-row: 1 / span 3;
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="stacked"] .case-photo:nth-child(n) {
  grid-column: 2;
  grid-row: auto;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-left: 1px solid var(--line);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="stacked"] .case-photo:nth-child(1) { border-top: 0; }

/* In very wide windows all three photographs share the full gallery height. */
.case-page[data-case-info] .case-layout > .case-moodboard[data-case-media-layout="panoramic"] {
  grid-template-columns: minmax(0, var(--case-film-column-width)) repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="panoramic"] > .case-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) {
  grid-column: 1;
  grid-row: 1;
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="panoramic"] .case-photo:nth-child(n) {
  grid-row: 1;
  border-top: 0;
  border-right: 0;
  border-left: 1px solid var(--line);
}
.case-page[data-case-info] .case-moodboard[data-case-media-layout="panoramic"] .case-photo:nth-child(1) { grid-column: 2; }
.case-page[data-case-info] .case-moodboard[data-case-media-layout="panoramic"] .case-photo:nth-child(2) { grid-column: 3; }
.case-page[data-case-info] .case-moodboard[data-case-media-layout="panoramic"] .case-photo:nth-child(3) { grid-column: 4; }

@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-page[data-case-info] .case-layout > .case-moodboard[data-case-media-layout] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(2, minmax(96px, 1fr));
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] > .case-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) {
    grid-column: 1 / -1;
    grid-row: 1;
    width: calc(100% - 24px);
    margin: 12px;
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(n) {
    padding: 12px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(1) {
    grid-column: 1;
    grid-row: 2 / span 2;
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    border-left: 1px solid var(--line);
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] .case-photo:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
    border-left: 1px solid var(--line);
  }
}

/* ===== case-gallery ===== */
/* Enhancement controls never change the desktop photograph composition. */

/* ===== mobile-video-clean ===== */
/* Playback shows the original film; resting posters keep the approved treatment. */
#selected-projects .film-preview,
.case-media > video.project-video { filter: none; }
#selected-projects .film-card.is-previewing .media::after { content: none; }

/* A small viewport stays stable when Safari/Chrome expand their address bars. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  #intro {
    --intro-cue-height: max(64px, calc(48px + env(safe-area-inset-bottom, 0px)));
    height: calc(100vh - var(--margin) * 2);
    height: calc(100svh - var(--margin) * 2);
    min-height: 0;
  }
  #intro > .intro-stage {
    margin-top: var(--header-height);
    min-height: 0;
    flex: 1 1 0;
  }
  #intro .hero-logo {
    width: 72%;
    width: min(72%, calc((100svh - var(--margin) * 2 - var(--header-height) - var(--intro-cue-height) - 24px) * 2.293));
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #intro > .section-next {
    height: var(--intro-cue-height);
    min-height: 48px;
    flex-shrink: 0;
    padding: 0 12px env(safe-area-inset-bottom, 0px);
  }

}
@keyframes intro-swipe-cue {
  0%, 100% { translate: 0 -3px; }
  50% { translate: 0 4px; }
}

/* The mobile film already has a gallery launcher in its upper corner. */
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px), (pointer: coarse) and (max-width: 1100px) {
  .case-page .case-media:not(.is-fullscreen):has(> .case-video-open:not([hidden])) > .media-bottom .player-fullscreen {
    display: none;
  }
  .case-page .case-media:not(.is-fullscreen) > .media-bottom > .timecode {
    padding-bottom: 4px;
  }
  /* Keep the explicit controls above the seek target where their hit areas meet. */
  .case-page .case-media:not(.is-fullscreen) > .media-bottom > .timecode > .player-buttons {
    position: relative;
    z-index: 11;
  }
}

/* v2-layout.css — Direzione V2: griglia e header, animazione del footer, Works, layout mobile, gallerie orizzontali, intro, About desktop.
   Ordine delle sezioni = ordine di caricamento originale: conta per la cascata. */

/* ===== v2-direction ===== */
/* V2 is an independent direction. The original V1 checkout is never imported. */
:root{--header-height:72px;--v2-pad:clamp(24px,3.2vw,64px);--v2-body:"Helvetica Neue",Helvetica,Arial,sans-serif;--line:rgb(248 246 246 / 19%)}
.site-header{height:calc(var(--header-height) - 2px);top:calc(var(--margin) + 2px);left:calc(var(--margin) + 2px);right:calc(var(--margin) + 2px);background:var(--black);border-bottom:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));}
.site-header .nav-label{height:100%;display:flex;align-items:center;justify-content:flex-end;padding:0 22px;font-size:12px;grid-column:auto;border-right:1px solid var(--faint)}
.site-header .nav-label:last-child{border:0}.site-header .header-logo{padding-left:22px}
main[data-page=home]{padding-top:var(--header-height)}
.site-footer > :is(.footer-middle, .address){--reading-font:var(--mono);font-family:var(--mono)}
/* Give the studio name and both address lines the same vertical rhythm. */
.site-footer .address > div > p,
.site-footer .address > div > p.orange{margin:0}
.site-footer .address > div > p:not(.orange){font-size:inherit;line-height:1.6}
.site-footer .footer-map{display:inline-block;color:inherit;font:inherit;line-height:inherit;text-decoration:none}
.site-footer .footer-map:hover,.site-footer .footer-map:focus-visible{color:var(--orange)}
.site-footer .footer-map:focus-visible{outline:1px solid var(--orange);outline-offset:4px}
.v2-eyebrow{font:400 11px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.055em;color:var(--orange)}
.v2-hero#intro{height:calc(100svh - var(--margin)*2 - var(--header-height));min-height:570px;position:relative;isolation:isolate;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;border-bottom:1px solid var(--white);background:#171717}
.v2-hero-video,.v2-hero-shade,.v2-hero-grid{position:absolute;inset:0;width:100%;height:100%;z-index:-3}
.v2-hero-video{object-fit:cover;filter:none;object-position:center}
.v2-hero-shade{z-index:-2;background:linear-gradient(90deg,rgba(0,0,0,.73),rgba(0,0,0,.24) 70%,rgba(0,0,0,.18)),linear-gradient(0deg,rgba(0,0,0,.4),transparent 45%)}
.v2-hero-grid{z-index:-1;background:linear-gradient(90deg,transparent calc(25% - .5px),rgba(255,255,255,.085) 25%,transparent calc(25% + .5px),transparent calc(50% - .5px),rgba(255,255,255,.085) 50%,transparent calc(50% + .5px),transparent calc(75% - .5px),rgba(255,255,255,.085) 75%,transparent calc(75% + .5px));pointer-events:none}
.v2-hero-main{display:flex;flex-direction:column;min-height:0;padding:24px var(--v2-pad) 22px}

.v2-hero-copy{margin:auto 0;max-width:1150px;padding:30px 0}

.v2-hero h1{font:500 clamp(42px,5.2vw,88px)/1.04 var(--v2-body);letter-spacing:-.042em;text-transform:none;max-width:1100px;text-wrap:balance;color:#fff}
.v2-hero h1 em{font-style:normal;color:#fff}
.v2-hero-description{font:400 clamp(16px,1.35vw,21px)/1.45 var(--v2-body);color:#fff;max-width:640px;margin-top:24px}
.v2-hero-claim{display:block;width:clamp(340px,43vw,620px);max-width:100%;height:auto}
.v2-hero-actions{display:flex;gap:12px;margin-top:32px}
.v2-button{appearance:none;border-radius:0;display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:50px;padding:0 21px;border:1px solid var(--orange);font:400 12px/1.2 var(--mono);text-transform:uppercase;text-decoration:none;transition:background .2s,color .2s,border-color .2s;cursor:pointer}
.v2-button-solid{background:var(--orange);color:var(--black)}

.v2-button:hover,.v2-button:focus-visible{background:var(--white);border-color:var(--white);color:var(--black)}
.v2-button .ui-arrow{color:inherit}

.v2-hero-proof{display:grid;grid-template-columns:2fr 1fr;background:var(--black);border-top:1px solid #ffffff47}
.v2-brand-proof{padding:16px 0 17px;min-width:0;border-right:1px solid var(--line)}
.v2-proof-label{font:400 10px/1.4 var(--mono);text-transform:uppercase;color:#aaa;letter-spacing:.06em;margin-bottom:15px}
.v2-brand-heading{display:flex;align-items:center;justify-content:space-between;padding-inline:var(--v2-pad);margin-bottom:13px;min-height:20px}
.v2-brand-heading .v2-proof-label{margin:0}
.v2-brand-toggle{display:grid;place-items:center;width:28px;height:24px;padding:0;border:0;border-radius:0;background:none;color:#aaa;font:400 12px/1 var(--mono)}
.v2-brand-toggle[hidden]{display:none}.v2-brand-toggle:hover{color:var(--orange)}
.v2-brand-toggle:focus-visible,.v2-brand-window:focus-visible{outline:1px solid var(--orange);outline-offset:-1px}
.v2-brand-window{overflow:hidden;position:relative;mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.v2-brand-track{display:flex;width:max-content;animation:v2-client-travel var(--v2-band-duration,150s) linear infinite!important;will-change:transform}
.v2-brand-group{display:flex;align-items:center;gap:48px;padding:0 48px 0 0;margin:0;list-style:none;flex-shrink:0}
.v2-brand-group li{display:flex;align-items:center;justify-content:center;width:132px;height:38px;flex:0 0 132px}
.v2-brand-group img{display:block;width:110px;height:30px;object-fit:contain;filter:brightness(0) invert(1);opacity:1!important;user-select:none}
.v2-brand-proof:is(.is-paused,.is-offscreen) .v2-brand-track,.v2-brand-window:focus-visible .v2-brand-track{animation-play-state:paused!important}
.v2-brand-proof.is-reduced .v2-brand-track{animation:none!important;will-change:auto}
.v2-brand-proof.is-reduced .v2-brand-window{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--orange) transparent;touch-action:pan-x}
.v2-brand-proof.is-reduced .v2-brand-group[aria-hidden]{display:none}
@keyframes v2-client-travel{to{transform:translateX(-50%)}}
.v2-award-proof{padding:20px 30px;position:relative;text-decoration:none;display:block;color:var(--white)}
.v2-award-proof .v2-proof-label{margin-bottom:9px}
.v2-award-groups{display:grid;min-width:0}
.v2-award-group{grid-area:1 / 1;min-width:0;opacity:0;visibility:hidden;transition:opacity 260ms ease,visibility 0s linear 260ms!important}
.v2-award-group.is-active{opacity:1;visibility:visible;transition-delay:0s!important}
.v2-award-group p{font:400 12px/1.6 var(--v2-body);color:var(--white);white-space:nowrap}
.v2-award-proof strong{font-weight:600}.v2-award-proof p>span{color:#aaa;white-space:nowrap}.v2-award-proof>.ui-arrow{position:absolute;right:20px;top:20px;color:var(--orange)}
.v2-works#selected-projects{display:block;height:auto;min-height:0;grid-template-rows:none;border-bottom:1px solid var(--white);scroll-margin-top:var(--header-height)}

.v2-archive-callout h2,.v2-approach h2 {font:400 clamp(34px,3.4vw,58px)/1.08 var(--v2-body);letter-spacing:-.035em;text-transform:none;color:var(--white)}

.v2-work-card{display:block;position:relative;isolation:isolate;min-height:500px;height:clamp(480px,40vw,670px);overflow:hidden;text-decoration:none;color:#fff}

.v2-card-video,.v2-card-image,.v2-card-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;filter:none;transform:none}
.v2-card-poster{z-index:-3}
.v2-work-card>.v2-card-video{opacity:0;transition:opacity 320ms ease!important;pointer-events:none}
.v2-work-card.is-preview-playing>.v2-card-video{opacity:1}
.v2-card-shade{z-index:-1;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.1) 65%,rgba(0,0,0,.2)),linear-gradient(90deg,rgba(0,0,0,.2),transparent 70%)}
.v2-card-top{position:absolute;top:32px;left:var(--v2-pad);right:var(--v2-pad);display:flex;align-items:center;gap:17px}

.v2-card-top h3{font:400 clamp(25px,2.2vw,40px)/1 var(--mono);letter-spacing:-.04em}
.v2-card-arrow{display:grid;place-items:center;width:44px;height:44px;background:var(--orange);flex-shrink:0;transition:background .2s,color .2s;margin-left:auto}
.v2-card-arrow .ui-arrow{width:20px;height:20px;flex-basis:20px;color:inherit}
.v2-card-bottom{position:absolute;left:var(--v2-pad);right:var(--v2-pad);bottom:38px}

.v2-card-bottom h4{font:400 clamp(24px,2.4vw,42px)/1.15 var(--mono);letter-spacing:-.025em;margin:0 0 8px}
.v2-project-name{font:400 17px/1.4 var(--v2-body);color:#d1d1d1}
.v2-card-description{font:400 16px/1.5 var(--v2-body);color:#eee;max-width:420px;margin-top:18px}
.v2-card-link{display:inline-flex;gap:22px;align-items:center;font:400 11px/1.2 var(--mono);text-transform:uppercase;margin-top:23px}
.v2-card-link-label{display:inline-block;min-width:12ch;white-space:nowrap}
.v2-work-card:hover .v2-card-arrow {background:#fff;color:var(--orange)}
.v2-work-card:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}

.v2-archive-callout{padding:56px var(--v2-pad);border-bottom:1px solid var(--white);background:var(--black)}
.v2-archive-callout>.v2-eyebrow{margin-bottom:25px}
.v2-archive-callout>div{display:flex;align-items:center;justify-content:space-between;gap:40px}
.v2-archive-callout>p:last-child{font:400 16px/1.6 var(--v2-body);color:#bcbcbc;max-width:590px;margin-top:28px}
.v2-approach{display:grid;grid-template-columns:25% minmax(0,43%) minmax(0,32%);border-bottom:1px solid var(--white);padding:64px 16px;gap:0}
.v2-approach>.v2-eyebrow{padding-left:calc(var(--v2-pad) - 16px)}
.v2-approach-copy{padding-right:40px}
.v2-approach-copy>p{font:400 17px/1.55 var(--v2-body);color:#bcbcbc;margin-top:25px;max-width:560px}

.v2-capabilities{padding-top:8px;align-self:end}.v2-capabilities p{display:flex;gap:18px;border-top:1px solid var(--line);padding:20px 0;font:400 12px/1.4 var(--mono)}.v2-capabilities p:last-child{border-bottom:1px solid var(--line)}.v2-capabilities span{color:var(--orange)}
.v2-capabilities .v2-capability-copy{display:flex;flex-direction:column;gap:7px;color:var(--white)}
/* Increase the reading scale, retain the studio’s mono interface and grid. */
main[data-page=home] .about-content>p:not(.studio-claim),main[data-page=home] .client-grid :is(ul,li){font-size:16px;line-height:1.6}
main[data-page=home] .studio-claim{font-size:19px;color:var(--orange)}
main[data-page=home] .about-label h3{font-size:12px}
main[data-page=home] .about-label,main:is([data-page=home],[data-page=archive]) .contact-body>h3{padding-left:calc(var(--v2-pad) - 16px)}
main[data-page=home] .about-content .client-group h4{font-size:12px}
main[data-page=home] .section-head,main[data-page=archive] .contact-section>.section-head{min-height:68px;padding-inline:var(--v2-pad)}
main[data-page=home] .section-head h2,main[data-page=archive] .contact-section>.section-head h2{font-size:13px}
main[data-page=home] .about-block{padding-block:44px}
main[data-page=home] .awards-list.awards-inline :is(li,.award-detail,time){font-size:14px;line-height:1.55}
main[data-page=home] .awards-list .award-name{font-size:12px}
main:is([data-page=home],[data-page=archive]) .contact-intro{font-size:16px;max-width:330px;line-height:1.55}
main[data-page=archive]{padding-top:var(--header-height)}

main[data-page=archive] #project-index .projects-table td{font-size:14px!important;line-height:1.55!important;padding-block:19px}
/* Manual reel viewing is separate from the muted background. */
.v2-reel-dialog{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;padding:64px 0 48px;margin:0;border:0;border-radius:0;overflow:hidden;background:#000;color:#fff}
.v2-reel-dialog::backdrop{background:#000}
.v2-reel-dialog[open]{display:flex;align-items:center;justify-content:center}
.v2-reel-video{width:100%;height:100%;object-fit:contain;background:#000}
.v2-reel-close{appearance:none;position:absolute;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:44px;height:44px;display:grid;place-items:center;background:var(--orange);color:#fff;border:0;border-radius:0;font:300 28px/1 var(--v2-body);z-index:10}
.v2-reel-close:hover{background:#fff;color:var(--orange)}
.v2-reel-caption{position:absolute;left:20px;bottom:max(16px,env(safe-area-inset-bottom));font:400 11px/1.4 var(--mono);color:#ccc}
.v2-reel-dialog button:focus-visible,.v2-button:focus-visible {outline:2px solid #fff;outline-offset:3px}
@media(min-width:1800px){.v2-hero h1{font-size:96px}.v2-award-proof>p:not(.v2-proof-label){font-size:14px}}
@media(max-width:1100px){.v2-award-proof{padding:20px}.v2-award-proof>p:not(.v2-proof-label){display:block;font-size:11px}.v2-award-proof p>span{margin-left:8px}.v2-approach{grid-template-columns:25% minmax(0,75%);row-gap:24px}.v2-approach-copy{padding-right:0}.v2-capabilities{grid-column:2}.v2-work-card{min-height:480px}.v2-card-description{max-width:330px}}
@media(max-width:700px){
 :root{--margin:14px;--header-height:64px;--v2-pad:22px}
 .site-header .header-logo{padding-left:12px}.site-header .header-logo img.header-brandmark{width:88px;height:39px}.site-header{grid-template-columns:1.4fr 1fr 1fr 1fr}.site-header .nav-label{font-size:10px;padding:0 10px}
 .v2-hero#intro{height:calc(100svh - var(--margin)*2 - var(--header-height));min-height:560px;grid-template-rows:minmax(0,1fr) auto}
 .v2-hero-main{padding:20px var(--v2-pad) 22px}.v2-hero-top{align-items:flex-start;gap:10px}.v2-hero-top .v2-eyebrow{font-size:8px;max-width:160px;line-height:1.6;align-items:flex-start;gap:7px}.v2-signal{margin-top:3px;width:5px;height:5px}
 .v2-film-toggle{font-size:8px;padding:0 8px;min-height:30px;gap:10px}
 .v2-hero-copy{padding:28px 0}.v2-hero-signature{font-size:10px;margin-bottom:15px}.v2-hero h1{font-size:clamp(33px,9.8vw,50px);line-height:1.06;letter-spacing:-.04em}.v2-hero h1 br{display:none}
 .v2-hero-description{font-size:15px;line-height:1.4;margin-top:21px}.v2-desktop-break{display:none}.v2-hero-actions{margin-top:25px;gap:9px}.v2-button{font-size:9px;padding:0 13px;gap:14px;min-height:46px}.v2-hero-footnote{font-size:8px;line-height:1.5}.v2-hero-footnote>span:first-child{display:none}
 .v2-hero-proof{grid-template-columns:1fr}.v2-brand-proof{padding:13px 0;border-right:0}.v2-brand-heading{padding-inline:var(--v2-pad);margin-bottom:9px}.v2-brand-group{gap:32px;padding-right:32px}.v2-brand-group li{width:112px;flex-basis:112px;height:30px}.v2-brand-group img{width:92px;height:25px}.v2-proof-label{font-size:8px;margin-bottom:12px}
 .v2-award-proof{padding:12px 20px 13px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr;gap:3px}.v2-award-proof .v2-proof-label{grid-column:1/-1;margin-bottom:1px}.v2-award-proof>p:not(.v2-proof-label){font-size:11px;line-height:1.4;padding-right:0}.v2-award-proof p>span{display:inline;font-size:9px;margin:0 0 0 8px}.v2-award-proof>.ui-arrow{right:14px;top:11px;width:12px;height:12px}
 .v2-hero-shade{background:linear-gradient(90deg,#000b,#0005),linear-gradient(0deg,#0008,transparent 80%)}
 .v2-section-intro{padding:40px var(--v2-pad) 30px;display:block}.v2-section-intro h2{font-size:37px}.v2-section-intro>p{font-size:15px;margin-top:24px}.v2-eyebrow{font-size:10px}
 .v2-work-grid{grid-template-columns:1fr}.v2-category-wide{grid-column:auto}.v2-work-card,.v2-category-wide .v2-work-card{height:560px;min-height:0;max-height:calc(100svh - var(--header-height) - 34px)}
 .v2-card-top{top:24px;gap:12px}.v2-card-top h3{font-size:26px}.v2-card-number{font-size:10px;padding-top:0}.v2-card-arrow{width:42px;height:42px}
 .v2-card-bottom{bottom:28px}.v2-card-bottom h4{font-size:26px}.v2-project-name{font-size:16px}.v2-card-type{font-size:9px;max-width:240px}.v2-card-description{font-size:15px;line-height:1.5;margin-top:14px}.v2-card-link{font-size:10px;margin-top:18px}
 .v2-also-work{padding:20px;gap:14px;flex-wrap:wrap}.v2-also-work>img{width:70px;height:70px}.v2-also-label{display:none}.v2-also-work strong{font-size:13px;max-width:170px}.v2-also-work>span:not(.v2-card-arrow){font-size:11px}.v2-also-work .v2-card-arrow{width:34px;height:34px}
 .v2-archive-callout{padding:36px var(--v2-pad)}.v2-archive-callout>div{align-items:flex-start;flex-direction:column;gap:25px}.v2-archive-callout h2{font-size:32px}.v2-archive-callout>p:last-child{font-size:15px}
 .v2-approach{display:block;padding:38px var(--v2-pad)}.v2-approach>.v2-eyebrow{padding-left:0}.v2-approach-copy{padding-right:0}.v2-approach h2{font-size:36px;margin-top:24px}.v2-approach-copy>p{font-size:16px;margin-top:22px}.v2-capabilities{margin-top:28px}.v2-capabilities p{font-size:11px;padding:17px 0}
 main[data-page=home] .about-block{padding-block:28px}.v2-archive-heading{padding:38px var(--v2-pad) 28px}.v2-archive-heading h1{font-size:48px}
 main[data-page=archive] #project-index .projects-table td{font-size:13px!important;padding-block:0}
 .v2-reel-dialog{padding-top:64px;padding-bottom:44px}.v2-reel-caption{font-size:9px}
}
@media(max-width:700px) and (max-height:740px){.v2-hero#intro{min-height:0}.v2-hero-main{padding-top:15px;padding-bottom:16px}.v2-hero-copy{padding:19px 0}.v2-hero h1{font-size:32px}.v2-hero-description{font-size:13px;margin-top:16px}.v2-hero-signature{margin-bottom:10px}.v2-hero-actions{margin-top:18px}.v2-brand-proof{padding-block:12px}.v2-hero-footnote{display:none}.v2-award-proof{padding-block:10px}.v2-proof-label{margin-bottom:8px}.v2-card-description{font-size:14px}}
@media(max-width:380px){.v2-also-work .v2-card-arrow{display:none}.v2-card-bottom h4{font-size:23px}.v2-hero h1{font-size:31px}.v2-hero-actions .v2-button{font-size:8px;gap:9px;padding:0 11px}}
@media(max-height:560px) and (min-width:701px){.v2-hero#intro{height:auto;min-height:610px}}
@media(prefers-reduced-motion:reduce){.v2-work-card>.v2-card-video,.v2-card-video,.v2-button,.v2-card-arrow{transition:none!important}}

@media(max-width:700px) and (orientation:landscape){.v2-hero#intro{height:auto;min-height:600px}.v2-work-card,.v2-category-wide .v2-work-card{max-height:none;height:470px}}

@media(max-width:700px){.v2-hero#intro{display:flex;flex-direction:column;height:auto;min-height:calc(100svh - var(--margin)*2 - var(--header-height))}.v2-hero-main{flex:1 0 auto}.v2-hero-proof{flex:0 0 auto}.v2-hero-line{display:inline}.v2-hero-actions .v2-button{font-size:10px;gap:12px}.v2-hero-copy{min-height:0}}
@media(max-width:380px){.v2-hero-actions .v2-button{font-size:10px;gap:10px}}
@media(max-width:700px) and (orientation:landscape){.v2-hero#intro{min-height:600px}}

@media(max-width:700px){main[data-page=home] .about-label,main[data-page=home] .contact-body>h3{padding-left:calc(var(--v2-pad) - 12px)}}
@media(prefers-reduced-motion:reduce){.v2-brand-track{animation:none!important;will-change:auto}.v2-brand-group[aria-hidden]{display:none}.v2-brand-window{overflow-x:auto}.v2-brand-toggle{display:none}}

@media(min-width:1800px){.v2-award-group p{font-size:14px}}
@media(max-width:1100px){.v2-award-group p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.v2-award-group{transition:none!important}}

/* A concise desktop introduction leaves the reel open above the message. */
@media (min-width:701px) and (min-height:501px), (min-width:1101px) {
 .v2-hero-shade{background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.46) 24%,rgba(0,0,0,.08) 52%,transparent 75%)}
 .v2-hero-main{padding-bottom:40px}
 .v2-hero-copy{margin:auto 0 0;padding:0;max-width:680px}
 .v2-hero-description{font-size:18px;line-height:1.45;margin-top:16px}
 .v2-hero-actions{margin-top:24px}
 /* Match the mobile logo band, keeping the marks centred beside recognition. */
 .v2-brand-heading{display:none}
 .v2-hero-proof .v2-brand-proof{display:flex;align-items:center}
 .v2-brand-proof .v2-brand-window{width:100%;min-width:0}
 /* A short invitation enriches the compact archive link on larger screens. */
 .v2-archive-callout{padding:24px var(--v2-pad);background:var(--black)}
 .v2-archive-callout>p{display:none}
 .v2-archive-callout h2{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip-path:none;white-space:normal;font:400 clamp(18px,1.6vw,24px)/1.25 var(--v2-body);letter-spacing:-.02em}
 .v2-archive-callout>div{display:flex;align-items:center;justify-content:space-between;gap:24px}
 .v2-archive-callout .v2-button{display:inline-flex;width:auto;min-height:48px;flex-shrink:0}
 main:is([data-page=home],[data-page=archive]) .site-footer .footer-logo{padding-left:0}
 main:is([data-page=home],[data-page=archive]) .site-footer .footer-logo .footer-brandmark{margin-left:var(--v2-pad)}
 main:is([data-page=home],[data-page=archive]) .site-footer .footer-logo>.footer-claim{padding-left:var(--v2-pad)}
}

/* ===== v2-footer-animation ===== */
/* The existing link and its two images continue to determine the cell size. */
.site-footer .footer-logo .footer-brandmark[data-v2-footer] {
  --footer-wire-motion: none !important;
  --footer-solid-motion: none !important;
  --footer-white-motion: none !important;
  --footer-orange-motion: none !important;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer] > img {
  animation: none;
  transition: none !important;
  transform: none !important;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer]::before,
.site-footer .footer-logo .footer-brandmark[data-v2-footer]::after {
  content: none;
  display: none !important;
  animation: none;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer] > .footer-brandmark-wire {
  opacity: 0 !important;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer] > .footer-brandmark-filled {
  opacity: 1 !important;
  clip-path: none;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer="playing"] > img,
.site-footer .footer-logo .footer-brandmark[data-v2-footer="paused"] > img {
  opacity: 0 !important;
  visibility: hidden;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer] > .v2-footer-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.site-footer .footer-logo .footer-brandmark[data-v2-footer="loading"] > .v2-footer-animation {
  visibility: hidden;
}

/* ===== v2-archive ===== */
/* Real project previews, with compact text-only entries where media is pending. */
.v2-archive#project-index {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + var(--margin));
}
.v2-archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--v2-pad);
  border-bottom: 1px solid var(--line);
}
.v2-archive-title-group {
  display: flex;
  gap: 24px;
  min-width: 0;
}
.v2-archive-toolbar h2 {
  margin: 0;
  color: var(--orange);
  font: 400 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .035em;
}

.v2-archive-filter {
  flex: 0 1 auto;
  min-width: 0;
}
.v2-archive-filter .category-filter {
  margin: 0;
}
/* Keep visual and keyboard order identical across the project grid. */
.v2-archive-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  background: var(--line);
  min-width: 0;
}
.v2-archive-card {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: var(--black);
}
.v2-archive-card[hidden],
.v2-archive-empty[hidden] {
  display: none !important;
}
.v2-archive-link {
  display: block;
  min-width: 0;
  padding: 26px var(--v2-pad) 28px;
  color: var(--white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.v2-archive-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}
.v2-archive-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.v2-archive-card h3 {
  min-width: 0;
  color: var(--white);
  font: 700 17px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.v2-archive-card-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--orange);
  transition: background-color 180ms ease, color 180ms ease;
}
.v2-archive-card-arrow .ui-arrow {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: inherit;
}
.v2-archive-summary {
  max-width: 54ch;
  margin: 14px 0 0;
  color: #bcbcbc;
  font: 400 15px/1.55 var(--v2-body);
  overflow-wrap: break-word;
}
.v2-archive-visual {
  position: relative;
  width: 100%;
  margin-top: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
}
.v2-archive-visual img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.v2-archive-empty {
  padding: 30px var(--v2-pad);
  color: #bcbcbc;
  font: 400 15px/1.5 var(--v2-body);
}
@media (hover: hover) {
  .v2-archive-link:hover .v2-archive-card-arrow {
    background: #fff;
    color: var(--orange);
  }

}
.v2-archive-link:focus-visible .v2-archive-card-arrow {
  background: #fff;
  color: var(--orange);
}
@media (max-width: 900px) and (min-width: 701px) {
  .v2-archive-toolbar { gap: 16px; }
  .v2-archive-title-group { flex-direction: column; gap: 6px; }
  .v2-archive-link { padding-inline: 24px; }
}
@media (max-width: 700px) {

  .v2-archive-title-group {
    justify-content: space-between;
    gap: 15px;
  }
  .v2-archive-toolbar h2 { font-size: 11px; }

  #project-index .v2-archive-filter .category-filter { grid-template-columns: calc(25% - var(--v2-pad) / 2) minmax(0, 1fr); gap: 0; }
  #project-index .v2-archive-filter .category-filter label { min-width: 0; padding-right: 12px; }
  .v2-archive-cards { grid-template-columns: minmax(0, 1fr); }
  .v2-archive-link { padding: 22px var(--v2-pad) 24px; }
  .v2-archive-card h3 { font-size: 16px; }
  .v2-archive-card-heading { gap: 18px; }
  .v2-archive-summary { margin-top: 12px; font-size: 14px; line-height: 1.55; }
  .v2-archive-visual { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-archive-card-arrow,
  .v2-archive-visual img { transition: none; }
}

/* ===== v2-mobile ===== */
/* V2 only. Load last: navigation guides belong to the actual header cells. */
.site-header::before,
.site-header::after { content: none; display: none; }

.v2-approach-mobile-copy { display: none; }
.v2-services-heading { display: none; }
.v2-approach-mobile { display: none; }
.award-compact { display: none; }

.v2-award-proof .v2-proof-label > span { font: inherit; color: inherit; margin: 0; }
.static-form .reason-field .chevron { top: 50%; bottom: auto; width: 12px; height: 12px; line-height: 0; transform: translateY(-50%); }

/* Tablet contact and footer cells keep useful reading widths. */
@media (min-width: 701px) and (max-width: 1000px) {
  main:is([data-page="home"], [data-page="archive"]) .contact-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    gap: 20px 28px;
    padding-inline: var(--v2-pad);
  }
  main:is([data-page="home"], [data-page="archive"]) .contact-body > h3 { grid-column: 1; grid-row: 1; padding-left: 0; }
  main:is([data-page="home"], [data-page="archive"]) .contact-intro { grid-column: 1; grid-row: 2; padding: 0; }
  main:is([data-page="home"], [data-page="archive"]) .static-form { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer .socials { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-footer .socials a { min-height: 44px; width: fit-content; max-width: 100%; }
  .site-footer .footer-email > a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Phones and short touch windows share controls and a stable, flowing layout. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  :root {
    --margin: 14px;
    --header-height: 64px;
    --v2-pad: clamp(20px, 4.8vw, 28px);
    --v2-frame-top: max(var(--margin), env(safe-area-inset-top, 0px));
    --v2-frame-right: max(var(--margin), env(safe-area-inset-right, 0px));
    --v2-frame-bottom: max(var(--margin), env(safe-area-inset-bottom, 0px));
    --v2-frame-left: max(var(--margin), env(safe-area-inset-left, 0px));
  }
  main { margin: var(--v2-frame-top) var(--v2-frame-right) var(--v2-frame-bottom) var(--v2-frame-left); }
  .frame, .coordinate-grid { inset: var(--v2-frame-top) var(--v2-frame-right) var(--v2-frame-bottom) var(--v2-frame-left); }
  .edge.top { height: var(--v2-frame-top); }
  .edge.bottom { height: var(--v2-frame-bottom); }
  .edge.left { width: var(--v2-frame-left); }
  .edge.right { width: var(--v2-frame-right); }
  .axis.top, .axis.bottom { left: var(--v2-frame-left); right: var(--v2-frame-right); }
  .axis.top { height: var(--v2-frame-top); }
  .axis.bottom { height: var(--v2-frame-bottom); }
  .axis.left, .axis.right { top: var(--v2-frame-top); bottom: var(--v2-frame-bottom); }
  .axis.left { width: var(--v2-frame-left); }
  .axis.right { width: var(--v2-frame-right); }
  .origin { display: none; }
  .site-header {
    top: calc(var(--v2-frame-top) + 2px);
    left: calc(var(--v2-frame-left) + 2px);
    right: calc(var(--v2-frame-right) + 2px);
    grid-template-columns: minmax(94px, 1.35fr) repeat(3, minmax(0, 1fr));
  }
  .site-header .header-logo { min-height: 44px; height: 100%; padding: 0 10px; }
  .site-header .header-logo img.header-brandmark { max-width: 100%; }
  .site-header .nav-label { min-width: 0; min-height: 44px; padding-inline: clamp(8px, 2vw, 12px); font-size: 10px; }

  .v2-hero#intro {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100svh - var(--v2-frame-top) - var(--v2-frame-bottom) - var(--header-height));
  }
  .v2-hero-main { flex: 1 0 auto; min-width: 0; }

  .v2-hero-copy { min-width: 0; padding-block: 28px; }

  .v2-hero-actions { flex-wrap: wrap; }
  .v2-hero-actions .v2-button,
  .v2-button { min-height: 48px; gap: 12px; padding-inline: 12px; font-size: 11px; }
  .v2-hero-proof { flex: 0 0 auto; }
  .v2-brand-proof { min-width: 0; border-right: 0; }
  .v2-brand-window { touch-action: auto; }
  .v2-brand-proof.is-reduced .v2-brand-window { touch-action: auto; }
  .v2-award-proof { min-width: 0; border-top: 1px solid var(--line); padding-inline: var(--v2-pad); }
  .v2-award-group { display: block; line-height: 1.6; }
  .v2-award-group p { display: inline-block; white-space: nowrap; font-size: 11px; line-height: inherit; }
  .v2-award-group p:not(:last-child) { margin-inline-end: .4em; }
  .v2-award-group p:not(:last-child)::after { content: '\00a0/'; color: var(--orange); font-weight: 400; }

  /* Only the film is absolute. Both text groups reserve their own space. */
  .v2-work-card {
    display: grid;
    grid-template-rows: auto minmax(112px, 1fr) auto;
    min-width: 0;
    min-height: clamp(490px, 72svh, 600px);
    height: auto;
    max-height: none;
    padding: 24px var(--v2-pad) 28px;
  }
  .v2-card-top { position: relative; inset: auto; grid-row: 1; gap: 12px; min-width: 0; }
  .v2-card-top h3 { font-size: 26px; }
  
  .v2-card-arrow { width: 44px; height: 44px; }
  .v2-card-bottom { position: relative; inset: auto; grid-row: 3; min-width: 0; }
  .v2-card-bottom h4 { font-size: clamp(23px, 6.2vw, 28px); line-height: 1.2; overflow-wrap: break-word; }
  
  .v2-project-name { font-size: 16px; line-height: 1.5; }
  .v2-card-description { max-width: 40ch; font-size: 15px; margin-top: 16px; }
  .v2-card-link { font-size: 11px; min-height: 28px; margin-top: 20px; }
  .v2-approach { display: block; padding: 40px var(--v2-pad); }
  .v2-approach > .v2-eyebrow { padding-left: 0; }
  .v2-approach h2 { font-size: clamp(32px, 8vw, 40px); }
  .v2-approach-copy { padding-right: 0; }
  .v2-capabilities { margin-top: 28px; }
  main[data-page="home"] .studio-claim { font-size: clamp(15px, 4.2vw, 19px); letter-spacing: -.025em; white-space: nowrap; }
  main[data-page="home"] .about-content > p:not(.studio-claim),
  main[data-page="home"] .client-grid :is(ul, li) { font-size: 16px; }

  main:is([data-page="home"], [data-page="archive"]) .contact-section > .section-head { min-height: 68px; padding-inline: var(--v2-pad); }
  main:is([data-page="home"], [data-page="archive"]) .contact-section > .section-head h2 { font-size: 13px; }
  main:is([data-page="home"], [data-page="archive"]) .contact-body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 32px var(--v2-pad) 38px; }
  main:is([data-page="home"], [data-page="archive"]) .contact-body > h3 { padding-left: 0; font-size: 12px; }
  main:is([data-page="home"], [data-page="archive"]) .contact-intro { max-width: 35ch; padding: 0; font-size: 16px; }
  main:is([data-page="home"], [data-page="archive"]) .static-form { grid-column: auto; grid-row: auto; min-width: 0; }
  .static-form .field.reason-field { padding: 0; }
  .static-form .reason-toggle { min-height: 48px; padding: 12px 36px 12px 14px; font-size: 14px; }
  .reason-field .chevron { top: 15px; right: 14px; }
  .reason-option { min-height: 48px; padding: 12px 14px; font-size: 14px; }
  .static-form textarea.field,
  .static-form input.field { min-width: 0; min-height: 48px; font-size: 16px; line-height: 1.5; }
  .static-form textarea.field.message { height: 156px; }
  .static-form .form-bottom { min-width: 0; align-items: stretch; gap: 8px; }
  .static-form .form-bottom > input.field { width: 0; flex: 1 1 0; }
  .static-form .form-bottom > .send-button { flex: 0 0 60px; min-width: 60px; min-height: 48px; }

  .site-footer .socials { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-footer .socials a { min-width: 0; min-height: 44px; width: fit-content; max-width: 100%; font-size: 12px; }
  .site-footer .footer-email > a { display: inline-flex; min-height: 44px; font-size: 12px !important; white-space: normal; }
  .site-footer .footer-email { gap: 0; }
  .site-footer .footer-logo .footer-brandmark > .v2-footer-animation { pointer-events: none; }

  .case-page .case-copy .case-description p,
  .case-page .case-copy .case-credits p,
  .case-page .case-text-content .case-text-section p,
  .case-page .case-text-credits p { font-size: 15px; overflow-wrap: break-word; }
  .case-page .case-facts dd { font-size: 14px; line-height: 1.55; }
  .case-page .case-copy > .case-description,
  .case-page .case-copy > .case-credits { padding: 20px 16px; }
  .case-page .case-copy .case-description h2,
  .case-page .case-copy .case-credits h2 { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
  .case-page .case-command { min-height: 48px; font-size: 11px; }
  .case-page .case-topline .case-current-title { font-size: 12px; line-height: 1.5; }
  .case-page .case-info-bar {
    left: var(--v2-frame-left);
    right: var(--v2-frame-right);
    bottom: var(--v2-frame-bottom);
  }
  .player-toggle, .player-audio, .player-fullscreen, .player-exit-fullscreen { min-width: 44px; min-height: 44px; }
  .player-buttons, .player-meta { gap: 4px; }
  .case-media .media-bottom { left: 12px; right: 12px; bottom: 23px; }
  .case-media .timecode { min-height: 44px; padding-bottom: 24px; }
  .player-seek { top: -22px; height: 44px; }
  .player-seek::-webkit-slider-runnable-track,
  .player-seek::-webkit-slider-thumb { height: 44px; }
  .player-seek::-moz-range-track,
  .player-seek::-moz-range-progress,
  .player-seek::-moz-range-thumb { height: 44px; }
  .case-media:is(.is-fullscreen, :fullscreen, :-webkit-full-screen) .media-bottom {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(23px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
  .player-exit-fullscreen { top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  .v2-reel-close { min-width: 44px; min-height: 44px; }
}

/* A held touch must not retain the desktop card zoom after returning home. */
@media (hover: none), (pointer: coarse) {
  .v2-work-card:hover :is(.v2-card-video, .v2-card-image) { transform: none; }
  .v2-work-card:hover .v2-card-arrow { background: var(--orange); color: #fff; }
  .v2-work-card:active .v2-card-arrow,
  .v2-work-card:focus-visible .v2-card-arrow { background: #fff; color: var(--orange); }
}

/* In landscape, a phone scrolls naturally instead of cropping a fixed pane. */
@media (max-width: 1100px) and (max-height: 500px) {
  :root { --header-height: 58px; --v2-pad: 24px; }
  .v2-hero#intro { min-height: max(380px, calc(100svh - var(--v2-frame-top) - var(--v2-frame-bottom) - var(--header-height))); }
  .v2-hero-main { padding-block: 20px; }
  .v2-hero-copy { padding-block: 22px; }
  .v2-hero h1 { font-size: clamp(30px, 4.8vw, 42px); max-width: 800px; }
  .v2-hero-description { max-width: 640px; }
  
  .v2-hero-proof { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .v2-brand-proof { border-right: 1px solid var(--line); }
  .v2-award-proof { border-top: 0; padding-block: 14px; }
  .v2-hero-actions { margin-top: 22px; }
  .v2-work-card { min-height: 420px; grid-template-rows: auto minmax(88px, 1fr) auto; }
  .v2-card-bottom h4 { font-size: 24px; }
  
  .v2-card-description { font-size: 15px; }
  .v2-approach h2 { margin-top: 22px; }
}

/* A project needs reading width on portrait tablets as well as phones. */
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .case-page .case-copy .case-description p,
  .case-page .case-copy .case-credits p,
  .case-page .case-text-content .case-text-section p,
  .case-page .case-text-credits p { font-size: 15px; line-height: 1.6; overflow-wrap: break-word; }
  .case-page .case-facts dd { font-size: 14px; line-height: 1.55; }
  .case-page .case-command { min-height: 48px; font-size: 11px; }
  .case-page .case-info-bar {
    left: var(--v2-frame-left, calc(var(--margin) + 2px));
    right: var(--v2-frame-right, calc(var(--margin) + 2px));
    bottom: var(--v2-frame-bottom, calc(var(--margin) + 2px));
  }
  .player-toggle, .player-audio, .player-fullscreen, .player-exit-fullscreen { min-width: 44px; min-height: 44px; }
  .player-buttons, .player-meta { gap: 4px; }
  .player-seek { top: -22px; height: 44px; }
}
@media (pointer: coarse) {
  .static-form input.field, .static-form textarea.field { font-size: 16px; }
}

/* Touch targets also apply to larger iPads and hybrid devices. */
@media (pointer: coarse) {
  .player-toggle, .player-audio, .player-fullscreen, .player-exit-fullscreen { min-width: 44px; min-height: 44px; }
  .player-seek { top: -22px; height: 44px; }
  .site-footer .socials a, .site-footer .footer-email > a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Mobile hero: leave the film clear above a compact message and its actions. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .v2-hero-main {
    min-height: max(400px, calc(100svh - var(--v2-frame-top) - var(--v2-frame-bottom) - var(--header-height) - var(--v2-brand-block-height, 86px)));
    padding: 20px var(--v2-pad) 24px;
    background: linear-gradient(0deg, rgb(0 0 0 / 88%), rgb(0 0 0 / 58%) 28%, rgb(0 0 0 / 8%) 52%, transparent 72%);
  }

  .v2-hero-shade { background: none; }
  /* Compact, centred mobile logo band; desktop keeps its heading and spacing. */
  .v2-hero-proof .v2-brand-proof { display: flex; align-items: center; min-height: 64px; padding-block: 17px; }
  .v2-brand-heading { display: none; }
  .v2-brand-window { width: 100%; }
  /* Space the artwork itself, without empty fixed-width cells around narrow marks. */
  .v2-brand-group { gap: 32px; padding-right: 32px; }
  .v2-brand-group li { width: auto; flex: 0 0 auto; }
  .v2-brand-group img { width: auto; height: 25px; max-width: 92px; }
  .v2-brand-group img[data-brand="brunello-cucinelli"] { max-width: 170px; }
  /* Logos finish the first screen; recognition follows in the natural scroll. */
  .v2-hero-proof { grid-template-columns: minmax(0, 1fr); }
  .v2-hero-proof .v2-brand-proof { border-right: 0; }
  .v2-hero-copy { margin: auto 0 0; padding: 0; max-width: 480px; }
  .v2-hero h1 { font-size: clamp(19px, 6.7vw, 28px); line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; text-wrap: nowrap; color: var(--orange); }
  
  .v2-hero h1 br { display: initial; }
  .v2-hero-claim { display: block; width: 100%; max-width: 100%; height: auto; }
  .v2-hero-description { margin-top: 10px; font-size: 14px; line-height: 1.4; }
  .v2-hero-actions { display: flex; width: 100%; margin-top: 18px; gap: 0; }
  
  .v2-hero-actions > .v2-button.v2-button-solid { width: auto; flex: 0 0 auto; font-size: 12px; padding-inline: 16px; gap: 24px; }
  .v2-hero-actions .v2-button { min-width: 0; min-height: 48px; font-size: 11px; padding-inline: 14px; gap: 12px; }
  .v2-hero-actions .ui-arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .v2-hero-proof,
  .v2-brand-proof,
  .v2-award-proof { background: var(--black); }
  .v2-award-proof > .ui-arrow { display: none; }
  
  /* Keep the section heading available to assistive technology, without a visual preamble. */

  .site-footer .footer-email > a { align-items: flex-start; }
  /* Two reading levels for each award; the original inline layout stays on desktop. */
  main[data-page="home"] .awards-list.awards-inline .award-name { display: block; }
  main[data-page="home"] .awards-list.awards-inline .award-separator { display: none; }
  main[data-page="home"] .awards-list.awards-inline .award-description { display: block; }
  main[data-page="home"] .awards-list.awards-inline li { margin-bottom: 10px; }
  main[data-page="home"] .awards-list.awards-inline li:last-child { margin-bottom: 0; }
  main[data-page="home"] .awards-list.awards-inline .award-full { display: none; }
  main[data-page="home"] .awards-list.awards-inline .award-compact { display: inline-block; white-space: nowrap; font: 400 12px/1.4 var(--v2-body); }
  main[data-page="home"] .awards-list.awards-inline .award-name { font-size: 14px; line-height: 1.4; }
  main[data-page="home"] .awards-list.awards-inline :is(li, .award-description, .award-detail, time) { line-height: 1.4; }
  /* Slightly tighter prose blocks, keeping headings and controls unchanged. */
  main[data-page="home"] .about-content > p:not(.studio-claim),
  main[data-page="home"] .client-grid :is(ul, li),
  main:is([data-page="home"], [data-page="archive"]) .contact-intro,
  .v2-approach-copy > p,
  .v2-archive-callout > p:last-child,
  .wiki-page .wiki-content :is(p, li),
  .case-page .case-copy .case-description p,
  .case-page .case-copy .case-credits p,
  .case-page .case-text-content .case-text-section p,
  .case-page .case-text-credits p { line-height: 1.5; }
  .v2-card-description,
  .v2-archive-summary { line-height: 1.45; }
  /* The full archive needs one clear action after the selected cases. */
  .v2-archive-callout { padding: 24px var(--v2-pad); background: var(--black); }
  .v2-archive-callout > p { display: none; }
  .v2-archive-callout h2 { padding: 0; }
  .v2-archive-callout > div { display: block; }
  .v2-archive-callout .v2-button { display: flex; width: 100%; justify-content: space-between; min-height: 48px; }
  .v2-approach-copy > h2 { display: none; }
  /* Mobile reading order: claim, studio eyebrow, then prose. */
  main[data-page="home"] .about-studio { grid-template-columns: minmax(0, 1fr); gap: 0; }
  main[data-page="home"] .about-studio > .about-content { display: contents; }
  main[data-page="home"] .about-studio .studio-claim { grid-row: 1; margin: 0 0 24px; }
  main[data-page="home"] .about-studio > .about-label { grid-row: 2; margin-bottom: 8px; }
  main[data-page="home"] .about-studio .about-label h3 { font: 400 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .055em; color: var(--orange); }
  main[data-page="home"] .about-studio .about-content > p:not(.studio-claim) { grid-row: 3; }
  main[data-page="home"] .about-studio .about-content > p:not(.studio-claim),
  .v2-approach-mobile .v2-approach-copy > .v2-approach-mobile-copy { font: 400 15px/1.5 var(--v2-body); letter-spacing: 0; color: var(--white); }
  .v2-approach-copy > .v2-approach-mobile-copy { display: block; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--white); }
  .v2-approach-copy > .v2-approach-intro { margin-top: 0; }
  .v2-approach-mobile > .v2-eyebrow { margin-bottom: 8px; }
  .v2-services-heading { display: block; margin-bottom: 14px; }
  
  .about-section > .v2-approach-mobile { display: block; padding: 32px var(--v2-pad); border-bottom: 1px solid var(--line); }
  
  .v2-approach-mobile .v2-capabilities { margin: 32px calc(-1 * var(--v2-pad)) 0; padding: 32px var(--v2-pad) 0; border-top: 1px solid var(--line); }
  /* Go straight to the work list on mobile; retain its page heading for screen readers. */

  /* One reading edge for About labels, prose, clients and the footer's left cells. */
  main[data-page="home"] .about-block { padding-inline: var(--v2-pad); }
  main[data-page="home"] .about-label { padding-left: 0; }
  .site-footer > .footer-logo,
  .site-footer .socials,
  .site-footer .footer-email { padding-left: var(--v2-pad); }
}
@media (max-width: 380px) {
  .v2-hero-actions { gap: 8px; }
  .v2-hero-actions .v2-button { font-size: 10px; padding-inline: 8px; gap: 8px; }
  .v2-hero-actions .ui-arrow { width: 14px; height: 14px; flex-basis: 14px; }
}
@media (max-width: 340px) {
  .v2-hero-actions .v2-button { font-size: 9px; }
}
@media (min-width: 701px) and (max-width: 1100px) and (max-height: 500px) {
  .v2-hero-main { min-height: 340px; }
  .v2-hero h1 br { display: none; }
}

@media (min-width: 701px) and (max-width: 1100px) and (max-height: 500px) {
  main[data-page="home"] .about-studio .about-label h3 { font-size: 11px; }
}

/* ===== v2-mobile-works ===== */
/* Selected projects: one horizontal gallery per category, on desktop and phone (brief 2026-11-19). */
@media all {
  .v2-mobile-works { display: block; min-width: 0; }
  .v2-mobile-category { min-width: 0; background: var(--black); }
  .v2-mobile-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--v2-pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .v2-mobile-category-heading > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .v2-mobile-category-heading h3 { margin: 0; color: var(--white); font: 400 26px/1.1 var(--mono); letter-spacing: -.04em; }

  .v2-mobile-category-rail { display: flex; align-items: stretch; gap: 12px; width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v2-mobile-category-rail::-webkit-scrollbar { display: none; }
  .v2-mobile-category-rail:focus-visible { outline: 1px solid var(--orange); outline-offset: -2px; }
  .v2-mobile-category-rail > .v2-mobile-project { flex: 0 0 calc(100% - 34px); min-width: 0; scroll-snap-align: start; border-right: 1px solid var(--line); }
  /* Touch screens: one slide per swipe (h-rail.js); a fast fling never skips a slide. */
  @media (hover: none), (pointer: coarse) {
    .v2-mobile-category-rail { touch-action: pan-y; }
    .v2-mobile-category-rail > .v2-mobile-project { scroll-snap-stop: always; }
  }
  /* Reserve the same peek at the end, so the final card can also snap to its start. */
  .v2-mobile-category-rail::after { content: ''; flex: 0 0 22px; }
  .v2-mobile-works .v2-work-card { height: 100%; min-height: clamp(490px, 72svh, 600px); max-height: none; }
  .v2-mobile-works .v2-card-bottom h4 { font-size: 22px; line-height: 1.15; margin-bottom: 4px; }
  .v2-mobile-works .v2-project-name { font-size: 14px; line-height: 1.35; }
  .v2-mobile-works .v2-card-description { font-size: 14px; line-height: 1.4; margin-top: 10px; }
  .v2-mobile-works .v2-card-link { margin-top: 14px; min-height: 44px; width: fit-content; padding-inline: 14px; gap: 18px; font-size: 10px; }
  .v2-mobile-works .v2-card-link .ui-arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .v2-mobile-works .v2-card-link-label { min-width: 0; }
  .v2-mobile-slide-number { color: var(--white); font: 400 10px/1.4 var(--mono); letter-spacing: .035em; }
}

/* ===== v2-entry-loader ===== */
/* A single, brief pass of the approved logo artwork before the V2 reel. */
.v2-entry-loader { display: none; }
html.v2-loader-running .v2-entry-loader {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: #0c0c0c;
  opacity: 1;
  transition: opacity 500ms ease;
}
html.v2-loader-running .v2-entry-loader[data-state="revealing"] { opacity: 0; pointer-events: none; }
.v2-loader-artwork {
  position: absolute; inset: 0; visibility: hidden;
  max-height: max(120px, calc(100svh - var(--v2-frame-top, var(--margin)) - var(--v2-frame-bottom, var(--margin)) - var(--header-height)));
}
.v2-entry-loader:is([data-state="playing"], [data-state="revealing"]) .v2-loader-artwork { visibility: visible; }
.v2-loader-anchor {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(210px, 32vw, 360px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.v2-loader-status {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 700px) {
  .v2-loader-anchor { width: min(64vw, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  html.v2-loader-running .v2-entry-loader { display: none; }
}

/* Preview: full-screen intro on plain black, above frame, axes and header (moved to <body> by an inline script). */
html.v2-intro-full.v2-loader-running { overflow: hidden; }
html.v2-intro-full.v2-loader-running .v2-entry-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  transition: opacity 900ms ease !important;
}
html.v2-intro-full .v2-loader-artwork { max-height: none; }
html.v2-intro-full .v2-loader-anchor { width: clamp(150px, 15vw, 240px); }
@media (max-width: 700px) {
  html.v2-intro-full .v2-loader-anchor { width: min(44vw, 180px); }
}

/* ===== v2-desktop-about ===== */
/* Share the revised About content without changing phone or short-window layouts. */
@media (min-width: 701px) and (min-height: 501px), (min-width: 1101px) {

  main[data-page="home"] .about-studio {
    grid-template-columns: 25% minmax(0, 75%);
    grid-template-areas: "label claim" "label body";
    gap: 0;
  }
  main[data-page="home"] .about-studio > .about-content { display: contents; }
  main[data-page="home"] .about-studio .studio-claim {
    grid-area: claim;
    padding-left: 0;
    margin: 0 0 16px;
    color: var(--white);
    font: 700 19px/1.7 var(--mono);
  }
  main[data-page="home"] .about-studio > .about-label { grid-area: label; }
  main[data-page="home"] .about-studio .about-label h3 {
    font: 400 11px/1.5 var(--mono);
    text-transform: uppercase;
    letter-spacing: .055em;
    color: var(--orange);
  }
  main[data-page="home"] .about-studio .about-content > p:not(.studio-claim) {
    grid-area: body;
    max-width: 760px;
    font: 400 16px/1.5 var(--v2-body);
    letter-spacing: 0;
    color: var(--white);
  }

  main[data-page="home"] .about-section > .v2-approach-mobile {
    display: grid;
    grid-template-columns: 25% minmax(0, 75%);
    align-items: start;
    gap: 0;
    padding: 44px 16px;
    border-bottom: 1px solid var(--line);
  }
  main[data-page="home"] .v2-approach-mobile > .v2-eyebrow {
    grid-column: 1;
    padding-left: calc(var(--v2-pad) - 16px);
    padding-right: 24px;
    margin: 0;
  }
  main[data-page="home"] .v2-approach-mobile > .v2-approach-copy {
    grid-column: 2;
    min-width: 0;
    padding-right: 0;
  }
  main[data-page="home"] .v2-approach-mobile .v2-approach-copy > h2 { display: none; }
  main[data-page="home"] .v2-approach-mobile .v2-approach-copy > .v2-approach-mobile-copy {
    display: block;
    max-width: 760px;
    margin: 16px 0 0;
    font: 400 16px/1.5 var(--v2-body);
    letter-spacing: 0;
    color: var(--white);
  }
  main[data-page="home"] .v2-approach-mobile .v2-approach-copy > .v2-approach-intro { margin-top: 0; }

  main[data-page="home"] .v2-approach-mobile > .v2-capabilities {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 25% minmax(0, 75%);
    align-self: stretch;
    align-items: start;
    margin: 44px -16px 0;
    padding: 44px 16px 0;
    border-top: 1px solid var(--line);
  }
  main[data-page="home"] .v2-approach-mobile .v2-services-heading {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 5;
    padding-top: 20px;
    padding-left: calc(var(--v2-pad) - 16px);
    padding-right: 24px;
    margin: 0;
    font: 400 11px/1.5 var(--mono);
    text-transform: uppercase;
    letter-spacing: .055em;
    color: var(--orange);
  }
  main[data-page="home"] .v2-approach-mobile .v2-capabilities > p {
    grid-column: 2;
    min-width: 0;
    margin: 0;
  }

  main[data-page="home"] .awards-list.awards-inline {
    column-count: 2;
    column-gap: 40px;
  }
  main[data-page="home"] .awards-list.awards-inline li {
    margin: 0 0 10px;
    break-inside: avoid;
  }
  main[data-page="home"] .awards-list.awards-inline li:last-child { margin-bottom: 0; }
  main[data-page="home"] .awards-list.awards-inline .award-name {
    display: block;
    font: 700 14px/1.4 var(--mono);
  }
  main[data-page="home"] .awards-list.awards-inline .award-separator,
  main[data-page="home"] .awards-list.awards-inline .award-full { display: none; }
  main[data-page="home"] .awards-list.awards-inline .award-description {
    display: block;
    line-height: 1.4;
  }
  main[data-page="home"] .awards-list.awards-inline .award-compact {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    font: 400 12px/1.4 var(--v2-body);
  }
  main[data-page="home"] .about-content > .client-grid {
    padding-right: calc(var(--v2-pad) - 16px);
  }
}

/* Give the desktop form the same outer breathing room as the section headings. */
@media (min-width: 1001px) and (min-height: 501px), (min-width: 1101px) {
  main:is([data-page="home"], [data-page="archive"]) .contact-body > .static-form {
    padding-right: calc(var(--v2-pad) - 16px);
  }
}

/* v2-features.css — Funzioni V2: form contatti, banner cookie, media 4:5 per telefono, pagina 404.
   Ordine delle sezioni = ordine di caricamento originale: conta per la cascata. */

/* ===== v2-form ===== */
/* Contact form: honeypot and visible submit feedback (Formspree). */
.static-form .form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.static-form { position: relative; }
.static-form[data-state="sent"] .form-status,
.static-form[data-state="error"] .form-status,
.static-form[data-state="sending"] .form-status {
  position: static; width: auto; height: auto; margin: 12px 0 0; padding: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  display: block; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--white);
}
.static-form[data-state="sent"] .form-status { color: var(--orange); }
.static-form[data-state="sending"] .send-button { opacity: .5; cursor: progress; }
/* The reason picker answers clicks/taps on the whole field, not only on its text line. */
@media (min-width: 701px) {
  .static-form .field.reason-field { padding: 0; }
  .static-form .reason-toggle { padding: 9px 36px 9px 12px; }
}
@media (min-width: 701px) and (pointer: coarse) {
  .static-form .reason-toggle { min-height: 44px; }
}

/* ===== v2-consent ===== */
/* Cookie banner (consent.js) */
.cookie-banner { position: fixed; z-index: 60; left: calc(var(--margin) + 16px); right: calc(var(--margin) + 16px); bottom: calc(var(--margin) + 16px); max-width: 560px; margin-left: auto; display: grid; gap: 14px; padding: 16px; background: var(--black); border: 1px solid var(--white); color: var(--white); font: 400 11px/1.6 var(--mono); }
.cookie-banner p { margin: 0; text-transform: none; }
.cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions button { min-height: 40px; padding: 0 18px; border: 1px solid var(--white); background: transparent; color: var(--white); font: inherit; text-transform: uppercase; cursor: pointer; }
.cookie-actions .cookie-accept { background: var(--orange); border-color: var(--orange); color: var(--black); }
.cookie-actions button:hover, .cookie-actions button:focus-visible { background: var(--white); border-color: var(--white); color: var(--black); }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.site-footer .footer-legal a, .site-footer .footer-legal button { display: inline-flex; align-items: center; min-height: 32px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-transform: none; cursor: pointer; text-decoration: none; }
.site-footer .footer-legal a:hover, .site-footer .footer-legal button:hover, .site-footer .footer-legal a:focus-visible, .site-footer .footer-legal button:focus-visible { color: var(--orange); }
@media (max-width: 700px) { .site-footer .footer-legal { gap: 0 20px; margin-top: 6px; } .site-footer .footer-legal a, .site-footer .footer-legal button { min-height: 44px; } .cookie-banner { left: calc(var(--margin) + 8px); right: calc(var(--margin) + 8px); bottom: calc(var(--margin) + 8px); } .cookie-actions button { flex: 1; min-height: 48px; } }

/* ===== v2-media-mobile ===== */
/* Project media with a phone version (4:5): the picture element must not change the image box,
   and on phones the film/cover frame takes the 4:5 shape of the phone files. */
.case-media .media picture { display: contents; }
@media (max-width: 700px) {
  .case-page .case-layout > .case-media.has-mobile-media,
  .case-page[data-case-info] .case-layout > .case-media.has-mobile-media,
  .case-page[data-case-info]:not(.is-info-open) .case-layout > .case-media.has-mobile-media,
  .case-page[data-case-info] .case-moodboard > .case-media.has-mobile-media,
  .case-moodboard > .case-media.has-mobile-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .case-media.has-mobile-media > .project-video { object-fit: cover; }
}
/* Film + photo gallery (moodboard) on phones: the 4:5 film sits on top, photos keep their grid below. */
@media (max-width: 700px) {
  .case-page[data-case-info] > .case-layout:has(> .case-moodboard > .case-media.has-mobile-media),
  .case-page[data-case-info]:is(.is-info-open) > .case-layout:has(> .case-moodboard > .case-media.has-mobile-media) {
    grid-template-rows: none;
  }
  .case-page[data-case-info] .case-layout > .case-moodboard:has(> .case-media.has-mobile-media) {
    height: auto;
    grid-template-rows: auto repeat(2, calc((100vw - 2 * var(--margin)) * .38));
  }
  .case-page[data-case-info] .case-moodboard[data-case-media-layout] > .case-media.has-mobile-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)),
  .case-page[data-case-info] .case-moodboard > .case-media.has-mobile-media:not(:is(.is-fullscreen, :fullscreen, :-webkit-full-screen)) {
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* ===== v2-404 ===== */
/* 404 — no header, same frame and type as the site; an agitated washing-machine drum with steampunk boards. */
/* No frame, axes or grid on this page: it uses the whole screen. */
main[data-page="notfound"] { margin: 0; min-height: 100svh; }
.mz-404 {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
}
.mz-404-main {
  position: relative;
  grid-column: 1 / span 2;
  grid-row: 1;
  padding: 56px 16px 56px 32px;
  max-width: 760px;
}
.mz-404-main .v2-eyebrow { margin-bottom: 22px; }
.mz-404 h1 {
  font: 300 clamp(28px, 3.3vw, 52px) / 1.12 var(--mono);
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: none;
}
/* Lines break only after a slash; the highlighted part never splits. */
.mz-404 h1 span { color: var(--orange); white-space: nowrap; }
.mz-404-text {
  margin-top: 26px;
  max-width: 46ch;
  font: 400 18px / 1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #bdbdbd;
  text-transform: none;
}
.mz-404-actions { display: flex; gap: 12px; margin-top: 34px; }

/* ---- Porthole: glass only, nothing drawn outside it ---- */
.mz-404-drum {
  position: relative;
  grid-column: 3 / span 2;
  grid-row: 1;
  justify-self: center;
  width: min(40vw, 620px, calc(100svh - 140px));
  min-width: 300px;
  aspect-ratio: 1;
  margin: 24px 16px;
}
.mz-drum-svg { display: block; width: 100%; height: 100%; }
.mz-drum-svg * { vector-effect: non-scaling-stroke; }
.mz-ring-glass { fill: none; stroke: var(--white); stroke-width: 1.4; }
.mz-glass-fill { fill: #050505; }
.mz-glow { transform-box: view-box; animation: mz-glow 2.4s ease-in-out infinite, mz-glow-die 10s linear forwards; }
.mz-perf circle { fill: #f8f6f62e; }
.mz-lifters path, .mz-lifters line { fill: #0c0c0c; stroke: #f8f6f655; stroke-width: 1; }

/* Agitation: the drum swings back and forth, water sloshes against it. */
.mz-drum { transform-origin: 300px 300px; transform-box: view-box; animation: mz-agitate 1.3s cubic-bezier(.6, 0, .4, 1) infinite alternate; }
.mz-slosh { transform-origin: 300px 300px; transform-box: view-box; animation: mz-slosh 1.3s cubic-bezier(.6, 0, .4, 1) infinite alternate; }
.mz-slosh-front { animation-delay: -.25s; }
.mz-wave { fill: #f8f6f60f; stroke: #f8f6f6b0; stroke-width: 1; }
.mz-water-front .mz-wave { fill: #eb5b2114; stroke: var(--orange); }
.mz-water-back { animation: mz-wave 2.6s linear infinite; }
.mz-water-front { animation: mz-wave-rev 3.4s linear infinite; opacity: .92; }

/* Boards tumble irregularly, spin and bob in the water. */
.mz-orbit { transform-origin: 300px 300px; transform-box: view-box; transform: rotate(var(--start)); animation: mz-tumble var(--orbit) cubic-bezier(.45, 0, .55, 1) var(--delay) infinite !important; }
.mz-bob { animation: mz-bob var(--bob) ease-in-out infinite alternate !important; }
.mz-spin { transform-box: fill-box; transform-origin: center; animation: mz-spin var(--spin) cubic-bezier(.5, .1, .5, .9) infinite !important; }
.mz-spin-rev { animation-direction: reverse; }

/* Microcontroller boards (UNO R4 Minima-like, ESP32-S3-like): white linework, orange traces and LEDs. */
.pcb-header { fill: #111; stroke: #f8f6f6cc; stroke-width: 1; }
.pcb-pin { fill: none; stroke: #f8f6f6aa; stroke-width: .8; }
.pcb-hole { fill: none; stroke: #f8f6f699; stroke-width: 1; }
.pcb-chip { fill: #141414; stroke: var(--white); stroke-width: 1; }
.pcb-leg { stroke: #f8f6f6bb; stroke-width: 1; }
.pcb-dot { fill: #f8f6f6aa; }
.pcb-trace { fill: none; stroke: var(--orange); stroke-width: 1.2; stroke-linejoin: round; }
.pcb-part { fill: #0c0c0c; stroke: #f8f6f6cc; stroke-width: 1; }
.pcb-part-in { fill: none; stroke: #f8f6f688; stroke-width: 1; }
.pcb-module { fill: #0c0c0c; stroke: var(--white); stroke-width: 1; }
.pcb-shield { fill: #151515; stroke: #f8f6f6aa; stroke-width: 1; }
.pcb-antenna { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.pcb-led { fill: #151515; stroke: #f8f6f666; stroke-width: .8; }
.pcb-rgb { fill: #151515; stroke: #f8f6f6aa; stroke-width: 1; }

/* ---- Alive, then the lights fail (one pass per board from its --t0, all over within 10 s) ----
   Alive: power LEDs on, "L" blinking, TX/RX flickering with data, data pulses on the traces,
   RGB LED breathing, Wi-Fi waves from the antenna.
   From --t0: LEDs weaken, lose their rhythm, stutter, and go out; data and Wi-Fi fade away.
   The boards themselves stay intact. Each light uses its own blink animation (opacity) plus a
   failing animation (colour + glow, then a steady off state). */
.mz-board .pcb-led:is(.led-on, .led-blink, .led-data), .mz-board .led-rgb {
  fill: #ff7a2e; stroke: #ffb27a; filter: drop-shadow(0 0 3px rgba(255, 122, 46, .95));
}
.mz-board .led-on { animation: mz-led-fail 4.4s linear calc(var(--t0) + var(--f)) forwards !important; }
.mz-board .led-blink { animation: mz-blink 1s steps(1, end) infinite, mz-led-fail 4.4s linear calc(var(--t0) + var(--f)) forwards !important; }
.mz-board .led-data { animation: mz-data-led var(--rate) steps(1, end) infinite, mz-led-fail 4.4s linear calc(var(--t0) + var(--f)) forwards !important; }
.mz-board .led-rgb { animation: mz-rgb 2.2s ease-in-out infinite, mz-led-fail 4.4s linear calc(var(--t0) + var(--f)) forwards !important; }
.mz-data { fill: none; stroke: #fff2e6; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 60; stroke-dashoffset: 65;
  animation: mz-data .9s linear calc(var(--k) * -.23s) infinite, mz-signal-fail 3.4s ease-in var(--t0) forwards !important; }
.mz-wifi { fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 0% 50%;
  animation: mz-wifi 1.5s ease-out calc(var(--k) * .22s) infinite !important; }
.mz-wifi-group { animation: mz-signal-fail 3.4s ease-in var(--t0) forwards !important; }

@keyframes mz-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes mz-data-led { 0%, 35% { opacity: 1; } 36%, 55% { opacity: .1; } 56%, 70% { opacity: 1; } 71%, 100% { opacity: .2; } }
@keyframes mz-rgb {
  0%, 100% { fill: #ff7a2e; filter: drop-shadow(0 0 3px rgba(255, 122, 46, .95)); }
  50% { fill: #fff2e6; filter: drop-shadow(0 0 6px rgba(255, 242, 230, .9)); }
}
/* Weakening: dimmer orange, lost rhythm and a few stutters, then off (dark, no glow, steady). */
@keyframes mz-led-fail {
  0% { fill: #ff7a2e; stroke: #ffb27a; filter: drop-shadow(0 0 3px rgba(255, 122, 46, .95)); }
  35% { fill: #c8561f; stroke: #c98a5c; filter: drop-shadow(0 0 2px rgba(255, 122, 46, .55)); }
  48% { opacity: 1; } 50% { opacity: .1; } 53% { opacity: .9; } 57% { opacity: .2; } 60% { opacity: .7; }
  62% { fill: #7a3415; stroke: #8a6a55; filter: drop-shadow(0 0 1px rgba(255, 122, 46, .3)); }
  66% { opacity: .15; } 70% { opacity: .55; } 74% { opacity: .1; } 78% { opacity: .35; }
  84% { fill: #3a1d10; stroke: #5a5048; filter: drop-shadow(0 0 0 rgba(255, 122, 46, 0)); opacity: .25; }
  100% { fill: #151515; stroke: #f8f6f655; filter: drop-shadow(0 0 0 rgba(255, 122, 46, 0)); opacity: 1; }
}
@keyframes mz-data { from { stroke-dashoffset: 65; } to { stroke-dashoffset: 0; } }
@keyframes mz-wifi { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes mz-signal-fail { 0% { opacity: 1; } 40% { opacity: .55; } 55% { opacity: .9; } 70% { opacity: .2; } 80% { opacity: .5; } 100% { opacity: 0; } }
@keyframes mz-glow-die { 60% { opacity: .9; } 100% { opacity: .22; } }
/* (legacy steampunk parts, unused) */
.pcb { fill: #0c0c0c; stroke: var(--white); stroke-width: 1.2; }

.pcb-label { font: 300 7px/1 var(--mono); fill: #f8f6f6b0; letter-spacing: .08em; text-transform: none; }
.mz-bubble { fill: none; stroke: #f8f6f6aa; stroke-width: .8; opacity: 0; transform-box: fill-box; animation: mz-bubble var(--dur) ease-in var(--delay) infinite !important; }

@keyframes mz-agitate { from { transform: rotate(-38deg); } to { transform: rotate(38deg); } }
@keyframes mz-slosh { from { transform: rotate(9deg) translateY(4px); } to { transform: rotate(-9deg) translateY(-4px); } }
@keyframes mz-wave { from { transform: translate(0, 0); } 50% { transform: translate(-300px, -10px); } to { transform: translate(-600px, 0); } }
@keyframes mz-wave-rev { from { transform: translate(-600px, 0); } 50% { transform: translate(-300px, 8px); } to { transform: translate(0, 0); } }
@keyframes mz-tumble {
  0% { transform: rotate(var(--start)); }
  22% { transform: rotate(calc(var(--start) + 150deg)); }
  38% { transform: rotate(calc(var(--start) + 95deg)); }
  64% { transform: rotate(calc(var(--start) + 250deg)); }
  78% { transform: rotate(calc(var(--start) + 205deg)); }
  100% { transform: rotate(calc(var(--start) + 360deg)); }
}
@keyframes mz-spin { to { transform: rotate(360deg); } }
@keyframes mz-bob { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
@keyframes mz-wheel { from { transform: rotate(-120deg); } to { transform: rotate(120deg); } }
@keyframes mz-needle { from { transform: rotate(-110deg); } to { transform: rotate(95deg); } }
@keyframes mz-flicker { 0%, 100% { opacity: 1; } 41% { opacity: .35; } 43% { opacity: 1; } 77% { opacity: .6; } 79% { opacity: 1; } }
@keyframes mz-bubble { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translateY(-190px); } }
@keyframes mz-glow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mz-drum-svg :is(.mz-drum, .mz-slosh, .mz-water-back, .mz-water-front, .mz-orbit, .mz-bob, .mz-spin, .mz-bubble, .mz-glow, .led-on, .led-blink, .led-data, .led-rgb, .mz-data, .mz-wifi, .mz-wifi-group) { animation: none !important; }
  .mz-bubble { opacity: .6; }
}

@media (max-width: 900px) {
  .mz-404 { align-content: center; }
  .mz-404-drum { grid-column: 1 / -1; grid-row: 1; width: min(76vw, 440px); min-width: 0; margin: 36px auto 0; }
  .mz-404-main { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .mz-404-drum { width: min(64vw, 300px); margin-top: 24px; }
  .mz-404-main { padding: 18px 18px 28px; }
  .mz-404-main .v2-eyebrow { margin-bottom: 14px; }
  .mz-404-text { margin-top: 16px; }
  .mz-404-actions { margin-top: 22px; }
  .mz-404-text { font-size: 16px; }
  .mz-404-actions .v2-button { flex: 1 1 100%; }
  .mz-404 h1 { font-size: min(9.6vw, 44px); }
}

/* Brief 2026-11-19 ("sistemazioni sito"): loaded last, overrides earlier sheets. */

/* Global: no text selection (form fields stay editable and selectable). */
html, body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body :is(input, textarea, select, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* Header: the "M." mark replaces the wordmark. */
.site-header .header-logo img.header-brandmark { width: 64px; height: 28px; flex: 0 0 auto; object-fit: contain; object-position: left center; }
@media (max-width: 700px) {
  .site-header .header-logo img.header-brandmark { width: 52px; height: 23px; }
}

/* Global: no fullscreen or enlarge controls anywhere. */
.player-fullscreen, .player-exit-fullscreen, .v2-reel-dialog { display: none !important; }

/* Project page: one horizontal gallery — film first, then photographs, with a peek of the next item. */
.case-page .case-layout > .case-moodboard.case-rail {
  display: flex !important; flex-direction: row; align-items: stretch; gap: 16px;
  padding: 16px; min-width: 0; min-height: 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: none; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.case-page .case-moodboard.case-rail::-webkit-scrollbar { display: none; }
.case-page .case-moodboard.case-rail:focus-visible { outline: 1px solid var(--orange); outline-offset: -2px; }
.case-page .case-moodboard.case-rail > .case-moodboard-photos { display: contents; }
.case-page .case-moodboard.case-rail > .case-media {
  position: relative !important; flex: 0 0 auto; height: 100% !important; min-height: 0; aspect-ratio: 16 / 9 !important;
  width: auto !important; max-width: calc(100% - 140px) !important; inset: auto !important;
  margin: 0; grid-area: auto; scroll-snap-align: start; overflow: hidden; background: var(--black);
}
.case-page .case-moodboard.case-rail > .case-media > :is(.media, .project-video) { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-page .case-moodboard.case-rail > .case-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.case-page .case-moodboard.case-rail .case-photo {
  position: relative !important; flex: 0 0 auto; height: 100% !important; width: auto !important; min-width: 0; margin: 0; padding: 0; border: 0;
  grid-area: auto; scroll-snap-align: start; overflow: hidden;
}
.case-page .case-moodboard.case-rail .case-photo img { position: static !important; display: block; height: 100% !important; width: auto !important; max-width: none !important; object-fit: cover; inset: auto !important; transform: none !important; }
.case-page .case-moodboard.case-rail::after { content: ''; flex: 0 0 1px; }
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .case-page .case-layout > .case-moodboard.case-rail { height: auto !important; min-height: 0; max-height: none !important; align-self: start; align-items: flex-start; }
  .case-page .case-moodboard.case-rail > .case-media,
  .case-page .case-moodboard.case-rail .case-photo { max-width: none !important; height: auto !important; aspect-ratio: 4 / 5 !important; }
  .case-page .case-moodboard.case-rail .case-photo img { width: 100% !important; height: 100% !important; }
  .case-page[data-case-info] > .case-layout:has(> .case-rail) { grid-template-rows: auto; grid-auto-rows: auto; }
}
/* A film without photographs takes the whole gallery. */
.case-page .case-moodboard.case-rail:not(:has(.case-photo)) > .case-media { max-width: 100% !important; }

/* Home — selected projects: the phone gallery on every screen, square arrow top-right, no "View more". */
.v2-mobile-works .v2-card-top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; }
.v2-mobile-works .v2-card-arrow { margin-left: auto; width: 44px; height: 44px; }
.v2-mobile-works .v2-card-bottom { padding-bottom: 4px; }
.v2-rail-controls { display: flex; gap: 8px; }
.v2-rail-step { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--orange); background: var(--orange); color: #fff; cursor: pointer; transition: background .2s, color .2s, opacity .2s !important; }
.v2-rail-step .ui-arrow { width: 18px; height: 18px; flex-basis: 18px; color: inherit; }
.v2-rail-step:disabled { background: transparent; color: var(--orange); opacity: .45; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .v2-rail-step:not(:disabled):hover { background: #fff; border-color: #fff; color: var(--orange); }
}
@media (min-width: 701px) and (min-height: 501px) {
  .v2-mobile-category-heading { padding: 22px var(--v2-pad); }
  .v2-mobile-category-heading h3 { font-size: clamp(26px, 2.2vw, 38px); }
  .v2-mobile-category-rail { gap: 1px; background: var(--line); }
  /* Same card height as before, 16:9 width: the gallery scrolls horizontally (23/11/2026). */
  .v2-mobile-works { --v2-card-h: min(calc(100svh - var(--header-height) - 2 * var(--margin) - 90px), 640px); }
  .v2-mobile-category-rail > .v2-mobile-project { flex: 0 0 min(calc(var(--v2-card-h) * 16 / 9), 100%); border-right: 0; background: var(--black); }
  .v2-mobile-category-rail::after { flex-basis: 0; }
  .v2-mobile-works .v2-work-card { min-height: 0; height: var(--v2-card-h); }
  .v2-mobile-works .v2-card-top { top: 28px; left: var(--v2-pad); right: var(--v2-pad); }
  .v2-mobile-works .v2-card-bottom h4 { font-size: clamp(22px, 1.9vw, 32px); }
  .v2-mobile-works .v2-card-description { max-width: 46ch; }
}
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .v2-rail-step { width: 36px; height: 36px; }
}

/* Home: quick, decisive snap between sections. */
html:has(main[data-page="home"]) { scroll-snap-type: y mandatory; scroll-padding-top: calc(var(--header-height) + var(--margin)); }
main[data-page="home"] :is(.v2-hero, .v2-mobile-category, .v2-archive-callout, .about-section, .contact-section) { scroll-snap-align: start; scroll-snap-stop: always; }
@media (prefers-reduced-motion: reduce) {
  html:has(main[data-page="home"]) { scroll-snap-type: y proximity; }
}

/* Archive callout: same text on desktop and phone (title + button). */
.v2-archive-callout > .v2-eyebrow, .v2-archive-callout > p:last-child { display: none; }
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .v2-archive-callout h2 { position: static; width: auto; height: auto; margin: 0 0 18px; overflow: visible; clip-path: none; white-space: normal; font-size: 24px; line-height: 1.15; }
}

/* Works: no count, no "Category" label; title aligned with the filter, titles with their square buttons. */
.v2-archive-toolbar { min-height: 0; padding-block: 20px; align-items: center; }
.v2-archive-title-group { align-items: center; }
.v2-archive-toolbar h2 { line-height: 1; }
.v2-archive-filter .category-filter > label { display: none; }
.v2-archive-card-heading { align-items: center; }
.v2-archive-card h3 { margin: 0; line-height: 1.2; }
@media (max-width: 700px) {
  .v2-archive-toolbar { display: flex; gap: 16px; padding: 16px var(--v2-pad); }
  .v2-archive-filter { margin-top: 0; flex: 1 1 auto; max-width: 70%; }
  #project-index .v2-archive-filter .category-filter { display: block; width: 100%; }
}
/* Works previews: 16:9 key visual, no zoom; a muted loop dissolves in over it. */
.v2-archive-visual { aspect-ratio: 16 / 9; max-height: none; }
.v2-archive-visual img, .v2-archive-link:hover .v2-archive-visual img { transform: none !important; transition: none !important; }
.v2-archive-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease !important; pointer-events: none; }
.v2-archive-visual.is-playing .v2-archive-video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .v2-archive-video { display: none; } }

/* Buttons: every orange button is the same — tone, type, size — with white text. */
:root { --mz-button-h: 48px; }
body .v2-button.v2-button-solid,
body .cookie-actions .cookie-accept,
body .static-form button.send-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--mz-button-h); height: auto; padding: 0 20px; border: 1px solid var(--orange); border-radius: 0;
  background: var(--orange); color: #fff; font: 400 12px/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s !important;
}
body :is(.v2-button.v2-button-solid, .cookie-actions .cookie-accept, .static-form button.send-button) .ui-arrow { color: inherit; width: 16px; height: 16px; flex: 0 0 16px; }
@media (hover: hover) and (pointer: fine) {
  body :is(.v2-button.v2-button-solid, .cookie-actions .cookie-accept, .static-form button.send-button:not(:disabled)):hover { background: #fff; border-color: #fff; color: var(--orange); }
}
body :is(.v2-button.v2-button-solid, .cookie-actions .cookie-accept, .static-form button.send-button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Cookie choices share the size; "Reject" stays the outline counterpart. */
body .cookie-actions button { min-height: var(--mz-button-h); padding: 0 20px; font: 400 12px/1.2 var(--mono); color: #fff; }
/* Go: outline and inert until the required fields are complete, then filled. */
body .static-form button.send-button { justify-content: center; gap: 10px; min-width: 72px; }
body .static-form button.send-button:disabled { background: transparent; color: #fff; border: 1px solid var(--orange) !important; cursor: not-allowed; opacity: 1; }
body .static-form[data-state="sending"] button.send-button { background: var(--orange); opacity: .6; cursor: progress; }
/* Square orange buttons (cards, galleries) use white icons too. */
.v2-card-arrow, .v2-archive-card-arrow { color: #fff; }
/* Orange bars use white text as well. */
.case-page .case-info-toggle[aria-expanded="true"] { color: #fff; }

/* ───────── Brief 2026-11-20 (second round) ───────── */

/* Form: text stays selectable while typing; the selection is orange with white text, the active field has an orange border. */
::selection { background: transparent; }
body :is(input, textarea)::selection { background: var(--orange); color: #fff; }
body .static-form :is(input.field, textarea.field) { transition: none; }
body .static-form :is(input.field, textarea.field):focus,
body .static-form :is(input.field, textarea.field):focus-visible { border-color: var(--orange) !important; outline: none !important; box-shadow: none !important; }
body .static-form .reason-field:focus-within,
body .static-form .reason-toggle:focus-visible { border-color: var(--orange) !important; outline: none !important; }

/* Project pages: free scrolling, never snapping (desktop and phone). */
html:has(main .case-page), html:has(main .case-page) body { scroll-snap-type: none; }
.case-page, .case-page * { scroll-snap-type: none; scroll-snap-align: none !important; scroll-snap-stop: normal; }

/* Description panel: close control (desktop). */
.case-page .case-copy { position: relative; }
.case-page .case-copy > .case-copy-close {
  position: sticky; top: 0; z-index: 2; align-self: flex-end; flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px; margin: 8px 18px -44px 0; padding: 0; border: 1px solid var(--orange);
  background: var(--orange); color: #fff; cursor: pointer; transition: background .2s, color .2s !important;
}
@media (hover: hover) and (pointer: fine) { .case-page .case-copy > .case-copy-close:hover { background: #fff; border-color: #fff; color: var(--orange); } }
.case-page .case-copy > .case-copy-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.case-page.is-mobile-flow .case-copy > .case-copy-close { display: none; }
/* Phone: the media descriptions link is shown as on desktop. */
.case-page[data-case-info].is-mobile-flow .case-info-bar { grid-template-columns: minmax(0, 1fr) auto; }
.case-page[data-case-info].is-mobile-flow .case-info-bar > .case-info-toggle { grid-column: 1; border-right: 1px solid var(--line); }

/* Desktop menu: aligned with the content blocks below it, not to the frame edges. */
@media (min-width: 701px) {
  .site-header .header-logo { padding-left: var(--v2-pad); }
  .site-header .nav-label { padding-inline: var(--v2-pad) !important; }
}

@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  /* Hero: smaller call to action. */
  body .v2-hero-actions > .v2-button.v2-button-solid { min-height: 38px; padding: 0 14px; gap: 14px; font-size: 10px; }
  body .v2-hero-actions > .v2-button.v2-button-solid .ui-arrow { width: 13px; height: 13px; flex-basis: 13px; }
  /* Project cards: number and arrow higher up. */
  .v2-mobile-works .v2-card-top { top: 10px; left: 14px; right: 10px; }
  /* Project gallery: images 10% larger, free scrolling. */
  .case-page .case-layout > .case-moodboard.case-rail { padding: 8px; gap: 8px; }
  .case-page .case-moodboard.case-rail > .case-media,
  .case-page .case-moodboard.case-rail .case-photo { width: calc(100% - 18px) !important; }
}

/* Home, from About onward only (brief 2026-11-20 rev.): uppercase titles, bold titles vs regular text.
   Same fonts as before; only size, weight, line height and case change. */
main[data-page="home"] #about, main .contact-section#contact {
  --mz-about-size: 16px; --mz-about-lh: 1.5;
}
main[data-page="home"] :is(#about .about-label h3, #about .v2-eyebrow, #about .v2-services-heading),
main[data-page="home"] :is(#about .about-label h3, #about .v2-eyebrow, #about .v2-services-heading) *,
main #contact .contact-body > h3, main #contact .contact-body > h3 * {
  font-weight: 700; text-transform: uppercase; font-size: 12px !important; line-height: 1.4; letter-spacing: .03em;
}
main[data-page="home"] #about .section-head h2, main[data-page="home"] #about .section-head h2 *,
main #contact .section-head h2, main #contact .section-head h2 * { font-weight: 700; text-transform: uppercase; }
/* Sub-labels inside Clients: uppercase, regular. */
main[data-page="home"] #about .client-grid h4,
main[data-page="home"] #about .client-grid h4 * { font-weight: 400; text-transform: uppercase; font-size: 11px !important; line-height: 1.4; letter-spacing: .03em; }
/* Clients and Awards read like the About text: same size, weight and line height (fonts unchanged). */
main[data-page="home"] #about .client-grid :is(ul, li, li *),
main[data-page="home"] #about .awards-list.awards-inline :is(li, .award-name, .award-description, .award-compact, .award-separator) {
  font-size: var(--mz-about-size) !important; font-weight: 400; line-height: var(--mz-about-lh);
}
main[data-page="home"] #about .awards-list.awards-inline .award-compact { white-space: normal; display: block !important; }
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  main[data-page="home"] #about, main .contact-section#contact { --mz-about-size: 15px; }
}

/* Phones: the hero claim in bold — the same Roboto Mono outlines, thickened. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  .v2-hero svg.v2-hero-claim :is(path, rect) { stroke: #eb5b21; stroke-width: .85px; stroke-linejoin: round; paint-order: stroke fill; }
}

/* End of page: the footer is the end — no extra travel and no bounce. */
html, body { overscroll-behavior-y: none; }
/* Home: the last snap position is the very end of the page (contact form + footer), never short of it. */
html:has(main[data-page="home"]) { scroll-padding-bottom: var(--margin); }
main[data-page="home"] .contact-section { scroll-snap-align: none; scroll-snap-stop: normal; }
/* Phones only: Contact is a snap stop too (desktop unchanged). */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
  main[data-page="home"] .contact-section { scroll-snap-align: start !important; scroll-snap-stop: always !important; scroll-margin-top: 0; }
}
main[data-page="home"] .site-footer { scroll-snap-align: end; }
main #contact .contact-intro, main #contact .contact-intro * { font-size: var(--mz-about-size) !important; line-height: var(--mz-about-lh); font-weight: 400; }

/* ───────── Footer (brief "sistemazioni footer", 2026-11-20) ─────────
   One footer on every page: address + VAT in one block, Privacy / Cookie settings
   level with "Get in touch". */
.site-footer .address-block > p { margin: 0; }
.site-footer .address-block > p.orange { text-transform: uppercase; }
.site-footer .address-block > .address-vat { color: var(--white); text-transform: uppercase; font-size: 12px; line-height: 1.6; }
.site-footer .address-block > .address-vat { display: flex; flex-wrap: nowrap; gap: 0 1ch; white-space: nowrap; }
.site-footer .address-block > .address-vat > span { display: inline-block; }
.site-footer .footer-legal-row { margin: 0; }
.site-footer .footer-legal-row .footer-legal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 18px; margin: 0; }
.site-footer .footer-legal-row .footer-legal :is(a, button) { min-height: 0; height: auto; padding: 0; line-height: 20.8px; align-items: flex-start; }

@media (min-width: 701px) {
  /* Desktop: logo artwork, social links and address start on the same line. */
  .site-footer .address { display: flex !important; flex-direction: column; }
  /* MACHINEZERO on the Instagram/LinkedIn row, the address on the YouTube/Pinterest row,
     then VAT separated by the same 8px gap that separates the social rows. */
  .site-footer .address > .address-block { padding: 0 16px; display: grid; align-content: start; row-gap: 8px; }
  .site-footer .address > .footer-legal-row {
    margin-top: auto; height: 105px; padding: 16px; border-top: 1px solid rgb(248 246 246 / 15%);
  }
  .site-footer .footer-logo .footer-brandmark { margin-top: -10px; margin-bottom: 10px; }
}

@media (max-width: 700px) {
  .site-footer { --mz-footer-row: 30px; }
  /* Social links: tighter rows; their text starts level with "MACHINEZERO". */
  .site-footer .socials { gap: 0 !important; grid-auto-rows: var(--mz-footer-row); }
  .site-footer .socials a { min-height: var(--mz-footer-row); height: var(--mz-footer-row); align-items: flex-start; line-height: 19.2px; }
  /* Address block: MACHINEZERO on the Instagram row, the address from the LinkedIn row,
     VAT on the Pinterest row; only the word "VAT" in orange. */
  .site-footer .address > .address-block {
    display: grid; align-content: start; row-gap: 0;
    grid-template-rows: var(--mz-footer-row) calc(2 * var(--mz-footer-row)) auto;
  }
  .site-footer .address-block .address-vat-label { color: var(--orange); }
  .site-footer .address-block > p { line-height: 19.2px; }
  .site-footer .address-block > .address-vat { overflow-wrap: normal; white-space: nowrap; }
  /* Privacy / Cookie settings: tighter, Privacy level with "Get in touch". */
  .site-footer .address > .footer-legal-row {
    grid-area: vat; min-width: 0; height: auto; padding: 20px 12px;
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  }
  .site-footer .footer-legal-row .footer-legal { flex-direction: column; gap: 0 !important; }
}

/* ───────── Brief 2026-11-23 — Part B ───────── */
/* Cookie banner: Reject and Accept share one structure (size, padding, border, type, alignment,
   hover/focus logic); only the colours differ. Other orange buttons are untouched. */
body .cookie-banner .cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
body .cookie-banner .cookie-actions button,
body .cookie-banner .cookie-actions button.cookie-accept {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  flex: 0 0 132px; width: 132px; min-height: var(--mz-button-h, 48px); height: auto; padding: 0 16px;
  border: 1px solid; border-radius: 0; font: 400 12px/1.2 var(--mono); letter-spacing: .02em;
  text-transform: uppercase; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s !important;
}
body .cookie-banner .cookie-actions button[data-consent="denied"] { background: transparent; border-color: #fff; color: #fff; }
body .cookie-banner .cookie-actions button.cookie-accept { background: var(--orange); border-color: var(--orange); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  body .cookie-banner .cookie-actions button[data-consent="denied"]:hover { background: #fff; border-color: #fff; color: var(--black); }
  body .cookie-banner .cookie-actions button.cookie-accept:hover { background: #fff; border-color: #fff; color: var(--orange); }
}
body .cookie-banner .cookie-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  body .cookie-banner .cookie-actions button,
  body .cookie-banner .cookie-actions button.cookie-accept { flex: 1 1 0; width: auto; min-width: 0; }
}

/* Home, phones only: project cards side by side with no black gap (thin divider kept, as on desktop). */
@media (max-width: 700px) {
  .v2-mobile-category-rail { gap: 0; }
}
@media (max-width: 700px) {
  /* Cards touch each other: no gap and no divider. */
  .v2-mobile-category-rail > .v2-mobile-project { border-right: 0; }
}

/* /upload — Video library (editors only, noindex). */
.video-upload { max-width: 1100px; padding: calc(var(--header-height, 72px) + 40px) var(--v2-pad, 24px) 64px; }
.video-upload h1#video-upload-title { position: static !important; width: auto !important; height: auto !important; margin: 0 0 14px; overflow: visible !important; clip: auto; clip-path: none; white-space: normal; font: 700 14px/1.4 var(--mono); text-transform: uppercase; color: var(--orange); }
.video-upload-intro { max-width: 62ch; margin: 0 0 28px; font: 400 16px/1.5 var(--v2-body, Helvetica, Arial, sans-serif); color: var(--white); }
.video-upload-intro strong { font-weight: 700; }
.video-upload-form { display: grid; gap: 16px; }
.video-upload-password { display: grid; gap: 8px; max-width: 360px; }
.video-upload-password span, .video-library-title { font: 400 12px/1.4 var(--mono); text-transform: uppercase; color: #bcbcbc; }
.video-upload input[type="password"], .video-queue-name { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: var(--white); font: 400 14px/1.4 var(--mono); }
.video-upload input:focus { border-color: var(--orange); outline: none; }

.video-drop { position: relative; display: grid; place-items: center; gap: 6px; min-height: 150px; padding: 24px; border: 1px dashed rgb(248 246 246 / 35%); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s !important; }
.video-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.video-drop:hover, .video-drop.is-over { border-color: var(--orange); background: rgb(235 91 33 / 8%); }
.video-drop-title { font: 700 14px/1.3 var(--mono); text-transform: uppercase; color: var(--white); }
.video-drop-hint { font: 400 12px/1.4 var(--mono); color: #bcbcbc; }

.video-queue { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.video-queue:empty { display: none; }
.video-queue-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); }
.video-queue-item.is-active { border-color: var(--orange); }
.video-queue-item.is-done { border-color: rgb(248 246 246 / 40%); }
.video-queue-item.is-error .video-queue-state { color: var(--orange); }
.video-queue-frame { aspect-ratio: 16 / 9; background: #1a1a1a center / cover no-repeat; }
.video-queue-body { display: grid; gap: 6px; min-width: 0; }
.video-queue-meta, .video-queue-state { margin: 0; font: 400 12px/1.4 var(--mono); color: #bcbcbc; overflow-wrap: anywhere; }
.video-queue-state:empty { display: none; }
.video-queue-item.is-done .video-queue-state { color: var(--white); }
.video-queue progress { width: 100%; height: 6px; accent-color: var(--orange); }
.video-queue progress[hidden] { display: none; }
.video-queue-remove { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--white); font: 400 18px/1 var(--mono); cursor: pointer; }
.video-queue-item.is-done .video-queue-remove, .video-queue-item.is-active .video-queue-remove { visibility: hidden; }
.video-upload [data-start] { justify-self: start; }
.video-upload [data-start][hidden] { display: none; }
.video-upload-status { min-height: 1.4em; margin: 0; font: 400 13px/1.4 var(--mono); color: var(--white); }
.video-upload-status.is-error { color: var(--orange); }

.video-library-title { margin: 48px 0 16px; }
.video-library-title span { color: var(--white); }
.video-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; margin: 0; padding: 0; list-style: none; }
.video-card { min-width: 0; }
.video-card-frame { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; border: 1px solid var(--line); }
.video-card.is-new .video-card-frame { border-color: var(--orange); }
.video-card-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-card-noposter { color: #6b6b6b; font: 400 22px/1 var(--mono); }
.video-card-name { margin: 8px 0 2px; font: 400 13px/1.35 var(--v2-body, Helvetica, Arial, sans-serif); color: var(--white); overflow-wrap: anywhere; }
.video-card-meta { margin: 0; font: 400 11px/1.4 var(--mono); color: #9a9a9a; }

@media (max-width: 700px) {
  .video-queue-item { grid-template-columns: 84px minmax(0, 1fr) 32px; gap: 10px; }
  .video-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
