/*
   MEN'S SHOP. The five colors come from /theme.css, set in the desktop app, and every other tone is worked out
   from them here, so any choice she makes stays consistent. Square corners, a strict grid, and type and
   photographs doing the work. Motion is for arrival and for following the hand, and it all switches off for
   anyone whose device asks for less.
*/

:root {
    --serif: 'Noto Serif Display', 'Times New Roman', serif;
    --sans: 'Golos Text', 'Segoe UI', system-ui, sans-serif;

    --line: color-mix(in oklab, var(--text) 16%, transparent);
    --line-ink: color-mix(in oklab, var(--on-ink) 18%, transparent);
    --muted: color-mix(in oklab, var(--text) 66%, var(--paper));
    --muted-ink: color-mix(in oklab, var(--on-ink) 68%, var(--ink));
    --tone: color-mix(in oklab, var(--text) 6%, var(--paper));
    --accent-text: color-mix(in oklab, var(--accent) 58%, var(--text));

    --edge: clamp(20px, 4vw, 64px);
    --gap: clamp(12px, 1.6vw, 24px);
    --top: 76px;
    --section: clamp(72px, 11vw, 168px);

    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-both: cubic-bezier(.76, 0, .24, 1);
}

@media (max-width: 899px) {
    :root { --top: 64px; }
}

/* ---------- Foundations ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--ink);
    scroll-padding-top: calc(var(--top) + 16px);
}

html.is-locked { overflow: hidden; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

main { padding-top: var(--top); }
.is-home main { padding-top: 0; }

h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip {
    position: fixed; left: 12px; top: -80px; z-index: 60;
    padding: 12px 16px; background: var(--paper); color: var(--text);
}
.skip:focus { top: 12px; }

.overline {
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.6vw, 5.25rem);
    line-height: 1.04;
    letter-spacing: -.012em;
}

.arrow-link svg, .btn svg, .top-icon svg, .finder svg, .rail-arrows svg, .zoom-close svg {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.4;
}

/* Lines of a heading rise out of their own mask. The padding keeps the tails of letters from being cut. */
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.line > span { display: block; }

.arrow-link {
    display: inline-flex; align-items: center; gap: .6em;
    min-height: 44px;
    font-weight: 500;
    text-decoration: none;
}
.arrow-link span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: 3px;
    transition: background-size .6s var(--ease);
}
.arrow-link svg { transition: transform .6s var(--ease); }
.arrow-link:hover span { background-size: 0 1px; background-position: 100% 100%; }
.arrow-link:hover svg { transform: translateX(6px); }

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5em;
    min-height: 56px;
    padding: 0 1.5em;
    border: 1px solid currentColor;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
    content: ''; position: absolute; inset: -1px; z-index: -1;
    background: var(--text);
    transform: translateY(101%);
    transition: transform .6s var(--ease);
}
.btn svg { transition: transform .6s var(--ease); }
.btn:hover svg { transform: translateX(6px); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--paper); border-color: var(--text); }

