:root {
    color-scheme: light dark;
    --bg: #0f0c07;
    --bg-muted: #1c140c;
    --parchment: #f7f1e3;
    --parchment-deep: #e6dac3;
    --ink: #2b1e10;
    --ink-muted: #5c4630;
    --gold: #d8a850;
    --accent: #8cc4c9;
    --accent-deep: #3b6470;
    --magenta: #82204A;
    --shadow: 0 20px 60px rgba(15, 8, 2, 0.4);
    --radius: 18px;
    --page-padding: clamp(1.75rem, 6vw, 5rem);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(43, 30, 16, 0.15);
    --font-title: 'Black Ops One', cursive;
    --font-body: 'Share Tech Mono', monospace;
    font-family: var(--font-body);
}

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: radial-gradient(circle at top, #2a1b0f, var(--bg));
    color: var(--parchment);
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
    line-height: 1.75;
}

/* ===== CRT TV Effect ===== */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Very subtle center glow that fades toward edges */
    background: radial-gradient(
        ellipse at center,
        rgba(140, 196, 201, 0.015) 0%,
        rgba(140, 196, 201, 0.008) 30%,
        transparent 60%
    );
    animation: crt-glow 8s ease-in-out infinite;
}

/* Glow pulsing animation */
@keyframes crt-glow {
    0%, 100% {
        background: radial-gradient(
            ellipse at center,
            rgba(140, 196, 201, 0.015) 0%,
            rgba(140, 196, 201, 0.008) 30%,
            transparent 60%
        );
    }
    50% {
        background: radial-gradient(
            ellipse at center,
            rgba(140, 196, 201, 0.025) 0%,
            rgba(140, 196, 201, 0.012) 30%,
            transparent 60%
        );
    }
}

/* Scanlines */
.crt-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 1px,
        rgba(0, 0, 0, 0.06) 1px,
        rgba(0, 0, 0, 0.06) 2px
    );
    pointer-events: none;
    animation: crt-flicker 0.3s infinite;
}

/* Vignette + subtle color shift */
.crt-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(140, 196, 201, 0.01) 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

/* CRT Flicker animation */
@keyframes crt-flicker {
    0% { opacity: 0.99; }
    50% { opacity: 1; }
    100% { opacity: 0.995; }
}

/* Failing TV flicker - random glitches */
.crt-flicker-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    opacity: 0;
    background: rgba(255, 255, 255, 0.015);
    animation: tv-failing 15s infinite;
}

/* Horizontal distortion bar */
.crt-flicker-layer::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.04) 20%, 
        rgba(140, 196, 201, 0.06) 50%, 
        rgba(255, 255, 255, 0.04) 80%, 
        transparent 100%
    );
    animation: distortion-bar 12s linear infinite;
    opacity: 0;
}

/* Vertical sync issue */
.crt-flicker-layer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: vertical-sync 12s ease-in-out infinite;
}

/* Main failing TV animation - random flickering */
@keyframes tv-failing {
    0%, 100% { opacity: 0; }
    2% { opacity: 0.03; }
    2.5% { opacity: 0; }
    32% { opacity: 0; }
    32.5% { opacity: 0.05; transform: translateX(-1px); }
    33% { opacity: 0.03; transform: translateX(1px); }
    33.5% { opacity: 0; transform: translateX(0); }
    78% { opacity: 0; }
    78.5% { opacity: 0.02; transform: skewX(0.2deg); }
    79% { opacity: 0; transform: skewX(0); }
}

/* Horizontal distortion bar moving down */
@keyframes distortion-bar {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 0; }
    15% { opacity: 0.4; }
    20% { opacity: 0.4; }
    25% { opacity: 0; }
    30% { top: 100%; opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

/* Occasional vertical sync jump */
@keyframes vertical-sync {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(0); }
    45.5% { transform: translateY(-3px); }
    46% { transform: translateY(2px); }
    46.5% { transform: translateY(0); }
    85% { transform: translateY(0); }
    85.3% { transform: translateY(4px); }
    85.6% { transform: translateY(-2px); }
    86% { transform: translateY(0); }
}

/* RGB color aberration on edges - applied to the body pseudo-element */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: 
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 0%, transparent 3%, transparent 97%, rgba(0, 255, 255, 0.03) 100%),
        linear-gradient(180deg, rgba(0, 255, 0, 0.02) 0%, transparent 3%, transparent 97%, rgba(255, 0, 255, 0.02) 100%);
}

/* Screen curvature effect */
body::after {
    content: "";
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50% / 10%;
    box-shadow: inset 0 0 100px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.accordion__trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

ul {
    padding-left: 1.25rem;
}

.site-header {
    padding: 1.5rem var(--page-padding) 3rem;
    background: linear-gradient(160deg, rgba(16, 9, 2, 0.95), rgba(34, 21, 10, 0.85));
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M60 5 L70 30 L95 35 L75 55 L80 80 L60 67 L40 80 L45 55 L25 35 L50 30 Z" fill="none" stroke="%23d8a850" stroke-width="0.5" opacity="0.08"/%3E%3C/svg%3E');
    opacity: 0.5;
    mix-blend-mode: screen;
    pointer-events: none;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    /* place nav above hero on small screens */
    z-index: 6;
}

.brand {
    display: flex;
    flex-direction: column;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.brand__eyebrow {
    font-size: 0.7rem;
    color: var(--accent);
}

.brand__name {
    font-size: 1.1rem;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.nav__links a {
    position: relative;
    padding-bottom: 0.2rem;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav__links a:focus-visible,
.nav__links a:hover {
    color: var(--gold);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: transparent;
    /* remove the visible button border so only the three bars show */
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    position: relative;
    z-index: 7;
}

.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: var(--parchment);
    display: block;
    position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--parchment);
}

.nav-toggle__bar::before {
    top: -6px;
}

.nav-toggle__bar::after {
    top: 6px;
}

/* animate hamburger -> X */
.nav-toggle {
    /* keep alignment rules but don't force `display` here —
       display is controlled in the mobile media query so the
       hamburger remains hidden on desktop */
    align-items: center;
    justify-content: center;
}

.nav-toggle .nav-toggle__bar,
.nav-toggle .nav-toggle__bar::before,
.nav-toggle .nav-toggle__bar::after {
    transition: transform 260ms cubic-bezier(.2,.9,.3,1),
                opacity 200ms ease, background-color 200ms ease;
    transform-origin: center;
}

/* when open, hide center bar and rotate pseudo bars into a true X */
.nav-toggle.is-open .nav-toggle__bar {
    background: transparent;
}

.nav-toggle__bar::before {
    top: -6px;
}

.nav-toggle__bar::after {
    top: 6px;
}

.nav-toggle.is-open .nav-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* small visual press */
.nav-toggle:active .nav-toggle__bar,
.nav-toggle:active .nav-toggle__bar::before,
.nav-toggle:active .nav-toggle__bar::after {
    transform: scale(0.98);
}

.section p,
.section li,
.hero__content p {
    font-size: 1.15rem;
}


.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: stretch;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) * 1.1);
    box-shadow: none;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.hero__content,
.hero__media {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.8rem;
}

.hero__badge-year {
    color: var(--gold);
}

.hero__content h1 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
    margin: 0 0 1rem;
}

