/* ============================================================================
   PUBLIC SITE — redesign 2026-10
   ----------------------------------------------------------------------------
   Ported from the approved prototype, design-reference/home/index.html.
   Every value comes from the --pub-* block of tokens.css. Black and white
   everywhere; colour arrives only with project media.

   Load order: fonts, tokens, site. Page-specific blocks (home, data-viz,
   contacts, editions) follow the shared system below.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--pub-bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--pub-bg);
    color: var(--pub-fg);
    font-family: var(--pub-text);
    font-size: var(--pub-text-size);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Author display rules outrank the browser's own [hidden]. */
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid var(--pub-fg); outline-offset: 3px; }

::selection { background: var(--pub-fg); color: var(--pub-bg); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--pub-fg); color: var(--pub-bg);
    padding: 8px 14px;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
}
.skip-link:focus { left: var(--pub-gut); top: 12px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- small type ------------------------------------------------------- */

.mono {
    font-family: var(--pub-mono);
    font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track);
    text-transform: uppercase;
    line-height: 1.5;
}
.dim { color: var(--pub-dim); }

/* ==========================================================================
   HEADER — smile on the left, every section on the right
   ========================================================================== */

.top {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pub-gut) 14px;
    /* Reads on anything underneath it, video included, without a bar. */
    mix-blend-mode: difference;
    pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* Back: under the smile on every page but the home. */
.back {
    color: var(--pub-fg); line-height: 1.2; padding: 2px 0;
    transition: opacity .25s;
}
.back:focus-visible { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .back:hover { opacity: .6; } }

/* The way home: a :) that turns to face the pointer (initHomeFace). */
.home-link {
    display: inline-flex; flex: none;
    width: 30px; height: 30px; margin-top: -8px;
    color: var(--pub-fg);
}
.home-link__face {
    width: 100%; height: 100%;
    fill: currentColor;
    transition: transform .25s var(--pub-ease);
}
.home-link__face path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.top-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: flex-end;
    gap: clamp(12px, 1.6vw, 26px);
}

/* Each label rolls: the copy underneath rises into place on hover. */
.top-nav a {
    position: relative; display: inline-block;
    height: 1.35em; line-height: 1.35em; overflow: hidden;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    color: var(--pub-fg);
}
.top-nav a span { display: block; transition: transform .45s var(--pub-ease-roll); }
.top-nav a span + span { position: absolute; inset: 0; transform: translateY(100%); }
.top-nav a:focus-visible span:first-child { transform: translateY(-100%); }
.top-nav a:focus-visible span + span { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
    .top-nav a:hover span:first-child { transform: translateY(-100%); }
    .top-nav a:hover span + span { transform: translateY(0); }
}

/* The current section carries a small dot. */
.top-nav a[aria-current] span::before { content: "\25CF\00a0"; font-size: 7px; vertical-align: 2px; }
.top-nav .lang a { color: var(--pub-dim); }

@media (max-width: 760px) {
    /* No hamburger: the same items on one row under the smile, scrolling. */
    .top { flex-direction: column; align-items: stretch; gap: 10px; }
    .top-nav { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-nav ul { flex-wrap: nowrap; justify-content: flex-start; width: max-content; }
}

/* ---- phone menu: hamburger and full-screen overlay (initMenu) ------------- */

.burger, .menu { display: none; }

@media (max-width: 820px) {
    .top-nav { display: none; }
    /* Opposite the smile, whatever the column layout under 760px does. */
    .burger {
        position: absolute; top: calc(env(safe-area-inset-top, 0px) + 6px); right: calc(var(--pub-gut) - 10px);
        display: block; width: 44px; height: 44px; padding: 0; border: 0; background: none;
        color: var(--pub-fg); cursor: pointer;
    }
    .burger span {
        position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: currentColor;
        transition: transform .35s var(--pub-ease);
    }
    .burger span:first-child { transform: translateY(-4px); }
    .burger span + span      { transform: translateY(4px); }
    .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
    .burger[aria-expanded="true"] span + span      { transform: rotate(-45deg); }

    .menu {
        position: fixed; inset: 0; z-index: 45;
        height: 100vh; height: 100dvh;
        display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
        padding: calc(env(safe-area-inset-top, 0px) + 104px) var(--pub-gut) calc(env(safe-area-inset-bottom, 0px) + 28px);
        background: #000; color: #fff;
        overflow-y: auto; overscroll-behavior: contain;
        visibility: hidden; opacity: 0;
        transition: opacity .3s var(--pub-ease), visibility 0s .3s;
    }
    .menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--pub-ease); }
    .menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .08em; }
    .menu__nav a {
        display: inline-block; color: #fff;
        font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
        font-size: clamp(34px, 11vw, 64px); line-height: 1; letter-spacing: -.02em;
    }
    .menu__nav a[aria-current] { opacity: .55; }
    .menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
    .menu__foot a { color: #fff; }
    .menu__foot span:not(.is-current) { opacity: .5; }

    /* Items rise in, 60ms apart. */
    .menu li, .menu__foot { opacity: 0; transform: translateY(28px); transition: opacity .2s, transform .2s; }
    .menu.is-open li, .menu.is-open .menu__foot {
        opacity: 1; transform: none;
        transition: opacity .5s var(--pub-ease) calc(80ms + var(--i) * 60ms),
                    transform .6s var(--pub-ease) calc(80ms + var(--i) * 60ms);
    }
    html.menu-open { overflow: hidden; }
    html.menu-open body { overflow: hidden; }
}

