/* =========================================================================
   60 Initiatives — values taken from the Figma canvas "For Review"
   (desktop artboard 1920x5642, mobile artboard 402x7191).
   Type scales fluidly between the two artboards with clamp().
   ========================================================================= */

/* ---- Fonts: the Next.js bundles ship Lato/Montserrat/The Seasons but not
   Cormorant Garamond, so declare it here the same way /faq does. ---- */
@font-face{font-family:"Cormorant Garamond";src:url("/Cormorant%20Garamond/CormorantGaramond-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("/Cormorant%20Garamond/CormorantGaramond-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("/Cormorant%20Garamond/CormorantGaramond-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("/Cormorant%20Garamond/CormorantGaramond-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Lato";src:url("/Lato/Lato-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Lato";src:url("/Lato/Lato-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root {
    --ini-cream: #FBF6E9;
    --ini-cream-deep: #EFE2C5;
    --ini-burgundy: #5E2A29;
    --ini-ink: #282526;
    --ini-ink-soft: #3C3C3A;
    --ini-ink-strong: #1A0A09;
    --ini-gold: #C9A257;
    --ini-gold-soft: #C9A96A;
    --ini-gold-light: #FBECC4;
    --ini-gold-dark: #D6A85D;
    --ini-gold-line: #D6A85D;   /* 1px stroke on outlined pills */
    --ini-card-line: rgba(85, 85, 85, .14);   /* Figma: #555555 at 14% */
    --ini-on-dark: #F3F2DD;
    --ini-nav: #F8F1E5;

    --ini-serif: "Cormorant Garamond", "The Seasons", Georgia, serif;
    --ini-sans: "Lato", "Montserrat", sans-serif;

    /* 1920 artboard: content 1616 inside a 152 gutter.
       --ini-shell adds the gutter back on, so the *content* stays 1616
       even though box-sizing is border-box. */
    --ini-max: 1616px;
    --ini-gutter: clamp(20px, 7.92vw, 152px);
    --ini-shell: calc(var(--ini-max) + 2 * var(--ini-gutter));

    /* The index section sits on a wider grid: Figma cards start at x=81 */
    --ini-gutter-wide: clamp(20px, 4.22vw, 81px);

    --ini-header-h: 48px;
}

@media (min-width: 1024px) {
    :root {
        --ini-header-h: 104px;
    }
}

.ini-page {
    margin: 0;
    background: var(--ini-cream);
    color: var(--ini-ink);
    font-family: var(--ini-sans);
    -webkit-font-smoothing: antialiased;
}

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

.ini-page img {
    display: block;
    max-width: 100%;
}

.ini-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================================
   Header — mirrors the homepage header.
   The nav wording, links, type and the Event Details ghost button are the
   homepage's; .btn-brand / .btn-brand-ghost and the --color-* variables come
   from the two Next.js stylesheets this page already loads. The padding rules
   for .aho-details-btn live in an inline <style> in index.html, so they are
   repeated here.

   One deliberate difference: the homepage header is transparent because it
   sits over a dark hero video. This page's hero is cream, so the bar keeps a
   solid background — cream-coloured nav text on a cream hero would be
   unreadable. This is the same solid treatment the homepage header takes on
   small screens.
   ========================================================================= */

.ini-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ini-burgundy);
}

.ini-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 24px);
    height: var(--ini-header-h);
    padding: 0 clamp(20px, 4.167vw, 80px);
    margin: 0 auto;
    max-width: 1920px;
}

.ini-header__logo {
    display: block;
    flex: none;
}

/* Homepage: width clamp(140px, 14vw, 220px) */
.ini-header__logo img {
    width: clamp(140px, 14vw, 220px);
    height: auto;
}

/* Homepage: gap clamp(16px, 2vw, 40px); pushed to the right of the logo */
.ini-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 40px);
    margin-left: auto;
}

/* Homepage: Lato 11px, letter-spacing .1em, uppercase, cream at 85% */
.ini-nav__link {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-cream, #f8f1e5);
    opacity: .85;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .25s ease;
}

.ini-nav__link:hover,
.ini-nav__link:focus-visible {
    opacity: 1;
}

/* Event Details — .btn-brand.btn-brand-ghost supplies the gold outline; this
   is the sizing index.html gives it (1px border + 9px/23px = Register's box) */
