/*
 * PureMakers homepage.
 *
 * The page is lit by whichever print is on show in the hero: --art is that print's colour, and the
 * night bands, the paper and the highlight text are all derived from it, so when home.js hangs the
 * next print the whole page shifts with it. Browsers without relative colour keep fixed fallbacks.
 */

@font-face {
    font-family: "Gloock";
    src: url("/assets/fonts/gloock-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("/assets/fonts/hanken-grotesk-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@property --art { syntax: "<color>"; inherits: true; initial-value: #8f877b; }
@property --progress { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
    --ink: #15161a;
    --smoke: #5b5e66;
    --white: #f7f6f3;
    --mist: #b9bbc1;
    --line: rgb(21 22 26 / .12);
    --line-light: rgb(255 255 255 / .14);
    --paper: #f4f4f1;
    --paper-2: #ebebe6;
    --night: #17181c;
    --night-2: #212329;
    --glint: #e6d5bb;

    --display: "Gloock", "Iowan Old Style", Georgia, serif;
    --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
    --radius: 14px;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --max: 1380px;
    --ease: cubic-bezier(.2, .75, .15, 1);
    --header-h: 68px;

    interpolate-size: allow-keywords;
    transition: --art 1.6s var(--ease);
    scroll-behavior: smooth;
}
@supports (color: oklch(from red l c h)) {
    :root {
        --paper: oklch(from var(--art) .972 .006 h);
        --paper-2: oklch(from var(--art) .94 .014 h);
        --night: oklch(from var(--art) .19 calc(min(c, .12) * .32) h);
        --night-2: oklch(from var(--art) .245 calc(min(c, .12) * .38) h);
        --glint: oklch(from var(--art) .84 calc(min(c, .14) * .9 + .025) h);
    }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; transition-duration: .01s; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--white); color: var(--ink);
    padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- Type and shared pieces ---------------------------------------------------------------- */

.eyebrow {
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--smoke);
}
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2,
.faq h2, .together h2, .about h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.35rem, 1.45rem + 3vw, 4.1rem);
    line-height: 1;
    letter-spacing: -.012em;
    margin-top: .7rem;
    text-wrap: balance;
}
.section-head > p {
    max-width: 25rem;
    color: var(--smoke);
    text-wrap: pretty;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.55rem;
    border: 0;
    border-radius: 999px;
    font-weight: 620;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.button:hover { transform: translateY(-2px); }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: #fff; box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--art) 70%, black); }
.button--ink { background: var(--ink); color: var(--white); }
.button--ink:hover { background: #000; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 620;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: .2rem;
    transition: background-size .4s var(--ease);
}
.link-arrow::after { content: "→"; transition: translate .3s var(--ease); }
.link-arrow:hover::after { translate: .25rem 0; }

.price { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---- Offer bar and header ------------------------------------------------------------------- */

.offer-bar {
    background: var(--night);
    color: var(--mist);
    font-size: .8125rem;
    text-align: center;
    padding: .55rem var(--gutter);
    border-bottom: 1px solid var(--line-light);
}
.offer-bar a { color: var(--white); text-underline-offset: 3px; }
.offer-bar small { display: inline-block; margin-left: .5rem; opacity: .75; font-size: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    color: var(--white);
    background: var(--night);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line-light);
    transition: background-color .5s, color .5s, border-color .5s;
}
.past-hero .site-header {
    color: var(--ink);
    background: color-mix(in oklab, var(--paper) 95%, transparent);
    border-bottom-color: var(--line);
}
.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .7rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand__name { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand__name span { color: var(--glint); }
.past-hero .brand__name span { color: inherit; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; font-size: .9375rem; }
.site-nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.site-nav .header-cta {
    opacity: 1;
    padding: .5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color .25s, color .25s;
}
.site-nav .header-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.past-hero .site-nav .header-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav-toggle {
    margin-left: auto;
    display: none;
    align-items: center;
    gap: .6rem;
    background: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: .45rem .95rem;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before {
    display: block;
    width: 14px; height: 1.6px;
    background: currentColor;
    position: relative;
    transition: transform .3s var(--ease);
}
.nav-toggle span { box-shadow: 0 -4.5px 0 currentColor; translate: 0 2px; }
.nav-toggle span::before { content: ""; position: absolute; top: 4.5px; }
.nav-open .nav-toggle span { box-shadow: none; transform: rotate(45deg); }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(-90deg); }

.catalogue-error {
    max-width: 40rem;
    margin: 1.5rem auto;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: #fdeceb;
    color: #8c1d18;
    text-align: center;
    font-size: .9375rem;
}
.catalogue-error strong { display: block; }

/* ---- Hero: the print on show lights the room -------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    color: var(--white);
    background:
        radial-gradient(55% 65% at 74% 42%, color-mix(in oklab, var(--art) 42%, transparent), transparent 72%),
        var(--night);
    padding: clamp(2.5rem, 6vw, 4.75rem) var(--gutter) 1.75rem;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .09;
    mix-blend-mode: overlay;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__glow img {
    position: absolute;
    right: 6%;
    top: 8%;
    width: 52%;
    height: 84%;
    object-fit: cover;
    border-radius: 50%;
    filter: blur(70px) saturate(1.5);
    opacity: 0;
    transition: opacity 1.6s var(--ease);
}
.hero__glow img.is-current { opacity: .5; }

.hero__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: "copy stage" "rail rail";
    gap: 2.5rem clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: min(76svh, 780px);
}
.hero__copy { grid-area: copy; max-width: 37rem; }
.hero .eyebrow { color: var(--mist); }
.hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(3rem, 1rem + 5vw, 6.4rem);
    line-height: .94;
    letter-spacing: -.02em;
    margin: 1.25rem 0 1.6rem;
}
.hero h1 .line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > * { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--glint); }
.hero__intro { max-width: 30rem; color: color-mix(in oklab, var(--white) 80%, transparent); font-size: 1.125rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.1rem; }

.hero__stage { grid-area: stage; position: relative; padding-bottom: 1rem; }
.deck {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    width: min(calc(100% - 8.5rem), 64svh);
    margin-top: 2.5rem;
    perspective: 1600px;
    touch-action: pan-y;
    user-select: none;
}
.deck__card {
    grid-area: 1 / 1;
    transform-origin: 50% 100%;
    transition: transform 1.05s var(--ease), opacity .9s var(--ease), filter 1.05s var(--ease);
}
.deck__card[data-pos="0"] { z-index: 4; }
.deck__card[data-pos="1"] { z-index: 3; transform: translate(7%, -6%) rotate(4deg) scale(.9); filter: brightness(.55) saturate(.85); }
.deck__card[data-pos="2"] { z-index: 2; transform: translate(13%, -11%) rotate(8deg) scale(.81); filter: brightness(.35) saturate(.7); }
.deck__card[data-pos="out"] { z-index: 1; opacity: 0; transform: translate(16%, -15%) rotate(11deg) scale(.74); }
.deck__card[data-pos="gone"] { z-index: 5; opacity: 0; transform: translate(-46%, 14%) rotate(-13deg) scale(.96); }
.deck__tilt {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 50px 90px -35px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 255 255 / .07);
    transform: rotateY(var(--rx, 0deg)) rotateX(var(--ry, 0deg));
    transition: transform .5s var(--ease);
}
.deck__tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgb(255 255 255 / .16), transparent 55%);
    pointer-events: none;
}
.deck__tilt img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }

.plaque {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
    width: 14.5rem;
    background: var(--white);
    color: var(--ink);
    padding: 1.1rem 1.2rem 1.15rem;
    border-radius: 3px;
    box-shadow: 0 24px 50px -24px rgb(0 0 0 / .65);
    font-size: .875rem;
    line-height: 1.45;
}
.plaque__kicker { display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.plaque__kicker span:last-child { font-variant-numeric: tabular-nums; }
.plaque__title { font-weight: 650; font-size: 1.0625rem; line-height: 1.25; margin: .55rem 0 .3rem; text-wrap: balance; }
.plaque__title a { text-decoration: none; }
.plaque__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plaque__meta { color: var(--smoke); }
.plaque__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .95rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.plaque__foot a { font-weight: 620; text-decoration: none; white-space: nowrap; }
.plaque__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero__rail {
    grid-area: rail;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-light);
}
.rail__pause {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: none;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    padding: .5rem .95rem;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}
.rail__pause:hover { border-color: var(--white); }
.rail__icon { width: 10px; height: 11px; border-inline: 3px solid currentColor; }
.rail__pause[aria-pressed="true"] .rail__icon { border: 0; border-left: 10px solid currentColor; border-block: 5.5px solid transparent; }
.rail__thumbs { display: flex; gap: .7rem; }
.rail__thumb {
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}
.rail__thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .45; transition: opacity .4s, transform .4s var(--ease); }
.rail__thumb:hover img { opacity: .85; }
.rail__thumb[aria-current="true"] img { opacity: 1; transform: scale(.84); }
.rail__thumb::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(var(--glint) calc(var(--progress) * 1turn), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    opacity: 0;
}
.rail__thumb[aria-current="true"]::after { opacity: 1; --progress: 1; }
.rail__note { margin-left: auto; color: var(--mist); font-size: .8125rem; }

/* ---- Assurances ----------------------------------------------------------------------------- */

.assurances {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.6rem var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    border-bottom: 1px solid var(--line);
    color: var(--smoke);
    font-size: .875rem;
    line-height: 1.45;
}
.assurances strong { display: block; color: var(--ink); font-weight: 650; font-size: .9375rem; }

/* ---- Collections ---------------------------------------------------------------------------- */

.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.mood {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c);
    color: #fff;
    text-decoration: none;
    transition: box-shadow .6s var(--ease), translate .6s var(--ease);
}
.mood img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mood::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in oklab, var(--c), black 72%) 0%, color-mix(in oklab, var(--c) 30%, transparent) 48%, transparent 70%);
}
.mood:hover { translate: 0 -4px; box-shadow: 0 34px 60px -30px color-mix(in oklab, var(--c), black 15%); }
.mood:hover img { transform: scale(1.06); }
.mood__count {
    position: absolute; top: 1rem; left: 1rem; z-index: 1;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgb(255 255 255 / .9);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 650;
}
.mood__label {
    position: absolute; inset: auto 1.25rem 1.15rem; z-index: 1;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.mood__label strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.55rem, 1.1rem + 1vw, 2.1rem); line-height: 1.05; }