.hero__content .lead {
    max-width: 52ch;
}

.hero__divider {
    width: 100%;
    max-width: 52ch;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    color: var(--accent);
}

/* Make eyebrow inside hero match the H1 (parchment) color for visual harmony */
.hero__content .eyebrow {
    color: var(--parchment);
}

/* Make eyebrow inside section headers match the section's h2 color */
.section__header .eyebrow {
    color: inherit;
}

.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero__meta-item {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__meta-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero__meta-value {
    margin: 0.4rem 0 0;
    font-size: 1.15rem;
    color: var(--parchment);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.hero__scroll-hint {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.15rem;
}

.hero__scroll-hint:hover,
.hero__scroll-hint:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
}

.hero__support {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__steward-card {
    margin-top: 1.75rem;
    width: 100%;
}

.button {
    background: linear-gradient(120deg, var(--gold), #f6d88b);
    color: var(--ink);
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    position: relative;
    will-change: transform, box-shadow;
    clip-path: polygon(
        10px 0%, calc(100% - 10px) 0%,
        100% 10px, 100% calc(100% - 10px),
        calc(100% - 10px) 100%, 10px 100%,
        0% calc(100% - 10px), 0% 10px
    );
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px) scale(1.002);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.27);
}

.button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--parchment);
    box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--parchment);
    border-color: rgba(255, 255, 255, 0.55);
}

.button:active {
    transform: translateY(-1px) scale(0.998);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
    transition-duration: 120ms;
}


.hero__media {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    align-self: stretch;
}

