:root {
    --paper: #fbf8fe;
    --surface: #ffffff;
    --ink: #2a1430;
    --muted: #66566f;
    --line: #e5daf0;
    --plum: #2b1626;
    --plum-2: #8c6bc8;
    --plum-ink: #fbf1f5;
    --plum-muted: #d9c6d6;
    --lav: #cdb8ec;
    --lav-2: #e6dbf7;
    --hero-from: #f4edfb;
    --hero-to: #d6c3f2;
    --hero-ink: #2a1430;
    --hero-muted: #5c486b;
    --hero-fog: #ddccf4;
    --hero-dust: #ffffff;
    --hero-line: rgba(42, 20, 48, 0.2);
    --hero-halo: 0.9;
    --red: #c21e3a;
    --red-ink: #ffffff;
    --rose: #f1eafb;
    --focus: #c21e3a;
    --serif: "Young Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --wrap: 1280px;
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #150b14;
        --surface: #201020;
        --ink: #f6ecf1;
        --muted: #c2abc0;
        --line: #3e2240;
        --plum: #1b0e19;
        --plum-2: #7b5ab8;
        --plum-ink: #fbf1f5;
        --plum-muted: #cdb8cc;
        --hero-from: #22122d;
        --hero-to: #3c2354;
        --hero-ink: #f6ecf1;
        --hero-muted: #cdb8d8;
        --hero-fog: #31204a;
        --hero-dust: #d9c2e3;
        --hero-line: rgba(255, 255, 255, 0.18);
        --hero-halo: 0.22;
        --red: #f0435f;
        --red-ink: #1a0812;
        --rose: #2a1630;
        --focus: #ff6b83;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #150b14;
    --surface: #201020;
    --ink: #f6ecf1;
    --muted: #c2abc0;
    --line: #3e2240;
    --plum: #1b0e19;
    --plum-2: #7b5ab8;
    --plum-ink: #fbf1f5;
    --plum-muted: #cdb8cc;
    --hero-from: #22122d;
    --hero-to: #3c2354;
    --hero-ink: #f6ecf1;
    --hero-muted: #cdb8d8;
    --hero-fog: #31204a;
    --hero-dust: #d9c2e3;
    --hero-line: rgba(255, 255, 255, 0.18);
    --hero-halo: 0.22;
    --red: #f0435f;
    --red-ink: #1a0812;
    --rose: #2a1630;
    --focus: #ff6b83;
    color-scheme: dark;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
}
a {
    color: inherit;
}
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
}
h1[tabindex="-1"]:focus,
main:focus {
    outline: none;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: var(--surface);
    padding: 0.6rem 1rem;
}
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    color: var(--hero-ink);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.site-header.solid {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px -22px rgba(42, 20, 48, 0.45);
}
.bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
}
.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-right: auto;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand b {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.005em;
}
.brand span {
    font-size: 0.78rem;
    color: var(--hero-muted);
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
}
.nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.nav-item {
    position: relative;
}
.nav-top {
    background: none;
    border: 0;
    color: inherit;
    font: 500 0.95rem/1 var(--sans);
    padding: 0.7rem 0.55rem;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 6px;
}
.nav-top:hover {
    background: rgba(120, 90, 170, 0.14);
}
.nav-top[aria-current="true"] {
    box-shadow: inset 0 -2px 0 var(--red);
}
.nav-top svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}
.menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem;
    box-shadow: 0 18px 40px -18px rgba(48, 21, 47, 0.45);
    display: none;
}
.nav-item:hover .menu,
.nav-item:focus-within .menu,
.nav-item.open .menu {
    display: block;
}
.menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}
.menu a:hover,
.menu a[aria-current="page"] {
    background: var(--rose);
}
.menu a[aria-current="page"] {
    color: var(--red);
    font-weight: 600;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font: 600 0.95rem/1 var(--sans);
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-red {
    background: var(--red);
    color: var(--red-ink)!important;
}
.btn-red:hover {
    filter: brightness(1.08);
}
.btn-line {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}
.btn-line:hover {
    background: rgba(127, 127, 127, 0.12);
}
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--hero-line);
    color: inherit;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font: 600 0.9rem var(--sans);
    cursor: pointer;
}
.header-cta {
    white-space: nowrap;
}
@media (max-width: 1320px) {
    .bar {
        gap: 0.6rem;
    }
    .brand span {
        display: none;
    }
    .nav-top {
        font-size: 0.9rem;
        padding: 0.7rem 0.42rem;
    }
    .header-cta {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: inline-flex;
    }
    .header-cta {
        display: none;
    }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
        max-height: calc(100vh - 72px);
        overflow: auto;
        border-top: 1px solid var(--line);
    }
    .nav.open {
        display: flex;
    }
    .nav-top {
        width: 100%;
        justify-content: space-between;
        padding: 0.9rem 0;
        font-size: 1.05rem;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-top:hover {
        background: none;
    }
    .nav-top[aria-current="true"] {
        box-shadow: none;
        color: var(--red);
    }
    .menu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        color: inherit;
        padding: 0.25rem 0 0.75rem 0.75rem;
        min-width: 0;
    }
    .nav-item:hover .menu,
    .nav-item:focus-within .menu {
        display: none;
    }
    .nav-item.open .menu {
        display: block;
    }
    .menu a:hover {
        background: var(--rose);
    }
    .menu a[aria-current="page"] {
        background: var(--rose);
        color: var(--red);
    }
    .nav .mobile-cta {
        display: flex;
        margin-top: 1rem;
    }
}
.nav .mobile-cta {
    display: none;
}

