/* ===================================
   BOISE STATE IFC - STYLESHEET
   A two-colour print job: photographs in black, colour only in solid
   blocks of Bronco blue (#0033A0) and orange (#D64309).
   =================================== */

:root {
    /* colour roles */
    --paper: #ffffff;
    --surface: #eef1f7;
    --surface-2: #e2e7f1;
    --ink: #0a1633;
    --muted: #46506a;
    --blue: #0033a0;
    --blue-strong: #002a85;
    --orange: #d64309;
    --orange-strong: #b53807;
    --on-colour: #ffffff;
    --on-colour-soft: rgba(255, 255, 255, 0.78);

    /* type: Schibsted Grotesk, five steps */
    --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
    --step-display: clamp(3.25rem, 0.6rem + 7.4vw, 8.75rem);

    /* space */
    --tile-gap: 8px;
    --margin: clamp(1rem, 2.2vw, 2rem);
    --gutter: clamp(1rem, 2vw, 2rem);
    --section: clamp(5rem, 11vw, 11rem);

    /* motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --t-press: 140ms;
    --t-hover: 180ms;
    --t-ui: 240ms;
    --t-reveal: 800ms;

    --z-sheet: 20;
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-body);
    line-height: 1.45;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: var(--on-colour); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
:target { scroll-margin-top: 2rem; }

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-wrap: balance;
}

p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

.skip-link {
    position: absolute;
    left: var(--tile-gap);
    top: -100px;
    z-index: calc(var(--z-sheet) + 1);
    padding: 0.75rem 1rem;
    background: var(--orange);
    color: var(--on-colour);
    font-weight: 600;
}
.skip-link:focus { top: var(--tile-gap); }

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

/* layout primitives: one 12-column grid, one axis at column 6 (about 42%) */
.wrap { padding-inline: var(--margin); }
.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
}
.on-axis { grid-column: 6 / -1; }
.section { padding-block: calc(var(--section) * 0.6) calc(var(--section) * 0.7); }

.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

/* fields of colour */
.field-blue { background: var(--blue); color: var(--on-colour); }
.field-ink { background: var(--ink); color: var(--on-colour); }
.field-surface { background: var(--surface); }

/* ===================================
   BUTTONS & LINKS
   =================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 3.5rem;
    padding: 0 1.6rem;
    background: var(--orange);
    color: var(--on-colour);
    font-weight: 600;
    white-space: nowrap;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-ink { background: var(--ink); }

.link {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link-plain {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover { background-color: var(--orange-strong); }
    .button-ink:hover { background-color: var(--blue); }
    .link:hover { text-decoration-color: currentColor; }
}

/* ===================================
   HEADER: a row of tiles
   =================================== */
.bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--tile-gap);
    height: 64px;
}

.bar-half {
    display: grid;
    gap: var(--tile-gap);
    min-width: 0;
}
.bar-half:first-child { grid-template-columns: 64px 1fr; }
.bar-half:last-child { grid-template-columns: 1fr auto; }

.tile {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--surface);
}

.tile-logo {
    justify-content: center;
    transition: background-color var(--t-hover) ease;
}
.tile-logo img { width: 40px; height: 40px; }

.tile-name {
    padding-inline: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.8vw, 2rem);
    padding-inline: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.35em;
    text-decoration-color: var(--orange);
}