.btn-solid { background: var(--text); color: var(--paper); border-color: var(--text); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover { color: var(--ink); border-color: var(--accent); }

.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent::before { background: var(--on-ink); }
.btn-accent:hover { color: var(--ink); border-color: var(--on-ink); }

.btn-wide { width: 100%; }
.btn-small { min-height: 44px; }

/* The link's own text rolls up and is replaced by a copy of itself. */
.roll { position: relative; display: inline-block; overflow: hidden; text-decoration: none; vertical-align: top; }
.roll > span { position: relative; display: block; transition: transform .6s var(--ease); }
.roll > span::after {
    content: attr(data-text);
    position: absolute; left: 0; top: 100%;
    white-space: nowrap;
}
.roll:hover > span { transform: translateY(-100%); }

/* ---------- Header ---------- */

.top {
    position: fixed; inset: 0 0 auto; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    height: var(--top);
    padding-inline: var(--edge);
    background: var(--ink);
    color: var(--on-ink);
    view-transition-name: top;
    transition: transform .6s var(--ease), background-color .4s linear;
}
.top.is-over { background: transparent; }
.top.is-away { transform: translateY(-100%); }

.top-logo { display: block; flex: none; }
.top-logo img { height: 48px; width: auto; }

.top-nav { display: flex; gap: clamp(20px, 3vw, 44px); margin-left: auto; font-size: 1rem; }
.top-nav .is-current > span { color: var(--accent); }

.top-actions { display: flex; align-items: center; gap: 8px; }

.top-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.top-icon svg { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.top-icon:hover svg { transform: scale(1.14); }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span {
    position: absolute; left: 10px; right: 10px; height: 1.5px;
    background: currentColor;
    transition: transform .5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 899px) {
    .top-logo img { height: 42px; }
    .js .top-nav { display: none; }
    .js .burger { display: block; }
    .top-icon { margin-right: 0; }
    html:not(.js) .top { height: auto; flex-wrap: wrap; padding-block: 12px; position: static; }
    html:not(.js) main { padding-top: 0; }
}

/* ---------- Menu on phones ---------- */

.menu {
    position: fixed; inset: 0;
    width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0 var(--edge) calc(32px + env(safe-area-inset-bottom));
    border: 0;
    background: var(--ink);
    color: var(--on-ink);
}
.menu[open] { display: flex; flex-direction: column; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--top); flex: none; }
.menu-head .top-logo img { height: 42px; }
.menu-links { display: flex; flex-direction: column; margin-block: auto; }
.menu-links a {
    display: block;
    overflow: hidden;
    padding-block: .22em;
    border-bottom: 1px solid var(--line-ink);
    font-family: var(--serif);
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.14;
    text-decoration: none;
}
.menu-links a:first-child { border-top: 1px solid var(--line-ink); }
.menu-links span { display: block; }
.menu-phones { flex: none; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.menu-phone { font-size: 1.25rem; font-weight: 500; text-decoration: none; }

/* ---------- Search ---------- */

.finder {
    position: fixed; inset: 0 0 auto;
    width: 100%; max-width: none; max-height: 100dvh;
    margin: 0; padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--text);
    overflow-y: auto;
}
.finder::backdrop { background: color-mix(in oklab, var(--ink) 60%, transparent); }
.finder-form {
    display: flex; align-items: center; gap: 14px;
    height: clamp(84px, 11vw, 128px);
    padding-inline: var(--edge);
    border-bottom: 1px solid var(--line);
}
.finder-form > svg { width: 26px; height: 26px; }
.finder-form input {
    flex: 1; min-width: 0;
    border: 0; background: none; outline: 0;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.6vw, 3rem);
}
.finder-form input::placeholder { color: var(--muted); opacity: 1; }
.finder-form input::-webkit-search-cancel-button { display: none; }
.finder-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.finder-close svg { width: 24px; height: 24px; }
.finder-results:not(:empty) {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 4px var(--gap);
    padding: 20px var(--edge) 32px;
}
.finder-row {
    display: flex; align-items: center; gap: 16px;
    padding: 8px 0;
    text-decoration: none;
}
.finder-photo {
    display: grid; place-items: center;
    width: 64px; height: 80px; flex: none;
    padding: 4px;
    background: var(--tone);
    overflow: hidden;
    text-align: center;
}
.finder-photo img { width: 64px; height: 80px; max-width: none; object-fit: cover; }
.finder-photo small { font-size: .625rem; line-height: 1.2; color: var(--muted); }
.finder-text { display: flex; flex-direction: column; min-width: 0; }
.finder-text strong { font-weight: 500; transition: color .3s; }
.finder-row:hover strong { color: var(--accent-text); }
.finder-text span { font-size: .9375rem; color: var(--muted); }
.finder-none { padding-block: 8px; color: var(--muted); }
.finder-all { grid-column: 1 / -1; padding-top: 16px; font-weight: 500; }

/* ---------- Opening screen ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--top) + 32px) var(--edge) clamp(36px, 6vh, 64px);
    background: var(--ink);
    color: var(--on-ink);
    overflow: hidden;
}

.hero-media { position: absolute; inset: 0 0 0 auto; width: 50%; }
.hero-media::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background:
        linear-gradient(to top, color-mix(in oklab, var(--ink) 82%, transparent) 0, transparent 26%),
        linear-gradient(to bottom, color-mix(in oklab, var(--ink) 60%, transparent) 0, transparent 16%);
}

.hero-slide {
    position: absolute; inset: 0; display: block; overflow: hidden;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.25s var(--ease-both);
    z-index: 1;
}
.hero-slide.is-current { clip-path: inset(0); z-index: 2; }
.hero-slide.is-leaving { clip-path: inset(0); z-index: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.12) translateY(var(--drift, 0));
    transition: transform 7s linear;
}
.hero-slide.is-current img { transform: scale(1.02) translateY(var(--drift, 0)); }

.hero-copy { position: relative; z-index: 4; width: calc(50% - var(--edge) - var(--gap)); }
.hero-kicker { margin-bottom: clamp(16px, 2.4vw, 28px); color: var(--accent); }
.hero-kicker span { display: block; }
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.4rem, 7.1vw, 9.5rem);
    line-height: 1;
    letter-spacing: -.018em;
}
.hero-text {
    max-width: 30em;
    margin-top: clamp(20px, 2.6vw, 32px);
    color: var(--muted-ink);
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.5;
}
.hero-button { margin-top: clamp(24px, 3vw, 40px); min-width: min(100%, 320px); }

.hero-caption {
    position: absolute; left: calc(50% + var(--edge)); right: var(--edge); bottom: clamp(28px, 4vh, 44px); z-index: 4;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero-caption a { display: flex; flex-wrap: wrap; gap: .1em .9em; text-decoration: none; font-weight: 500; }
.hero-caption-label { display: block; margin-bottom: 4px; color: var(--accent); font-size: .875rem; }
.hero-caption-price { color: var(--muted-ink); font-weight: 400; }
.hero-count { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-variant-numeric: tabular-nums; flex: none; }
.hero-count-bar { display: block; width: clamp(48px, 7vw, 110px); height: 1px; background: var(--line-ink); overflow: hidden; }
.hero-count-bar span { display: block; height: 100%; background: var(--on-ink); transform: scaleX(0); transform-origin: left; }

/* Photographs drawn as 3D surfaces take the place of the plain pictures once they are ready. */
.relief-canvas { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s linear; pointer-events: none; }
.is-relief > .relief-canvas { opacity: 1; }
.hero-media.is-relief .hero-slide { visibility: hidden; transition: none; }
.about-photo { position: relative; }
.about-photo.is-relief img { visibility: hidden; }