.mood__label small { display: block; margin-top: .35rem; font-size: .875rem; opacity: .86; }
.mood__arrow {
    flex: none;
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / .5);
    transition: background-color .3s, color .3s, rotate .5s var(--ease);
}
.mood:hover .mood__arrow { background: #fff; color: var(--ink); rotate: -45deg; }

/* ---- Shop: filters, grid, pager ------------------------------------------------------------- */

.filters { display: grid; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / .55);
    font-size: .875rem;
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__swatch { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }

.tools { display: flex; align-items: center; gap: .5rem; }
.search { position: relative; display: block; flex: 0 1 24rem; margin-right: auto; }
.search svg { position: absolute; left: .85rem; top: 50%; width: 1rem; height: 1rem; translate: 0 -50%; color: var(--smoke); pointer-events: none; }
.search input {
    width: 100%;
    padding: .55rem .9rem .55rem 2.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .9375rem;
    transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #8b8e95; }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--art) 35%, transparent); }
.select select {
    appearance: none;
    padding: .55rem 2.1rem .55rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315161a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .85rem center / .65rem;
    font-size: .9375rem;
    cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@supports (appearance: base-select) {
    .select select, .select ::picker(select) { appearance: base-select; }
    .select select { background-image: none; display: flex; align-items: center; gap: .5rem; padding-right: .9rem; }
    .select select::picker-icon { content: ""; width: .6rem; height: .6rem; border: solid currentColor; border-width: 0 1.6px 1.6px 0; rotate: 45deg; translate: 0 -.15rem; transition: rotate .25s var(--ease); }
    .select select:open::picker-icon { rotate: 225deg; translate: 0 .15rem; }
    .select ::picker(select) {
        margin-top: .4rem;
        padding: .35rem;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 24px 50px -20px rgb(0 0 0 / .3);
    }
    .select option { padding: .5rem .8rem; border-radius: 9px; font-size: .9375rem; }
    .select option:hover, .select option:focus-visible { background: var(--paper-2); outline: none; }
    .select option:checked { background: var(--ink); color: var(--white); }
    .select option::checkmark { display: none; }
}
.filters__apply {
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}
.js .filters__apply { display: none; }

.results { padding-top: 1.4rem; }
.results[aria-busy="true"] .grid { opacity: .45; transition: opacity .3s .15s; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; color: var(--smoke); font-size: .875rem; }
.results__reset { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.results__empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 4rem 1rem;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--smoke);
}
.results__empty strong { color: var(--ink); font-size: 1.125rem; }
.results__empty .button { margin-top: .5rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 1.75rem);
}
.art-card { position: relative; display: flex; flex-direction: column; }
.art-card__media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    background: color-mix(in oklab, var(--c) 45%, var(--paper));
    transition: translate .55s var(--ease), box-shadow .55s var(--ease);
}
.art-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .7s ease; }
.js .art-card__media img[data-fade]:not(.is-loaded) { opacity: 0; }
.art-card:hover .art-card__media {
    translate: 0 -5px;
    box-shadow: 0 28px 50px -26px color-mix(in oklab, var(--c), black 20%), 0 0 0 1px color-mix(in oklab, var(--c) 45%, transparent);
}
.art-card:hover .art-card__media img { transform: scale(1.045); }
.art-card__peek {
    position: absolute; left: .75rem; bottom: .75rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / .92);
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 650;
    opacity: 0;
    translate: 0 8px;
    transition: opacity .35s, translate .35s var(--ease);
}
.js .art-card:hover .art-card__peek { opacity: 1; translate: 0 0; }
.art-card__body { flex: 1; display: flex; flex-direction: column; gap: .25rem; padding: 1rem .1rem 0; }
.art-card__title { font-size: 1rem; font-weight: 620; line-height: 1.3; text-wrap: pretty; }
.art-card__title a { text-decoration: none; }
.art-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-card__meta { color: var(--smoke); font-size: .8125rem; }
.art-card__buy { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.art-card__buy .price { margin-right: auto; }
.art-card__buy .price small { margin-left: .35rem; color: var(--smoke); font-size: .75rem; font-weight: 450; }
.art-card__look, .etsy-link {
    display: inline-grid;
    place-items: center;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}
.art-card__look { width: 2.25rem; padding: 0; }
.art-card__look svg { width: 1rem; height: 1rem; }
.etsy-link { display: inline-flex; gap: .3rem; padding: 0 .9rem; font-size: .8125rem; font-weight: 650; text-decoration: none; }
.art-card__look:hover, .etsy-link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pager a, .pager span {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-grid;
    place-items: center;
    padding: 0 .8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9375rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color .2s;
}
.pager a:hover { background: rgb(21 22 26 / .07); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--white); }
.pager .pager__step { padding: 0 1.1rem; }
.pager .is-disabled { opacity: .3; }