/* ---------- Hero (home) ---------- */
.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(165deg, var(--hero-from) 0%, var(--hero-to) 100%);
    color: var(--hero-ink);
}
.scene3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}
.hero > .wrap,
.page-hero > .wrap {
    position: relative;
    z-index: 1;
}
.hero {
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
}
.hero > .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    padding: calc(72px + clamp(1.5rem, 4vw, 3rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.6vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0 0 1.75rem;
    max-width: 11ch;
}
.reading-line {
    display: block;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    width: 7.5rem;
    margin: 0 0 1.75rem;
    transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
    .reading-line.sweep {
        animation: track 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both;
    }
    @keyframes track {
        0% {
            transform: scaleX(0.08);
        }
        60% {
            transform: scaleX(1.25);
        }
        100% {
            transform: scaleX(1);
        }
    }
}
.hero-lede {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--hero-muted);
    max-width: 34rem;
    margin: 0 0 2.25rem;
}
.hero-lede strong {
    color: var(--hero-ink);
    font-weight: 600;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.hero-anchor-home {
    position: relative;
    min-height: clamp(400px, 46vw, 640px);
    display: grid;
    place-items: center;
}
.portrait {
    width: min(70%, 340px);
    aspect-ratio: 4/5;
    background: var(--plum-2) center top/cover no-repeat;
    border-radius: 220px 220px 0 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.monogram {
    font-family: var(--serif);
    font-size: clamp(5rem, 11vw, 9rem);
    color: rgba(255, 255, 255, 0.16);
    letter-spacing: -0.04em;
}
.has3d .portrait {
    visibility: hidden;
}
.portrait-pick {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: var(--plum-muted);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}
.portrait-pick:focus-within,
.portrait-pick:hover {
    color: var(--plum-ink);
    border-color: var(--plum-ink);
}
.portrait-pick input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}
.creds-strip {
    border-top: 1px solid var(--hero-line);
    padding: 1.1rem 0;
    font-size: 0.95rem;
    color: var(--hero-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
}
.creds-strip b {
    color: var(--hero-ink);
    font-weight: 600;
}
@media (max-width: 860px) {
    .hero {
        min-height: 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-anchor-home {
        min-height: 400px;
    }
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
    padding: calc(72px + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2.5rem, 5vw, 3.75rem);
    min-height: clamp(380px, 42vw, 500px);
}
.hero-anchor {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 44%;
    pointer-events: none;
}
@media (max-width: 860px) {
    .hero-anchor {
        top: auto;
        left: 0;
        width: 100%;
        height: 190px;
    }
    .page-hero > .wrap {
        padding-bottom: 210px;
    }
}
.crumbs {
    font-size: 0.88rem;
    color: var(--hero-muted);
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.crumbs a {
    color: var(--hero-muted);
    text-decoration: none;
}
.crumbs a:hover {
    color: var(--hero-ink);
    text-decoration: underline;
}
.crumbs span[aria-hidden] {
    opacity: 0.5;
}
.page-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.8vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    max-width: 18ch;
    text-transform: capitalize;
}
.page-hero .reading-line {
    margin-bottom: 1.4rem;
}
.page-hero p.lede {
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    color: var(--hero-muted);
    max-width: 34rem;
    margin: 0;
}

/* ---------- Content ---------- */
.content {
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
.prose {
    max-width: 44rem;
}
.prose h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 1.2;
    margin: 2.75rem 0 0.85rem;
    color: var(--ink);
}
.prose h2:first-child {
    margin-top: 0;
}
.prose h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 1.75rem 0 0.4rem;
}
.prose p {
    margin: 0 0 1.1rem;
}
.prose ul {
    padding-left: 1.15rem;
    margin: 0 0 1.25rem;
}
.prose li {
    margin: 0.3rem 0;
}
.prose li::marker {
    color: var(--red);
}
.prose a {
    color: var(--ink);
    text-underline-offset: 3px;
}
.prose blockquote {
    margin: 2rem 0;
    padding: 0 0 0 1.25rem;
    border-left: 4px solid var(--red);
    font-family: var(--serif);
    font-size: 1.4rem;
    line-height: 1.4;
}

.aside {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 96px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (max-width: 960px) {
    .aside {
        position: static;
    }
}
.aside-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem;
}
.aside-box h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}
.aside-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aside-box li a {
    display: block;
    padding: 0.45rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    font-size: 0.97rem;
}
.aside-box li:last-child a {
    border-bottom: 0;
}
.aside-box li a:hover {
    color: var(--red);
}
.aside-box li a[aria-current="page"] {
    color: var(--red);
    font-weight: 600;
}
.aside-cta {
    background: var(--red);
    color: var(--red-ink);
    border-radius: 14px;
    padding: 1.4rem;
}
.aside-cta p {
    margin: 0 0 1rem;
    font-weight: 500;
}
.aside-cta .btn {
    background: var(--red-ink);
    color: var(--red);
}

/* rows: topics, credentials, entries */
.rows {
    border-top: 1px solid var(--line);
    margin: 1.25rem 0 2rem;
}
.row {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.5rem 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.row h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.3;
}
.row p {
    margin: 0;
    color: var(--muted);
}
@media (max-width: 640px) {
    .row {
        grid-template-columns: 1fr;
    }
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    counter-reset: t;
}
.timeline li {
    position: relative;
    padding: 0 0 1.75rem 2.5rem;
    margin: 0;
    border-left: 2px solid var(--line);
    margin-left: 0.6rem;
}
.timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--red);
}
.timeline .when {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red);
    display: block;
}
.timeline h3 {
    margin: 0.15rem 0 0.3rem;
}
.timeline p {
    margin: 0;
    color: var(--muted);
}