@media (max-width: 899px) {
    .hero-media { width: 100%; }
    .hero-media::after {
        background:
            linear-gradient(to top, var(--ink) 4%, color-mix(in oklab, var(--ink) 74%, transparent) 40%, transparent 72%),
            linear-gradient(to bottom, color-mix(in oklab, var(--ink) 70%, transparent) 0, transparent 20%);
    }
    .hero-caption { display: none; }
    .hero-copy { width: 100%; }
    .hero-title { font-size: clamp(3rem, 15.5vw, 6rem); }
    .hero-button { width: 100%; }
}

/* ---------- Moving ribbon ---------- */

.ribbon {
    display: flex;
    overflow: hidden;
    padding-block: 18px;
    background: var(--ink);
    color: var(--on-ink);
    border-top: 1px solid var(--line-ink);
}
.ribbon-set { display: flex; flex: none; animation: ribbon 70s linear infinite; }
.ribbon-set span {
    display: flex; align-items: center;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    white-space: nowrap;
}
.ribbon-set span::after {
    content: ''; display: block;
    width: 6px; height: 6px; margin-inline: clamp(24px, 3.4vw, 52px);
    background: var(--accent);
    transform: rotate(45deg);
}
@keyframes ribbon { to { transform: translateX(-100%); } }

/* ---------- New arrivals ---------- */

.fresh { padding-block: var(--section) clamp(48px, 7vw, 96px); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    padding-inline: var(--edge);
    margin-bottom: clamp(28px, 4vw, 56px);
}
.section-side { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); flex: none; }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrows button {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border: 1px solid var(--line);
    transition: background-color .4s, color .4s, border-color .4s;
}
.rail-arrows button:hover { background: var(--text); color: var(--paper); border-color: var(--text); }

