/* The homepage's party additions, from the 3 Oct 2026 test: the hero's two ways in, "The first and the last",
   "The after-movie" and the website on our own laptop. (The LEAN rules serve the test's lean page only.)
   Built on edition.css's own tokens and classes (ed-section dark, ed-eyebrow, ed-h2, ed-lede, ed-reveal). */

/* the hero: a second way in, quieter than the first */
.np-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; }
.np-hero-link,
.np-link {
    display: inline-block;
    font-family: var(--ed-sans);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ed-cream);
    border-bottom: 1px solid rgba(247, 245, 240, 0.45);
    padding: 0.35rem 0;
    transition: border-color 0.3s ease;
}
.np-hero-link { margin-top: 1rem; }
.np-hero-link:hover,
.np-link:hover { border-bottom-color: var(--ed-cream); }
@media (max-width: 640px) {
    .np-hero-ctas { flex-direction: column; gap: 1.5rem; }
    .np-hero-ctas .ed-hero-cta { margin-top: 2.8rem; }
    .np-hero-link { margin-top: 0; }
}

/* the dark run: both sections keep their own breathing room (edition.css drops the top padding of a section that
   follows another) */
.ed-section.dark.np-moments { padding-top: var(--ed-section-y); overflow: hidden; }
.ed-section.dark.np-film { padding-top: clamp(1rem, 3vw, 2rem); }
.np-film + .ed-section { padding-top: var(--ed-section-y); }