.todo {
    display: inline;
    background: var(--rose);
    border: 1px dashed var(--red);
    border-radius: 5px;
    padding: 0.05rem 0.4rem;
    font-size: 0.92em;
    color: var(--ink);
}
.todo-block {
    background: var(--rose);
    border: 1px dashed var(--red);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.97rem;
}
.todo-block strong {
    display: block;
    margin-bottom: 0.25rem;
}
.todo-block p {
    margin: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.35rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
a.card:hover {
    border-color: var(--red);
}
.card h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.25;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}
.book {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}
.cover {
    aspect-ratio: 2/3;
    border-radius: 4px 10px 10px 4px;
    background: var(--plum-2);
    box-shadow: inset 8px 0 0 rgba(0, 0, 0, 0.18);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.75rem;
}
@media (max-width: 540px) {
    .book {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 1rem;
    }
}

/* ---------- Home sections ---------- */
.home-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.home-section + .home-section {
    border-top: 1px solid var(--line);
}
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}
.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.section-intro {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 32rem;
    margin: 0 0 1.5rem;
}
.roles {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.roles li {
    border-bottom: 1px solid var(--line);
}
.roles a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 1.2rem 0;
    text-decoration: none;
}
.roles b {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.roles span {
    color: var(--muted);
    font-size: 0.97rem;
    text-align: right;
}
.roles a:hover b {
    color: var(--red);
}
@media (max-width: 560px) {
    .roles a {
        grid-template-columns: 1fr;
    }
    .roles span {
        text-align: left;
    }
}
.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}
.expertise-list a {
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 190px;
}
.expertise-list a:hover {
    background: var(--rose);
}
.expertise-list h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.25;
}
.expertise-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 760px) {
    .brands {
        grid-template-columns: 1fr;
    }
}
.brand-panel {
    border-radius: 18px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 280px;
}
.brand-panel h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    line-height: 1.15;
    margin: 0;
}
.brand-panel p {
    margin: 0;
    max-width: 30rem;
}
.brand-panel .go {
    margin-top: auto;
    font-weight: 600;
}
.bp-plum {
    background: linear-gradient(150deg, var(--lav-2), var(--lav));
    color: #2a1430;
}
.bp-plum p {
    color: #4a3858;
}
.bp-red {
    background: var(--red);
    color: var(--red-ink);
}
.quote-band {
    background: var(--rose);
}
.quote-band blockquote {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.25;
    max-width: 24ch;
}
.quote-band cite {
    display: block;
    margin-top: 1.25rem;
    font-style: normal;
    color: var(--muted);
    font-size: 1rem;
    font-family: var(--sans);
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--red);
    color: var(--red-ink);
}
.cta-band .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-band h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0;
    max-width: 22ch;
    line-height: 1.15;
}
.cta-band .btn {
    background: var(--red-ink);
    color: var(--red);
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.form .full {
    grid-column: 1/-1;
}
@media (max-width: 640px) {
    .form {
        grid-template-columns: 1fr;
    }
}
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
}
.field textarea {
    min-height: 140px;
    resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
    border-color: transparent;
}
.field .err {
    color: var(--red);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    min-height: 1em;
}
.form-status {
    grid-column: 1/-1;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: var(--rose);
    display: none;
}
.form-status.show {
    display: block;
}

