/* ==========================================================================
   Gratienne — home

   The house style: a light ground, one black, one gold; few sizes of type and
   large gaps between them. Paper, the negative of Odoardo's night.

   Three faces, each with one job:
   - EB Garamond: the film's words and the names printed on the objects — its
     italic reads as a hand and holds in foil;
   - Cormorant Garamond (--display): every heading, of the same Garamond line
     as the text, its hairlines holding at display sizes (Bodoni Moda stays
     only as the fallback if the file fails);
   - Montserrat: small labels, numbers and controls — the face the logotype's
     curves were drawn from, so the header speaks in the mark's own letters,
     and always light (--sans-weight): the mark's stroke is a hairline, and a
     heavier label beside it reads as another voice.

   The film is drawn by film.js with three.js on one canvas; this sheet sets
   the stage around it, the questions of the gate and the captions.
   ========================================================================== */

/* ---------------------------------------------------------------- 0. Faces */

/* The site's own files (Gratienne/assets/fonts, served from /fonts/): no page fetches a face from another host. Bodoni
   Moda is variable; the page pins its optical-size axis to the text cut so the hairlines hold at every heading size. */
@font-face {
    font-family: 'Bodoni Moda';
    src: url('/fonts/BodoniModa-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('/fonts/BodoniModa-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}

/* The same file with its lining figures switched on, for a canvas, which cannot ask for font-variant-numeric: the home
   film's book in numbers sets its large figures in it, light, as the print does (book-pages.js's BOOK_NUMBERS). */
@font-face {
    font-family: 'Cormorant Garamond Lining';
    src: url('/fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    font-feature-settings: "lnum" 1;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* The small capitals the printed book's Sceau sets the names in: book-cover.js measures and draws with them, the print
   opens the same file. A browser fetches it only when the cover is drawn. */
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------- 1. Tokens */

:root {
    --ground: #F5F5F5;
    /* The home film's stage: a neutral light grey a step under the cotton, so a white letter and its band part from the
       ground (the owner's choice of 2026-11-25, after a warm grey read as one more colour outside the identity and the
       house's black looked wrong under the film); film.js's STAGE is the same value. */
    --stage: #EBEBEB;
    --ink: #050505;
    --ink-soft: rgba(5, 5, 5, 0.72);
    /* The one colour outside black, white and gold: a deep, quiet red for what went wrong in a form —
       messages under fields and error notices, never decoration. */
    --error: #9B2C2C;
    /* The couple's panel's state marks (pages.css's .state, StateMarkHelpers), in the house's quiet register and on
       those squares alone, never decoration: done a quiet green, on its way the house gold, refused the error red, the
       rest soft ink. */
    --state-done: #5A8A68;
    --state-waiting: var(--gold);
    --state-refused: var(--error);
    --state-neutral: var(--ink-soft);
    /* A guest's „Nie przyjdzie”: an answer settled, in ink. */
    --state-declined: var(--ink);
    --rule: rgba(5, 5, 5, 0.14);

    --gold: #B6A574;
    /* The same gold as channels, for a translucent gold: rgba(var(--gold-rgb), 0.3). */
    --gold-rgb: 182, 165, 116;
    /* Low-contrast foil built around the brand gold: real gilding in diffuse
       light has no white highlights. */
    --foil-1: #8A7B52;
    --foil-2: #CDBF93;
    --foil-3: #A69665;

    /* Paper is the house's white. */
    --card: #F5F5F5;
    /* The card's edge: the cotton's own white a step into its shade, as the drawings show it (still/kit.js's CARD_EDGE),
       so the card's thickness reads on the paper — never gold. */
    --card-edge: #E2E1DE;
    /* The case's board as the film lights it (oak.js under film.js's light): the ground of every flat board on the site
       until oak.js's showOak paints the board itself. */
    --oak-board: #B8976F;

    /* The headings' face: Cormorant Garamond, of the same Garamond line as the text, so the house speaks in one voice —
       high in contrast, quiet, its hairlines holding at display sizes; Bodoni Moda is only the fallback a browser
       reaches if the file fails. */
    --display: 'Cormorant Garamond', 'Bodoni Moda', Didot, Georgia, serif;
    /* Bodoni Moda's one optical size (the body sets it for every page): one hairline weight across the site.
       Cormorant has no such axis and ignores it. */
    --display-opsz: 28;
    --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
    --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    /* The weights of the whole site, never so thin that the type fails on a poor screen. Montserrat's small spaced
       capitals at 450 — the mark's stroke stays its own —, the bar's links, alone over moving pictures and the cotton,
       at 500. Cormorant's headings at 500, the light ones at 400. The text is EB Garamond's Regular: its Medium, the
       only step above (the files are 400 and 500, no axis), reads a touch too heavy in an article; the text darkens
       through the softer ink's 72 % and no thinning antialiasing. */
    --sans-weight: 450;
    --sans-weight-bar: 450;
    --weight-text: 400;
    --weight-display: 500;
    --weight-light: 400;
    /* The one air between the header and a page's first heading, on every page alike — the configurator, the page for
       guests, the Magazyn, a document, the panel. The header stands in the flow (sticky), so nothing else is added
       above it. Air enough that a first heading never stands against the menu. */
    --page-top: clamp(3rem, 6vw, 5.5rem);
    /* The one scale of type every page of the site sets from: four display sizes for headings in --display, three for
       the text, one size and one tracking for the small spaced capitals in Montserrat. A size outside it is a drawn
       object, a giant numeral, a field a phone must not zoom into, or print. */
    --type-hero: clamp(2.6rem, 5.4vw, 5.4rem);
    --type-title: clamp(2.3rem, 4.2vw, 4.2rem);
    --type-subtitle: clamp(1.7rem, 2.6vw, 2.4rem);
    --type-heading: clamp(1.3rem, 1.8vw, 1.6rem);
    --type-lede: clamp(1.06rem, 1.15vw, 1.18rem);
    --type-body: 1rem;
    --type-small: 0.92rem;
    --caps-size: 0.72rem;
    /* Only where seven capitals must share a narrow cell: the calendar's weekdays, the price ladder's counts. */
    --caps-size-small: 0.64rem;
    --caps-tracking: 0.2em;
    /* The display face's headings stand a little close at every size. */
    --display-tracking: -0.02em;
    /* The film's captions, the gate's among them on a wide screen: the title size, smaller on narrow and short screens
       (section 7), which only the film's captions follow. */
    --cap-title-size: var(--type-title);
    /* Between a field's label and the field, on every form of the site: the label belongs to its line, so the two stand
       close — the label right over the writing, no padding above it (padding there sets the label adrift). Every form of
       the site reads these two. */
    --label-gap: 0.25rem;
    --field-air: 0;
    /* The chevron at the end of every choice (.choice): one hairline stroke bent once, never the system's arrow. */
    --choice-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M.6.6 6 6 11.4.6' fill='none' stroke='%23050505' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.2rem center / 0.75rem 0.45rem;
    /* The tick an option of a choice of several keeps once it is chosen: the same hairline, bent twice. */
    --choice-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M.7 4.6 4.3 8.2 11.3.8' fill='none' stroke='%23050505' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.75rem 0.56rem;

    /* The only shadows the house casts (soft, light, neutral contact shadows, never a dark one): a sheet of cotton or a sheet rising over the page — the letters' sheet's own —, and a
       small object lying on the paper (a card, a page, a thumbnail), with its lifted step for a pointer's rest. */
    --shadow-sheet: 0 1px 1px rgba(5, 5, 5, 0.05), 0 12px 28px rgba(5, 5, 5, 0.05), 0 40px 80px -30px rgba(5, 5, 5, 0.12);
    --shadow-object: 0 1px 2px rgba(5, 5, 5, 0.06), 0 16px 30px -20px rgba(5, 5, 5, 0.16);
    --shadow-object-lifted: 0 1px 2px rgba(5, 5, 5, 0.06), 0 24px 42px -24px rgba(5, 5, 5, 0.18);

    /* The one side margin of every page and the panel: generous on a computer, narrow on a phone. */
    --gutter: clamp(1.5rem, 7vw, 8rem);
    /* The reading measure a page of one form, notice or text keeps inside the frame (pages.css, .page__inner--measure). */
    --measure: 40rem;
    --header: 5.5rem;

    --slow: cubic-bezier(0.22, 1, 0.36, 1);

    --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)' opacity='0.1'/%3E%3C/svg%3E");
    /* The page's own paper: cotton's short fibres as faint ink specks on a transparent sheet — only the darker half of
       a noise becomes ink, so the ground between them stays the ground and no text loses contrast. */
    --cotton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55 0.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.02 0 0 0 0 0.02 0 0 0 0 0.02 2.6 0 0 0 -1.42'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23c)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ 2. Base */

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

html {
    scroll-padding-top: var(--header);
}

/* The house's scrollbar, never the system's grey: a fine ink thumb on the page's own paper,
   turning gold under the pointer — the page's and every inner scroller's. scrollbar-color inherits; the width is set
   on each scroller, and a scroller that hides its bar keeps its own rule. */
html {
    scrollbar-color: rgba(5, 5, 5, 0.26) var(--ground);
}

* {
    scrollbar-width: thin;
}

html:hover {
    scrollbar-color: rgba(5, 5, 5, 0.38) var(--ground);
}

/* Safari reads only the old pseudo-elements; a browser that knows scrollbar-color never reaches them. */
@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
        width: 9px;
        height: 9px;
        background: var(--ground);
    }

    ::-webkit-scrollbar-thumb {
        border: 3px solid var(--ground);
        border-radius: 9px;
        background: rgba(5, 5, 5, 0.26);
    }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gold);
        }

    ::-webkit-scrollbar-corner {
        background: var(--ground);
    }
}

/* Until the invitation is opened the page does not move: the names come first. */
html.is-gated {
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: var(--weight-text);
    font-size: var(--type-body);
    line-height: 1.6;
    /* No -webkit-font-smoothing: antialiased — on a Mac it thins every stroke, and the type reads too faint. */
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    /* Lining figures on every page: the faces' old-style 1 reads as a Roman I in
       „Goście · 1 z 40”, a counter, an amount or an order's number. Only an article's running text keeps the old-style
       figures of a book's page (magazine.css, .essay__text). */
    font-variant-numeric: lining-nums;
    /* Bodoni Moda at one middle optical size at every size and on every page, so its hairline is one weight
       everywhere: the text cut (11) stands too heavy beside the hairline mark, and at the display sizes (60–96) its
       hairlines thin out to nothing. The other faces have no such axis and ignore this. Only the letter's heading,
       set as print, takes its own cut. */
    font-optical-sizing: none;
    font-variation-settings: 'opsz' var(--display-opsz);
    /* A string with no break of its own — an e-mail address, a link, a long name — breaks rather than pushing a phone's
       page sideways; ordinary words never break, since break-word acts only on what would otherwise overflow. */
    overflow-wrap: break-word;
    /* No paragraph ends on one word alone on its line — on a phone's narrow measure that orphan comes often („list.”). */
    text-wrap: pretty;
    overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
    margin: 0;
    padding: 0;
}

ol, ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Nothing in the house is italic but the pair's gold ampersand and a signature: the copy keeps its
   <em> as the second part of a heading's phrase (an error page's, a page's title), set upright like the first. */
em, i {
    font-style: normal;
}

/* EB Garamond ships only 400 and 500, so the browser's bold (700) would be a synthetic smear over the Medium cut, too
   heavy. Emphasis is the real Medium. */
strong, b {
    font-weight: 500;
}

