/* =========================================================================
   Humanis — full site mockup · "The Instrument"
   Editorial / observatory aesthetic · charcoal on sepia · kinetic type
   ========================================================================= */

:root {
    --bg: #f4f4f1;
    --bg-2: #ecece8;
    --ink: #2f3133;
    --ink-2: #55575a;
    --ink-3: #9a9488;
    --accent: #6b4e3d;
    --accent-2: #96795d;
    --line: rgba(47, 49, 51, 0.16);
    --line-soft: rgba(47, 49, 51, 0.08);

    /* these are --bg at alpha; they must track it or the sticky topbar shows as a band */
    --glass: rgba(244, 244, 241, 0.6);
    --glass-strong: rgba(244, 244, 241, 0.86);
    --glass-line: rgba(47, 49, 51, 0.12);

    --tone: grayscale(0.55) sepia(0.34) contrast(1.02) brightness(0.99);
    --tone-mult: rgba(107, 78, 61, 0.16);
    --glass-shadow: 0 22px 60px -28px rgba(47, 49, 51, 0.45);

    --serif: 'EB Garamond', Georgia, serif;   /* pages.css puts Michelangelus first */
    --word: 'EB Garamond', Georgia, serif;
    --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --step-hero: clamp(3rem, 12vw, 10.5rem);
    --step-xl: clamp(2.5rem, 8vw, 6.5rem);
    --step-lg: clamp(1.9rem, 4.4vw, 3.4rem);
    --pad: clamp(1.4rem, 5vw, 5.5rem);
    --rail: clamp(2.2rem, 5vw, 4rem);
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="dark"] {
    --bg: #060607;
    --bg-2: #0d0e10;
    --ink: #f0efea;
    --ink-2: #b4b2ab;
    --ink-3: #67655f;
    --accent: #c0a487;
    --accent-2: #8b7355;
    --line: rgba(255, 255, 255, 0.16);
    --line-soft: rgba(255, 255, 255, 0.07);

    --glass: rgba(14, 15, 17, 0.5);
    --glass-strong: rgba(10, 11, 13, 0.82);
    --glass-line: rgba(255, 255, 255, 0.12);

    --tone: grayscale(0.6) sepia(0.26) contrast(1.06) brightness(0.8);
    --tone-mult: rgba(10, 10, 12, 0.4);
    --glass-shadow: 0 26px 66px -30px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Paper grain */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; opacity: 0.13; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}
[data-theme="dark"] body::before { opacity: 0.045; }

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

/* ------------------------------------------------------------- Custom cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor .ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid #fff; border-radius: 50%; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; }
.cursor .dot { position: absolute; top: -1px; left: -1px; width: 2px; height: 2px; background: #fff; border-radius: 50%; }
body.hovering .cursor .ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on .idx-item { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------- Type basics */
.mono { font-family: var(--mono); font-weight: var(--label-weight, 400); letter-spacing: calc(0.04em * var(--label-track, 1)); }
.label { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.7rem; letter-spacing: calc(0.28em * var(--label-track, 1)); text-transform: uppercase; color: var(--accent); }
.serif-i { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------- Side rails */
.rail { position: fixed; top: 0; height: 100vh; width: var(--rail); z-index: 60; display: none; align-items: center; justify-content: center; pointer-events: none; }
.rail-l { left: 0; }
.rail-r { right: 0; }
.rail .v { writing-mode: vertical-rl; font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.66rem; letter-spacing: calc(0.32em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-3); }
.rail-l .v { transform: rotate(180deg); }
.rail .tick { position: absolute; bottom: var(--pad); left: 50%; width: 1px; height: 64px; background: var(--line); transform: translateX(-50%); overflow: hidden; }
.rail .tick i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--progress, 0)); transform-origin: top; }
@media (min-width: 1080px) { .rail { display: flex; } }

