/* Wildcard · built on Whyld V7. White and paper, forest ink, the soft Wildcard yellow as a fill and a marker, sage and
   peach from V2. Squircles, a frosted glass capsule for the nav, a forest footer with the peach call to action.
   Type as on wildcard.at: Macklin Sans for everything, the leaning accents in Macklin Slab Bold Italic, small labels
   in Geist Mono. The Wildcard layer at the end overrides the V7 base. */

@font-face { font-family: 'Macklin Sans'; src: url('../assets/fonts/MacklinSans-Variable.woff2') format('woff2'); font-weight: 1 795; font-display: swap; }
@font-face { font-family: 'Macklin Slab'; src: url('../assets/fonts/MacklinSlab-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/GeistMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --track: -.02em;
  /* the type scale, one size per role; each reads its name's value at 1440
     display-xl  the closing call            display-l  section headings, the info text
     display-m   sub-headings (values, FAQ)   text-l     leads, card titles, intros
     text-s      body                         ui / label navigation, buttons / mono tags */
  --display-xl: clamp(56px, 9vw, 168px);    /* 130 */
  --display-l: clamp(36px, 5vw, 84px);      /* 72 */
  --display-m: clamp(28px, 3.056vw, 52px);  /* 44 */
  --text-l: clamp(20px, 1.806vw, 30px);     /* 26 */
  --text-m: var(--text-l);                   /* merged into text-l */
  --text-s: clamp(16px, 1.25vw, 20px);      /* 18 */
  --ui: 15px;
  --btn: var(--ui);                          /* text in content buttons */
  --chip: var(--ui);                         /* text in chips and tags */
  --label: 13px;
  --radius: clamp(16px, 1.9vw, 34px);       /* Wildcard: larger, squircle where the browser can */
  --w-text: 400;
  --w-ui: 500;
  --w-mono: 500;
  /* Wildcard colours (from Wildcard Website V2): forest ink, the soft yellow, sage, peach, paper */
  --ink: #223322;
  --accent: #FFEE32;                         /* the new Wildcard yellow, the same as --yellow */
  --grey: #5D6B5D;
  --line: rgba(34, 51, 34, .12);
  --tile: #EEF2EA;
  --paper: #F6FAF2;
  --sage: #AFBDA2;
  --peach: #FFB47E;
  --foot-label: #A9B8A6;
  --case-line: #AFBDA2;
  --glass: rgba(255, 255, 255, .62);
  --edge: clamp(16px, 2.6vw, 40px);   /* the margin to the screen's edge, also above and below */
  --page: max(var(--edge), (100vw - 1800px) / 2);   /* content never gets wider than 1800px; backgrounds and films still fill the screen */
  --section: clamp(96px, 16vw, 240px);
  --slab: 'Macklin Slab', Georgia, serif;
  --sans: 'Macklin Sans', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #FFF; color-scheme: light; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: #FFF; color: var(--ink); font-family: var(--sans); font-weight: var(--w-text); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* on every element, so -2% is taken from its own size instead of inheriting the body's pixels */
body, body * { letter-spacing: var(--track); }
/* text doesn't select, except what people need to copy: the address and the legal pages */
body { -webkit-user-select: none; user-select: none; }
.foot__mail, .legal { -webkit-user-select: text; user-select: text; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
h3 { font-weight: var(--w-text); }
section[id] { scroll-margin-top: 92px; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* the seven type styles: every piece of text on the site takes its size and line height from here */
.h2, .board__t, .about__text, .row__name, .foot__mail, .legal__t { font-size: var(--display-l); line-height: 1.05; }
.case__title, .cv__title, .faq__q { font-size: var(--display-m); line-height: 1.08; }
.hero__foot, .row__text, .legal__lead { font-size: var(--text-l); line-height: 1.25; }
.row__list, .person__name, .case__lede, .case__intro, .lab__sub, .xp__link-t { font-size: var(--text-m); line-height: 1.28; }
.faq__a { font-size: var(--text-s); line-height: 1.4; }
body, .body, .board__q, .case__points, .cv__name, .cv__text { font-size: var(--text-s); line-height: 1.4; }
.nav, .nav__cta, .lb__close, .foot__links { font-size: var(--ui); font-weight: var(--w-ui); line-height: 1.35; }
.label, .card__cap { font-family: var(--mono); font-weight: var(--w-mono); font-size: var(--label); line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.h2 { font-weight: var(--w-text); text-wrap: balance; }
.body { color: var(--grey); text-wrap: pretty; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--page); top: -60px; z-index: 60; background: var(--ink); color: #FFF; padding: 8px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }
/* the one button */
.chapter__link { font-size: var(--btn); font-weight: var(--w-ui); line-height: 1.35; }
.chip { font-size: var(--chip); font-weight: var(--w-ui); line-height: 1.35; }
.nav__cta, .lb__close { display: grid; place-items: center; height: 48px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: #FFF; white-space: nowrap; }
/* the page's twelve columns */
.about, .legal__part { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
/* lists of short points under a hairline */
.row__list, .case__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: clamp(24px, 3.2vw, 56px); }
.row__list li, .case__points li { padding: .8em 0 1.1em; border-top: 1px solid var(--line); text-wrap: pretty; }
.row__list strong, .case__points strong { color: var(--ink); font-weight: inherit; }

/* ── nav: no bar, no fade. Logo and links are white in difference, so they turn to whatever lies under them, letter
   by letter: ink on white, white on ink and film. The button stays out of the blend, in its own layer: ink, white over the footer. ── */
.nav { --cta: 156px; position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); height: 92px; padding: 0 calc(var(--page) + var(--cta) + clamp(20px, 3vw, 40px)) 0 var(--page); color: #FFF; mix-blend-mode: difference; pointer-events: none; transition: opacity .6s var(--ease); }
.nav > * { pointer-events: auto; position: relative; }
/* nothing but the name while it writes itself */
html.is-intro .nav, html.is-intro .nav__cta { opacity: 0; pointer-events: none; animation: intro-failsafe 0s 6s forwards; }
/* should the intro never finish (a failed fetch, a script error), the nav comes back on its own */
@keyframes intro-failsafe { to { opacity: 1; pointer-events: auto; } }
.nav__logo { margin-right: auto; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.nav__logo img { width: 100px; height: auto; filter: invert(1); }
.nav.has-logo .nav__logo { opacity: 1; visibility: visible; }
.nav.is-foot .nav__logo { opacity: 0; visibility: hidden; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { padding: 8px 0; }
.nav__cta { position: fixed; top: 22px; right: var(--page); z-index: 41; transition: transform .1s ease-out, background-color .3s, color .3s, opacity .6s var(--ease); }
.nav.is-foot + .nav__cta { background: #FFF; color: var(--ink); }
.nav__cta:active { transform: scale(.97); }
/* the two labels take turns in one fixed width, so the button never changes size; holding still under the pointer or focus */
.cta-cycle { display: grid; width: 108px; overflow: clip; text-align: center; }
.cta-cycle > span { grid-area: 1 / 1; animation: cta-cycle 7s var(--ease) infinite; }
.cta-cycle > span + span { animation-delay: -3.5s; }
.nav__cta:is(:hover, :focus-visible) .cta-cycle > span { animation-play-state: paused; }
@keyframes cta-cycle {
  0%, 42% { transform: none; }
  50% { transform: translateY(-110%); }
  50.01%, 92% { transform: translateY(110%); }
  100% { transform: none; }
}

/* ── the world: header + board in one pinned room ── */
.world { height: 827svh; }
.world__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #FFF; }

.film { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); background: #FFF; }
.film.on { opacity: 1; }
.film video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 30%, rgba(0,0,0,.36) 50%, rgba(0,0,0,.52)); }

.hero { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); padding: 0 var(--page) var(--edge); pointer-events: none; color: var(--ink); transition: color .8s var(--ease); }
.hero.on { color: #FFF; }
/* the name runs the full width of the content, margin to margin, on the floor of the header; the words stand at the top */
.hero__sig { position: relative; flex: none; width: 100%; }
.why { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; visibility: hidden; }
.why-static { display: none; }
/* the top belongs to the nav alone: the words are one paragraph on the page's left edge, right above the name, its first sentence lit */
.hero__foot { flex: none; max-width: 560px; margin-top: auto; line-height: 1.42; text-wrap: pretty; opacity: 0; transition: opacity .8s var(--ease); }
.hero.on .hero__foot, .hero.on .hero__meta { opacity: 1; }
.hero__h1 { font: inherit; letter-spacing: inherit; }   /* its own line, no gap: the second sentence always starts below */
.hero__lede { opacity: .72; }
/* Pause stands under the words, on the same edge */
.hero__meta { flex: none; opacity: 0; transition: opacity .8s var(--ease); }
.hero__meta .label { color: inherit; }
.hero__pause { pointer-events: auto; padding: 8px 0; }
.hero__pause:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ── the orbs: one shared canvas above the page, as in the reference ── */
.orb { position: relative; display: block; aspect-ratio: 1; }
.orbs-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 10; pointer-events: none; }
html.orbs-off [data-orb]::before { content: ''; position: absolute; inset: 7%; border-radius: 50%; background: var(--tile) var(--orb-img, none) center / cover no-repeat; transform: scale(var(--orb-p, 1)); opacity: var(--orb-a, 1); }

/* ── the dive between the board and a case ── */
/* ── the dive between pages (js/dive.js), shot like a camera move, as on the Whyld site: the camera pushes into what
   was clicked, the page loses focus and washes out to white, and the next page comes up out of the white, a little too
   close, then settles. Going back is the same move in reverse: the camera pulls out of the page and the page before
   comes back into focus. ── */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition { background: #FFF; }
::view-transition-group(root) { animation-duration: .25s; }   /* a plain link or Back: a quick crossfade; the dive sets its own times */
::view-transition-old(root), ::view-transition-new(root) { transform-origin: var(--vt-x, 50%) var(--vt-y, 50%); }
html.vt-deeper::view-transition-old(root) { animation: vt-push-old .7s cubic-bezier(.65,0,.35,1) both; }
html.vt-deeper::view-transition-new(root) { animation: vt-push-new .75s cubic-bezier(.16,1,.3,1) .3s both; }
html.vt-back::view-transition-old(root) { animation: vt-pull-old .65s cubic-bezier(.65,0,.35,1) both; }
html.vt-back::view-transition-new(root) { animation: vt-pull-new .75s cubic-bezier(.16,1,.3,1) .28s both; }
@keyframes vt-push-old {
  0% { transform: none; filter: none; opacity: 1; }
  45% { opacity: 1; }
  100% { transform: scale(2); filter: blur(8px); opacity: 0; }
}
@keyframes vt-push-new {
  from { transform: scale(1.15); filter: blur(8px); opacity: 0; }
  to { transform: none; filter: none; opacity: 1; }
}
@keyframes vt-pull-old {
  0% { transform: none; filter: none; opacity: 1; }
  45% { opacity: 1; }
  100% { transform: scale(.75); filter: blur(8px); opacity: 0; }
}
@keyframes vt-pull-new {
  from { transform: scale(1.8); filter: blur(8px); opacity: 0; }
  to { transform: none; filter: none; opacity: 1; }
}
/* where the browser cannot carry the dive, or less motion is asked for: a short fade through white */
.dive { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: #FFF; }
html.is-arriving::after { content: ''; position: fixed; inset: 0; z-index: 99; background: #FFF; }

/* ── the board ── */
.board { position: absolute; inset: 0; z-index: 1; }
html.js .world:not(.is-open) .board:not(.is-static) { opacity: 0; pointer-events: none; }   /* not hidden from the tab key: a focused card flies the camera there */
.ripples { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board__plane { position: absolute; inset: 0; perspective: 1400px; }
.card { position: absolute; left: 0; top: 0; display: block; text-align: left; transform-origin: 50% 50%; will-change: transform; }
.card__img { display: block; width: 100%; aspect-ratio: var(--ar); border-radius: var(--radius); overflow: hidden; background: var(--tile); transition: transform .2s var(--ease); }
.card:active .card__img { transform: scale(.985); }
.card__img img, .card__img video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1s var(--ease); -webkit-user-drag: none; }
.card:hover .card__img img, .card:hover .card__img video { transform: scale(1.025); }
.card__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; margin-top: 10px; }
.card__cap b { font-weight: var(--w-mono); color: var(--ink); }

.board__hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; padding: 92px var(--page) clamp(20px, 3.4vh, 36px); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; }
.board__hud::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #FFF 0, rgba(255,255,255,0) 112px), linear-gradient(90deg, #FFF 0, #FFF 24%, rgba(255,255,255,.86) 32%, rgba(255,255,255,0) 44%); }
.board__now { max-width: min(30vw, 440px); margin: auto 0; }
.board__t { font-weight: var(--w-text); margin-bottom: 16px; }
.board__q { color: var(--grey); text-wrap: pretty; }
.board__foot { display: flex; justify-content: flex-end; }

/* ── about: one large sentence on white ── */
.about { padding: var(--section) var(--page); row-gap: 28px; }
.about__text { grid-column: 3 / -1; font-weight: var(--w-text); }
.about__text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
/* a small browser window of wildcard.at, grown up out of the link's underline (js/main.js) */
.wc { position: fixed; left: 0; top: 0; z-index: 45; width: 420px; border-radius: 14px; overflow: hidden; background: #FFF; box-shadow: 0 30px 60px -20px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; clip-path: inset(100% 0 0 0 round 14px); translate: 0 16px; transition: clip-path .6s var(--ease), translate .6s var(--ease); }
.wc.on { clip-path: inset(0 0 0 0 round 14px); translate: 0 0; }
.wc img { display: block; width: 100%; height: auto; }
.wc__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: var(--tile); font: var(--w-ui) var(--label)/1 var(--sans); color: var(--grey); }
.wc__bar i { width: 7px; height: 7px; border-radius: 50%; background: #D9D9DC; }
.wc__bar span { margin: 0 auto; padding-right: 30px; }
@media (prefers-reduced-motion: reduce) { .wc { transition: none; } }
html.js .about__text .w { opacity: var(--o, .14); }

/* ── what we do: the left half is one film up to the screen's edge, standing still; the pillars pass on the right, and each brings its film ── */
.services { display: block; }
.rows { padding: 0 var(--page) 0 clamp(32px, 4.4vw, 80px); }
.row { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 100svh; padding: 92px 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__morph { display: none; width: clamp(56px, 5.8vw, 84px); aspect-ratio: 1; margin-bottom: clamp(16px, 1.8vw, 28px); }
.row__name { font-weight: var(--w-text); }
.row__text { margin-top: clamp(16px, 1.8vw, 28px); color: var(--grey); text-wrap: pretty; }
.row__list { width: 100%; margin-top: clamp(24px, 3vw, 48px); color: var(--grey); }

/* ── experiments: the start of a wormhole. The words stand above the orbs' canvas ── */
.lab { position: relative; height: 150svh; min-height: 840px; overflow: hidden; display: grid; place-items: center; padding: 0 var(--page); }
.lab__field { position: absolute; inset: 0; pointer-events: none; }
/* white at the top and the bottom, clear through the middle: no orb is cut at an edge (above the orb canvas, z 10).
   Solid for the first 11% of the section, where wormhole.js cuts the orbs off */
.lab::before, .lab::after { content: ''; position: absolute; left: 0; right: 0; height: 34%; z-index: 11; background: linear-gradient(180deg, #FFF 33%, rgba(255,255,255,0)); pointer-events: none; }
.lab::before { top: 0; }
.lab::after { bottom: 0; rotate: 180deg; }
.lab__orb { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; }
.lab__copy { position: relative; z-index: 12; display: flex; flex-direction: column; align-items: center; max-width: 820px; text-align: center; }
.lab__sub { max-width: 30em; margin-top: clamp(16px, 1.6vw, 24px); color: var(--grey); text-wrap: pretty; }
.lab__cta { margin-top: clamp(24px, 2.6vw, 40px); }

/* ── team ── */
.team { padding: var(--section) var(--page); }
.team__lead { margin: 0 0 clamp(40px, 6vw, 96px); max-width: 18em; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person__tile { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tile); display: grid; place-items: center; }
.person__tile img { width: 100%; height: 100%; object-fit: cover; }
.person__name { margin-top: 14px; }

/* ── faq: a typographic index, big numbered questions; one answer open at a time, in the text column ── */
.faq { padding: 0 var(--page) var(--section); }   /* the team above already leaves a section's space */
.faq__list { margin-top: clamp(40px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq__item::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
.faq__item[open]::details-content { height: auto; }
.faq__q { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 9fr) auto; align-items: baseline; gap: 24px; padding: clamp(20px, 2.2vw, 34px) 0; list-style: none; cursor: pointer; transition: color .3s; }
.faq__q::-webkit-details-marker { display: none; }
.faq__item:not([open]) .faq__q:hover { color: var(--grey); }
.faq__plus { position: relative; align-self: center; width: 22px; height: 22px; }   /* a plus that turns into a minus */
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: rotate .4s var(--ease); }
.faq__plus::after { rotate: 90deg; }
.faq__item[open] .faq__plus::after { rotate: 0deg; }
.faq__a { margin-left: calc((100% - 48px) * 2 / 11 + 24px); max-width: 30em; padding-bottom: clamp(28px, 3vw, 44px); color: var(--grey); text-wrap: pretty; }
.faq__mail { margin-top: 28px; font-size: var(--text-s); color: var(--grey); }
.faq__mail a, .faq__a a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (max-width: 800px) {
  .faq__q { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .faq__n { grid-column: 1 / -1; }
  .faq__a { margin-left: 0; }
}

/* ── footer ── */
.foot { position: relative; overflow: hidden; padding: clamp(48px, 5vw, 80px) var(--page) clamp(20px, 3vw, 32px); background: var(--ink); color: #FFF; }
.foot > :not(.ripples) { position: relative; }
.foot .label { color: var(--foot-label); }
.foot__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot__mail { display: block; color: #FFF; font-weight: var(--w-text); font-size: min(var(--display-l), 9.2vw); }
.foot__mail:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1em; }
.foot__links { display: flex; gap: 24px; }
.foot__links a { opacity: .72; transition: opacity .2s; }
.foot__links a:hover { opacity: 1; }
.foot__logo { filter: invert(1); width: 100%; height: auto; margin: clamp(64px, 11vw, 180px) 0 clamp(20px, 3vw, 36px); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.foot__legal { display: flex; gap: 20px; }
.foot__base a { transition: color .2s; }
.foot__base a:hover, .foot__legal a[aria-current] { color: #FFF; }

/* ── impressum, datenschutz: the same head and hairlines as the rest, nothing moves ── */
.legal { padding: clamp(120px, 16vw, 220px) var(--page) var(--section); }
.legal__t { font-weight: var(--w-text); }
.legal__lead { max-width: 30em; margin: clamp(24px, 3vw, 40px) 0 clamp(56px, 8vw, 120px); text-wrap: pretty; }
.legal__part { row-gap: 12px; padding: clamp(20px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); }
.legal__part > .label { grid-column: 1 / span 4; padding-top: .25em; }
.legal__part > :not(.label) { grid-column: 5 / span 7; max-width: 44em; }
.legal__part p + p { margin-top: 12px; }
.legal__part a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.legal__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px 20px; margin: 0; }
.legal__facts dt { color: var(--grey); }

/* ── a project: one screen, no scrolling. The film fills it, the experiments float over it, a drawer holds the reading ── */
html.is-screen, html.is-screen body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.case { position: relative; background: #FFF; }
.case__head { position: relative; height: 100svh; overflow: hidden; }
/* the film stands in the middle, larger than the orbs around it, and everything stays inside the page's width */
.case__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.case__lines path { fill: none; stroke: var(--case-line); stroke-width: 1; }
.case__lines circle { fill: var(--ink); }
.case__mid { position: absolute; inset: 92px 0 118px; display: grid; place-items: center; }
.case__keys { position: relative; width: min(54%, calc((100svh - 230px) * (var(--ar)))); aspect-ratio: var(--ar); pointer-events: auto; }
.case__key { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: var(--radius); background: var(--tile); }
.case__play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; background: #FFF; color: var(--ink); cursor: pointer; }
.case__play:active { transform: scale(.94); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: #FFF; color: var(--ink); white-space: nowrap; }
.chip--tile { background: var(--tile); }
/* the orbs over the film, as large as the screen and their number allow; they stay inside the page's width */
.case__plane { position: absolute; inset: 0 var(--page); pointer-events: none; will-change: transform; }
.case__nodes { --orb: clamp(112px, min(30svh, (100vw - 2 * var(--page)) * .145, 48svh / var(--gaps) - 46px), 320px); position: absolute; inset: 0; pointer-events: none; }
.node { position: absolute; left: var(--x); top: var(--y); width: max(var(--orb), 150px); transform: translate(-50%, -50%); pointer-events: auto; }
.node__btn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; text-align: center; }
.node .orb { width: var(--orb); transition: scale .9s var(--ease); }
.node__btn:hover .orb, .node__btn:focus-visible .orb { scale: 1.04; }
/* the drawer: above the orbs' canvas; closed it is the bar of the application */
.case__dock { position: absolute; left: var(--page); right: var(--page); bottom: clamp(14px, 2.4svh, 24px); z-index: 12; }
/* closed: a caption under the film, not a bar. The name, the facts in mono, the way in as a text link */
.case__bar { display: flex; align-items: baseline; gap: clamp(20px, 2.2vw, 36px); }
.case__title { margin-right: auto; font-weight: var(--w-text); }
.case__tags { display: flex; flex-wrap: wrap; }
.case__tags li + li::before { content: '—'; margin: 0 .7em; }
.case__more { position: relative; z-index: 30; padding: 0 0 2px; font-size: var(--chip); font-weight: var(--w-ui); line-height: 1.35; white-space: nowrap; color: var(--ink); border-bottom: 1px solid currentColor; cursor: pointer; }
.case__more::after { content: '\00a0→'; }
.is-open .case__more::after { content: none; }
/* open: the project slides in from the right as a panel; “Close” stays where “About the project” was */
.case__drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(560px, 100vw); visibility: hidden; padding: 112px clamp(24px, 3vw, 48px) 96px; background: linear-gradient(90deg, rgba(255,255,255,.6) 0%, #FFF 100%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); translate: 100% 0; transition: translate .6s var(--ease), visibility .6s; }
.is-open > .case__drawer { translate: 0 0; visibility: visible; }
.case__drawer-in { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.case__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(20px, 2vw, 32px); }
.case__lede { max-width: 40em; text-wrap: pretty; }
.case__intro { max-width: 40em; margin-top: .7em; color: var(--grey); text-wrap: pretty; }
.case__points { grid-template-columns: 1fr; margin-top: clamp(18px, 2vw, 28px); color: var(--grey); }
/* media starts where the text starts and always runs on to the page padding */
.chapter__media { grid-column: 4 / -1; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tile); cursor: pointer; }
.chapter__media video, .chapter__media img { width: 100%; height: auto; }
.chapter__grid { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.chapter__grid--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chapter__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chapter__grid .chapter__media { grid-column: auto; }
.chapter__grid .chapter__media:only-child { grid-column: 1 / -1; }
.chapter__grid[style] .chapter__media:not(.chapter__media--wide) :is(video, img) { aspect-ratio: var(--g-ar); object-fit: cover; }
.chapter__grid .chapter__media--wide { grid-column: span 2; }
/* three across, with a row of two where a piece needs more room */
.chapter__grid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chapter__grid--six .chapter__media { grid-column: span 2; }
.chapter__grid--six .chapter__media--half { grid-column: span 3; }
/* a film on the screen of a rendered device; on a phone it fades into the ends of the screen the render already shows */
.chapter__media--device { position: relative; }
.chapter__screen { position: absolute; overflow: hidden; }
.chapter__screen video { position: absolute; max-width: none; }
.chapter__screen--fade { -webkit-mask-image: linear-gradient(transparent, #000 2.8%, #000 97.2%, transparent); mask-image: linear-gradient(transparent, #000 2.8%, #000 97.2%, transparent); }
.chapter__media--framed { padding: clamp(8px, 1vw, 16px); }
.chapter__media--framed img, .chapter__media--framed video { border-radius: 8px; }
.chapter__link { display: inline-grid; place-items: center; height: 54px; padding: 0 28px; margin-top: clamp(24px, 2.6vw, 40px); border-radius: 99px; background: var(--ink); color: #FFF; white-space: nowrap; }   /* 18px text needs a little more room than the nav button */
.chapter__link:active { transform: scale(.97); }
.case__noscript { padding: 140px var(--page) var(--section); }
/* ── an experiment: the work first, at the page's width, then what was tried ── */
.xp { padding: 92px var(--page) var(--section); }
.xp__work { padding-bottom: 20px; }
.xp__work .chapter__media { margin: 0; }
.xp__work--grid { padding: 0 0 clamp(48px, 6vw, 96px); }
.xp__embed { padding-top: 92px; }
.xp__embed iframe { display: block; width: 100%; height: max(600px, calc(100svh - 112px)); border: 0; }
/* one cut, one size, a step below the home page's About, in the same columns */
.xp__about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; padding: var(--section) 0; }
.xp__orb { grid-column: 1 / span 2; width: min(100%, clamp(96px, 10vw, 170px)); }
.xp__read { grid-column: 3 / -1; }
/* the eyebrow: in mono, the path from the project to this experiment; the project leads back */
.xp__eyebrow { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 clamp(14px, 1.4vw, 22px); }
.xp__eyebrow a { transition: color .2s; }
.xp__eyebrow a:hover { color: var(--ink); }
.xp__slash { font-style: normal; margin: 0 .6em; color: var(--case-line); }
.xp__read p { margin: 0; font-size: var(--display-m); font-weight: var(--w-text); line-height: 1.08; text-wrap: pretty; }
.xp__read p + p { margin-top: .6em; }
.xp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(32px, 4vw, 64px); }
.xp__tags .chip { height: 34px; padding: 0 14px; }
.xp__link .label { font-size: var(--text-m); }
.xp__link .label { font-family: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.xp__more { padding-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.xp__next { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 64px); }
.xp__link { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.xp__link .orb { width: 100%; }
.xp__link-t { margin-top: 6px; }

/* ── all experiments: a free canvas that comes round again ── */
.cv { position: absolute; inset: 0; height: 100svh; background: #FFF; overflow: hidden; }   /* no stacking context of its own: the filters and the card stand above the orbs' canvas */
.cv__stage { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.cv__stage.is-drag { cursor: grabbing; }
.cv__plane { position: absolute; left: 0; top: 0; }
.cv__item { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; will-change: transform; -webkit-user-drag: none; }
.cv__item.is-off { visibility: hidden; }
.cv__item.is-dim { pointer-events: none; }
.cv__item .orb { width: 100%; }
.cv__name { opacity: 0; transition: opacity .3s; text-wrap: balance; scale: calc(1.3 / var(--k, 1)); transform-origin: 50% 0; }   /* always the size it has on the largest orb */
.cv__item:is(:hover, :focus-visible, .is-picked) .cv__name { opacity: 1; }
.cv__card { position: absolute; left: var(--page); bottom: 76px; z-index: 12; width: min(400px, 100% - 2 * var(--page)); padding: clamp(18px, 1.7vw, 26px); border-radius: var(--radius); background: var(--tile); }
.cv__card[hidden] { display: none; }
.cv__title { margin-top: 8px; font-weight: var(--w-text); }
.cv__text { margin-top: 10px; color: var(--grey); text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cv__open { margin-top: 16px; width: max-content; }
.cv__filters { position: absolute; left: var(--page); right: var(--page); bottom: clamp(14px, 2.4svh, 24px); z-index: 12; display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip--filter { height: 36px; padding: 0 16px; background: var(--tile); cursor: pointer; transition: background-color .2s, color .2s; }
.chip--filter[aria-pressed="true"] { background: var(--ink); color: #FFF; }
.chip__n { margin-left: .45em; font-variant-numeric: tabular-nums; color: var(--grey); transition: color .2s; }   /* how many experiments the filter holds */
.chip--filter[aria-pressed="true"] .chip__n { color: rgba(255, 255, 255, .6); }

/* ── the lightbox ── */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); overflow: hidden; }
.lb::backdrop { background: rgba(255, 255, 255, .96); }
.lb__grid { height: 100%; }
.lb__media { height: 100%; display: grid; place-items: center; }
.lb__media > * { display: block; width: min(100vw - 2 * var(--page), (100dvh - 2 * var(--edge)) * var(--ar, 1.78)); aspect-ratio: var(--ar, 1.78); border-radius: var(--radius); will-change: transform; }
.lb__close { position: absolute; top: 18px; right: 18px; z-index: 2; }

/* mono labels keep their own open tracking, children included */
.label *, .card__cap * { letter-spacing: .06em; }

/* ── phones and small tablets ── */
@media (max-width: 800px) {
  .nav { height: 72px; }
  .nav__links { display: none; }
  .nav__logo img { width: 84px; }
  .nav__cta { top: 14px; height: 44px; padding: 0 20px; }
  .board__hud { padding-top: 72px; }
  .board__hud::before { background: linear-gradient(180deg, #FFF 0, rgba(255,255,255,0) 84px), linear-gradient(0deg, #FFF 0, #FFF 34%, rgba(255,255,255,0) 46%); }
  .board__now { max-width: none; margin-top: auto; margin-bottom: 18px; }
  .about { display: block; }
  .services { display: block; }
  .rows { padding: 0 var(--page); }
  .row { display: block; min-height: 0; padding: 32px 0; }
  .row__morph { width: 56px; margin-bottom: 16px; }
  .row__text { margin-top: 14px; }
  .row__list { grid-template-columns: 1fr; margin-top: 22px; }
  .team__grid { gap: 8px; }
  .person .label { display: none; }
  .case__mid { inset: 72px var(--page) 290px; }
  .case__keys { width: min(100%, calc((100svh - 374px) * (var(--ar)))); }
  .case__lines { display: none; }
  .case__bar { flex-wrap: wrap; }
  .case__plane { inset: 0; }
  .case__nodes { --orb: 112px; inset: auto 0 128px; display: flex; gap: 8px; padding: 0 var(--page); overflow-x: auto; scrollbar-width: none; pointer-events: auto; -webkit-overflow-scrolling: touch; }
  .node { position: static; flex: none; width: 128px; transform: none; }
  .case__bar .case__tags { display: none; }
  .xp { padding-top: 72px; }
  .xp__about { display: block; padding: 48px 0; }
  .xp__orb { display: block; width: 96px; margin-bottom: 24px; }
  .xp__next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv__card { bottom: 62px; }
  .cv__filters { justify-content: flex-start; }
  .chapter__media { margin-top: 24px; }
  .chapter__grid { margin-top: 24px; gap: 12px; }
  .chapter__grid--four, .chapter__grid--devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter__grid--devices .chapter__media { grid-column: auto; }
  .chapter__grid--devices .chapter__media--half { grid-column: 1 / -1; }
  .chapter__grid--devices .chapter__media:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chapter__grid .chapter__media { margin-top: 0; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .legal__part { display: block; }
  .legal__part > .label { display: block; margin-bottom: 10px; }
  .legal__facts { grid-template-columns: 1fr; gap: 2px; }
  .legal__facts dd + dt { margin-top: 10px; }
}

/* ── reduced motion: nothing flies; the film's still, the board as a plain grid ── */
@media (prefers-reduced-motion: reduce) {
  .cta-cycle > span { animation: none; }
  .cta-cycle > span:first-child { visibility: hidden; }
  .world { height: auto; }
  .world__stage { position: static; display: flex; flex-direction: column; height: auto; overflow: visible; }
  .film { inset: 0 0 auto; height: 100svh; opacity: 1; transition: none; }
  .hero { position: relative; height: 100svh; color: #FFF; transition: none; }
  .hero__foot { opacity: 1; }
  .why-static { display: block; order: 1; padding: var(--section) var(--page); text-align: center; font-size: var(--display-xl); }
  .board { position: relative; order: 2; height: auto; }
  .board__plane { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 20px; padding: 64px var(--page); perspective: none; }
  .board__hud { display: none; }
  .board.is-static .card { position: static; width: auto !important; }
}
@media (prefers-contrast: more) { :root { --grey: #3F3F44; --line: #8A8A90; } }

/* no pointer to hover with: the names stand under the orbs */

/* pillars, calmer: each point is just its name, a short quiet list, no rules */
.row__list { display: flex; flex-direction: column; gap: .35em; width: auto; margin-top: clamp(28px, 3.4vw, 56px); font-size: var(--text-s); line-height: 1.4; color: var(--grey); }
.row__list li { padding: 0; border: 0; }
@media (max-width: 700px) { .row__list { margin-top: 20px; } }
.row__list { gap: .7em; }
.row__list li { display: flex; align-items: center; gap: .75em; }
.row__list svg { width: 1.5em; height: 1.5em; flex: none; color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   Wildcard layer (from Wildcard Website V2): glass nav, asterisk button, squircles, yellow marks, the forest footer
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
::selection { background: var(--accent); color: var(--ink); }
.card__img, .person__tile, .case__key, .chapter__media, .cv__card, .lb__media > *, .wc { corner-shape: squircle; }
@supports (corner-shape: squircle) { :root { --radius: clamp(22px, 2.6vw, 48px); } }

/* the yellow marker under a phrase */
mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__h1 em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 80%, transparent) 60%, color-mix(in srgb, var(--accent) 80%, transparent) 92%, transparent 92%); }
.hero.on .hero__h1 em { color: var(--ink); background: var(--accent); padding: 0 .12em; border-radius: .18em; }

/* the asterisk: Wildcard's mark, as an icon */
.ast { width: 1.05em; height: 1.05em; flex: none; fill: var(--accent); }

/* nav: no blend. The logo is forest on white; the links ride in one frosted glass capsule, the button is forest with the
   yellow asterisk. Over the footer the glass goes dark and the button turns yellow. */
.nav { --cta: 196px; mix-blend-mode: normal; color: var(--ink); }
.nav__logo img { width: 112px; filter: none; }
.nav__links { align-items: center; height: 48px; gap: 2px; padding: 0 6px; border-radius: 99px; background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 -10px 22px -16px rgba(34, 51, 34, .22); transition: background-color .4s var(--ease), color .4s var(--ease); }
.nav__links a { padding: 8px 14px; border-radius: 99px; transition: background-color .2s; }
.nav__links a:hover { background: rgba(34, 51, 34, .07); }
.nav.is-foot .nav__links { background: rgba(255, 255, 255, .1); color: #FFF; box-shadow: none; }
.nav.is-foot .nav__links a:hover { background: rgba(255, 255, 255, .1); }
.nav__cta { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 24px; }
.cta-cycle { width: 116px; text-align: left; }
.nav.is-foot + .nav__cta, .nav.is-foot ~ .nav__cta { background: var(--accent); color: var(--ink); }
.nav.is-foot ~ .nav__cta .ast { fill: var(--ink); }
@media (prefers-reduced-transparency: reduce) { .nav__links { background: #FFF; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* buttons: forest, with the asterisk's yellow on hover */
.chapter__link { background: var(--ink); transition: transform .1s ease-out, background-color .3s; }
.chapter__link:hover { background: #2C432C; }
.chip--filter[aria-pressed="true"] { background: var(--ink); }
.case__play { box-shadow: inset 0 0 0 1px var(--line); }

/* the header film: forest at the floor instead of black */
.film::after { background: linear-gradient(180deg, rgba(34,51,34,.24), rgba(34,51,34,0) 22%, rgba(34,51,34,0) 30%, rgba(34,51,34,.4) 50%, rgba(34,51,34,.62)); }
.why-static { color: var(--ink); }

.row__list svg { color: var(--ink); }

/* team: paper tiles; faq: the open answer gets a yellow plus */
.person__tile { background: var(--tile); }
.faq__item[open] .faq__plus { color: var(--ink); }
.faq__item[open] .faq__q { color: var(--ink); }
.faq__n { color: var(--case-line); }

/* footer: forest night. A question, the big peach button, four columns, the wordmark in yellow */
.foot { background: var(--ink); color: #EEF3EA; padding-top: clamp(112px, 10vw, 168px); }
.foot__top { flex-wrap: wrap; align-items: center; }
.foot__say { font-size: var(--display-l); line-height: 1.05; font-weight: var(--w-text); }
.foot__big { display: inline-flex; align-items: center; gap: .5em; height: clamp(64px, 6.4vw, 104px); padding: 0 clamp(28px, 2.8vw, 48px); border-radius: 99px; background: var(--peach); color: var(--ink);
  font-size: var(--display-m); font-weight: var(--w-text); white-space: nowrap; transition: transform .1s ease-out, background-color .3s; }
.foot__big svg { width: .8em; height: .8em; transition: transform .5s var(--ease); }
.foot__big:hover { background: #FFC59B; }
.foot__big:hover svg { transform: translate(.1em, -.1em); }
.foot__big:active { transform: scale(.98); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; margin-top: clamp(64px, 9vw, 140px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--text-s); line-height: 1.5; }
.foot__col .label { margin-bottom: 10px; }
.foot__links { flex-direction: column; align-items: flex-start; gap: 2px; }
.foot__col.foot__links { display: flex; }
.foot__links a { opacity: .8; }
.foot__mail { display: inline; font-size: inherit; color: inherit; }
.foot__logo { filter: none; margin: clamp(56px, 9vw, 150px) 0 clamp(20px, 3vw, 36px); }
.foot__base { color: var(--foot-label); }
.foot__base a:hover, .foot__legal a[aria-current] { color: #FFF; }
@media (max-width: 800px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__big { font-size: var(--text-l); }
}

/* legal pages: paper behind the head, the hairlines in forest */
.legal { background: linear-gradient(180deg, var(--paper), #FFF 520px); }

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   More wildcard.at: the yellow hero, italic accents, coloured service cards with pill tags, the partners' values,
   the asterisk promise on sage, a moss footer with the peach wordmark cut by the screen's edge
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root { --yellow: #FFEE32; --moss: #424F4D; }

/* italic accents: the second half of a thought leans, light, as on wildcard.at */
.h2 em, .hero__h1 em, .row__name em, .foot__q em, .foot__big em, .promise em { font-family: var(--slab); font-style: italic; font-weight: 700; letter-spacing: -.01em; }
.hero__h1 em, .hero.on .hero__h1 em { background: none; padding: 0; color: inherit; }
/* the hero text reads as large as on the Whyld site: Macklin Sans is narrower and lighter than Alcyone and has a lower x-height, so the same size looks smaller; at 1.25 a line runs as long as on Whyld */
.hero__foot { font-size: calc(var(--text-l) * 1.25); }

/* the header stands on Wildcard yellow; the board behind the d is white */
.world__stage, .film { background: var(--yellow); }
.board { background: #FFF; }
@media (prefers-reduced-motion: reduce) { .why-static { background: var(--yellow); } }

/* the partners' values: see the scroll story at the end */
.values { padding: 0 0 var(--section); }
.values__head { padding: 0 var(--page); }
.values__sub { max-width: 34em; margin-top: clamp(16px, 1.6vw, 24px); font-size: var(--text-m); line-height: 1.28; color: var(--grey); text-wrap: pretty; }

/* services: each pillar is its own coloured card, its points are outlined pills */
.row { --c: var(--yellow); --t: var(--ink); min-height: 88svh; margin: 6svh 0; padding: clamp(32px, 4vw, 72px); border: 0; border-radius: var(--radius); corner-shape: squircle; background: var(--c); color: var(--t); }
.row:nth-child(2) { --c: var(--peach); }
.row:nth-child(3) { --c: var(--sage); }
.row:nth-child(4) { --c: var(--moss); --t: #F6FAF2; }
.row__text { color: color-mix(in srgb, var(--t) 78%, transparent); }
.row__list { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3.4vw, 56px); color: var(--t); }
.row__list li { padding: .5em 1em; border: 1px solid color-mix(in srgb, var(--t) 55%, transparent); border-radius: 99px; font-family: var(--mono); font-size: var(--label); letter-spacing: .06em; text-transform: uppercase; }
.row__list li * { letter-spacing: .06em; }
.row__list svg { display: none; }
@media (max-width: 800px) { .row { min-height: 0; margin: 12px 0; padding: 28px 22px; } }
/* the stack: every card pins below the nav, each a step lower than the one before, and the next slides over it */
.rows { padding: var(--section) var(--page); }
.row { position: sticky; top: calc(96px + var(--i, 0) * clamp(14px, 1.4vw, 24px)); min-height: min(78svh, 760px); margin: 0 0 clamp(20px, 3svh, 40px); justify-content: flex-end; transform-origin: 50% 0; will-change: transform; }
.row:last-child { margin-bottom: 0; }
.row__name { font-size: var(--display-xl); line-height: .95; letter-spacing: -.035em; }
.row__text { max-width: 30em; }
@media (max-width: 800px) { .row { top: calc(80px + var(--i, 0) * 12px); min-height: 70svh; padding: 28px 22px; } .row__name { font-size: var(--display-l); } }

/* footer, as on wildcard.at: moss, the question, the big button, the peach wordmark cut by the edge */
.foot { background: var(--moss); padding-bottom: 0; }
.foot__say { display: grid; gap: 14px; max-width: 34em; }
.foot__q { font-size: var(--display-l); line-height: 1.05; font-weight: var(--w-text); }
.foot__ask { font-size: var(--text-m); line-height: 1.35; color: #C9D3C6; text-wrap: pretty; }
.foot__ask .foot__mail { color: var(--peach); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
/* one big sentence, the button set in its line */
.foot__top { display: block; }
.foot__line { max-width: 18ch; font-size: var(--display-l); line-height: 1.18; font-weight: var(--w-text); letter-spacing: -.03em; text-wrap: balance; }
.foot__line em { font-family: var(--slab); font-style: italic; font-weight: 700; letter-spacing: -.01em; }
.foot__line .foot__big { height: auto; padding: .04em .5em .1em; gap: .3em; font-size: inherit; vertical-align: .02em; }
.foot__line .foot__big svg { width: .6em; height: .6em; }
.foot__links a { color: var(--peach); opacity: 1; }
/* the columns read as one grid: links in the same size and rhythm as the address, the base line on the same four columns */
.foot__cols .foot__links { gap: .45em; font-size: inherit; font-weight: var(--w-text); line-height: inherit; }
.foot__col .label { margin-bottom: 12px; }
.foot__base { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 20px; }
.foot__base > span:first-child { grid-column: span 2; }
@media (max-width: 800px) { .foot__base { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot__links a:hover { color: #FFF; }
.foot__base { margin-top: clamp(48px, 6vw, 96px); }
.foot__logo { margin: clamp(24px, 3vw, 40px) 0 calc(-.07 * (100vw - 2 * var(--page))); }
.nav.is-foot .nav__links { background: rgba(255, 255, 255, .12); }

/* tags read like wildcard.at's: BRAND • STRATEGY • WEB */
.case__tags li + li::before { content: '•'; margin: 0 .6em; }

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   After the Wildcard Framer test: the values as a scroll story around the asterisk, work as app cards,
   and the last word before the footer
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* the story as a sticky index: the four values stay listed on the left, the asterisk turns on the right; the scroll walks
   down the list, the value it is on opens into its sentence (heights set by story-film.js) */
.story { position: relative; height: calc(100svh + 3 * 80svh); }
.story__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 80px); padding: 0 var(--page); }
.story__panel { display: grid; place-items: center; justify-self: center; width: min(50vw, 800px, 92svh); aspect-ratio: 1; }
.story__ast { width: 78%; aspect-ratio: 1; }
.story__ast svg { display: block; width: 100%; height: 100%; overflow: visible; }
.story__m { will-change: opacity, transform; }
.story__list { list-style: none; margin: 0; padding: 0; }
/* the head stays with the list, so every value reads as its ending: We work … outside in, at eye level */
.story__head { margin-bottom: clamp(24px, 3vw, 48px); }
.story__step { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); align-items: start; overflow: hidden; border-top: 1px solid var(--line); padding-top: .5em; }
.story__step:last-child { border-bottom: 1px solid var(--line); }
.story__n { padding-top: .55em; font-family: var(--mono); font-weight: var(--w-mono); font-size: var(--label); letter-spacing: .06em; color: var(--grey); }
/* one paragraph per value: the name in italic, the sentence running on after it */
.story__p { padding-bottom: .45em; font-size: var(--display-m); line-height: 1.1; font-weight: var(--w-text); text-wrap: pretty; }
.story__name { font-family: var(--slab); font-style: italic; font-weight: 700; letter-spacing: -.01em; }
html.js .story__step { transition: height .8s var(--ease); }
html.js .story__step .story__name, html.js .story__step .story__n { transition: opacity .6s var(--ease), color .6s var(--ease); }
html.js .story__step .story__rest { transition: opacity .5s var(--ease); }
html.js .story__step:not(.is-on) .story__name { opacity: .28; }
html.js .story__step:not(.is-on) .story__rest { opacity: 0; transition-duration: .25s; }
html.js .story__step.is-on .story__n { color: var(--ink); }
@media (max-width: 800px) {
  .story__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 8px; padding-top: 72px; }
  .story__panel { order: -1; width: min(76vw, 40svh, 360px); }
  .story__p { font-size: var(--text-l); }
  .story__step { grid-template-columns: 2.6em minmax(0, 1fr); }
  .story__n { padding-top: .35em; }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story__stage { position: static; height: auto; padding-block: 8svh; }
  html.js .story__step:not(.is-on) .story__name, html.js .story__step:not(.is-on) .story__rest { opacity: 1; }
}

/* work as cards, as in the Wildcard Framer test: two across on the site's 20px grid gap, the picture fills, the name sits white at the bottom */
.work { padding: 0 var(--page) var(--section); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 80px); list-style: none; padding: 0; }
.app__a { position: relative; display: flex; align-items: flex-end; overflow: hidden; aspect-ratio: 1 / .93; padding: clamp(20px, 2.2vw, 36px); border-radius: var(--radius); corner-shape: squircle; background: var(--tile); color: #FFF; isolation: isolate; }
.app__media, .app__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app__media { z-index: -1; }
.app__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .42)); }
.app__media > * { transition: transform 1.2s var(--ease), opacity .5s; }
.app__media video { opacity: 0; }
.app__a.is-playing .app__media video { opacity: 1; }
.app__a:hover .app__media > img, .app__a:hover .app__media > video { transform: scale(1.04); }
.app__t { font-size: var(--text-l); line-height: 1.25; font-weight: var(--w-text); text-wrap: balance; }
.app__a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 1100px) { .apps { grid-template-columns: minmax(0, 1fr); gap: 8px; } .app__a { aspect-ratio: auto; height: min(600px, 120vw); } }

/* the last word before the footer */
.cta { position: relative; display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 36px); padding: var(--section) var(--page); text-align: center; overflow: hidden; }
.cta__t { display: grid; font-size: var(--display-xl); line-height: .95; font-weight: var(--w-text); letter-spacing: -.035em; }
.cta__t * { letter-spacing: -.035em; }
.cta__l { display: block; }
.cta__t em { font-family: var(--slab); font-style: italic; font-weight: 700; }
.cta__link { display: inline-flex; align-items: center; gap: .4em; padding-bottom: .15em; border-bottom: 2px solid currentColor; font-size: var(--text-l); }
.cta__link svg { width: 1em; height: 1em; transition: transform .5s var(--ease); }
.cta__link:hover svg { transform: translateX(.25em); }
.trail { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.trail__img { position: absolute; left: 0; top: 0; width: clamp(180px, 17vw, 300px); height: auto; border-radius: 8px; opacity: 0; will-change: transform, opacity; }
.cta > :not(.trail) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { html.js .story__step, html.js .story__step * { transition: none; } .app__media > * { transition: none; } }

/* the film story: no panel, the asterisk stands free on the page (its white is multiplied into the white page) */
.story__ast.is-film { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
.story__panel:has(.is-film) { position: relative; }
.story__ast video { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
/* beside the index the asterisk is half as large again; the film's white edge is multiplied away, so it may reach past its panel */
@media (min-width: 801px) { .story__ast video { transform: scale(1.5); pointer-events: none; } .values { overflow-x: clip; } }

/* the header without its film: Wildcard yellow; the dive through the d opens onto the first sentence, which reads itself */
.world { height: 400svh; }
.hero, .hero.on { color: var(--ink); }
.reveal { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; overflow: hidden; background: #FFF; }
.reveal .about { padding: 0 var(--page); transform-origin: 50% 50%; will-change: transform; }
html.js .world:not(.is-open) .reveal { opacity: 0; pointer-events: none; }
.values { padding-top: 0; }   /* the story's stage brings its own air: its index sits in the middle of the screen */
@media (prefers-reduced-motion: reduce) {
  .world { height: auto; }
  .world__stage { position: static; display: flex; flex-direction: column; height: auto; overflow: visible; }
  .hero { position: relative; height: 100svh; }
  .reveal { position: relative; padding: var(--section) 0 0; }
  .reveal .about { transform: none !important; }
}

/* the last word and the footer are one: the CTA fades from white into the moss of the footer as it comes in (main.js),
   and the footer follows on without a break. Without motion it is moss from the start. */
.cta { min-height: 100svh; align-content: center; background: var(--moss); color: #EEF3EA; }
.cta__link { color: inherit; }
.foot__cols:first-child { margin-top: 0; }
main:has(> .cta:last-child, > .pin-spacer:last-child > .cta) + .foot, .cta + .foot { padding-top: 0; margin-top: -1px; }   /* overlaps the CTA by a pixel: the pin leaves a sub-pixel seam where the white page shows through */

/* ─── a project as a classic studio case (js/case.js): title and facts, the key film across the width, the project,
   a chapter for each part of the work, the next project ─────────────────────────────────────────────────────────── */
.pc { padding: 0 var(--page); }
.pc__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; padding: clamp(120px, 14vw, 220px) 0 clamp(40px, 5vw, 80px); }
.pc__back { grid-column: 1 / -1; justify-self: start; margin-bottom: clamp(24px, 3vw, 48px); }
.pc__title { grid-column: 1 / -1; font-size: var(--display-xl); line-height: .95; font-weight: var(--w-text); letter-spacing: -.035em; }
.pc__lede { grid-column: 1 / 8; margin-top: clamp(24px, 3vw, 48px); font-size: var(--display-m); line-height: 1.1; font-weight: var(--w-text); text-wrap: pretty; }
.pc__facts { grid-column: 9 / -1; align-self: end; display: grid; gap: 16px; margin-top: clamp(24px, 3vw, 48px); }
.pc__facts > div { padding-top: 12px; border-top: 1px solid var(--line); }
.pc__facts dt { color: var(--grey); margin-bottom: 4px; }
.pc__facts dd { font-size: var(--text-s); }
.pc__hero { margin: 0; border-radius: var(--radius); corner-shape: squircle; overflow: hidden; background: var(--tile); }
.pc__key { display: block; width: 100%; height: auto; max-height: 90svh; object-fit: cover; }
.pc__intro, .pc__ch-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
.pc__intro { padding: var(--section) 0; }
.pc__intro > .label { grid-column: 1 / 4; color: var(--grey); }
.pc__intro-text { grid-column: 4 / -1; }
.pc__intro-text > p { font-size: var(--display-m); line-height: 1.12; font-weight: var(--w-text); text-wrap: pretty; }
.pc__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-top: clamp(32px, 4vw, 64px); font-size: var(--text-s); line-height: 1.45; color: var(--grey); }
.pc__points li { padding: .8em 0 1.1em; border-top: 1px solid var(--line); text-wrap: pretty; }
.pc__points strong { color: var(--ink); font-weight: inherit; }
.pc__ch { padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line); }
.pc__ch-head { margin-bottom: clamp(32px, 4vw, 64px); }
.pc__n { grid-column: 1 / 2; color: var(--grey); padding-top: .6em; }
.pc__ch-t { grid-column: 2 / 6; font-size: var(--display-m); line-height: 1.05; font-weight: var(--w-text); }
.pc__ch-text { grid-column: 7 / -1; font-size: var(--text-s); line-height: 1.5; color: var(--grey); text-wrap: pretty; }
.pc__ch-text p + p { margin-top: .8em; }
.pc__link { display: inline-block; margin-top: 1.2em; color: var(--ink); border-bottom: 1px solid currentColor; }
.pc__ch .chapter__media { margin: 0 0 20px; }
.pc__ch .chapter__grid { margin-top: 0; }
.pc__next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; padding: var(--section) 0; border-top: 1px solid var(--line); }
.pc__next .label { grid-column: 1 / -1; color: var(--grey); margin-bottom: 16px; }
.pc__next-t { grid-column: 1 / 8; font-size: var(--display-xl); line-height: .95; font-weight: var(--w-text); letter-spacing: -.035em; transition: transform .6s var(--ease); }
.pc__next-img { grid-column: 9 / -1; aspect-ratio: 4 / 3; border-radius: var(--radius); corner-shape: squircle; overflow: hidden; background: var(--tile); }
.pc__next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pc__next:hover .pc__next-t { transform: translateX(.08em); }
.pc__next:hover .pc__next-img img { transform: scale(1.04); }
@media (max-width: 800px) {
  .pc__head { padding-top: 104px; }
  .pc__lede, .pc__facts, .pc__intro > .label, .pc__intro-text, .pc__n, .pc__ch-t, .pc__ch-text, .pc__next-t, .pc__next-img { grid-column: 1 / -1; }
  .pc__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc__intro > .label { margin-bottom: 16px; }
  .pc__points { grid-template-columns: 1fr; }
  .pc__ch-t { margin: 8px 0 16px; }
  .pc__next-img { margin-top: 24px; }
}

/* ─── the magazine (js/magazine.js): the list as coloured cards, and one article read in a calm column ─────────── */
.mg { padding: 0 var(--page) var(--section); }
.mg__head { padding: clamp(120px, 14vw, 220px) 0 clamp(40px, 5vw, 80px); }
.mg__title { font-size: var(--display-xl); line-height: .95; font-weight: var(--w-text); letter-spacing: -.035em; }
.mg__sub { max-width: 26em; margin-top: clamp(16px, 2vw, 28px); font-size: var(--text-l); line-height: 1.25; color: var(--grey); text-wrap: pretty; }
.mg__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; font-size: var(--text-s); line-height: 1.3; }
.mg__by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }   /* the team portraits from the start page, cut to the face */
.mg__by span { display: grid; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.mg__by b { font-weight: var(--w-text); color: var(--ink); }
/* one article */
.mg__ahead { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2vw, 28px); max-width: 1040px; padding: clamp(120px, 14vw, 200px) 0 clamp(40px, 5vw, 72px); }
/* the way back on a case or an article: a button, not a breadcrumb */
.back-btn { display: inline-flex; align-items: center; gap: .5em; height: 44px; padding: 0 20px 0 16px; border-radius: 99px; background: var(--ink); color: #FFF; font-size: var(--btn); font-weight: var(--w-ui); transition: background .3s; }
.back-btn svg { width: 1.1em; height: 1.1em; transition: transform .5s var(--ease); }
.back-btn:hover { background: var(--moss); }
.back-btn:hover svg { transform: translateX(-.2em); }
.mg__atitle { font-size: var(--display-l); line-height: 1.02; font-weight: var(--w-text); letter-spacing: -.03em; text-wrap: balance; }
.mg__lede { max-width: 30em; font-size: var(--text-l); line-height: 1.3; color: var(--grey); text-wrap: pretty; }
.mg__ahead .mg__by { margin: 0; }
.mg__ahead .mg__by img { width: 48px; height: 48px; }
.mg__body { max-width: 720px; margin: clamp(48px, 6vw, 96px) auto 0; font-size: var(--text-s); line-height: 1.65; text-wrap: pretty; }
.mg__body > * + * { margin-top: 1.1em; }
.mg__body h2 { margin-top: 2.2em; font-size: var(--display-m); line-height: 1.1; font-weight: var(--w-text); letter-spacing: -.02em; }
.mg__body h3 { margin-top: 1.8em; font-size: var(--text-l); line-height: 1.25; font-weight: var(--w-text); }
.mg__body h2 + *, .mg__body h3 + * { margin-top: .6em; }
.mg__body strong { font-weight: var(--w-text); }
.mg__body a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.mg__body :is(ul, ol) { padding-left: 1.2em; }
.mg__body ul { list-style: disc; }
.mg__body ol { list-style: decimal; }
.mg__body li + li { margin-top: .4em; }
.mg__body blockquote { padding-left: 1em; border-left: 2px solid var(--peach); font-size: var(--text-l); line-height: 1.35; }
.mg__fig { margin: 2em 0; }
.mg__fig img, .mg__fig iframe { display: block; width: 100%; border-radius: calc(var(--radius) * .6); background: var(--tile); }
.mg__fig img { height: auto; }   /* width/height in the markup only reserve the ratio before the picture loads */
.mg__fig iframe { aspect-ratio: 16 / 9; height: auto; border: 0; }
.mg__fig figcaption { margin-top: .6em; font-size: var(--label); color: var(--grey); }
.mg__more { padding-top: var(--section); }
.mg__more .h2 { margin-bottom: clamp(24px, 3vw, 48px); }
@media (max-width: 800px) {
  .mg__head, .mg__ahead { padding-top: 104px; }
  }


/* the magazine as a list in the look of the FAQ: number, title, an arrow; the row opens the article */
.mg__rows { border-bottom: 1px solid var(--line); }
.mg__row { border-top: 1px solid var(--line); }
.mg__row-a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 9fr) auto; align-items: baseline; gap: 24px; padding: clamp(20px, 2.2vw, 34px) 0; transition: color .3s; }
.mg__row-a:hover { color: var(--grey); }
.mg__n { color: var(--case-line); }
.mg__row-main { display: grid; gap: 10px; }
.mg__row-t { font-size: var(--display-m); line-height: 1.08; font-weight: var(--w-text); text-wrap: balance; }
.mg__row-meta { color: var(--grey); }
.mg__arrow { align-self: center; width: 26px; height: 26px; transition: transform .5s var(--ease); }
.mg__row-a:hover .mg__arrow { transform: translate(3px, -3px); }
@media (max-width: 800px) {
  .mg__row-a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .mg__n { grid-column: 1 / -1; }
}
.mg__body > .mg__fig:first-child { margin-top: 0; }

/* ── the nav on phones (js/menu.js): the links fold behind one glass button next to the call to action and open as a
   small white panel under the bar ── */
.nav__menu { display: none; }
@media (max-width: 800px) {
  .nav { gap: 8px; padding-right: calc(var(--page) + var(--cta) + 8px); }
  .nav__logo { flex: none; }
  .nav__logo img { width: 84px; }
  .nav__menu { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 99px; font: inherit; color: inherit;
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: inset 0 -10px 22px -16px rgba(34, 51, 34, .22); cursor: pointer; transition: transform .1s ease-out; }
  .nav__menu:active { transform: scale(.97); }
  .nav.is-foot .nav__menu { background: rgba(255, 255, 255, .12); color: #FFF; box-shadow: none; }
  .nav.is-open .nav__links { display: flex; position: fixed; top: 72px; left: var(--page); right: var(--page); height: auto; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px; border-radius: 24px; background: #FFF; color: var(--ink);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 18px 48px rgba(34, 51, 34, .16); transform-origin: top right;
    animation: menu-in .2s cubic-bezier(.23, 1, .32, 1); }
  .nav.is-open .nav__links a { padding: 14px 16px; border-radius: 16px; font-size: var(--text-l); }
}
.nav__menu-i { position: relative; width: 18px; height: 12px; }
.nav__menu-i::before, .nav__menu-i::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.nav__menu-i::before { top: 2px; }
.nav__menu-i::after { bottom: 2px; }
.nav.is-open .nav__menu-i::before { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__menu-i::after { transform: translateY(-3px) rotate(-45deg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .nav.is-open .nav__links { animation-name: menu-fade; } .nav__menu-i::before, .nav__menu-i::after { transition: none; } }
@keyframes menu-fade { from { opacity: 0; } }

/* ─── colour-coded cases, as on wildcard.at: each project's colour (--case, set by case.js / experiment.js) runs
   through its pages. The title leans into it in the slab italic, the chapters are numbered and named in it, the
   hairlines take a trace of it. The tones (js/accent.js) are the colour darkened only as far as white needs: --case-display for large type, --case-text for the main text, --case-soft for what was grey. */
.pc__title em, .pc__next-t em { font-family: var(--slab); font-style: italic; font-weight: 700; letter-spacing: -.01em; color: var(--case-display); }
.pc, .xp { color: var(--case-text, var(--ink)); }   /* every word on the page is in the project's colour */
.pc__title, .pc__next-t, .pc__ch-t { color: var(--case-display); }   /* large type may stay brighter */
.pc .label, .pc__facts dt, .pc__points, .pc__ch-text, .pc__n, .xp .label, .xp__slash { color: var(--case-soft, var(--grey)); }
.pc__link, .pc__points strong, .xp__eyebrow a, .xp .chapter__link { color: var(--case-text, var(--ink)); }
.xp__eyebrow a:hover { color: var(--case-soft, var(--grey)); }
.pc__facts > div, .pc__points li, .pc__ch, .pc__next { border-color: color-mix(in srgb, var(--case) 45%, transparent); }

/* ─── the case bar (js/case-bar.js): one frosted capsule along the bottom of a case page, the same glass as the nav.
   All work on the left; in the middle the parts of the project as segments that fill in the project's colour, with
   the part being read the widest, its name on hover only; the previous and the next project on the right. It rises in once the key
   film has gone by and sinks away before the end of the page, along the same path both ways. */
.cbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 4px;
  height: 56px; padding: 0 6px; border-radius: 99px; background: var(--glass); color: var(--case-text, var(--ink));
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 -10px 22px -16px rgba(34, 51, 34, .22), 0 10px 30px -14px rgba(34, 51, 34, .3);
  font-size: var(--ui); font-weight: var(--w-ui); line-height: 1;
  opacity: 0; transform: translate(-50%, calc(100% + 24px)); transition: transform .5s var(--ease), opacity .3s var(--ease); }
.cbar.is-shown { opacity: 1; transform: translate(-50%, 0); }
.cbar svg { width: 18px; height: 18px; flex: none; }
.cbar__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 99px; white-space: nowrap; transition: background-color .2s, transform .12s ease-out; }
.cbar__btn:hover { background: rgba(34, 51, 34, .07); }
.cbar__btn:active { transform: scale(.97); }
.cbar__prev { width: 44px; padding: 0; justify-content: center; }
.cbar__next { background: var(--ink); color: #FFF; padding: 0 12px 0 18px; }
.cbar__next:hover { background: var(--moss); }
.cbar__next-l { opacity: .6; }
.cbar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--next); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.cbar__where { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; margin: 0 4px; border-inline: 1px solid rgba(34, 51, 34, .1); }
.cbar__steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cbar__steps a { display: grid; align-items: center; width: clamp(18px, 2.2vw, 34px); height: 44px; }   /* a full-height target around a thin line */
.cbar__steps i { position: relative; display: block; height: 4px; border-radius: 4px; background: rgba(34, 51, 34, .14); overflow: hidden; transition: height .2s var(--ease); }
.cbar__steps i::after { content: ''; position: absolute; inset: 0; background: var(--case); transform: scaleX(var(--fill)); transform-origin: 0 50%; }
.cbar__steps a:hover i, .cbar__steps a[aria-current] i { height: 6px; }
.cbar__where { padding-inline: 18px; }
.cbar a:focus-visible { outline: 2px solid var(--case-text); outline-offset: 2px; }
/* phones: across the width, icons and segments only */
@media (max-width: 800px) {
  .cbar { left: 12px; right: 12px; justify-content: space-between; transform: translateY(calc(100% + 24px)); }
  .cbar.is-shown { transform: none; }
  .cbar__all span, .cbar__next-l, .cbar__next-t { display: none; }
  .cbar__all { width: 44px; padding: 0; justify-content: center; }
  .cbar__where { flex: 1; justify-content: center; padding: 0 8px; }
  .cbar__steps { flex: 1; }
  .cbar__steps li { flex: 1; } .cbar__steps a { width: auto; }
  .cbar__next { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .cbar { transform: translate(-50%, 0); transition: opacity .2s; } @media (max-width: 800px) { .cbar { transform: none; } } }
@media (prefers-reduced-transparency: reduce) { .cbar { background: #FFF; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ─── a case on dark (data `dark`, html.case-dark; IQONIC, as on wildcard.at): the page is near black, the words white,
   the project's colour stands as it is. The nav keeps its glass; the logo turns white, the bar goes dark glass. */
html.case-dark, html.case-dark body, html.case-dark .case, html.case-dark .xp { background: var(--case-bg, #1F1F1F); }
html.case-dark .nav__logo img { filter: brightness(0) invert(1); }
html.case-dark .back-btn { background: #FFF; color: var(--ink); }
html.case-dark .back-btn:hover { background: var(--case); }
html.case-dark .pc__hero, html.case-dark .pc__next-img { background: color-mix(in srgb, var(--case-bg, #1F1F1F) 85%, #FFF); }
html.case-dark .cbar { background: color-mix(in srgb, var(--case-bg, #282828) 70%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -14px rgba(0, 0, 0, .6); }
html.case-dark .cbar__btn:hover { background: rgba(255, 255, 255, .08); }
html.case-dark .cbar__next { background: #FFF; color: var(--ink); }
html.case-dark .cbar__next:hover { background: var(--case); }
html.case-dark .cbar__where { border-color: rgba(255, 255, 255, .12); }
html.case-dark .cbar__steps i { background: rgba(255, 255, 255, .18); }
@media (prefers-reduced-transparency: reduce) { html.case-dark .cbar { background: #2A2A2A; } }