button, input {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

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

.skip {
    position: absolute;
    left: -100vw;
    top: 0;
    z-index: 100;
    padding: 0.8rem 1.4rem;
    background: var(--ink);
    color: var(--ground);
}

    .skip:focus {
        left: 1rem;
        top: 1rem;
    }

/* The house's loading mark (a model takes three or four seconds to stand, and its place says so, quietly). One
   component wherever a model loads into a frame — the home film, the configurator's and
   the sign-in's preview, the guests' page's stage, the card's page, the Magazyn's opening and its objects: a short gold
   hairline gliding along a faint one, centred in the frame (Views/Shared/_Loading.cshtml). It stands from the first
   paint wherever scripts run — never without them, where no model is coming —, and js/loading.js's settle marks the
   frame data-loaded once the first frame is drawn or the model gives up. It is laid over the frame and takes no room,
   comes up only after a quarter of a second, so a quick load shows nothing, fades as the model arrives, and gives up by
   itself after twenty seconds, so it is never left gliding. It stands exactly in the frame's middle, over a drawing that
   stands meanwhile too (a poster, the configurator's drawn card), where at the foot it would read as a stray bar. */
.loading {
    position: absolute;
    inset: 0;
    /* Over the home film's veil (50), under the fixed header (60): a frame scrolled under the header must not show its
       mark through it. */
    z-index: 59;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

@media (scripting: enabled) {
    :not([data-loaded]) > .loading {
        opacity: 1;
        visibility: visible;
        transition: none;
        animation: loading-in 0.8s ease 0.25s backwards, loading-out 0.8s ease 20s forwards;
    }
}

/* Seen at once: the pair's gold italic „&” breathing over a wider, firmer hairline. */
.loading {
    gap: 0.9rem;
    align-content: center;
}

    .loading::before {
        content: "&";
        font-family: var(--display);
        font-style: italic;
        font-size: 2.6rem;
        line-height: 1;
        color: var(--gold);
        animation: loading-breath 1.9s ease-in-out infinite;
    }


.loading__line {
    position: relative;
    display: block;
    width: 9rem;
    height: 2px;
    overflow: hidden;
    background: rgba(var(--gold-rgb), 0.28);
}

    .loading__line::after {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 40%;
        background: var(--gold);
        box-shadow: 0 0 6px rgba(var(--gold-rgb), 0.55);
        transform: translateX(-100%);
        animation: loading-glide 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }

@keyframes loading-breath {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading-in {
    from {
        opacity: 0;
    }
}

@keyframes loading-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes loading-glide {
    to {
        transform: translateX(250%);
    }
}

/* Under reduced motion nothing glides: the gold stands still at the hairline's middle. */
@media (prefers-reduced-motion: reduce) {
    .loading__line::after {
        transform: translateX(75%);
        animation: none;
    }

    .loading::before {
        animation: none;
    }
}

:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 5px;
}

::selection {
    background: var(--ink);
    color: var(--ground);
}

/* --------------------------------------------------------------- 3. Type */

.display {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-hero);
    /* A touch closer than the face's natural leading: the two lines of a heading read as one phrase. */
    line-height: 0.98;
    letter-spacing: var(--display-tracking);
    text-wrap: balance;
}

    .display em {
        font-weight: var(--weight-display);
    }

.text,
.cap__lede {
    font-family: var(--serif);
    font-size: var(--type-lede);
    line-height: 1.55;
}

.label,
.lang a,
.link,
.cue__text,
.foot__line {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    line-height: 1.4;
}

/* A date inside a line of small capitals never breaks between its day and month (a phone would leave a lone „6” at the
   end of the wizard's line). */
.label__date {
    white-space: nowrap;
}

/* A hairline under the text instead of a filled button. */
/* The words sit right over their hairline: the link keeps a finger's height, but the room goes above the words, never
   between them and the line. */
.link {
    display: inline-flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 2.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.3s var(--slow);
}

    .link:hover {
        opacity: 0.5;
    }

.link--quiet {
    opacity: 0.62;
    border-bottom-color: transparent;
}

    .link--quiet:hover {
        opacity: 1;
    }

/* A button set as a link (a sign-out, a removal) drops the browser's own frame and ground: only the hairline speaks. */
button.link {
    padding-top: 0;
    padding-inline: 0;
    border-width: 0 0 1px;
    border-style: solid;
    background: none;
    cursor: pointer;
}

/* ------------------------------------------------------------- 4. Header */

.brand {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 var(--gutter);
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
}

/* The wordmark's line is a few pixels tall; the link round it is a thumb's height, the mark centred in it. */
.brand__mark {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    width: clamp(8.5rem, 10.5vw, 10.75rem);
    min-height: 2.75rem;
}

.brand__mark img,
.brand__mark svg {
    display: block;
    width: 100%;
    height: auto;
}

.brand__nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 3rem;
    font-family: var(--sans);
    font-weight: var(--sans-weight-bar);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

/* A link's words never break: „Dla gości” on two lines reads as two links. Where the four do not fit in a line with the
   mark and the seven languages, the links leave the header (section 7) — the footer carries them all. */
.brand__nav a {
    padding: 0.9rem 0;
    white-space: nowrap;
}

/* The header's links draw their hairline from the left as the pointer arrives, and put it away the same way. */
.brand__nav a {
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 0 1px no-repeat;
    transition: background-size 0.5s var(--slow);
}

    .brand__nav a:hover,
    .brand__nav a[aria-current] {
        background-size: 100% 1px;
    }

/* An arrow leans the way it points. */
.link span[aria-hidden],
.button span[aria-hidden] {
    display: inline-block;
    transition: transform 0.45s var(--slow);
}

    .link:hover span[aria-hidden],
    .button:hover span[aria-hidden] {
        transform: translateX(0.3rem);
    }

/* The codes stand close, as one line of small capitals; the padding keeps each a comfortable target. */
.lang ul {
    display: flex;
    gap: 0;
}

.lang a {
    display: block;
    font-weight: var(--sans-weight-bar);
    min-width: 2.1rem;
    padding: 0.9rem 0.3rem;
    text-align: center;
    opacity: 0.65;
    transition: opacity 0.5s var(--slow);
}

    .lang a:hover,
    .lang a[aria-current] {
        opacity: 1;
    }

/* „Menu” on a narrow screen (section 7): a word in the bar's capitals, never an icon, its hairline drawn as the links'. */
.brand__menu,
.menu-sheet__close {
    display: none;
    margin-left: auto;
    padding: 0.9rem 0;
    border: 0;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 0 1px no-repeat;
    font-family: var(--sans);
    font-weight: var(--sans-weight-bar);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-size 0.5s var(--slow);
}

    .brand__menu:hover,
    .brand__menu:focus-visible,
    .menu-sheet__close:hover,
    .menu-sheet__close:focus-visible {
        background-size: 100% 1px;
    }

.menu-sheet__close {
    display: block;
}

/* The sheet behind it: the page's own paper over the whole screen, the bar where the header stood — the mark and
   „Zamknij” —, the four ways in the headings' face between hairlines, the languages under them. It fades in, and out. */
.menu-sheet {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0 var(--gutter) 2.5rem;
    overflow-y: auto;
    border: 0;
    background: var(--ground);
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.4s var(--slow), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

    .menu-sheet:popover-open {
        opacity: 1;

        @starting-style {
            opacity: 0;
        }
    }

    /* The top layer — the menu sheet, any popover and any dialog — stands over details.js's ring, which also steps
       aside there: the system's pointer returns inside it and over a modal's dimmed page. */
    .has-cursor :is(.menu-sheet, [popover], dialog),
    .has-cursor :is(.menu-sheet, [popover], dialog) * {
        cursor: auto !important;
    }

        .has-cursor :is(.menu-sheet, [popover], dialog) :is(a, button, label, select, summary) {
            cursor: pointer !important;
        }

        .has-cursor :is([popover], dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea) {
            cursor: text !important;
        }

/* The page under an open sheet keeps still. */
html:has(.menu-sheet:popover-open) {
    overflow: hidden;
}

.menu-sheet__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header);
    border-bottom: 1px solid var(--rule);
}

.menu-sheet__mark {
    display: flex;
    width: clamp(7rem, 29vw, 8.5rem);
}

    .menu-sheet__mark img,
    .menu-sheet__mark svg {
        display: block;
        width: 100%;
        height: auto;
    }

.menu-sheet__nav {
    display: flex;
    flex-direction: column;
    margin-top: clamp(1.5rem, 6vh, 3.5rem);
}

    .menu-sheet__nav a {
        padding: 1.05rem 0;
        border-bottom: 1px solid var(--rule);
        font-family: var(--display);
        font-variation-settings: 'opsz' var(--display-opsz);
        font-size: var(--type-subtitle);
        letter-spacing: var(--display-tracking);
        line-height: 1.15;
    }

.menu-sheet .lang {
    margin-top: 2rem;
}

    .menu-sheet .lang ul {
        flex-wrap: wrap;
        margin-left: -0.3rem;
    }

/* On the home page the header is silence over the stage: the mark and the languages. The page's own links arrive once
   the invitation is opened, and the header takes its ground only when the film has passed under it — or while a phone's
   film holds its phone close and the phone's black frame passes above the stage (film.js's is-film-close). */
.brand--home {
    background: transparent;
    border-bottom-color: transparent;
    transition: background-color 0.6s var(--slow), border-color 0.6s var(--slow);
}

.is-past-film .brand--home,
.is-film-close .brand--home {
    background: var(--ground);
    border-bottom-color: var(--rule);
}


/* ------------------------------------------------------------- 5. Film */

.film {
    position: relative;
    background: var(--ground);
}

.film__viewport {
    position: relative;
}

/* Without JavaScript the story is read as a column of captions; the stage, the questions and the controls appear only
   with the scripts that drive them. */
.film__canvas,
.film__grain,
.overture,
.rite,
.close,
.cue {
    display: none;
}

.film__copy {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 8vh, 5rem);
    max-width: calc(36rem + 2 * var(--gutter));
    padding: calc(var(--header) + clamp(4rem, 12vh, 8rem)) var(--gutter) clamp(6rem, 16vh, 10rem);
}

/* The film speaks in the serif: a roman line and an italic one, as a hand would write them. */
.cap__title {
    font-family: var(--serif);
    font-weight: var(--weight-text);
    font-size: var(--cap-title-size);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

    .cap__title em {
        font-style: italic;
    }

/* A caption's lede holds four lines of some sixty-seven characters (HomeCaptionCopyTests): its measure is set in its
   own type, so the lines hold the same words at every width — about 30rem where the lede is smallest, wider where the
   type grows (at 26rem a lede of three lines ran to a fourth past 1500 px). film.js's measure() frames the object right
   of the width laid out. */
/* Clear air under a caption's title before its words (the owner's request of 2026-11-25, „Na wieku imię gościa”):
   the title reads as a line of its own, never the lede's first. */
.cap__lede {
    max-width: 28em;
    margin-top: 1.6rem;
    color: var(--ink-soft);
}

/* A caption's whispered note — the disclosure that the photographs the film shows are examples made by AI: the house's
   small spaced capitals, quieter than the lede. */
.cap__note {
    max-width: 26rem;
    margin-top: 1.4rem;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--ink-soft);
    /* A touch quieter, never out of sight: the line is the visible disclosure art. 50 of the AI Act asks for, so it
       keeps its size and stays legible on the paper. */
    opacity: 0.75;
}

/* --- the gate: one sentence, then one question at a time --- */

.has-rite .film__viewport {
    min-height: 100vh;
    min-height: 100svh;
}

.has-rite .overture,
.has-rite .rite {
    display: block;
}

/* The captions belong to the film: while the gate stands they are not read, and without the scene they appear as a
   column only once the invitation is opened. */
.has-rite:not(.is-open) .film__copy {
    visibility: hidden;
}

/* The overture and the questions hold the window itself: the page does not scroll while they stand, and they must
   stand on the first screen whether or not the scene has arrived. */
/* The overture says what the page is and what to do, above the card, and stays until the invitation is opened: a
   couple who has only the card and a blinking name does not know what the names are for. It never changes size, so
   film.js measures the card's band under it once. */
.overture {
    position: fixed;
    z-index: 30;
    left: 50%;
    top: calc(var(--header) + clamp(0.75rem, 4vh, 2.5rem));
    width: min(36rem, calc(100% - 2 * var(--gutter)));
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.7s var(--slow), color 1.2s var(--slow);
}

    /* The welcome (the owner's design of 2026-11-25, to draw the couple into the film; its salutation taken away the
       same evening, so the motto speaks first, with air under it before the letters): the house's
       motto as its heading, in two lines of one size with the second italic as the site's titles are, both in the face's
       lightest cut (the owner's requests of 2026-11-26: „powiększ nieco, ale zachowaj cienką czcionkę”, the italic
       line larger for an hour, then „taką samą wielkością czcionki”); three of the guests the couple will write to,
       each the reader's name and the scene their letter tells as one sentence in the face and size of the text under
       them, a touch heavier and standing from the first moment, one line where it fits, the three close together with
       air above and under them (the same night: no small capitals, no gap after the name, „delikatnie pogrub, bez tej
       dziwnej animacji” – the gold pen that wrote them in letter by letter is gone); one paragraph of how each letter
       is written, what it arrives in and what comes back in the book; and right above the questions what to do. */
    .overture__motto {
        margin: 0;
        font-size: var(--type-subtitle);
        font-weight: 300;
        color: var(--ink);
    }

        .overture__motto em {
            font-style: italic;
            font-weight: 300;
        }

    /* The air above and under the letters gives way first on a low laptop, so the whole welcome still stands under the
       header. */
    .overture__letters {
        margin: clamp(1.6rem, 4.6vh, 3.2rem) 0 0;
        padding: 0;
        list-style: none;
        font-family: var(--serif);
        font-size: var(--type-lede);
        font-weight: 500;
        line-height: 1.45;
        color: var(--ink-soft);
        text-wrap: pretty;
    }

    .overture__craft {
        margin: clamp(1.4rem, 4vh, 2.6rem) auto 0;
        text-wrap: pretty;
    }

    /* The invitation to write the names stands apart from the story above it (the owner's request of 2026-11-26),
       its air giving way first on a low laptop. */
    .overture__invite {
        margin: clamp(1.3rem, 3.6vh, 2.4rem) auto 0;
        color: var(--ink);
        text-wrap: pretty;
    }

/* A narrow stage (the card under the words) keeps the motto and the letters: at 390 × 844 the whole welcome would leave
   the card a band of some 150px. The three letters stand one under another a step smaller, so the card keeps its band
   (in full size they left it a fifth of the screen) and the overture never changes size – film.js measures its foot for
   the card's band. The paragraph of the craft and the book and the invitation to write wait for the wide stage: under
   the card the prompt says what to write. */
@media (max-width: 899px) and (max-aspect-ratio: 1333/1000), (max-width: 599px), (max-aspect-ratio: 799/1000) {
    .has-scene .overture__letters {
        font-size: var(--type-small);
    }

    .has-scene .overture__craft,
    .has-scene .overture__invite {
        display: none;
    }
}

/* A very short phone keeps the motto alone: the card needs its little height. */
@media (max-width: 899px) and (max-aspect-ratio: 1333/1000) and (max-height: 600px), (max-width: 599px) and (max-height: 600px) {
    .overture__letters,
    .has-scene .overture__letters {
        display: none;
    }
}

/* The overture and the questions in one column (the wide screen below); elsewhere the wrapper takes no box. */
.gate {
    display: contents;
}

/* The overture begins once the load veil has lifted (is-film-ready), so the sentence never stands before the card —
   and after the veil's own fallback when no script says so (film.js never came), so it is never lost. */
.is-awake:not(.is-film-ready):not(.is-open) .overture {
    animation: overture-late 1.8s var(--slow) 5.6s forwards;
}

@keyframes overture-late {
    to {
        opacity: 1;
    }
}

.is-awake.is-film-ready:not(.is-open) .overture {
    opacity: 1;
    transition: opacity 1.8s var(--slow) 1.4s, color 1.2s var(--slow);
}

/* With a phone's keyboard open (film.js) the little screen left belongs to the card being written. The second selector
   outweighs the overture's own `.is-awake.is-film-ready:not(.is-open)`, which otherwise kept the sentence standing over
   the card while the couple typed (the tester's screenshot of 2026-10-12). */
.is-awake.has-keyboard .overture,
.is-awake.is-film-ready.has-keyboard:not(.is-open) .overture {
    opacity: 0;
    transition: opacity 0.3s var(--slow);
}

