/* ==========================================================================
   IDEA B — Tracing-paper cover (v2: crafted paper)
   Four folders — Projects, About, Services, Contact — stacked like real file
   folders (burgundy → browns → cream), their tabs always visible on top.
   A sheet of tracing paper printed with the logotype lies over the folders.
   Hover (laptop) or tap (phone) slides it away; the folders fan open.
   One variable, --o (0 closed → 1 open), drives every moving part.
   ========================================================================== */

:root {
  /* Creased, slightly crumpled paper: a lit relief map, blended soft-light over the colour */
  --crumple: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='620'><filter id='c' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0065 .0085' numOctaves='6' seed='17' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23ffffff' surfaceScale='7.5' diffuseConstant='.7'><feDistantLight azimuth='235' elevation='47'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>");
  --crumple-fine: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='c' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.017' numOctaves='4' seed='5' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23ffffff' surfaceScale='2.8' diffuseConstant='.72'><feDistantLight azimuth='225' elevation='48'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>");
}

/* ---------- The home screen: dark ground, the archive centred, a minimal frame ---------- */
.hero--tp {
  --night: #1b1312;   /* the identity Brown taken to night — never pure black */
  position: relative; min-height: 100svh; overflow-x: clip;
  display: grid; align-items: center;
  padding: calc(64px + clamp(3.25rem, 8.5vh, 6rem)) 0 clamp(4rem, 10vh, 6.5rem);
  background: var(--night); color: var(--cream);
}
.hero--tp::before { /* a whisper of grain on the dark ground */
  content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.35; mix-blend-mode: screen; pointer-events: none;
}
.tp-wrap { position: relative; width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }

/* Four corners: small, quiet, aligned to the page edges */
.tp-corner {
  position: absolute; z-index: 2; display: flex; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: flex-start;
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.12em; line-height: 1.55;
  text-transform: uppercase; color: var(--on-dark-muted);
}
.tp-corner b { display: block; color: var(--cream); font-weight: 500; }
.tp-corner span, .tp-corner a { display: block; }
.tp-corner a { text-decoration: none; }
.tp-corner a:hover { color: var(--cream); }
.tp-corner--tl { top: calc(64px + clamp(1.25rem, 3vh, 2rem)); left: var(--gutter); }
.tp-corner--tr { top: calc(64px + clamp(1.25rem, 3vh, 2rem)); right: var(--gutter); }
.tp-corner--bl { bottom: clamp(1.5rem, 4vh, 2.5rem); left: var(--gutter); align-items: center; gap: 0.9rem; }
.tp-corner--br { bottom: clamp(1.5rem, 4vh, 2.5rem); right: var(--gutter); text-align: right; }
.tp-corner__yr { font-family: var(--font-mono); letter-spacing: 0.04em; text-align: right; color: var(--cream); }
.tp-corner--bl .ar { font-size: 1.7rem; line-height: 1; color: var(--kraft); text-transform: none; letter-spacing: 0; }
/* On dark, the tracing-paper hint and shadows need a touch more presence */
.hero--tp .tp__shadow { background: rgb(0 0 0 / 0.45); }
.hero--tp .tpf { filter: drop-shadow(0 -3px 5px rgb(0 0 0 / 0.35)) drop-shadow(0 -10px 16px rgb(0 0 0 / 0.25)); }

@media (max-width: 760px) {
  .hero--tp { padding: calc(56px + 5.5rem) 0 calc(72px + 6.5rem); align-items: start; }
  .tp-corner__more { display: none; }
  .tp-corner--tl { top: calc(56px + 1.1rem); }
  .tp-corner--tr { top: calc(56px + 1.1rem); }
  .tp-corner--bl, .tp-corner--br { bottom: calc(72px + env(safe-area-inset-bottom) + 1.2rem); }
  .tp-corner--bl .ar { font-size: 1.4rem; }
  .tp-corner--bl p span { display: none; } /* keep the two bottom corners apart */
  .tp-corner--br a { word-break: break-all; }
}

