/* ===========================
   light.ink — Light & Deep, "spring light" (design 4·1)
   Yellow mist with black & white film grain, black ink,
   Antlers Swash Mono headlines over Albert Sans
   =========================== */

@font-face {
    font-family: "Antlers Swash Mono";
    src: url("assets/fonts/Antlers-SwashMono-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Antlers Swash Mono";
    src: url("assets/fonts/Antlers-SwashMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

/* Variable font, latin subset (self-hosted copy of Google Fonts' Albert Sans, OFL) */
@font-face {
    font-family: "Albert Sans";
    src: url("assets/fonts/AlbertSans-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-display: swap;
}

:root {
    --ink: #141414;
    --muted: #4d4a42;
    --hair: rgba(20, 20, 20, 0.16);
    --gold: #c9982b;
    --blue: #cce1ee;      /* mean of grain-blue.png, shown until it loads */
    --sun: #fedc62;       /* mean of grain-yellow.png */
    --sun-end: #fbde68;   /* bottom edge of sky-end.jpg */
    --btn: #ffd940;       /* button yellow, from design 4·2 */
    --btn-hover: #fccb1c;
    --fh: "Antlers Swash Mono", Georgia, serif;
    --fb: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --max: 1140px;
    --gutter: 32px;
    --sec: 104px;
    --title: clamp(48px, 7.2vw, 92px);
}

/* Reset: element selectors only, so a class's margin (like auto centring) always wins */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--fb);
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

/* height: auto, so the width/height attributes only reserve the aspect ratio */
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Page and the two skies ----
   The skies sit behind everything and drift at half the scroll speed
   (see "Scroll-driven drift" at the end). */
/* clip, not hidden: hidden would make .page a scroll container, and the
   scroll-driven animations would follow it instead of the page */
.page {
    position: relative;
    overflow: clip;
}

.page > :not(.sky),
.end > :not(.sky) {
    position: relative;
    z-index: 1;
}

.sky {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: max(100%, 1280px) auto;
    will-change: transform;
}

/* 1920 × 2250 image; fades to pure white at the bottom */
.sky-top {
    height: calc(max(100vw, 1280px) * 1.171875);
    background-image: url("assets/spring/sky-top.jpg");
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.narrow { max-width: 760px; }

/* ---- Film grain bands (formats, Pro card) ----
   The grain moves at 75% of the scroll speed. Its calm twin (same grains,
   a third of the contrast, a little brighter) sits in a window the height of the
   screen, so whatever is in the middle of the screen reads calmly and the full
   grain sparkles toward the top and bottom edges. The motion is in
   "Scroll-driven drift" at the end; without it the calm tile covers everything.
   While the band crosses the screen the grain travels E = 25cqh + 25vh
   (100cqh is the band's height), so both tiles start that far above it. */
.film { position: relative; }

.film > * { position: relative; }

.film > .film-fx {
    position: absolute;
    inset: 0;
    overflow: clip;
    border-radius: inherit;
    container-type: size;
    view-timeline: --film block;
}

.film-grain,
.film-calm-tile {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-25cqh - 25vh);
    height: calc(125cqh + 25vh);
    background: var(--film) 0 0 / 512px 512px repeat;
    will-change: transform;
}

.film-calm {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
}

.film-calm-tile { background-image: var(--film-calm); }

/* ---- Frame lines over the formats band ----
   Like looking through a rangefinder: the scene stays as it is and bright
   corner lines float over it. When the band's bottom reaches the bottom of
   the screen the page stops (the band is sticky inside .pin-fmt, with an
   empty gap above it) and the frame rises from the bottom at scroll speed.
   When it is centred on the screen the page moves on, carrying the frame
   away with it. The motion is in "Scroll-driven drift"; without it there is
   no gap, no stop and no frame.
   Because the band itself is stuck for a while, its grain and calm window
   follow the wrapper's timeline in three phases (in, stopped, out), carried
   by the extra .fmt-in wrappers. */
.pin-fmt {
    --frame-w: min(75vw, 120vh);
    --frame-h: calc(var(--frame-w) * 2 / 3);
    --pin: calc((100vh + var(--frame-h)) / 2);
}

/* Upright screens: the camera turns too */
@media (max-aspect-ratio: 1/1) {
    .pin-fmt {
        --frame-w: min(75vw, 53vh);
        --frame-h: calc(var(--frame-w) * 1.5);
    }
}

.fmt-in {
    position: absolute;
    inset: 0;
}

.film > .frame-stage {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: none;
    height: 100vh;
    overflow: clip;
    pointer-events: none;
}

.frame-run {
    position: absolute;
    top: 100%;
    left: 50%;
    width: var(--frame-w);
    height: var(--frame-h);
    margin-left: calc(var(--frame-w) / -2);
    will-change: transform;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: #fff;
    stroke-width: 11;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 1.5px rgba(20, 20, 20, 0.35));
}

.frame path { vector-effect: non-scaling-stroke; }
.frame-near { stroke-width: 7; stroke-dasharray: 20 16; }

@media (max-aspect-ratio: 1/1) {
    .frame {
        width: var(--frame-h);
        height: var(--frame-w);
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

/* Fine lines: always a hairline, however the drawing is scaled */
.line,
.seam {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.line {
    stroke: var(--ink);
    stroke-width: 1;
    stroke-linejoin: miter;
}
.seam {
    stroke: var(--gold);
    stroke-width: 2.2;
}

/* ---- Nav ---- */
.nav-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
    min-height: 76px;
}

.logo {
    margin-right: auto;
    font-family: var(--fh);
    font-size: 31px;
    text-decoration: none;
}

.tabs {
    display: flex;
    align-self: stretch;
    gap: 26px;
    font-size: 15px;
    font-weight: 500;
}

/* Each tab fills the nav's height, so its top is the top of the page */
.tab {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
}

.tab[aria-current] {
    isolation: isolate;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

/* The active tab hangs in a white drop running down from the top of the
   page: a little lopsided on purpose, with one droplet that got away */
.tab-drop {
    position: absolute;
    top: 0;
    left: -20px;
    z-index: -1;
    width: calc(100% + 40px);
    height: 76px;
    overflow: visible;
    fill: #fff;
    transform-origin: 50% 0;
}

.tab-drop-bulb {
    transform-box: view-box;
    transform-origin: 50% 0;
}
/* Over the other tab, a small bead swells from the top edge */
.tab:not([aria-current])::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 14px;
    height: 9px;
    margin-left: -7px;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: #fff;
    transform: scaleY(0);
    transform-origin: 50% 0;
}

.tab:not([aria-current]):hover::before { transform: scaleY(1); }

@media (prefers-reduced-motion: no-preference) {
    .tab-drop { animation: drip-run 1s ease-in-out 0.3s both; }
    .tab-drop-bead { animation: drip-drop 0.5s ease-out 1.2s both; }
    .tab[aria-current]:hover .tab-drop-bulb { animation: drip-wobble 0.6s ease-in-out; }
    .tab:not([aria-current])::before { transition: transform 0.35s cubic-bezier(0.3, 1.7, 0.5, 1); }
}

/* Runs down, overshoots a little and settles */
@keyframes drip-run {
    0% { transform: scaleY(0.12); }
    55% { transform: scaleY(1.08); }
    78% { transform: scaleY(0.97); }
    100% { transform: none; }
}

/* The droplet slips out last */
@keyframes drip-drop {
    from { opacity: 0; transform: translateY(-5px); }
}

/* A jelly wobble when you point at it */
@keyframes drip-wobble {
    30% { transform: scale(1.06, 0.94); }
    60% { transform: scale(0.97, 1.03); }
}
#dof-wildify{
padding-bottom: 3em
}
/* ---- Hero ---- */
.hero {
    padding: 96px 0 120px;
    text-align: center;
}

.hero-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    border-radius: 28px;
    object-fit: cover;
}

.hero-h {
    margin: 38px auto 40px;
    font-family: var(--fh);
    font-size: clamp(54px, 12.6vw, 164px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 14px;
    font-size: 19px;
}

.hero-media {
    max-width: 740px;
    margin: 48px auto 22px;
}

.hero-media video {
    width: 100%;
    aspect-ratio: 1920 / 888;
    object-fit: cover;
    border-radius: 16px;
}

.hero-note {
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 15px 34px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--btn);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { background: var(--btn-hover); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn-large {
    padding: 17px 40px;
    font-size: 19px;
}

/* ---- Sections ---- */
.sec { padding: var(--sec) 0; }

.sec-title {
    margin: 0 auto 18px;
    font-family: var(--fh);
    font-size: var(--title);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-align: center;
}

.sec-sub {
    max-width: 580px;
    margin: 0 auto 68px;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
}

/* Twigs lying across the page */
.twig {
    display: flex;
    justify-content: center;
    padding: 8px var(--gutter);
}

.twig svg {
    width: 100%;
    max-width: 960px;
    height: auto;
    overflow: visible;
}

/* Intro */
.intro { padding-top: 40px; }

.intro-note {
    margin-bottom: 22px;
    font-family: var(--fh);
    font-size: clamp(38px, 5vw, 48px);
    line-height: 1.1;
}

.intro-text {
    margin-bottom: 20px;
    font-size: 18px;
}

.intro-img {
    max-width: 640px;
    margin: 40px auto 42px;
}

.intro-img img {
    width: 100%;
    border-radius: 12px;
}

/* Features */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
}

.feat { text-align: center; }

.phone {
    max-width: 221px;
    margin: 0 auto 32px;
    overflow: hidden;
    border-radius: 26px;
}

.phone video {
    width: 100%;
    aspect-ratio: 888 / 1920;
    object-fit: cover;
}

.feat h3 {
    margin-bottom: 14px;
    font-family: var(--fh);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
}

.feat p {
    max-width: 320px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.65;
}

/* Depth-of-field preview */
.dof { text-align: center; }
.dof .sec-title { max-width: 980px; }

.dof .phone {
    max-width: 290px;
    margin-bottom: 34px;
}

.dof-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* Formats (and Positive View's colour adjustment): a pale blue band of grain */
.formats,
.color-adjustment {
    --film: url("assets/spring/grain-blue.png");
    --film-calm: url("assets/spring/grain-blue-calm.png");
    background: var(--blue);
}

/* All formats run as one centred paragraph: the family names at heading
   size, the formats themselves small. The wide word spacing only reaches the
   spaces between families (dt and dd reset it), and those spaces hang at line
   ends, so the centring stays true. */
.fmt-run {
    max-width: 980px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 48px;
    text-align: center;
    text-wrap: pretty;
    word-spacing: 22px;
}

.fmt-run > div,
.fmt-run dt,
.fmt-run dd {
    display: inline;
    margin: 0;
    word-spacing: normal;
}

.fmt-run dt {
    margin-right: 9px;
    color: var(--ink);
    font-family: var(--fh);
    font-size: 36px;
    white-space: nowrap;
}

/* Helpful features and personas: plain two-column text */
.extras,
.pers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
    margin: 0 auto;
}

.extras { gap: 40px 72px; }
.pers-grid { gap: 48px 72px; }
.personas .sec-title { margin-bottom: 60px; }

.x strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--fh);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
}

.x p,
.pers p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.64;
}