/* A try to scroll past an unwritten gate (site.js, is-nudged) shows what it waits for: the overture comes forward with a
   gold hairline drawn out under it and gone again, and the line under the card rises once. A written card is never
   nudged — the same gesture opens it. The hairline stands out of the flow, so the overture keeps the size film.js
   measured. */
.overture::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.7rem;
    width: 4.5rem;
    height: 1px;
    margin-left: -2.25rem;
    background: var(--gold);
    transform: scaleX(0);
    opacity: 0;
}

.is-nudged:not(.is-open) .overture {
    color: var(--ink);
    transition: color 0.4s var(--slow);
}

    .is-nudged:not(.is-open) .overture::after {
        opacity: 1;
        transform: scaleX(1);
    }

@media (prefers-reduced-motion: no-preference) {
    .is-nudged:not(.is-open) .overture::after {
        animation: gate-hairline 1.8s var(--slow) both;
    }

    .is-nudged:not(.is-open) .rite__prompt.is-in {
        animation: gate-rise 1.4s var(--slow);
    }
}

@keyframes gate-hairline {
    0% { opacity: 0; transform: scaleX(0); }
    35% { opacity: 1; transform: scaleX(1); }
    70% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1.25); }
}

/* On a wide stage (film.js's STAGE_WIDE — from 900 px unless held upright taller than 5:4, or a screen held landscape
   from 600 px) the gate reads as the film's first caption: the words on the left where every act's caption stands, the
   questions under them, and the card lying large on the right (film.js frames it there). */
@media (min-width: 900px) and (min-aspect-ratio: 4/5), (min-width: 600px) and (min-aspect-ratio: 4/3) {
    .has-scene .gate {
        position: fixed;
        z-index: 30;
        left: var(--gutter);
        top: 50%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Wide enough for the couple's whole welcome — the motto, the three letters of some eighty characters a line,
           the book and the invitation — to stand with the questions under it on the first screen
           (HomeCaptionCopyTests), the letter's cover clear of it. */
        width: min(38rem, 42vw);
        transform: translateY(-50%);
    }

        .has-scene .gate .overture,
        .has-scene .gate .rite {
            position: relative;
            left: auto;
            top: auto;
            bottom: auto;
            width: 100%;
            transform: none;
            text-align: left;
        }

        /* The motto is the column's heading: a step under the captions' titles, so its longer line holds the column's
           width at every wide screen; the italic answer under it, the shorter line, takes its larger size there too. */
        .has-scene .gate .overture__motto {
            font-size: calc(var(--type-title) * 0.82);
        }

        .has-scene .gate .overture::after {
            left: 0;
            margin-left: 0;
            transform-origin: left;
        }

        .has-scene .gate .rite {
            margin-top: clamp(1.25rem, 3vh, 2rem);
        }

            /* The quiet line's room goes under the button instead, so the centred column — the words above — never
               moves when the button rises into the line's place. */
            .has-scene .gate .rite:has(.rite__prompt:empty) {
                padding-bottom: calc(var(--type-heading) * 1.4);
            }

        .has-scene .gate .overture__craft,
        .has-scene .gate .overture__invite {
            max-width: none;
            margin-left: 0;
        }

        .has-scene .gate .rite__actions {
            align-items: flex-start;
        }

        .has-scene .gate .rite__when,
        .has-scene .gate .rite__month {
            justify-content: flex-start;
        }

        .has-scene .gate .rite__calendar {
            left: 0;
            transform: translateY(0.6rem);
        }

            .has-scene .gate .rite__calendar.is-open {
                transform: none;
            }
}

/* A laptop's low window on a wide stage (a 1366 × 650 browser, a 1280 × 720 screen): the whole welcome of 2026-11-26 with
   the questions under it was taller than the room under the header, so here the column is centred in that room rather
   than on the whole screen, the motto steps down and the text takes the body's size. Taller screens keep the sizes above;
   a stage of 500 px or less keeps the motto alone (below, which wins). */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) and (max-height: 760px), (min-width: 600px) and (min-aspect-ratio: 4/3) and (max-height: 760px) {
    .has-scene .gate {
        top: calc(var(--header) + (100vh - var(--header)) / 2);
        top: calc(var(--header) + (100svh - var(--header)) / 2);
    }

        .has-scene .gate .overture__motto {
            font-size: calc(var(--type-title) * 0.72);
        }

        .has-scene .gate .overture__letters,
        .has-scene .gate .overture .cap__lede {
            font-size: var(--type-body);
            line-height: 1.45;
        }
}

/* A low wide stage — a phone held landscape, 320–500 px high (film.js's LOW_WIDE) — sets everything between the header
   and the foot: centred on the whole screen, the overture's title, the captions and the last word ran under the 88 px
   header, the cue stood over the case and the AI line under the way on (the renders of 2026-11-15). The overture keeps
   the motto alone, the letters, the book and the invitation waiting for a taller screen; the day's two choices stand under the questions as on a phone, since the
   card is a few centimetres wide there (film.js's drawWhen prints none). */