/* .tp = the whole collage (hover/tap target, holds --o); .tp__stage = the folders + vellum */
.tp {
  --o: 0;
  --tab: clamp(46px, 3.4vw, 54px);              /* tab height */
  --step-c: 12px;                               /* closed: folders stacked, tabs just staggered */
  --step-o: clamp(64px, 9.2vh, 94px);           /* open: one band per folder (5 folders) */
  --veil-top: calc(var(--tab) + 4 * var(--step-c) + 10px); /* the vellum starts below the tabs */
  position: relative; height: clamp(520px, 70vh, 720px);
}
.tp.is-open { --o: 1; }
.tp__stage {
  position: absolute; z-index: 2; left: 13%; top: 5%; width: 69%; height: 90%;
  overflow: clip; overflow-clip-margin: 18px;
}

/* ---------- The folders ------------------------------------------------- */
.tp__folders { position: absolute; inset: 0; }
.tpf {
  --k: 0; --c: var(--burgundy); --ink-c: var(--cream); --lift: 0px;
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--tab) + var(--k) * var(--step-c));
  display: block; color: var(--ink-c); text-decoration: none;
  filter: drop-shadow(0 -3px 4px rgb(42 18 15 / 0.22)) drop-shadow(0 -10px 14px rgb(42 18 15 / 0.14));
  transform: translateY(calc(var(--k) * (var(--step-o) - var(--step-c)) * var(--o) - var(--lift)));
  transition: transform 0.85s var(--ease-drawer);
  transition-delay: calc(var(--o) * var(--k) * 0.05s);
}
/* Back → front: Burgundy, Green, Brown, Cream (paper) — and Contact in silver at the front */
.tpf:nth-child(1) { --k: 0; --c: var(--burgundy); --ink-c: var(--cream); --tab-x: 0%; }
.tpf:nth-child(2) { --k: 1; --c: var(--olive);    --ink-c: var(--cream); --tab-x: 18%; }
.tpf:nth-child(3) { --k: 2; --c: var(--brown);    --ink-c: var(--cream); --tab-x: 36%; }
.tpf:nth-child(4) { --k: 3; --c: var(--cream);    --ink-c: var(--brown); --tab-x: 54%; }
.tpf:nth-child(5) { --k: 4; --c: #b4b8bd;         --ink-c: var(--brown); --tab-x: 72%; } /* silver — real metal, see below */
.tp.is-open .tpf:hover, .tp.is-open .tpf:focus-visible { --lift: 12px; transition-delay: 0s; transition-duration: 0.45s; }

/* Paper: colour + creases (soft-light) + fibres (multiply) + darker, aged edges */
.tpf__tab, .tpf__body {
  background-color: var(--c);
  background-image: var(--crumple), var(--grain);   /* creases + fine isotropic grain (no directional fibres) */
  background-size: 900px 620px, 200px 200px;
  background-blend-mode: soft-light, multiply;
}
.tpf__body {
  position: absolute; inset: 0; border-radius: 3px 8px 0 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05), inset 0 0 80px rgb(30 12 5 / 0.38), inset 0 14px 18px -12px rgb(255 255 255 / 0.12);
}
/* A soft vertical fold, slightly off-centre */
.tpf__body::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 61%; width: 40px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.07) 45%, rgb(0 0 0 / 0.08) 55%, transparent);
}