/* ---- Better together: a salon hang of print sets -------------------------------------------- */

.together {
    color: var(--white);
    background:
        radial-gradient(50% 60% at 25% 50%, color-mix(in oklab, var(--art) 26%, transparent), transparent 75%),
        var(--night);
}
.together__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}
.together .eyebrow { color: var(--mist); }
.together h2 em { font-style: normal; color: var(--glint); }
.together__copy > p:not(.eyebrow) { margin: 1.4rem 0 1.6rem; color: color-mix(in oklab, var(--white) 78%, transparent); max-width: 30rem; }

.salon { position: relative; aspect-ratio: 1.4; list-style: none; padding: 0; }
.salon__piece { position: absolute; width: var(--w); left: var(--x); top: var(--y); aspect-ratio: 1; }
.salon__piece a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 34px 60px -26px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .06);
    transition: translate .6s var(--ease), box-shadow .6s var(--ease);
}
.salon__piece a:hover { translate: 0 -6px; box-shadow: 0 40px 70px -24px color-mix(in oklab, var(--c), black 30%), 0 0 0 1px rgb(255 255 255 / .1); }
.salon__piece img { width: 100%; height: 100%; object-fit: cover; }
.salon__piece--0 { --w: 40%; --x: 0%; --y: 14%; --depth: 1; }
.salon__piece--1 { --w: 31%; --x: 44%; --y: 0%; --depth: -.6; }
.salon__piece--2 { --w: 20%; --x: 79%; --y: 9%; --depth: .5; }
.salon__piece--3 { --w: 22%; --x: 44%; --y: 50%; --depth: -1.2; }
.salon__piece--4 { --w: 29%; --x: 70%; --y: 46%; --depth: .8; }