/* ==========================================================================
   CURSOR — white square, fading ASCII trail (fine pointers only)
   ========================================================================== */

.cursor, .cursor-trail__char { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2147483000; }
.cursor {
    width: 9px; height: 9px; margin: -4px 0 0 -4px;
    background: var(--pub-fg); mix-blend-mode: difference;
    will-change: transform;
}
.cursor-trail { position: fixed; inset: 0; pointer-events: none; z-index: 2147482999; }
.cursor-trail__char {
    font-family: var(--pub-mono); font-size: 11px; line-height: 1;
    color: var(--pub-fg); will-change: transform, opacity;
}
@media (pointer: fine) and (hover: hover) {
    html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
}

/* ==========================================================================
   REVEALS — one rise for every text and content block, on load and on scroll
   --------------------------------------------------------------------------
   .rv is a single block; [data-rv] reveals each of its children. One
   IntersectionObserver (initReveal) adds .in and staggers siblings that
   arrive together 60ms apart through --rv-d. Gated on html.js: without
   JavaScript every element is simply there (the <noscript> rule in the
   layout), and if the script never takes over, everything arrives at 4 s.
   ========================================================================== */

.rv, [data-rv] > * {
    transition: opacity var(--pub-reveal) var(--pub-ease), transform var(--pub-reveal) var(--pub-ease);
    transition-delay: var(--rv-d, 0ms);
}
.js .rv:not(.in):not(.shead), .js [data-rv] > :not(.in) { opacity: 0; transform: translateY(14px); }

/* If the script never takes over (it adds .rv-ready), everything still
   arrives after 4 s. Once it does, reveals wait for the scroll as they
   should, instead of all firing at the 4 s mark. */
.js:not(.rv-ready) .rv:not(.in):not(.shead),
.js:not(.rv-ready) [data-rv] > :not(.in) { animation: rv-fallback 0s 4s forwards; }
.js:not(.rv-ready) .shead:not(.in) .h2c { animation: h2c-fallback 0s 4s forwards; }
@keyframes rv-fallback { to { opacity: 1; transform: none; } }
@keyframes h2c-fallback { to { transform: none; } }

/* Page enter: a short fade on every navigation. */
.js body { animation: page-in .35s var(--pub-ease) backwards; }
@keyframes page-in { from { opacity: 0; } }

/* ==========================================================================
   SECTION TITLES — letters rise from a mask, 24ms apart
   ========================================================================== */

.shead {
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
    gap: 12px 24px;
    padding: 0 var(--pub-gut) 26px;
    border-bottom: 1px solid var(--pub-line);
}
.shead h1, .shead h2 {
    margin: 0;
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: var(--pub-title-size); line-height: .92; letter-spacing: -.03em;
    text-wrap: balance;
}
.shead .w {
    display: inline-block; overflow: hidden; vertical-align: top;
    /* Room on both sides for the stretch; the margin cancels it. */
    padding: 0 .14em .04em; margin: 0 -.14em;
}
/* The mask lives only for the rise (initSectionTitles adds .is-revealed). */
.shead .is-revealed .w, html:not(.js) .shead .w { overflow: visible; }
.shead .h2c {
    display: inline-block; transform: translateY(108%);
    transition: transform 1s var(--pub-ease-rise) calc(var(--i) * var(--pub-rise-step));
}
.shead.in .h2c, html:not(.js) .shead .h2c { transform: none; }
.shead .k {
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    color: var(--pub-dim); padding-bottom: .6em;
}
a.k:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { a.k:hover { color: var(--pub-fg); } }

/* Letters that stretch under the pointer (initStretch). */
.wd { display: inline-block; white-space: nowrap; padding: 0 .14em; margin: 0 -.14em; }
.ch {
    display: inline-block; transform-origin: center; white-space: pre;
    transition: transform .35s var(--pub-ease);
}

/* ==========================================================================
   BUTTONS AND LINKS
   ========================================================================== */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    background: var(--pub-bg); color: var(--pub-fg);
    border: 1px solid var(--pub-fg);
    padding: 8px 12px; cursor: pointer;
    transition: background-color .25s, color .25s;
}
.btn:focus-visible { background: var(--pub-fg); color: var(--pub-bg); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--pub-fg); color: var(--pub-bg); } }

.more {
    display: inline-block; width: max-content;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    color: var(--pub-dim);
    border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.more:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--pub-fg); } }

/* ==========================================================================
   PAGE SHELL
   ========================================================================== */