/* Tab: rounded top, curved shoulders flaring into the folder edge */
.tpf__tab {
  position: absolute; bottom: calc(100% - 2px); left: var(--tab-x); height: var(--tab); min-width: min(210px, 19%);
  padding: 0 1.7rem; display: flex; align-items: center; gap: 0.75rem; white-space: nowrap;
  border-radius: 16px 16px 0 0;
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 0.95rem + 0.7vw, 1.65rem); letter-spacing: 0.01em;
}
.tpf__tab::before, .tpf__tab::after {
  content: ""; position: absolute; bottom: 0; width: 16px; height: 16px;
  background: inherit; background-size: inherit; background-blend-mode: inherit;
}
.tpf__tab::before { left: -15px; -webkit-mask: radial-gradient(circle at 0 0, transparent 15.5px, #000 16px); mask: radial-gradient(circle at 0 0, transparent 15.5px, #000 16px); }
.tpf__tab::after { right: -15px; -webkit-mask: radial-gradient(circle at 100% 0, transparent 15.5px, #000 16px); mask: radial-gradient(circle at 100% 0, transparent 15.5px, #000 16px); }
.tpf:nth-child(1) .tpf__tab::before { display: none; } /* flush with the folder's left edge */
.tpf__tab .n { font-family: var(--font-mono); font-style: normal; font-size: 0.6875rem; letter-spacing: 0.04em; opacity: 0.7; }
.tpf__tab .go { margin-left: auto; font-family: var(--font-mono); font-style: normal; font-size: 0.875rem; transition: transform var(--dur-2) var(--ease-paper); }
.tpf:hover .go, .tpf:focus-visible .go { transform: translateX(4px); }
.tpf:focus-visible { outline: none; }
.tpf:focus-visible .tpf__tab { outline: 2px solid currentColor; outline-offset: -7px; }

/* ---------- What pokes out of each folder once it opens ----------------- */
.tpf__peek {
  position: absolute; top: 12px; left: var(--peek-x, 44%); right: var(--peek-r, auto);
  display: flex; gap: clamp(0.6rem, 1.6vw, 1.4rem); align-items: flex-start; pointer-events: none;
  transform: translateY(calc((1 - var(--o)) * 22px)); opacity: var(--o);
  transition: transform 0.9s var(--ease-paper), opacity 0.5s calc(var(--o) * 0.2s); /* tucked away (and invisible) until the archive opens */
}
.tpf__hint {
  position: absolute; top: 16px; left: 1.4rem; font-family: var(--font-mono); font-size: 0.75rem;
  opacity: var(--o); transition: opacity 0.6s 0.25s; /* full cream: AA on green */
}

/* Aged photo prints: creased card, warm faded photo, darker vignette, grain */
.print {
  --pad: clamp(6px, 0.55vw, 9px); --w: clamp(96px, 8vw, 140px);
  position: relative; width: var(--w); flex: none;
  padding: var(--pad) var(--pad) calc(var(--pad) * 2.8);
  background-color: #efe6d1; background-image: var(--crumple-fine), var(--grain);
  background-size: 420px 420px, 200px 200px; background-blend-mode: soft-light, multiply;
  border-radius: 2px; transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 1px 1px rgb(42 18 15 / 0.25), 0 9px 14px -6px rgb(42 18 15 / 0.5), inset 0 0 14px rgb(110 80 40 / 0.18);
}
.print img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; filter: sepia(0.34) saturate(0.78) contrast(0.93) brightness(0.96); }
.print::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); top: var(--pad); aspect-ratio: 1 / 1.05; pointer-events: none;
  box-shadow: inset 0 0 18px rgb(40 18 6 / 0.55); background-image: var(--grain); background-size: 160px; mix-blend-mode: multiply; opacity: 0.9;
}
.print .clip { left: 22%; top: -24px; }
.print .tape { width: 64%; left: 18%; top: -0.7em; }
.tpf__peek .print:nth-child(1) { --tilt: -5deg; }
.tpf__peek .print:nth-child(2) { --tilt: 3deg; margin-top: 10px; }
.tpf__peek .print:nth-child(3) { --tilt: -2deg; margin-top: 3px; }
/* The embossed card, as a thick creased card */
.tpf__card {
  width: clamp(84px, 7vw, 122px); aspect-ratio: 1; object-fit: cover; flex: none; transform: rotate(5deg); border-radius: 2px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 9px 14px -6px rgb(0 0 0 / 0.55); filter: saturate(0.9) contrast(0.95);
}
.tpf__slip { width: clamp(230px, 24vw, 340px); --tilt: -2deg; margin-top: -4px; }
.tpf__slip .sheet__paper { padding: 0.8rem 1rem 1.3rem; font-size: 0.8125rem; line-height: 1.6; background-image: var(--crumple-fine), var(--grain); background-size: 420px 420px, 200px 200px; background-blend-mode: soft-light, multiply; }

/* Front folder (Contact): silver, a script title, the studio stamp */
.tpf__face {
  position: absolute; left: clamp(1.2rem, 2.4vw, 2.2rem); right: clamp(1rem, 2vw, 2rem); top: clamp(0.9rem, 1.8vw, 1.4rem);
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-5);
  opacity: calc(0.3 + var(--o) * 0.7); transition: opacity 0.6s;
}
.tpf__face .script { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); color: var(--burgundy); line-height: 1; }
.tpf__face .mono { font-family: var(--font-type); font-size: 0.875rem; color: var(--ink); margin-top: 0.5rem; line-height: 1.6; }
.tpf__face .stamp { position: static; flex: none; --tilt: 12deg; }

