/* pagebrick.org: light, quiet, typographic. Public Sans (OFL, served from this site); system monospace for labels. */
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --bg: #f7f7f7;
    --surface: #fdfdfd;
    --ink: #111214;
    --text: #26282d;
    --muted: #63666e;
    --line: rgba(17, 18, 20, .09);
    --line-strong: rgba(17, 18, 20, .2);
    --brick: #d24e2b;
    --brick-text: #b23d1e;
    --star: #e8a90c;
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 8px 12px; background: var(--ink); color: #fff; }

/* Labels, notes and code speak in monospace. */
.label, .note, .number, .github, .footer-base, .menu-toggle { font-family: var(--mono); letter-spacing: .01em; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(247, 247, 247, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(17, 18, 20, .35); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; flex: none; }
.brand img { width: auto; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

/* Language: a pill like the GitHub one that opens a small menu (after shadcn-space's dropdown-menu-11). A plain
   <details>, so it opens without JavaScript; site.js only closes it on Escape or a click outside. */
.language { position: relative; }
.language-trigger { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 11px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font: 500 .8125rem var(--mono); list-style: none; cursor: pointer; user-select: none; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.language-trigger .globe { transition: transform .8s ease-in-out; }
.language-trigger .chevrons { width: 14px; height: 14px; color: var(--muted); transition: transform .25s ease; }
.language[open] .language-trigger { border-color: var(--line-strong); }
.language[open] .globe { transform: rotate(360deg); }
.language[open] .chevrons { transform: rotate(180deg); }
.language-code { display: inline-grid; place-items: center; border-radius: 6px; background: #ececee; color: var(--muted); font: 600 .6875rem var(--mono); }
.language-trigger .language-code { padding: 1px 6px; }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; display: grid; gap: 2px; min-width: 224px; margin: 0; padding: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); list-style: none; transform-origin: top right;
    box-shadow: 0 20px 40px -20px rgba(17, 18, 20, .35), 0 2px 6px -2px rgba(17, 18, 20, .08); }
.language-menu a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background .15s; }
.language-menu a:hover, .language-menu a:focus-visible { background: #f1f1f3; }
.language-menu .language-code { width: 28px; height: 28px; flex: none; color: var(--ink); transition: transform .5s cubic-bezier(.34, 1.36, .64, 1); }
.language-menu [aria-current] .language-code { background: var(--brick); color: #fff; transform: scale(1.1) rotate(-6deg); }
.language-native { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.language-name { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; }
/* Opening: the menu grows out of the pill, then the languages slide in one after another with a little spring. */
.language[open] .language-menu { animation: menu-in .2s cubic-bezier(.2, .7, .2, 1); }
.language[open] .language-menu li { animation: language-in .5s cubic-bezier(.34, 1.36, .64, 1) both; animation-delay: calc(40ms + var(--n) * 45ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes language-in { from { opacity: 0; transform: translateX(-14px); } }
.nav-list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; display: block; padding: 8px 0; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
.nav-list a:hover { color: var(--brick-text); }
.nav-list a[aria-current]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brick); }

/* The GitHub button: a pill with the mark, the star count and a star. */
.github { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 500; text-decoration: none; transition: border-color .15s; }
.github svg { width: 18px; height: 18px; }
.github .star { width: 14px; height: 14px; color: var(--star); }

.menu-toggle { display: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font-size: .8125rem; cursor: pointer; }

/* ---------------------------------------------------------------- buttons and links */
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .95rem; font-weight: 600;
    text-decoration: none; transition: background .15s; }
.button:hover { background: #2b2d33; }
.button .arrow { display: inline-block; transition: transform .15s; }
.button:hover .arrow { transform: translateX(3px); }

/* Slide text (after KokonutUI's Slide Text Button): the label rolls up and a copy rises from below. */
.slide { position: relative; overflow: hidden; }
.slide-text { display: inline-grid; transition: transform .3s ease-in-out; }
.slide-text > span { grid-area: 1 / 1; justify-self: center; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    transition: opacity .3s ease-in-out; }
.slide-text > span + span { transform: translateY(100%); opacity: 0; }
.slide:hover .slide-text, .slide:focus-visible .slide-text { transform: translateY(-100%); }
.slide:hover .slide-text > span:first-child, .slide:focus-visible .slide-text > span:first-child { opacity: 0; }
.slide:hover .slide-text > span + span, .slide:focus-visible .slide-text > span + span { opacity: 1; }

/* Command (after KokonutUI's Command Button): a soft gradient, an icon that tilts, a light sweep on hover. */
.command { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, #f1f1f3); transition: border-color .3s ease-out, box-shadow .3s ease-out; }
.command:hover { border-color: var(--line-strong); box-shadow: 0 6px 16px -12px rgba(17, 18, 20, .35); }
.command svg { transition: transform .3s ease-out; }
.command:hover svg { transform: scale(1.1) rotate(-4deg); }
.command:active svg { transform: scale(.95); }
.shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(210, 78, 43, .14), transparent);
    transform: translateX(-100%); transition: transform .5s ease-out; pointer-events: none; }
.command:hover .shine { transform: translateX(100%); }
.command-cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.command-cta svg { width: 17px; height: 17px; color: var(--muted); }
.command-dark { background: linear-gradient(180deg, #23252b, #191a1f); }
.command-dark .shine { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #ececec; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.note { margin: 32px 0 0; color: var(--muted); font-size: .8125rem; }
.label { margin: 0 0 12px; color: var(--brick-text); font-size: .8125rem; text-transform: uppercase; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.25rem); font-weight: 200; line-height: 1.03; letter-spacing: -.03em; }
.lead { max-width: 36em; margin: 24px 0 0; color: var(--text); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }

/* Screenshots and code sit in a quiet window frame. */
.hero-shot, .terminal { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    box-shadow: 0 1px 0 rgba(17, 18, 20, .03), 0 30px 60px -32px rgba(17, 18, 20, .28); }
.hero-shot img { display: block; width: 100%; }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d8da; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section h2, .closing h2, .page-head h1 { font-weight: 300; letter-spacing: -.02em; }
.section h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card h2, .card h3 { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; font-weight: 400; }
.card-image { display: block; margin: -28px -28px 24px; width: calc(100% + 56px); max-width: none; border-radius: var(--radius) var(--radius) 0 0; }

/* Features: cards that turn over on hover (after KokonutUI's Card Flip), in a mosaic that closes a rectangle
   (sizes from pborg_mosaic). Both faces share one grid cell, so the card is as tall as its longer face. */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.mosaic .wide { grid-column: span 2; }
.mosaic .full { grid-column: span 4; }
.mosaic .tall { grid-row: span 2; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.flip { display: grid; border-radius: 16px; perspective: 2000px; }
.flip:focus-visible { outline-offset: 4px; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.77, 0, .175, 1); }
.flip:hover .flip-inner, .flip:focus-visible .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { grid-area: 1 / 1; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #efefef, var(--surface) 70%);
    -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 1px 2px rgba(17, 18, 20, .04); transition: box-shadow .5s; }
.flip:hover .flip-front, .flip:hover .flip-back { box-shadow: 0 24px 40px -28px rgba(17, 18, 20, .45); }
.flip h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.flip-front { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 20px 22px; }
.flip-front p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; font-weight: 400; line-height: 1.45; }
.flip-caption { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.flip-caption > div { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.flip:hover .flip-caption > div { transform: translateY(-4px); }
.flip-icon { flex: none; width: 18px; height: 18px; margin-bottom: 3px; color: var(--brick); transition: transform .3s; }
.flip:hover .flip-icon { transform: rotate(-12deg) scale(1.1); }
/* A brick wall above the caption, fading out towards it; site.js sends lights along its joints (.flip-trails). */
.flip-front::before, .flip-trails { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 10%, transparent 65%); mask-image: linear-gradient(#000 10%, transparent 65%); }
.flip-front::before { content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 .5h48M0 12.5h48M.5 0v12M24.5 12v12' fill='none' stroke='%23111214' stroke-opacity='.07'/%3E%3C/svg%3E"); }
.flip-trails { width: 100%; height: 100%; }
.flip-trails path { fill: none; stroke: var(--brick); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.big .flip-front h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 300; letter-spacing: -.02em; }
.big .flip-front p { font-size: 1rem; }
.flip-back { display: flex; flex-direction: column; gap: 10px; padding: 24px; transform: rotateY(180deg); }
.flip-back p { margin: 0; color: var(--muted); font-size: .95rem; font-weight: 400; line-height: 1.55; }
.flip-back::after { content: ""; width: 28px; height: 2px; margin-top: auto; background: var(--brick); }
.big .flip-back { gap: 16px; padding: clamp(28px, 3.5vw, 44px); }
.big .flip-back h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 300; letter-spacing: -.02em; }
.big .flip-back p, .tall .flip-back p { max-width: 36ch; font-size: 1.05rem; }
.flip.flipped .flip-inner { transform: rotateY(180deg); } /* a tap, on touch screens (site.js) */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.split h2 { margin-bottom: 24px; }

.terminal { border-color: #23252b; background: #121316; }
.terminal .window-bar { border-color: #23252b; }
.terminal .window-bar i { background: #3a3d45; }
.terminal pre { margin: 0; padding: 24px 28px 28px; overflow-x: auto; color: #e4e5e8; font: 400 .84rem/1.75 var(--mono); }

.numbered, .steps { display: grid; gap: 32px 28px; margin: 0; padding: 0; list-style: none; }
.numbered { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.numbered li { padding-top: 20px; border-top: 1px solid var(--ink); }
.numbered .number { display: block; margin-bottom: 14px; color: var(--brick-text); font-size: .8125rem; }
.numbered h3, .steps h3 { margin-bottom: 8px; font-size: 1.0625rem; font-weight: 600; }
.numbered p, .steps p { margin: 0; color: var(--muted); font-size: .97rem; font-weight: 400; }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.closing { padding: clamp(64px, 8vw, 96px) 0; background: var(--ink); color: #b7b9bf; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
.closing p { max-width: 38em; margin: 12px 0 0; }

/* ---------------------------------------------------------------- inner pages */
.page { padding-bottom: clamp(72px, 9vw, 120px); }
.page-head { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.page-image { margin-top: 0; margin-bottom: 40px; }
.page-image img { display: block; border-radius: var(--radius); }

.prose { font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .5em; font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
.prose h3 { margin: 1.8em 0 .4em; font-size: 1.125rem; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose a { color: var(--brick-text); text-underline-offset: 3px; }
.prose code { padding: .1em .35em; border-radius: 4px; background: rgba(17, 18, 20, .06); font: .9em var(--mono); }
.prose strong { font-weight: 600; color: var(--ink); }

.contact .prose { margin-top: 16px; }
.contact { align-items: start; padding-top: clamp(56px, 8vw, 104px); }
.contact h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 200; letter-spacing: -.025em; line-height: 1.05; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-row img { width: auto; height: 24px; }
.footer-row p { max-width: 30em; margin: 14px 0 0; color: var(--muted); font-size: .9375rem; }
.footer-list { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.footer-list a { color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.footer-list a:hover { color: var(--brick-text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .75rem; }

/* ---------------------------------------------------------------- under construction / maintenance */
.closed { display: grid; min-height: 100vh; place-items: center; }
.closed main { padding: 64px 24px; }
.closed img { height: 32px; width: auto; }
.closed h1 { margin: 48px 0 0; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 200; letter-spacing: -.03em; line-height: 1.04; }
.closed .button { margin-top: 12px; }

/* ---------------------------------------------------------------- motion */
/* The hero comes in line by line; sections rise as they reach the screen (site.js adds .visible). */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .intro { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].visible { opacity: 1; transform: none; }
/* Safety net: if the script never runs, everything still shows after a moment. */
@keyframes shown { to { opacity: 1; transform: none; } }
.js:not(.motion) [data-reveal] { animation: shown .01s 3.5s forwards; }
.hero-shot { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; will-change: transform; }
.hero-shot:hover { box-shadow: 0 1px 0 rgba(17, 18, 20, .03), 0 40px 70px -34px rgba(17, 18, 20, .35); }
.card, .steps li { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover, .steps li:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 30px -24px rgba(17, 18, 20, .35); }
.numbered li { position: relative; }
.numbered li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--brick); transition: width .5s ease; }
.numbered li:hover::before { width: 100%; }
.typing::after { content: "▍"; color: var(--brick); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Code sample: a copy button in its title bar. */
.terminal .window-bar { align-items: center; }
.copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 10px; border: 1px solid #33363e; border-radius: 999px; color: #b7b9bf;
    font: .75rem var(--mono); cursor: pointer; transition: color .15s, border-color .15s; }
.copy:hover { border-color: #5a5d66; color: #fff; }
.copy svg { width: 13px; height: 13px; }

/* The update simulator. */
.simulator { margin-top: 56px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.simulator-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.simulator-head .label { margin: 0; }
.simulator-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.simulator .button { border: 0; cursor: pointer; font-family: var(--sans); }
.simulator button:disabled { opacity: .5; cursor: progress; }
.simulator-log { display: grid; gap: 8px; min-height: 9.5rem; margin: 24px 0 0; padding: 20px 22px; border-radius: 8px; background: #121316; color: #d5d7dc;
    font: .84rem/1.6 var(--mono); list-style: none; }
.simulator-log li { animation: rise .35s ease both; }
.simulator-log li::before { display: inline-block; width: 1.6em; color: #6c7080; }
.simulator-log .muted { color: #8b8f9b; animation: none; }
.simulator-log .running::before { content: "…"; animation: blink 1s steps(1) infinite; }
.simulator-log .done::before { content: "✓"; color: #5fd08a; }
.simulator-log .failed { color: #ffb4a3; }
.simulator-log .failed::before { content: "✕"; color: #ff7a5c; }
.simulator-log .result { margin-top: 6px; padding-top: 10px; border-top: 1px solid #262931; color: #fff; font-weight: 500; }
.simulator-log .result.ok::before { content: "●"; color: #5fd08a; }
.simulator-log .result.rolled-back::before { content: "↺"; color: var(--star); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
    .header-row { flex-wrap: wrap; gap: 12px 16px; }
    .github { margin-left: auto; }
    .menu-toggle { display: inline-block; }
    .js .site-nav { display: none; order: 5; width: 100%; margin: 0; }
    .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .language { align-self: flex-start; margin: 4px 0 14px; }
    .language-menu { right: auto; left: 0; transform-origin: top left; }
    .js .site-header.open .site-nav { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: 4px 0 12px; }
    .nav-list a { padding: 12px 0 12px 16px; border-top: 1px solid var(--line); }
    .nav-list a[aria-current]::before { left: 0; }
    .hero-grid, .split { grid-template-columns: 1fr; }
}
/* The mosaic becomes two columns, then one; an odd last card takes the whole row, so it still closes. */
@media (max-width: 1000px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mosaic > .flip { grid-column: auto; grid-row: auto; }
    .mosaic > .flip:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 600px) {
    .mosaic { grid-template-columns: 1fr; }
    .mosaic > .flip:last-child:nth-child(odd) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    .hero-shot { transform: none !important; }}