.hero__image {
    position: relative;
    background: rgba(12, 6, 2, 0.85);
    border-radius: calc(var(--radius) * 1.1);
    padding: 2rem;
    border: 1px solid rgba(216, 168, 80, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero__image figcaption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    text-align: center;
}

.hero__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(216, 168, 80, 0.45), transparent 60%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.hero__image img,
.hero__image figcaption {
    position: relative;
    z-index: 1;
}

.hero__image img {
    flex: 1;
    object-fit: cover;
    width: 100%;
}

.hero__seal-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero__seal-label {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__seal-name {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--gold);
}

.hero__seal-note {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.section {
    padding: 4rem var(--page-padding);
    position: relative;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.section--dark {
    background: var(--bg-muted);
    color: var(--parchment);
}

.section--parchment {
    background: var(--parchment);
    color: var(--ink);
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
}

.section--parchment .eyebrow {
    color: var(--accent-deep);
}

/* Make eyebrow in section headers match the section heading color (h2)
   — for parchment sections ensure it matches the h2 (var(--ink)) */
.section--parchment .section__header .eyebrow {
    color: var(--ink);
}

.section--parchment h2,
.section--parchment h3,
.section--parchment p,
.section--parchment li {
    color: var(--ink);
}

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(0.75rem, 4vw, 1.75rem);
}

.section__header {
    max-width: 760px;
}

.section__header h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.charter-grid,
.pillars-grid,
.funds-grid,
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.charter-grid article,
.pillar-card,
.funds-grid article,
.business-grid article {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.section--parchment .charter-grid article,
.section--parchment .funds-grid article,
.section--parchment .cta__form,
.section--parchment .archive__quote {
    background: #fff8ed;
    border: 1px solid rgba(43, 30, 16, 0.08);
    color: var(--ink);
}

.pillar-card ul,
.funds-grid ul,
.cta__highlights {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.pillar-card li,
.funds-grid li,
.cta__highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.pillar-card li::before,
.funds-grid li::before,
.cta__highlights li::before {
    content: "✦";
    color: var(--gold);
    font-size: 0.8rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    counter-reset: role;
}

.timeline article {
    padding: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.timeline article::before {
    counter-increment: role;
    content: counter(role, upper-roman);
    position: absolute;
    left: -1.35rem;
    top: 1.1rem;
    background: radial-gradient(circle at top, #fce7b6, var(--gold));
    color: var(--ink);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.accordion article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion__trigger {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-family: var(--font-title);
    cursor: pointer;
}

.accordion__icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(45deg);
}

.accordion__panel {
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.archive__quote {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
    font-size: 1.2rem;
}

/* Archive of Deeds — centered, monochrome */
.archive-centered {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
}

.archive-centered .statement-text {
    max-width: 38ch;
}

.archive-list {
    list-style: disc;
    text-align: left;
    padding-left: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.archive-quote {
    margin: 0;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
}

.archive-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: italic;
    opacity: 0.75;
}

.cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.cta__form {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.cta__form.is-submitted {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.cta__form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta__form input,
.cta__form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 1rem;
    background: #fffef9;
    clip-path: polygon(
        6px 0%, calc(100% - 6px) 0%,
        100% 6px, 100% calc(100% - 6px),
        calc(100% - 6px) 100%, 6px 100%,
        0% calc(100% - 6px), 0% 6px
    );
}

.cta__form button {
    width: 100%;
    margin-top: 0.5rem;
    clip-path: polygon(
        8px 0%, calc(100% - 8px) 0%,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0% calc(100% - 8px), 0% 8px
    );
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(43, 30, 16, 0.7);
    margin-top: 0.5rem;
}

/* Submission states and inline error for forms */
.cta__form.is-submitting {
    opacity: 0.95;
}

.form-error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.08);
    color: #7a1f1f;
    border: 1px solid rgba(255, 80, 80, 0.12);
    font-size: 0.95rem;
}

.site-footer {
    padding: 2.5rem var(--page-padding);
    background: #080503;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.back-to-top {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--gold);
}

[data-animate="tilt"] {
    transition: transform 180ms ease-out;
}

[data-animate="tilt"].is-tilting {
    transform: rotateX(4deg) rotateY(2deg) scale(1.01);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav__links {
        position: absolute;
        right: 1.25rem;
        top: 3.5rem;
        flex-direction: column;
        background: rgba(8, 5, 3, 0.95);
        padding: 1.25rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav__links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 7;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 1.25rem;
        /* single-column stack on small screens to avoid overflow */
        grid-template-columns: 1fr;
        align-items: start;
    }

    /* ensure content stacks before the media and the media doesn't force excessive height */
    .hero__content {
        order: 1;
    }

    .hero__media {
        order: 2;
        height: auto;
    }

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

    .hero__badge {
        width: 100%;
        justify-content: space-between;
    }

    /* reduce padding on the image container and cap explicit image height for mobile */
    .hero__image {
        padding: 1rem;
    }

    .hero__image img {
        height: 260px;
        width: 100%;
        object-fit: cover;
    }

    .hero__image figcaption {
        font-size: 0.85rem;
    }
}

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

/* scrollCue removed: reveal rules and keyframes were removed to avoid
   hiding content when the JS library is not used. */

/* Floating scroll-to-top bubble */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--gold), #f6d88b);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 320ms cubic-bezier(.22,1,.36,1), transform 320ms cubic-bezier(.22,1,.36,1);
    z-index: 40;
    clip-path: polygon(
        8px 0%, calc(100% - 8px) 0%,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0% calc(100% - 8px), 0% 8px
    );
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top.hide-footer {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Match scroll-to-top button to the public monochrome theme */
body.public-site .scroll-top {
    background: #0a0a0a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

body.public-site .scroll-top:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

body.public-site .scroll-top svg path {
    stroke: currentColor !important;
}

/* Checkbox styling */
.form-group--checkbox {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #1a1410;
    border-radius: 0.25rem;
    background: white;
    transition: all 0.25s ease;
    margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #1a1410;
    border-color: #1a1410;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(26, 20, 16, 0.2);
    outline: none;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #333;
    background: #f5f5f5;
}

.checkbox-text {
    flex: 1;
    color: inherit;
}

.checkbox-text a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #e0e0e0;
    border-bottom-color: #e0e0e0;
}

/* Inline checkbox label for forms */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
}

@media (max-width: 420px) {
    .scroll-top { right: 0.65rem; bottom: 0.9rem; width:44px; height:44px; }
}

/* Thank-you modal styles */
.modal {
    position: fixed;
    inset: 0;
    /* ensure modal is never shown accidentally by specificity issues */
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 80;
    pointer-events: none;
}
.modal[aria-hidden="false"] {
    /* explicit show when aria state is toggled */
    display: flex !important;
    pointer-events: auto;
}
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,2,2,0.6);
    backdrop-filter: blur(2px);
}
.modal__panel {
    position: relative;
    background: linear-gradient(180deg, rgba(20,14,10,0.98), rgba(12,8,6,0.98));
    color: var(--parchment);
    border-radius: 14px;
    padding: 2rem;
    max-width: 680px;
    width: calc(100% - 3rem);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    transform: translateY(6px) scale(0.995);
    animation: modalIn 280ms cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--parchment);
    font-size: 1.6rem;
    cursor: pointer;
}
.modal__panel h2 {
    font-family: var(--font-title);
    font-size: 1.85rem;
    margin-top: 0;
}
.modal__panel p { margin-top: 0.6rem; font-size: 1.05rem; }
.modal__actions { margin-top: 1.15rem; display:flex; gap:0.75rem; justify-content:center; }
.modal__ok { text-decoration: none; }

@media (max-width: 520px) {
    .modal__panel { padding: 1.25rem; }
    .modal__panel h2 { font-size: 1.4rem; }
}

/* ----------------------------
   Public site (index.html)
---------------------------- */
body.public-site {
    background: #000;
    color: #fff;
    font-family: var(--font-body);
}

/* Private page aligned to public theme */
body.private-site {
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    --gold: #ffffff;
    --accent: #ffffff;
    --accent-deep: #ffffff;
    --parchment: #ffffff;
    --parchment-deep: #ffffff;
    --ink: #000000;
    --ink-muted: #ffffff;
}

body.private-site .site-header,
body.private-site .section,
body.private-site .section--dark {
    background: #000;
    color: #fff;
}

body.private-site .section--parchment {
    background: #0a0a0a;
    color: #fff;
}

body.private-site .hero {
    background: #050505;
    border: none;
}

body.private-site .hero::before {
    display: none;
}

body.private-site .eyebrow,
body.private-site .brand__eyebrow,
body.private-site .hero__badge-year,
body.private-site .hero__meta-label,
body.private-site .hero__support,
body.private-site .lead,
body.private-site .hero__subtitle {
    color: #fff;
}

body.private-site .section__header .eyebrow {
    color: #fff !important;
}

body.private-site h1,
body.private-site h2,
body.private-site h3,
body.private-site .section__header h2,
body.private-site .section__header p,
body.private-site .archive__quote cite,
body.private-site .hero__seal-label,
body.private-site .hero__seal-name,
body.private-site .hero__seal-note {
    color: #fff;
}

body.private-site .hero__divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

body.private-site .hero__badge,
body.private-site .hero__steward-card,
body.private-site .pillar-card,
body.private-site .accordion__trigger,
body.private-site .accordion__panel,
body.private-site .business-grid article,
body.private-site .funds-grid article,
body.private-site .timeline article,
body.private-site .cta__form,
body.private-site .archive__quote {
    background: #0a0a0a;
    border: none;
    color: #fff;
}

body.private-site .hero__media {
    background: transparent;
    border: none;
}

body.private-site .hero__media img {
    background: transparent;
    border: none;
}

body.private-site .hero__glow {
    display: none;
}

body.private-site .hero__media img {
    opacity: 1 !important;
    filter: brightness(2.5) contrast(1.5) saturate(1.2) !important;
    z-index: 10 !important;
}

body.private-site .hero__image {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
}

body.private-site .accordion__trigger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.private-site .accordion__icon {
    color: #fff;
}

body.private-site .button {
    background: #fff;
    color: #000;
    border: none;
}

body.private-site .button--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

body.private-site .nav__links a,
body.private-site .back-to-top {
    color: #fff;
}

body.private-site .nav__links a:hover,
body.private-site .nav__links a:focus-visible {
    color: #fff;
}

body.private-site .nav__links a::after {
    background: #fff;
}

body.private-site input,
body.private-site textarea,
body.private-site select {
    background: #050505;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.private-site input::placeholder,
body.private-site textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Force readable contrast on private page */
body.private-site,
body.private-site * {
    color: #fff;
}

body.private-site p,
body.private-site li,
body.private-site cite,
body.private-site blockquote {
    color: #fff;
}

body.private-site .section__header,
body.private-site .section__inner,
body.private-site .charter-grid article,
body.private-site .pillars-grid article,
body.private-site .funds-grid article,
body.private-site .business-grid article,
body.private-site .timeline article,
body.private-site .accordion__panel,
body.private-site .archive__quote,
body.private-site .cta__form {
    background: #0a0a0a;
}

body.private-site .section,
body.private-site .section--dark {
    background: #000;
}

body.private-site .section--parchment {
    background: #0a0a0a;
}

body.private-site .accordion__trigger {
    background: #0a0a0a;
    color: #fff;
}

body.private-site .accordion__panel {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.private-site .nav__links a::after {
    background: #fff;
}

body.private-site .button {
    background: #fff;
    color: #000;
    border: none;
}

body.private-site .button--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.public-site .site-header,
body.public-site .section {
    background: transparent;
}

.public-header {
    padding: 1rem var(--page-padding) 0;
    background: transparent;
    border: none;
}

.public-shell {
    max-width: 1100px;
    margin: 0 auto;
}

body.public-site .primary-nav {
    border: none;
    padding: 0.85rem 1rem 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-logo-wrap {
    background: transparent;
    border: none;
    padding: 0.35rem 0.45rem;
    display: grid;
    place-items: center;
}

.public-logo {
    width: 86px;
    height: auto;
    display: block;
}

.public-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

body.public-site .brand__name {
    font-size: 1.05rem;
    letter-spacing: 0.24em;
    font-family: var(--font-title);
}

body.public-site .brand__eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

body.public-site .nav__links {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

body.public-site .nav__links a {
    border: none;
    padding: 0.35rem 0.6rem;
    font-family: var(--font-title);
}

body.public-site .nav__links a::after {
    display: none;
}

body.public-site .nav__links a:hover,
body.public-site .nav__links a:focus-visible {
    background: #fff;
    color: #000;
}

.public-enter {
    background: #fff;
    color: #000;
}

.public-hero {
    margin-top: 2rem;
    border: 2px solid #fff;
    background: transparent;
    padding: clamp(3rem, 8vw, 6rem);
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.public-hero--compact {
    text-align: center;
    border: none;
    padding: 0 clamp(2rem, 6vw, 4rem);
    display: grid;
    gap: 1.5rem;
    background: transparent;
}

.public-hero__logo {
    width: min(880px, 95%);
    height: auto;
    margin: 0 auto;
}

.public-hero__title {
    font-family: var(--font-title);
    font-size: clamp(3.2rem, 7vw, 5.2rem);
    letter-spacing: 0.12em;
    margin: 0;
}

.public-hero__subtitle {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0;
    font-weight: 500;
}

.public-hero__lede {
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.15rem;
}

.public-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    margin: 0 0 0.6rem;
}

.public-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.public-actions--center {
    justify-content: center;
}

.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border: none;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    clip-path: polygon(
        8px 0%, calc(100% - 8px) 0%,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0% calc(100% - 8px), 0% 8px
    );
}

.public-button--ghost {
    background: transparent;
    color: #fff;
    /* Use a pseudo-element for octagonal border on ghost variant */
    position: relative;
}

.public-button--ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    clip-path: polygon(
        8px 0%, calc(100% - 8px) 0%,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0% calc(100% - 8px), 0% 8px,
        /* Inner cutout */
        0% 8px, 2px 10px,
        2px calc(100% - 10px), 10px calc(100% - 2px),
        calc(100% - 10px) calc(100% - 2px), calc(100% - 2px) calc(100% - 10px),
        calc(100% - 2px) 10px, calc(100% - 10px) 2px,
        10px 2px, 2px 10px,
        0% 8px
    );
    z-index: -1;
}

.public-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}

.public-hero__mark {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.public-hero__frame {
    border: 2px solid #fff;
    background: #fff;
    padding: clamp(1rem, 4vw, 2rem);
    display: grid;
    place-items: center;
}

.public-hero__frame img {
    width: min(260px, 100%);
    height: auto;
}

.public-hero__caption {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.public-section {
    padding: 3rem var(--page-padding);
    border: none;
    background: #000;
}

.public-section--border {
    border: none;
    background: #0a0a0a;
}

.public-section__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.public-section__inner--split {
    align-items: start;
}

.public-section__header {
    margin-bottom: 2rem;
}

.public-section__header h2 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: var(--font-title);
}

.public-callout {
    border: none;
    padding: 1.5rem;
    background: #050505;
}

.public-callout__title {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.public-card {
    border: none;
    padding: 1.5rem;
    background: #000;
    min-height: 160px;
}

.public-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-title);
}

.public-portfolio {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 2rem;
    align-items: start;
}

.public-portfolio__frame {
    border: none;
    min-height: 280px;
    background: repeating-linear-gradient(
        135deg,
        #1a1a1a 0,
        #1a1a1a 16px,
        #0a0a0a 16px,
        #0a0a0a 32px
    );
}

.public-portfolio__list article {
    border-bottom: none;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Portfolio — services-style layout */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: start;
}

.portfolio-item:last-child {
    border-bottom: none;
}

.portfolio-visual {
    width: 100%;
    min-height: 360px;
    overflow: hidden;
}

.portfolio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portfolio-visual:hover img {
    filter: grayscale(0%);
}

.portfolio-content {
    display: grid;
    gap: 1rem;
}

.portfolio-head {
    display: grid;
    gap: 0.35rem;
}

.portfolio-chip {
    font-family: var(--font-title);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-title {
    font-family: var(--font-title);
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}

.portfolio-tagline {
    font-family: var(--font-title);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.portfolio-desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.portfolio-stack {
    display: grid;
    gap: 0.9rem;
}

.portfolio-block {
    display: grid;
    gap: 0.35rem;
}

.portfolio-block h4 {
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.portfolio-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
    font-size: 0.9rem;
}

.portfolio-list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 0.35rem;
    line-height: 1.75;
    font-size: 0.9rem;
}

.portfolio-link {
    margin-top: 0.4rem;
    width: fit-content;
}

@media (max-width: 1024px) {
    .portfolio-item {
        grid-template-columns: 1fr;
    }
}

.portfolio-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
}

.portfolio-dropdown summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    list-style: none;
    background: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-dropdown summary:hover {
    box-shadow: 0 0 0 2px #fff;
}

.portfolio-dropdown summary::marker {
    display: none;
}

.portfolio-dropdown summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.1rem;
    color: #000;
    transition: transform 200ms ease;
}

.portfolio-dropdown[open] summary::after {
    transform: rotate(45deg);
}

.portfolio-dropdown__content {
    padding: 0.4rem 0 0.2rem;
}

.public-contact {
    border: none;
    padding: 1.5rem;
    background: #050505;
    display: grid;
    gap: 0.75rem;
}

/* CONTACT SECTION REDESIGN */
.public-section--contact {
    background: #000;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-info__item {
    display: grid;
    gap: 0.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
}

.contact-info__item a {
    color: #fff;
    text-decoration: none;
    transition: color 300ms ease;
}

.contact-info__item a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info__item span:not(.contact-info__label) {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.contact-form label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 300ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group--captcha {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.captcha-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-prompt {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.captcha-question {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.captcha-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: none;
}

.captcha-error.visible {
    display: block;
}

.form-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.public-footer {
    margin: 4rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem var(--page-padding) 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    background: transparent;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.footer-branding {
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-family: var(--font-primary);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-motto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 400;
}

.public-divider {
    padding: 4rem 0;
    background: transparent;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
    position: relative;
}

.divider-line::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    background: #000;
    padding: 0 1.5rem;
}

.public-section--statement {
    background: #000;
}

.statement-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
    justify-items: center;
}

.statement-kicker {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.statement-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.statement-lede {
    max-width: 60ch;
    margin: 0;
    line-height: 1.9;
    color: #fff;
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 2.5rem 1rem;
    align-items: start;
}

.about-grid > *:nth-child(2) {
    grid-row: 1 / 3;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid > *:nth-child(2) {
        grid-row: auto;
    }
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.statement-text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 42ch;
}

.statement-image {
    border: none;
    height: 80%;
    min-height: 280px;
    background: repeating-linear-gradient(
        135deg,
        #1a1a1a 0,
        #1a1a1a 10px,
        #0a0a0a 10px,
        #0a0a0a 20px
    );
    border-radius: 0;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 600ms ease;
}

.statement-image:hover {
    filter: grayscale(0%);
}

.statement-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.statement-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.statement-points li::before {
    content: "";
    width: 16px;
    height: 2px;
    background: #fff;
}

.statement-footer {
    margin-top: 2rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* MEMBERS SECTION */
.public-section--members {
    background: #000;
}

.members-header {
    text-align: center;
    margin-bottom: 3rem;
}

.members-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: var(--accent);
}

.members-subtitle {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.member-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.member-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%);
    transition: filter 600ms ease;
}

.member-image img:hover {
    filter: grayscale(0%);
}

.member-image img.is-bw {
    filter: grayscale(100%);
}

.member-info {
    display: grid;
    gap: 0.75rem;
}

.member-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.member-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.5rem 0 0 0;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.member-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.member-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 300ms ease;
    position: relative;
}

.member-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    clip-path: polygon(
        6px 0%, calc(100% - 6px) 0%,
        100% 6px, 100% calc(100% - 6px),
        calc(100% - 6px) 100%, 6px 100%,
        0% calc(100% - 6px), 0% 6px
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 300ms ease;
    z-index: -1;
}

.member-link:hover::before {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.member-link:hover {
    color: #fff;
}

.pledge-form {
    margin: 0;
}

.pledge-container {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(1.6rem, 4vw, 2.6rem);
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius) * 1.05);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    align-items: start;
}

.pledge-content {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pledge-content h3 {
    margin: 0;
    font-family: var(--font-title);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pledge-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.2rem 0 0.2rem;
}

.pledge-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
}

.pledge-note {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.pledge-form__fields {
    display: grid;
    gap: 0.9rem;
}

.pledge-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.pledge-form input,
.pledge-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.pledge-form input:focus,
.pledge-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(140, 196, 201, 0.25);
}

.pledge-form textarea {
    resize: vertical;
}

.pledge-form .checkbox-inline {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.pledge-form .checkbox-inline input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.pledge-form .public-button {
    width: 100%;
}

.form-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 960px) {
    .pledge-container {
        grid-template-columns: 1fr;
    }

    .pledge-content {
        order: -1;
    }
}

.public-section--wall {
    background: #000;
}

.services-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    justify-items: center;
}

.services-title {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.services-lede {
    margin: 0;
    max-width: 70ch;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.85;
}

.services-grid {
    display: grid;
    gap: 1.75rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
    position: relative;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item:last-child {
    border-bottom: none;
}

.service-image {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    opacity: 0.88;
    filter: grayscale(100%);
    transition:
        opacity 820ms cubic-bezier(0.4, 0.12, 0.2, 1),
        transform 820ms cubic-bezier(0.4, 0.12, 0.2, 1),
        filter 820ms cubic-bezier(0.4, 0.12, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 6, 2, 0.82);
    opacity: 0;
    transition: opacity 900ms cubic-bezier(0.4, 0.12, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.service-overlay-list {
    position: absolute;
    inset: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    color: var(--parchment);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 740ms cubic-bezier(0.4, 0.12, 0.2, 1), transform 740ms cubic-bezier(0.4, 0.12, 0.2, 1);
    transition-delay: 140ms;
}

.service-overlay-list__title {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--accent);
}

.service-overlay-list ul {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
    list-style: disc;
}

.typewriter-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.45rem;
}

.typewriter-list li {
    position: relative;
    padding-left: 1.1rem;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    white-space: normal;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.45;
}

.typewriter-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.9;
}

.service-item.is-open .typewriter-list li {
    animation: typewriterIn 0.9s steps(24) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes typewriterIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.service-trigger {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 240ms ease, background 240ms ease, color 240ms ease, transform 200ms ease;
}

.service-trigger::after {
    content: "✦";
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.7;
    transition: transform 200ms ease;
}

.service-trigger:hover,
.service-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.service-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.service-item.is-open .service-trigger::after {
    transform: rotate(90deg);
}

.service-item.is-open .service-image::after {
    opacity: 1;
}

.service-item.is-open .service-overlay-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.service-item.is-open .service-image {
    opacity: 0.7;
    filter: grayscale(100%);
    transform: scale(0.995);
}

.service-item:hover .service-image {
    filter: grayscale(0%);
}

/* Hide native dropdown now that we use custom trigger/overlay */
.service-dropdown {
    display: none;
}

/* Alternate layout for even service items */
.service-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-item:nth-child(even) .service-content {
    order: 1;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.service-number {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
}

.service-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.service-bar {
    height: clamp(28px, 4vw, 52px);
    border-radius: 12px;
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0,
        #1a1a1a 14px,
        #0a0a0a 14px,
        #0a0a0a 28px
    );
    position: relative;
    overflow: hidden;
}

.service-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    animation: serviceSweep 3.2s ease-in-out infinite;
}

.service-bar--wide {
    width: 100%;
}

.service-bar--short {
    width: 70%;
}

.service-tagline {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.25rem 0 0 0;
}

.service-desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 500ms ease-out, color 500ms ease-out;
}

.service-item:hover .service-desc,
.service-item:focus-within .service-desc {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.92);
}

