/* Diecut - style.css. Colours and fonts live in :root, change them there. */
:root {
  --bg: #f1eee7;            /* paper */
  --ink: #191815;           /* text */
  --muted: rgba(25, 24, 21, .5);
  --soft: rgba(25, 24, 21, .07);   /* pills, boxes */
  --soft-2: rgba(25, 24, 21, .12); /* pill hover */
  --line: rgba(25, 24, 21, .12);
  --ghost: rgba(25, 24, 21, .13);  /* footer words */
  --accent: #e5007d;        /* die line magenta, only for small details */
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --pad: 40px;
  --col: 496px;
  --radius: 6px;
  --head-h: 100px;
  --ease: cubic-bezier(.44, 0, .56, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141311; --ink: #ece8df; --muted: rgba(236, 232, 223, .5); --soft: rgba(236, 232, 223, .08);
  --soft-2: rgba(236, 232, 223, .14); --line: rgba(236, 232, 223, .14); --ghost: rgba(236, 232, 223, .13);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased; transition: background-color .5s var(--ease), color .5s var(--ease); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
strong, b { font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 20px; }
.skip:focus { top: 16px; }
.muted { color: var(--muted); }
.no { font-size: 16px; font-weight: 500; line-height: 24px; }

/* ---------- header (ours: cut-window mark, plain links with a die-line under the active one) ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 32px;
  background: var(--bg); transition: background-color .5s var(--ease); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.logo-mark { width: 28px; height: 28px; transition: transform .6s var(--spring); }
.logo:hover .logo-mark { transform: rotate(90deg); }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { position: relative; font-size: 16px; font-weight: 500; line-height: 40px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 7px);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.theme { width: 44px; height: 24px; border: 0; padding: 0; border-radius: 12px; background: var(--soft-2); position: relative; cursor: pointer; }
.theme span { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--spring); }
:root[data-theme="dark"] .theme span { transform: translateX(20px); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 50%; position: relative; cursor: pointer; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger i:first-of-type { top: 18px; } .burger i:last-of-type { top: 25px; }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: calc(var(--head-h) + 20px) 20px 28px; display: flex; flex-direction: column;
  justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
.menu.open { clip-path: inset(0 0 0 0); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font-size: 44px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; padding: 6px 0; border-bottom: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: transform .6s var(--spring), opacity .4s var(--ease); }
.menu.open .menu-nav a { transform: none; opacity: 1; }
.menu.open .menu-nav a:nth-child(2) { transition-delay: .05s; } .menu.open .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu.open .menu-nav a:nth-child(4) { transition-delay: .15s; } .menu.open .menu-nav a:nth-child(5) { transition-delay: .2s; }
.menu-nav a[aria-current="page"] span { border-bottom: 2px dashed var(--accent); }
.menu-foot { display: flex; justify-content: space-between; font-weight: 500; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 8px; }
.btn-pill { display: inline-flex; align-items: center; height: 62px; padding: 0 50px; border-radius: 32px; background: var(--soft); font-size: 16px; font-weight: 500;
  outline: 1.5px dashed transparent; outline-offset: 0; transition: background-color .35s var(--ease), outline-color .35s var(--ease), outline-offset .45s var(--spring); }
.btn:hover .btn-pill, .btn:focus-visible .btn-pill { background: var(--soft-2); outline-color: var(--accent); outline-offset: 5px; }  /* a die line runs round the button */
/* ---------- sections: label on the left, content on the centre column ---------- */
.sec { display: grid; grid-template-columns: 1fr minmax(0, var(--col)) 1fr; column-gap: 0; padding: 40px var(--pad) 0; }
.label { grid-column: 1; grid-row: 1; font-size: 20px; font-weight: 500; line-height: 32px; align-self: start; position: sticky; top: calc(var(--head-h) + 20px); }
.sec > .col { grid-column: 2; grid-row: 1; }
.sec > .grid { grid-column: 1 / -1; grid-row: 2; margin-top: 22px; }
.sec > .more { grid-column: 1 / -1; margin-top: 40px; display: flex; justify-content: center; }
.body { font-size: 20px; line-height: 1.5; }
.lead { font-size: 20px; line-height: 1.5; }
.lead + .body { margin-top: 64px; }

/* entrance used by the original layout: 10px up + fade, springy (see PLAN.md, "Za Davora") */
.js [data-in] { opacity: 0; transform: translateY(10px); }
.js [data-in].run { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--spring); transition-delay: .05s; }

/* work grid: two columns, wide cards one row, tall cards two rows */
.grid { container-type: inline-size; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-auto-flow: row dense;
  grid-auto-rows: calc((100cqi - 16px) / 2 * .72); }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; cursor: none; isolation: isolate; }