.ini-header__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 120px;
    padding: 9px 23px;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.ini-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.ini-header__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--color-cream, #f8f1e5);
    transition: transform .25s ease, opacity .2s ease;
}

/* ---- Small screens: hamburger + logo on the left, Event Details still in the
   bar on the right, nav links in the drop-down (as on the homepage) ---- */
@media (max-width: 1023px) {
    .ini-header__toggle {
        display: flex;
        order: -1;
    }

    .ini-header__cta {
        margin-left: auto;
        min-width: 0;
        padding: 4px 10px;
        font-size: 10px;
        letter-spacing: .06em;
    }

    /* Homepage small-screen bar: 10px of vertical padding around a 28px logo */
    .ini-header__logo img {
        width: auto;
        height: 28px;
    }

    .ini-header__inner {
        gap: 12px;
        padding: 0 16px;
    }

    .ini-nav {
        position: absolute;
        inset: 100% 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 8px clamp(20px, 5vw, 32px) 24px;
        background: var(--ini-burgundy);
        border-top: 1px solid rgba(243, 242, 221, .14);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }

    .ini-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .ini-nav__link {
        padding: 14px 0;
        font-size: 12px;
        border-bottom: 1px solid rgba(243, 242, 221, .1);
    }

    .ini-header__toggle[aria-expanded="true"] .ini-header__bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .ini-header__toggle[aria-expanded="true"] .ini-header__bar:nth-child(2) {
        opacity: 0;
    }

    .ini-header__toggle[aria-expanded="true"] .ini-header__bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}

/* =========================================================================
   Shared pieces — eyebrow, buttons
   ========================================================================= */

/* Figma: 60x1 gold gradient rule + 14px gap + Lato 18 (mobile 13) */
.ini-eyebrow {
    display: flex;
    align-items: center;
    gap: clamp(12px, 0.73vw, 14px);
    margin: 0;
    font-size: clamp(13px, 0.94vw, 18px);
    line-height: 1;
    color: var(--ini-ink);
}

.ini-eyebrow__rule {
    flex: none;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 162, 90, 0), #C9A25A, rgba(201, 162, 90, 0));
}

/* Figma buttons: h54 (mobile 68), padding 18.81/44.46,
   Lato 10.26 / 15.39, letter-spacing 3.2832, #1A0A09 */
.ini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11.97px;
    min-height: 54px;
    padding: 18.81px 44.46px;
    font-size: 10.26px;
    line-height: 15.39px;
    letter-spacing: 3.2832px;
    color: var(--ini-ink-strong);
    text-decoration: none;
    /* Figma: corner radius 854 on a 54px control, i.e. a full pill */
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s ease, transform .2s ease;
}

.ini-btn svg {
    flex: none;
}

.ini-btn--gold {
    background: linear-gradient(90deg, var(--ini-gold-light), var(--ini-gold-dark));
    /* see .ini-pill--active: the 1px transparent border needs the gradient
       sized to the border box, or its far end wraps onto the edge */
    background-origin: border-box;
}

.ini-btn--plain {
    background: #fff;
    border-color: var(--ini-gold-line);
}

.ini-btn:hover,
.ini-btn:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .ini-btn {
        width: 100%;
        min-height: 68px;
        padding: 18px 24px;
    }
}

/* =========================================================================
   Banner — replaces the old built hero. The wording is baked into the
   artwork (2000x462), so it runs full width at its own ratio.
   ========================================================================= */

.ini-banner {
    background: #6b2f1e;
}

.ini-banner picture,
.ini-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================================
   The full initiative index — now the top of the page
   Figma: filter bar 1260x64, card grid 1758 wide = 3 x 544 with 63 gap
   ========================================================================= */

/* The head keeps the homepage's "Love in Motion" arrangement, but the
   section is back on the light Figma gradient, so the type is dark again. */
.ini-index {
    scroll-margin-top: var(--ini-header-h);
    padding: clamp(46px, 5vw, 84px) var(--ini-gutter-wide) clamp(32px, 2.8vw, 52px);
    background: linear-gradient(180deg, var(--ini-cream-deep), var(--ini-cream));
}

.ini-index__head {
    max-width: 1480px;
    margin: 0 auto clamp(30px, 3.2vw, 46px);
    text-align: center;
}