.service-item:hover .service-bar::after,
.service-item:focus-within .service-bar::after {
    animation-duration: 2.4s;
}

.service-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.5rem;
    transition: background 400ms ease-out, border-color 400ms ease-out;
}

.service-dropdown:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-dropdown summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 400ms ease-out;
}

.service-dropdown summary:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Commission section: simplified timeline presentation */
#commissions .services-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

#commissions .services-grid::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

#commissions .service-item {
    display: block;
    padding: 0 0 0 2.5rem;
    border: none;
    border-bottom: none;
    box-shadow: none;
    grid-template-columns: none;
    gap: 0.75rem;
    position: relative;
}

#commissions .service-item:last-child {
    padding-bottom: 0;
}

#commissions .service-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

#commissions .service-content {
    gap: 0.5rem;
}

#commissions .service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
}

#commissions .service-content h3 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

#commissions .service-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Twin Reserve Funds */
#coffers .reserve-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#coffers .reserve-column {
    padding: 1.35rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

#coffers .reserve-column:hover,
#coffers .reserve-column:focus-within {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

#coffers .reserve-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.6rem;
}

#coffers .reserve-chip--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.68);
}

#coffers .reserve-column h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

#coffers .reserve-column p {
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

#coffers .reserve-points {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.76);
    display: grid;
    gap: 0.35rem;
}

