/* ===== HS Ipswich — design system ===== */
:root {
    /* ----- Brand ----- */
    --brand: oklch(50% 0.2 23);
    --brand-strong: oklch(44% 0.18 22);
    --brand-hover: oklch(36% 0.16 22);
    --brand-soft: oklch(96% 0.02 22);
    --brand-glow: oklch(57% 0.22 23 / 30%);

    /* ----- Logo ----- */
    --hsi-logo-colour: oklch(55% 0.22 25);
    --hsi-text-colour: var(--on-dark);

    /* ----- Neutrals ----- */
    --white: oklch(100% 0 0);
    --ink: oklch(11% 0.009 264);
    --ink-2: oklch(42% 0.016 250);
    --paper: oklch(96% 0.007 80);
    --surface: oklch(100% 0 0);
    --line: oklch(11% 0.009 264 / 12%);

    /* ----- Dark surfaces ----- */
    --dark: oklch(7% 0.008 264);
    --dark-2: oklch(11% 0.012 264);
    --dark-3: oklch(15% 0.015 260);
    --dark-line: oklch(100% 0 0 / 12%);
    --on-dark: oklch(97% 0.005 264);
    --on-dark-mute: oklch(68% 0.018 240);
    --footer-bg: oklch(5% 0.006 264);

    /* ----- Semantic ----- */
    --error: oklch(46% 0.21 25);
    --invalid: oklch(53% 0.23 24);

    /* ----- Pride stripe ----- */
    --pride-red: oklch(46% 0.25 28);
    --pride-orange: oklch(72% 0.19 58);
    --pride-yellow: oklch(95% 0.19 102);
    --pride-green: oklch(50% 0.18 142);
    --pride-blue: oklch(42% 0.27 258);
    --pride-purple: oklch(30% 0.22 307);

    /* ----- Typography ----- */
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", system-ui, sans-serif;
    --font-mono: "Space Mono", ui-monospace, monospace;

    /* ----- Layout ----- */
    --maxw: 1180px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow:
        0 1px 2px oklch(11% 0.009 264 / 6%),
        0 18px 40px -24px oklch(11% 0.009 264 / 28%);
}

/* ===== reset ===== */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    font-size: 17px;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ===== layout helpers ===== */
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}
.kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 18px;
}
.kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--brand);
    display: inline-block;
}
.section {
    padding: clamp(64px, 9vw, 120px) 0;
}

/* ===== buttons ===== */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 1rem;
    min-inline-size: fit-content;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn-primary {
    background: var(--brand-strong);
    color: var(--white);
    box-shadow: 0 10px 24px -12px var(--brand-glow);
}
.btn-primary:hover {
    background: var(--brand-hover);
}
.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.btn-on-dark {
    border-color: var(--dark-line);
    color: var(--on-dark);
}
.btn-on-dark:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}
.btn .arr {
    transition: transform 0.2s ease;
}
.btn:hover .arr {
    transform: translateX(3px);
}