/* Homepage .lim-eyebrow: Montserrat 11 / .35em, gold, a 32px rule either side */
.ini-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 36px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--ini-ink);
}

.ini-kicker__rule {
    flex: none;
    width: 32px;
    height: 1px;
    background: var(--color-gold, #c9a257);
}

.ini-kicker__sep {
    margin: 0 12px;
    font-weight: 400;
    color: rgba(201, 162, 87, .5);
}

/* Figma: 90 / 102 Cormorant (mobile 44 / 48.4) */
/* Homepage .lim-title, at a smaller size. The homepage runs this at
   clamp(46px, 7.4vw, 124px), but there the title sits mid-page with the
   section built around it; here it is the first thing under the header and
   that size overpowered the page. Scaled down to sit closer in weight to
   "The full initiative index" below it. */
.ini-index__title {
    margin: 0 auto clamp(10px, 1.4vw, 16px);
    max-width: 100%;
    padding: .06em 8px;
    font-family: "The Seasons", var(--ini-serif);
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -.015em;
    white-space: nowrap;
    color: var(--ini-burgundy);
}

/* Homepage .lim-char--em, in the deeper gold the Figma cards use, which
   holds up on the light background. */
.ini-index__title em {
    font-style: italic;
    color: #a8834c;
}

/* ---- Reveal band: the homepage's .aho-lim-reveal, injected there after
   .lim-sub. Title, a 30px gold rule, then the gold split line. ---- */
.ini-reveal {
    max-width: 760px;
    margin: clamp(12px, 1.4vw, 18px) auto clamp(36px, 3.4vw, 52px);
    text-align: center;
}

.ini-reveal__title {
    margin: 0 0 10px;
    font-family: "The Seasons", var(--ini-serif);
    font-weight: 400;
    font-size: clamp(24px, 2.9vw, 38px);
    line-height: 1.1;
    letter-spacing: .005em;
    color: var(--ini-burgundy);
}

.ini-reveal__divide {
    width: 30px;
    height: 1px;
    margin: 0 auto 10px;
    border: none;
    background: var(--color-gold, #c9a257);
}

@media (max-width: 640px) {
    .ini-reveal {
        margin-bottom: 32px;
    }

    .ini-kicker__sep {
        margin: 0 9px;
    }
}

/* Homepage .lim-sub */
.ini-index__lead {
    max-width: 640px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.8;
    color: var(--ini-ink);
}

.ini-index__lead em {
    font-family: "The Seasons", var(--ini-serif);
    font-style: italic;
    font-size: 1.05em;
    color: var(--ini-burgundy);
}

/* ---- Filter bar ---- */
.ini-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1260px;
    margin: clamp(22px, 2.2vw, 40px) auto 0;
}

.ini-filters__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Figma: h64, white, Lato 18; active = gold gradient, Lato Bold */
.ini-pill {
    min-height: 44px;
    padding: 12px 26px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--ini-gold-line);
    font-family: inherit;
    font-size: 14px;
    line-height: 18px;
    /* Figma sets textCase UPPER on the three tabs */
    text-transform: uppercase;
    color: var(--ini-ink-strong);
    cursor: pointer;
    transition: filter .2s ease;
}

.ini-pill:hover {
    filter: brightness(.97);
}

.ini-pill--active {
    background: linear-gradient(90deg, var(--ini-gold-light), var(--ini-gold-dark));
    /* the active pill carries no stroke in Figma; keep it transparent so the
       control does not change size when the selection moves */
    border-color: transparent;
    /* A gradient's box is the PADDING box by default while it is painted
       across the BORDER box, and the default `repeat` then wraps a 1px strip
       of the far end of the gradient onto each edge — a dark seam on the left,
       a pale one on the right. At the rounded caps that reads as a squared-off
       edge with the white button showing through. Sizing it to the border box
       leaves nothing to wrap. */
    background-origin: border-box;
    font-weight: 700;
}

/* Search field — same pill as the tabs (Figma: h64, white, 1px gold stroke) */
.ini-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 300px;
    min-width: 0;
    min-height: 44px;
    padding: 12px clamp(16px, 1.3vw, 22px);
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--ini-gold-line);
}

.ini-search__icon {
    flex: none;
    color: var(--ini-ink-strong);
}

.ini-search__input {
    width: 100%;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 18px;
    color: var(--ini-ink-strong);
}