/* Governance & Business Model */
#business .governance-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

#business .governance-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

#business .governance-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

#business .governance-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
    margin-top: 0.2rem;
}

#business .governance-content {
    display: grid;
    gap: 0.35rem;
}

#business .governance-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-body);
    letter-spacing: 0.2em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

#business .governance-content h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

#business .governance-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

#business .governance-content ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.76);
    display: grid;
    gap: 0.3rem;
}

.service-dropdown summary::-webkit-details-marker {
    display: none;
}

.service-dropdown summary::after {
    content: "+";
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 400ms ease-out, color 400ms ease-out;
}

.service-dropdown summary:hover::after {
    color: rgba(255, 255, 255, 0.8);
}

.service-dropdown[open] summary::after {
    content: "–";
    transform: rotate(180deg);
}

.service-dropdown__content {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    animation: dropdownFade 500ms ease-out;
}

.service-dropdown__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-dropdown__content p strong {
    color: rgba(255, 255, 255, 0.95);
}

.service-dropdown__content ul {
    margin: 0;
    padding-left: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-dropdown__content li {
    margin-bottom: 0.5rem;
}

/* Process Section */
.services-process {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-process__title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 3rem 0;
    color: var(--accent);
}

.services-process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.process-step {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 400ms ease-out;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.process-step__number {
    display: block;
    font-family: var(--font-title);
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.process-step h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.75rem 0;
}

.process-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes serviceSweep {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .service-bar::after {
        animation: none;
    }

    .service-item:hover .service-desc,
    .service-item:focus-within .service-desc {
        transform: none;
    }
}

/* Image Lightbox Modal */
.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
    z-index: 9999;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.image-modal__content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    animation: modalPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-modal__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
}

.image-modal__close:hover {
    transform: scale(1.1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .public-portfolio {
        grid-template-columns: 1fr;
    }

    .services-process__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact Pillars Layout */
.pillars-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-compact {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pillar-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--parchment);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pillar-compact:hover .pillar-number {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pillar-compact h3 {
    margin: 1rem 0 0.75rem 0;
    font-size: 1.2rem;
    color: var(--parchment);
    font-weight: 600;
}

.pillar-compact p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--parchment);
    opacity: 0.9;
    margin: 0;
}

/* Temple Illustration */
.temple-image {
    max-width: 860px;
    margin: 3rem auto 2.5rem;
    display: flex;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate; /* keeps blend-mode contained to this block */
}

.temple-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    background: transparent;
    mix-blend-mode: multiply; /* drops white backgrounds so the dark page shows through */
    filter: grayscale(1) contrast(1.08) brightness(1.05);
}

/* Pillars Legend */
.pillars-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.pillar-item strong {
    display: block;
    font-size: 1rem;
    color: var(--parchment);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pillar-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--parchment);
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 768px) {
    .temple-image {
        margin: 2.5rem auto 2rem;
        padding: 0.75rem;
    }

    .pillars-legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .temple-image {
        margin: 2rem auto 1.5rem;
        padding: 0.6rem;
    }

    .pillar-item {
        padding: 1rem;
    }

    .pillar-item strong {
        font-size: 0.9rem;
    }

    .pillar-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 720px) {
    .pillars-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 280px;
        order: -1 !important;
    }

    .service-content {
        order: 0 !important;
    }

    .service-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .services-process__steps {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 1.75rem 1.25rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        display: none;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .public-footer {
        margin: 3rem 0 0 0;
        padding: 2.5rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    body.public-site .nav__links a {
        border-width: 1px;
    }
}

/* ==========================================
   HORIZONTAL SCROLL EXPERIENCE
   ========================================== */

/* Base horizontal scroll setup */
html,
body.public-site.horizontal-scroll {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* Main horizontal container */
.horizontal-wrapper {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 1200vw; /* 12 panels x 100vw each */
    overflow: hidden;
    position: relative;
}

/* Hide default scrollbar, show custom */
.horizontal-wrapper::-webkit-scrollbar {
    height: 4px;
}

.horizontal-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.horizontal-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.horizontal-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Each horizontal panel/section */
.h-panel {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem clamp(2rem, 6vw, 5rem);
    box-sizing: border-box;
}

/* Panel fade transition states */
.h-panel .h-panel__content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.h-panel.active .h-panel__content {
    opacity: 1;
    transform: translateX(0);
}

.h-panel.fade-out .h-panel__content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

/* Panel backgrounds */
.h-panel--hero {
    background: radial-gradient(ellipse at 30% 20%, rgba(20, 20, 20, 1) 0%, #000 70%);
}

.h-panel--about {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
}

.h-panel--members {
    background: radial-gradient(circle at 70% 80%, rgba(15, 15, 15, 1) 0%, #000 60%);
}

.h-panel--services {
    background: linear-gradient(180deg, #050505 0%, #000 100%);
}

.h-panel--portfolio {
    background: radial-gradient(ellipse at 50% 50%, rgba(10, 10, 10, 1) 0%, #000 80%);
}

.h-panel--contact {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
}

/* Panel inner content wrapper */
.h-panel__content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: panelFadeIn 0.8s ease-out;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fixed navigation for horizontal scroll */
.h-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    pointer-events: none;
}

.h-nav > * {
    pointer-events: auto;
}

.h-nav__logo {
    position: absolute;
    left: clamp(1.5rem, 4vw, 3rem);
    height: 40px;
    width: auto;
    filter: brightness(1.1);
}

.h-nav__links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-nav__links a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
}

.h-nav__links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.h-nav__links a:hover::after,
.h-nav__links a.active::after {
    width: 100%;
}

.h-nav__links a:hover,
.h-nav__links a.active {
    color: #fff;
}

.h-nav__cta {
    padding: 0.5rem 1.2rem;
    background: #fff;
    color: #000;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(
        6px 0%, calc(100% - 6px) 0%,
        100% 6px, 100% calc(100% - 6px),
        calc(100% - 6px) 100%, 6px 100%,
        0% calc(100% - 6px), 0% 6px
    );
}

.h-nav__cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Progress bar */
.h-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.h-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #fff);
    width: 0%;
    transition: width 0.3s ease-out;
}

/* Section dots navigation */
.h-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.h-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.h-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0);
    white-space: nowrap;
    transition: all 0.3s ease;
    pointer-events: none;
}