/* ------------------------------------------------------------------- Shell */
.wrap { max-width: 1500px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 2; }
@media (min-width: 1080px) { .wrap { padding-left: calc(var(--rail) + var(--pad)); padding-right: calc(var(--rail) + var(--pad)); } }

/* --------------------------------------------------------------- Top bar */
.topbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 70; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.topbar.solid { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line-soft); }
.topbar .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.05rem var(--pad); }
@media (min-width: 1080px) { .topbar .bar { padding-left: calc(var(--rail) + var(--pad)); padding-right: calc(var(--rail) + var(--pad)); } }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand svg { height: 1.9rem; width: auto; }
.brand .w { font-family: var(--word); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.26em; padding-left: 0.26em; }
.topnav { display: none; gap: 2rem; align-items: center; }
.topnav a { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.74rem; letter-spacing: calc(0.14em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-2); position: relative; }
.topnav a .n { color: var(--accent); margin-right: 0.45em; }
.topnav a:hover { color: var(--ink); }
@media (min-width: 900px) { .topnav { display: flex; } }
.tb-right { display: flex; align-items: center; gap: 1rem; }
.tdot { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), border-color .3s, color .3s; }
.tdot:hover { transform: rotate(20deg); border-color: var(--accent); color: var(--accent); }
.burger { display: inline-flex; background: none; border: 0; color: var(--ink); }
@media (min-width: 900px) { .burger { display: none; } }

/* ------------------------------------------------------------------ Hero */
/* kept as a guard: overflow-x: clip (unlike hidden) creates no scroll container,
   so nothing in the hero can widen the document */
.hero { position: relative; overflow-x: clip; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 6rem; padding-bottom: 3rem; }
/* hero plate. Carries .eng so it inherits the dark-mode invert with the other engravings. */
.hero-plate { position: absolute; top: 50%; right: var(--rail); width: min(44vw, 590px); transform: translateY(-50%); z-index: 1; opacity: 0.94; pointer-events: none; animation: plateIn 1.6s var(--ease) 0.35s both; }
.hero-plate .eng { width: 100%; height: auto; }
@keyframes plateIn { from { opacity: 0; transform: translateY(-50%) scale(1.03); } to { opacity: 0.94; transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-plate { animation: none; } }
.hero-inner { position: relative; z-index: 3; }
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }
.hero-eyebrow .rule { height: 1px; width: clamp(28px, 6vw, 88px); background: var(--accent); opacity: .6; }
.hero h1 { font-size: var(--step-hero); line-height: 0.92; letter-spacing: -0.025em; max-width: 15ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; will-change: transform, filter; }
.hero-foot { margin-top: clamp(2rem, 5vw, 3.6rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-foot p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34ch; line-height: 1.5; color: var(--ink-2); }
.scrollcue { display: flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.68rem; letter-spacing: calc(0.24em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-3); }
.scrollcue .b { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scrollcue .b::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* kinetic type entrance */
.kin > span { transform: translateY(110%); transition: transform 1.05s var(--ease); }
.kin.in > span { transform: translateY(0); }
.kin.d1 > span { transition-delay: .08s; } .kin.d2 > span { transition-delay: .16s; } .kin.d3 > span { transition-delay: .24s; }
.fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: .12s; } .fade.d2 { transition-delay: .24s; } .fade.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
    .kin > span { transform: none; } .fade { opacity: 1; transform: none; }
    .scrollcue .b::after { animation: none; }
}