/* ===== header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: oklch(7% 0.008 264 / 78%);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--dark-line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand-link {
    display: flex;
    align-items: center;
    color: var(--brand);
}
.brand-link svg {
    height: 48px;
    width: auto;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-btn {
    background: none;
    border: 1px solid var(--dark-line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--on-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
}
.theme-btn:hover {
    border-color: oklch(100% 0 0 / 40%);
}
.theme-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}
body.theme-light .theme-btn svg {
    transform: rotate(180deg);
}
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav a {
    color: var(--on-dark-mute);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition:
        color 0.15s,
        background 0.15s;
}
.nav a:hover {
    color: var(--white);
    background: oklch(100% 0 0 / 7%);
}
.nav .btn {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    border-radius: 14px;
}
.nav a.btn-primary {
    color: var(--white);
}
.nav a.btn-primary:hover {
    color: var(--white);
    background: var(--brand-hover);
}
.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--dark-line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--white);
    align-items: center;
    justify-content: center;
}
.menu-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--dark);
        border-bottom: 1px solid var(--dark-line);
        padding: 14px 18px 22px;
        transform: translateY(-130%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 24px 40px -20px oklch(0% 0 0 / 60%);
    }
    .nav.open {
        transform: translateY(0);
    }
    .nav a {
        padding: 14px 12px;
        font-size: 1.05rem;
        border-bottom: 1px solid oklch(100% 0 0 / 6%);
        border-radius: 0;
    }
    .nav .btn {
        margin: 12px 0 0;
        justify-content: center;
        padding: 14px;
    }
    .menu-btn {
        display: flex;
    }
}

/* ===== hero ===== */
.hero {
    background: var(--dark);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 76px) 0 clamp(56px, 8vw, 96px);
}
.hero .wrap {
    position: relative;
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero-logo {
    width: min(640px, 100%);
    color: var(--brand);
    margin-bottom: 26px;
}
.hero-logo svg {
    width: 100%;
    height: auto;
}
.hero-tag {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 18px;
}
.hero-tag .hl {
    color: var(--brand);
}
.hero-lead {
    color: var(--on-dark);
    font-size: 1.08rem;
    max-width: 46ch;
    margin: 0 0 28px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----- next-night card ----- */
.nextcard {
    background: linear-gradient(180deg, var(--dark-2), var(--dark-3));
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-lg);
    padding: 26px 26px 22px;
    box-shadow: 0 40px 80px -40px oklch(0% 0 0 / 70%);
    position: relative;
    color: var(--on-dark);
}
.nextcard .live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-dark-mute);
    margin-bottom: 18px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand-glow);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--brand-glow);
    }
    70% {
        box-shadow: 0 0 0 9px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dot {
        animation: none;
    }
}
.nextcard .nc-cat {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.nextcard .nc-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 4px;
}
.nextcard .nc-day {
    font-size: 2.6rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}
.nextcard .nc-when {
    color: var(--on-dark);
    font-size: 1.05rem;
}
.nextcard .nc-when small {
    display: block;
    color: var(--on-dark-mute);
    font-size: 0.92rem;
}
.nextcard .nc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    background: oklch(100% 0 0 / 6%);
    border: 1px solid var(--dark-line);
    color: var(--on-dark);
    padding: 7px 12px;
    border-radius: 999px;
}
.chip.brand {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}
.nextcard .nc-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--dark-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nextcard .nc-foot span {
    color: var(--on-dark-mute);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .hero-logo {
        width: min(440px, 100%);
    }
    .nextcard {
        order: 2;
    }
}

/* ===== section headers ===== */
.sec-head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.sec-head h2 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.sec-head p {
    color: var(--ink-2);
    font-size: 1.1rem;
    margin: 16px 0 0;
}
.section.paper {
    background: var(--paper);
}
.section.dark {
    background: var(--dark);
    color: var(--on-dark);
}
.section.dark .sec-head p {
    color: var(--on-dark-mute);
}

/* ===== what's on ===== */
.whatson-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
.rhythm {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.rhythm-row {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 4px 20px 0;
    border-top: 1px solid var(--line);
}
.rhythm-row > * {
    min-width: 0;
}
.rhythm-row:last-child {
    border-bottom: 1px solid var(--line);
}
.r-when {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--brand);
    letter-spacing: 0.02em;
    line-height: 1.35;
}
.r-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.18rem;
}
.r-title small {
    display: block;
    color: var(--ink-2);
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 0.92rem;
    margin-top: 2px;
}
.r-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-2);
    white-space: nowrap;
}

.upcoming {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}
.upcoming h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.upcoming .sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 4px 0 18px;
}
.up-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px dashed var(--line);
}
.up-date {
    flex: 0 0 54px;
    text-align: center;
    line-height: 1;
}
.up-date b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--ink);
}
.up-date span {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.up-info b {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
}
.up-info span {
    display: block;
    font-size: 0.86rem;
    color: var(--ink-2);
}
.up-soon {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--brand);
    white-space: nowrap;
}
.up-item.cancelled .up-date b,
.up-item.cancelled .up-info b {
    text-decoration: line-through;
    color: var(--ink-2);
}
.up-item.cancelled .up-soon {
    color: var(--ink-2);
}
.up-item.moved .up-info span {
    color: var(--brand);
}