/* ---------- The tracing paper ------------------------------------------- */
/* It covers the folders only (not the strip of tabs), and leaves entirely when opened */
.tp__cover {
  position: absolute; inset: var(--veil-top) 0 0 0; z-index: 10; pointer-events: none;
  transform-origin: 100% 30%;
  transform: translateX(calc(var(--o) * 112%)) translateY(calc(var(--o) * -2%)) rotate(calc(-0.4deg + var(--o) * 6deg));
  transition: transform 0.95s var(--ease-drawer);
}
.tp__shadow {
  position: absolute; inset: 2% 1% 0 1%; background: rgb(42 18 15 / 0.2); filter: blur(16px);
  transform: translateY(calc(6px + var(--o) * 14px)); transition: transform 0.95s var(--ease-drawer);
}
.tp__sheet {
  position: absolute; inset: 0; width: 100%; pointer-events: auto; cursor: pointer; border: 0; color: var(--burgundy);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1.5rem 2rem clamp(1.2rem, 3vh, 2rem);
  /* v3: much more transparent — the folders and documents read clearly through it,
     while a light frost, fibres and a soft glow keep it a real sheet of vellum */
  background:
    radial-gradient(120% 90% at 28% 18%, rgb(255 255 255 / 0.2), transparent 62%),
    linear-gradient(rgb(246 243 235 / 0.26), rgb(246 243 235 / 0.3));
  -webkit-backdrop-filter: blur(1.4px) saturate(0.88) brightness(1.06);
  backdrop-filter: blur(1.4px) saturate(0.88) brightness(1.06);
  box-shadow: inset 0 0 28px rgb(255 255 255 / 0.28), inset 0 0 2px rgb(255 255 255 / 0.5);
}
.tp__sheet::before { /* fibres, a few crinkles and a faint fold of the vellum */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(98deg, transparent 47%, rgb(255 255 255 / 0.18) 49.6%, rgb(0 0 0 / 0.04) 50.4%, transparent 53%), var(--crumple), var(--grain);
  background-size: 100% 100%, 900px 620px, 200px 200px; background-blend-mode: normal, normal, multiply;
  opacity: 0.34; mix-blend-mode: soft-light;
}
.tp__sheet:focus-visible { outline: 2px solid var(--burgundy); outline-offset: -8px; }
.tp__cue {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 1.2rem; font-family: var(--font-mono);
  border: 1px solid rgb(91 14 25 / 0.4); border-radius: var(--r-pill); font-size: 0.75rem; color: var(--burgundy); transition: opacity 0.4s;
}
.tp__cue .on-touch { display: none; }
@media (hover: none), (pointer: coarse) { .tp__cue .on-touch { display: inline; } .tp__cue .on-fine { display: none; } }
.tp:not(.is-open) .tp__sheet:hover .tp__cue { background: rgb(91 14 25 / 0.06); }

/* ---------- Mobile: tap the sheet; folders open into taller bands -------- */
@media (max-width: 760px) {
  .tp { --tab: 46px; --step-c: 10px; --step-o: clamp(60px, 8.4vh, 78px); height: clamp(560px, 72vh, 640px); }
  .tpf__tab { min-width: 0; width: 26%; padding: 0 0.4rem; justify-content: center; font-size: 1.15rem; border-radius: 12px 12px 0 0; }
  .tpf__tab .n, .tpf__tab .go { display: none; }
  .print { --w: 24vw; }
  .tpf__peek .print:nth-child(3) { display: none; }
  .tpf:nth-child(2) .tpf__peek { left: 30% !important; } /* keep the card inside the folder */
  .tpf__slip { width: 60vw; }
  .tpf__hint { display: none; }
  .tpf__face { flex-direction: column; gap: 0.2rem; left: 1rem; }
  .tpf__face .stamp { display: none; }
}

/* ---------- Reduced motion: no movement — the sheet already rests aside --- */
@media (prefers-reduced-motion: reduce) {
  .tpf, .tp__cover, .tp__shadow, .tpf__peek { transition: none !important; }
}

/* ======================================================================
   Silver folder & chrome details
   ====================================================================== */
/* Silver (Contact, front): real metal, not paper — brushed steel, two specular
   sheens, a curved top highlight. The glint travels when you hover it. */