/* --------------------------------------------------------------- Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 1.1rem 0; }
.marquee .track { display: inline-flex; gap: 2.6rem; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-family: var(--word); font-size: clamp(1.3rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.marquee span em { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------------------------------------------------------------- Section */
.sec { padding-top: clamp(4rem, 12vw, 12rem); padding-bottom: clamp(4rem, 12vw, 12rem); position: relative; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: baseline; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-head .pl { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.7rem; letter-spacing: calc(0.24em * var(--label-track, 1)); text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.sec-head h2 { font-size: var(--step-lg); letter-spacing: -0.02em; }

/* Manifesto (editorial, asymmetric) */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.manifesto .marginal { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.72rem; line-height: 1.9; letter-spacing: calc(0.04em * var(--label-track, 1)); color: var(--ink-3); text-transform: uppercase; }
.manifesto .body { max-width: 46rem; }
.manifesto .body .lead { font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.32; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 1.8rem; }
.manifesto .body .lead .drop { float: left; font-size: 3.4em; line-height: 0.72; padding: 0.06em 0.14em 0 0; color: var(--accent); font-style: italic; }
.manifesto .body p + p { margin-top: 1.4rem; }
.manifesto .body p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.66; }
.manifesto .body .ref { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.62em; vertical-align: super; color: var(--accent); }
/* UAX #14 permits a break before "[", which strands the citation on its own line */
.nb { white-space: nowrap; }
@media (min-width: 900px) {
    .manifesto { grid-template-columns: 1fr 2.1fr; gap: clamp(3rem, 8vw, 9rem); }
    .manifesto .body { justify-self: start; }
}

/* --------------------------------------------------- Research hover-index */
.index-list { border-top: 1px solid var(--line); }
.idx-item { display: grid; grid-template-columns: auto clamp(200px, 26vw, 420px) 1fr auto; align-items: start; column-gap: clamp(1.5rem, 3vw, 2.75rem); row-gap: clamp(1rem, 2.2vw, 2rem); padding: clamp(1.5rem, 3.4vw, 2.9rem) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .5s var(--ease), color .5s var(--ease); }
.idx-item .num { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.82rem; letter-spacing: calc(0.1em * var(--label-track, 1)); color: var(--ink-3); transition: color .4s; }
.idx-item .ti { display: block; font-size: var(--step-xl); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); transition: color .45s var(--ease), transform .55s var(--ease); }
.idx-item .meta { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.68rem; letter-spacing: calc(0.16em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-3); text-align: right; max-width: 16ch; transition: color .4s; }
.idx-item:hover { padding-left: clamp(0.6rem, 2.5vw, 2.4rem); }
.idx-item:hover .ti { color: var(--accent); }
.idx-item:hover .num, .idx-item:hover .meta { color: var(--accent-2); }
/* Each entry carries its own figure and a line of running text, so the row reads
   as a catalogue entry rather than a link. The plate sits between the number and
   the title, on the paper rather than in a box. */