.pers h3 {
    margin-bottom: 10px;
    font-family: var(--fh);
    font-size: 34px;
    font-weight: 300;
    line-height: 1.15;
}

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

.price {
    padding: 38px 36px;
    border: 1px solid var(--ink);
    border-radius: 26px;
    background: #fff;
    text-align: center;
}

.price-pro {
    --film: url("assets/spring/grain-yellow.png");
    --film-calm: url("assets/spring/grain-yellow-calm.png");
    border: 0;
    background: var(--sun);
}

.price h3 {
    font-family: var(--fh);
    font-size: 32px;
    font-weight: 400;
}

.price-amount {
    display: block;
    margin-top: 2px;
    font-family: var(--fh);
    font-size: clamp(56px, 7vw, 74px);
    font-weight: 300;
    line-height: 1.1;
}

.price-period {
    display: block;
    margin: 4px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.price ul {
    padding: 0;
    list-style: none;
    text-align: left;
}

.price li {
    padding: 11px 0;
    border-top: 1px solid var(--hair);
    font-size: 15px;
    line-height: 1.5;
}

/* FAQ */
.faq .sec-title { margin-bottom: 44px; }

.faq-item { border-bottom: 1px solid rgba(20, 20, 20, 0.18); }

.faq-item summary {
    position: relative;
    padding: 22px 48px 22px 0;
    font-family: var(--fh);
    font-size: clamp(29px, 3vw, 29px);
    line-height: 1.2;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--fb);
    font-size: 26px;
    line-height: 1;
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
    padding-bottom: 24px;
    color: var(--muted);
    font-size: 16.5px;
}