@media (min-width: 900px) and (max-height: 500px), (min-width: 600px) and (min-aspect-ratio: 4/3) and (max-height: 500px) {
    .has-scene .gate {
        top: calc(var(--header) + (100vh - var(--header)) / 2);
        top: calc(var(--header) + (100svh - var(--header)) / 2);
        width: min(26rem, 46vw);
    }

        /* Each choice on one line in the column (at 667 × 375 both broke in two), as on a small phone. */
        .has-scene .gate .rite__tab {
            padding: 0 0.7rem;
            letter-spacing: 0.1em;
            white-space: nowrap;
        }

            .has-scene .gate .rite__tab::after {
                left: 0.7rem;
                right: 0.7rem;
            }

        .has-scene .gate .overture__motto {
            font-size: var(--type-subtitle);
        }

        .has-scene .gate .overture__letters,
        .has-scene .gate .overture__craft,
        .has-scene .gate .overture__invite {
            display: none;
        }

        .has-scene .gate .rite {
            margin-top: 1rem;
        }

    .has-scene .gate .rite__when,
    .has-scene .gate .rite__month {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .has-scene .gate .rite__when {
        margin: 0 0 0.75rem;
    }

    .has-scene .gate .rite__month {
        margin: 0 0 0.5rem;
    }
}

/* Without the scene — WebGL refused, or its context taken back by the browser (film.js) — the gate is a plain form, and
   at every width it is one column of its own: the overture above the questions, centred in the screen under the header,
   scrolling within itself when the two are taller than the screen, since the page stays locked until the invitation is
   opened (html.is-gated). Pinned to the screen's top and foot as they are beside the scene, the overture and the form
   ran into each other on a laptop (the tester's screenshot of 2026-10-29: some 85 px at 1366 × 657). Once opened, the
   column gives the page back. */
.has-rite:not(.has-scene) .gate {
    position: fixed;
    z-index: 30;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
    gap: clamp(1.5rem, 4.5vh, 2.75rem);
    padding: clamp(1rem, 3vh, 2rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

    .has-rite:not(.has-scene) .gate .overture,
    .has-rite:not(.has-scene) .gate .rite {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        flex: none;
        transform: none;
    }

    .has-rite:not(.has-scene) .gate .overture {
        width: min(36rem, 100%);
    }

    .has-rite:not(.has-scene) .gate .rite {
        width: min(34rem, 100%);
    }

    /* The month's sheet stands over the middle of the screen: rising above the questions it would be cut by the
       column's own scrolling edge. */
    .has-rite:not(.has-scene) .gate .rite__calendar:not(.is-floating) {
        position: fixed;
        z-index: 60;
        top: 50%;
        bottom: auto;
        max-height: calc(100% - 2rem);
        overflow-y: auto;
        transform: translate(-50%, calc(-50% + 0.6rem));
    }

        .has-rite:not(.has-scene) .gate .rite__calendar.is-open:not(.is-floating) {
            transform: translate(-50%, -50%);
        }

.has-rite.is-open:not(.has-scene) .gate {
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 1.2s;
}

/* Once opened, the gate takes no hand at any width. Beside the scene its box (fixed, z-index 30, the overture faded to
   nothing and the questions hidden) still stood over the left half of the stage, above the film's close (z-index 26),
   and swallowed the press on „Zaprojektuj swoje zaproszenia” (the owner's report of 2026-11-09). */
.has-rite.is-open .gate {
    pointer-events: none;
}

@keyframes gate-rise {
    0%, 100% { transform: none; color: inherit; }
    40% { transform: translateY(-0.3rem); color: var(--gold); }
}

.rite {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: clamp(2.25rem, 9vh, 6rem);
    width: min(34rem, calc(100% - 2 * var(--gutter)));
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--slow), visibility 0s linear 1s;
}

/* The questions come once the overture has been read: it stays above the card, they arrive under it. */
.is-asking:not(.is-open) .rite {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s var(--slow) 0.7s, visibility 0s linear 0s;
}

/* The way on comes last: after the overture's words and the line saying what to write, never
   before them. */
.rite__actions {
    opacity: 0;
    transition: opacity 0.9s var(--slow);
}

.is-asking:not(.is-open) .rite__actions {
    opacity: 1;
    transition-delay: 2.3s;
}

@media (prefers-reduced-motion: reduce) {
    .is-asking:not(.is-open) .rite__actions {
        transition-delay: 0s;
    }
}

.rite__field + .rite__field {
    margin-top: 1rem;
}

.rite__ask {
    display: block;
    margin-bottom: 0.4rem;
    font: 400 var(--type-heading)/1.2 var(--serif);
}

/* The fields take the typing out of sight while the scene writes on the card: still focusable, still read aloud, still
   the phone's keyboard's target. Without the scene they are the form. */
/* With the scene the card itself prints the day's two choices and steps the month (film.js, drawWhen): the choices
   under it stay for the keyboard and a screen reader, out of sight like the fields. */
.has-scene .rite__fields,
.has-scene .rite__when,
.has-scene .rite__month {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* On a phone the card is too small to press its printed choices (film.js prints none there): the day's two choices and
   the month's pickers stand under it as the house's own controls, as they do without the scene. */
@media (max-width: 899px) and (max-aspect-ratio: 1333/1000), (max-width: 599px), (max-aspect-ratio: 799/1000) {
    .has-scene .rite__when,
    .has-scene .rite__month {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    /* The questions hang from one top edge, where their resting height (the two choices with the line of help, or
       with „Pokaż”) leaves the screen's foot its air: the month's row, when the day is not known yet, grows down into
       that air, never up into the card, and film.js measures the card's band down to this edge — at the bottom with
       190 px held for the tallest state, the card stood over a hand's breadth of empty paper in the two states a couple
       spends its time in (the renders of 2026-11-14). */
    .has-scene .rite {
        top: calc(100vh - clamp(2.25rem, 9vh, 6rem) - 7rem);
        top: calc(100svh - clamp(2.25rem, 9vh, 6rem) - 7rem);
        bottom: auto;
    }

    /* Apart from the line of help under them, as from the card above. */
    .has-scene .rite__when {
        margin-top: 0;
        margin-bottom: 0.9rem;
    }

    /* „Mniej więcej”, the month and the year across the same column: the words at its left edge, the year at its right. */
    .has-scene .rite__month {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: baseline;
        gap: 0.9rem;
        margin-top: 0;
    }

    /* What is still missing is said above the questions, in the air between them and the card: under them it would
       fall past the screen's foot once the month's row stands. */
    .has-scene .rite__error {
        top: auto;
        bottom: 100%;
        margin: 0 0 0.5rem;
    }
}

/* On a phone held upright the two choices fill the column the overture's words stand in, edge to edge, each a little
   wider than its words; on a wider screen they keep their own width — stretched across a tablet's column, the chosen
   one's gold hairline ran far past its words (the renders of 2026-11-15). */
@media (max-width: 599px) {
    .has-scene .rite__when .rite__tab {
        flex: 1 1 auto;
    }
}

/* Each choice on one line across a small phone (two lines under one hairline read as a fault): a little less air and
   tracking there. */
@media (max-width: 479px) {
    .rite__tab {
        padding: 0 0.7rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }

        .rite__tab::after {
            left: 0.7rem;
            right: 0.7rem;
        }
}

.rite__write {
    width: min(20rem, 100%);
    height: 3rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    caret-color: var(--ink);
    font: 400 var(--type-heading)/1 var(--serif);
    text-align: center;
    outline: none;
    transition: border-color 0.4s var(--slow);
}

    .rite__write:focus {
        border-bottom-color: var(--ink-soft);
    }

.rite__write::placeholder {
    color: var(--ink-soft);
}

/* Only with the scene, where the fields' own labels are out of sight: the one line saying what the card waits for. */
.rite__prompt {
    display: none;
}

.has-scene .rite__prompt {
    display: block;
    min-height: 1.4em;
    font: 400 var(--type-heading)/1.3 var(--serif);
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 0.6s var(--slow), transform 0.6s var(--slow);
}

    .has-scene .rite__prompt.is-in {
        opacity: 1;
        transform: none;
    }

/* The line is the one thing to do, so it breathes; under reduced motion it stands still. */
@media (prefers-reduced-motion: no-preference) {
    .has-scene .rite__prompt.is-in {
        animation: rite-prompt-pulse 2.4s ease-in-out 0.6s infinite;
    }
}

@keyframes rite-prompt-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

    /* Once everything is written the line goes quiet (site.js) and keeps no room: the way on then stands right under
       the words. */
    .has-scene .rite__prompt:empty {
        min-height: 0;
    }

/* Under the prompt, smaller, where to answer it; and while
   a line is asked for, „Pokaż” stands back — the card is the one thing to do. Only with the scene: without it the fields
   are the form and the button stays. */
.rite__prompt-hint {
    display: none;
}

/* In the prompt's own face, a little smaller. */
.has-scene .rite.is-prompting .rite__prompt-hint {
    display: block;
    margin: 0.2rem 0 0;
    font: 400 calc(var(--type-heading) * 0.74)/1.3 var(--serif);
    color: var(--ink-soft);
}

.has-scene .rite.is-prompting .rite__actions {
    display: none;
}

/* The way on stands right under the words: what is still missing is said under the button, out of
   the flow, so no empty line is held above it and the button never jumps when it is said. */
.rite__error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.6rem;
}

/* The way on, on a line of its own. */
.rite__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

/* The day known or not yet: two plain choices side by side in one hairline frame,
   the chosen one in ink with a gold hairline under its words — never a gold wash —, the other in soft ink. */
.rite__when {
    display: flex;
    justify-content: center;
    margin-top: 0.9rem;
}

.rite__tab {
    position: relative;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    border: 1px solid var(--rule);
    background: none;
    color: var(--ink-soft);
    font: var(--sans-weight-bar) var(--caps-size)/1 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s var(--slow);
}

    .rite__tab + .rite__tab {
        border-left: 0;
    }

    .rite__tab::after {
        content: "";
        position: absolute;
        left: 1.1rem;
        right: 1.1rem;
        bottom: 0.7rem;
        height: 1px;
        background: var(--gold);
        transform: scaleX(0);
        transition: transform 0.45s var(--slow);
    }

    .rite__tab[aria-pressed="true"] {
        color: var(--ink);
    }

        .rite__tab[aria-pressed="true"]::after {
            transform: scaleX(1);
        }

    .rite__tab:hover {
        color: var(--ink);
    }

    .rite__tab:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 3px;
    }

/* Not known yet: „Mniej więcej” and the month and the year, as two quiet selects with a hairline under them. */
.rite__month {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem 0.9rem;
    margin-top: 0.9rem;
}

    .rite__month[hidden] {
        display: none;
    }

.rite__month-about {
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: var(--type-body);
}

.rite__month .choice {
    display: inline-block;
    text-align: left;
}

    .rite__month .choice__input {
        font-size: var(--type-lede);
    }

/* ------------------------------------------------------------- choices */

/* The house's own choice over every select (ui.js, window.gratienne.choice), never the system's grey select. The
   field: the text in the page's serif on a hairline, a chevron drawn in two strokes at its end, an
   ink line drawn over the hairline from the left when it is reached. The list beneath it: one quiet column of the same
   serif on the page's own paper, a hairline frame and no shadow; the option the arrows or the pointer rest on deepens
   to ink beside a gold hairline, and the chosen one keeps that hairline (never italic: nothing is but the pair's
   ampersand and a signature). In a form's field it takes the field's width; set
   inline, in a sentence or a row, its longest option's. */
.choice {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: baseline;
}

.field .choice,
.home-configurator__field .choice {
    display: block;
}

.choice__input {
    display: block;
    width: calc(var(--choice-ch, 12) * 1ch + 2.4rem);
    max-width: 100%;
    min-height: 2.75rem;
    padding: var(--field-air) 1.75rem 0.45rem 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    background: var(--choice-chevron), linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0 1px;
    color: var(--ink);
    font: inherit;
    font-family: var(--serif);
    text-overflow: ellipsis;
    color-scheme: light;
    outline: none;
    cursor: pointer;
    transition: background-size 0.5s var(--slow);
}

    .field .choice__input,
    .home-configurator__field .choice__input {
        width: 100%;
    }

    .choice--long .choice__input {
        cursor: text;
    }

    .choice__input:focus-visible,
    .choice.is-open .choice__input {
        background-size: 0.75rem 0.45rem, 100% 1px;
    }

    .choice__input:disabled {
        color: var(--ink-soft);
        cursor: default;
        background-size: 0 0, 0 1px;
    }

    .choice__input[aria-invalid="true"] {
        border-bottom-color: var(--error);
    }

    /* Nothing chosen yet: the empty option's quiet word („Wybierz kraj”), never a dash. */
    .choice__input::placeholder {
        color: var(--ink-soft);
        opacity: 1;
    }

.choice__list {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    min-width: 100%;
    max-height: 17rem;
    margin: 0;
    padding: 0.4rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: var(--ground);
    border: 1px solid var(--rule);
    border-top: 0;
    text-align: left;
}

/* The list unfolds a hair from under its line as it opens; it closes at once, so a choice made is never kept waiting. */
@media (prefers-reduced-motion: no-preference) {
    .choice__list:not([hidden]) {
        transition: opacity 0.32s var(--slow), transform 0.32s var(--slow);
    }

    @starting-style {
        .choice__list:not([hidden]) {
            opacity: 0;
            transform: translateY(-0.35rem);
        }
    }
}

    .choice__list [role="option"] {
        padding: 0.45rem 1.2rem 0.45rem 1.1rem;
        font-family: var(--serif);
        font-style: normal;
        font-size: var(--type-lede);
        line-height: 1.35;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
        color: var(--ink-soft);
        background: linear-gradient(var(--gold), var(--gold)) no-repeat 0.45rem 50% / 1px 0;
        cursor: pointer;
        transition: color 0.35s var(--slow), background-size 0.45s var(--slow);
    }

        .choice__list [role="option"].is-active {
            color: var(--ink);
            background-size: 1px 55%;
        }

        .choice__list [role="option"][aria-selected="true"] {
            color: var(--ink);
            background-size: 1px 55%;
        }

        .choice__list [role="option"][aria-disabled="true"] {
            color: rgba(5, 5, 5, 0.32);
            cursor: default;
        }

    /* A choice of several (ui.js over a select marked multiple): room at each option's end for the tick an option keeps
       once chosen, so a chosen one is told from the one the pointer rests on. */
    .choice--multiple .choice__list [role="option"] {
        padding-right: 2.6rem;
    }

        .choice--multiple .choice__list [role="option"][aria-selected="true"] {
            background: linear-gradient(var(--gold), var(--gold)) no-repeat 0.45rem 50% / 1px 55%, var(--choice-tick);
        }

    .choice__list .choice__empty {
        color: var(--ink-soft);
        cursor: default;
    }

@media (prefers-reduced-motion: reduce) {
    .choice__input,
    .choice__list [role="option"] {
        transition: none;
    }
}

@media (forced-colors: active) {
    .choice__list [role="option"].is-active {
        outline: 1px solid Highlight;
        outline-offset: -1px;
    }
}

/* ------------------------------------------------------ boxes and rounds */

/* Every box and round of the house's forms is its own, never the system's filled black squares and grey dots: the
   native input itself, drawn as a fine ink square or circle, a gold tick or a gold
   point inside when chosen, a gold ring when the keyboard reaches it. It stays the field posted, read out and pressed
   as the browser's own — nothing lies over it. Weighed at nothing (:where), so a component that hides its input (the
   configurator's design tiles) or sizes it keeps its own word. */
:where(input[type="checkbox"], input[type="radio"]) {
    position: relative;
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: -0.18em;
    cursor: pointer;
    transition: border-color 0.3s var(--slow);
}

:where(input[type="radio"]) {
    border-radius: 50%;
}

    :where(input[type="checkbox"])::after {
        content: '';
        position: absolute;
        left: 0.33rem;
        top: 0.08rem;
        width: 0.3rem;
        height: 0.6rem;
        /* The foil's deeper gold: the brand gold alone reads too faint on the paper to tell a ticked box at a glance. */
        border: solid var(--foil-1);
        border-width: 0 2px 2px 0;
        transform: rotate(45deg) scale(0);
        transition: transform 0.3s var(--slow);
    }

    :where(input[type="checkbox"]):checked::after {
        transform: rotate(45deg) scale(1);
    }

    :where(input[type="radio"])::after {
        content: '';
        position: absolute;
        inset: 0.24rem;
        border-radius: 50%;
        background: var(--foil-1);
        transform: scale(0);
        transition: transform 0.3s var(--slow);
    }

    :where(input[type="radio"]):checked::after {
        transform: scale(1);
    }

    :where(input[type="checkbox"], input[type="radio"]):focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 3px;
    }

    :where(input[type="checkbox"], input[type="radio"]):disabled {
        border-color: var(--rule);
        cursor: default;
    }

    :where(input[type="checkbox"], input[type="radio"])[aria-invalid="true"] {
        border-color: var(--error);
    }

/* ------------------------------------------------------------ the files */

/* A file field (ui.js, the house's file): never the system's grey key and its „Nie wybrano pliku”. The input stays in
   the form, hidden, as the files posted; a quiet link-button in small capitals opens the browser's own choosing, and
   the chosen file's name — or the names — stands beside it in the reading face. */
.file {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1.4rem;
    min-width: 0;
}

    /* The link's hairline close under its words, as a quiet press inside a field rather than a way on. */
    .file__choose {
        min-height: 2.25rem;
        padding-bottom: 0.2rem;
    }

    .file__choose[aria-invalid="true"] {
        color: var(--error);
    }

.file__name {
    min-width: 0;
    font-family: var(--serif);
    font-size: var(--type-lede);
    color: var(--ink);
    overflow-wrap: anywhere;
}

    .file__name:empty {
        display: none;
    }

/* --------------------------------------------------------------- counts */

/* A count (ui.js, the house's stepper over a number field marked data-stepper): the configurator's counter on every
   form — a round „−”, the numeral in the display face, a round „+”, a hairline under the row; never the system's box
   with its spin arrows. The numeral is the input itself, still the value posted; a round at its end is faded, and the
   keyboard's ring is the gold one. Its sizes are calm, one set for every stepper — the configurator's count, the card
   page's party, the demo's guests, the panel's added and lowered invitations —: the numeral at --type-heading (1.3–1.6rem, a step over a field's typed value at --type-lede), each
   round 2.75rem across (44 px, the least touch target) with its sign at --type-lede, the row at most 15rem. */
.stepper {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    max-width: 15rem;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.3s var(--slow);
}

    .stepper:focus-within {
        border-bottom-color: var(--gold);
    }

    .stepper:has(> .stepper__value[aria-invalid="true"]) {
        border-bottom-color: var(--error);
    }

.stepper__step {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--type-lede);
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.3s var(--slow), opacity 0.3s var(--slow);
}

    .stepper__step:hover:not(:disabled) {
        border-color: var(--ink);
    }

    .stepper__step:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .stepper__step:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 3px;
    }

/* Over a form's field rule (pages.css's .field input), which leaves a stepper's numeral alone. */
.stepper > input.stepper__value {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-family: var(--display);
    font-size: var(--type-heading);
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.2;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

    .stepper > input.stepper__value:focus {
        outline: none;
    }

    .stepper > input.stepper__value::-webkit-inner-spin-button,
    .stepper > input.stepper__value::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

@media (prefers-reduced-motion: reduce) {
    .stepper,
    .stepper__step {
        transition: none;
    }
}

/* -------------------------------------------------------------- magnify */

/* A picture of print read close (ui.js, a holder marked data-magnify): its first picture enlarged inside the holder's own
   edge round the point the pointer rests on, so a cover's finest words can be read. While a finger holds it enlarged,
   drawing over it moves the enlarged part instead of the page. */
[data-magnify] {
    overflow: hidden;
    cursor: zoom-in;
}

    [data-magnify].is-magnified {
        touch-action: none;
    }

        [data-magnify] > img:first-of-type {
            transform-origin: var(--magnify-at, 50% 50%);
            transition: transform 0.3s var(--slow);
        }

        [data-magnify].is-magnified > img:first-of-type {
            transform: scale(var(--magnify, 2));
        }

@media (prefers-reduced-motion: reduce) {
    [data-magnify] > img:first-of-type {
        transition: none;
    }
}

/* -------------------------------------------------------- dates and hours */

/* A date or an hour (ui.js, the house's date): the field stays the browser's own — typed in its segments, checked by its
   min and max, posting yyyy-mm-dd and hh:mm — on the house's hairline in the serif, its system icon hidden; an empty
   field's „dd.mm.rrrr” waits in soft ink. A date takes the calendar drawn at its end, which opens the house's month
   (the gate's own sheet, the same look), and an hour the clock drawn at its end, which opens the same sheet laid out
   as a clock (.clock) — never the browser's grey picker. */
.datefield {
    position: relative;
    display: block;
    min-width: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
}

input[type="date"],
input[type="time"] {
    color-scheme: light;
}

/* Firefox draws its own calendar and clock at a date's or an hour's end, which no pseudo-element hides: beside the
   house's drawing it would show twice, a little apart. The field's end is clipped away there, and the
   wrapper draws the hairline's clipped piece again, warming to gold as the field does. */
@supports (-moz-appearance: none) {
    .datefield > input[type="date"],
    .datefield > input[type="time"] {
        clip-path: inset(-2px 2.25rem -2px -2px);
    }

    .datefield:has(> input[type="date"], > input[type="time"])::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 2.25rem;
        border-bottom: 1px solid var(--ink);
        pointer-events: none;
        transition: border-color 0.45s var(--slow);
    }

    .datefield:focus-within::after {
        border-bottom-color: var(--gold);
    }
}

    /* iOS Safari centres a date's value in its field; it starts at the field's left, as every other value does. */
    input[type="date"]::-webkit-date-and-time-value,
    input[type="time"]::-webkit-date-and-time-value {
        text-align: left;
    }

    .datefield.is-empty > input::-webkit-datetime-edit {
        color: rgba(5, 5, 5, 0.42);
    }

    .datefield > input:focus::-webkit-datetime-edit {
        color: var(--ink);
    }

input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus {
    background: rgba(var(--gold-rgb), 0.28);
    color: var(--ink);
}

.datefield__open {
    position: absolute;
    right: -0.45rem;
    bottom: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.3s var(--slow);
}

    .datefield__open:hover {
        color: var(--ink);
    }

    .datefield__open:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: -2px;
    }

    .datefield__open:disabled {
        visibility: hidden;
    }

.calendar {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(21rem, calc(100vw - 2rem));
    padding: 1.25rem 1.25rem 1rem;
    background: var(--card);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-sheet);
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.35s var(--slow), transform 0.35s var(--slow);
}

    .calendar.is-open {
        opacity: 1;
        transform: none;
    }

    /* Every section of the page stands on one layer (z-index 30) in its order, so a sheet hanging below a short
       section — the configurator's names and day, a step barely taller than its fields — was cut by the close and the
       footer drawn after it (the owner's report of 2026-11-26). While a sheet is open its section stands above them. */
    :is(.block, .coda, .foot):has(.calendar:not([hidden])) {
        z-index: 31;
    }

    .calendar__step:focus-visible,
    .calendar__day:focus-visible,
    .clock__cell:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: -2px;
    }

    .calendar__day.is-today {
        font-weight: 500;
    }