.idx-item .num { grid-column: 1; grid-row: 1; }
.idx-item .ti { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
.idx-item .idx-fig { grid-column: 2; grid-row: 2; }
.idx-item .blurb { grid-column: 3; grid-row: 2; align-self: center; }
.idx-item .meta { grid-column: 4; grid-row: 2; align-self: center; }
/* The three stand-in engravings were cut from a 1024px sheet, so they have no
   resolution to spare; cap their enlargement rather than letting them go soft.
   Drops out once real plates exist for these domains. */
.idx-item .idx-fig .eng { width: 100%; max-width: 100%; max-height: clamp(220px, 28vw, 430px); margin-inline: auto; opacity: 0.95; mix-blend-mode: multiply; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.idx-item:hover .idx-fig .eng { opacity: 1; transform: translateY(-3px); }
[data-theme="dark"] .idx-item .idx-fig .eng { mix-blend-mode: normal; }
.idx-item .blurb { display: block; max-width: 46ch; font-size: 1rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.idx-item .ti .arrow { display: inline-block; opacity: 0; transform: translateX(-0.4em); transition: opacity .4s, transform .5s var(--ease); font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.4em; vertical-align: middle; }
.idx-item:hover .ti .arrow { opacity: 1; transform: translateX(0.2em); }

/* ---------------------------------------------------- Editorial figures */
/* engraving cut-outs float directly on the paper; invert to light on dark */
.eng { display: block; width: 100%; height: auto; }
[data-theme="dark"] .eng { filter: invert(1) brightness(1.06); }

.fig { position: relative; }
/* full compositions rather than tight cut-outs, so they need a little more room */
.fig .eng { margin: 0 auto; max-width: 320px; }
.pair .fig .eng { max-width: 360px; }   /* class, not #id — the mobile ghost rule has to win */
.fig figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.66rem; letter-spacing: calc(0.16em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-3); }
.fig figcaption .pl { color: var(--accent); }

/* small decorative cut-out floating in a section's negative space */
.accent { position: absolute; z-index: 1; pointer-events: none; user-select: none; opacity: 0.92; }
[data-theme="dark"] .accent { filter: invert(1) brightness(1.06); }
.accent.faint { opacity: 0.5; }

/* two-column editorial pairing: figure + running content */
.pair { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.pair .side { position: relative; }
@media (min-width: 900px) {
    .pair { grid-template-columns: 0.82fr 1.4fr; }
    .pair.flip { grid-template-columns: 1.4fr 0.82fr; }
    .pair.flip .side { order: 2; }
    .pair .side.sticky { position: sticky; top: 16vh; }
}

/* ------------------------------------------- Specimen plate (pinned beat) */
.plate { position: relative; height: 132vh; }
.plate .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.plate .pin .eng { position: absolute; top: 46%; right: 8%; transform: translateY(-50%); width: min(42vw, 460px); height: auto; opacity: 0.95; }
.plate .cap { position: relative; z-index: 2; padding-top: var(--pad); padding-bottom: clamp(3rem, 9vw, 7rem); width: 100%; }
.plate .cap .pl { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.7rem; letter-spacing: calc(0.26em * var(--label-track, 1)); text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.plate .cap blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.8vw, 3.3rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); max-width: 18ch; }
.plate .cap blockquote em { color: var(--accent); font-style: italic; }
@media (max-width: 768px) { .plate .pin .eng { top: 30%; right: 50%; transform: translate(50%, -50%); width: 62vw; opacity: 0.5; } }

/* ---------------------------------------------------------------- Triad */
.triad { display: flex; flex-direction: column; }
.triad .row { display: grid; grid-template-columns: 1fr; gap: 0.6rem; padding: clamp(1.6rem, 4vw, 3.2rem) 0; border-top: 1px solid var(--line); }
.triad .row:last-child { border-bottom: 1px solid var(--line); }
.triad .row .w { font-size: var(--step-hero); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); }
.triad .row .w em { font-style: italic; color: var(--accent); }
.triad .row .d { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.82rem; line-height: 1.7; letter-spacing: calc(0.04em * var(--label-track, 1)); color: var(--ink-2); max-width: 40ch; }
@media (min-width: 860px) {
    .triad .row { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 3rem; }
    .triad .row .d { padding-bottom: 0.6rem; }
}

/* --------------------------------------------------------------- Roster */
.roster { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 1rem; font-size: var(--step-lg); line-height: 1.2; letter-spacing: -0.02em; }
.roster .p { color: var(--ink); white-space: nowrap; }
.roster .p sup { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.3em; letter-spacing: calc(0.1em * var(--label-track, 1)); text-transform: uppercase; color: var(--accent); vertical-align: super; margin-left: 0.2em; }
.roster .sep { color: var(--ink-3); }
/* stands in for .roster until there are real names to list */
.roster-note { font-size: var(--step-lg); line-height: 1.24; letter-spacing: -0.02em; color: var(--ink); max-width: 20ch; }
.roster-note em { font-style: italic; color: var(--accent); }

/* ------------------------------------------------------------------ CTA */
.cta { text-align: left; }
.cta .big { font-size: var(--step-xl); line-height: 1.02; letter-spacing: -0.025em; max-width: 20ch; margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.cta .big em { font-style: italic; color: var(--accent); }
.mail { display: inline-block; font-size: clamp(1.8rem, 5vw, 4rem); letter-spacing: -0.02em; color: var(--ink); position: relative; }
.mail::after { content: ''; position: absolute; left: 0; bottom: 0.08em; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.mail:hover::after { transform: scaleX(1); }
.cta .also { margin-top: 1.6rem; font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.8rem; letter-spacing: calc(0.06em * var(--label-track, 1)); color: var(--ink-3); }
.cta .also a { color: var(--accent); border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- Footer */
.foot { border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 5.5rem) 0 2.4rem; position: relative; z-index: 2; }
.foot .huge { font-family: var(--word); text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(3rem, 15vw, 12rem); line-height: 0.86; color: var(--ink); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.72rem; letter-spacing: calc(0.08em * var(--label-track, 1)); text-transform: uppercase; color: var(--ink-3); }
.foot-meta a { color: var(--ink-2); } .foot-meta a:hover { color: var(--accent); }
.foot-meta .flag { color: var(--accent); border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.8rem; }

/* --------------------------------------------------------------- Mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 65; background: var(--glass-strong); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease); }
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(2rem, 9vw, 3.2rem); color: var(--ink); padding: 0.3rem 0; border-bottom: 1px solid var(--line-soft); }
.mmenu a .n { font-family: var(--mono); font-weight: var(--label-weight, 400); font-size: 0.8rem; color: var(--accent); }

/* --------------------------------------------------------------- Mobile tune */
@media (max-width: 768px) {
    .plate { height: 116vh; }
    /* no room to sit beside the headline — drop it behind, as a ghost */
    .hero-plate { top: 42%; width: 74vw; right: 50%; transform: translate(50%, -50%); opacity: 0.2; animation: none; }
    .manifesto .marginal { border-bottom: 1px solid var(--line-soft); padding-bottom: 1.4rem; }
    .sec-head { gap: 0.4rem; }

    /* Domain names are single long words ("Telecommunications"), so the title
       column's min-content width pushed the three-column grid past the viewport.
       Drop the meta onto its own row and let long names hyphenate. */
    .idx-item { grid-template-columns: auto 1fr; row-gap: 0.5rem; }
    .idx-item > * { min-width: 0; }
    .idx-item .ti { grid-column: 2; grid-row: 1; }
    .idx-item .idx-fig { grid-column: 2; grid-row: 2; width: clamp(150px, 46vw, 260px); }
    .idx-item .idx-fig .eng { width: 100%; max-height: clamp(150px, 44vw, 280px); margin-inline: 0; }
    .idx-item .blurb { grid-column: 2; grid-row: 3; max-width: 58ch; font-size: 0.9rem; }
    .idx-item .ti { hyphens: auto; overflow-wrap: break-word; }
    .idx-item .meta { grid-column: 2; grid-row: 4; align-self: start; text-align: left; max-width: none; }
    .accent { display: none; }   /* floating margin cut-outs are a desktop delight */

    /* Plate figures, same move as the hero: with no room to sit beside the text,
       drop them behind it as a ghost rather than stacking as a full-width block
       that interrupts the read. */
    .manifesto, .pair { position: relative; }
    /* both of these would otherwise make .side the containing block for the
       absolutely-positioned figure — .fade via transform, .pair .side via position */
    .side.fade { opacity: 1; transform: none; }
    .pair .side { position: static; }
    .pair { gap: 0; }            /* the figure leaves the flow; its row would just be a gap */

    .side .fig { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
                 width: 84vw; max-width: 420px; margin: 0; z-index: 0; opacity: 0.16; pointer-events: none; }
    /* bound by height too — the tall portrait plates would otherwise run to ~880px */
    .side .fig .eng { width: auto; max-width: 100%; max-height: 56vh; }
    .side .fig figcaption { display: none; }   /* plate numbers over body text read as noise */

    /* everything that is actually read sits above the ghost */
    .side .marginal, .manifesto > .body, .pair > div:not(.side) { position: relative; z-index: 1; }
}