.h-dot:hover::after,
.h-dot.active::after {
    color: rgba(255, 255, 255, 0.7);
}

.h-dot:hover,
.h-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Scroll hint */
.h-scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.h-scroll-hint__arrow {
    display: flex;
    gap: 0.3rem;
}

.h-scroll-hint__arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(-45deg);
    animation: arrowSlide 1.5s ease-in-out infinite;
}

.h-scroll-hint__arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.h-scroll-hint__arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes arrowSlide {
    0%, 100% { transform: rotate(-45deg) translateX(0); opacity: 0.4; }
    50% { transform: rotate(-45deg) translateX(4px); opacity: 1; }
}

/* Horizontal panel-specific overrides */
.h-panel .public-hero--compact {
    padding: 0;
    margin: 0;
    border: none;
    position: relative;
}

/* Lamp Light Effect - cone spotlight from above */
.lamp-light {
    position: absolute;
    top: -500px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: linear-gradient(
        180deg,
        rgba(255, 240, 210, 0.3) 0%,
        rgba(255, 235, 200, 0.18) 30%,
        rgba(255, 225, 180, 0.08) 60%,
        rgba(255, 210, 150, 0.02) 85%,
        transparent 100%
    );
    clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 1;
    animation: lampFlicker 15s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.3) 15%, black 35%, black 65%, rgba(0,0,0,0.3) 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.3) 15%, black 35%, black 65%, rgba(0,0,0,0.3) 85%, transparent 100%);
}

.lamp-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 240, 210, 0.1) 0%,
        rgba(255, 230, 190, 0.05) 40%,
        rgba(255, 220, 170, 0.02) 70%,
        transparent 100%
    );
    clip-path: polygon(47% 0%, 53% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

@keyframes lampFlicker {
    0%, 100% { opacity: 1; }
    2% { opacity: 1; }
    2.2% { opacity: 0.4; }
    2.4% { opacity: 1; }
    2.6% { opacity: 0.6; }
    2.8% { opacity: 1; }
    40% { opacity: 1; }
    40.2% { opacity: 0.3; }
    40.4% { opacity: 0.9; }
    40.6% { opacity: 0.5; }
    40.8% { opacity: 1; }
    41% { opacity: 0.7; }
    41.2% { opacity: 1; }
    75% { opacity: 1; }
    75.2% { opacity: 0.8; }
    75.4% { opacity: 1; }
}

.h-panel .public-hero__logo {
    width: min(600px, 80%);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
    animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
        opacity: 0.92;
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.3))
               drop-shadow(0 0 100px rgba(255, 255, 255, 0.1));
        opacity: 1;
    }
}

.h-panel .public-hero__subtitle {
    margin-bottom: 1rem;
}

.h-panel .public-hero__lede {
    margin-bottom: 2rem;
}