/* The hour's clock (ui.js): the month's own sheet — the hour chosen large at its head
   where the month's name stands, then the day's twenty-four hours six to a row and the minutes, each part under a
   small-capital name as the weekdays are named, every figure set as a day of the month with its gold hairline drawn
   out under the pointer and under the one chosen. */
.clock__shown {
    font-variant-numeric: lining-nums tabular-nums;
}

.clock__part + .clock__part {
    margin-top: 0.85rem;
}

.clock__label {
    margin: 0 0 0.4rem;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size-small)/1 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

.clock__grid {
    display: grid;
    grid-template-columns: repeat(var(--clock-columns, 6), 1fr);
    gap: 0.15rem;
}

.clock__cell {
    font-variant-numeric: lining-nums tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    :where(input[type="checkbox"], input[type="radio"]),
    :where(input[type="checkbox"], input[type="radio"])::after,
    .datefield__open,
    .calendar,
    .calendar__day::after,
    .clock__cell::after {
        transition: none;
    }
}

@media (forced-colors: active) {
    :where(input[type="checkbox"])::after {
        border-color: CanvasText;
    }

    :where(input[type="radio"])::after {
        background: CanvasText;
    }
}

/* Without the scene the day's field is the form: the month's sheet opens from the calendar drawn beside it. With the
   scene the field is out of sight and the same calendar is drawn at the end of the card's date line (film.js). */
.rite__calendar-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    vertical-align: bottom;
    cursor: pointer;
}

    .rite__calendar-open:hover {
        color: var(--ink);
    }

    .rite__calendar-open:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 2px;
    }

/* The way on, in the configurator's hand (configurator.css, .home-configurator__primary): a hairline frame around light,
   spaced capitals and an arrow drawn as a line — never a filled slab. While the card is unwritten it waits in soft
   ink, the arrow short and grey, still pressable (it then says what is missing); once the names and the day are
   written the frame and the words turn to ink and the arrow is drawn out in gold. Never faded to a ghost: a couple
   must see where the way on is before they need it. */
.rite__go {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 3.4rem;
    padding: 0.9rem 1.5rem 0.9rem 1.8rem;
    border: 1px solid var(--ink-soft);
    border-radius: 0;
    background: transparent;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.5s var(--slow), border-color 0.5s var(--slow);
}

    .rite__go.is-ready {
        border-color: var(--ink);
        color: var(--ink);
    }

    /* The words' own hairline, drawn from the left as the pointer arrives at a ready button. */
    .rite__go > span:first-child {
        padding-bottom: 0.2em;
        background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
        transition: background-size 0.7s var(--slow);
    }

    .rite__go.is-ready:is(:hover, :focus-visible) > span:first-child {
        background-size: 100% 1px;
    }

    /* The arrow: a thin line with its head, grey and short while waiting, gold and drawn out once ready. */
    .rite__go > [aria-hidden="true"] {
        position: relative;
        display: inline-block;
        width: 1.1rem;
        height: 0.6rem;
        transition: width 0.6s var(--slow), transform 0.45s var(--slow);
    }

        .rite__go > [aria-hidden="true"]::before,
        .rite__go > [aria-hidden="true"]::after {
            content: '';
            position: absolute;
            transition: border-color 0.5s var(--slow), background-color 0.5s var(--slow);
        }

        .rite__go > [aria-hidden="true"]::before {
            inset: 50% 0 auto 0;
            height: 1px;
            background: var(--rule);
        }

        .rite__go > [aria-hidden="true"]::after {
            right: 0;
            top: 50%;
            width: 0.45rem;
            height: 0.45rem;
            border: solid var(--rule);
            border-width: 1px 1px 0 0;
            transform: translateY(-50%) rotate(45deg);
        }

    .rite__go.is-ready > [aria-hidden="true"] {
        width: 1.9rem;
    }

        .rite__go.is-ready > [aria-hidden="true"]::before {
            background-color: var(--gold);
        }

        .rite__go.is-ready > [aria-hidden="true"]::after {
            border-color: var(--gold);
        }

    .rite__go.is-ready:is(:hover, :focus-visible) > [aria-hidden="true"] {
        transform: translateX(0.3rem);
    }

    .rite__go:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 3px;
    }

/* The month to point at (site.js): a sheet of cotton rising over the questions, the week as a stationer sets it —
   Saturdays, the wedding days, marked with a gold hairline, the days too soon for an order faded. */
.rite__calendar {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.75rem);
    width: min(21rem, 100%);
    padding: 1.25rem 1.25rem 1rem;
    background: var(--card);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-sheet);
    transform: translate(-50%, 0.6rem);
    opacity: 0;
    transition: opacity 0.45s var(--slow), transform 0.45s var(--slow);
}

    /* Opened from the calendar drawn on the card: fixed on the screen where it was pressed (site.js sets left and top),
       by the card rather than in the column of questions. */
    .has-scene .rite__calendar.is-floating,
    .rite__calendar.is-floating {
        position: fixed;
        z-index: 60;
        bottom: auto;
        transform: translateY(0.6rem);
    }

        .has-scene .rite__calendar.is-floating.is-open,
        .rite__calendar.is-floating.is-open {
            transform: none;
        }

    .rite__calendar.is-open {
        opacity: 1;
        transform: translate(-50%, 0);
    }

.rite__calendar-head,
.calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.rite__calendar-title,
.calendar__title {
    font: 400 var(--type-lede)/1 var(--serif);
}

.rite__calendar-step,
.calendar__step {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: 400 var(--type-heading)/1 var(--serif);
    cursor: pointer;
    transition: color 0.3s var(--slow);
}

    .rite__calendar-step:hover,
    .calendar__step:hover {
        color: var(--gold);
    }

    .rite__calendar-step:disabled,
    .calendar__step:disabled {
        opacity: 0.2;
        cursor: default;
    }

.rite__calendar-grid,
.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
}

.rite__calendar-weekday,
.calendar__weekday {
    padding-bottom: 0.4rem;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size-small)/1 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

.rite__calendar-day,
.calendar__day,
.clock__cell {
    position: relative;
    height: 2.4rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: 400 var(--type-body)/1 var(--serif);
    cursor: pointer;
}

    /* A gold hairline under each Saturday, drawn out under the pointer and under the day chosen. */
    .rite__calendar-day::after,
    .calendar__day::after,
    .clock__cell::after {
        content: '';
        position: absolute;
        left: 30%;
        right: 30%;
        bottom: 0.35rem;
        height: 1px;
        background: var(--gold);
        transform: scaleX(0);
        transition: transform 0.35s var(--slow);
    }

    .rite__calendar-day.is-saturday::after,
    .calendar__day.is-saturday::after {
        transform: scaleX(0.6);
    }

    .rite__calendar-day:not(:disabled):hover::after,
    .calendar__day:not(:disabled):hover::after,
    .clock__cell:not(:disabled):hover::after,
    .rite__calendar-day:focus-visible::after,
    .calendar__day:focus-visible::after,
    .clock__cell:focus-visible::after,
    .rite__calendar-day.is-chosen::after,
    .calendar__day.is-chosen::after,
    .clock__cell.is-chosen::after {
        transform: scaleX(1.4);
    }

    .rite__calendar-day.is-chosen,
    .calendar__day.is-chosen,
    .clock__cell.is-chosen {
        color: var(--gold);
    }

    .rite__calendar-day:disabled,
    .calendar__day:disabled,
    .clock__cell:disabled {
        color: var(--rule);
        cursor: default;
    }

        .rite__calendar-day:disabled::after,
        .calendar__day:disabled::after,
        .clock__cell:disabled::after {
            display: none;
        }

/* --- the stage: a sticky frame the reader scrolls through --- */

/* As long as the film's acts: film.js sets --film-weights to the sum of their weights (ACTS), and every weight asks the
   same scroll — half a screen, the 98.5 % of the room the acts take (SCROLL_END) — so the pace holds when an act
   grows. The fallback (15 weights) stands until film.js has set the sum. */
.has-scene .film {
    height: calc(100vh + var(--film-weights, 15) * 50.8vh);
}

.has-scene .film__viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--stage);
}
/* The page is blank first; the still life comes out of it. The canvas's own opacity belongs to film.js (the scene
   steps back under the sky), so the arrival is an animation that leaves no value behind; it runs with film.js's own
   entrance, which starts on the same first frame. */
.has-scene .film__canvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: film-in 2.6s var(--slow) backwards;
}

@keyframes film-in {
    from {
        opacity: 0;
    }
}

/* The open book's words printed sharp in the screen's own pixels over the film's canvas, while the lens holds over
   the pages (film.js's printAfterFrame): faded in over the pages' own words, which the sheets give up only once it
   stands (film.js's PRINT_FADE, the same 220 ms), so the words sharpen rather than change weight at a stroke (the
   owner's report of 2026-11-25), and taken away at once, as the sheets take back their words in the same frame.
   Under the grain, as the canvas is. */
.film__print {
    display: none;
}

.has-scene .film__print {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

    .has-scene .film__print.is-on {
        visibility: visible;
        opacity: 1;
        transition: opacity 220ms ease-out;
    }

@media (prefers-reduced-motion: reduce) {
    .has-scene .film__print.is-on {
        transition: none;
    }
}

/* Once the invitation is opened the page's paper lies under the see-through header, fading out at its foot: what the
   lens holds close reaches above the frame — a page read close and its lifted leaf, the photograph coming down into the
   lid's slot — and dissolves under the mark and the menu instead of running through their words to the screen's edge
   (the renders of 2026-11-20 at 1024 × 768). A narrow stage lays its foot's paper on the same layer (below). */
.has-scene.is-open .film__viewport::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom, var(--stage) calc(var(--header) * 0.5), transparent var(--header)) 0 0 / 100% var(--header) no-repeat;
    pointer-events: none;
}

    .film__canvas.is-touchable {
        cursor: grab;
        touch-action: none;
    }

/* Grain over the stage: the scene is rendered, the page should feel shot. Specks of ink at their own alpha (film.js),
   laid normally: the colour a multiply blend gave, without the compositor blending the canvas anew at every frame. */
.has-scene .film__grain {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
}

/* The load veil (words standing before the object they speak of look unfinished): with the
   scripts (has-rite, set before the first paint) the stage is its own bare ground (--stage) until film.js has drawn its first
   frame with the card (is-film-ready), then the paper fades away slowly. The mark above stays. film.js also lifts it
   when the scene cannot start, site.js after a few seconds whatever happens, and the animation below lifts it even if
   no script ever runs again — the veil never holds the page. It is only seen, never in the way of a hand. */
.has-rite .film__viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 50;
    background: var(--stage);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s var(--slow), visibility 0s linear 1.1s;
}

.has-rite:not(.is-film-ready) .film__viewport::after {
    opacity: 1;
    visibility: visible;
    transition: none;
    animation: film-veil-lift 1.1s var(--slow) 4.5s forwards;
}

@keyframes film-veil-lift {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-rite .film__viewport::after {
        transition: opacity 0.3s linear, visibility 0s linear 0.3s;
    }
}

.has-scene .film__copy {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
    padding: 0;
    pointer-events: none;
}

/* One caption at a time, beside the object: left and a little below the middle on a wide screen, at the foot on a
   narrow one. film.js sets each caption's opacity from the film's time. */
.has-scene .cap {
    position: absolute;
    left: var(--gutter);
    top: calc(50% - 6rem);
    width: min(34rem, calc(100% - 2 * var(--gutter)));
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
}

/* The AI line, in the stage's bottom left corner alone, while a photograph is on it (film.js). */
.film__photos-note {
    display: none;
}

/* Held between both gutters: with its left edge alone the line took the whole width past it, and where the browser does
   not balance its lines (Safari before 17.5) it ran to the screen's very edge (the owner's report of 2026-11-15, „się
   nie mieści”). */
.has-scene .film__photos-note {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(1.5rem, 4vh, 2.5rem);
    margin: 0;
    opacity: 0;
    visibility: hidden;
}

    /* A block of its own, so its two lines keep the small capitals' own leading: inline in the paragraph they took the
       body text's, some 26 px between lines of 10 px capitals, and „PRZEZ AI” stood alone on the second. */
    .has-scene .film__photos-note .cap__note {
        display: block;
        margin-top: 0;
        text-wrap: balance;
    }

/* --- the last word: the days left and the way on --- */

.has-scene .close {
    display: flex;
    position: absolute;
    z-index: 26;
    left: var(--gutter);
    top: calc(50% - 4rem);
    width: min(30rem, calc(100% - 2 * var(--gutter)));
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 1s var(--slow), transform 1s var(--slow), visibility 0s linear 1s;
}

.has-scene .close--on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 1s var(--slow), transform 1s var(--slow), visibility 0s linear 0s;
}

.close__count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.2rem;
}

/* The days left are a numeral to be seen from across the room, outside the reading scale. */
.close__days {
    font-family: var(--display);
    font-size: clamp(4.5rem, 9vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-variant-numeric: lining-nums;
}

/* „dni” beside the figure in the display face, a caption's title's size; „do Twojego ślubu” under them as a lede. */
.close__unit {
    font-family: var(--display);
    font-size: var(--cap-title-size);
    line-height: 1;
}

.close__until {
    margin-top: -0.4rem;
    font-size: var(--type-lede);
    color: var(--ink-soft);
}

.close__go {
    margin-top: 0.8rem;
    pointer-events: auto;
}

/* --- the cue and the index of the acts --- */

/* At the foot of the stage, in the middle, with the whole screen of air above it: the words, and under them a line the
   light runs down. */
.has-scene .cue {
    display: flex;
    position: absolute;
    z-index: 34;
    left: 50%;
    bottom: 4.4rem;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.6rem);
    transition: opacity 1s var(--slow) 0.8s, transform 1s var(--slow) 0.8s;
}

.has-scene .cue--on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cue__text {
    white-space: nowrap;
}