/* How it plays out */
.np-head { text-align: center; max-width: 780px; margin: 0 auto clamp(2.8rem, 6vw, 4.8rem); }
.np-head .ed-eyebrow { margin-bottom: 1.6rem; }
.np-lede { color: rgba(247, 245, 240, 0.72) !important; margin-left: auto !important; margin-right: auto !important; }
.np-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem);
}
.np-card { min-width: 0; transition-delay: calc(var(--d, 0) * 90ms); }
.np-screen {
    margin: 0 auto 1.7rem;
    width: min(100%, 268px);
    aspect-ratio: 720 / 1564;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px rgba(247, 245, 240, 0.12), 0 34px 64px -22px rgba(0, 0, 0, 0.75);
}
.np-screen img,
.np-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-num {
    font-family: var(--ed-sans);
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.55);
    margin: 0 0 0.75rem;
    text-align: center;
}
.np-title {
    font-family: var(--ed-serif);
    font-variation-settings: "opsz" 72, "wght" 420, "SOFT" 30;
    font-weight: 400;
    font-size: clamp(1.35rem, 2vw, 1.62rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ed-cream);
    margin: 0 0 0.65rem;
    text-align: center;
    text-wrap: balance;
}
.np-line {
    font-family: var(--ed-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(247, 245, 240, 0.72);
    margin: 0 auto;
    max-width: 30ch;
    text-align: center;
    text-wrap: pretty;
}
.np-foot { text-align: center; margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
@media (max-width: 900px) {
    .np-rail {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 72vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.4rem;
        margin: 0 calc(var(--ed-gutter) * -1);
        padding: 0 var(--ed-gutter) 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .np-rail::-webkit-scrollbar { display: none; }
    .np-card { scroll-snap-align: center; }
    .np-screen { width: 100%; }
    .np-hint { display: block; }
}
.np-hint {
    display: none;
    font-family: var(--ed-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.45);
    text-align: center;
    margin: 1.4rem 0 0;
}
@media (max-width: 900px) { .np-hint { display: block; } }

/* The after-movie */
.np-film-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.np-film-copy .ed-eyebrow { margin-bottom: 1.6rem; }
.np-film-frame {
    margin: 0;
    justify-self: center;
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px rgba(247, 245, 240, 0.12), 0 44px 90px -30px rgba(0, 0, 0, 0.85);
}
.np-film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-sound {
    font-family: var(--ed-sans);
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ed-ink);
    background: var(--ed-cream);
    border: 1px solid var(--ed-cream);
    border-radius: 999px;
    padding: 0.95rem 2rem;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease;
}
.np-sound[aria-pressed="true"] { background: transparent; color: var(--ed-cream); }
.np-film-note {
    font-family: var(--ed-sans);
    font-size: 0.8rem;
    color: rgba(247, 245, 240, 0.5);
    margin: 1.2rem 0 0;
}
@media (max-width: 900px) {
    .np-film-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 0; }
    /* On a phone the film comes straight after the headline, so the line and the picture share one screen; the
       lede, the sound and the note follow underneath. */
    .np-film-copy { display: contents; }
    .np-film-copy > .ed-eyebrow { order: 1; justify-self: center; }
    .np-film-copy > .ed-h2 { order: 2; margin-bottom: 1.6rem; }
    .np-film-frame { order: 3; grid-row: auto; width: min(76vw, 300px); margin: 0 auto 1.8rem; }
    .np-film-copy > .np-lede { order: 4; margin-bottom: 1.5rem; }
    .np-film-copy > .np-sound { order: 5; justify-self: center; }
    .np-film-copy > .np-film-note { order: 6; }
}
.np-sound:focus-visible,
.np-link:focus-visible,
.np-hero-link:focus-visible { outline: 2px solid var(--ed-cream); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    .np-card { transition-delay: 0s; }
}

/* the hero's own link rules win over a plain class: say it at the hero's weight */
.ed-hero .np-hero-link,
.ed-hero .np-hero-link:visited { color: var(--ed-cream); opacity: 1; border-bottom-color: rgba(247, 245, 240, 0.55); }
.ed-hero .np-hero-link:hover { border-bottom-color: var(--ed-cream); }

/* The logo: Alfred's lockup as drawn, sized in edition.css (never redrawn). */

/* The website screens on a laptop of our own: an even black bezel, a deeper chin, a plain base. No notch, no
   logo, no Apple proportions (legal review M16: no Apple device around a website). */
.ed-macs .ed-mac-fig { padding: 0 4%; }
.ed-macs .ed-site-frame {
    position: relative;
    padding: clamp(7px, 1vw, 13px) clamp(7px, 1vw, 13px) clamp(12px, 1.7vw, 22px);
    border-radius: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) clamp(4px, 0.6vw, 8px) clamp(4px, 0.6vw, 8px);
    background: #141210;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: clamp(14px, 2vw, 26px);
}
.ed-macs .ed-site-frame::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 108%;
    height: clamp(9px, 1.35vw, 17px);
    background: linear-gradient(180deg, #d8d4cc 0%, #c3bfb7 45%, #9e9a92 100%);
    border-radius: 2px 2px clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) / 2px 2px clamp(6px, 0.9vw, 12px) clamp(6px, 0.9vw, 12px);
    box-shadow: 0 clamp(8px, 1.4vw, 18px) clamp(14px, 2.4vw, 30px) -10px rgba(26, 23, 18, 0.35);
}

/* The hero's two ways in, as one pair: the same pill, the same height, on one line (stacked on a phone).
   The container carries the space above them, so edition.css's 5rem on the home CTA can't split them. */