.tile-action {
    padding-inline: 1.5rem;
    background: var(--ink);
    color: var(--on-colour);
    font-weight: 600;
    transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tile-action:active { transform: scale(0.97); }

.tile-menu {
    display: none;
    padding-inline: 1.25rem;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .tile-logo:hover { background: var(--surface-2); }
    .tile-action:hover { background: var(--blue); }
}

/* Register links waiting on the Spring 2027 form (set up in site.js) */
.is-soon {
    position: relative;
    z-index: 5;
    cursor: not-allowed;
    opacity: 0.6;
}
.is-soon:active { transform: none; }
.is-soon::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    padding: 0.5rem 0.75rem;
    background: var(--ink);
    color: var(--on-colour);
    font-size: var(--step-small);
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
/* The header tile sits at the right edge, so its message opens leftward. */
.tile-action.is-soon::after { left: auto; right: 0; transform: translateY(-4px); }
.is-soon:hover::after,
.is-soon:focus-visible::after,
.is-soon.is-tipping::after { opacity: 1; transform: translate(-50%, 0); }
.tile-action.is-soon:hover::after,
.tile-action.is-soon:focus-visible::after,
.tile-action.is-soon.is-tipping::after { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
    .button.is-soon:hover { background-color: var(--orange); }
    .tile-action.is-soon:hover { background: var(--ink); }
}

@media (max-width: 1280px) {
    .bar { grid-template-columns: 56px 1fr auto; height: 56px; }
    .bar-half, .bar nav.tile { display: contents; }
    .tile-name { display: none; }
    .tile-menu { justify-content: flex-start; }
    .tile-menu { display: flex; }
    .tile-logo img { width: 34px; height: 34px; }
    .tile-action, .tile-menu { padding-inline: 1rem; }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: var(--z-sheet);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0.25rem;
        padding: 6rem var(--margin) 3rem;
        background: var(--blue);
        color: var(--on-colour);
        font-size: var(--step-head);
        font-weight: 800;
        letter-spacing: -0.04em;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
    }
    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
    }
    .nav-links a { padding-block: 0.1em; }
    .nav-close {
        position: absolute;
        top: var(--tile-gap);
        right: var(--tile-gap);
        min-height: 56px;
        padding-inline: 1rem;
        font-size: var(--step-body);
        font-weight: 600;
        letter-spacing: -0.01em;
    }
}

@media (min-width: 1281px) {
    .nav-close-item { display: none; }
}

/* ===================================
   HOME: the two-by-two board
   =================================== */
.board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: var(--tile-gap);
    min-height: 100svh;
    padding: var(--tile-gap);
}
.board > .bar { grid-column: 1 / -1; }

.board-name {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.25rem, 2vw, 2rem);
    background: var(--surface);
}
.board-name h1 {
    font-size: var(--step-display);
    line-height: 0.88;
    letter-spacing: -0.05em;
}
.board-name p { max-width: 30ch; }

.board-photo {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
}
.board-photo img,
.mosaic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

.board-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tile-gap);
}

.board-statement {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.25rem, 2vw, 2rem);
    font-size: var(--step-lead);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.board-statement .small { font-weight: 600; letter-spacing: 0; }

a.board-statement { transition: background-color var(--t-hover) ease; }
a.board-statement .go { transition: transform var(--t-hover) var(--ease-out); display: inline-block; }
.field-orange { background: var(--orange); color: var(--on-colour); }

@media (hover: hover) and (pointer: fine) {
    a.field-orange:hover { background: var(--orange-strong); }
    a.board-statement:hover .go { transform: translateX(6px); }
}

@media (max-width: 900px) {
    .board {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 6px;
        padding: 6px;
        min-height: 0;
    }
    .board-name { min-height: 34svh; justify-content: flex-end; }
    .board-name h1 { font-size: 16.5vw; }
    .board-photo { aspect-ratio: 4 / 3; }
    .board-photo-second { display: none; }
    .board-pair { gap: 6px; }
    .board-statement { aspect-ratio: 1; font-size: var(--step-body); padding: 1rem; }
}

/* ===================================
   INNER PAGES: masthead mosaic + title on the axis
   =================================== */
.masthead { padding: var(--tile-gap); }

.mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(260px, 42svh, 520px);
    margin-top: var(--tile-gap);
}
.mosaic > * { position: relative; overflow: hidden; }
.mosaic > :nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.mosaic > :nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.mosaic > :nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.mosaic > :nth-child(4) { grid-area: 2 / 2 / 3 / 4; }
.mosaic > :nth-child(5) { grid-area: 2 / 4 / 3 / 5; }
.mosaic > :nth-child(6) { grid-area: 1 / 4 / 2 / 5; }
.mosaic .m-blue { background: var(--blue); }
.mosaic .m-orange { background: var(--orange); }
.mosaic .m-ink { background: var(--ink); }
.mosaic .m-surface { background: var(--surface-2); }
/* headshots: keep the crop on the face in short, wide cells */
.mosaic .m-face img { object-position: 50% 22%; }


.title-block {
    padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
    row-gap: 1.5rem;
}
.title-block h1 {
    grid-column: 6 / -1;
    font-size: var(--step-display);
    line-height: 0.88;
    letter-spacing: -0.05em;
}
.title-block .lead { grid-column: 6 / 12; max-width: 44ch; }
.title-block-plain { padding-top: clamp(4rem, 10vw, 9rem); }

