/* KUZURO.METHOD — "retro red" design system (from the Home — retro red mockup)
   Paper #E6E3DD · ink #0D0D0D · Red Inferno #4E0000 · plate #F4F3F0 · Inter Tight + Caveat */
:root {
  --bg: #E6E3DD;
  --ink: #0D0D0D;
  --red: #4E0000;
  --red-back: #2E0000;
  --red-flap: #9A4A4A;
  --plate: #F4F3F0;
  --muted: #2B2B2B;
  --quote: #8A8580;
  --on-red: #F6EEE9;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: -.01em; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; }

/* ───────── layout primitives ───────── */
.wrap { max-width: 1440px; margin: 0 auto; padding-left: 48px; padding-right: 48px; box-sizing: border-box; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 16px; }
.bar8 { height: 8px; background: var(--ink); }
.bar20 { height: 20px; background: var(--ink); }
.lbl { font-size: 15px; line-height: 1.3; }
.lbl b { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.lbl.small { font-size: 13px; line-height: 1.35; }
.hand { font-family: 'Caveat', cursive; }

/* ───────── header (sticky) + side tab ───────── */
:root { --head-h: 84px; }
html { scroll-padding-top: var(--head-h); }
.head-bar { position: sticky; top: 0; z-index: 44; background: var(--bg); transition: box-shadow .3s; }
.head-bar.scrolled { box-shadow: 0 1px 0 rgba(13,13,13,.14); }
.site-head { height: var(--head-h); display: flex; align-items: center; }
.site-head .head-row { width: 100%; align-items: center; }
.head-logo { grid-column: 1 / span 3; display: flex; align-items: center; }
.head-logo img { height: 34px; width: auto; }
.head-nav { grid-column: 5 / span 4; display: flex; justify-content: space-between; gap: 24px; }
/* header links: a red tab rises from below behind the label on hover.
   A light copy of the label (.hl-on) is clipped exactly like the tab, so the words turn light
   line by line as the red passes them, never dark-on-red or light-on-grey. */
.hlink { position: relative; isolation: isolate; }
.hlink-r { text-align: right; }
.hlink::before, .hlink .hl-on { position: absolute; inset: -8px -12px; clip-path: inset(calc(100% - 3px) 0 0 0); transition: clip-path .45s cubic-bezier(.5,0,.2,1); }
.hlink::before { content: ''; z-index: -1; background: var(--red); }
.hlink .hl-on { padding: 8px 12px; color: var(--on-red); clip-path: inset(100% 0 0 0); pointer-events: none; }
.hlink:hover::before, .hlink:focus-visible::before, .hlink:hover .hl-on, .hlink:focus-visible .hl-on { clip-path: inset(0 0 0 0); }

.sidetab { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 40; width: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); }
.sidetab .sheet { position: relative; width: 16px; height: 16px; display: block; }
.sidetab .sq { position: absolute; inset: 0; background: var(--red);
  clip-path: polygon(0 0, 62% 0, 100% 38%, 100% 100%, 0 100%); transition: clip-path .45s cubic-bezier(.5,0,.2,1); }
.sidetab .flap { position: absolute; right: 0; top: 0; width: 6px; height: 6px; background: var(--red-flap);
  clip-path: polygon(0 0, 0 100%, 100% 100%); transform-origin: 0 100%; transition: transform .45s cubic-bezier(.5,0,.2,1); }
.sidetab:hover .sq, .sidetab:focus-visible .sq { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%); }
.sidetab:hover .flap, .sidetab:focus-visible .flap { transform: scale(0); }
.sidetab { transition: color .3s; }
.sidetab:hover, .sidetab:focus-visible { color: var(--on-red); }
/* a red tab slides out from the screen edge on hover; at rest only a 3px sliver shows */
.sidetab::before { content: ''; position: absolute; z-index: -1; top: -6px; bottom: -6px; left: -14px; right: -10px; background: var(--red);
  transform: translateX(calc(-100% + 3px)); transition: transform .45s cubic-bezier(.5,0,.2,1); }