/* About panel layout */
.h-panel--about .h-panel__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.h-about__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.h-about__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.h-about__desc {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.h-about__desc strong {
    color: var(--accent);
}

.h-about__image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.h-about__image:hover {
    filter: grayscale(0%);
}

/* Members panel */
.h-panel--members .h-panel__content {
    text-align: center;
}

.h-panel--members .members-title {
    margin-bottom: 0.5rem;
}

.h-panel--members .members-grid {
    justify-content: center;
    max-width: 900px;
    margin: 2rem auto 0;
}

/* Services panel - horizontal cards */
.h-panel--services .h-panel__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.h-services__header {
    text-align: center;
    margin-bottom: 2rem;
}

.h-services__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem 0;
}

.h-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
}

.h-service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.h-service-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.h-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: grayscale(30%) brightness(0.9);
}

.h-service-card:hover .h-service-card__image img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

.h-service-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.h-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.h-service-card:hover::before {
    transform: translateX(100%);
}

.h-service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.h-service-card__num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.h-service-card__title {
    font-family: var(--font-title);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.h-service-card__tagline {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
}

.h-service-card__desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Services responsive adjustments */
@media (max-width: 1200px) {
    .h-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .h-service-card__content {
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    .h-services__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .h-service-card {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* ================================================
   INDIVIDUAL SERVICE PANELS
   ================================================ */

/* Service single panel - full-screen with background */
.h-panel--service-single {
    position: relative;
}

.h-panel--service-single .h-panel__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: grayscale(40%);
    z-index: 0;
}

.h-panel--service-single .h-panel__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.9) 0%, rgba(26, 20, 16, 0.7) 50%, rgba(26, 20, 16, 0.85) 100%);
}

.h-panel--service-single .h-panel__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
}

/* Service single layout */
.service-single {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.service-single__header {
    position: sticky;
    top: 20vh;
}

.service-single__num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.service-single__title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.service-single__tagline {
    font-family: var(--font-title);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.service-single__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-single__desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.service-single__list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.service-single__list li {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.5rem;
    position: relative;
}

.service-single__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.7;
}

/* Service panels responsive */
@media (max-width: 900px) {
    .service-single {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-single__header {
        position: relative;
        top: 0;
    }
    
    .service-single__list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 300px;
        margin: 1rem auto;
    }
    
    .service-single__body {
        align-items: center;
    }
}

/* Portfolio panel - showcase style */
.h-panel--portfolio .h-panel__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
}

.h-portfolio__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.h-portfolio__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.h-portfolio__desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.h-portfolio__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.h-portfolio-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.h-portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.h-portfolio-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.h-portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.h-portfolio-card:hover .h-portfolio-card__overlay {
    opacity: 1;
}

.h-portfolio-card__title {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.h-portfolio-card__cta {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.5rem;
    display: block;
}

.h-portfolio__hint {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Coming soon portfolio cards */
.h-portfolio-card--coming {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    cursor: default;
}

.h-portfolio-card--coming p {
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.5rem 0;
}

.h-portfolio-card--coming span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* ================================================
   CASE STUDY PANELS
   ================================================ */

.h-panel--case-study {
    position: relative;
}

.h-panel--case-study .h-panel__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
}

/* Case study layout - image left, content right */
.case-study {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Visual side with image */
.case-study__visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0; /* Prevent grid blowout */
    max-width: 450px;
    align-items: center;
}

.case-study__image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-study__image-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(255, 255, 255, 0.05);
}

.case-study__image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(30, 30, 30, 0.8) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.case-study__image-frame::after {
    content: '● ● ●';
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 8px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.case-study__image-frame img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
}

/* Case Study Carousel - Infinite Rolling */
.case-study__carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.carousel__track-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    background: #000;
}

.carousel__track {
    display: flex;
    gap: 1rem;
    animation: scrollCarousel 25s linear infinite;
    width: max-content;
}

.carousel__track:hover {
    animation-play-state: paused;
}

.carousel__track img {
    height: 380px;
    width: auto;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: contain;
    background: #0a0a0a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel__track img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Case Study Device Mockup */
.case-study__device {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-study__device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 12px 12px 14px 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateX(2deg) rotateY(-3deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-study__device-frame:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.02);
    box-shadow: 
        0 60px 120px -25px rgba(0, 0, 0, 0.8),
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(255, 200, 100, 0.1);
}

.case-study__device-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a, #0a0a0a);
    border-radius: 3px;
    z-index: 2;
}

.case-study__device-notch::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #2a2a2a 30%, #1a1a1a 70%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.case-study__device-screen {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.case-study__device-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.case-study__device-screen img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
}

.case-study__device-reflection {
    width: 85%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    margin-top: 20px;
    filter: blur(10px);
}

/* Case Study - Reversed Layout (content left, visual right) */
.case-study--reverse {
    grid-template-columns: 1fr auto;
}

.case-study--reverse .case-study__content {
    order: 1;
}

.case-study--reverse .case-study__visual {
    order: 2;
}

/* Laptop Device Mockup */
.case-study__device-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-study__device--laptop {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-study__laptop-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-radius: 16px 16px 0 0;
    padding: 16px 16px 12px 16px;
    box-shadow: 
        0 -5px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: perspective(1200px) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-study__laptop-frame:hover {
    transform: perspective(1200px) rotateX(2deg) scale(1.02);
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(100, 180, 255, 0.08);
}

.case-study__laptop-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #2a2a2a 30%, #1a1a1a 70%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.case-study__laptop-screen {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.case-study__laptop-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.case-study__laptop-screen img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
}

.case-study__laptop-base {
    width: 110%;
    height: 14px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 40%, #0d0d0d 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case-study__laptop-base::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 2px;
}

.case-study__laptop-base::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    filter: blur(8px);
}

/* Alternative case study panel with subtle background */
.h-panel--case-study-alt {
    background: linear-gradient(135deg, rgba(20, 40, 60, 0.3) 0%, transparent 50%);
}

/* Ski tools panel with winter theme */
.h-panel--case-study-ski {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(100, 180, 220, 0.05) 50%, transparent 100%);
}

/* Cascade image display - shows the multi-device mockup as-is */
.case-study__device-stack--cascade {
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-study__cascade-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-study__cascade-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 60px rgba(135, 206, 235, 0.15);
}

.case-study__cascade-image img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.case-study__actions {
    display: flex;
    gap: 1rem;
}

/* Content side */
.case-study__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0; /* Prevent grid blowout */
}

.case-study__header {
    margin-bottom: 0.5rem;
}

.case-study__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
}

.case-study__title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.case-study__tagline {
    font-family: var(--font-title);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0;
}

.case-study__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-study__section h3 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.5rem 0;
}

.case-study__section p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.case-study__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.case-study__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.case-study__section ul li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1rem;
    position: relative;
}

.case-study__section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.6;
    font-size: 0.7rem;
}

.case-study__outcome {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent);
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
}

.case-study__outcome p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