/* ---- Positive View ---- */
.pv-video {
    max-width: 300px;
    margin: 48px auto 22px;
}

.pv-video video {
    width: 100%;
    aspect-ratio: 886 / 1920;
    object-fit: cover;
}

/* Each step hangs from a little twig */
.workflow-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    padding: 12px 0 12px 30px;
    border-top: 1px solid var(--hair);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12'%3E%3Cpath d='M1 8 L9 7.2 L17 1.5 M9 7.2 L13 10.5' fill='none' stroke='%23141414' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") 0 22px no-repeat;
    font-size: 17px;
    line-height: 1.5;
}

/* Screenshot carousel (gallery.js switches the slides) */
.gallery-place { padding-bottom: var(--sec); }

.screenshot-gallery {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 924 / 2000;
    overflow: hidden;
    border-radius: 26px;
    touch-action: pan-y;
}

.screenshot-gallery-viewport,
.screenshot-slide,
.screenshot-slide img {
    width: 100%;
    height: 100%;
}

.screenshot-gallery-viewport { position: relative; }

.screenshot-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.screenshot-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.screenshot-slide img { object-fit: cover; }

.gallery-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 50%;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.gallery-zone-prev { left: 0; justify-content: flex-start; }
.gallery-zone-next { right: 0; justify-content: flex-end; }