.sidetab:hover::before, .sidetab:focus-visible::before { transform: translateX(0); }
.sidetab .sq { transition: clip-path .45s cubic-bezier(.5,0,.2,1), background-color .3s; }
.sidetab:hover .sq, .sidetab:focus-visible .sq { background: var(--on-red); }
.sidetab .word { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }

/* ───────── hero poster (sticky while the sheet folds) ───────── */
.hero { position: relative; height: 280vh; overflow-x: clip; } /* the tilted sheet must not widen the page */
.hero-stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); min-height: 560px; box-sizing: border-box; display: grid; grid-template-rows: auto 1fr auto;
  padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(20px, 4vh, 56px); }
.big-num { font-weight: 800; font-size: min(232px, 16vw, 17vh); line-height: .74; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.num-word { font-size: min(30px, 2.2vw); font-weight: 400; letter-spacing: -.03em; line-height: .74; }
.hero-object { position: relative; min-height: 260px; margin: clamp(8px, 2vh, 24px) 0; }
.hero-object .shadow-svg, .hero-object .persp { position: absolute; left: 50%; top: 0; width: min(78vw, 100%); height: 100%; transform: translateX(-50%); overflow: visible; }
.hero-object .persp { perspective: 1600px; }
.hero-object #sheetWrap { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hero-object #sheet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero h1 { margin: 0; font-weight: 700; font-size: min(104px, 7.2vw, 8.2vh); line-height: .9; letter-spacing: -.055em; }
.hero .lead { margin: 0; max-width: 400px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ───────── method index + handwritten note ───────── */
.connect { position: relative; height: 170px; }
.connect p { position: absolute; left: 50%; top: 96px; margin: 0; display: flex; align-items: flex-end; gap: 10px; transform: translateX(-50%) rotate(-3deg); transform-origin: 50% 100%; }
.connect span { font-family: 'Caveat', cursive; font-weight: 500; font-size: 52px; line-height: 1; color: var(--red); white-space: nowrap; }

/* ───────── step plates: the red square unfolds into four origami steps ───────── */
.step { padding-bottom: 160px; font-size: 15px; line-height: 1.3; }
.plate { position: relative; aspect-ratio: 12 / 5; background: var(--plate); overflow: hidden; outline: none; }
.plate .zone { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 44px 40px; transform-style: preserve-3d; }
.plate .band { position: relative; width: 100%; aspect-ratio: 4 / 1; perspective: 2400px; transform-style: flat; }
/* flat on purpose: the panels' 3D lives inside .pn1 (preserve-3d), and the text under them stays in plain
   paint order behind it. With .band in 3D too, the quote and the flat panels sat in the same plane and
   the browser z-fought them: flicker while unfolding, hidden text showing through while folding. */
.plate .pn { position: absolute; top: 0; bottom: 0; width: 25%; color: var(--on-red); transform-style: preserve-3d; }
.plate .pn .pn { width: 100%; }
.plate .pn1, .plate .face { background: var(--red); }
.plate .face { position: absolute; inset: 0; box-sizing: border-box; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.plate .back { position: absolute; inset: 0; background: var(--red-back); transform: rotateY(180deg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.plate .pn2 > .back { background: var(--red); } /* lands on the square without a colour flash */
.plate .pn .lbl { position: absolute; left: 18px; top: 16px; }
.plate .pn .lbl.big { font-size: 16px; }
.plate .dgm { position: absolute; left: 20%; right: 20%; top: 38%; height: 40%; display: flex; align-items: center; justify-content: center; }
.plate .dgm svg { width: 100%; height: 100%; display: block; overflow: visible; }
.plate .hand { font-size: 30px; line-height: 1; transform: rotate(-4deg); position: absolute; bottom: 10px; }

/* One sheet, rolled up: pn2 ⊃ pn3 ⊃ pn4, each hinged on its parent's edge.
   Unfold 2 → 3 → 4; fold back 4 → 3 → 2, every panel carrying the ones folded inside it. */
.plate:not(.rtl) .pn .pn { left: 100%; transform-origin: 0 50%; }
.plate:not(.rtl) .face { border-left: 1.5px dashed rgba(255,255,255,.95); }
.plate.rtl .pn .pn { left: -100%; transform-origin: 100% 50%; }
.plate.rtl .face { border-right: 1.5px dashed rgba(255,255,255,.95); }

/* folded layers sit 1px apart so each lands on top of the one it folds onto */
.plate .pn .pn2 { transform: rotateY(-180deg) translateZ(-3px); }
.plate .pn .pn3 { transform: rotateY(-180deg) translateZ(-2px); }
.plate .pn .pn4 { transform: rotateY(-180deg) translateZ(-1px); }
.plate.rtl .pn .pn2 { transform: rotateY(180deg) translateZ(-3px); }
.plate.rtl .pn .pn3 { transform: rotateY(180deg) translateZ(-2px); }
.plate.rtl .pn .pn4 { transform: rotateY(180deg) translateZ(-1px); }
/* fold back: 4 first, then 3 (carrying 4), then 2 (carrying both) */
.plate .pn .pn4 { transition: transform .42s cubic-bezier(.55,0,.45,1) 0s; }
.plate .pn .pn3 { transition: transform .42s cubic-bezier(.55,0,.45,1) .3s; }
.plate .pn .pn2 { transition: transform .42s cubic-bezier(.55,0,.45,1) .6s; }
/* unfold: 2 → 3 → 4 */
.plate .band:hover .pn .pn, .plate:focus-visible .pn .pn, .plate.is-open .pn .pn,
.plate.rtl .band:hover .pn .pn, .plate.rtl:focus-visible .pn .pn, .plate.rtl.is-open .pn .pn { transform: rotateY(0) translateZ(0); }
.plate .band:hover .pn .pn2, .plate:focus-visible .pn .pn2, .plate.is-open .pn .pn2 { transition: transform .55s cubic-bezier(.45,0,.3,1) .05s; }
.plate .band:hover .pn .pn3, .plate:focus-visible .pn .pn3, .plate.is-open .pn .pn3 { transition: transform .55s cubic-bezier(.45,0,.3,1) .5s; }
.plate .band:hover .pn .pn4, .plate:focus-visible .pn .pn4, .plate.is-open .pn .pn4 { transition: transform .55s cubic-bezier(.45,0,.3,1) .95s; }

/* the text under the strip is not faded: the unfolding panels cover it and uncover it on the way back */
/* book cover: the back of panel 2 carries the resting label ("Step Nº01 / The square / *unfold");
   it lies on top of the square and turns over with the first page, revealing step 01 underneath */

/* statement text: quoted, key phrase in Red Inferno, rest in warm grey; labels become captions along the bottom */
.plate .intro { position: absolute; top: 0; margin: 0; width: calc(50% - 18px); font-size: 22px; font-weight: 500; line-height: 1.22; letter-spacing: -.03em;
  color: var(--quote); text-align: justify; text-align-last: left; hyphens: manual; }
.plate .intro .key { color: var(--red); }
.plate .intro .q { margin-left: -.4em; }
.plate:not(.rtl) .intro { left: calc(50% + 18px); }
.plate.rtl .intro { left: .45em; width: calc(50% - 18px - .45em); } /* keep the hanging “ inside the strip, under the panels */
.plate .cap { position: absolute; bottom: 0; }
.plate:not(.rtl) .cap1 { left: calc(25% + 18px); }
.plate:not(.rtl) .cap2 { left: calc(50% + 18px); }
.plate:not(.rtl) .cap3 { right: 0; text-align: right; }
.plate.rtl .cap1 { right: calc(25% + 18px); text-align: right; }
.plate.rtl .cap2 { right: calc(50% + 18px); text-align: right; }
.plate.rtl .cap3 { left: 0; }
.step-foot { padding-top: 20px; }

/* ───────── selected work: marquee of swan windows ───────── */
.marq { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; background: var(--bg); }
.marq .track { display: flex; gap: 2px; width: max-content; will-change: transform; }
.pj { position: relative; display: block; flex: 0 0 auto; aspect-ratio: 4 / 5; background: #DCD8D0; overflow: hidden; }
.marq .pj { width: calc((100vw - 4px) / 3); }
.pj.pj-accent { background: var(--red); }
.pj .win { position: absolute; inset: 0; clip-path: var(--swan); transition: clip-path .9s var(--ease); }
.pj .win img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.pj .crease { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .25s; }
.pj .tag { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: #fff; background: rgba(13,13,13,.6); padding: 3px 7px; opacity: 0; transition: opacity .3s .4s; }
.pj:hover .win, .pj:focus-visible .win, .pj.is-open .win { clip-path: var(--rect); }
.pj:hover .win img, .pj:focus-visible .win img, .pj.is-open .win img { transform: scale(1); }
.pj:hover .crease, .pj:focus-visible .crease, .pj.is-open .crease { opacity: 0; }
.pj:hover .tag, .pj:focus-visible .tag, .pj.is-open .tag { opacity: 1; }
.mqbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 13px/1 'Inter Tight', Arial, sans-serif; text-transform: uppercase; letter-spacing: -.005em; cursor: pointer; }
.mqbtn:hover, .mqbtn:focus-visible { background: var(--ink); color: var(--bg); }

/* ───────── CTA: the line + red swan; hover → the swan unfolds into "Start the project" ───────── */
.fold { position: relative; display: inline-flex; align-items: center; gap: .32em; font-size: min(64px, 4.4vw); line-height: 1; }
.fold, .fold:hover { color: var(--ink); }
.fold .line { font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }
.fold .gap { display: inline-block; width: .931em; height: .96em; }
/* scroll-driven by cta.js: swan facets (svg) → flat square → strip of panels rolling out to the left */
.fold .cta-swan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fold .roll { position: absolute; inset: 0; perspective: 1400px; transform-style: preserve-3d; pointer-events: none; display: none; }
.fold .pnl { position: absolute; display: block; transform-style: preserve-3d; }
.fold .pnl .pnl { top: 0; left: -100%; width: 100%; height: 100%; transform-origin: 100% 50%; transform: rotateY(180deg); }
.fold .pnl .face, .fold .pnl .back { position: absolute; inset: 0; background: var(--red); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fold .pnl .back { background: var(--red-back); transform: rotateY(180deg); }
.fold .pnl1 > .back { background: var(--red); } /* the cover = the sheet the swan became */
.fold .pnl .pnl > .face { box-sizing: border-box; border-right: 1.5px dashed rgba(255,255,255,.95); } /* hinge creases, as on the plates */
.fold .cta-fill { position: absolute; left: 0; right: 0; background: var(--red); visibility: hidden; pointer-events: none; transition: filter .25s; }
.fold .pnl .shade { position: absolute; inset: 0; background: #000; opacity: 0; }
.fold .cta, .fold .cta-txt { position: absolute; top: 50%; color: var(--plate); font-size: .42em; font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; line-height: 1; pointer-events: none; }
.fold .cta { left: 50%; transform: translate(-50%,-50%); visibility: hidden; }
.fold .cta-txt { display: block; text-align: center; transform: translateY(-50%); }
.fold .pnl .face { overflow: hidden; }
.fold.done:hover .cta-fill, .fold.done:focus-visible .cta-fill { filter: brightness(1.3); }
.cta-pin { position: relative; }
.cta-pin .cta-plate { position: sticky; }
.cta-plate { position: relative; aspect-ratio: 12 / 5; background: var(--plate); overflow: hidden; }
.cta-plate .tops { position: absolute; left: 0; right: 0; top: 36px; display: flex; justify-content: space-between; gap: 20px; padding: 0 40px; }
.cta-plate .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* ───────── footer ───────── */
.site-foot { padding-bottom: 40px; }
.foot-cols { row-gap: 32px; padding-top: 28px; }
.foot-cols .lbl { font-size: 14px; line-height: 1.35; }
.foot-base { row-gap: 24px; margin-top: 120px; align-items: end; }
.foot-logo { display: flex; align-items: flex-end; gap: 13px; }
.foot-logo .m { height: 45px; width: auto; }
.foot-logo .w { height: 34px; width: auto; }

/* ───────── projects page & project page ───────── */
.title-xl { margin: 0; font-weight: 700; font-size: min(88px, 6vw); line-height: .9; letter-spacing: -.055em; }
.title-xxl { margin: 0; font-weight: 700; font-size: min(160px, 11vw); line-height: .86; letter-spacing: -.06em; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 100vw; margin-left: calc(50% - 50vw); }
.statement { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--quote); }
.statement .key { color: var(--red); }

/* projects page: tile captions + hover preview overlay */
.pj-cell { background: var(--bg); }
.pj-cap { padding: 14px 20px 28px; }
.has-preview .grid3 .pj:hover .win { clip-path: var(--swan); }
.has-preview .grid3 .pj:hover .win img { transform: scale(1.15); }
.has-preview .grid3 .pj:hover .crease { opacity: 1; }
.has-preview .grid3 .pj:hover .tag { opacity: 0; }
.pv { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.pv-back { position: absolute; inset: 0; background: rgba(230,227,221,.82); opacity: 0; }
.pv-target { position: absolute; left: 48px; right: 48px; top: 10vh; bottom: 12vh; visibility: hidden; }
.pv-fly { position: fixed; overflow: hidden; }
.pv-fly img { width: 100%; height: 100%; object-fit: cover; }
.pv-cap { position: absolute; left: 48px; right: 48px; bottom: 3vh; display: flex; align-items: flex-end; justify-content: space-between; opacity: 0; }
@media (hover: none), (max-width: 900px) { .pv { display: none; } }

/* ───────── responsive (from the mockup's 900px rules) ───────── */
/* ───────── projects index (projects.html) ───────── */
.ix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--plate); padding: 2px 0 0; align-items: start; }
.ix-col { display: flex; flex-direction: column; gap: 2px; }
.ixt { position: relative; display: block; background: #DCD8D0; overflow: hidden; color: var(--ink); }
.ixt.ixt-accent { background: var(--red); }
.ixt .win { position: absolute; inset: 0; clip-path: var(--swan); transition: clip-path .9s var(--ease); }
.ixt .win img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.1s var(--ease); }
.ixt .crease-wrap { position: absolute; inset: 0; transform: translateY(-3%); pointer-events: none; }   /* same lift as the swan (LIFT in projects.html) */
.ixt .crease { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .3s; }
.ixt.is-open .win { clip-path: var(--rect); }
.ixt.is-open .win img { transform: scale(1); }
.ixt.is-open .crease { opacity: 0; }
/* captions: folded = name only, dark; unfolded = name · Nº / typology · location · year, light on a soft shade */
.ixt .cap-open, .ixt .cap-fold { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px; font-size: 12.5px; line-height: 1.3; letter-spacing: -.01em; pointer-events: none; transition: opacity .35s; }
.ixt b { font-weight: 700; text-transform: uppercase; }
.ixt .cap-open { color: #fff; background: linear-gradient(to top, rgba(13,13,13,.55), rgba(13,13,13,0)); padding-top: 48px; opacity: 0; }
.ixt .cap-open .r { display: flex; justify-content: space-between; gap: 12px; }
.ixt .cap-fold { opacity: 1; }
.ixt.ixt-accent .cap-fold { color: var(--on-red); }
.ixt.is-open .cap-open { opacity: 1; transition-delay: .45s; }
.ixt.is-open .cap-fold { opacity: 0; transition-delay: 0s; }
.page-index .site-foot { margin-top: 0; }
.ix-hint { padding-top: 28px; padding-bottom: 72px; font-size: 13px; }
.page-index .head-nav { grid-column: 9 / span 4; }   /* Index · Back sit to the right, as in the mockup */

@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  :root { --head-h: 68px; }
  .site-head .head-row { display: flex; justify-content: space-between; }
  .head-nav { gap: 20px; }
  .head-logo img { height: 26px; }
  .head-nav .lbl { font-size: 11px; line-height: 1.25; }
  .hlink::before, .hlink .hl-on { inset: -5px -7px; }
  .hlink .hl-on { padding: 5px 7px; }
  .stack { grid-template-columns: minmax(0, 1fr) !important; }
  .stack > * { grid-column: 1 / -1 !important; }
  .hide-m { display: none !important; }
  .wrap-m { flex-wrap: wrap !important; }
  .connect p { left: 0; top: 40px; transform: rotate(-3deg); }
  .connect span { font-size: 38px; white-space: normal; }
  .sidetab { top: auto; bottom: 16px; left: 16px; transform: none; width: auto; flex-direction: row; gap: 8px; padding: 10px 12px; background: var(--bg); min-height: 44px; box-sizing: border-box; }
  .sidetab .word { writing-mode: horizontal-tb; transform: none; }
  .sidetab::before { display: none; }
  .sidetab:hover, .sidetab:focus-visible { color: var(--ink); }
  .sidetab:hover .sq, .sidetab:focus-visible .sq { background: var(--red); }
  .hero h1 { font-size: 34px; }
  .big-num { font-size: 21vw; letter-spacing: -.02em; } /* the desktop -.07em makes the heavy digits touch at this size */
  .hero .lead { font-size: 13px; }
  .hero-object { min-height: 180px; }
  .num-word { font-size: 15px; }
  /* plates: no 3D on small screens — the four steps sit in a 2×2 grid under the text */
  .plate { aspect-ratio: auto; }
  .plate .zone { position: relative; top: auto; transform: none; padding: 20px; }
  .plate .band { aspect-ratio: auto; display: block; perspective: 1200px; }
  /* text block on phones: a two-column meta row, a dashed crease, then the quote, then the panels */
  .plate .band { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .plate .intro, .plate .cap { position: static; display: block; width: auto; text-align: left !important; }
  .plate .cap { font-size: 12px; line-height: 1.3; }
  .plate .cap1 { order: 1; grid-column: 1; }
  .plate .cap2 { order: 2; grid-column: 2; }
  .plate .cap3 { display: none; }                       /* "Fig. 0X · Hover to unfold" — no hover on phones */
  .plate .intro { order: 3; grid-column: 1 / -1; margin: 14px 0 20px; padding: 14px 0 0 .42em; border-top: 1.5px dashed rgba(78,0,0,.35); font-size: 18px; line-height: 1.28; }
  .plate.rtl .intro { width: auto; left: auto; }
  .plate .pn1 { order: 4; grid-column: 1 / -1; }
  .plate .pn1 { position: relative !important; left: auto !important; top: auto; bottom: auto; width: calc(50% - 1px) !important; aspect-ratio: 1; margin-bottom: calc(50% + 1px); }
  /* phones: the same sheet unfolds as a 2×2 square, following a path right → down → left:
     01 top-left → 02 opens to the right → 03 opens downwards under 02 → 04 opens to the left.
     It opens when the panels scroll into view (.is-open, set in index.html) and folds back when they leave. */
  .plate .pn .pn { position: absolute; bottom: auto; width: 100% !important; height: 100%; }
  .plate .pn .pn2 { left: calc(100% + 2px) !important; top: 0; transform-origin: -1px 50% !important; transform: rotateY(-180deg) translateZ(-3px) !important; }
  .plate .pn .pn3 { left: 0 !important; top: calc(100% + 2px); transform-origin: 50% -1px !important; transform: rotateX(180deg) translateZ(-2px) !important; }
  .plate .pn .pn4 { left: calc(-100% - 2px) !important; top: 0; transform-origin: calc(100% + 1px) 50% !important; transform: rotateY(180deg) translateZ(-1px) !important; }
  .plate.is-open .pn .pn { transform: none !important; }
  /* phones: strictly one panel at a time (each turn ends before the next starts), both ways, so a panel
     never turns while the one carrying it is still moving (that showed mirrored / upside-down faces).
     !important so desktop :hover timings (narrow desktop windows) can't interfere. ≈1.2s each way. */
  .plate .pn .pn4 { transition: transform .38s cubic-bezier(.5,0,.4,1) 0s !important; }
  .plate .pn .pn3 { transition: transform .38s cubic-bezier(.5,0,.4,1) .4s !important; }
  .plate .pn .pn2 { transition: transform .38s cubic-bezier(.5,0,.4,1) .8s !important; }
  .plate.is-open .pn .pn2 { transition: transform .38s cubic-bezier(.5,0,.4,1) 0s !important; }
  .plate.is-open .pn .pn3 { transition: transform .38s cubic-bezier(.5,0,.4,1) .4s !important; }
  .plate.is-open .pn .pn4 { transition: transform .38s cubic-bezier(.5,0,.4,1) .8s !important; }
  .plate .pn .hand { font-size: 22px; bottom: 6px; }
  .plate .face { border: 0 !important; }
  .marq .pj { width: 72vw; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .cta-plate { aspect-ratio: 4 / 5; }
  .cta-plate .tops { flex-wrap: wrap; padding: 0 20px; top: 20px; }
  .fold { font-size: 7.2vw; }
  .plate .dgm { top: 50%; height: 40%; left: 22%; right: 22%; }
  /* red panels are ~170px squares on phones: smaller labels so title + subtitle fit above the diagram */
  .plate .pn .lbl { left: 10px; top: 9px; right: 8px; font-size: 11px; line-height: 1.25; }
  .plate .pn .lbl.big { font-size: 12.5px; }
  /* section labels (Site / Climate…, Brief & site…, Gallery…, Step Nº04…, 01 / 03): 30% smaller than desktop */
  #method .lbl, .step .lbl:not(.pn .lbl), #work .lbl { font-size: 10.5px !important; line-height: 1.3; }
  #method .lbl b, .step .lbl:not(.pn .lbl) b, #work .lbl b { margin-bottom: 1px; }
  /* the quotes in steps 01–03 */
  .plate .intro { font-size: 15.5px !important; line-height: 1.3 !important; }
  .ixt .cap-open, .ixt .cap-fold { font-size: 10.5px; padding: 10px 10px 9px; }
  .ixt .cap-open { padding-top: 32px; }
  .ixt .cap-open .r { gap: 6px; }
  /* tighter vertical rhythm on phones: less scrolling between sections */
  .hero { height: 200vh; }
  #method { padding-top: 24px !important; padding-bottom: 48px !important; }
  #method > .wrap-m { padding-top: 16px !important; }
  .connect { height: 110px; }
  .connect p { top: 24px; }
  .step { padding-bottom: 56px; }
  .step-foot { padding-top: 12px; }
  #work { padding-bottom: 56px !important; }
  #work > .g12 { padding: 12px 0 24px !important; }
  .cta-pin .cta-plate { position: relative; aspect-ratio: 5 / 4; }
  .foot-cols { row-gap: 20px; padding-top: 20px; }
  .foot-base { margin-top: 48px; }
  main.wrap { padding-top: 32px !important; padding-bottom: 56px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