/* Clears the fixed header; sections are full width with the gutter. */
/* Header is ~64px tall with the back button: first content sits ~32px below. */
.page { padding-top: 96px; }
.page > section + section { margin-top: var(--gap-section); }

.gut { padding-left: var(--pub-gut); padding-right: var(--pub-gut); }

/* Running text spans the content width; past ~110 characters a line it
   flows in two balanced columns. */
.prose { color: var(--pub-body); font-size: var(--pub-desc-size); line-height: 1.55; }
/* The first paragraph of an introduction leads, a size up. */
.prose--lead > p:first-child { font-size: var(--pub-lead-size); line-height: 1.5; }
.page, .ie-page__main { container-type: inline-size; }
/* Descriptive texts (introductions, project, edition and item texts, the
   bio): 16px, justified, hyphenated by the page's lang. Lead paragraphs
   the same size. Legal pages, labels and lists keep the defaults. */
.prose--desc, .prose--desc.prose--lead > p:first-child, .plead.plead--desc, .dv .dv__lead {
    font-size: 16px; line-height: 1.6;
    text-align: justify; text-justify: inter-word; text-align-last: left;
    -webkit-hyphens: auto; hyphens: auto;
}
.plead.plead--desc { max-width: none; color: var(--pub-body); text-wrap: wrap; }
/* At 1400px a full-width line runs past ~120 characters: two columns. */
@container (min-width: 1400px) {
    .prose { column-count: 2; column-gap: clamp(32px, 4vw, 80px); column-fill: balance; }
    .prose--desc { column-gap: clamp(32px, 4vw, 64px); }
    .prose p, .prose li { orphans: 3; widows: 3; }
    .prose h2, .prose h3 { break-after: avoid; }
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--pub-fg); font-weight: 500; }
.prose a { border-bottom: 1px solid var(--pub-faint); }
@media (hover: hover) and (pointer: fine) { .prose a:hover { border-color: var(--pub-fg); } }
.prose h2, .prose h3 {
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    color: var(--pub-fg); letter-spacing: -.01em; line-height: 1.1;
    margin: 2em 0 .7em;
}
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 17px; }
.prose ul { padding-left: 1.2em; }

/* Key / value lists: metadata, contact details. */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--pub-line); margin: 0; }
.kv > * { margin: 0; padding: 14px 0 0; min-width: 0; }
.kv dd { padding: 4px 0 14px; border-bottom: 1px solid var(--pub-line); }
.kv dt {
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase; color: var(--pub-dim);
}
.kv dd { font-family: var(--pub-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 26px); overflow-wrap: anywhere; }
.kv dd.kv__mono { font-family: var(--pub-mono); font-weight: 400; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .kv a:hover { text-decoration: underline; text-underline-offset: 4px; } }

.placeholder-media {
    display: grid; place-items: center;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase; color: var(--pub-dim);
    background: radial-gradient(circle at 50% 50%, #151515 0, #050505 70%);
}

/* ==========================================================================
   PROJECT CARDS AND GRID
   --------------------------------------------------------------------------
   3 / 2 / 1 columns, hairlines on the cards. A muted loop plays while the
   card is in view (initLoops); without one, the cover image.
   ========================================================================== */

.grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--pub-line);
}
@media (max-width: 1199px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid { grid-template-columns: minmax(0, 1fr); } }

/* A low, wide rectangle: the media fills it, the text sits on top. */
.card {
    position: relative; display: block; min-width: 0;
    aspect-ratio: 2.2 / 1; overflow: hidden; background: #0b0b0b;
    border-right: 1px solid var(--pub-line); border-bottom: 1px solid var(--pub-line);
}
@media (max-width: 700px) { .card { aspect-ratio: 2 / 1; } }
/* The zoom on hover moves the wrapper: the video layer itself stays put. */
.card__media {
    position: absolute; inset: 0; background: #0b0b0b;
    transform: scale(1.001); transition: transform 1.2s var(--pub-ease);
}
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card:focus-visible .card__media { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media { transform: scale(1.06); } }
.card__media .placeholder-media { position: absolute; inset: 0; }

/* Scrim: dark at the bottom and left, so white text reads on any video. */
.card__body {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    padding: 16px clamp(14px, 1.4vw, 22px);
    color: #fff;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%),
        linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 60%);
}
.card__title {
    margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    font-family: "Space Grotesk", var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.01em; line-height: 1.02;
    text-wrap: balance;
}
.card__arrow {
    flex: none; font-family: var(--pub-mono); font-weight: 400; font-size: 14px;
    transform: translateX(-6px); opacity: 0; transition: .4s;
}
.card:focus-visible .card__arrow { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__arrow { transform: none; opacity: 1; } }
.card__meta { margin: 0; color: rgba(255, 255, 255, .82); }
.card__meta + .card__meta { color: rgba(255, 255, 255, .6); }
/* Touch: no hover, so the arrow simply stays. */
@media (hover: none) { .card__arrow { opacity: 1; transform: none; } }