.ini-search__input::placeholder {
    color: var(--ini-ink-strong);
    opacity: 1;
}

.ini-search__input:focus {
    outline: none;
}

/* ---- Category buttons: several can be on at once; none on means all.
   White chips like the tabs and the cards, so they sit on the beige rather
   than fading into it. ---- */
.ini-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1280px;
    margin: clamp(12px, 1.1vw, 18px) auto 0;
}

.ini-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px 7px 15px;
    background: #fff;
    border: 1px solid rgba(201, 162, 87, .55);
    border-radius: 999px;
    font-family: inherit;
    font-size: clamp(11px, 0.72vw, 12.5px);
    line-height: 1.2;
    letter-spacing: .02em;
    color: var(--ini-ink);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ini-cat:hover {
    border-color: var(--ini-gold);
    box-shadow: 0 2px 8px -2px rgba(94, 42, 41, .18);
}

/* the tally sits in its own soft round badge */
.ini-cat__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(201, 162, 87, .16);
    font-size: .85em;
    font-weight: 700;
    color: #8a6b32;
}

.ini-cat--on {
    background: linear-gradient(90deg, var(--ini-gold-light), var(--ini-gold-dark));
    border-color: transparent;
    /* see .ini-pill--active: keeps the gradient off the border edge */
    background-origin: border-box;
    font-weight: 700;
    color: var(--ini-ink-strong);
}

.ini-cat--on .ini-cat__count {
    background: rgba(26, 10, 9, .16);
    color: var(--ini-ink-strong);
}

/* Phones: 13 wrapped chips ate ~270px of the screen, so they run in one
   swipeable row instead. The fades at either end show there is more to reach. */
@media (max-width: 767px) {
    .ini-cats {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 var(--ini-gutter-wide);
        margin-inline: calc(-1 * var(--ini-gutter-wide));
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }

    .ini-cats::-webkit-scrollbar {
        display: none;
    }

    .ini-cat {
        flex: none;
        padding: 6px 7px 6px 13px;
        font-size: 11px;
    }
}

/* ---- Card grid: Figma 3 x 544 with 63px gap ---- */
.ini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3.28vw, 63px);
    max-width: 1758px;
    margin: clamp(24px, 2.4vw, 46px) auto 0;
    padding: 0;
    list-style: none;
}

/* Figma card: 544 wide, white, radius 18 */
.ini-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--ini-card-line);
    overflow: hidden;
}

/* Kind | category badge, right-aligned — Lato 16.5, #282526, padding 20/31 */
.ini-card__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px clamp(20px, 1.61vw, 31px);
    font-size: clamp(13px, 0.86vw, 16.5px);
    line-height: 28px;
    color: var(--ini-ink);
}

/* The slot stays at the Figma 544x312 so every card is the same height, but
   the picture is fitted inside it rather than filling it.

   `cover` fills the slot and discards the overflow, which on these panoramic
   photographs (2.5:1 up to 4.2:1 against the slot's 1.74:1) threw away 30-59%
   of the width — the left and right of the frame, where the subject often is.
   `contain` keeps the whole frame; the cost is empty space above and below,
   which is left the card's own white so it reads as breathing room rather
   than a band. */
.ini-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 544 / 312;
    object-fit: contain;
    background: #fff;
}

.ini-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(20px, 1.35vw, 26px) clamp(20px, 1.61vw, 31px) clamp(24px, 1.61vw, 31px);
}

/* Figma sets textCase UPPER on the category badge */
.ini-card__kind {
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Figma: Cormorant Garamond SemiBold 28, #5E2A29 (mobile 22) */
.ini-card__title {
    margin: 0;
    font-family: var(--ini-serif);
    font-weight: 600;
    font-size: clamp(22px, 1.46vw, 28px);
    line-height: 1.25;
    color: var(--ini-burgundy);
}

/* Key facts, one bullet per point. The card shows the first; the dialog
   shows them all. Figma type: Lato 18 / 30, #3C3C3A (mobile 13 / 20.8). */
.ini-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ini-point {
    position: relative;
    padding-left: 18px;
    font-size: clamp(13px, 0.86vw, 16px);
    line-height: 1.6;
    color: var(--ini-ink-soft);
}

.ini-point + .ini-point {
    margin-top: 10px;
}

/* Sub-heading inside a point list ("Locations:") — no dot, no indent */
.ini-point--head {
    padding-left: 0;
    margin-top: 14px;
    font-weight: 700;
    color: var(--ini-ink);
}

/* li. raises the specificity above the .ini-point::before below, which is
   declared later and would otherwise win and paint a dot over the text. */
li.ini-point--head::before {
    content: none;
}

.ini-point--head + .ini-point {
    margin-top: 8px;
}

.ini-point::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ini-gold);
}