.ondemand {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 34px;
}
.od-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--surface);
}
.section.paper .od-card {
    background: var(--white);
}
.od-card .od-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}
.od-card h4 {
    font-size: 1.12rem;
    margin-bottom: 6px;
}
.od-card p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.95rem;
}

@media (max-width: 840px) {
    .whatson-grid {
        grid-template-columns: 1fr;
    }
    .upcoming {
        position: static;
    }
    .ondemand {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .rhythm-row {
        grid-template-columns: 100px 1fr;
        grid-template-areas:
            "date title"
            "time title";
        row-gap: 2px;
    }
    .r-when {
        grid-area: date;
    }
    .r-title {
        grid-area: title;
    }
    .r-time {
        grid-area: time;
    }
    .ondemand {
        grid-template-columns: 1fr;
    }
    .up-item {
        flex-wrap: wrap;
    }
    .up-soon {
        margin-left: 0;
    }
}

/* ===== about ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 268px;
    gap: 32px;
    align-items: start;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.feature {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    background: var(--surface);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.feature .ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.feature .ic svg {
    width: 24px;
    height: 24px;
}
.feature h3 {
    font-size: 1.22rem;
    margin-bottom: 8px;
}
.feature p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.97rem;
}
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== projects ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--dark-3);
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
}
.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/8;
    width: 100%;
}
@media (max-width: 760px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.tall {
        grid-row: span 1;
    }
}

/* ===== join ===== */
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
.steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.step:last-child {
    border-bottom: 1px solid var(--line);
}
.step .n {
    counter-increment: step;
    font-family: var(--font-mono);
    color: var(--brand);
    font-size: 0.9rem;
    padding-top: 4px;
}
.step .n::before {
    content: "0" counter(step);
}
.step h4 {
    font-size: 1.18rem;
    margin-bottom: 5px;
}
.step p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.97rem;
}
.join-card {
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.join-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.join-card p {
    color: var(--on-dark-mute);
    margin: 0 0 24px;
}
.join-card .perks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.join-card .perks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 1rem;
}
.join-card .perks svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex: 0 0 auto;
    margin-top: 2px;
}
@media (max-width: 820px) {
    .join-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== executive aside ===== */
.exec-aside {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    background: var(--surface);
}
.exec-aside h3 {
    font-size: 1.3rem;
    margin: 6px 0 10px;
}
.exec-aside > p {
    color: var(--ink-2);
    font-size: 0.93rem;
    margin: 0;
}
.exec-roster {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.member {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: var(--surface);
    position: relative;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.member::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    width: 28px;
    height: 3px;
    background: var(--brand);
}
.member:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.member h4 {
    font-size: 1.05rem;
    margin: 0;
}
.member .role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--brand);
    text-transform: uppercase;
    margin: 7px 0 2px;
}
.member .since {
    color: var(--ink-2);
    font-size: 0.82rem;
}
@media (max-width: 900px) {
    .exec-aside {
        max-width: 440px;
    }
}