.card.tall { grid-row: span 2; }
.card figure { position: absolute; inset: 0; z-index: -1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card::before, .card::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; z-index: -1; pointer-events: none; }
.card::before { top: 0; background: linear-gradient(rgba(0, 0, 0, .32), transparent); }
.card::after { bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .3)); }
.card-no { position: absolute; left: 30px; top: 30px; font-size: 16px; font-weight: 500; text-shadow: 0 0 2px rgba(0, 0, 0, .35), 0 0 12px rgba(0, 0, 0, .45); }
.card-name { position: absolute; left: 20px; bottom: 20px; font-size: 20px; line-height: 30px; text-shadow: 0 0 2px rgba(0, 0, 0, .35), 0 0 14px rgba(0, 0, 0, .5); }
/* hover: the photo blurs and a small sharp copy of it follows the pointer (main.js 8) */
.card img { transition: transform 1.1s var(--ease), filter .7s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover img { transform: scale(1.08); filter: blur(18px) brightness(.8); }
}
.view { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.view-card { position: absolute; left: 0; top: 0; width: var(--vw, 200px); aspect-ratio: var(--ar, 1.4); border-radius: var(--radius); overflow: hidden;
  background: #222; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .25);
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(0); transition: transform .55s var(--spring); }
.view.on .view-card { transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(1); }
.view-card img { width: 100%; height: 100%; object-fit: cover; }
.view-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 10px; border-radius: 4px;
  background: #f1eee7; color: #191815; font-size: 13px; font-weight: 600; line-height: 1; }
.view-tag svg { width: 14px; height: 14px; }
.view-dot { position: fixed; left: 0; top: 0; z-index: 61; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); pointer-events: none; visibility: hidden; }
.view-dot.on { visibility: visible; }

.gap { height: 286px; }

/* story rows, image follows the pointer */
.st-list { position: relative; }
.st-row { position: relative; display: block; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.st-row h3, .svc h3 { font-size: 28px; font-weight: 400; line-height: 1.6; letter-spacing: -.02em; margin: 8px 0 4px; }
.st-row .muted { font-size: 16px; font-weight: 500; }
.st-row h3 { transition: transform .5s var(--spring); }
.st-row:hover h3 { transform: translateX(8px); }
.st-img { position: absolute; left: min(calc(100% - 84px), calc(50vw + 50% - var(--pad) - 416px)); top: 50%; width: 396px; height: 516px; margin-top: -258px; border-radius: 4px; overflow: hidden; z-index: 3; pointer-events: none;
  clip-path: inset(50% 0 50% 0); transform: translateY(var(--my, 0px)); transition: clip-path .55s var(--ease); }
.st-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .8s var(--ease); }
.st-row:hover .st-img { clip-path: inset(0 0 0 0); }
.st-row:hover .st-img img { transform: none; }