/* ==========================================================================
   FILTERS (archive)
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px var(--pub-gut); border-bottom: 1px solid var(--pub-line); }
.filters__label { margin-right: 6px; }
.chip {
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    background: none; color: var(--pub-dim);
    border: 1px solid var(--pub-faint); padding: 6px 10px; cursor: pointer;
    transition: color .25s, border-color .25s;
}
.chip:focus-visible { color: var(--pub-fg); border-color: var(--pub-dim); }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--pub-fg); border-color: var(--pub-dim); } }
.chip[aria-pressed="true"] { color: var(--pub-bg); background: var(--pub-fg); border-color: var(--pub-fg); }
.filters__count { margin-left: auto; }

/* ==========================================================================
   INVISIBLE ECOLOGIES — the list of editions (home, umbrella, edition pages)
   ========================================================================== */

.ie__eds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pub-line); }
.ie__eds li { border-bottom: 1px solid var(--pub-line); }
.ie__eds a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; }
.ie__eds b {
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(24px, 2.5vw, 40px); letter-spacing: -.02em; line-height: 1;
}
.ie__eds i { font-style: normal; font-family: var(--pub-mono); font-size: 13px; align-self: center; transition: transform .35s var(--pub-ease); }
.ie__eds span {
    grid-column: 1 / -1;
    font-family: var(--pub-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--pub-dim); line-height: 1.5;
}
.ie__eds a:focus-visible i { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .ie__eds a:hover i { transform: translateX(6px); } }
.ie__eds a:focus-visible span { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .ie__eds a:hover span { color: var(--pub-fg); } }

/* The exhibitions: the same compact card, three to a row. */
.ie__eds--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-cards); border-top: 0; }
.ie__eds--grid li { border-top: 1px solid var(--pub-line); border-bottom: 0; }
.ie__eds--grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--pub-line); }
.ie__eds--grid a { padding: 12px 0 14px; }
.ie__eds--grid b { font-size: clamp(17px, 1.35vw, 24px); letter-spacing: -.01em; }
.ie__eds--grid span { font-size: 10px; }
@media (max-width: 900px) {
    .ie__eds--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ie__eds--grid li:nth-last-child(-n+3) { border-bottom: 0; }
    .ie__eds--grid li:nth-last-child(-n+2) { border-bottom: 1px solid var(--pub-line); }
}
@media (max-width: 560px) {
    .ie__eds--grid { grid-template-columns: minmax(0, 1fr); }
    .ie__eds--grid li:nth-last-child(-n+2) { border-bottom: 0; }
    .ie__eds--grid li:last-child { border-bottom: 1px solid var(--pub-line); }
}

/* ==========================================================================
   DATA-VIZ COMPONENT AND CONTACTS — home and inner pages
   ========================================================================== */

/* ---- data-viz: text · window · list ------------------------------------- */

.dv {
    display: grid;
    grid-template-columns: minmax(0, 28fr) minmax(0, 54fr) minmax(200px, 18fr);
    min-height: min(78vh, 760px);
}
.dv__text { border-right: 1px solid var(--pub-line); }
.dv__panel { padding: 44px var(--pub-gut) 40px; display: flex; flex-direction: column; gap: 18px; }
.dv__panel[hidden] { display: none; }
.dv__panel h3 {
    margin: 0; overflow-wrap: anywhere;
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(26px, 2.7vw, 46px); line-height: .96; letter-spacing: -.02em; text-wrap: balance;
}
.dv__lead { margin: 0; max-width: 42ch; color: var(--pub-body); }
.dv__panel .btn { align-self: flex-start; margin-top: 6px; }
.dv__panel:not([hidden]) { animation: dv-in .45s var(--pub-ease); }
@keyframes dv-in { from { opacity: 0; transform: translateY(10px); } }

.dv__win { position: relative; min-height: 360px; border-right: 1px solid var(--pub-line); background: var(--pub-panel); }
.dv__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--pub-panel); }
.dv__win .placeholder-media { position: absolute; inset: 0; }
.dv__win [hidden] { display: none; }
.dv__fs { display: none; }
.dv__bar {
    position: absolute; inset: 0 0 auto 0; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; pointer-events: none;
}
.dv__bar > * { pointer-events: auto; }

.dv__list { list-style: none; margin: 0; padding: 44px 0 0; display: flex; flex-direction: column; }
.dv__list a {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px;
    padding: 12px var(--pub-gut) 12px 18px;
    font-family: var(--pub-mono); font-size: var(--pub-mono-size); letter-spacing: .12em; text-transform: uppercase;
    line-height: 1.45; color: var(--pub-dim); overflow-wrap: break-word; hyphens: auto;
    border-left: 1px solid transparent;
    transition: color .3s, border-color .3s;
}
@media (hover: hover) and (pointer: fine) { .dv__list a:hover { color: var(--pub-fg); } }
.dv__list a[aria-selected="true"] { color: var(--pub-fg); border-left-color: var(--pub-fg); }
.dv__list a:focus-visible { outline: 1px solid var(--pub-fg); outline-offset: -4px; }