:root {
  --brushed: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='320'><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0032 1.1' numOctaves='3' seed='9' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0' intercept='.6'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
}
.tpf:nth-child(5) .tpf__tab, .tpf:nth-child(5) .tpf__body {
  background-color: #b4b8bd;
  background-image:
    linear-gradient(104deg, rgb(255 255 255 / 0) 6%, rgb(255 255 255 / 0.72) 17%, rgb(255 255 255 / 0.05) 28%, rgb(18 22 28 / 0.24) 44%, rgb(255 255 255 / 0.58) 58%, rgb(255 255 255 / 0) 70%, rgb(18 22 28 / 0.16) 86%, rgb(255 255 255 / 0.3) 96%),
    linear-gradient(180deg, rgb(255 255 255 / 0.5) 0%, rgb(255 255 255 / 0) 20%, rgb(0 0 0 / 0.1) 72%, rgb(255 255 255 / 0.14) 100%),
    var(--brushed);
  background-size: 170% 100%, 100% 100%, 640px 320px;
  background-position: 0% 0, 0 0, 0 0;
  background-blend-mode: normal, normal, overlay;
  transition: background-position 1.2s var(--ease-paper);
}
.tpf:nth-child(5):hover .tpf__body, .tpf:nth-child(5):hover .tpf__tab { background-position: 100% 0, 0 0, 0 0; }
.tpf:nth-child(5) .tpf__body {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 0 0 1px rgb(255 255 255 / 0.35),
    inset 0 -14px 28px -14px rgb(0 0 0 / 0.4), inset 0 0 50px rgb(28 34 42 / 0.22);
}
.tpf:nth-child(5) .tpf__body::after { display: none; } /* metal has no paper fold */
.tpf:nth-child(5) .tpf__face .mono { color: #22201f; }

/* Chrome eyelet on every tab */
.rivet {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0 14%, #dfe2e5 26%, #9aa0a7 58%, #555a61 100%);
  box-shadow: 0 1px 1.5px rgb(0 0 0 / 0.45), inset 0 0 0 2.5px rgb(255 255 255 / 0.18);
  position: relative;
}
.rivet::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgb(20 12 10 / 0.55); box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.6); }

/* Chrome binder clip (Services slip) */
.binder { position: absolute; width: 44px; top: -30px; right: 18%; z-index: 3; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.4)); }