.cue__line {
    position: relative;
    width: 1px;
    height: 2.2rem;
    overflow: hidden;
    background: var(--rule);
}

    .cue__line::after {
        content: '';
        position: absolute;
        left: 0;
        top: -40%;
        width: 1px;
        height: 40%;
        background: var(--ink);
        animation: cue 2.4s var(--slow) infinite;
    }

@keyframes cue {
    to {
        top: 100%;
    }
}

/* ---------------------------------------------------------- 6. Sections */

/* Below the film: an editorial spread and a material study. */
.block {
    position: relative;
    z-index: 30;
    padding: clamp(5rem, 10vw, 10rem) var(--gutter);
    background: var(--ground);
}

/* The correspondence. The head stands alone with its air, then the two letters on their sheets, then the three
   benefits quietly in a row of hairlines. */
.story__head .display {
    margin-bottom: 2rem;
}

.story__intro {
    max-width: 27rem;
}

.letters {
    margin-top: clamp(4rem, 8vw, 7rem);
}

/* Without the script (and under reduced motion, or on a screen too short for a sheet) the letters stand whole: the
   couple's sheet, and the answer laid over its foot at a slight angle, as a reply set down on a letter. */
.letters__pin {
    display: grid;
    justify-items: center;
}

.letters__steps {
    display: none;
}

.letters__desk {
    display: grid;
    width: min(100%, 40rem);
}

/* A sheet of cotton: the page's own white, told from the ground only by the fibre, a hairline edge and a shadow that
   says it lies a little above the table — never a tint, a border of colour or a curl. */
.sheet {
    position: relative;
    isolation: isolate;
}

/* The paper — its white, its hairline edge, its shadow and its fibre — is the sheet's two layers under the words, so
   the paper alone leans (the answer) or steps back (the letter under it, home.js's --paper) while the words stand
   upright on the screen's own pixels: turned and scaled with the paper they were drawn off the pixel grid and read
   soft (the owner's screenshot of 2026-10-29, „Kochani moi” blurred at 1366 × 768). */
.sheet::before,
.sheet::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    transform: var(--paper, none);
}

.sheet::before {
    background: var(--card);
    border: 1px solid rgba(5, 5, 5, 0.06);
    box-shadow: var(--shadow-sheet);
}

.sheet::after {
    background-image: var(--fiber);
    opacity: 0.35;
}

.sheet--answer {
    --paper: rotate(-1.2deg);
    justify-self: end;
    width: 88%;
    /* Over the sheet's bottom margin only, never over the couple's signature. */
    margin-top: -1.25rem;
}

/* The letter is set in the page's own text weight — the medium cut read needlessly heavy (the owner's report of
   2026-11-25, „ta treść jest niepotrzebnie tak gruba”) — at the size a letter is written at, a measure of some sixty
   characters, inside a margin a stationer would leave. */
.sheet__body {
    margin: 0;
    padding: clamp(2.4rem, 5vw, 4.25rem) clamp(1.6rem, 5vw, 4.5rem);
    font-size: clamp(1.1rem, 1.3vw, 1.28rem);
    font-weight: var(--weight-text);
    line-height: 1.65;
    text-wrap: pretty;
}

.sheet--answer .sheet__body {
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
}

/* The display face at a smaller optical size and a little heavier than the headings: its hairlines hold at a
   letter's size. */
.sheet__salutation {
    /* More air under the salutation. */
    margin-bottom: 2rem;
    font-family: var(--display);
    font-size: 1.45em;
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 14;
    line-height: 1.15;
    letter-spacing: var(--display-tracking);
}

/* The signature as large as the salutation, in its face: a hand's italic, the couple's pair upright with its italic ampersand (below). */
.sheet__body footer {
    margin-top: 2rem;
    font-family: var(--display);
    font-size: 1.45em;
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 14;
    line-height: 1.15;
    letter-spacing: var(--display-tracking);
    text-align: right;
    overflow-wrap: anywhere;
}

/* The couple's signature is their pair: the names upright, only the ampersand italic. */
.sheet__body footer[data-couple="pair"] {
    font-style: normal;
}

.sheet__body footer::before {
    content: '';
    display: inline-block;
    width: 1.4rem;
    height: 1px;
    margin-right: 0.8rem;
    vertical-align: middle;
    background: var(--gold);
}

/* With the script (home.js, .is-driven): the stage is as tall as the reading needs, and its frame stays on the screen
   under the header while the page scrolls past it. The sheets lie one over the other in the desk; each letter's lines
   move inside its window, faded at the head and the foot, and the answer waits below the frame, which clips it. The
   desk's height is the frame's less its padding, so a short screen shows fewer lines rather than a
   smaller sheet, and a tall one stops at 46rem — a sheet, not a wall. */
.letters.is-driven .letters__pin {
    position: sticky;
    top: var(--header);
    height: calc(100vh - var(--header));
    height: calc(100svh - var(--header));
    overflow: hidden;
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 40rem) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    justify-items: stretch;
    padding: 1.5rem 0;
}

.letters.is-driven .letters__steps {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

    .letters.is-driven .letters__steps li {
        display: flex;
        align-items: baseline;
        gap: 0.9rem;
        padding: 0.55rem 0;
        font: var(--sans-weight) var(--caps-size)/1.4 var(--sans);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        color: var(--ink-soft);
        opacity: 0.55;
        transition: opacity 0.6s var(--slow), color 0.6s var(--slow);
    }

    .letters.is-driven .letters__steps li.is-current {
        color: var(--ink);
        opacity: 1;
    }

    .letters.is-driven .letters__steps span {
        color: var(--gold);
    }

.letters.is-driven .letters__desk {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: min(46rem, calc(100vh - var(--header) - 7rem));
    height: min(46rem, calc(100svh - var(--header) - 7rem));
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

/* No layer of their own at rest (will-change): a sheet is moved by whole pixels (home.js), so it is drawn sharp where
   it stands. */
.letters.is-driven .sheet {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
}

.letters.is-driven .sheet--answer {
    align-self: center;
    justify-self: center;
    width: 86%;
    max-height: 86%;
    margin: 0;
    transform: translateY(110vh);
}

.letters.is-driven .sheet__window {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}

/* The lines are given a layer only while the page scrolls them (home.js's is-reading), and drawn again on the pixel grid
   once it stops. */
.letters.is-driven.is-reading .sheet__body {
    will-change: transform;
}

/* The benefits after the letters: three columns under hairlines, read once the correspondence has let go. */
.story__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
    margin-top: clamp(4rem, 8vw, 7rem);
}

.story__benefits > div {
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
}

.story__benefits dt {
    font-family: var(--serif);
    font-size: var(--type-heading);
}

.story__benefits dd {
    max-width: 24rem;
    margin-top: 0.5rem;
    font-size: var(--type-lede);
    line-height: 1.5;
    color: var(--ink-soft);
}

.craft__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 8rem);
}

.material {
    position: sticky;
    top: calc(var(--header) + 2rem);
}

.material__study {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    /* The film's stage under the card (--stage): on the page's own ground the cotton card was the ground's very colour
       (the owner's report of 2026-11-25, „kolor karty jest taki sam jak tła”); the card alone stands on it. */
    background: var(--stage);
    perspective: 900px;
}

.material__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62%;
    aspect-ratio: 1;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid rgba(5, 5, 5, 0.06);
    /* The white edge in the cotton's shade, then a soft neutral contact shadow on the paper, never a dark cast. */
    box-shadow: 2px 3px 0 var(--card-edge), 0 2px 4px rgba(5, 5, 5, 0.08), 6px 16px 32px rgba(5, 5, 5, 0.12);
    transform: rotateX(0) rotateY(0) rotateZ(-9deg);
    font-family: var(--display);
    color: var(--foil-1);
    transition: transform 1.4s var(--slow), box-shadow 1.4s var(--slow);
}

.material__card::before {
    content: '';
    position: absolute;
    inset: 1px -4px -4px 1px;
    z-index: -1;
    border-right: 4px solid var(--card-edge);
    border-bottom: 4px solid var(--card-edge);
}

/* As on the letter's cover itself, laid as the fair's letter (the owner's decision of 2026-11-25): the couple's names
   printed whole in ink on three lines, the italic ampersand between them — no day, nothing embossed. */
.material__names,
.material__amp {
    color: var(--ink);
}

.material__pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12em;
}

.material__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--fiber);
    opacity: 0.25;
    pointer-events: none;
}

/* The film's cover (letter-faces.js's NAMES): the names a little smaller than the ampersand, a long name shrinking to
   the line (site.js's --fit). */
.material__names {
    font-size: calc(clamp(1.6rem, 3vw, 3.2rem) * var(--fit, 1));
    line-height: 1;
    white-space: nowrap;
}

.material__amp {
    font-size: clamp(1.8rem, 3.4vw, 3.6rem);
    font-style: italic;
    line-height: 1;
}

.craft__copy .display {
    margin-top: 1.5rem;
}

.craft__intro {
    max-width: 27rem;
    margin: 2rem 0 3rem;
}

.material__meaning > div + div {
    margin-top: 1.6rem;
}

/* Each material's name and meaning in the maker's sheet's own voice, the face and size of its figures („100 × 100 mm”):
   the two lists of the section read as one. */
.material__meaning dt {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

/* The material's meaning in italic, „Dąb – oparcie”: a deliberate exception to the house's upright <em> — the four
   terms alone. */
.material__meaning dt em {
    font-weight: var(--weight-display);
    font-style: italic;
}

.material__meaning dd {
    max-width: 26rem;
    margin-top: 0.6rem;
    font-size: var(--type-lede);
    line-height: 1.5;
    color: var(--ink-soft);
}

/* The maker's sheet, set as a watchmaker's caliber sheet in the column beside the study card: under a gold hairline,
   one line per part — its name in small capitals, the figure that says it in the display face, large and with lining
   numerals, and the rest of the fact small and soft under the figure. The name sits on the figure's baseline once the
   column is wide enough for both (a container query, since the column's width, not the screen's, decides); narrower,
   the name stands over its figure. */
.making {
    container-type: inline-size;
    margin-top: clamp(4rem, 7vw, 6rem);
}

.making__title {
    padding-top: 1.1rem;
    border-top: 1px solid var(--gold);
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-heading);
    line-height: 1.1;
    letter-spacing: var(--display-tracking);
}

.making__sheet {
    margin-top: 1rem;
}

.making__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.55rem;
    padding: 1.35rem 0 1.45rem;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.5s var(--slow);
}

@container (min-width: 26rem) {
    .making__entry {
        grid-template-columns: 7rem minmax(0, 1fr);
        column-gap: 1.5rem;
        align-items: baseline;
    }
}

.making__figure {
    display: block;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    font-variant-numeric: lining-nums;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.making__note {
    display: block;
    max-width: 26rem;
    margin-top: 0.5rem;
    font-size: var(--type-small);
    line-height: 1.5;
    color: var(--ink-soft);
}

/* The sheet itself stands at once; its rows rise one after another once it is in (the row's --reveal-index), each
   keeping its hover's fade beside the arrival's own transitions. */
.has-ui .making__sheet[data-reveal] {
    opacity: 1;
    transform: none;
}

.has-ui .making__entry {
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 0.8s var(--slow) calc(var(--reveal-index, 0) * 70ms), transform 0.8s var(--slow) calc(var(--reveal-index, 0) * 70ms), border-color 0.5s var(--slow) 0s;
}

.has-ui .making__sheet.is-in .making__entry {
    opacity: 1;
    transform: none;
}

    .making__entry:hover {
        border-bottom-color: var(--gold);
    }

    .making__entry dt {
        font: var(--sans-weight) var(--caps-size)/1.4 var(--sans);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
    }

/* The study card turns towards the light with the scroll: home.js sets --light from 0 to 1. */
.material__card {
    transform: translateY(calc(-4% * var(--light, 0))) rotateX(calc(22deg * var(--light, 0))) rotateY(calc(-23deg * var(--light, 0))) rotateZ(calc(-9deg + 16deg * var(--light, 0))) scale(calc(1 + 0.06 * var(--light, 0)));
    transition: none;
}

.foot {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) 2.5rem;
    background: var(--ground);
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
}

/* The house behind the brand, said quietly: the same small capitals as the place, dimmed until pointed at. */
.foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.8rem;
}

.foot__link {
    padding: 0.8rem 0;
    color: var(--ink-soft);
    transition: color 0.3s var(--slow);
}

    .foot__link:hover {
        color: var(--ink);
    }