/* ---------- 3D components ---------- */
.progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--red);
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    z-index: -1;
}

.home-section.dark {
    background: radial-gradient(60% 90% at 50% 25%, rgba(194, 30, 58, 0.3), transparent 70%), var(--plum);
    color: var(--plum-ink);
    overflow: hidden;
    border-top: 0;
}
.dark .section-title {
    color: var(--plum-ink);
}
.dark .section-intro {
    color: var(--plum-muted);
}

.ring-stage {
    perspective: 1500px;
    perspective-origin: 50% 35%;
    height: 440px;
    position: relative;
    margin-top: 1.5rem;
}
.ring {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}
.ring-card {
    position: absolute;
    width: 300px;
    height: 340px;
    left: -150px;
    top: 0;
    transform: translateX(calc(var(--o, 0) * 290px)) translateZ(calc(var(--ao, 0) * -190px))
        rotateY(calc(var(--o, 0) * -34deg));
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 22px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-decoration: none;
    color: #2a1430;
    background: linear-gradient(150deg, #eee5fa 0%, #cdb8ec 60%, #b79ce0 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 30px 60px -25px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    opacity: calc(1 - var(--ao, 0) * 0.3);
    transition:
        transform 0.9s cubic-bezier(0.25, 0.75, 0.2, 1),
        opacity 0.8s,
        filter 0.8s;
}
.ring-card:not(.is-front) {
    filter: saturate(0.7) brightness(0.8);
}
.ring-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0;
}
.ring-card p {
    margin: 0;
    color: #4a3858;
    font-size: 1rem;
}
.ring-card .go {
    margin-top: auto;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.ring-card .go::before {
    content: "";
    width: 2rem;
    height: 3px;
    border-radius: 2px;
    background: var(--red);
}
.ring-ctrl {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.ring-ctrl button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--plum-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.ring-ctrl button:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--red-ink);
}
.ring-ctrl svg {
    width: 18px;
    height: 18px;
}
.ring-stage.static {
    height: auto;
    perspective: none;
}
.ring-stage.static .ring {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    transition: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.ring-stage.static .ring-card {
    position: static;
    width: auto;
    height: auto;
    min-height: 200px;
    transform: none;
    opacity: 1;
    filter: none;
    transition: none;
}
.ring-stage.static .ring-ctrl {
    display: none;
}

[data-tilt] {
    position: relative;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}
[data-tilt]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
[data-tilt].hovering::after {
    opacity: 1;
}
[data-tilt] h3 {
    transform: translateZ(36px);
}
[data-tilt] .go {
    transform: translateZ(22px);
}

@media (prefers-reduced-motion: no-preference) {
    html.io .reveal {
        opacity: 0;
        transform: perspective(900px) rotateX(-16deg) translateY(26px);
        transform-origin: 50% 100%;
        transition:
            opacity 0.8s ease,
            transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    html.io .reveal.in {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-tilt] {
        transform: none !important;
    }
    .ring {
        transition: none;
    }
}

/* ---------- Film ---------- */
.video-section {
    background: var(--rose);
}
.video-wrap {
    position: relative;
    max-width: 1040px;
    margin: 2rem auto 0;
    transform-style: preserve-3d;
}
.prose .video-wrap {
    margin: 1.5rem 0 2rem;
}
.video-back {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--red), #e8506a);
    transform: translate3d(16px, 16px, -40px);
    pointer-events: none;
}
.video-stage {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    background: #12080f;
    box-shadow: 0 40px 80px -40px rgba(42, 20, 48, 0.65);
}
.video-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #12080f;
}
.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 0;
    color: #fff;
    cursor: pointer;
    font: 600 1.05rem var(--sans);
    text-align: left;
    background: linear-gradient(transparent 45%, rgba(20, 8, 18, 0.6));
}
.play-disc {
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--red);
    display: grid;
    place-items: center;
    box-shadow: 0 14px 40px -10px rgba(194, 30, 58, 0.85);
    transition: transform 0.25s ease;
}
.video-play:hover .play-disc,
.video-play:focus-visible .play-disc {
    transform: scale(1.08);
}
.play-disc svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
}
.play-label {
    align-self: flex-end;
    margin-bottom: 1.45rem;
}
.video-stage.playing .video-play {
    display: none;
}
.video-msg {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(20, 8, 18, 0.8);
    color: #fff;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    display: none;
}
.video-stage.failed .video-msg {
    display: block;
}
@media (max-width: 640px) {
    .video-back {
        transform: translate3d(8px, 8px, -30px);
    }
    .play-disc {
        width: 60px;
        height: 60px;
    }
    .play-label {
        margin-bottom: 1.05rem;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--plum);
    color: var(--plum-muted);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    font-size: 0.95rem;
}
.foot-top {
    display: grid;
    grid-template-columns: 1.1fr 2.4fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .foot-top {
        grid-template-columns: 1fr;
    }
}
.foot-brand b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--plum-ink);
    margin-bottom: 0.6rem;
}
.foot-brand p {
    margin: 0 0 1.25rem;
    max-width: 22rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem 1.5rem;
}
.foot-cols h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--plum-ink);
    margin: 0 0 0.7rem;
}
.foot-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-cols li {
    margin: 0.35rem 0;
}
.foot-cols a {
    text-decoration: none;
}
.foot-cols a:hover {
    color: var(--plum-ink);
    text-decoration: underline;
}
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
}
.theme-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: inherit;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
    cursor: pointer;
}
</style>