.gallery-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding-bottom: 3px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 26px;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-zone:hover .gallery-arrow,
.gallery-zone:focus-visible .gallery-arrow {
    opacity: 1;
    transform: scale(1.06);
}

.gallery-zone:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    margin: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

/* Colour adjustment: long text on the blue band, then the film comparisons */
.color-intro {
    max-width: 680px;
    margin: 0 auto;
}

.color-intro p {
    margin-bottom: 18px;
    font-size: 17px;
}

.film-comparisons {
    display: grid;
    gap: 64px;
    max-width: 900px;
    margin: 64px auto 0;
}

.film-comparison h3 {
    margin-bottom: 20px;
    font-family: var(--fh);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
}

.film-comparison h3 span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--fb);
    font-size: 14px;
}

.film-comparison-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.film-comparison-image img {
    width: 100%;
    border-radius: 12px;
}

.film-comparison-image figcaption {
    display: grid;
    gap: 2px;
    padding-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.film-comparison-image figcaption strong { font-weight: 600; }
.film-comparison-image figcaption span { color: var(--muted); }

.support .sec-sub { margin-bottom: 0; }

/* The second twig lies the other way round */
.twig-flip svg { transform: scaleX(-1); }

/* ---- Autumn (Positive View) ----
   The same grained mist in orange and lilac, and a few cut strips of film
   blowing past in the side margins, as if someone were running after them.
   Each strip drifts at its own share of the scroll speed (--lag, see
   "Scroll-driven drift") and sways in the wind; the sections they sit in are
   their positioning boxes, and z-index -1 keeps them behind the text. */
.theme-autumn {
    --sun-end: #e3d6ef;   /* bottom edge of autumn/sky-end.jpg */
    --btn: #ffb25e;
    --btn-hover: #f99e3d;
}

.theme-autumn .sky-top { background-image: url("assets/autumn/sky-top.jpg"); }
.theme-autumn .sky-end { background-image: url("assets/autumn/sky-end.jpg"); }

.theme-autumn .color-adjustment {
    --film: url("assets/autumn/grain-lilac.png");
    --film-calm: url("assets/autumn/grain-lilac-calm.png");
    background: #e2d7f0;  /* mean of grain-lilac.png */
}

.theme-autumn .workflow,
.theme-autumn .gallery-place { position: relative; }

.strip {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.strip img {
    display: block;
    width: 100%;
    height: auto;
}

/* Six frames of 35mm curling past the headline */
.strip-a { --lag: 0.19; --r0: -3deg; --r1: 2deg; --sway: 9s; top: 120px; left: max(-56px, calc(50% - 720px)); width: 264px; }
/* Three frames of 120, turning over */
.strip-b { --lag: 0.1; --r0: 2deg; --r1: -3deg; --sway: 11s; top: 500px; right: max(-48px, calc(50% - 700px)); width: 200px; }
/* A 4x5 sheet beside the workflow */
.strip-c { --lag: 0.15; --r0: -4deg; --r1: 3deg; --sway: 7s; top: 140px; right: max(10px, calc(50% - 610px)); width: 140px; }
/* A two-frame offcut by the screenshots */
.strip-d { --lag: 0.07; --r0: 5deg; --r1: -2deg; --sway: 8s; top: 30%; left: max(10px, calc(50% - 540px)); width: 120px; }
/* Two frames of colour 120 near the end */
.strip-e { --lag: 0.17; --r0: -2deg; --r1: 4deg; --sway: 10s; top: 30px; left: max(-32px, calc(50% - 620px)); width: 172px; }

/* Small laptops: a little smaller and further out, to clear the text */
@media (max-width: 1180px) {
    .strip-a { left: -72px; width: 224px; }
    .strip-c { right: -16px; width: 120px; }
}

/* Narrower screens: two strips peeking in from the edges, drifting less so
   they stay in the free corners beside the icon and the last title */
@media (max-width: 1000px) {
    .strip-a, .strip-c, .strip-d { display: none; }
    .strip-b { --lag: 0.04; top: 70px; right: -72px; width: 128px; }
    .strip-e { --lag: 0.05; top: 0; left: -56px; width: 136px; }
}

@media (prefers-reduced-motion: no-preference) {
    .strip img { animation: strip-sway var(--sway) ease-in-out infinite alternate; }
}

@keyframes strip-sway {
    from { transform: rotate(var(--r0)); }
    to { transform: translate(6px, -8px) rotate(var(--r1)); }
}

/* ---- The end: last button, newsletter and footer on yellow mist ---- */
/* No z-index here: the end sky drifts up behind <main>, so it must not
   get its own layer on top of it. */
.page > .end {
    position: relative;
    z-index: auto;
}

/* 1920 × 2700 image; white at the top, yellow below. The colour covers
   anything taller than the image. */
.sky-end {
    height: max(100%, calc(max(100vw, 1280px) * 1.40625));
    background-color: var(--sun-end);
    background-image: url("assets/spring/sky-end.jpg");
}

.final {
    padding: 150px 0 60px;
    text-align: center;
}

.final .sec-sub { margin-bottom: 36px; }

.news {
    padding: 90px 0 40px;
    text-align: center;
}

.news .sec-title { font-size: clamp(44px, 5vw, 64px); }
.news .sec-sub { margin-bottom: 28px; }

.news-row {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.news-input {
    flex: 1;
    min-width: 0;
    padding: 13px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.news-note {
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 14px;
}

#mce-responses .response {
    margin: 12px auto 0;
    max-width: 500px;
    font-size: 14px;
}

.footer { padding: 60px 0 56px; }

.footer-in {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px 40px;
}

.footer-logo {
    font-family: var(--fh);
    font-size: 31px;
}

.footer-tag {
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 15px;
}

.footer-copy {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Smaller screens ---- */
@media (max-width: 900px) {
    :root { --sec: 84px; }

    .feat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 64px;
        max-width: 420px;
        margin: 0 auto;
    }

    .extras,
    .pers-grid,
    .price-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
    }
}

@media (max-width: 560px) {
    :root {
        --gutter: 20px;
        --sec: 68px;
    }

    body { font-size: 16px; }

    /* One row even at 320px, with room for the drop beside the next tab */
    .nav-in { column-gap: 16px; }
    .tabs { gap: 22px; font-size: 14px; }
    .tab-drop { left: -16px; width: calc(100% + 32px); }
    .hero { padding: 56px 0 88px; }
    .hero-sub { font-size: 17px; }
    .sec-sub { margin-bottom: 48px; font-size: 16.5px; }
    .intro-text, .dof-text { font-size: 16.5px; }
    .fmt-run { line-height: 42px; word-spacing: 16px; }
    .fmt-run dt { font-size: 30px; }
    .film-comparison-strip { gap: 12px; }
    .film-comparison-image figcaption { font-size: 13px; }
    .price { padding: 32px 24px; }
    .final { padding-top: 110px; }
    .news-row { flex-direction: column; }
}

/* ---- Scroll-driven drift ----
   The skies and the grain move on the browser's scrolling thread, so they stay
   in step with the page even when the main thread is busy. Browsers without
   scroll-driven animations, and people who prefer reduced motion, get the
   still page. The 1ms duration is for Firefox; timeline and range come after
   the shorthand, which would reset them. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Half speed until the top sky has left the screen */
        .sky-top {
            animation: sky-top-drift 1ms linear both;
            animation-timeline: scroll(root);
            animation-range: 0px calc(max(100vw, 1280px) * 2.34375 + 100vh);
        }

        /* Half speed over the last 4000px, coming to rest at the page bottom */
        .sky-end {
            animation: sky-end-drift 1ms linear both;
            animation-timeline: scroll(root);
            animation-range: calc(100% - 4000px) 100%;
        }

        .film-grain {
            animation: film-grain 1ms linear both;
            animation-timeline: --film;
        }

        .film-calm {
            height: 100vh;
            animation: film-window 1ms linear both;
            animation-timeline: --film;
            -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
            mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
        }

        .film-calm-tile {
            animation: film-calm 1ms linear both;
            animation-timeline: --film;
        }

        /* The formats band stops while the frame lines pass. Three phases of
           the wrapper's timeline: the band comes in (its own height), stops
           for --pin, and goes out (one screen). */
        .pin-fmt {
            --in: cover 0% contain calc(100% - var(--pin));
            --stop: contain calc(100% - var(--pin)) contain 100%;
            --out: contain 100% cover 100%;
            view-timeline: --fmt block;
        }

        .pin-gap { height: var(--pin); }

        .pin-fmt > .formats {
            position: sticky;
            bottom: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 100lvh;
        }

        .film > .frame-stage { display: block; }

        .frame-run {
            animation: frame-pass 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--stop);
        }

        /* The band's grain and calm window: the same motion as the Pro card's,
           split around the stop. Wrappers move in, the layers move out. */
        .fmt-grain-in {
            animation: fmt-grain-in 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--in);
        }

        .fmt-win-in {
            animation: fmt-win-in 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--in);
        }

        .fmt-calm-in {
            animation: fmt-calm-in 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--in);
        }

        .formats .film-grain {
            animation: fmt-grain-out 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--out);
        }

        .formats .film-calm {
            animation: fmt-win-out 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--out);
        }

        .formats .film-calm-tile {
            animation: fmt-calm-out 1ms linear both;
            animation-timeline: --fmt;
            animation-range: var(--out);
        }
    }
}