@media (max-width: 1100px) {
    .dv { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .dv__list { order: -1; flex-direction: row; overflow-x: auto; padding: 0; border-bottom: 1px solid var(--pub-line); scrollbar-width: none; }
    .dv__list li { flex: none; }
    .dv__list a { grid-template-columns: auto auto; white-space: nowrap; border-left: 0; border-bottom: 1px solid transparent; padding: 14px 16px; }
    .dv__list a[aria-selected="true"] { border-bottom-color: var(--pub-fg); }
    .dv__text { border-right: 0; }
    .dv__panel { padding-bottom: 24px; }
    .dv__win { border-right: 0; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---- contacts: portrait under a lens ------------------------------------ */

.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lens-photo {
    position: relative; overflow: hidden; max-width: 100%;
    aspect-ratio: 1043 / 1138;
    border-right: 1px solid var(--pub-line);
    background: #0b0b0b;
}
.lens-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens-photo .lens-photo__inv { clip-path: inset(0 100% 100% 0); filter: invert(1); }
.lens-photo__lens {
    position: absolute; top: 0; left: 0; width: 150px; height: 150px;
    border: 1px solid var(--pub-fg); pointer-events: none;
    opacity: 0; transition: opacity .25s;
}
.lens-photo__lens span {
    position: absolute; top: -18px; left: -1px;
    font-family: var(--pub-mono); font-size: 10px; letter-spacing: .1em; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.lens-photo.is-on .lens-photo__lens { opacity: 1; }
@media (pointer: fine) and (hover: hover) { .lens-photo { cursor: none; } }

.contacts__body { padding: 44px var(--pub-gut); min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.contacts__big {
    margin: 0;
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: var(--pub-big-size); line-height: .96; letter-spacing: -.02em;
}
.contacts__bio { margin: 0; font-size: var(--pub-desc-size); line-height: 1.55; color: var(--pub-body); }

@media (max-width: 760px) {
    .contacts { grid-template-columns: minmax(0, 1fr); }
    /* The address fits on one line at 390 px. */
    .contacts .kv dd { font-size: 15px; }
    .lens-photo { border-right: 0; }
}

/* ==========================================================================
   INNER PAGES — project, edition, umbrella, Data-viz item, Contacts, CV
   ========================================================================== */

/* ---- page head --------------------------------------------------------- */

.phead { display: grid; gap: 18px; padding: 0 var(--pub-gut) var(--gap-title-text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.crumbs a:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--pub-fg); } }
.ptitle {
    margin: 0;
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(36px, 6.2vw, 104px); line-height: .92; letter-spacing: -.03em;
    text-wrap: balance; overflow-wrap: break-word;
}
.psub { margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--pub-body); }
/* The recap under a page title: one or two sentences, a size up from body. */
.plead { margin: 0; max-width: 62ch; font-size: var(--pub-lead-size); line-height: 1.5; color: var(--pub-fg); text-wrap: pretty; }
.intro { display: grid; gap: var(--gap-title-text); padding-top: var(--gap-title-text); padding-bottom: var(--gap-text-block); }
.page--short { min-height: 70vh; }

/* ---- hero media ----------------------------------------------------------
   A loop is a strip from gutter to gutter: 32:9, 21:9 up to 820px so it
   stays tall enough on a phone. The wrapper holds the ratio and the
   hairline; the video only fills it (crop focus: loop_video). A cover
   image without footage keeps 2.4:1, 4:5 on a phone. */

.strip {
    position: relative; margin: 0 var(--pub-gut); aspect-ratio: 32 / 9;
    overflow: hidden; background: var(--pub-panel); border: 1px solid var(--pub-line);
}
.strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 820px) { .strip { aspect-ratio: 21 / 9; } }

.phero { position: relative; margin: 0; aspect-ratio: 2.4 / 1; overflow: hidden; background: var(--pub-panel); }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero--empty { position: relative; }
@media (max-width: 760px) { .phero { aspect-ratio: 4 / 5; } }

/* ---- facts beside the text ---------------------------------------------- */

.pbody {
    display: grid; gap: 28px;
    border-top: 1px solid var(--pub-line);
    margin-top: var(--gap-text-block);
    padding: 0 var(--pub-gut);
}
/* Facts sit above the text, full width, left aligned. */
.pbody__meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap-cards) 32px;
    margin: 0; border-top: 0;
}
.pbody__meta > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pbody__meta dt, .pbody__meta dd { margin: 0; padding: 0; border: 0; }
.pbody__meta dt {
    font-family: var(--pub-mono); font-size: var(--pub-mono-size);
    letter-spacing: var(--pub-mono-track); text-transform: uppercase; color: var(--pub-dim);
}
.pbody__meta dd { font-size: clamp(16px, 1.3vw, 22px); }
.pbody__meta a { border-bottom: 1px solid var(--pub-faint); }
.pbody__main { display: grid; gap: var(--gap-text-block); align-content: start; min-width: 0; }
.kv dd.kv__prose { font-family: var(--pub-text); font-size: var(--pub-desc-size); line-height: 1.55; color: var(--pub-body); }