/* „Zapomnij partnera” is a press, not an address: a button set as the footer's other links. */
.foot__forget {
    background: none;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

    .foot__forget[hidden] {
        display: none;
    }

/* On a phone the house's links stand in two columns of the column's width, so every row keeps the same edges: wrapped
   as a row of words, „Regulamin”, „Prywatność” and „AI” stood under nothing above them, and three columns broke
   „Panel pary” on a 360 px screen (the renders of 2026-11-14). */
@media (max-width: 699px) {
    .foot > nav.foot__links:first-of-type {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        column-gap: 1rem;
    }
}

/* The footer arrives with the page's last scroll: its rows one after another. */
.has-ui .foot > * {
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 1s var(--slow), transform 1s var(--slow);
}

    .has-ui .foot.is-in > * {
        opacity: 1;
        transform: none;
    }

    .has-ui .foot.is-in > :nth-child(2) { transition-delay: 0.08s; }
    .has-ui .foot.is-in > :nth-child(3) { transition-delay: 0.16s; }
    .has-ui .foot.is-in > :nth-child(4) { transition-delay: 0.24s; }

/* The company's registration line (art. 206 § 1 KSH): a full row of its own, in sentence case, so the numbers stay
   legible rather than spaced into capitals. */
.foot__registry {
    flex-basis: 100%;
    /* A little closer under the links, whose own padding already leaves air. */
    margin: -0.75rem 0 0;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    line-height: 1.6;
    /* Lighter than the footer's other lines, so the registration stays legible yet quiet. */
    color: rgba(5, 5, 5, 0.45);
}

/* The company's name in the line's own quiet ink, never darker than the rest of it; only its
   hairline says it leads somewhere. */
.foot__company {
    color: inherit;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.5s var(--slow);
}

    .foot__company:hover {
        background-size: 100% 1px;
    }

/* ------------------------------------------------------- 7. Narrow screens */

/* Below 1280 px the header draws closer: the links and the languages stand nearer, the capitals a little less spaced,
   so the four links keep one line beside the mark and the seven languages; below 1024 px they leave the header. */
@media (max-width: 1279px) {
    .brand {
        gap: 1rem;
    }

    .brand__nav {
        gap: 1.4rem;
        margin-right: 0.6rem;
        letter-spacing: 0.14em;
    }

    .lang a {
        min-width: 1.9rem;
        padding-inline: 0.2rem;
    }
}

/* Below 1024 px a page's four links wait behind „Menu” beside the languages (section 4); the home page's one link
   still fits, until a phone. */
@media (max-width: 1023px) {
    .brand--page .brand__nav,
    .brand--home .brand__nav {
        display: none;
    }

    .brand--page .brand__menu,
    .brand--home .brand__menu {
        display: block;
    }
}

@media (max-width: 1099px) {
    :root {
        --header: 4.5rem;
    }

    .craft__layout {
        gap: 2.5rem;
    }
}

/* The correspondence on a narrow screen: the sheet takes the frame's width, which letter is read stands as one line
   above it. Below 1200 px the columns beside a 40rem sheet are too narrow for the steps. The desk gives the steps'
   line its room. */
@media (max-width: 1199px) {
    .letters.is-driven .letters__pin {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        padding: 1rem 0;
    }

    .letters.is-driven .letters__steps {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        margin-bottom: 0.75rem;
    }

        /* Both names would not fit one line on a phone: only the letter being read is named. */
        .letters.is-driven .letters__steps li {
            padding: 0;
        }

        .letters.is-driven .letters__steps li:not(.is-current) {
            display: none;
        }

    .letters.is-driven .letters__desk {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        width: min(100%, 40rem);
        height: min(46rem, calc(100vh - var(--header) - 9rem));
        height: min(46rem, calc(100svh - var(--header) - 9rem));
    }
}

/* The benefits fall into one column where three would leave a few words a line. */
@media (max-width: 899px) {
    .story__benefits {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
    }

    /* A phone's letter keeps a narrow margin (some 26 px), and the answer's leaning paper at 86 % uncovered the first
       letters of the lines under it at its lower corner (the renders of 2026-11-14): wider, its edge stays outside the
       letter's words, still a sheet laid over a sheet. */
    .letters.is-driven .sheet--answer {
        width: 92%;
    }
}

/* On the narrow stage (film.js's STAGE_WIDE, negated: under 900 px held upright, under 600 px, or any screen held
   upright taller than 5:4) the stage is the upper 62 % of the screen (film.js's STAGE_SHARE) and the captions begin
   under it: the words always under the object, never over it, and the object never cut at a caption's top (the owner's
   decision of 2026-10-27 on a phone's renders). A phone held landscape takes the wide stage instead (2026-11-15). A
   large tablet held upright (1024 × 1366) took the wide stage from its 900 px, every object a column of some 440 px
   beside its caption between two empty bands of a third of the screen each (the renders of 2026-11-21); it reads as an
   upright tablet does. */
@media (max-width: 899px) and (max-aspect-ratio: 1333/1000), (max-width: 599px), (max-aspect-ratio: 799/1000) {
    .has-scene .cap,
    .has-scene .close {
        top: 62vh;
        top: 62svh;
        bottom: auto;
    }

    /* The canvas ends at the stage's foot, softly: what lies past the object's band — the paper under the unfolded
       letter and the phone, the magazine in front of the case at the close, the envelope while the lens is still
       arriving — dissolves into the page's own paper over the last tenth of the stage instead of being sliced flat at a
       line. Paper into paper, never a tint. The canvas is the stage alone
       (film.js draws its upper 62 % of the view, measure()'s HC), and the dissolve is the page's paper laid over its
       foot, the same colour on every pixel a mask gave: masked, the live canvas was composited through the mask at
       every frame, and the part under the captions was drawn for nothing (the owner's report of 2026-11-14, a phone
       stuttering and growing hot). At the gate the stage is the whole screen: under the folded letter stand the questions,
       not a caption. */
    /* Since 2026-11-15 the stage ends act by act where that act's caption begins (film.js's layFeet, --stage-foot), and
       the canvas reaches the lowest of them (--stage-canvas); 62svh and 56svh stand until film.js has measured. The paper
       runs from 6svh over the stage's foot down to the screen's, so nothing drawn under a band shows under its words.
       The same paper lies under the see-through header, fading out at its foot: what reaches above a band — a page read
       close on an upright tablet, the photograph coming down into the lid's slot — dissolves under the mark and the
       menu instead of being cut there by the screen's edge, a page's lifted corner curling through the header's words
       (the renders of 2026-11-20 at 768 × 1024). */
    .has-scene.is-open .film__canvas,
    .has-scene.is-open .film__print {
        bottom: auto;
        height: 62vh;
        height: var(--stage-canvas, 62svh);
    }

    .has-scene.is-open .film__viewport::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 1;
        background:
            linear-gradient(to bottom, var(--ground) calc(var(--header) * 0.5), transparent var(--header)) 0 0 / 100% var(--header) no-repeat,
            linear-gradient(to bottom, transparent, var(--ground) 6vh) 0 56vh / 100% 100% no-repeat;
        background:
            linear-gradient(to bottom, var(--ground) calc(var(--header) * 0.5), transparent var(--header)) 0 0 / 100% var(--header) no-repeat,
            linear-gradient(to bottom, transparent, var(--ground) 6svh) 0 calc(var(--stage-foot, 62svh) - 6svh) / 100% 100% no-repeat;
        pointer-events: none;
    }

    :root {
        --cap-title-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    /* Under the title by a little more than a line of the lede leaves between its own lines: at 0.7rem the lede ran into
       the title's descenders (the renders of 2026-11-14). */
    .cap__lede {
        margin-top: 1.25rem;
        font-size: var(--type-body);
    }

    /* The cue stands in the captions' own column, at the stage's foot, its words and its line from the gutter: centred
       under a caption set from the left it read as a stray line, and 4.4rem up — held for an index of the acts the film
       no longer has — it stood a breath under a lede of four lines. The AI line keeps the same foot. */
    .has-scene .cue {
        left: var(--gutter);
        bottom: clamp(1.5rem, 4vh, 2.5rem);
        align-items: flex-start;
        transform: translateY(0.6rem);
    }

        .has-scene .cue--on {
            transform: none;
        }

    .cue__line {
        height: 1.6rem;
    }

    /* The film's last word stands compact at the foot, so the case above it stays in sight, and closer set, so the
       way on stays clear of the AI line under it. */
    .has-scene .close {
        gap: 0.75rem;
    }

    .close__days {
        font-size: 3.6rem;
    }

    /* The way on as one slab across the column, its words and arrow on one line: as a box shrunk to its words the label
       broke in two with the arrow pushed to the far edge. Tracked a little closer than the house's capitals, so the
       label fits a 375 px screen's column; a longer language's label wraps as centred text with the arrow after it.
       Scoped to the stage, as pages.css's .button comes after this sheet. */
    .has-scene .close .close__go {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        padding: 1.05rem 1rem;
        letter-spacing: 0.12em;
        line-height: 1.5;
    }
}

/* A low phone (under some 740 px of screen) has no room under the case for the sky of the day as well: the days, the way
   on and the AI line under them stand clear, and the AI line — art. 50's disclosure while a photograph is on the
   stage — is never the one to give way. */
@media (max-width: 899px) and (max-aspect-ratio: 1333/1000) and (max-height: 740px), (max-width: 599px) and (max-height: 740px) {
    .has-scene .close__sky {
        display: none;
    }
}

/* A low wide stage's captions, last word and cue (the gate's rules stand with the wide gate's, above): after the stage's
   own rules, which they override. The caption and the last word from just under the header — the caption a 16rem
   block centred in the room left —, the sky of the day left out as on a low phone, and the cue in the captions'
   column at the foot, as on a phone held upright. */
@media (min-width: 900px) and (max-height: 500px), (min-width: 600px) and (min-aspect-ratio: 4/3) and (max-height: 500px) {
    .has-scene .cap {
        top: calc(var(--header) + max(0rem, (100vh - var(--header) - 16rem) / 2));
        top: calc(var(--header) + max(0rem, (100svh - var(--header) - 16rem) / 2));
    }

    /* The caption and the last word keep to the left 46 % (the gate's column): at their full 26rem the object had no room
       beside them on a 667 px screen and stood under the words (the renders of 2026-11-15) — film.js's measure() frames
       the object right of the lede it measures. The title a step smaller, so a two-line title and a lede of five lines
       end above the cue. */
    .has-scene .cap,
    .has-scene .close {
        width: 46vw;
    }

        .has-scene .cap .cap__lede {
            max-width: none;
        }

    /* The AI line in the same column, on two lines: across both gutters its one line ran on under the case beside the
       captions (the renders of 2026-11-21 at 667 × 375). */
    .has-scene .film__photos-note {
        right: auto;
        width: calc(46vw - var(--gutter));
    }

    :root {
        --cap-title-size: var(--type-subtitle);
    }

    .has-scene .close {
        top: calc(var(--header) + 0.75rem);
        gap: 0.6rem;
    }

    .close__days {
        font-size: 3.6rem;
    }

    .has-scene .close__sky {
        display: none;
    }

    /* The way on across the column on one line, as on a phone held upright. */
    .has-scene .close .close__go {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        padding: 1rem 0.75rem;
        letter-spacing: 0.1em;
        line-height: 1.5;
    }

    /* The header keeps its ground over the stage: on a screen this low the objects read close — the phone, the
       magazine — reach above the frame, and passed under a see-through header the oak and the phone's black frame ran
       through the mark and the languages. */
    .brand--home {
        background: var(--ground);
        border-bottom-color: var(--rule);
    }

    .has-scene .cue {
        left: var(--gutter);
        bottom: clamp(1.25rem, 4vh, 2rem);
        align-items: flex-start;
        transform: translateY(0.6rem);
    }

        .has-scene .cue--on {
            transform: none;
        }

    .cue__line {
        height: 1.4rem;
    }
}

@media (max-width: 699px) {
    .brand {
        gap: 0.5rem;
    }

    .brand__mark {
        width: clamp(7rem, 29vw, 8.5rem);
    }

    .brand__nav {
        display: none;
    }

    /* On a phone a page's header is the mark and „Menu”: the seven languages move into the sheet. The home page too,
       which carries „Menu” as well — the mark, „Menu” and seven codes would run past a 390 px screen's edge. */
    .brand--page .lang,
    .brand--home .lang {
        display: none;
    }

    .lang ul {
        gap: 0;
    }

    /* The seven codes in the sheet, as close as a phone's line allows. */
    .lang a {
        min-width: 2rem;
        letter-spacing: 0;
        padding: 0.9rem 0.2rem;
    }

    .craft__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .material {
        position: static;
    }

    .material__names {
        font-size: calc(clamp(1.6rem, 6.5vw, 3rem) * var(--fit, 1));
    }

    .material__card {
        padding: 1rem;
    }

}

@media (max-height: 700px) {
    :root {
        --cap-title-size: clamp(1.7rem, 3.4vw, 2.6rem);
    }
}

/* ------------------------------------------------------------ 7a. Manners */

/* The motion every page shares (ui.js): a thing arrives once, rising a little out of the paper; a group arrives one
   after another. Only with the script, so a page without it is simply there. */
.has-ui [data-reveal],
.has-ui [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(1.4rem);
    transition: opacity 1.1s var(--slow), transform 1.1s var(--slow);
    transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.has-ui [data-reveal].is-in,
.has-ui [data-reveal-stagger] > .is-in {
    opacity: 1;
    transform: none;
}

/* Hidden from the first paint, never shown and then taken away: ui.js runs after the page may already have been painted,
   and a heading written with data-reveal would stand, vanish and rise again.
   Where scripts run, what the markup and ui.js mark waits unseen until ui.js takes it over; should ui.js never run, it
   comes up by itself after a moment rather than stay blank. */
@media (scripting: enabled) {
    html:not(.has-ui) [data-reveal],
    html:not(.has-ui) [data-reveal-stagger] > *,
    html:not(.has-ui) main.page .page__head,
    html:not(.has-ui) main.page .section {
        opacity: 0;
        transform: translateY(1.4rem);
        animation: reveal-unattended 0.6s var(--slow) 2.5s forwards;
    }
}

@keyframes reveal-unattended {
    to { opacity: 1; transform: none; }
}

/* A printed page is never waiting to be scrolled to: whatever had not yet risen prints whole. */
@media print {
    .has-ui [data-reveal],
    .has-ui [data-reveal-stagger] > * {
        opacity: 1;
        transform: none;
    }
}

/* A link draws its hairline from the left; a filled button lets the gold rise through it. */
.inline-link,
.prose a {
    border-bottom: 0;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size 0.5s var(--slow), color 0.3s var(--slow);
}

    .inline-link:hover,
    .prose a:hover {
        background-image: linear-gradient(var(--gold), var(--gold));
        animation: hairline 0.6s var(--slow);
    }

@keyframes hairline {
    from { background-size: 0 1px; }
}

.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* A label that must break on a phone breaks into even lines, never leaving one word alone on the second. */
    text-wrap: balance;
}

    .button::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--gold);
        transform: translateY(101%);
        transition: transform 0.55s var(--slow);
    }

    .button:not(:disabled):hover {
        opacity: 1;
    }

        .button:not(:disabled):hover::before {
            transform: none;
        }

    .button--quiet::before {
        background: rgba(var(--gold-rgb), 0.16);
    }

    .button:active:not(:disabled) {
        transform: scale(0.985);
    }

.button:not(:disabled) {
    transition: opacity 0.3s var(--slow), transform 0.2s var(--slow);
}