@keyframes sky-top-drift {
    to { transform: translateY(calc(max(100vw, 1280px) * 1.171875 + 50vh)); }
}

@keyframes sky-end-drift {
    from { transform: translateY(-2000px); }
    to { transform: none; }
}

/* While the band crosses the screen (100cqh + 100vh of scrolling) the grain
   falls behind by a quarter of that */
@keyframes film-grain {
    to { transform: translateY(calc(25cqh + 25vh)); }
}

/* The window's top stays at the top of the screen */
@keyframes film-window {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100cqh); }
}

/* Undoes the window's motion and adds the grain's, so both tiles stay registered */
@keyframes film-calm {
    from { transform: translateY(100vh); }
    to { transform: translateY(calc(25vh - 75cqh)); }
}

/* The frame enters at the bottom of the screen and stops in the middle; from
   there the band carries it on up */
@keyframes frame-pass {
    to { transform: translateY(calc(-50vh - 50%)); }
}

/* Formats band, coming in: grain falls behind by a quarter of the band's
   height, the window keeps to the screen top, the calm tile undoes the
   window and adds the grain */
@keyframes fmt-grain-in {
    to { transform: translateY(25cqh); }
}

@keyframes fmt-win-in {
    from { transform: translateY(-100vh); }
    to { transform: translateY(calc(100cqh - 100vh)); }
}

@keyframes fmt-calm-in {
    from { transform: translateY(100vh); }
    to { transform: translateY(calc(100vh - 75cqh)); }
}

/* …and going out, over one screen */
@keyframes fmt-grain-out {
    to { transform: translateY(25vh); }
}

@keyframes fmt-win-out {
    to { transform: translateY(100vh); }
}

@keyframes fmt-calm-out {
    to { transform: translateY(-75vh); }
}

/* Each film strip hangs at its own depth: while it crosses the screen it falls
   behind the page by 2 × --lag of the distance, so it moves at (1 − 2·lag) of
   the scroll speed, sitting at its drawn place when centred on the screen */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .strip {
            animation: strip-drift 1ms linear both;
            animation-timeline: view();
        }
    }
}

@keyframes strip-drift {
    from { transform: translateY(calc((100% + 100vh) * var(--lag) * -1)); }
    to { transform: translateY(calc((100% + 100vh) * var(--lag))); }
}