/* ---- gallery and lightbox ----------------------------------------------- */

.pgallery { margin-top: var(--gap-section); }
/* Justified rows (GalleryLayout). Every item flexes by its aspect ratio, so the
   items of a row share one height and the row fills the width; the row breaks
   are empty flex items of full width, placed by `order` (2n for item n, 2n+1
   for a break after it). Desktop and phone have their own order and breaks;
   once the script has measured the gallery it takes over (.gallery--live). */
.gallery {
    --gal-gap: 4px;
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
    column-gap: var(--gal-gap); row-gap: 0;
    margin-bottom: calc(-1 * var(--gal-gap));
}
.gallery__item {
    position: relative; margin: 0 0 var(--gal-gap); min-width: 0; overflow: hidden;
    order: var(--od); flex: var(--r) 1 0; aspect-ratio: var(--r);
    max-width: calc(var(--cd, 99999px) * var(--r));
}
.gallery__br { order: var(--od); flex: 0 0 100%; height: 0; margin: 0; padding: 0; }
.gallery__br--m { display: none; }
.gallery__item button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img, .gallery__item video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
    .gallery__item { order: var(--om); max-width: calc(var(--cm, 99999px) * var(--r)); }
    .gallery__br { order: var(--om); }
    .gallery__br--d { display: none; }
    .gallery__br--m { display: block; }
}
.gallery--live .gallery__item { order: var(--o); max-width: calc(var(--c, 99999px) * var(--r)); }
.gallery--live .gallery__br { order: var(--o); }
.gallery--live .gallery__br--d, .gallery--live .gallery__br--m { display: none; }
.gallery--live .gallery__br--j { display: block; }
/* Gallery loops open nothing: no lightbox, no controls, no fullscreen on tap. */
.gallery__item--loop { cursor: default; }
.gallery__item--loop video { pointer-events: none; }
.gallery__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
    color: var(--pub-fg); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.gallery__item:focus-within figcaption { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover figcaption { opacity: 1; } }
@media (hover: none) { .gallery__item figcaption { opacity: 1; } }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--pub-fg); cursor: pointer; font-size: 22px; padding: 12px; }
.lightbox__close { top: 14px; right: var(--pub-gut); font-size: var(--pub-mono-size) !important; }
.lightbox__prev { left: var(--pub-gut); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--pub-gut); top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; color: var(--pub-dim); }
@media (max-width: 760px) { .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); } }

/* ---- next project ------------------------------------------------------- */

.pnext {
    display: grid; gap: 18px;
    margin-top: var(--gap-section);
    padding: var(--gap-title-text) var(--pub-gut) 0; border-top: 1px solid var(--pub-line);
}
.pnext__prev:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .pnext__prev:hover { color: var(--pub-fg); } }
.pnext__next { display: grid; gap: 12px; justify-items: end; text-align: right; }
.pnext__next b {
    font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(30px, 5vw, 84px); line-height: .92; letter-spacing: -.03em; text-wrap: balance;
}

/* ---- click-to-load video embeds ----------------------------------------- */

.video { margin: 0; }
.video__placeholder {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    display: grid; place-items: center; align-content: center; gap: 14px;
    padding: 20px; background: var(--pub-panel); border: 1px solid var(--pub-line);
    text-align: center;
}
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video__play, .video__notice, .video__remember { position: relative; }
.video__play {
    font-family: var(--pub-mono); font-size: var(--pub-mono-size); letter-spacing: var(--pub-mono-track); text-transform: uppercase;
    background: var(--pub-bg); color: var(--pub-fg); border: 1px solid var(--pub-fg); padding: 10px 14px; cursor: pointer;
}
.video__play:focus-visible { background: var(--pub-fg); color: var(--pub-bg); }
@media (hover: hover) and (pointer: fine) { .video__play:hover { background: var(--pub-fg); color: var(--pub-bg); } }
.video__notice, .video__remember { margin: 0; max-width: 46ch; font-size: 12px; line-height: 1.5; color: var(--pub-dim); }
.video__notice a { text-decoration: underline; text-underline-offset: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Invisible Ecologies pages: the cascade on the left ----------------- */

.ie-page { position: relative; }
/* The cascade is a backdrop, not a column: text keeps the full width. */
.cascade { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100svh; z-index: 0; pointer-events: none; opacity: .5; }
.ie-page__main { position: relative; z-index: 1; padding-top: 96px; min-width: 0; }
.ie-page__text { margin: var(--gap-title-text) var(--pub-gut) 0; }
.ie-page__section { margin-top: var(--gap-section); }
.ie-page__section .ie__eds { margin: 0 var(--pub-gut); }

/* The umbrella page, the airiest: title, concept and the first rows of
   exhibitions in the first screen on a desktop, the rest on scroll. */
.ie-page--top .ie-page__main { padding-bottom: var(--gap-text-block); }
.ie-page--top .phead { gap: 10px; padding-bottom: 0; }
.ie-page--top .ptitle { font-size: clamp(36px, min(6.2vw, 9vh), 104px); }
.ie-page--top .ie-page__text { margin-top: clamp(32px, 3.4vw, 48px); }
.ie-page__exhibitions { margin: clamp(48px, 5.6vw, 80px) var(--pub-gut) 0; }
.ie-page__exhibitions .ie__eds { margin: 0; gap: clamp(20px, 1.9vw, 28px); }
.ie-page__exhibitions .ie__eds--grid li { border-bottom: 0; }
.ie__eds a[aria-current] b::before { content: "\25CF\00a0"; font-size: .4em; vertical-align: .5em; }


/* Plain lines: exhibitions without a page, the chronology. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows__item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 18px;
    padding: 16px 0; border-bottom: 1px solid var(--pub-line);
}
.rows__item b { font-family: var(--pub-display); font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: -.01em; }
.rows__item--dated { grid-template-columns: 64px minmax(0, 1fr) auto; }
.rows__item a:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .rows__item a:hover b { text-decoration: underline; text-underline-offset: 4px; } }
.rows__item a.mono:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .rows__item a.mono:hover { color: var(--pub-fg); } }
@media (max-width: 620px) {
    .rows__item, .rows__item--dated { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Data-viz item: the running system ---------------------------------- */

.system__frame { position: relative; height: var(--system-height, 80vh); min-height: 420px; background: var(--pub-panel); border-top: 1px solid var(--pub-line); border-bottom: 1px solid var(--pub-line); }
.system__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.system__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 18px; }
.system__note { margin: 0; max-width: 70ch; }
.system__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 760px) { .system__frame { height: 72vh; min-height: 0; } }