@media (max-width: 900px) {
    .title-block h1, .title-block .lead, .on-axis { grid-column: 1 / -1; }
    .mosaic { grid-template-columns: 1.4fr 1fr 1fr; height: 34svh; }
    .mosaic > :nth-child(n+5) { display: none; }
}

/* ===================================
   HOME: intro, lead line over four columns
   =================================== */
.intro { padding-block: clamp(4rem, 7vw, 6rem); }
.intro .lead {
    grid-column: 1 / -1;
    max-width: 48ch;
    font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.intro-cols {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem var(--gutter);
    margin-top: clamp(3rem, 5vw, 4.5rem);
    align-items: start;
}
.intro-cols p { max-width: 36ch; margin-top: 0; }
.intro-cols strong { font-weight: 600; }

@media (max-width: 1000px) {
    .intro-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .intro-cols { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===================================
   HOME: chapter index with preview (the live thing)
   =================================== */
.chapters { padding-block: var(--section); }
.chapters-head {
    align-items: end;
    row-gap: 1.25rem;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.chapters-head h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.chapters-head p { grid-column: 6 / 12; color: var(--on-colour-soft); }

.index { align-items: start; }
.index-list { grid-column: 1 / 7; margin-inline: -0.75rem; }

.index-row {
    display: grid;
    grid-template-columns: 5.5em 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0.75rem;
    font-size: var(--step-lead);
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: opacity var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.index-row .letters { font-weight: 800; letter-spacing: 0.02em; }
.index-row .chapter { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--on-colour-soft); }
.index-row[aria-current="true"] { background: var(--orange); color: var(--on-colour); }
.index-row[aria-current="true"] .chapter { color: var(--on-colour); }

@media (hover: hover) and (pointer: fine) {
    .index-list:hover .index-row:not(:hover) { opacity: 0.45; }
    .index-row:hover { transform: translateX(8px); }
}

.preview {
    grid-column: 8 / -1;
    position: sticky;
    top: 2rem;
}
.preview-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--blue);
}
.preview-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity var(--t-ui) ease, transform 600ms var(--ease-soft);
}
.preview-frame img.is-on { opacity: 1; transform: none; }

.preview-text { padding-top: 1.25rem; }
.preview-text h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.preview-text p { margin-top: 0.4rem; color: var(--on-colour-soft); }
.preview-text a.phone { color: var(--on-colour); font-weight: 600; }
.preview-more { margin-top: 1.5rem; }

@media (max-width: 900px) {
    .chapters-head h2, .chapters-head p { grid-column: 1 / -1; }
    .preview {
        grid-column: 1 / -1;
        grid-row: 1;
        top: 0;
        z-index: 2;
        margin-inline: calc(var(--margin) * -1);
        padding: 6px var(--margin) 1rem;
        background: var(--ink);
    }
    .preview-frame { aspect-ratio: 16 / 9; }
    .preview-text { padding-top: 0.75rem; }
    .preview-more { display: none; }
    .index-list { grid-column: 1 / -1; margin-inline: calc(var(--margin) * -1); }
    .index-row { padding-inline: var(--margin); }
    .index-row { grid-template-columns: 4.2em 1fr; font-size: var(--step-body); padding-block: 0.85rem; }
    .index-row .chapter { display: none; }
}

/* ===================================
   HOME: how to join, lines that step across
   =================================== */
.steps { padding-block: var(--section); }
.step { margin-top: 3.5rem; }
.step:first-child { margin-top: 0; }
.step h2, .step h3 {
    font-size: clamp(2.25rem, 1rem + 3.6vw, 4.75rem);
    line-height: 1;
    letter-spacing: -0.045em;
}
.step p { margin-top: 0.75rem; max-width: 34ch; color: var(--muted); }
.step:nth-child(1) { grid-column: 1 / -1; }
.step:nth-child(2) { grid-column: 3 / -1; }
.step:nth-child(3) { grid-column: 5 / -1; }
.step:nth-child(4) { grid-column: 7 / -1; }
.step:nth-child(4) h3 { color: var(--orange); }

@media (max-width: 700px) {
    .step { grid-column: 1 / -1 !important; }
    .step:nth-child(2) { padding-left: 6vw; }
    .step:nth-child(3) { padding-left: 12vw; }
    .step:nth-child(4) { padding-left: 18vw; }
    .step { margin-top: 2.5rem; }
    .step h2, .step h3 { font-size: 8.4vw; }
}

/* ===================================
   HOME: about, wide photo + colour tile + facts
   =================================== */
.about { padding-block: var(--section); }
.about h2 { grid-column: 1 / -1; font-size: var(--step-head); }
.about .lead { grid-column: 1 / 8; margin-top: 1.5rem; max-width: 40ch; }

.about-photo {
    grid-column: 1 / 9;
    position: relative;
    margin-top: clamp(3rem, 5vw, 4.5rem);
}
.about-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.about-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}
.about-note {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 50%);
    padding: 1.25rem;
    background: var(--paper);
    font-size: var(--step-body);
}