.ed-hero .np-hero-ctas { margin-top: 2.6rem; gap: 0.9rem 1rem; }
.ed-hero .np-hero-ctas .ed-hero-cta,
.ed-hero .np-hero-ctas .np-hero-link { margin: 0; }
@media (min-width: 641px) { .ed-hero-closeup .np-hero-ctas { margin-top: 4rem; } }
.ed-hero .np-hero-link,
.ed-hero .np-hero-link:visited {
    border: 1px solid rgba(247, 245, 240, 0.6);
    border-radius: 999px;
    padding: 0.95rem 2rem;
    color: var(--ed-cream);
    background: rgba(14, 10, 6, 0.18);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.ed-hero .np-hero-link:hover { background: var(--ed-cream); color: var(--ed-ink); border-color: var(--ed-cream); }
@media (max-width: 640px) {
    .ed-hero .np-hero-ctas { margin-top: 2.4rem; flex-direction: column; gap: 0.8rem; }
    .ed-hero .np-hero-ctas .ed-hero-cta,
    .ed-hero .np-hero-link { min-width: 15.5rem; text-align: center; padding: 1rem 2.2rem; }
}

/* No "Scroll": the two ways in sit at the foot of the hero, where it was, so the headline and the photograph get
   the middle to themselves. */
.ed-hero > .np-hero-ctas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(2.2rem, 7vh, 4.5rem);
    margin: 0;
    padding: 0 var(--ed-gutter);
    z-index: 3;
    animation: np-rise 1s ease 0.9s both;
}
@media (min-width: 641px) { .ed-hero-closeup > .np-hero-ctas { margin: 0; } }
@media (max-width: 640px) { .ed-hero > .np-hero-ctas { bottom: clamp(1.6rem, 5vh, 3rem); } }
@keyframes np-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ed-hero > .np-hero-ctas { animation: none; } }

/* Revised: the two ways in sit with the headline, smaller, as one group; still no "Scroll". */
.ed-hero > .np-hero-ctas { position: static; animation: none; }
.ed-hero .np-hero-ctas { margin-top: 2.2rem; gap: 0.7rem 0.8rem; }
@media (min-width: 641px) { .ed-hero-closeup .np-hero-ctas { margin-top: 2.4rem; } }
.ed-hero .np-hero-ctas .ed-hero-cta,
.ed-hero .np-hero-ctas .np-hero-link {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    padding: 0.78rem 1.55rem;
}
@media (max-width: 640px) {
    .ed-hero .np-hero-ctas { margin-top: 1.9rem; gap: 0.65rem; }
    .ed-hero .np-hero-ctas .ed-hero-cta,
    .ed-hero .np-hero-ctas .np-hero-link { min-width: 13.5rem; padding: 0.82rem 1.6rem; }
}

/* The app moments in the official iPhone (unaltered Apple bezel, the app's own screens). The film plays inside the
   frame's screen opening: 72,69 to 1278,2691 of 1350 x 2760. */
.np-phone { position: relative; width: min(100%, 268px); margin: 0 auto 1.7rem; aspect-ratio: 1350 / 2760; }
.np-phone > img { display: block; width: 100%; height: auto; }
.np-phone-film video {
    position: absolute;
    left: 5.333%;
    top: 2.5%;
    width: 89.333%;
    height: 95%;
    object-fit: cover;
    border-radius: 16% / 7.4%;
    background: #000;
}
.np-phone-film .np-phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 900px) { .np-phone { width: 100%; } }

/* The website on our own graphite laptop (not Apple's: no logo, no notch); its white is the page's white. */
.ed-macs .np-laptop { display: block; width: 100%; height: auto; max-width: 1080px; margin: 0 auto; }
.ed-macs .ed-mac-fig { padding: 0; }

/* LEAN: the setup pair */
.np-setup { padding-top: var(--ed-section-y) !important; }
.np-head-light .ed-lede { margin-left: auto; margin-right: auto; }
.np-setup-pair {
    display: grid;
    grid-template-columns: minmax(0, 3.6fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: end;
    max-width: 1080px;
    margin: 0 auto;
}
.np-setup-pair figure { margin: 0; text-align: center; }
.np-setup-pair img { display: block; width: 100%; height: auto; }
.np-setup-phone img { max-width: 230px; margin: 0 auto; }
.np-setup-pair figcaption {
    font-family: var(--ed-sans);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ed-mute-small);
    margin-top: 1.1rem;
}
.np-link-dark { color: var(--ed-ink); border-bottom-color: rgba(26, 23, 18, 0.35); }
.np-link-dark:hover { border-bottom-color: var(--ed-ink); }
@media (max-width: 700px) {
    .np-setup-pair { grid-template-columns: minmax(0, 1fr); }
    .np-setup-phone img { max-width: 52vw; }
}