.offer {
    margin-top: 2.25rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: rgb(255 255 255 / .05);
}
.offer__kicker { color: var(--mist); font-size: .875rem; }
.offer__headline { margin: .2rem 0 1rem; font-size: 1.0625rem; }
.offer__headline strong { font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; margin-right: .3rem; color: var(--glint); }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.offer__code {
    padding: .85rem 1.1rem;
    border: 1px dashed rgb(255 255 255 / .45);
    border-radius: 999px;
    background: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .875rem;
    letter-spacing: .06em;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.offer__code:hover { border-color: var(--white); background: rgb(255 255 255 / .06); }
.offer small { display: block; margin-top: 1rem; color: var(--mist); font-size: .75rem; line-height: 1.5; }
.offer__status { display: block; margin-top: .5rem; font-size: .875rem; color: var(--glint); }

/* ---- How it works and the print guide ------------------------------------------------------- */

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.step { padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.step__n { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.125rem; font-weight: 650; margin-bottom: .45rem; }
.step p { color: var(--smoke); max-width: 24rem; }

.guide {
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + 6px);
    background: var(--paper-2);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
    gap: 2.5rem;
}
.guide h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.08; margin: .7rem 0 1.25rem; text-wrap: balance; }
.guide__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.guide__notes svg { width: 2rem; height: 2rem; margin-bottom: .9rem; }
.guide__notes h4 { font-size: 1rem; font-weight: 650; margin-bottom: .35rem; }
.guide__notes p { color: var(--smoke); font-size: .9375rem; }