.about-side {
    grid-column: 9 / -1;
    margin-top: clamp(3rem, 5vw, 4.5rem);
}
.idaho {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: var(--blue);
}
.idaho svg { width: 46%; height: auto; }
.idaho .state { fill: var(--on-colour); }
.idaho .dot { fill: var(--orange); }

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem var(--gutter);
    margin-top: 1.5rem;
}
.facts dt { font-size: var(--step-small); color: var(--muted); font-weight: 600; }
.facts dd { font-weight: 600; }

@media (max-width: 900px) {
    .about .lead, .about-photo, .about-side { grid-column: 1 / -1; }
    .about-frame { aspect-ratio: 4 / 3; }
    .about-note { position: static; width: auto; padding: 1.25rem 0 0; background: none; }
    .about-side { margin-top: 2.5rem; }
    .idaho { aspect-ratio: 3 / 2; }
    .idaho svg { width: auto; height: 78%; }
}

/* ===================================
   DRAG ROW (board portraits on home)
   =================================== */
.row-section { padding-block: var(--section) calc(var(--section) * 0.8); }
.row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-inline: var(--margin);
    margin-bottom: 2rem;
}
.row-head h2 { font-size: var(--step-head); }

.drag-row {
    display: flex;
    gap: 12px;
    padding-inline: 6vw;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 6vw;
    scrollbar-width: none;
    cursor: grab;
}
.drag-row::-webkit-scrollbar { display: none; }
.drag-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.drag-row.is-dragging a { pointer-events: none; }

.portrait {
    flex: 0 0 auto;
    width: clamp(220px, 21vw, 320px);
    scroll-snap-align: start;
}
.portrait-frame {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-2);
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter var(--t-ui) ease, transform 600ms var(--ease-soft);
    -webkit-user-drag: none;
    user-select: none;
}
.portrait h3 { margin-top: 1rem; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.portrait p { margin-top: 0.3rem; color: var(--muted); font-size: var(--step-small); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
    .portrait:hover img { filter: none; transform: scale(1.02); }
}

@media (max-width: 700px) {
    .drag-row { gap: 8px; padding-inline: 20px; scroll-padding-inline: 20px; }
    .portrait { width: 64vw; }
}

/* ===================================
   CLOSING STATEMENT (inverted field)
   =================================== */
.close {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    min-height: 68svh;
    padding: clamp(4rem, 8vw, 7rem) var(--margin) clamp(2rem, 3vw, 2.5rem);
}
.close h2 {
    font-size: var(--step-display);
    line-height: 0.88;
    letter-spacing: -0.05em;
    max-width: 11ch;
}
.close-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}
.close-foot p { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }

@media (max-width: 700px) {
    .close { min-height: 64svh; }
    .close h2 { font-size: 15vw; }
    .close-foot { flex-direction: column; align-items: stretch; }
    .close-foot p { font-size: var(--step-body); }
}

/* ===================================
   FOOTER: name first, places under it
   =================================== */