/* The laptop photograph melts into the page: its edges fade, so no light falloff shows as a box.
   (Not the two trip-site laptops: they are cropped close, and a fade would eat their corners.) */
.np-setup-laptop img {
    -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 52%, #000 72%, transparent 100%);
            mask-image: radial-gradient(ellipse 62% 66% at 50% 52%, #000 72%, transparent 100%);
}

/* Hero, v3: the headline stays centred; the two ways in sit in the middle of the space between it and the foot of
   the image (Alfred, 3 Oct 2026). Three rows: equal space above and below the text, the buttons centred in the
   lower one. The video, scrim and grain are absolutely placed, so the grid ignores them. */
.ed-hero.ed-hero-closeup {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
}
.ed-hero.ed-hero-closeup > .ed-hero-inner { grid-row: 2; }
.ed-hero.ed-hero-closeup > .np-hero-ctas {
    grid-row: 3;
    position: static;
    align-self: center;
    margin: 0;
    padding: 0;
    animation: np-rise 1s ease 0.6s both;
}
@media (prefers-reduced-motion: reduce) { .ed-hero.ed-hero-closeup > .np-hero-ctas { animation: none; } }

/* FULL page: the bookends (the opening, the last dinner, the credits), one row of three, the phones a little larger
   than the six of the lean page */
.np-bookends .np-rail { max-width: 1080px; margin-left: auto; margin-right: auto; }
.np-bookends .np-phone { width: min(100%, 300px); }
@media (max-width: 900px) {
    .np-bookends .np-rail { max-width: none; margin: 0 calc(var(--ed-gutter) * -1); }
    .np-bookends .np-phone { width: 100%; }
}

/* The Book (in the works): the copy and the cover on the left, an open spread on the right. The renders carry the
   page's own paper (#f7f5f0) around them, so the book rests on the page with no box. */
.np-book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.np-book-copy { display: flex; flex-direction: column; align-items: flex-start; }
.np-book-copy .ed-lede { max-width: 30rem; }
.np-book-price { margin: 1.7rem 0 0; font-family: var(--ed-serif); font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.005em; color: var(--ed-ink); }
.np-book-note { margin: 0.55rem 0 0; max-width: 26rem; font-size: 0.8rem; line-height: 1.6; letter-spacing: 0.02em; color: rgba(26, 23, 18, 0.55); }
.np-book-cover { margin: 0; justify-self: center; width: min(100%, 440px); }
.np-book-cover img { display: block; width: 100%; height: auto; }
/* the spreads lying open and the book in hand, side by side */
.np-book-pair { list-style: none; padding: 0; margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.np-book-pair li { min-width: 0; }
.np-book-pair img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
    .np-book-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .np-book-cover { width: min(80vw, 380px); }
    .np-book-pair {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 3rem calc(var(--ed-gutter) * -1) 0;
        padding: 0 var(--ed-gutter) 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .np-book-pair::-webkit-scrollbar { display: none; }
    .np-book-pair li { scroll-snap-align: center; }
}


/* The two laptops side by side on a wide screen: the trip site and its album, one row. */
.np-macs-wide { max-width: 1560px; }
@media (min-width: 900px) {
    .np-macs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
    .np-macs-wide { margin-left: calc(var(--ed-gutter) * -0.5); margin-right: calc(var(--ed-gutter) * -0.5); }
    .np-macs-pair .ed-mac-second { margin-top: 0; }
}
/* The app showcase scrolls in about half the distance per step on a wide screen. */
@media (min-width: 760px) {
    .js .ed-show-step { min-height: 52vh; min-height: 52svh; }
    .js .ed-show-step:last-child { min-height: 72vh; min-height: 72svh; }
}
