/* Francestle's homepage: film, products, photography and quiet editorial pauses. */
.page-home {
    --home-section-space: clamp(56px, 7vw, 104px);
}
.page-home .home-campaign .spotlight {
    min-height: clamp(640px, 96svh, 920px);
    padding-block: calc(var(--campaign-header-space, 97px) + 58px) 100px;
}
.page-home .home-campaign .spotlight-intro { width: min(100%, 760px); }
.page-home .home-campaign .spotlight h1 {
    font-size: clamp(60px, 7.1vw, 96px);
    letter-spacing: -.03em;
    line-height: 1.02;
}
.page-home .home-campaign .spotlight h1 em { font-size: .65em; }
.page-home .home-campaign .spotlight-description {
    max-width: 40ch;
    font-size: 16px;
    line-height: 1.8;
    color: #ecdfce;
}
.page-home .home-campaign .spotlight-media::after {
    background: linear-gradient(90deg, #190d09e8, #23140cab 38%, #23140b30 74%, #23140b0d),
        linear-gradient(0deg, #190e0a55, transparent 26%);
}
.page-home .spotlight-business-link { font-size: var(--editorial-type-support, .875rem); color: #dfcaab; }
.page-home .home-campaign .spotlight-scroll { font-size: var(--editorial-type-meta, .75rem); letter-spacing: .06em; }

/* A generous editorial title introduces a shelf of real chocolates, not a tiled catalogue. */
.page-home .home-spotlight-rail { border: 0; background: var(--brand-paper, #faf7f0); }
.page-home .spotlight-rail-inner { padding-block: clamp(48px, 6vw, 88px) 42px; }
.page-home .spotlight-rail-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 24px 32px;
    margin-bottom: 32px;
    padding-bottom: 26px;
    border-bottom: 1px solid #cbb994;
}
.page-home .spotlight-rail-toolbar h2 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(44px, 5.2vw, 76px);
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.page-home .spotlight-rail-filters { position: relative; gap: 0 18px; padding-bottom: 1px; }
.page-home .spotlight-rail-filters button {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #72604d;
    font-size: var(--editorial-type-control, .875rem);
    font-weight: 500;
}
.page-home .spotlight-rail-filters button:is(:hover, [aria-pressed="true"]) {
    border-color: #9a7139;
    background: transparent;
    color: #563b22;
}
.page-home .spotlight-rail-filters button[aria-pressed="true"] { font-weight: 650; }
.page-home .spotlight-rail-filters[data-filter-indicator] button[aria-pressed="true"] { border-bottom-color: transparent; }
.spotlight-filter-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 2px;
    background: #9a7139;
    transform-origin: 0 50%;
    pointer-events: none;
}
.page-home .spotlight-rail-controls button {
    border-color: #d9cbb6;
    border-radius: 50%;
    color: #59402b;
}
.page-home .spotlight-rail-track.product-grid {
    grid-auto-columns: calc((100% - 2 * var(--spotlight-rail-gap)) / 3.15);
}
.page-home .spotlight-rail-track .product-visual {
    border: 0;
    border-radius: 2px;
    background: #f2ece1;
}
.page-home .spotlight-rail-track .product-image-link { background: #f3eee4; }
.page-home .spotlight-rail-track .product-image-link img {
    padding: clamp(16px, 1.6vw, 24px);
    object-fit: contain;
}
.page-home .spotlight-rail-track .product-card-info { padding: 18px 1px 8px; }
.page-home .spotlight-rail-track .product-brand { font-size: var(--editorial-type-meta); line-height: 1.6; letter-spacing: .1em; }
.page-home .spotlight-rail-track .product-card h3 {
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.35;
    letter-spacing: -.015em;
    min-height: 2.7em;
}
.page-home .spotlight-rail-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-color: #e1d8c9;
    font-size: 12px;
}
.page-home .spotlight-rail-footer p { color: #7b6a56; }
.page-home .brand-rail { border-block-color: #e4dacc; background: #f2ece2; }
.page-home .brand-rail-inner { padding-block: 26px; }
.page-home .brand-rail-label { color: #7b6244; font-size: var(--editorial-type-meta, .75rem); }
.page-home .brand-rail-group a { font-size: clamp(22px, 2.2vw, 31px); }

/* The existing photograph stays honest; the image fills one uninterrupted surface. */
body.page-home .home-story {
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "photo ." "photo heading" "photo copy" "photo .";
    column-gap: clamp(34px, 6vw, 90px);
    padding-block: var(--home-section-space);
    border: 0;
    background: transparent;
}
.page-home .home-story-frame {
    position: relative;
    aspect-ratio: 5 / 4;
    padding: 0;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
}
.page-home .home-story-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 36% center;
}
.page-home .home-story-caption {
    margin-top: 0;
    padding-block: 17px 0;
    border: 0;
}
.page-home .home-story-caption > span:first-child { font-size: 25px; }
.page-home .home-story-caption > span:last-child { font-size: var(--editorial-type-meta, .75rem); letter-spacing: .12em; }
.page-home .home-story-heading { margin-bottom: 24px; }
.page-home .home-story-heading h2 {
    max-width: 17ch;
    font-size: clamp(35px, 3.4vw, 49px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.page-home .home-story .home-story-copy > p {
    max-width: 43ch;
    font-size: 16px;
    line-height: 1.85;
}
.page-home .home-story-actions { margin-top: 30px; }
.page-home .home-story-actions .text-link { font-size: var(--editorial-type-support, .875rem); }

/* Flavour chapters: quieter colour fields and clear, readable names. */
.page-home .home-discovery { padding-block: 0 var(--home-section-space); border: 0; }
.page-home .home-discovery .section-heading { margin-bottom: 28px; }
.page-home .home-discovery .section-heading h2 { font-size: clamp(34px, 3.35vw, 48px); }
.page-home .discovery-grid { gap: clamp(16px, 2vw, 28px); }
body.page-home .home-discovery .discovery-card {
    min-height: clamp(270px, 24vw, 330px);
    padding: clamp(23px, 2.5vw, 36px);
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    transform: none;
}
.page-home .discovery-card h3 { max-width: 15ch; font-size: clamp(28px, 2.6vw, 37px); line-height: 1.14; }
.page-home .discovery-card h3 em { font-style: normal; }
.page-home .discovery-card p { font-size: var(--editorial-type-support, .875rem); line-height: 1.65; }
.page-home .discovery-top { font-size: var(--editorial-type-meta, .75rem); letter-spacing: .1em; }
.page-home :is(.cocoa-drawing, .almond-drawing, .durian-drawing) { opacity: .17; }
body.page-home .home-discovery .discovery-dark { background: #39271c; }
body.page-home .home-discovery .discovery-almond { background: #e9d6b0; }
body.page-home .home-discovery .discovery-durian { background: #765033; }

/* Product format, flavour and packaging become part of the story, not a nested card. */
.page-home .home-partner { border: 0; background: #2d1e16; }
.page-home .home-partner-inner { padding-block: var(--home-section-space); gap: clamp(36px, 7vw, 104px); }
.page-home .home-partner-copy h2 { max-width: 18ch; font-size: clamp(35px, 3.5vw, 50px); line-height: 1.15; }
.page-home .home-partner-copy h2 em { color: #e4c995; font-style: normal; }
.page-home .home-partner-copy > p:not(.eyebrow) { max-width: 43ch; font-size: 15px; color: #ded0bd; }
.page-home .home-partner-brief {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #f7eddd;
}
.page-home .home-partner-brief > .eyebrow { color: #c9af87; }
.page-home .home-partner-brief ol { margin-top: 21px; }
.page-home .home-partner-brief li { padding-block: 21px; gap: 20px; border-color: #9d815844; }
.page-home .home-partner-brief li > span { color: #c6a36b; font-size: 25px; }
.page-home .home-partner-brief h3 { font-size: 23px; }
.page-home .home-partner-brief li p { max-width: 43ch; color: #d0bea6; font-size: var(--editorial-type-support, .875rem); }
.page-home .home-partner-brief .home-story-partnership {
    margin-top: 24px;
    min-height: 44px;
    border-bottom-color: #9d815866;
    color: #ebd6b0;
    font-size: var(--editorial-type-support, .875rem);
}
.page-home .home-partner-brief .home-story-partnership:focus-visible { outline-color: #ebd6b0; }

/* Real certification artwork has its own white space and keeps its original shape. */
.page-home .home-documents { padding-block: var(--home-section-space) 48px; }
.page-home .home-documents-copy h2 { font-size: clamp(34px, 3.35vw, 48px); line-height: 1.15; }
.page-home .home-documents-copy h2 em { font-style: normal; color: inherit; }
.page-home .home-documents-copy p:not(.eyebrow) { font-size: 14px; }
.page-home .home-documents-gallery {
    padding: 22px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.page-home .home-documents-gallery::before { content: none; }
.page-home .home-documents-rail-heading { padding-bottom: 13px; border-bottom: 1px solid #e1d8c9; }
.page-home .home-documents-art { background: transparent; }
.page-home .home-documents-art > :is(svg, img) { object-fit: contain; }
.page-home .home-documents-card > span { font-size: var(--editorial-type-meta, .75rem); line-height: 1.55; }

/* One quiet collection sign-off before the shared contact footer. */
.page-home .home-closing {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 0;
    padding: 30px 0 52px;
    border: 0;
    border-top: 1px solid #e1d8c9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.page-home .home-closing::before { content: none; }
.page-home .home-closing .eyebrow { font-size: var(--editorial-type-meta, .75rem); margin-bottom: 10px; }
.page-home .home-closing h2 { font-size: clamp(27px, 2.6vw, 37px); line-height: 1.2; }
.page-home .home-closing h2 em { color: inherit; font-style: normal; }
.page-home .home-closing-links { padding-bottom: 3px; }
.page-home .home-closing-links .text-link { font-size: var(--editorial-type-support, .875rem); min-height: 44px; }

@media (max-width: 980px) {
    .page-home .spotlight-rail-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .page-home .spotlight-rail-toolbar h2 { grid-column: 1 / -1; max-width: none; }
    .page-home .spotlight-rail-filters { order: initial; width: auto; }
    .page-home .spotlight-rail-controls { order: initial; }
    .page-home .spotlight-rail-track.product-grid { grid-auto-columns: calc((100% - var(--spotlight-rail-gap)) / 2.15); }
}
@media (max-width: 780px) {
    .page-home .home-campaign .spotlight { min-height: clamp(620px, 91svh, 800px); padding-block: calc(var(--campaign-header-space, 83px) + 36px) 90px; }
    .page-home .home-campaign .spotlight h1 { font-size: clamp(46px, 10.7vw, 52px); }
    .page-home .home-campaign .spotlight-description { max-width: 35ch; font-size: var(--editorial-type-body); line-height: 1.75; }
    .page-home .home-campaign .spotlight-media::after { background: linear-gradient(90deg, #190d09db, #23140b57), linear-gradient(0deg, #190e0a55, transparent 35%); }
    .page-home .spotlight-rail-inner { padding-top: 40px; }
    .page-home .spotlight-rail-filters { gap: 4px 8px; }
    .page-home .spotlight-rail-filters button {
        min-width: 44px;
        min-height: 44px;
        max-width: 100%;
        padding: 8px 10px;
        font-size: var(--editorial-type-control);
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .page-home .spotlight-rail-track .product-image-link img { padding: 18px; }
    body.page-home .home-story { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "heading" "photo" "copy"; row-gap: 22px; }
    .page-home .home-story-heading { margin: 0; }
    .page-home .home-story-heading h2 { max-width: 20ch; }
    .page-home .home-story-frame { aspect-ratio: 4 / 3; }
    .page-home .home-story-caption { padding-top: 12px; }
    .page-home .home-story-caption > span:first-child { font-size: 22px; }
    .page-home .home-story .home-story-copy > p { max-width: 48ch; font-size: var(--editorial-type-body); line-height: 1.75; }
    .page-home .home-story-actions { margin-top: 18px; }
    .page-home .home-discovery .section-heading > p { max-width: 34ch; }
    .page-home .home-partner-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; }
    .page-home .home-documents { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
    .page-home .home-documents-copy p:not(.eyebrow) { max-width: 48ch; }
    .page-home .home-documents-gallery { padding-block: 5px 16px; }
    .page-home .home-closing { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 26px 38px; }
    .page-home :is(.home-partner-copy > p:not(.eyebrow), .home-documents-copy p:not(.eyebrow),
        .home-discovery .section-heading > p) {
        font-size: var(--editorial-type-body);
        line-height: 1.75;
    }
    .page-home :is(.home-partner-brief li p, .discovery-card p) {
        font-size: var(--editorial-type-support);
        line-height: 1.7;
    }
    .page-home :is(.home-story-caption > span:last-child, .discovery-top,
        .home-documents-card > span, .home-closing .eyebrow, .brand-rail-label) {
        font-size: var(--editorial-type-meta);
        line-height: 1.6;
        letter-spacing: .06em;
    }
    .page-home .home-campaign .spotlight-intro > .eyebrow { font-size: var(--editorial-type-meta); }
    .page-home .spotlight-business-link { font-size: var(--editorial-type-support); }
    .page-home .home-story-actions .text-link { font-size: var(--editorial-type-support); }
}
@media (max-width: 520px) {
    .page-home .spotlight-rail-toolbar { gap: 18px 12px; margin-bottom: 25px; padding-bottom: 22px; }
    .page-home .spotlight-rail-toolbar h2 { grid-column: 1; font-size: clamp(36px, 9vw, 44px); }
    .page-home .spotlight-rail-filters {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
    }
    .page-home .spotlight-rail-filters button { justify-self: start; text-align: start; }
    .page-home .spotlight-rail-controls { grid-column: 2; grid-row: 1; order: initial; }
    .page-home .spotlight-rail-controls button { width: 44px; height: 44px; }
    .page-home .spotlight-rail-track.product-grid { grid-auto-columns: 86%; }
    .page-home .spotlight-rail-track .product-card h3 { font-size: 20px; min-height: 2.7em; -webkit-line-clamp: 2; }
    .page-home .spotlight-rail-footer { align-items: baseline; gap: 10px; }
    .page-home .spotlight-rail-footer p { font-size: var(--editorial-type-meta); }
    .page-home .spotlight-rail-footer .text-link { font-size: var(--editorial-type-control); }
    .page-home .home-story-caption > span:last-child { font-size: var(--editorial-type-meta); }
    body.page-home .home-discovery .discovery-card { min-height: 255px; }
}
@media (prefers-reduced-motion: reduce) {
    .spotlight-filter-indicator { transition: none !important; }
}