/* Clients card: engraved logos on a small creased card */
.tpf__logos {
  display: grid; grid-template-columns: repeat(3, auto); align-items: center; gap: 0.9rem 1.4rem; padding: 0.8rem 1.1rem 1rem;
  background-color: var(--sheet); background-image: var(--crumple-fine), var(--grain); background-size: 420px 420px, 200px 200px; background-blend-mode: soft-light, multiply;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.25), 0 9px 14px -6px rgb(0 0 0 / 0.45), inset 0 0 18px rgb(110 80 40 / 0.2);
  transform: rotate(-2deg); border-radius: 2px;
}
.tpf__logos .m { display: block; height: 16px; aspect-ratio: var(--ar); background: var(--brown); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

@media (max-width: 760px) {
  .tp { --step-c: 8px; }
  .tpf__tab { width: 20.2%; padding: 0 0.2rem; gap: 0.3rem; font-size: 1.02rem; border-radius: 11px 11px 0 0; }
  .tpf:nth-child(2) { --tab-x: 19.95%; } .tpf:nth-child(3) { --tab-x: 39.9%; } .tpf:nth-child(4) { --tab-x: 59.85%; } .tpf:nth-child(5) { --tab-x: 79.8%; }
  .tpf:nth-child(4) .tpf__tab::after { display: block; }
  .tpf:nth-child(5) .tpf__tab::after { display: none; } /* flush with the right edge */
  .rivet { width: 7px; height: 7px; }
  .rivet::after { inset: 2px; }
  .tpf__logos { gap: 0.6rem 0.9rem; padding: 0.6rem 0.8rem 0.8rem; }
  .tpf__logos .m { height: 12px; }
  .tpf:nth-child(4) .tpf__peek { left: 6% !important; } /* logo card clear of the Contact tab */
  .binder { width: 34px; top: -24px; }
}
/* Nav call to action stays visible on the dark home screen */
.nav.is-dark .nav__cta { box-shadow: inset 0 0 0 1px rgb(234 231 211 / 0.4); }

/* ======================================================================
   v3 · THE COLLAGE (after the Sednaoui reference, in Studiomaleya's terms)
   Layers, bottom → top:
   1 .tp__back   papers on the desk — kraft, warm grey, cream, a vellum offcut
   2 .tp__stage  the archive: folders under the tracing paper
   3 .tp__front  prints, a foil-stamped card, the vertical word, the italic line,
                 and the dual logo printed across every layer.
   The front drifts away when the archive opens; the papers underneath stay.
   ====================================================================== */
.tp__back, .tp__front { position: absolute; inset: 0; pointer-events: none; }
.tp__back { z-index: 1; }
.tp__front { z-index: 3; }

/* Papers underneath */
.cl-sheet {
  position: absolute; display: block;
  background-color: var(--c); background-image: var(--crumple), var(--grain);
  background-size: 900px 620px, 200px 200px; background-blend-mode: soft-light, multiply;
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.35), 0 18px 34px -14px rgb(0 0 0 / 0.6), inset 0 0 50px rgb(40 22 8 / 0.22);
  transform: rotate(var(--r, 0deg));
}
.cl-sheet--grey  { --c: #a39a8e; --r: -1.6deg; left: 1%;  top: 11%; width: 38%; height: 84%; }
.cl-sheet--kraft { --c: #c4a57c; --r: 1.1deg;  left: 8%;  top: -3%; width: 45%; height: 56%; }
.cl-sheet--cream { --c: #e8e0cb; --r: -0.8deg; right: 0;  top: 25%; width: 50%; height: 78%; }
.cl-sheet--vellum {
  --r: 3deg; right: -3%; top: 2%; width: 33%; height: 42%;
  background: rgb(246 243 235 / 0.3); -webkit-backdrop-filter: blur(1.2px) brightness(1.08); backdrop-filter: blur(1.2px) brightness(1.08);
  box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.5), inset 0 0 22px rgb(255 255 255 / 0.25);
}

/* Front pieces: placed by hand, each drifts its own way when the archive opens */
.tp__front > * {
  position: absolute; display: block;
  transition: opacity 0.45s var(--ease-paper), translate 0.85s var(--ease-drawer);
}
.tp.is-open .tp__front > * { opacity: 0; translate: var(--fx, 0) var(--fy, -18px); }

/* Prints: white borders, aged and slightly sepia, grain, a little curl in the shadow */
.cl-print {
  --w: 140px; width: var(--w); padding: 7px; background-color: #efe9dc;
  background-image: var(--crumple-fine), var(--grain); background-size: 420px 420px, 200px 200px; background-blend-mode: soft-light, multiply;
  transform: rotate(var(--r, 0deg)); border-radius: 1px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.35), 2px 14px 18px -8px rgb(0 0 0 / 0.65);
}
.cl-print img { width: 100%; filter: sepia(0.42) saturate(0.72) contrast(0.92) brightness(0.95); }
.cl-print::after {
  content: ""; position: absolute; inset: 7px; bottom: auto; aspect-ratio: var(--ar, 2 / 3); pointer-events: none;
  box-shadow: inset 0 0 20px rgb(40 18 6 / 0.5); background-image: var(--grain); background-size: 160px; mix-blend-mode: multiply;
}
.cl-print__cap { display: block; padding-top: 5px; font-family: var(--font-type); font-size: 0.6875rem; color: #4a3f36; }
.cl-print--a { --w: clamp(88px, 8vw, 118px); --r: -7deg; --ar: 2 / 3; left: -1%; top: 3%; --fx: -60px; --fy: -10px; }
.cl-print--b { --w: clamp(200px, 21vw, 290px); --r: 2.5deg; --ar: 16 / 9; right: -3%; top: 17%; --fx: 70px; --fy: -10px; }
.cl-print--c { --w: clamp(140px, 14vw, 190px); --r: -4deg; --ar: 3 / 2; right: 9%; top: 58%; --fx: 70px; --fy: 10px; }
.cl-print--d { --w: clamp(80px, 7.5vw, 106px); --r: -3deg; --ar: 4 / 5; left: 0; bottom: 23%; --fx: -60px; --fy: 10px; }

/* Business card, foil-stamped, held by a paperclip */
.cl-card {
  left: 4%; bottom: -1%; width: clamp(190px, 18vw, 240px); aspect-ratio: 1.75; padding: 14px 16px;
  background-color: #ece5d3; background-image: var(--crumple-fine), var(--grain); background-size: 420px 420px, 200px 200px; background-blend-mode: soft-light, multiply;
  transform: rotate(4deg); --fx: -40px; --fy: 30px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 2px 14px 18px -8px rgb(0 0 0 / 0.6), inset 0 0 16px rgb(110 80 40 / 0.16);
  display: grid !important; align-content: center; justify-items: center; gap: 4px;
}
.cl-card .clip { left: 22px; top: -26px; }
.foil, .foil-text { /* silver foil: a moving metallic gradient, pressed slightly into the card */
  background: linear-gradient(105deg, #7d838a 0%, #f2f4f6 28%, #9aa0a7 46%, #e8ebee 62%, #737980 100%);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.6)) drop-shadow(0 -1px 0 rgb(0 0 0 / 0.18));
}
.cl-card__logo { width: 82%; aspect-ratio: 1277 / 224; -webkit-mask: url("/brand/logotype.png") center / contain no-repeat; mask: url("/brand/logotype.png") center / contain no-repeat; }
.cl-card__ar { font-family: var(--font-arabic); font-size: 1.15rem; line-height: 1; -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-card__line { font-family: var(--font-sans); font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6b5a52; }

/* Typography across the sheets */
.cl-vertical {
  right: 0.5%; bottom: 3%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 5.4vw, 5.4rem); line-height: 1; color: var(--brown); letter-spacing: 0.01em;
  --fx: 30px; --fy: 0;
}
.cl-italic {
  right: 15%; bottom: 0.5%; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 0.8rem + 0.9vw, 1.55rem); color: var(--brown); --fy: 16px;
}
/* The dual logo, printed across grey paper, tracing paper and cream paper at once */
.cl-logo-ar {
  left: 15%; top: 23%; font-size: clamp(4.6rem, 8.6vw, 8.6rem); line-height: 1; color: var(--burgundy);
  transform: rotate(-3deg); opacity: 0.94; text-shadow: 0 0 1px rgb(91 14 25 / 0.5); --fx: -30px; --fy: -24px;
}
.cl-logo { left: 9%; top: 49%; width: 74%; --logo-color: var(--burgundy); opacity: 0.94; --fx: 0; --fy: 26px; }

/* ---------- Mobile: recomposed for a vertical screen — fewer pieces, a bigger logo ---------- */
@media (max-width: 760px) {
  .tp__stage { left: 3%; top: 14%; width: 94%; height: 78%; }
  .cl-sheet--grey, .cl-sheet--vellum, .cl-print--b, .cl-print--c, .cl-card, .cl-vertical { display: none; }
  .cl-sheet--kraft { left: -5%; top: 1%; width: 68%; height: 44%; --r: -2deg; }
  .cl-sheet--cream { right: -5%; top: auto; bottom: 0; width: 72%; height: 50%; --r: 1.4deg; }
  .cl-print--a { --w: 86px; right: 1%; left: auto; top: 0; --r: 7deg; --fx: 40px; --fy: -20px; }
  .cl-print--d { --w: 78px; left: 1%; bottom: 3%; --r: -6deg; }
  .cl-logo-ar { left: 6%; top: 37%; font-size: 5.4rem; }
  .cl-logo { left: 3%; top: 56%; width: 94%; }
  .cl-italic { right: 3%; bottom: 0; font-size: 1.05rem; }
  .cl-card { display: none !important; }
  .tp-corner--tr span { display: none; }  /* keep the two top corners apart */
}

/* Reduced motion: the archive is simply open; the front pieces are not shown */
@media (prefers-reduced-motion: reduce) {
  .tp__front > * { transition: none !important; }
}

/* In the collage the archive is narrower: tabs carry the eyelet and the name only */
@media (min-width: 761px) {
  .tpf__tab { min-width: 0; padding: 0 1.15rem 0 1rem; gap: 0.55rem; font-size: clamp(1.1rem, 0.85rem + 0.5vw, 1.4rem); }
  .tpf__tab .n, .tpf__tab .go { display: none; }
}
/* The home screen is dark from the first frame: the nav starts in cream (no dark-on-dark flash) */
.page-home .nav:not(.is-scrolled) { color: var(--cream); }
.page-home .nav:not(.is-scrolled) .nav__inner { border-color: var(--line-dark); }