/* ===== visit ===== */
.visit-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 4vw, 44px);
    align-items: stretch;
}
.visit-info .addr {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 6px;
}
.visit-info .addr small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--on-dark-mute);
    font-weight: 400;
    margin-top: 6px;
}
.visit-hours {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.vh-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--dark-line);
}
.vh-row:last-child {
    border-bottom: 1px solid var(--dark-line);
}
.vh-row .d {
    color: var(--on-dark);
}
.vh-row .t {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--on-dark-mute);
    text-align: right;
}
.map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-line);
    min-height: 340px;
    background: var(--dark-2);
}
.map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    filter: grayscale(0.3) contrast(1.05);
}
@media (max-width: 820px) {
    .visit-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.contact-intro h2 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.contact-intro > p {
    color: var(--ink-2);
    font-size: 1.1rem;
    margin: 16px 0 28px;
}
.contact-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-points svg {
    width: 22px;
    height: 22px;
    color: var(--brand);
    flex: 0 0 auto;
    margin-top: 2px;
}
.contact-points b {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    display: block;
}
.contact-points span {
    color: var(--ink-2);
    font-size: 0.92rem;
}
.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 38px);
    box-shadow: var(--shadow);
}
.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.86rem;
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea {
    resize: vertical;
    min-height: 120px;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23565c66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input:user-invalid,
.field textarea:user-invalid {
    border-color: var(--invalid);
}
.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding: 15px;
}
.form-status {
    margin: 14px 0 0;
    font-size: 0.92rem;
    text-align: center;
    min-height: 1.2em;
    color: var(--ink-2);
}
.form-status.ok {
    color: var(--brand);
    font-weight: 600;
}
.form-status.err {
    color: var(--error);
}
.contact-form.sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 340px;
}
.contact-form.sent .sent-ic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}
.contact-form.sent h3 {
    font-size: 1.5rem;
}
.contact-form.sent p {
    color: var(--ink-2);
    margin: 0;
    max-width: 34ch;
}
@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== footer ===== */
.footer {
    background: var(--footer-bg);
    color: var(--on-dark-mute);
    padding: 96px 0 40px;
    position: relative;
    overflow: hidden;
}
.footer-art {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: url("../images/low-poly-grid-haikei.svg") top center / cover
        no-repeat;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(
        to bottom,
        oklch(0% 0 0) 0%,
        oklch(0% 0 0 / 35%) 32%,
        transparent 64%
    );
    mask-image: linear-gradient(
        to bottom,
        oklch(0% 0 0) 0%,
        oklch(0% 0 0 / 35%) 32%,
        transparent 64%
    );
}
.footer-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        oklch(5% 0.006 264 / 35%),
        oklch(5% 0.006 264 / 78%)
    );
}
.footer .wrap {
    position: relative;
    z-index: 1;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--dark-line);
}
.footer .brand-link svg {
    height: 64px;
}
.footer .f-tag {
    margin: 18px 0 0;
    max-width: 34ch;
    font-size: 0.95rem;
}
.footer h5 {
    color: var(--on-dark);
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.footer .f-col a {
    display: block;
    padding: 6px 0;
    transition: color 0.15s;
}
.footer .f-col a:hover {
    color: var(--white);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 26px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.footer-bottom a:hover {
    color: var(--white);
}
.footer-statements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--dark-line);
}
.fstmt {
    padding-left: 18px;
    position: relative;
}
.fstmt::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 5px;
    border-radius: 3px;
    background-image: url("../images/flag-aboriginal.svg");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    animation: pride-scan 8s linear infinite;
}
.fstmt-pride {
    position: relative;
    padding-left: 18px;
}
.fstmt-pride::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 5px;
    border-radius: 3px;
    background-image: url("../images/flag-pride.svg");
    background-size: auto 100%;
    background-repeat: no-repeat;
    animation: pride-scan 8s linear infinite;
}
@keyframes pride-scan {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}
.footer-statements h6 {
    color: var(--on-dark);
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 9px;
}
.footer-statements p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--on-dark-mute);
    max-width: 46ch;
}
@media (max-width: 640px) {
    .footer-statements {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
@media (max-width: 760px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ===== scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== SVG logo classes ===== */
.hsi-stroke {
    stroke: var(--hsi-logo-colour);
    stroke-width: 0.388621;
}
.hsi-stroke-bold {
    stroke-width: 0.55017;
}
.hsi-fill {
    fill: var(--hsi-logo-colour);
}
.hsi-motto {
    fill: var(--hsi-text-colour);
    stroke-width: 0.36639;
}

/* ===== light theme ===== */
.site-header,
.hero,
.section,
.nextcard,
.join-card,
.footer,
.footer-art::after {
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease;
}
body.theme-light {
    --dark: oklch(97% 0.005 80);
    --dark-2: oklch(100% 0 0);
    --dark-3: oklch(100% 0 0);
    --dark-line: oklch(11% 0.009 264 / 12%);
    --on-dark: oklch(11% 0.009 264);
    --on-dark-mute: oklch(42% 0.016 250);
    --hsi-text-colour: var(--on-dark);
    --footer-bg: oklch(93% 0.007 80);
}
body.theme-light .site-header {
    background: oklch(100% 0 0 / 82%);
    border-bottom-color: oklch(11% 0.009 264 / 10%);
}
body.theme-light .menu-btn,
body.theme-light .theme-btn {
    color: var(--ink);
    border-color: oklch(11% 0.009 264 / 18%);
}
body.theme-light .menu-btn:hover,
body.theme-light .theme-btn:hover {
    border-color: var(--ink);
}
body.theme-light .nav a:hover {
    color: var(--ink);
    background: oklch(11% 0.009 264 / 6%);
}
body.theme-light .nav a {
    border-bottom-color: oklch(11% 0.009 264 / 7%);
}
body.theme-light .nextcard {
    box-shadow: var(--shadow);
}
body.theme-light .chip {
    background: var(--paper);
    border-color: oklch(11% 0.009 264 / 10%);
    color: var(--ink);
}
body.theme-light .chip.brand {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}
body.theme-light .join-card {
    background: var(--white);
    box-shadow: var(--shadow);
}
body.theme-light .btn-on-dark {
    border-color: oklch(11% 0.009 264 / 20%);
    color: var(--ink);
}
body.theme-light .btn-on-dark:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
body.theme-light .footer .f-col a:hover,
body.theme-light .footer-bottom a:hover {
    color: var(--ink);
}
body.theme-light .footer-art {
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(
        to bottom,
        oklch(0% 0 0) 0%,
        oklch(0% 0 0 / 30%) 40%,
        transparent 72%
    );
    mask-image: linear-gradient(
        to bottom,
        oklch(0% 0 0) 0%,
        oklch(0% 0 0 / 30%) 40%,
        transparent 72%
    );
}
body.theme-light .footer-art::after {
    background: linear-gradient(
        180deg,
        oklch(93% 0.007 80 / 45%),
        oklch(93% 0.007 80 / 88%)
    );
}
body.theme-light .map iframe {
    filter: grayscale(0.1) contrast(1.02);
}

/* ===== fixed haikei backdrop ===== */
body {
    background: transparent;
}
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--dark);
}
.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/low-poly-grid-haikei.svg") center center / cover
        no-repeat;
    opacity: 0.6;
}
.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        110% 80% at 82% 6%,
        var(--brand-glow),
        transparent 56%
    );
    opacity: 0.6;
}
/* Sections sit above page-bg; transparent/scrim sections reveal it */
.section {
    background: var(--surface);
}
.hero {
    background: oklch(7% 0.008 264 / 52%);
}
.section.dark {
    background: oklch(7% 0.008 264 / 52%);
}
.footer {
    background: linear-gradient(
        oklch(5% 0.006 264 / 66%),
        oklch(5% 0.006 264 / 86%)
    );
}
.footer-art {
    display: none;
}

body.theme-light .page-bg {
    background: var(--paper);
}
body.theme-light .page-bg::before {
    opacity: 0.32;
    mix-blend-mode: multiply;
}
body.theme-light .page-bg::after {
    opacity: 0.4;
}
body.theme-light .hero {
    background: transparent;
}
body.theme-light .section.dark {
    background: oklch(97% 0.005 80 / 62%);
}
body.theme-light .footer {
    background: linear-gradient(
        oklch(93% 0.007 80 / 66%),
        oklch(93% 0.007 80 / 90%)
    );
}