/* Case study responsive */
@media (max-width: 1000px) {
    .case-study {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study--reverse {
        grid-template-columns: 1fr;
    }
    
    .case-study--reverse .case-study__content {
        order: 2;
    }
    
    .case-study--reverse .case-study__visual {
        order: 1;
    }
    
    .case-study__visual {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .case-study__carousel {
        max-width: 100%;
    }
    
    .carousel__track img {
        height: 280px;
    }
    
    .case-study__image-frame {
        transform: none;
    }
    
    .case-study__laptop-frame {
        transform: none;
    }
    
    .case-study__laptop-screen img {
        max-width: 100%;
    }
    
    .case-study__content {
        text-align: center;
    }
    
    .case-study__grid {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .case-study__outcome {
        text-align: left;
    }
    
    .case-study__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Contact panel */
.h-panel--contact .h-panel__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
}

.h-contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.h-contact__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.h-contact__desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.h-contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.h-contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.h-contact__label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.h-contact__value {
    font-size: 1rem;
    color: #fff;
}

.h-contact__value a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.h-contact__value a:hover {
    opacity: 0.7;
}

/* Mobile responsive for horizontal scroll */
@media (max-width: 1024px) {
    .h-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-panel--portfolio .h-panel__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .h-portfolio__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .horizontal-wrapper {
        scroll-snap-type: none;
    }
    
    .h-panel {
        padding: 6rem 1.5rem 3rem;
    }
    
    .h-panel::before {
        font-size: clamp(5rem, 15vw, 10rem);
        right: 1rem;
    }
    
    .h-nav {
        padding: 1rem;
    }
    
    .h-nav__links {
        display: none;
    }
    
    .h-dots {
        right: 1rem;
        gap: 0.75rem;
    }
    
    .h-dot {
        width: 10px;
        height: 10px;
    }
    
    .h-dot::after {
        display: none;
    }
    
    .h-panel--about .h-panel__content,
    .h-panel--contact .h-panel__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .h-about__image {
        height: 40vh;
        order: -1;
    }
    
    .h-services__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .h-portfolio__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h-scroll-hint {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .h-panel {
        min-width: 100vw;
        padding: 5rem 1rem 2rem;
    }
    
    .h-portfolio__cards {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   PORTRAIT ORIENTATION OVERLAY
   Show a rotate-device prompt on mobile portrait
   ================================================ */
.portrait-overlay {
    display: none;
}

@media (max-width: 900px) and (orientation: portrait) {
    .portrait-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        color: #fff;
        pointer-events: auto;
    }

    .portrait-overlay__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        text-align: center;
        max-width: 340px;
    }

    .portrait-overlay__icon {
        animation: rotateHint 2.5s ease-in-out infinite;
        color: rgba(255, 255, 255, 0.7);
    }

    @keyframes rotateHint {
        0%, 100% { transform: rotate(0deg); }
        25% { transform: rotate(-90deg); }
        50%, 75% { transform: rotate(-90deg); }
        100% { transform: rotate(0deg); }
    }

    .portrait-overlay__title {
        font-family: var(--font-title);
        font-size: 1.6rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin: 0;
        color: var(--accent);
    }

    .portrait-overlay__text {
        font-family: var(--font-body);
        font-size: 0.95rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }
}

/* ================================================
   MOBILE LANDSCAPE — fit content within viewport
   Targets phones in landscape where height is limited
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {

    /* Reduce panel padding so content has more room */
    .h-panel {
        padding: 1rem clamp(1rem, 4vw, 3rem);
    }

    /* --- HERO --- */
    .h-panel .public-hero__logo {
        width: min(320px, 60%);
        margin-bottom: 0.5rem;
    }

    .h-panel .public-hero__subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .h-panel .public-hero__lede {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .lamp-light {
        top: -400px;
        width: 600px;
        height: 400px;
    }

    /* --- ABOUT --- */
    .h-panel--about .h-panel__content {
        gap: 2rem;
    }

    .h-about__title {
        font-size: 1.4rem;
    }

    .h-about__desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .h-about__text {
        gap: 0.6rem;
    }

    .h-about__image {
        height: 35vh;
    }

    /* --- MEMBERS --- */
    .h-panel--members .members-title {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .members-subtitle {
        font-size: 0.8rem;
    }

    .h-panel--members .members-grid {
        margin-top: 0.75rem;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    .member-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .member-image {
        max-width: 120px;
        aspect-ratio: 1 / 1;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-title {
        font-size: 0.7rem;
    }

    .member-bio {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-top: 0.25rem;
    }

    .member-skills {
        gap: 0.3rem;
    }

    .skill-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

    .member-links {
        gap: 0.5rem;
    }

    .member-link {
        font-size: 0.65rem;
    }

    /* --- SERVICE SINGLE PANELS --- */
    .service-single {
        gap: 2rem;
    }

    .service-single__title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }

    .service-single__tagline {
        font-size: 0.75rem;
    }

    .service-single__desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .service-single__list {
        gap: 0.4rem 1.5rem;
        margin: 0.5rem 0;
    }

    .service-single__list li {
        font-size: 0.7rem;
    }

    /* --- PORTFOLIO --- */
    .h-panel--portfolio .h-panel__content {
        gap: 2rem;
    }

    .h-portfolio__title {
        font-size: 1.4rem;
    }

    .h-portfolio__desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .h-portfolio__cards {
        gap: 0.5rem;
    }

    .h-portfolio-card {
        aspect-ratio: 16/8;
    }

    /* --- CASE STUDIES --- */
    .case-study {
        gap: 2rem;
    }

    .case-study__title {
        font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    }

    .case-study__tagline {
        font-size: 0.75rem;
    }

    .case-study__body {
        gap: 0.5rem;
    }

    .case-study__section h3 {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .case-study__section p {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .case-study__section ul li {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .case-study__grid {
        gap: 0.75rem;
    }

    .case-study__outcome {
        padding: 0.5rem 0.75rem;
    }

    .case-study__outcome p {
        font-size: 0.65rem;
    }

    .case-study__device-screen img {
        max-width: 260px;
    }

    .case-study__device-frame {
        padding: 8px 8px 10px 8px;
        border-radius: 16px;
    }

    .case-study__laptop-screen img {
        max-width: 360px;
    }

    .case-study__cascade-image img {
        max-width: 360px;
    }

    .case-study__actions {
        gap: 0.5rem;
    }

    .case-study__actions .public-button {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    /* --- CONTACT --- */
    .h-panel--contact .h-panel__content {
        gap: 2rem;
        align-items: start;
    }

    .h-contact__title {
        font-size: 1.4rem;
    }

    .h-contact__desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .h-contact__info {
        gap: 1rem;
    }

    .h-contact__details {
        gap: 0.75rem;
    }

    .h-contact__label {
        font-size: 0.6rem;
    }

    .h-contact__value {
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-form label {
        font-size: 0.7rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .form-group {
        gap: 0.25rem;
    }

    .captcha-question {
        font-size: 1rem;
    }

    .captcha-prompt {
        font-size: 0.7rem;
    }

    /* General button sizing */
    .public-button {
        font-size: 0.7rem;
        padding: 0.6rem 1.5rem;
    }

    /* Navigation */
    .h-nav {
        padding: 0.5rem 1rem;
    }

    .h-nav__logo {
        height: 28px;
    }

    .h-dots {
        gap: 0.5rem;
    }

    .h-dot {
        width: 8px;
        height: 8px;
    }

    .h-scroll-hint {
        bottom: 0.5rem;
        font-size: 0.65rem;
    }
}