/* Credits of a Data-viz item: after the lead, before the system, full width. */
.rcredits {
    margin: 0; max-width: none;
    font-family: var(--pub-mono); font-size: 13px; letter-spacing: .04em; line-height: 1.6; text-transform: none; color: var(--pub-body);
}

/* An interactive map as the item's media: framed full width, right under the
   lead, with a same-tab link to the map alone. On a phone the link comes first. */
.mapblock { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: var(--gap-title-text); }
.mapblock__frame { position: relative; height: var(--map-height, min(80vh, 760px)); border: 1px solid var(--pub-fg); background: var(--pub-panel); }
.mapblock__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The full-screen control sits over the frame's top-right corner, always shown. */
.mapblock__bar { position: absolute; top: 12px; right: calc(var(--pub-gut) + 12px); z-index: 2; margin: 0; }
.mapblock__full {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px;
    font-family: var(--pub-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
    background: #fff; color: #000; border: 1px solid #000;
    transition: background-color .2s, color .2s, border-color .2s;
}
.mapblock__full svg { flex: none; width: 16px; height: 16px; }
.mapblock__full:focus-visible { background: #000; color: #fff; border-color: #fff; }
@media (hover: hover) and (pointer: fine) { .mapblock__full:hover { background: #000; color: #fff; border-color: #fff; } }
@media (max-width: 760px) {
    .mapblock__frame { height: 70vh; }
    .mapblock__bar { position: static; order: -1; }
    .mapblock__full { display: flex; justify-content: center; width: 100%; }
}

/* ---- phones: one full-screen button in place of every live preview ------- */

/* The frames themselves never exist at this width (initLiveFrames,
   initDataviz): the button is the whole of the system on a phone. */
.fsbtn { display: none; }
@media (max-width: 820px) {
    .fsbtn {
        display: flex; align-items: center; justify-content: center; gap: 12px;
        width: 100%; min-height: 64px; padding: 16px 20px;
        font-family: var(--pub-mono); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
        background: #fff; color: #000; border: 1px solid #fff; text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .fsbtn[hidden] { display: none; }
    .fsbtn svg { flex: none; width: 18px; height: 18px; }
    .fsbtn:active { background: #000; color: #fff; }
    .fsbtn:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
    .mapblock__frame, .mapblock__bar, .system__frame, .system__open, .dv__win { display: none; }
    .dv__fs { display: block; padding: 0 var(--pub-gut) 24px; }
}

/* ---- under the home's project grid: the way to every project ------------ */

.allbtn-wrap { display: flex; justify-content: center; padding: var(--gap-text-block) var(--pub-gut) 0; }
.allbtn {
    display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
    font-family: var(--pub-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
    background: transparent; color: var(--pub-fg); border: 1px solid var(--pub-fg);
    transition: background-color .25s, color .25s;
}
.allbtn:focus-visible { background: var(--pub-fg); color: var(--pub-bg); }
@media (hover: hover) and (pointer: fine) { .allbtn:hover { background: var(--pub-fg); color: var(--pub-bg); } }

/* ---- the Data-viz page title: "DATA-VISUALIZATION" fits a 390px screen --- */

.shead h1.dv-title { font-size: clamp(22px, 8.2vw, var(--pub-title-size)); }

/* ---- Contacts: CV ------------------------------------------------------- */

.cv__section { border-bottom: 1px solid var(--pub-line); }
.cv__title { margin: 0; padding: 22px var(--pub-gut) 6px; font-weight: 400; }
.cv__list { list-style: none; margin: 0; padding: 0; }
.cv__item { display: grid; gap: 6px; padding: 16px var(--pub-gut); border-top: 1px solid var(--pub-line); }
.cv__item:first-child { border-top: 0; }
.cv__year { padding-top: 3px; }
.cv__name { margin: 0; font-family: var(--pub-display); font-weight: 500; font-size: 18px; line-height: 1.25; }
.cv__name a { border-bottom: 1px solid var(--pub-faint); }
.cv__org { margin: 6px 0 0; }
.cv__text { margin: 8px 0 0; font-size: var(--pub-desc-size); line-height: 1.55; color: var(--pub-body); }

/* ==========================================================================
   SECTION GRID AND FOOTER
   ========================================================================== */

/* Above the footer on every page; on the home it meets the portrait. */
.sgrid {
    display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    margin-top: var(--gap-section);
    border-top: 1px solid var(--pub-fg);
}
.route-home .sgrid { margin-top: 0; }
.sgrid__tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(130px, 14vw, 220px);
    padding: 16px var(--pub-gut) clamp(16px, 1.6vw, 26px);
    border-right: 1px solid var(--pub-fg); border-bottom: 1px solid var(--pub-fg);
    background: var(--pub-bg); color: var(--pub-fg);
    transition: background-color .3s, color .3s;
}
.sgrid__tile:first-child { border-left: 1px solid var(--pub-fg); }
.sgrid__index, .sgrid__arrow { position: absolute; top: 14px; }
.sgrid__index { left: var(--pub-gut); color: var(--pub-dim); }
.sgrid__arrow { right: var(--pub-gut); transition: transform .35s var(--pub-ease); }
.sgrid__tile:focus-visible .sgrid__arrow { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .sgrid__tile:hover .sgrid__arrow { transform: translateX(6px); } }
.sgrid__label {
    font-family: "Space Grotesk", var(--pub-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(24px, 2.8vw, 48px); line-height: .95; letter-spacing: -.03em;
    text-wrap: balance; overflow-wrap: anywhere;
}
/* The page you are on: inverted, with a dot. */
.sgrid__tile[aria-current] { background: var(--pub-fg); color: var(--pub-bg); }
.sgrid__tile[aria-current] .sgrid__index { color: var(--pub-bg); opacity: .6; }
.sgrid__tile[aria-current] .sgrid__label::before { content: "\25CF\00a0"; font-size: .4em; vertical-align: .5em; }
.sgrid__tile:focus-visible { outline-offset: -4px; }
@media (max-width: 1000px) {
    .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sgrid__tile:nth-child(odd) { border-left: 1px solid var(--pub-fg); }
    .sgrid__tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sgrid { grid-template-columns: minmax(0, 1fr); }
    .sgrid__tile { border-left: 1px solid var(--pub-fg); min-height: 110px; }
}

.site-footer {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 60px var(--pub-gut) calc(env(safe-area-inset-bottom, 0px) + 28px);
    border-top: 1px solid var(--pub-line);
    color: var(--pub-dim);
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:focus-visible { color: var(--pub-fg); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--pub-fg); } }

/* ==========================================================================
   REDUCED MOTION — fades only
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    /* Reveals: instant, no movement. */
    .rv, [data-rv] > * { transition: none; }
    .js .rv:not(.in):not(.shead), .js [data-rv] > :not(.in) { opacity: 1; transform: none; }
    .js body { animation: none; }
    .shead .h2c { transform: none; transition: none; }
    .top-nav a span { transition: none; }
    /* The menu appears in place: no movement, no fade. */
    .menu, .menu.is-open, .menu li, .menu.is-open li, .menu__foot, .menu.is-open .menu__foot, .burger span { transition: none; }
    .menu li, .menu__foot { transform: none; }
    .card__media, .card__arrow { transition: none; }
    .dv__panel:not([hidden]) { animation: none; }
}
.contacts + .prose { padding-top: var(--gap-text-block); }


/* ---- touch: one tap follows a link ---------------------------------------
   Every :hover rule above sits inside (hover: hover) and (pointer: fine), so
   a tap never lands on a sticky hover state first. On phones the anchors of
   the lists are the tap targets themselves, at least 44px tall. */
@media (max-width: 820px), (hover: none) {
    .dv__list a, .ie__eds a, .rows__item a, .site-footer a, .chip, .sgrid__tile { min-height: 44px; }
    .dv__list a, .site-footer__links a { display: grid; align-content: center; }
    .site-footer__links a { display: inline-grid; }
}

/* ---- phones: the notice that stands in for the full-screen button -------- */
.dvnote { display: none; }
@media (max-width: 820px) {
    .dvnote:not([hidden]) {
        display: block; margin: 0; padding: 0;
        font-family: var(--pub-display); font-weight: 700; text-transform: uppercase;
        font-size: clamp(30px, 10.5vw, 64px); line-height: .95; letter-spacing: -.03em;
        color: var(--pub-fg); text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
    }
}