/* ---- Licence and FAQ ------------------------------------------------------------------------ */

.faq { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; margin-top: 2.25rem; }
.facts dt { font-weight: 650; margin-bottom: .3rem; }
.facts dd { color: var(--smoke); font-size: .9375rem; }
.faq__heading { font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 3rem 1.15rem 0;
    font-weight: 620;
    font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: "";
    position: absolute;
    right: .6rem;
    top: 50%;
    width: 14px;
    height: 1.6px;
    background: currentColor;
    transition: rotate .35s var(--ease);
}
.faq summary::after { rotate: 90deg; }
.faq details[open] summary::after { rotate: 0deg; }
.faq details p { padding: 0 3rem 1.3rem 0; color: var(--smoke); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---- About and footer: the night returns ---------------------------------------------------- */

.about {
    color: var(--white);
    background:
        radial-gradient(60% 90% at 50% 0%, color-mix(in oklab, var(--art) 24%, transparent), transparent 70%),
        var(--night);
    text-align: center;
}
.about__inner { max-width: 50rem; margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) var(--gutter) clamp(3.5rem, 7vw, 5rem); display: grid; justify-items: center; gap: 1.4rem; }
.about .eyebrow { color: var(--mist); }
.about h2 { margin: 0; }
.about p:not(.eyebrow) { max-width: 38rem; color: color-mix(in oklab, var(--white) 78%, transparent); font-size: 1.125rem; text-wrap: pretty; }
.about .button { margin-top: .6rem; }

.footer { background: var(--night); color: var(--mist); overflow: clip; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--gutter) 2rem; border-top: 1px solid var(--line-light); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__h { color: var(--white); font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .65rem; font-size: .9375rem; }
.footer li a { color: var(--white); text-decoration: none; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer li span { display: block; font-size: .8125rem; }
.footer__mark {
    margin: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
    font-family: var(--display);
    font-size: clamp(4rem, 1rem + 15.5vw, 15.5rem);
    line-height: .8;
    letter-spacing: -.035em;
    color: color-mix(in oklab, var(--white) 92%, transparent);
    white-space: nowrap;
}
.footer__mark span { color: var(--glint); }
.footer__legal { font-size: .8125rem; }

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 35;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 16px 30px -14px rgb(0 0 0 / .6);
    opacity: 0;
    translate: 0 1rem;
    pointer-events: none;
    transition: opacity .35s, translate .35s var(--ease);
}
.to-top svg { width: 1.2rem; height: 1.2rem; }
.past-hero .to-top { opacity: 1; translate: 0 0; pointer-events: auto; }
html:not(.js) .to-top { display: none; }