.rail {
    display: flex; gap: var(--gap);
    padding-inline: var(--edge);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
    cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail-item { flex: 0 0 clamp(236px, 25.5vw, 460px); scroll-snap-align: start; }

.rail-bar { position: relative; height: 1px; margin: clamp(24px, 3vw, 40px) var(--edge) 0; background: var(--line); }
.rail-bar span { position: absolute; left: 0; top: -.5px; display: block; height: 2px; background: var(--text); transition: transform .12s linear; }

@media (max-width: 899px) {
    .rail-arrows { display: none; }
    .rail-item { flex-basis: 66vw; }
}

/* ---------- Product card ---------- */

.card { display: block; text-decoration: none; }
.card-photo {
    position: relative; display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--tone);
}
.card-img, .card-img-next { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-img-next {
    position: absolute; inset: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path .8s var(--ease), transform 1.2s var(--ease);
}
.card-view {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: block; overflow: hidden;
    font-size: .9375rem; font-weight: 500;
}
.card-view span {
    display: block;
    padding: 12px 16px;
    background: var(--paper);
    color: var(--text);
    transform: translateY(101%);
    transition: transform .6s var(--ease);
}
.card-flag {
    position: absolute; left: 12px; top: 12px;
    padding: 4px 10px;
    background: var(--text);
    color: var(--paper);
    font-size: .8125rem; font-weight: 500;
}
.card-text { display: block; padding-top: 14px; }
.card-name { display: block; font-weight: 500; line-height: 1.35; }
.card-code { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.card-price { font-weight: 500; font-variant-numeric: tabular-nums; }
.card-stock { color: var(--muted); font-size: .875rem; }
.card.is-out .card-img { filter: grayscale(.8); opacity: .7; }
.card.is-out .card-name, .card.is-out .card-price { color: var(--muted); }

@media (hover: hover) {
    .card:hover .card-img { transform: scale(1.05); }
    .card:hover .card-img-next { clip-path: inset(0); transform: scale(1.02); }
    .card:hover .card-view span { transform: none; }
}

/* A product with no picture: the logo and a plain note. */
.no-photo {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 10%;
    background: var(--tone);
    color: var(--muted);
    text-align: center;
    font-size: .875rem;
    line-height: 1.3;
}
.no-photo img { width: min(64%, 200px); height: auto; }

/* ---------- Film section ----------
   Without the script, or for anyone asking for less motion, this is a plain gallery. The script adds "is-live",
   which turns it into a stage the camera flies through. */

.film { padding: var(--section) var(--edge); background: var(--ink); color: var(--on-ink); }
.film-world { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.film-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.film-line {
    grid-column: 1 / -1;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: -.015em;
}
.film-grain, .film-bars { display: none; }
.film-link { margin-top: clamp(24px, 3vw, 40px); }

.film.is-live { height: 460vh; padding: 0; --spread: 1; --shot: clamp(250px, 28vw, 520px); }
.film.is-live .film-stage {
    position: sticky; top: 0;
    height: 100svh;
    overflow: hidden;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    background: radial-gradient(ellipse at 50% 46%, color-mix(in oklab, var(--on-ink) 7%, var(--ink)), var(--ink) 68%);
}
.film.is-live .film-world {
    position: absolute; left: 50%; top: 50%;
    display: block; width: 0; height: 0;
    transform-style: preserve-3d;
    will-change: transform;
}
.film.is-live .film-shot {
    position: absolute;
    width: var(--shot);
    margin-left: calc(var(--shot) / -2);
    margin-top: calc(var(--shot) * -.625);
    opacity: 0;
    transform: translate3d(calc(var(--x) * var(--spread) * 1vw), calc(var(--y) * 1vh), calc(var(--z) * 1px)) rotateY(calc(var(--r) * 1deg));
    will-change: opacity;
}
.film.is-live .film-shot img { box-shadow: 0 40px 90px rgb(0 0 0 / .55); }
.film.is-relief .film-shot { display: none; }
.film.is-relief .relief-canvas { z-index: 0; opacity: 1; }
.film.is-live .film-world { z-index: 1; }
.film.is-live .film-line {
    position: absolute;
    width: 90vw;
    margin-left: -45vw;
    transform: translateY(-50%) translateZ(calc(var(--z) * 1px));
    opacity: 0;
    text-align: center;
    font-size: clamp(4rem, 15vw, 16rem);
    white-space: nowrap;
    text-shadow: 0 4px 60px rgb(0 0 0 / .6);
}
.film.is-live .film-bars { display: block; }
.film-bars span {
    position: absolute; left: 0; right: 0; z-index: 3;
    height: clamp(36px, 9vh, 96px);
    background: #000;
    transform: scaleY(var(--bars, 0));
    pointer-events: none;
}
.film-bars span:first-child { top: 0; transform-origin: top; }
.film-bars span:last-child { bottom: 0; transform-origin: bottom; }
.film.is-live .film-grain {
    display: block;
    position: absolute; inset: -50%; z-index: 2;
    pointer-events: none;
    opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain .9s steps(5) infinite;
}
@keyframes grain {
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -5%); }
    60% { transform: translate(-3%, -2%); }
    80% { transform: translate(5%, 4%); }
}
.film.is-live .film-link {
    position: absolute; right: var(--edge); bottom: calc(clamp(36px, 9vh, 96px) + 16px); z-index: 4;
    margin: 0;
}

@media (max-width: 899px) {
    .film.is-live { height: 400vh; --spread: .5; --shot: 62vw; }
    .film.is-live .film-link { right: auto; left: var(--edge); }
}

/* The words and the picture on the opening screen drift against each other with the mouse. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hero-copy { transform: translate3d(calc(var(--hx, 0) * -14px), calc(var(--hy, 0) * -10px), 0); transition: transform 1.4s var(--ease); }
}

/* ---------- Categories ---------- */

.index {
    position: relative;
    padding: var(--section) var(--edge);
    background: var(--ink);
    color: var(--on-ink);
}
.index-title { margin-bottom: clamp(24px, 3.6vw, 48px); color: var(--accent); }
.index-list { border-bottom: 1px solid var(--line-ink); }
.index-row {
    position: relative;
    display: grid; grid-template-columns: 3.2em 1fr auto auto; align-items: center; gap: 0 16px;
    padding-block: clamp(14px, 1.9vw, 26px);
    border-top: 1px solid var(--line-ink);
    text-decoration: none;
    transition: opacity .5s var(--ease);
}
.index-number { color: var(--muted-ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.index-name {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 6.6vw, 6.5rem);
    line-height: 1.08;
    letter-spacing: -.012em;
    transition: transform .8s var(--ease), color .4s;
}
.index-count { color: var(--muted-ink); font-variant-numeric: tabular-nums; }
.index-thumb { display: none; }

@media (hover: hover) {
    .index-list:hover .index-row:not(:hover) { opacity: .34 !important; }
    .index-row:hover .index-name { transform: translateX(.3em); color: var(--accent); }
}

@media (max-width: 899px) {
    .index-row { grid-template-columns: 1fr auto 56px; }
    .index-number { display: none; }
    .index-thumb { display: block; width: 56px; height: 70px; object-fit: cover; }
}

/* ---------- Large sentence ---------- */

.statement { padding: var(--section) var(--edge); }
.statement-text {
    max-width: 21em;
    font-family: var(--serif);
    font-size: clamp(2rem, 4.8vw, 4.75rem);
    line-height: 1.14;
    letter-spacing: -.01em;
}
.statement-text.is-filling span { transition: opacity .25s linear; }
.statement .arrow-link { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Places ---------- */

.visit { padding: var(--section) var(--edge); background: var(--tone); }
.places {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 64px);
    margin-top: clamp(32px, 4.6vw, 64px);
}
.place { border-top: 1px solid var(--line); padding-top: 20px; }
.place h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; margin-bottom: 18px; }
.place dl { display: grid; gap: 14px; }
.place dt { color: var(--muted); font-size: .875rem; }
.place dd a { text-decoration: none; font-weight: 500; }
.place-phones { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.place-phones a { min-height: 32px; }
.place .arrow-link { margin-top: 14px; }

/* ---------- Product list ---------- */

.list-head { padding: clamp(36px, 5vw, 72px) var(--edge) 0; }
.list-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 24px; }
.list-count { flex: none; padding-bottom: .5em; color: var(--muted); }

.tabs {
    position: relative;
    display: flex; gap: clamp(20px, 2.6vw, 36px);
    margin-top: clamp(24px, 3.4vw, 44px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: none;
    display: flex; align-items: center;
    min-height: 52px;
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    transition: color .3s;
}
.tab:hover, .tab.is-current { color: var(--text); }
html:not(.js) .tab.is-current { box-shadow: inset 0 -2px 0 var(--text); }
.tab-line {
    position: absolute; left: 0; bottom: 0;
    height: 2px;
    background: var(--text);
    transition: transform .6s var(--ease), width .6s var(--ease);
}

.tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; padding-block: 14px; }
.tool-search { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; min-height: 48px; }
.tool-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tool-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; outline: 0; }
.tool-search input::placeholder { color: var(--muted); opacity: 1; }
.tool-side { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); flex-wrap: wrap; }