.footer {
    padding: clamp(5.5rem, 10vw, 8rem) var(--margin) 2rem;
    background: var(--ink);
    color: var(--on-colour);
}
.footer-name {
    font-size: clamp(3rem, 1rem + 9.6vw, 11rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.055em;
    white-space: nowrap;
}
.footer-main {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    row-gap: 3rem;
}
.footer-places { grid-column: 1 / 6; }
.footer-places li + li { margin-top: 0.35rem; }
.footer-places a, .footer-places span {
    font-size: var(--step-lead);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.footer-places a {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.22em;
    transition: text-decoration-color var(--t-hover) ease;
}
.footer-places a:hover { text-decoration-color: var(--on-colour); }
.footer-places span { color: var(--on-colour-soft); display: block; line-height: 1.3; }

.footer-links {
    grid-column: 7 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem var(--gutter);
    font-size: var(--step-small);
}
.footer-links h2 {
    font-size: var(--step-small);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
    color: var(--on-colour-soft);
    margin-bottom: 0.75rem;
}
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { font-weight: 600; }

.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(4rem, 7vw, 6rem);
    font-size: var(--step-small);
    color: var(--on-colour-soft);
}

@media (max-width: 900px) {
    .footer-places, .footer-links { grid-column: 1 / -1; }
    .footer-name { font-size: 13.4vw; }
}
@media (max-width: 560px) {
    .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ===================================
   FRATERNITIES: directory
   =================================== */
.directory-note { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.directory-note p { grid-column: 6 / 12; }

.directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 4.5rem) var(--gutter);
    padding-bottom: var(--section);
}
.chapter-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-2);
}
.chapter-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter var(--t-ui) ease, transform 600ms var(--ease-soft);
}
.chapter-letters {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0.5rem 0.9rem;
    background: var(--blue);
    color: var(--on-colour);
    font-size: var(--step-lead);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.chapter h2 { margin-top: 1.25rem; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.chapter .chapter-sub { margin-top: 0.25rem; color: var(--muted); }
.chapter-contact { margin-top: 1rem; }
.chapter-contact dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.chapter-contact dd { font-weight: 600; }
.chapter-contact dd + dt { margin-top: 0.5rem; }

@media (hover: hover) and (pointer: fine) {
    .chapter:hover .chapter-photo img { filter: none; transform: scale(1.02); }
}

@media (max-width: 1000px) {
    .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .directory-note p { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .directory { grid-template-columns: 1fr; }
}

/* ===================================
   ROWS FOR LONG COPY (why join, what we do)
   =================================== */
.rows { padding-block: var(--section); }
.rows > .grid > h2 {
    grid-column: 6 / -1;
    font-size: var(--step-head);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rows-list { grid-column: 1 / -1; }
.rows-item { padding-block: 1.75rem; }
.rows-item:nth-child(odd) { background: var(--surface-2); }
.rows-item h3 {
    grid-column: 1 / 6;
    font-size: var(--step-lead);
    letter-spacing: -0.03em;
    line-height: 1.1;
    padding-left: clamp(1rem, 2vw, 1.5rem);
}
.rows-item p { grid-column: 6 / 12; }

@media (max-width: 800px) {
    .rows > .grid > h2 { grid-column: 1 / -1; }
    .rows-item h3, .rows-item p { grid-column: 1 / -1; padding-inline: 1rem; }
    .rows-item p { margin-top: 0.5rem; }
}

/* ===================================
   EXECUTIVE BOARD
   =================================== */
.people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 4.5rem) var(--gutter);
    padding-bottom: var(--section);
}
.person .portrait-frame { aspect-ratio: 4 / 5; }
.person-role {
    margin-top: 1.1rem;
    font-size: var(--step-small);
    font-weight: 600;
    color: var(--orange-strong);
}
.person h2 { margin-top: 0.3rem; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.person p { margin-top: 0.35rem; }
.person .chapter-name { font-weight: 600; }
.person .meta { color: var(--muted); font-size: var(--step-small); margin-top: 0.15rem; }
.person .email {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: var(--step-small);
    font-weight: 600;
    color: var(--blue);
    overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
    .person:hover .portrait-frame img { filter: none; transform: scale(1.02); }
}

@media (max-width: 1100px) {
    .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .people { grid-template-columns: 1fr; }
}

/* ===================================
   RECRUITMENT
   =================================== */
.recruit-intro { padding-bottom: var(--section); align-items: center; row-gap: 3rem; }
.recruit-intro .feed { grid-column: 1 / 5; grid-row: 1; width: 100%; max-width: 28rem; }
.recruit-intro .copy { grid-column: 6 / 12; }
.recruit-intro h2 { font-size: var(--step-head); margin-bottom: 1.5rem; }
.recruit-intro .copy > p + p { margin-top: 1rem; }
.recruit-intro .button { margin-top: 2.5rem; }

/* quick facts beside the feed */
.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tile-gap);
    margin-top: 2.5rem;
}
.facts > div {
    padding: 1.25rem clamp(1rem, 2vw, 1.5rem);
    background: var(--surface);
    border-top: 3px solid var(--blue);
}
.facts > div:nth-child(2), .facts > div:nth-child(3) { background: var(--surface-2); }
.facts dt { font-weight: 800; letter-spacing: -0.02em; }
.facts dd { margin-top: 0.3rem; font-size: var(--step-small); color: var(--muted); }

.feed-frame {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--surface);
}
.instagram-slider-container { position: relative; width: 100%; height: 100%; }
.instagram-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    opacity: 0;
    transition: opacity 500ms ease;
}
.instagram-slide.active { opacity: 1; z-index: 1; }
.instagram-slide blockquote,
.instagram-slide iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}
/* live feed: posts drawn as plain photographs, at Instagram's 4:5 portrait shape so nothing is cropped */
.feed-frame.is-native { height: auto; aspect-ratio: 4 / 5; }
.feed-frame.is-native .instagram-slide { padding: 0; }
.feed-frame.is-native .instagram-slide a { display: block; width: 100%; height: 100%; }
.feed-frame.is-native .instagram-slide img { width: 100%; height: 100%; object-fit: contain; }
.feed-caption {
    margin-top: 0.75rem;
    min-height: 1.45em;
    font-size: var(--step-small);
    font-weight: 600;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-caption:empty { display: none; }

.feed-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: var(--tile-gap);
}
.feed-buttons { display: flex; gap: var(--tile-gap); }
.feed-buttons button {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--ink);
    color: var(--on-colour);
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.feed-buttons button:active { transform: scale(0.94); }
.feed-count { font-weight: 600; }
.feed-follow { margin-top: 1rem; font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
    .feed-buttons button:hover { background: var(--blue); }
}