/* "View more >" — its own line below the bullets, in the card title's
   colour, opens the detail dialog */
.ini-view {
    display: block;
    margin: 10px 0 0;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: var(--ini-burgundy);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .2s ease;
}

.ini-view:hover,
.ini-view:focus-visible {
    opacity: .7;
}

/* Figma: Lato Bold 16.5 / 30, #282526, above a hairline rule */
.ini-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(40, 37, 38, .12);
    font-size: clamp(12px, 0.86vw, 16.5px);
    line-height: 1.82;
    font-weight: 700;
    color: var(--ini-ink);
}

.ini-card__sep {
    color: rgba(40, 37, 38, .45);
    font-weight: 400;
}

.ini-card[hidden] {
    display: none;
}

.ini-empty {
    margin: 40px 0 0;
    text-align: center;
    font-size: 16px;
    color: var(--ini-ink-soft);
}

/* ---- Foot of the grid: the next 6 load as this comes into view ---- */
.ini-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: clamp(24px, 2.4vw, 44px);
}

/* The marker initiatives.js watches. It carries height so that on a screen
   where the last row lands exactly at the fold there is still something to
   scroll to, which is what triggers the next page. */
.ini-sentinel {
    width: 100%;
    height: 1px;
}

.ini-sentinel[hidden] {
    display: none;
}

.ini-count {
    margin: 0;
    font-size: clamp(12px, 0.73vw, 14px);
    letter-spacing: .3px;
    color: var(--ini-ink-soft);
}

/* Cards take focus when revealed, so suppress the ring on programmatic focus */
.ini-card:focus {
    outline: none;
}