/* ---- Quick look ----------------------------------------------------------------------------- */

.viewer {
    width: min(1120px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--paper);
    color: var(--ink);
    overflow: auto;
    overscroll-behavior: contain;
}
.viewer::backdrop { background: rgb(8 8 10 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer__layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: min(42rem, calc(100dvh - 2rem)); }
.viewer__wall {
    --wall: #e9e7e1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: var(--wall);
    transition: background-color .6s var(--ease);
}
.viewer__wall[data-wall="sage"] { --wall: #b7c0ab; }
.viewer__wall[data-wall="clay"] { --wall: #c8a28a; }
.viewer__wall[data-wall="ink"] { --wall: #222429; }
.viewer__wall[data-wall="art"] { --wall: var(--viewer-art, #8f877b); }
.viewer__wall img { width: auto; height: auto; max-width: 100%; max-height: min(64vh, 40rem); object-fit: contain; border-radius: 6px; box-shadow: 0 40px 70px -30px rgb(0 0 0 / .55); }
.viewer__wall p { font-size: .75rem; color: rgb(21 22 26 / .62); }
.viewer__wall[data-wall="ink"] p, .viewer__wall[data-wall="art"] p { color: rgb(255 255 255 / .7); }
.viewer__info { position: relative; display: flex; flex-direction: column; gap: .85rem; padding: 3.25rem clamp(1.5rem, 3vw, 2.5rem) 2rem; }
.viewer__info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.05; text-wrap: balance; }
.viewer__detail { color: var(--smoke); }
.viewer__price { font-size: 1.25rem; }
.viewer__close {
    position: absolute; top: 1rem; right: 1rem;
    width: 2.6rem; height: 2.6rem;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.viewer__close:hover { background: var(--ink); color: var(--white); }
.viewer__walls { border: 0; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.viewer__walls legend { font-size: .8125rem; font-weight: 600; margin-bottom: .55rem; padding: 0; }
.viewer__walls button {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .75rem .35rem .4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .8125rem;
    cursor: pointer;
}
.viewer__walls button span { width: 1.1rem; height: 1.1rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.viewer__walls [data-wall-colour="chalk"] span { background: #e9e7e1; }
.viewer__walls [data-wall-colour="sage"] span { background: #b7c0ab; }
.viewer__walls [data-wall-colour="clay"] span { background: #c8a28a; }
.viewer__walls [data-wall-colour="ink"] span { background: #222429; }
.viewer__walls [data-wall-colour="art"] span { background: var(--viewer-art, #8f877b); }
.viewer__walls button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.viewer__note { font-size: .8125rem; color: var(--smoke); }
.viewer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: .5rem; }
.viewer__nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.viewer__nav button { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; font-size: 1.1rem; }
.viewer__nav button:hover { background: var(--ink); color: var(--white); }
.viewer__position { font-size: .8125rem; color: var(--smoke); font-variant-numeric: tabular-nums; }
.preview-open { overflow: hidden; }

/* ---- Motion: one load sequence, scroll reveals, and the deck -------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .hero h1 .line > * { animation: line-rise 1.15s var(--ease) both; }
    .hero h1 .line:nth-child(2) > * { animation-delay: .09s; }
    .hero h1 .line:nth-child(3) > * { animation-delay: .18s; }
    .hero__intro, .hero__actions { animation: fade-up 1s var(--ease) .35s both; }
    .deck__card { animation: deal 1.25s var(--ease) both; }
    .deck__card:nth-child(1) { animation-delay: .5s; }
    .deck__card:nth-child(2) { animation-delay: .32s; }
    .deck__card:nth-child(3) { animation-delay: .18s; }
    .plaque { animation: fade-up .8s var(--ease) both; }
    .hero__rail { animation: fade-up 1s var(--ease) .7s both; }

    /* The ring fills while a print is on show; when it completes, home.js hangs the next one. */
    .rail__thumb[aria-current="true"]::after { --progress: 0; animation: progress 7s linear forwards; }
    .hero:is(.is-paused, [data-offscreen], :has(.deck:hover, .plaque:hover, :focus-visible)) .rail__thumb::after { animation-play-state: paused; }

    .viewer[open] { animation: viewer-in .5s var(--ease); }
    .viewer[open]::backdrop { animation: fade .4s ease; }

    @supports (animation-timeline: view()) {
        .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
        .salon__piece { animation: drift linear both; animation-timeline: view(); }
    }
}
@keyframes line-rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; translate: 0 1.75rem; } }
@keyframes deal { from { opacity: 0; translate: 0 18%; } }
@keyframes progress { to { --progress: 1; } }
@keyframes viewer-in { from { opacity: 0; scale: .96; translate: 0 1rem; } }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { from { translate: 0 calc(var(--depth) * 2.5rem); } to { translate: 0 calc(var(--depth) * -2.5rem); } }

::view-transition-old(results) { animation: fade .25s ease reverse both; }
::view-transition-new(results) { animation: fade-up .55s var(--ease) both; }
.results { view-transition-name: results; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
    .deck__card, .deck__tilt, .hero__glow img { transition-duration: .01s; }
}

/* ---- Layout: tablet and phone --------------------------------------------------------------- */

@media (max-width: 1180px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plaque { position: relative; right: auto; bottom: auto; margin: -3.5rem 0 0 auto; width: min(100%, 22rem); }
    .deck { width: calc(100% - 13%); }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem var(--gutter) 1.25rem;
        background: var(--night);
        color: var(--white);
        border-bottom: 1px solid var(--line-light);
        font-size: 1.0625rem;
    }
    .past-hero .site-nav { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
    .nav-open .site-nav { display: flex; }
    .site-nav a { padding: .85rem 0; opacity: 1; border-bottom: 1px solid var(--line-light); }
    .past-hero .site-nav a { border-bottom-color: var(--line); }
    .site-nav .header-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid currentColor; }

    .hero__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "rail"; min-height: 0; gap: 2.5rem; }
    .hero__stage { max-width: 34rem; width: 100%; justify-self: center; }
    .hero__glow img { right: 0; top: 40%; width: 100%; height: 55%; }
    .rail__note { display: none; }

    .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head { flex-direction: column; align-items: flex-start; }

    .moods {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(80%, 22rem);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        margin-inline: calc(var(--gutter) * -1);
        padding: .25rem var(--gutter) 1.5rem;
        scrollbar-width: none;
    }
    .moods::-webkit-scrollbar { display: none; }
    .mood { scroll-snap-align: start; aspect-ratio: 4 / 5; }

    .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .tools { flex-wrap: wrap; }
    .search { flex: 1 1 100%; margin-right: 0; }
    .select { flex: 1; }
    .select select { width: 100%; }

    .together__inner { grid-template-columns: 1fr; }
    .steps, .guide, .guide__notes, .faq { grid-template-columns: 1fr; }
    .guide { gap: 1.5rem; }
    .viewer__layout { grid-template-columns: 1fr; min-height: 0; }
    .viewer__wall img { max-height: 48vh; }
}

@media (max-width: 680px) {
    body { font-size: 1rem; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .85rem; }
    .art-card__title { font-size: .9375rem; }
    .art-card__look { display: none; }
    .etsy-link { padding: 0 .75rem; }
    .art-card__buy .price small { display: none; }
    .plaque { margin-top: -2.5rem; width: calc(100% - 1.5rem); }
    .deck { margin-top: 1.5rem; }
    .offer-bar small { display: none; }
    .rail__thumbs { gap: .45rem; }
    .rail__thumb { width: 38px; height: 38px; }
    .facts { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .pager .pager__page:not([aria-current]) { display: none; }
    .salon { aspect-ratio: 1.15; }
}