/* banded agenda */
.agenda { padding-block: var(--section); }
.agenda-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.agenda-head h2 { font-size: var(--step-head); }
.agenda-head h2 span { display: block; }
.agenda-head h2 .soft { color: var(--muted); }

.bands li {
    display: grid;
    grid-template-columns: minmax(10rem, 3fr) 9fr;
    gap: 0.5rem var(--gutter);
    align-items: baseline;
    padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
    background: var(--surface);
}
.bands li:nth-child(even) { background: var(--surface-2); }
.bands li + li { margin-top: 4px; }
.bands time { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bands h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.bands p { margin-top: 0.3rem; color: var(--muted); }
.bands li:last-child time { color: var(--orange-strong); }

@media (max-width: 900px) {
    .recruit-intro .feed, .recruit-intro .copy { grid-column: 1 / -1; }
    .recruit-intro .copy { grid-row: 1; }
    .recruit-intro .feed { grid-row: 2; justify-self: center; }
    .feed-frame { height: 480px; }
}
@media (max-width: 700px) {
    .facts { grid-template-columns: 1fr; }
    .agenda-head { flex-direction: column; align-items: stretch; }
    .bands li { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
}

/* ===================================
   CONTACT
   =================================== */
.contact { padding-bottom: var(--section); align-items: start; row-gap: 3.5rem; }
.contact-facts { grid-column: 1 / 5; }
.contact-facts dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.contact-facts dd { font-weight: 600; }
.contact-facts dd + dt { margin-top: 1.5rem; }
.contact-facts a { color: var(--blue); overflow-wrap: anywhere; }

.contact-form-wrap { grid-column: 6 / -1; }
.contact-form-wrap h2 { font-size: var(--step-head); margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    font-size: max(1rem, var(--step-body));
    transition: background-color var(--t-hover) ease;
    appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a1633' stroke-width='2.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.75rem;
}
.form-group textarea { min-height: 10rem; resize: vertical; }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 0;
    background-color: var(--paper);
}
.contact-form .button { width: 100%; border: 0; font-size: var(--step-body); }
.contact-form .button:disabled { background: var(--muted); cursor: progress; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-ok { color: var(--blue); }
.form-status.is-error { color: var(--orange-strong); }
.form-status a { text-decoration: underline; }

.who { padding-block: var(--section); }
.who > .grid > h2 { grid-column: 6 / -1; font-size: var(--step-head); margin-bottom: clamp(2rem, 4vw, 3rem); }
.who-list { grid-column: 1 / -1; }
.who-list li {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 0.25rem;
    align-items: baseline;
    padding-block: 1.25rem;
}
.who-list li:nth-child(odd) { background: var(--surface-2); }
.who-list .who-role { grid-column: 1 / 6; padding-left: clamp(1rem, 2vw, 1.5rem); font-weight: 600; }
.who-list .who-role span { display: block; font-size: var(--step-small); color: var(--muted); }
.who-list .who-for { grid-column: 6 / 9; }
.who-list a { grid-column: 9 / -1; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; padding-right: 1rem; }

.map {
    height: clamp(320px, 50svh, 520px);
    background: var(--surface-2);
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

@media (max-width: 900px) {
    .contact-facts, .contact-form-wrap { grid-column: 1 / -1; }
    .contact { row-gap: 5rem; }
    .who > .grid > h2 { grid-column: 1 / -1; }
    .who-list li > * { grid-column: 1 / -1 !important; padding-inline: 1rem !important; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===================================
   HEALTH & SAFETY
   =================================== */
.urgent {
    padding: clamp(3rem, 6vw, 5rem) var(--margin);
}
.urgent h2 {
    font-size: var(--step-head);
    max-width: 16ch;
}
.urgent p {
    margin-top: 1.25rem;
    font-size: var(--step-lead);
    line-height: 1.3;
    max-width: 40ch;
}

.resources { padding-block: clamp(4rem, 8vw, 7rem); }
.resources h2 {
    grid-column: 1 / 6;
    font-size: var(--step-lead);
    letter-spacing: -0.03em;
    line-height: 1.1;
    padding-top: 1.25rem;
}
.res-list { grid-column: 6 / -1; }
.res-list li + li { margin-top: 4px; }
.res-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1.5rem;
    row-gap: 0.25rem;
    padding: 1.25rem clamp(1rem, 2vw, 1.5rem);
    background: var(--surface);
    transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.field-surface .res-list a { background: var(--paper); }
.res-name { font-weight: 600; font-size: var(--step-body); }
.res-note { grid-column: 1; color: var(--muted); max-width: 60ch; }
.res-go {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: var(--step-lead);
    transition: transform var(--t-hover) var(--ease-out);
}
.res-list a:active { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
    .res-list a:hover { background: var(--blue); color: var(--on-colour); }
    .res-list a:hover .res-note { color: var(--on-colour-soft); }
    .res-list a:hover .res-go { transform: translateX(4px); }
}

@media (max-width: 900px) {
    .resources h2, .res-list { grid-column: 1 / -1; }
    .resources h2 { padding-top: 0; margin-bottom: 1.5rem; }
}

/* ===================================
   MOTION (content stays visible without JavaScript)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .js [data-rise] {
        opacity: 0;
        transform: translateY(18px);
        animation: rise var(--t-reveal) var(--ease-out) forwards;
        animation-delay: calc(var(--i, 0) * 90ms + 120ms);
    }

    .js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
        transition-delay: calc(var(--i, 0) * 75ms);
    }
    .js [data-reveal].is-in { opacity: 1; transform: none; }

    /* chapter and board cards: quicker, so photos and details are there as you reach them */
    .js .chapter[data-reveal], .js .person[data-reveal] {
        transform: translateY(12px);
        transition-duration: 400ms, 500ms;
        transition-delay: calc(var(--i, 0) * 40ms);
    }
    .js .chapter[data-reveal].is-in, .js .person[data-reveal].is-in { transform: none; }

    /* the signature move: a photograph opens like a shutter */
    .js .shutter {
        clip-path: inset(0 0 100% 0);
        animation: shutter 1100ms var(--ease-in-out) forwards;
        animation-delay: calc(var(--i, 0) * 140ms + 200ms);
    }
    .js .shutter img {
        transform: scale(1.12);
        animation: settle 1500ms var(--ease-soft) forwards;
        animation-delay: calc(var(--i, 0) * 140ms + 200ms);
    }

    @supports (animation-timeline: view()) {
        .drift img {
            animation: drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }
    }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shutter { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes drift {
    from { transform: scale(1.08) translateY(-3%); }
    to { transform: scale(1.08) translateY(3%); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