@media (max-width: 1199px) {
    .ini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Mobile filter bar: Figma h31 pills, Lato Bold 9.72, uppercase ---- */
@media (max-width: 767px) {

    /* scaled down to match, as above */
    .ini-index__title {
        white-space: normal;
        font-size: clamp(30px, 8vw, 52px);
        line-height: 1.05;
    }

    .ini-filters {
        gap: 10px;
    }

    .ini-filters__tabs {
        order: 2;
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }

    .ini-pill {
        flex: 1 1 auto;
        min-height: 31px;
        padding: 8px 14px;
        font-size: 9.72px;
        line-height: 14.58px;
        letter-spacing: .486px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .ini-search {
        order: 1;
        flex: 1 1 100%;
        min-height: 48px;
        padding: 12px 16px;
        gap: 10px;
    }

    .ini-search__input {
        font-size: 14px;
    }

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

/* =========================================================================
   Closing — "A year. A lifetime. A movement."
   Figma: text 852 + image 657x469 @ radius 20, container 1616
   ========================================================================= */

.ini-closing {
    background: var(--ini-cream);
}

.ini-closing__inner {
    display: grid;
    grid-template-columns: minmax(0, 852fr) minmax(0, 657fr);
    align-items: start;
    gap: clamp(32px, 5.57vw, 107px);
    max-width: var(--ini-shell);
    margin: 0 auto;
    padding: clamp(20px, 1.8vw, 32px) var(--ini-gutter) clamp(32px, 2.8vw, 54px);
}

/* Figma: 90 / 102 Cormorant, #5E2A29 */
.ini-closing__title {
    margin: clamp(16px, 1.1vw, 21px) 0 0;
    font-family: var(--ini-serif);
    font-weight: 400;
    font-size: clamp(40px, 4.69vw, 90px);
    line-height: 1.133;
    color: var(--ini-burgundy);
}

/* Figma: Lato 18 / 28, width 669 */
.ini-closing__lead {
    max-width: 669px;
    margin: clamp(18px, 1.56vw, 30px) 0 0;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.556;
    color: var(--ini-ink);
}

.ini-closing__actions {
    margin-top: clamp(28px, 2.86vw, 55px);
}

/* chitrapat.png is 1500x1591 — nearly square, and it keeps its own
   proportions rather than being cropped into the landscape box the Figma
   frame used. It takes the full width of its column; the copy beside it is
   top-aligned, so the picture being taller costs nothing above the text. */
.ini-closing__media img {
    width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 auto;
    border-radius: 20px;
    object-fit: contain;
}

@media (max-width: 899px) {
    .ini-closing__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ini-closing__media {
        order: -1;
    }

    .ini-closing__media img {
        height: auto;
        max-height: 300px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* =========================================================================
   Footer — Figma: #5E2A29, container 1656, Explore + Connect columns
   ========================================================================= */

.ini-footer {
    background: var(--ini-burgundy);
    color: var(--ini-on-dark);
}

.ini-footer__inner {
    max-width: calc(1656px + 2 * var(--ini-gutter));
    margin: 0 auto;
    padding: clamp(48px, 4.27vw, 82px) var(--ini-gutter);
}

.ini-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(32px, 4vw, 64px);
}

.ini-footer__logo img {
    width: clamp(190px, 12.97vw, 249px);
    height: auto;
}

.ini-footer__col {
    min-width: 142px;
}

/* Figma: 12 / 18, letter-spacing 3.6, #C9A96A
   (Figma names Inter here; the site ships Lato, so Lato is used) */
.ini-footer__heading {
    margin: 0 0 20px;
    font-family: var(--ini-sans);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 3.6px;
    color: var(--ini-gold-soft);
}

.ini-footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Figma: Lato 14 / 21, #F3F2DD */
.ini-footer__list a {
    font-size: 14px;
    line-height: 21px;
    color: var(--ini-on-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.ini-footer__list a:hover,
.ini-footer__list a:focus-visible {
    color: #fff;
}

.ini-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(36px, 2.92vw, 56px);
    padding-top: 24px;
    border-top: 1px solid rgba(243, 242, 221, .15);
}

/* Figma: Lato 12 / 18, letter-spacing 0.3, #F3F2DD */
.ini-footer__copy {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: .3px;
    color: var(--ini-on-dark);
}

.ini-footer__legal {
    display: flex;
    gap: 24px;
}

.ini-footer__legal a {
    font-size: 12px;
    line-height: 18px;
    color: var(--ini-on-dark);
    text-decoration: none;
}

.ini-footer__legal a:hover,
.ini-footer__legal a:focus-visible {
    color: #fff;
}

@media (max-width: 767px) {
    .ini-footer__top {
        gap: 32px;
    }

    .ini-footer__col {
        flex: 1 1 140px;
    }

    .ini-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Focus visibility for keyboard users */
.ini-page a:focus-visible,
.ini-page button:focus-visible,
.ini-page input:focus-visible,
.ini-page select:focus-visible {
    outline: 2px solid var(--ini-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .ini-page *,
    .ini-page *::before,
    .ini-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================================
   Detail dialog — the full set of points for one project
   ========================================================================= */

.ini-modal[hidden] {
    display: none;
}

.ini-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 40px);
}

.ini-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 10, 9, .72);
    backdrop-filter: blur(3px);
}

.ini-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: 100%;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--ini-card-line);
    box-shadow: 0 30px 70px -20px rgba(26, 10, 9, .6);
}

.ini-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ini-card-line);
    border-radius: 50%;
    color: var(--ini-ink);
    cursor: pointer;
    transition: background .2s ease;
}

.ini-modal__close:hover,
.ini-modal__close:focus-visible {
    background: #fff;
}

.ini-modal__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 544 / 312;
    /* as on the card: show the whole frame, never a crop of it */
    object-fit: contain;
    background: #fff;
}

.ini-modal__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 2vw, 32px);
}

.ini-modal__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ini-ink);
}

.ini-modal__sep {
    color: rgba(40, 37, 38, .45);
}

.ini-modal__title {
    margin: 0;
    font-family: var(--ini-serif);
    font-weight: 600;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.25;
    color: var(--ini-burgundy);
}

.ini-modal__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(40, 37, 38, .12);
    font-size: clamp(12px, 0.86vw, 15px);
    line-height: 1.82;
    font-weight: 700;
    color: var(--ini-ink);
}

/* Stop the page behind the dialog from scrolling */
body.ini-modal-open {
    overflow: hidden;
}