/* about */
.portrait { position: relative; padding: 64px var(--pad) 0; display: flex; justify-content: center; overflow: hidden; }
.portrait figure { width: 752px; max-width: 100%; aspect-ratio: 752 / 1100; border-radius: var(--radius); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.mono { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; transform: translateY(-20%);
  --s: 0; color: #fff; mix-blend-mode: difference; }
.mono b { font-size: clamp(120px, 24vw, 380px); font-weight: 800; line-height: .8; letter-spacing: -.06em; }
.m-l { transform: translateX(calc(var(--s) * -14vw)); }
.m-r { transform: translateX(calc(var(--s) * 14vw)); }
.m-bar { display: block; height: clamp(22px, 3.8vw, 58px); width: calc(clamp(110px, 18vw, 270px) + var(--s) * 28vw); background: currentColor; margin: 0 -.02em; }
.toolkit { padding-top: 160px; }
@keyframes slide { to { transform: translateX(-50%); } }
.svc { padding-bottom: 64px; }
.svc h3 { margin: 8px 0 8px; }

/* contact */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 16px; font-weight: 500; line-height: 1.75; }
.info-cols a:hover { color: var(--accent); }
.form-sec { padding-top: 120px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 500; }
.form input, .form textarea { border: 1px solid var(--line); background: var(--ghost); border-radius: 4px; padding: 12px 14px; font-size: 16px; resize: vertical; outline: 0;
  transition: border-color .3s; }
.form textarea { min-height: 180px; }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form ::placeholder { color: var(--muted); }
.form [aria-invalid="true"] { border-color: var(--accent); }
.send { height: 52px; border: 0; border-radius: 26px; background: var(--soft); font-weight: 500; cursor: pointer; transition: background-color .35s var(--ease); }
.send:hover { background: var(--soft-2); }
.f-note { min-height: 24px; font-weight: 500; }

/* 404 */
.nf { padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; }
.nf-code { font-size: clamp(160px, 19.5vw, 280px); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.nf .btn { margin-top: 24px; }

/* project + story */
.case-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(0, var(--col)) 1fr; margin-top: 48px; }
.meta { grid-column: 1; display: flex; gap: 40px; align-self: start; }
.meta dt { color: var(--muted); font-size: 16px; font-weight: 500; }
.meta dd { font-size: 16px; font-weight: 500; }
.case-grid > .col { grid-column: 2; display: flex; flex-direction: column; gap: 20px; }
.case-photos { padding: 120px var(--pad) 0; display: flex; flex-direction: column; gap: 16px; }
.case-photos figure { border-radius: var(--radius); overflow: hidden; }
.case-photos img { width: 100%; height: 100%; object-fit: cover; }
.case-photos .wide { aspect-ratio: 1360 / 787; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figure { aspect-ratio: 672 / 983; }
.story-fig { margin: 48px auto 0; width: 752px; max-width: calc(100% - 2 * var(--pad)); aspect-ratio: 752 / 1100; border-radius: 12px; overflow: hidden; }
.story-fig img { width: 100%; height: 100%; object-fit: cover; }
.story-body { width: var(--col); max-width: calc(100% - 2 * var(--pad)); margin: 48px auto 0; display: flex; flex-direction: column; gap: 70px; }
blockquote { border-left: 2px solid var(--accent); padding-left: 42px; font-size: 24px; line-height: 1.4; color: var(--muted); }
.pager { padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pager .btn { grid-column: 2; }
.pager-next { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pager-next b { font-size: 22px; font-weight: 600; line-height: 1.6; transition: color .3s; }
.pager-next:hover b { color: var(--accent); }
.pager-next .muted { font-size: 16px; font-weight: 500; }

/* ---------- footer ---------- */
.foot { position: relative; padding: 0 var(--pad) 50px; }
/* two lines of big words loop sideways; while the page scrolls toward the end they go from faint and blurred to sharp (main.js 6b).
   The block is pulled up into the section above, so it already shows there, very faint. */
.ticker { position: relative; z-index: -1; margin: 40px calc(var(--pad) * -1) 110px; pointer-events: none; will-change: transform; }
.tk-row { overflow-x: clip; padding: .04em 0 .12em; will-change: filter; }
.tk-row + .tk-row { margin-top: -.08em; }
.tk-track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.tk-track.rev { animation-direction: reverse; }
.tk-track p { font-size: clamp(110px, 10.5vw, 160px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ghost); white-space: nowrap; padding-right: .35em; }
main { position: relative; z-index: 1; }
.foot-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; font-size: 16px; font-weight: 500; line-height: 24px; z-index: 2; }
.foot-mid { text-align: center; }
.foot-end { text-align: right; }
.foot-end a:hover { color: var(--accent); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  transform: translateY(90px); transition: transform .5s var(--spring); }
.to-top svg { width: 20px; height: 20px; transform: rotate(-45deg); }
.to-top.on { transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  :root { --col: 460px; }
  .status { display: none; }
  .st-img { width: 300px; height: 390px; margin-top: -195px; left: min(calc(100% - 40px), calc(50vw + 50% - var(--pad) - 320px)); }
}
/* ---------- phone + small tablet ---------- */
@media (max-width: 899px) {
  :root { --pad: 20px; --head-h: 72px; }
  .nav, .theme-desk { display: none; }
  .head { gap: 12px; }
  .theme { margin-left: auto; }
  .burger { display: block; }
  .sec, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .label { position: static; margin-bottom: 20px; }
  .sec > .col { grid-column: 1; grid-row: auto; }
  .sec > .grid { grid-row: auto; margin-top: 0; }
  .case-grid > .col, .meta { grid-column: 1; }
  .meta { margin-bottom: 32px; gap: 32px; }
  .st-img { display: none; }
  .card { cursor: pointer; }
  .view, .view-dot { display: none; }
}
@media (max-width: 809px) {
  .grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card.wide { aspect-ratio: 672 / 484; }
  .card.tall { aspect-ratio: 672 / 983; grid-row: auto; }
  .body, .lead { font-size: 18px; }
  .st-row h3, .svc h3 { font-size: 24px; }
  .portrait { padding-top: 40px; }
  .toolkit { padding-top: 100px; }
  .gap { height: 180px; }
  .info-cols, .f-row, .pair { grid-template-columns: 1fr; }
  .form-sec { padding-top: 64px; }
  .case-photos { padding-top: 56px; }
  .story-body { gap: 40px; }
  blockquote { padding-left: 24px; font-size: 21px; }
  .pager { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .pager .btn, .pager-next { grid-column: 1; }
  .pager-next { justify-self: center; align-items: center; text-align: center; }
  .foot { padding-bottom: 32px; }
  .ticker { margin-top: 24px; margin-bottom: 64px; }
  .tk-track p { font-size: 72px; }
  .foot-bar { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .foot-mid, .foot-end { text-align: left; }
  .btn-pill { height: 54px; padding: 0 36px; }
    .nf-code { font-size: 42vw; }
}
@media (max-width: 380px) {
  .status { display: none; }
  .menu-nav a { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 809px) {
  .mono b { font-size: 34vw; }
  .m-l { transform: translateX(calc(var(--s) * -6vw)); }
  .m-r { transform: translateX(calc(var(--s) * 6vw)); }
  .m-bar { height: 5vw; width: calc(22vw + var(--s) * 12vw); }
}

/* ---------- home hero: a dieline is cut, pressed out and folds into a box ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: calc(var(--head-h) + 40px) var(--pad) 72px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.hero-kicker svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.3; }
.hero-title { margin: 28px 0 44px; max-width: 12.5em; font-size: clamp(36px, 4.3vw, 66px); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.hero-title strong { font-weight: 800; }
.hero-title .fw { display: inline-block; }
/* crop marks in the corners, like the edge of a press sheet */
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); opacity: .55; }
.crop::before { left: 0; top: 21px; width: 14px; height: 1px; }
.crop::after { left: 21px; top: 0; width: 1px; height: 14px; }
.crop.tl { left: max(6px, calc(var(--pad) - 30px)); top: calc(var(--head-h) + 4px); }
.crop.tr { right: max(6px, calc(var(--pad) - 30px)); top: calc(var(--head-h) + 4px); transform: scaleX(-1); }
.crop.bl { left: max(6px, calc(var(--pad) - 30px)); bottom: 18px; transform: scaleY(-1); }
.crop.br { right: max(6px, calc(var(--pad) - 30px)); bottom: 18px; transform: scale(-1); }

.hero-stage { position: relative; height: min(72svh, 640px); min-height: 420px; display: grid; place-items: center; perspective: 1600px; }
.box { --s: clamp(100px, 10.4vw, 156px); --rx: 58deg; --rz: 26deg; position: relative; width: calc(var(--s) * 3); height: calc(var(--s) * 4);
  margin-top: calc(var(--s) * -.1); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); }
.net { position: absolute; inset: 0; transform-style: preserve-3d; }
.dieline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(-1px); }
.dieline path { fill: none; vector-effect: non-scaling-stroke; }
.dieline .cut { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dieline .fold { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; opacity: .55; }
.js .dieline .cut { stroke-dashoffset: 1; }
.js .dieline .fold { visibility: hidden; }
.box.cut .dieline .cut { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .3, 1); }
.box.punch .dieline .fold { visibility: visible; }

.p { position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; transition: transform 1s cubic-bezier(.55, 0, .2, 1.12); }
.p .in, .p .out { position: absolute; inset: 0; backface-visibility: hidden; }
.p .in { background: #d9c7a6; box-shadow: inset 0 0 0 1px rgba(60, 40, 10, .12); }
.p .out { transform: rotateX(180deg); background: #191815; color: #f1eee7; display: grid; place-items: center; overflow: hidden; }
.p .out::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); }
.js .p { visibility: hidden; }
.box.punch .p { visibility: visible; }
.base { left: var(--s); top: calc(var(--s) * 2); }
.back { left: var(--s); top: var(--s); transform-origin: 50% 100%; transition-delay: .36s; }
.lid { left: 0; top: calc(var(--s) * -1); transform-origin: 50% 100%; transition-delay: .95s; }
.front { left: var(--s); top: calc(var(--s) * 3); transform-origin: 50% 0; }
.left { left: 0; top: calc(var(--s) * 2); transform-origin: 100% 50%; transition-delay: .24s; }
.right { left: calc(var(--s) * 2); top: calc(var(--s) * 2); transform-origin: 0 50%; transition-delay: .12s; }
.box.fold .back { transform: rotateX(-90deg); }
.box.fold .lid { transform: rotateX(-90deg); }
.box.fold .front { transform: rotateX(90deg); }
.box.fold .left { transform: rotateY(90deg); }
.box.fold .right { transform: rotateY(-90deg); }
.box.punch .net { animation: press .32s var(--ease); }
@keyframes press { 40% { transform: translateZ(-6px) scale(.985); } }
/* the printed outside of the box */
.right .out { transform: rotateY(180deg); background: #c9a678; color: #191815; --shade: .14; }
.right .out span { transform: rotate(-90deg); font-size: calc(var(--s) * .12); font-weight: 600; white-space: nowrap; }
.left .out { transform: rotateY(180deg); background: var(--accent); --shade: .1; }
.left .out svg { width: 34%; color: #191815; }
.face-front { align-content: center; gap: calc(var(--s) * .04); text-align: center; }
.face-front span { font-size: calc(var(--s) * .22); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.face-front small { font-size: calc(var(--s) * .075); font-weight: 500; opacity: .7; }
.lid .out { background: #f1eee7; color: #191815; --paper: #f1eee7; }
.lid .out svg { width: 30%; }
.hero-cap { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* hero words, kicker and button fold up from their baseline, like the box walls */
.js [data-hero] [data-fold], .js [data-fold-words] .fw { transform: perspective(600px) rotateX(-90deg); transform-origin: 50% 100%; visibility: hidden; }
[data-hero].run [data-fold], [data-hero].run [data-fold-words] .fw { transform: none; visibility: visible;
  transition: transform 1s cubic-bezier(.3, 1.3, .4, 1), visibility 0s; transition-delay: calc(var(--d) * 55ms); }

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: calc(var(--head-h) + 48px); padding-bottom: 48px; min-height: 0; }
  .hero-stage { height: calc(var(--s) * 4.4); min-height: 0; margin-top: 16px; }
  .box { --s: clamp(76px, 21vw, 140px); --rz: 20deg; }
}
@media (max-width: 809px) {
  .hero-title { font-size: clamp(32px, 9vw, 44px); margin: 22px 0 32px; }
  .box { --rz: 14deg; }
  .crop.tl, .crop.tr { top: calc(var(--head-h) - 8px); }
}

/* ---------- page heads: the top of a press sheet (crop marks, sheet number, title folds up, colour bar prints, cut line runs) ---------- */
.page-head, .case-head { position: relative; padding: calc(var(--head-h) + 96px) var(--pad) 0; }
.page-head { padding-bottom: 72px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ph-no { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-title { margin: 28px 0 0; max-width: 15em; font-size: clamp(40px, 5.2vw, 84px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; }
.ph-title .fw { display: inline-block; }
.strip { display: flex; align-items: center; gap: 20px; margin-top: 56px; }
.patches { display: flex; flex: none; }
.patches i { width: 22px; height: 22px; background: var(--c); transform-origin: 50% 100%; }
.patches i:nth-child(1) { --c: #00a3e0; --i: 0; }
.patches i:nth-child(2) { --c: var(--accent); --i: 1; }
.patches i:nth-child(3) { --c: #ffd400; --i: 2; }
.patches i:nth-child(4) { --c: var(--ink); --i: 3; }
.patches i:nth-child(5) { --c: color-mix(in srgb, var(--ink) 70%, transparent); --i: 4; }
.patches i:nth-child(6) { --c: color-mix(in srgb, var(--ink) 45%, transparent); --i: 5; }
.patches i:nth-child(7) { --c: color-mix(in srgb, var(--ink) 22%, transparent); --i: 6; }
.patches i:nth-child(8) { --c: color-mix(in srgb, var(--ink) 8%, transparent); --i: 7; }
.cutline { flex: 1; height: 0; border-top: 1px dashed var(--ink); opacity: .45; transform-origin: 0 50%; }
.js [data-hero] .patches i { transform: scaleY(0); }
.js [data-hero] .cutline { transform: scaleX(0); }
[data-hero].run .patches i { transform: none; transition: transform .5s var(--ease); transition-delay: calc(.45s + var(--i) * 70ms); }
[data-hero].run .cutline { transform: none; transition: transform 1.3s var(--ease) 1s; }
@media (max-width: 809px) {
  .page-head, .case-head { padding-top: calc(var(--head-h) + 56px); }
  .page-head { padding-bottom: 48px; }
  .ph-title { font-size: clamp(32px, 9.4vw, 48px); margin-top: 22px; }
  .strip { margin-top: 40px; gap: 14px; }
  .patches i { width: 16px; height: 16px; }
}

/* ---------- About toolkit: a swatch book. Closed on arrival, it fans open around its pin; hover or tap pulls a chip out ---------- */
.fan { --cw: 124px; --ch: 330px; --step: calc(180deg / 7); grid-column: 1 / -1; grid-row: 1; justify-self: center; position: relative;
  width: min(100%, calc(2 * var(--ch))); height: calc(var(--ch) + 135px); }
.fan-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }
.fan-cap b { color: var(--ink); font-weight: 700; }
.sw { --d: calc(var(--ch) / 2 - 22px); --s: 1.25; --H: calc(var(--ch) * .85);
  position: absolute; left: calc(50% - var(--cw) / 2); bottom: 84px; width: var(--cw); height: var(--ch); padding: 0; border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; transform-origin: 50% calc(100% - 22px);
  --a: calc((var(--k) - 4.5) * var(--step)); transform: rotate(var(--a));
  transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.06); transition-delay: calc(var(--k) * 45ms); }
.js .fan .sw { transform: rotate(0deg); }
.js .fan.run .sw { transform: rotate(var(--a)); }
.fan.done .sw { transition: none; }
.sw.on { z-index: 30; }
.sw:focus-visible { outline: none; }
.sw-face { position: absolute; inset: 0; padding: 14px 12px; pointer-events: none; border-radius: 6px; background: var(--sw); color: var(--sw-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), -6px 8px 18px rgba(0, 0, 0, .12); transform-origin: 50% calc(100% - 22px);
  transition: transform .7s cubic-bezier(.3, 1.25, .4, 1), box-shadow .7s var(--ease); }
/* the chosen chip leaves the book, turns flat and grows above the pin so its name reads left to right */
.sw.on .sw-face { transform: rotate(calc(-1 * var(--a))) translate(calc(var(--d) * var(--s)), calc(-1 * var(--H))) rotate(-90deg) scale(var(--s));
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 10px 18px 40px rgba(0, 0, 0, .22); }
.sw:focus-visible .sw-face { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw svg { position: absolute; left: 10px; top: 12px; width: 26px; height: 26px; display: block; }
.sw-name { position: absolute; left: 12px; top: 50px; writing-mode: vertical-rl; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.sw-spec { position: absolute; left: 14px; top: 50px; writing-mode: vertical-rl; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1; opacity: .75; visibility: hidden; }
.sw.on .sw-spec { visibility: visible; transition: visibility 0s .35s; }
/* right half of the fan: turn the name so it reads upright, from the pin outwards */
.sw:nth-of-type(n+5) .sw-name { transform: rotate(180deg); }
.sw.on .sw-name { left: 34px; transform: none; transition: left 0s .3s, transform 0s .3s; }  /* flat card: name on top, the note under it */
.fan-pin { position: absolute; left: 50%; bottom: 98px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 20;
  background: radial-gradient(circle at 35% 35%, #fff, #b8b2a6 55%, #6f6a60); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
@media (max-width: 899px) { .fan { grid-column: 1; grid-row: auto; } }
@media (max-width: 809px) { .fan { --ch: min(240px, calc(50vw + 4px)); --cw: calc(var(--ch) * .36); } .sw { --s: 1.15; } .sw-face { padding: 10px; }
  .sw svg { left: 8px; top: 9px; width: 20px; height: 20px; } .sw-name { left: 9px; top: 38px; font-size: 13px; } .sw-spec { left: 10px; top: 38px; font-size: 10px; } .sw.on .sw-name { left: 27px; }
  .sw svg { visibility: hidden; } .sw.on svg { visibility: visible; transition: visibility 0s .3s; }  /* narrow chips: the name starts at the tip, the icon waits for the flat card */
  .sw-name { top: 12px; } .sw.on .sw-name { top: 38px; transition: left 0s .3s, top 0s .3s, transform 0s .3s; } .fan-pin { bottom: 98px; } .fan-cap { font-size: 14px; } }