.tool-check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.tool-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.tool-box { position: relative; width: 22px; height: 22px; border: 1px solid var(--muted); flex: none; transition: background-color .25s, border-color .25s; }
.tool-box::after {
    content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
    border: solid var(--paper); border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .3s var(--ease);
}
.tool-check input:checked + .tool-box { background: var(--text); border-color: var(--text); }
.tool-check input:checked + .tool-box::after { transform: rotate(45deg); }
.tool-check input:focus-visible + .tool-box { outline: 2px solid var(--accent); outline-offset: 3px; }

.tool-select { position: relative; display: block; }
.tool-select::after {
    content: ''; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border: solid currentColor; border-width: 0 1.4px 1.4px 0;
    transform: rotate(45deg);
    pointer-events: none;
}
.tool-select select {
    appearance: none;
    min-height: 44px;
    padding: 0 26px 0 0;
    border: 0;
    background: none;
    font-weight: 500;
    cursor: pointer;
}
.tool-select option { color: #16150f; background: #fff; }

@media (max-width: 600px) {
    .list-count { padding-bottom: 0; margin-top: 8px; }
    .tools { gap: 0; }
    .tool-search { flex-basis: 100%; }
    .tool-side { width: 100%; justify-content: space-between; gap: 12px; font-size: 1rem; }
}

.list-body { padding: clamp(12px, 2vw, 28px) var(--edge) var(--section); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.empty { padding-block: clamp(48px, 8vw, 120px); }
.empty h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.empty p { margin-block: 12px 20px; color: var(--muted); }

/* ---------- Product page ---------- */

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }

.gallery { position: relative; }
.gallery-track { display: grid; gap: 4px; outline-offset: -3px; }
.gallery-slide { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; background: var(--tone); }
.gallery-empty { cursor: default; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-empty .no-photo { font-size: 1.0625rem; gap: 20px; }
.gallery-empty .no-photo img { width: min(56%, 340px); height: auto; object-fit: contain; transform: none; animation: none; }
.gallery-count { display: none; }

@media (hover: hover) {
    button.gallery-slide:hover img { transform: scale(1.025); }
}

.info { position: sticky; top: var(--top); padding: clamp(28px, 4vw, 64px) var(--edge) clamp(40px, 5vw, 72px) clamp(28px, 4vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9375rem; }
.crumbs a { text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.info-title {
    margin-top: clamp(16px, 2vw, 28px);
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.2vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -.012em;
}
.info-code { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.info-price { margin-top: clamp(14px, 1.8vw, 24px); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.info-stock { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.info-stock > span[aria-hidden] { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.info-stock.is-yes > span[aria-hidden] { color: var(--accent-text); }
.info-stock.is-no { color: var(--muted); }

.info-block { margin-top: clamp(24px, 3vw, 36px); }
.info-label { margin-bottom: 10px; font-size: .9375rem; font-weight: 500; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 64px; min-height: 58px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    line-height: 1.25;
}
.sizes strong { font-weight: 500; }
.sizes span { color: var(--muted); font-size: .8125rem; }

.info-actions { display: grid; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.info-actions .arrow-link { justify-self: start; margin-top: 4px; }

.folds { margin-top: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.fold { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.fold summary {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 58px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before, .fold summary::after {
    content: ''; position: absolute; right: 2px; top: 50%; width: 13px; height: 1.4px;
    background: currentColor;
    transition: transform .5s var(--ease);
}
.fold summary::after { transform: rotate(90deg); }
.fold[open] summary::after { transform: rotate(0); }
.fold::details-content {
    height: 0; overflow: clip;
    transition: height .6s var(--ease), content-visibility .6s allow-discrete;
}
.fold[open]::details-content { height: auto; }
.fold-body { padding-bottom: 20px; color: var(--muted); }
.fold-body p + p { margin-top: .7em; }

.related { padding: var(--section) var(--edge); }
.related .grid { margin-top: clamp(28px, 4vw, 56px); }

.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: none; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px var(--edge) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateY(101%);
    transition: transform .6s var(--ease);
}
.buybar.is-on { transform: none; }
.buybar-price { font-size: 1.1875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.buybar .btn { min-height: 48px; }

@media (max-width: 899px) {
    .product { display: block; }
    .gallery-track {
        display: flex; gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .gallery-track::-webkit-scrollbar { display: none; }
    .gallery-slide { flex: 0 0 100%; scroll-snap-align: center; }
    .gallery-count {
        display: block;
        position: absolute; right: 12px; bottom: 12px;
        padding: 2px 10px;
        background: var(--paper);
        color: var(--text);
        font-size: .875rem;
        font-variant-numeric: tabular-nums;
    }
    .info { position: static; padding: 24px var(--edge) 40px; }
    .buybar { display: flex; }
}

.zoom {
    position: fixed; inset: 0;
    width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    background: var(--ink);
    overflow: auto;
    cursor: zoom-out;
}
.zoom::backdrop { background: var(--ink); }
.zoom img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
    .zoom { overflow: hidden; }
    .zoom img { transform: scale(1.5); transform-origin: var(--x, 50%) var(--y, 50%); transition: transform-origin .5s var(--ease); }
}
.zoom-close {
    position: fixed; right: 16px; top: 16px; z-index: 2;
    display: grid; place-items: center;
    width: 48px; height: 48px;
    background: var(--paper);
    color: var(--text);
}

/* ---------- About ---------- */

.about-hero {
    position: relative;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
    align-items: end;
    padding: clamp(48px, 7vw, 112px) var(--edge) 0;
    background: var(--ink);
    color: var(--on-ink);
}
.about-hero-copy { grid-column: 1 / span 7; padding-bottom: clamp(48px, 7vw, 112px); }
.about-hero-copy .overline { margin-bottom: clamp(16px, 2vw, 24px); color: var(--accent); }
.about-title { font-family: var(--serif); font-size: clamp(3.4rem, 9.4vw, 9.5rem); line-height: .98; letter-spacing: -.018em; }
.about-hero-media { grid-column: 8 / -1; margin-bottom: calc(clamp(56px, 8vw, 128px) * -1); position: relative; z-index: 2; }
.about-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tone); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-story {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) var(--gap);
    padding: calc(clamp(56px, 8vw, 128px) + var(--section)) var(--edge) var(--section);
}
.about-lead {
    grid-column: 1 / span 9;
    font-family: var(--serif);
    font-size: clamp(2rem, 4.4vw, 4.25rem);
    line-height: 1.14;
    letter-spacing: -.01em;
}
.about-lead.is-filling span { transition: opacity .25s linear; }
.about-text { grid-column: 7 / -1; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.about-text p + p { margin-top: 1em; }

.about-values { padding: var(--section) var(--edge); background: var(--ink); color: var(--on-ink); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
.value { border-top: 1px solid var(--line-ink); padding-top: 18px; }
.value-number { color: var(--accent); font-size: .875rem; font-variant-numeric: tabular-nums; }
.value h3 { margin-top: clamp(32px, 6vw, 88px); font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.08; }
.value p { margin-top: 12px; color: var(--muted-ink); }

.contact { padding: var(--section) var(--edge); }
.contact-list { display: grid; margin-top: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.contact-list > div {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: baseline; gap: 8px var(--gap);
    padding-block: clamp(14px, 2vw, 24px);
    border-top: 1px solid var(--line);
}
.contact-list dt { color: var(--muted); }
.contact-list dd { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.15; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; transition: color .3s; }
.contact-phones { display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 56px); }
.contact-list a:hover { color: var(--accent-text); }
.contact-soon { margin-top: 20px; color: var(--muted); }

@media (max-width: 899px) {
    .about-hero-copy, .about-hero-media { grid-column: 1 / -1; }
    .about-hero-copy { padding-bottom: 8px; }
    .about-lead, .about-text { grid-column: 1 / -1; }
    .contact-list > div { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.foot { padding: clamp(56px, 7vw, 104px) var(--edge) 28px; background: var(--ink); color: var(--on-ink); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px var(--gap); }
.foot-brand { grid-column: span 2; }
.foot-logo { display: block; width: fit-content; }
.foot-logo img { height: 72px; width: auto; }
.foot-branch { margin-top: 14px; color: var(--accent); font-weight: 500; }
.foot-text { max-width: 26em; margin-top: 6px; color: var(--muted-ink); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-col h2 { margin-bottom: 10px; color: var(--muted-ink); font-size: .9375rem; font-weight: 400; }
.foot-col a {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .6s var(--ease);
}
.foot-col a:hover { background-size: 100% 1px; }
.foot-place p { color: var(--muted-ink); }
.foot-end {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
    margin-top: clamp(40px, 6vw, 80px);
    padding-top: 18px;
    border-top: 1px solid var(--line-ink);
    color: var(--muted-ink);
    font-size: .875rem;
}

@media (max-width: 600px) {
    .foot-brand { grid-column: auto; }
}

/* ---------- The delivery man's page ----------
   Used on a phone, on the move, often in a hurry: big buttons, the address first, and no script needed. */

.run-page { min-height: 100svh; background: var(--tone); }
.run-top { display: flex; align-items: center; gap: 16px; padding: 14px var(--edge); background: var(--ink); color: var(--on-ink); }
.run-top img { height: 48px; width: auto; }
.run-top h1 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.run-top p { color: var(--muted-ink); font-size: .9375rem; }
.run-summary {
    position: sticky; top: 0; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}
.run-summary div { padding: 10px var(--edge); background: var(--paper); }
.run-summary strong { display: block; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.run-summary span { color: var(--muted); font-size: .875rem; }
.stops { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; padding: 12px; list-style: none; }
.stop { padding: 16px; background: var(--paper); border: 1px solid var(--line); }
.stop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stop-number {
    display: grid; place-items: center; flex: none;
    width: 32px; height: 32px;
    background: var(--text);
    color: var(--paper);
    font-weight: 600;
}
.stop h2 { flex: 1; min-width: 120px; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.stop-badge { padding: 3px 10px; background: var(--tone); font-size: .875rem; font-weight: 500; }
.stop-badge.is-done { background: var(--text); color: var(--paper); }
.stop-collect {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    background: color-mix(in oklab, var(--accent) 20%, var(--paper));
}
.stop-collect strong { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stop-address { margin-top: 12px; font-size: 1.1875rem; line-height: 1.4; }
.stop-actions { display: grid; gap: 8px; margin-top: 12px; }
.stop-items { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.stop-items li { display: flex; align-items: center; gap: 12px; }
.stop-items img, .stop-noimage { flex: none; width: 56px; height: 56px; object-fit: cover; background: var(--tone); }
.stop-items li > span:not(.stop-noimage) { flex: 1; min-width: 0; }
.stop-items strong { display: block; font-weight: 500; line-height: 1.3; }
.stop-items small { color: var(--muted); font-size: .875rem; }
.stop-items b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.stop-note { margin-top: 12px; padding: 10px 12px; background: var(--tone); }
.stop form { margin-top: 14px; }
.stop-undo { min-height: 44px; text-decoration: underline; color: var(--muted); }
.stop.is-done { background: transparent; }
.stop.is-done .stop-items img { opacity: .6; }
.btn svg path[d^="M4 12l5"] { stroke-width: 1.8; }

/* ---------- Messages ---------- */

.message-page { min-height: 66vh; padding: clamp(56px, 10vw, 140px) var(--edge); }
.message-page p { max-width: 34em; margin-block: 14px 22px; color: var(--muted); }
.message-page .message-code {
    margin: 0 0 8px;
    color: var(--accent-text);
    font-size: .9375rem;
    letter-spacing: .16em;
}

/* ---------- Arrival ---------- */

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    ::view-transition-old(root) { animation: page-out .32s var(--ease-both) both; }
    ::view-transition-new(root) { animation: page-in .75s var(--ease) both; }
    ::view-transition-group(top) { animation: none; z-index: 5; }
    ::view-transition-old(top) { display: none; }
    ::view-transition-new(top) { animation: none; }
    ::view-transition-group(product-photo) { animation-duration: .7s; animation-timing-function: var(--ease); z-index: 4; }

    @keyframes page-out { to { opacity: 0; transform: translateY(-14px); } }
    @keyframes page-in { from { opacity: 0; transform: translateY(26px); } }
    @keyframes rise { from { transform: translateY(112%); } }
    @keyframes appear { from { opacity: 0; transform: translateY(14px); } }
    @keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
    @keyframes settle { from { transform: scale(1.22); } }
    @keyframes curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
    @keyframes drop { from { transform: translateY(-100%); } }
    @keyframes fade { from { opacity: 0; } }

    /* Headings already on screen when a page opens. */
    .lines:not([data-reveal]) .line > span {
        animation: rise 1.15s var(--ease) both;
        animation-delay: calc(.12s + var(--i, 0) * .1s);
    }

    .hero-kicker span, .about-hero-copy .overline span { animation: appear 1s var(--ease) .1s both; }
    .hero-text { animation: appear 1.1s var(--ease) .55s both; }
    .hero-button { animation: appear 1.1s var(--ease) .68s both; }
    .hero-caption { animation: appear 1.1s var(--ease) .95s both; }
    .hero-media { animation: wipe 1.5s var(--ease-both) both; }
    .hero-slide:first-child img { animation: settle 2.4s var(--ease) both; }
    .top { animation: fade .9s linear .2s both; }
    .is-home .top { animation-delay: .5s; }
    .list-count, .tabs, .tools { animation: appear .9s var(--ease) .25s both; }
    .crumbs, .info-code, .info-price, .info-stock, .info-block, .info-actions, .folds { animation: appear 1s var(--ease) .3s both; }
    .gallery-slide:first-child { animation: wipe 1.15s var(--ease-both) both; }
    .gallery-slide:first-child img { animation: settle 1.8s var(--ease) both; }

    .menu[open] { animation: curtain .8s var(--ease-both) both; }
    .menu[open] .menu-links span { animation: rise 1s var(--ease) both; animation-delay: calc(.3s + var(--i) * .08s); }
    .menu[open] .menu-phones { animation: appear .9s var(--ease) .6s both; }
    .finder[open] { animation: drop .7s var(--ease) both; }
    .finder[open]::backdrop { animation: fade .4s linear both; }
    .finder-row { animation: appear .6s var(--ease) both; }
    .zoom[open] { animation: fade .3s linear both; }

    /* Things further down wait for you to reach them, but only if the script is there to bring them in. */
    .js [data-reveal]:not([data-reveal="lines"]):not([data-reveal="photo"]) {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 1s var(--ease) var(--delay, 0ms), transform 1.2s var(--ease) var(--delay, 0ms);
    }
    .js [data-reveal]:not([data-reveal="lines"]):not([data-reveal="photo"]).is-in { opacity: 1; transform: none; }

    .js [data-reveal="lines"] .line > span { transform: translateY(112%); transition: transform 1.15s var(--ease) var(--delay, 0ms); }
    .js [data-reveal="lines"].is-in .line > span { transform: none; }

    .js [data-reveal="photo"] .card-photo,
    .js [data-reveal="photo"] .about-photo {
        clip-path: inset(0 0 100% 0);
        transition: clip-path 1.1s var(--ease-both) var(--delay, 0ms);
    }
    .js [data-reveal="photo"].is-in .card-photo,
    .js [data-reveal="photo"].is-in .about-photo { clip-path: inset(0); }
    .js [data-reveal="photo"] .card-text { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) calc(var(--delay, 0ms) + .35s), transform .9s var(--ease) calc(var(--delay, 0ms) + .35s); }
    .js [data-reveal="photo"].is-in .card-text { opacity: 1; transform: none; }
}

/* View transitions name each moved picture, so the live filter's rearranging stays gentle. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
    .ribbon { overflow-x: auto; }
    .ribbon-set { animation: none; }
    .hero-slide img, .card-img, .card-img-next { transition: none; }
}

@media print {
    .top, .foot, .buybar, .ribbon { display: none; }
    main { padding: 0; }
}