/* ==========================================================
   WordPress additions (theme port)
   ========================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
body.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
@media (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.prose figure {
    margin: 1.5rem 0;
}
.prose figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}
.prose ol:not(.timeline) {
    padding-left: 1.25rem;
    margin: 0 0 1.25rem;
}
.prose ol:not(.timeline) li::marker {
    color: var(--red);
    font-weight: 600;
}
.prose .wp-block-button__link {
    border-radius: 999px;
    background: var(--red);
    color: var(--red-ink);
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.97rem;
}
.prose th,
.prose td {
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0.5rem;
    text-align: left;
}
.alignleft {
    float: left;
    margin: 0.3rem 1.5rem 1rem 0;
}
.alignright {
    float: right;
    margin: 0.3rem 0 1rem 1.5rem;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form 7 inside the original .form grid */
.wpcf7 form.form {
    margin: 1.5rem 0;
}
.wpcf7 form.form .hidden-fields-container {
    display: none;
}
.wpcf7 form.form .wpcf7-form-control-wrap {
    display: block;
}
.wpcf7 form.form .wpcf7-not-valid-tip {
    display: block;
    color: var(--red);
    font-size: 0.88rem;
}
.wpcf7 form.form .wpcf7-not-valid {
    border-color: var(--red);
}
.wpcf7 form.form .full:not(.field) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* Reserve the error line under required fields, as the original .err did */
.wpcf7 form.form .wpcf7-form-control-wrap:has([aria-required="true"]) {
    padding-bottom: 1.18rem;
}
.wpcf7 form.form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: calc(100% - 0.88rem);
    line-height: 1.2;
    margin: 0;
}
.wpcf7 form.form .wpcf7-spinner {
    margin: 0 0.5rem;
}
.wpcf7 form.form .wpcf7-response-output {
    grid-column: 1/-1;
    margin: 0;
    padding: 1rem 1.2rem;
    border: 0;
    border-left: 4px solid var(--plum-2);
    border-radius: 10px;
    background: var(--rose);
    color: var(--ink);
}
.wpcf7 form.form.sent .wpcf7-response-output {
    border-left-color: #2e8b57;
}
.wpcf7 form.form.invalid .wpcf7-response-output,
.wpcf7 form.form.unaccepted .wpcf7-response-output,
.wpcf7 form.form.failed .wpcf7-response-output,
.wpcf7 form.form.aborted .wpcf7-response-output,
.wpcf7 form.form.spam .wpcf7-response-output {
    border-left-color: var(--red);
}
.form-missing {
    background: var(--rose);
    border: 1px dashed var(--red);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0;
}

/* Blog / Insights listing */
.post-list {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 2rem;
}
.post-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem;
}
.post-item h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0 0 0.4rem;
}
.post-item h2 a {
    text-decoration: none;
}
.post-item h2 a:hover {
    color: var(--red);
}
.post-item .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.6rem;
}
.post-item p {
    margin: 0;
}
.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    min-width: 2.4rem;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--red-ink);
}
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.search-form input[type="search"] {
    flex: 1;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.75rem 1rem;
}

.error-404-home{
    color: white;
}
@media (max-width: 991px) {
    h1 {
        max-width: 100% !important;
    }
    .foot-brand p {
        max-width: 100%;
    }
    .foot-cols {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