/* A disclosure's sign turns into a cross as it opens (ui.js animates the height). */
details > summary {
    transition: color 0.3s var(--slow);
}

    /* A disclosure without a marker of its own (the card's full clause, the wizard's pasted list and invoice) keeps
       the browser's triangle as its cue, but small and in the house gold rather than the browser's black. */
    details > summary::marker {
        color: var(--gold);
        font-size: 0.7em;
    }

    details > summary:hover {
        color: var(--ink-soft);
    }

/* Every refusal the site says — ui.js's word under a field, the server's under a field, the gate's, the configurator's,
   the sign-in's, the guest's form, the card's answer, the wizard and the panel — in one voice: the reading face at the text's own size, upright, no tracking, the one error colour, close under its field.
   Defined here alone; no page sets its own face or size for it. A box's refusal stands under its words, aligned with
   them, never under the box. */
.field__error,
.rite__error,
.home-configurator__error {
    font-family: var(--serif);
    font-style: normal;
    font-weight: var(--weight-text);
    /* The text's own size: at the small step the one sentence that stops the couple reads as a footnote. */
    font-size: var(--type-body);
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: var(--error);
}

/* A message is never switched on: it rises a hair into place as it is said. The configurator's says itself through its
   own script (configurator.js's playDetail), which a second motion here would interrupt halfway. */
@media (prefers-reduced-motion: no-preference) {
    .rite__error:not(:empty),
    .field__error:not(:empty):not([data-ui]) {
        animation: message-in 0.7s var(--slow) both;
    }
}

/* Its own name: pages.css's notice-in, loaded later, draws a hairline these messages do not have. */
@keyframes message-in {
    from { opacity: 0; transform: translateY(0.35rem); }
}

.field__error {
    margin-top: 0.4rem;
}

/* In a holder that spaces its children by a gap, the gap is the distance: the message stands 0.4rem under its field
   wherever it is, never the gap and the margin added. */
.field > .field__error {
    margin-top: 0.05rem;
}

.subscribe > .field__error {
    margin-top: -0.3rem;
}

.code-form > .field__error {
    margin-top: -0.8rem;
}

/* ui.js's word slides in, never pops. */
.field__error[data-ui] {
    opacity: 0;
    transform: translateY(-0.3rem);
    transition: opacity 0.35s var(--slow), transform 0.35s var(--slow);
}

    .field__error[data-ui].is-in {
        opacity: 1;
        transform: none;
    }

.check .field__error {
    grid-column: 2;
}

label.check + .field__error {
    margin-top: 0.3rem;
    padding-left: 2rem;
}

.home-configurator__check + .field__error {
    margin-top: -0.6rem;
    padding-left: 2.15rem;
}

/* An error notice is a notice in the error colour: the same reading face as every other notice. */
.notice--error {
    color: var(--error);
}

/* ------------------------------------------------------------ 7b. Details */

/* The couple's ampersand: wherever their two names stand as a pair (CoupleNamesHelpers.Html, common.js's gild), the
   names stand upright in ink and the "&" between them is the display face's italic in the house gold — the one mark of
   the pair that is ours; initials keep the same rule. */
.amp {
    font-family: var(--display);
    font-style: italic;
    font-weight: var(--weight-display);
    font-variation-settings: 'opsz' var(--display-opsz);
    color: var(--gold);
}

/* The couple's monogram beside the mark, once this browser knows their names (details.js): small, the initials upright
   in ink and only the italic ampersand gold, pressed into the paper — a light edge under the letters and a shadow over them, like a blind embossing. */
.brand__monogram {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    height: 1.7rem;
    /* The header's own gap stands before the hairline, the same air after it. */
    padding-left: 1.4rem;
    border-left: 1px solid rgba(var(--gold-rgb), 0.5);
    font-family: var(--display);
    font-size: 1.12rem;
    /* A smaller optical cut than the headings': at this size the display hairlines would vanish into the paper. */
    font-variation-settings: 'opsz' 14;
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: var(--ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 0 rgba(5, 5, 5, 0.1);
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s var(--slow), transform 1.4s var(--slow);
}

    .brand__monogram.is-in {
        opacity: 1;
        transform: none;
    }

    .brand__monogram .amp {
        font-size: 0.92em;
        font-variation-settings: inherit;
    }

/* The sky of the couple's day, beside its date (details.js over sky.js): one line in the serif, a gold crescent before
   it drawn by a shadow, so no glyph of a face that may lack it is needed. */
.sky-line {
    font: 400 var(--type-body)/1.45 var(--serif);
    color: var(--ink-soft);
    text-wrap: pretty;
}

    .sky-line::before {
        content: '';
        display: inline-block;
        width: 0.62em;
        height: 0.62em;
        margin-right: 0.6em;
        border-radius: 50%;
        box-shadow: inset -0.2em 0.02em 0 0 var(--gold);
        transform: rotate(-18deg);
        vertical-align: 0.02em;
    }

/* At the film's close the line reads as a caption's lede, upright. Its crescent hangs before the words (the crescent's
   0.62em and its 0.6em of air), so a second line starts under the first word, not under the moon. */
.close__sky {
    max-width: 26rem;
    padding-left: 1.22em;
    text-indent: -1.22em;
    font-style: normal;
    font-size: var(--type-lede);
}

/* The page's close above the footer: the house's farewell to the couple, once their names are known — never an example
   guest's words. Until the farewell is written the close takes no room at all. */
.coda:has(> .coda__farewell[hidden]) {
    display: none;
}

.coda {
    position: relative;
    z-index: 30;
    display: grid;
    justify-items: center;
    /* Little air above and between its parts. */
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    /* Little air above the farewell and more under it, before the footer. */
    padding: clamp(0.75rem, 1.5vw, 1.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
    background: var(--ground);
    text-align: center;
}

/* The founder's word to the couple, as a quote in ink with his signature under it — never a gold line on its own,
   which reads as a message from the page. */
.coda__farewell {
    margin: 0;
}

/* Their day in numbers above the farewell: the sky of their evening small, in the house's lines, and one quiet sentence
   of the days left and the sunset. */
/* Centred over the sentence and large enough to read: details.js draws it at its own pixels. */
.coda__farewell-sky {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.1rem;
}

.coda__farewell-day {
    max-width: 30rem;
    margin: 0 0 1.4rem;
    font-family: var(--serif);
    font-size: var(--type-lede);
    line-height: 1.5;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.coda__farewell-words {
    margin: 0;
    font: italic 400 var(--type-heading)/1.3 var(--serif);
    color: var(--ink);
    text-wrap: balance;
}

/* Named as a pair inside the italic sentence, the names stand upright and only the ampersand stays italic. */
.coda__farewell-pair {
    font-style: normal;
}

.coda__farewell-sign {
    margin-top: 0.9rem;
    font: var(--sans-weight) var(--caps-size)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
    /* A phone's two lines of even length, never the house's name alone under the signature. */
    text-wrap: balance;
}

    .coda__farewell-sign a {
        background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
        transition: background-size 0.5s var(--slow);
    }

        .coda__farewell-sign a:hover {
            background-size: 100% 1px;
        }

/* Gold catches the light once (details.js): a narrow sheen crosses a word, a hairline or a gold fill as it comes into
   view. The sheen is one animated position; where the browser cannot animate it, the gold simply stays gold. */
@property --glint {
    syntax: '<percentage>';
    inherits: false;
    initial-value: -30%;
}

@keyframes glint {
    from {
        --glint: -30%;
    }

    to {
        --glint: 130%;
    }
}

.is-glinting {
    animation: glint 1.7s cubic-bezier(0.45, 0.05, 0.3, 1) 1;
}

.glint--text.is-glinting {
    /* On paper a white highlight would erase the letters: the sheen is the foil's own pale gold, never the ground. */
    background-image: linear-gradient(105deg, var(--glint-base) calc(var(--glint) - 16%), #D8C792 calc(var(--glint) - 4%), #EDE0B6 var(--glint), #D8C792 calc(var(--glint) + 4%), var(--glint-base) calc(var(--glint) + 16%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glint--line.is-glinting {
    border-image: linear-gradient(90deg, var(--glint-base) calc(var(--glint) - 14%), #FBF6E6 var(--glint), var(--glint-base) calc(var(--glint) + 14%)) 1;
}

.glint--fill.is-glinting {
    background-image: linear-gradient(105deg, transparent calc(var(--glint) - 14%), rgba(255, 252, 240, 0.7) var(--glint), transparent calc(var(--glint) + 14%)) !important;
}

/* film.js's preview canvas fills its stage, wherever the stage stands (the configurator, the panel's sign-in). */
.exhibit__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* The pointer (details.js): a dot of ink exactly where the mouse is, in place of the system's arrow, and one gold band
   following it a breath behind. Over what can be pressed a second band steps out of it and the two interlock, larger
   and fully gold, slowly turning; a press joins them into one. Over a field the whole steps aside and the system's
   caret returns. */
.has-cursor,
.has-cursor * {
    cursor: none !important;
}

    .has-cursor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), textarea, [contenteditable=""], [contenteditable="true"], iframe),
    .has-cursor canvas[style*="cursor: text"] {
        cursor: text !important;
    }

.cursor,
.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483000;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--slow);
}

.cursor {
    view-transition-name: cursor;
}

.cursor-dot {
    z-index: 2147483001;
    view-transition-name: cursor-dot;
}

    .cursor.is-on,
    .cursor-dot.is-on {
        opacity: 1;
    }

    .cursor-dot::before {
        content: '';
        position: absolute;
        left: -3px;
        top: -3px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ink);
        transition: transform 0.35s var(--slow);
    }

    .cursor-dot.is-over::before {
        transform: scale(0.6);
    }

    .cursor-dot.is-down::before {
        transform: scale(1.5);
    }

/* The pair turns slowly about the dot; each band sits a little off its centre, so turning they drift round each other. */
.cursor__pair {
    position: absolute;
    left: 0;
    top: 0;
    animation: cursor-orbit 9s linear infinite;
}

.cursor__band {
    position: absolute;
    left: -0.75rem;
    top: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid rgba(var(--gold-rgb), 0.85);
    border-radius: 50%;
    transition: transform 0.6s var(--slow), border-color 0.6s var(--slow), background-color 0.6s var(--slow);
}

    /* At rest one band only: the second lies hidden inside the first and steps out over what can be pressed. */
    .cursor__band--a {
        transform: scale(0.9);
    }

    .cursor__band--b {
        border-color: var(--foil-1);
        opacity: 0;
        transform: scale(0.9);
        transition: transform 0.6s var(--slow) 0.05s, border-color 0.6s var(--slow), opacity 0.4s var(--slow);
    }

    .cursor.is-over .cursor__band--b {
        opacity: 1;
    }

    .cursor.is-over .cursor__band--a {
        border-color: var(--gold);
        background-color: rgba(var(--gold-rgb), 0.06);
        transform: translateX(-0.55rem) scale(1.3);
    }

    .cursor.is-over .cursor__band--b {
        border-color: var(--foil-2);
        transform: translateX(0.55rem) scale(1.3);
    }

    .cursor.is-down .cursor__band--a,
    .cursor.is-down .cursor__band--b {
        transform: translateX(0) scale(0.8);
        transition-duration: 0.25s;
        transition-delay: 0s;
    }

@keyframes cursor-orbit {
    to {
        transform: rotate(360deg);
    }
}

/* The whole page is cotton paper: the fibres lie over everything but the film, which has its own grain and is lit as a
   scene (film.js sets is-past-film once the film has gone under the header). Never catches the pointer. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    pointer-events: none;
    background-image: var(--cotton);
    background-size: 220px 220px;
    /* Felt rather than seen: at 0.1 the specks read as a grey film over the paper and over the 3D previews. */
    opacity: 0.05;
}

.has-scene:not(.is-past-film) body::before {
    visibility: hidden;
}

/* Soft page turns: one page gives way to the next in a slow crossfade that drifts a few pixels, as a leaf turned over,
   while the header stays where it is. A browser without cross-document transitions simply loads the page. */
@view-transition {
    navigation: auto;
}

.brand {
    view-transition-name: brand;
}

::view-transition-group(brand),
::view-transition-new(brand),
::view-transition-new(cursor),
::view-transition-new(cursor-dot) {
    animation: none;
}

::view-transition-old(brand),
::view-transition-old(cursor),
::view-transition-old(cursor-dot) {
    display: none;
}

::view-transition-old(root) {
    animation: page-leave 0.38s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
    animation: page-arrive 0.7s var(--slow) 0.08s both;
}

@keyframes page-leave {
    to {
        opacity: 0;
        transform: translateX(-10px);
    }
}

@keyframes page-arrive {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
}

/* Without the links (hidden on a phone) nothing else takes the home header's slack: the monogram keeps to the mark. A
   page's „Menu” takes it there. */
@media (max-width: 699px) {
    .brand--home .brand__monogram {
        margin-right: auto;
    }

    .brand__monogram {
        height: 1.4rem;
        margin-left: 0.2rem;
        padding-left: 0.7rem;
        font-size: 0.9rem;
    }
}

/* On a phone the mark and the seven languages already fill the header: the monogram would push them off the screen. */
@media (max-width: 559px) {
    .brand__monogram {
        display: none;
    }
}

@media print {
    body::before,
    .cursor,
    .cursor-dot {
        display: none;
    }
}

/* ------------------------------------------------------ 8. Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .material__card,
    .material__names,
    .material__amp,
    .link {
        transition: none;
    }

    .brand--home,
    .brand__nav,
    .overture,
    .rite,
    .rite__prompt,
    .rite__go,
    .rite__go > span,
    .close,
    .cue {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .has-scene .film__canvas,
    .cue__line::after {
        animation: none;
    }

    .has-ui [data-reveal],
    .has-ui [data-reveal-stagger] > *,
    .has-ui .making__entry,
    .has-ui .foot > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button::before,
    .field__error[data-ui] {
        transition: none;
    }

    /* No light passes, no ring follows, and a new page simply stands in the old one's place. */
    .is-glinting {
        animation: none;
    }

    .brand__monogram,
    .menu-sheet {
        transition: none;
    }

    .cursor {
        display: none;
    }

    @view-transition {
        navigation: none;
    }
}

@media (forced-colors: active) {
    .material__names,
    .material__amp {
        background: none;
        color: CanvasText;
    }
}
