/* =========================================================================
   PromoteSeen — Design System v5  ·  "Editorial Studio"
   Canvas : warm paper + grain  ·  Ink black  ·  Tangerine accent
   Type   : Fraunces (display serif) · Inter (UI/body) · Space Mono (labels)
   ========================================================================= */

:root {
    /* paper / surfaces — cool lavender-grey */
    --paper: #F4F2F7;
    --paper-2: #EBE8F1;
    --paper-3: #E1DDEB;
    --white: #FFFFFF;
    --surface: #FFFFFF;

    /* ink / text — cool charcoal */
    --ink: #1A1622;
    --ink-2: #4A4356;
    --ink-secondary: #4A4356;
    --ink-muted: #857E90;
    --ink-faint: #ADA6B8;

    /* accent (plum / aubergine) — mapped onto --primary so shared components inherit it */
    --accent: #7A2E6D;
    --accent-hover: #632457;
    --accent-soft: #F2E4EF;
    --primary: #7A2E6D;
    --primary-hover: #632457;
    --primary-light: #F2E4EF;
    --primary-muted: #C99EC0;
    --accent-bright: #B368A4;
    /* lighter plum for use on dark backgrounds */

    /* secondary pop */
    --cobalt: #2C46E0;
    --emerald: #1E9E63;
    --emerald-light: #E4F5EC;
    --warm-light: #FBEFD8;
    --rose: #7A2E6D;

    /* dark band — deep plum charcoal */
    --dark: #1A1622;
    --dark-2: #272031;
    --dark-card: #272031;
    --on-dark: #F1EFF4;
    --on-dark-muted: #A29BB0;
    --on-dark-border: rgba(255, 255, 255, .12);

    /* lines */
    --border: #E1DCE9;
    --border-light: #ECE8F1;
    --ink-line: rgba(26, 22, 34, .16);

    --f-display: "Fraunces", Georgia, "Times New Roman", serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-2xl: 34px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(27, 23, 18, .05);
    --shadow-sm: 0 2px 6px rgba(27, 23, 18, .07);
    --shadow-md: 0 8px 24px rgba(27, 23, 18, .1);
    --shadow-lg: 0 20px 50px rgba(27, 23, 18, .16);
    --shadow-xl: 0 34px 70px rgba(27, 23, 18, .2);
    --shadow-card: 0 1px 2px rgba(27, 23, 18, .04);

    --container: 1180px;
    --nav-space: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}


/* ========== RESET ========== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--f-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

body.nav-open {
    overflow: hidden;
}

/* grain texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: .04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

i.ph,
i[class^="ph-"],
i[class*=" ph-"] {
    line-height: 1;
    display: inline-flex;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}


/* ========== LAYOUT ========== */

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 28px;
}

.seg {
    padding-block: clamp(60px, 9vw, 128px);
}

.seg--sm {
    padding-block: clamp(40px, 5vw, 72px);
}


/* ========== TYPOGRAPHY ========== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-body);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ink);
}

.serif {
    font-family: var(--f-display);
    font-optical-sizing: auto;
}

.t-section {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.08;
    color: var(--ink);
}

.t-sub {
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    color: var(--ink-secondary);
    line-height: 1.7;
}

/* editorial section label with index number */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.label__idx {
    display: inline-flex;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--r-pill);
    padding: 2px 8px;
    font-size: 11px;
}

.label--onDark {
    color: var(--on-dark-muted);
}

.label--onDark .label__idx {
    color: var(--paper);
    border-color: var(--on-dark-border);
}

/* sticker chip */
.sticker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--white);
    background: var(--accent);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    transform: rotate(-3deg);
    box-shadow: var(--shadow-sm);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 13px;
    border-radius: var(--r-pill);
    width: fit-content;
}

.chip i.ph {
    font-size: 13px;
}

.chip--warm {
    color: #B45309;
    background: var(--warm-light);
}

.chip--emerald {
    color: #047857;
    background: var(--emerald-light);
}


/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: var(--r-pill);
    transition: all .2s var(--ease);
    white-space: nowrap;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn i.ph {
    font-size: 16px;
    transition: transform .2s;
}

.btn:hover i.ph-arrow-right {
    transform: translateX(3px);
}

.btn--ink {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn--ink:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 46, 109, .32);
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 46, 109, .32);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn--outline:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

.btn--line {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.btn--line:hover {
    border-color: var(--ink);
}

.btn--secondary {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn--text {
    background: none;
    border: none;
    color: var(--ink);
    padding: 10px 4px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
}

.btn--text:hover {
    color: var(--accent);
}

.btn--ghost {
    background: none;
    border: none;
    color: var(--ink-2);
    padding: 10px 12px;
}

.btn--ghost:hover {
    color: var(--accent);
}

.btn--ghost i.ph {
    transition: transform .2s;
}

.btn--ghost:hover i.ph {
    transform: translateX(3px);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}


/* ========== NAVBAR (editorial hairline bar) ========== */

.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(244, 242, 247, .82);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}

.nav.is-scrolled {
    border-color: var(--border);
}

.nav__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 28px;
    height: var(--nav-space);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.brand__mark {
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
}

.brand__name {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
}

.brand__logo {
    display: block;
    height: 25px;
    width: auto;
}

.ftr__brand-logo {
    height: 28px;
}

@media (max-width: 480px) {
    .brand__logo {
        height: 22px;
    }
}

.nav__panel {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 24px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav__links>li>a,
.nav__links .nav__dd-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--r-pill);
    transition: color .15s, background .15s;
}

.nav__links>li>a:hover,
.nav__links .nav__dd-toggle:hover {
    color: var(--ink);
    background: var(--paper-2);
}

.nav__links>li>a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav__links .caret {
    font-size: 11px;
    transition: transform .2s;
}

/* dropdown */
.has-dd {
    position: relative;
}

.nav__dd {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    z-index: 210;
}

.has-dd.open .nav__dd {
    display: block;
    animation: ddIn .18s var(--ease);
}

.has-dd.open .caret {
    transform: rotate(180deg);
}

@keyframes ddIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav__dd-eyebrow {
    display: block;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 4px 10px 10px;
}

.nav__dd-grid {
    display: grid;
    gap: 2px;
}

.nav__dd a,
.nav__dd button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--ink-2);
    width: 100%;
    transition: background .12s, color .12s;
}

.nav__dd a:hover,
.nav__dd button:hover {
    background: var(--paper);
    color: var(--accent);
}

.nav__dd a i.ph,
.nav__dd button i.ph {
    font-size: 15px;
    color: var(--ink-muted);
}

.nav__dd a:hover i.ph {
    color: var(--accent);
}

.nav__dd-foot {
    margin-top: 8px;
    padding: 12px 10px 4px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__dd-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px;
}

.nav__dd--user {
    min-width: 230px;
    right: 0;
    left: auto;
    transform: none;
}

.nav__user-meta {
    padding: 4px 10px 12px;
}

.nav__user-meta-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.nav__user-meta-email {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav__search-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: 18px;
    transition: background .15s, color .15s;
}

.nav__search-link:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.nav__signin {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: color .15s;
}

.nav__signin:hover {
    color: var(--accent);
}

.nav__cta {
    border-radius: var(--r-pill);
}

.nav__user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    transition: border-color .15s;
}

.nav__user-btn:hover {
    border-color: var(--ink);
}

.nav__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.nav__user-btn .caret {
    font-size: 11px;
    color: var(--ink-muted);
}

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 23px;
    flex-shrink: 0;
}

.nav__toggle .ph-x {
    display: none;
}

.nav__toggle.is-open .ph-list {
    display: none;
}

.nav__toggle.is-open .ph-x {
    display: inline-flex;
}

/* standalone search icon in the top bar — mobile only (see media query) */
.nav__toggle-search {
    display: none;
}


/* ========== HERO ========== */

.hero {
    position: relative;
    padding-top: clamp(36px, 6vw, 72px);
    padding-bottom: clamp(48px, 7vw, 88px);
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
}

.hero__blob--1 {
    width: 440px;
    height: 440px;
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(122, 46, 109, .16), transparent 70%);
}

.hero__blob--2 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: -80px;
    background: radial-gradient(circle, rgba(122, 46, 109, .08), transparent 70%);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__eyebrow-mono {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.hero__title {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 6.4vw, 4rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--ink);
}

.hero__title em {
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.hero__title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .04em;
    height: 3px;
    background: var(--accent);
    opacity: .35;
    border-radius: 2px;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 30ch;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero__proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-muted);
    font-family: var(--f-mono);
}

.hero__stars {
    color: var(--accent);
    letter-spacing: 2px;
}

/* hero stage — art-directed cluster */
.hero__stage {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__photo {
    position: absolute;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper-2);
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__photo--main {
    width: 300px;
    aspect-ratio: 4/5;
    top: 40px;
    right: 30px;
    transform: rotate(3deg);
    z-index: 2;
}

.hero__photo--back {
    width: 200px;
    aspect-ratio: 3/4;
    bottom: 20px;
    left: 10px;
    transform: rotate(-6deg);
    z-index: 1;
    opacity: .96;
}

.hero__photo-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 10px;
    border-radius: var(--r-pill);
}

.hero__note {
    position: absolute;
    bottom: 24px;
    right: 0;
    z-index: 3;
    width: 232px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-4deg);
}

.hero__note-label {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.hero__note-text {
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--ink-2);
    margin-bottom: 12px;
}

.hero__note-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-2);
    padding: 5px 10px;
    border-radius: var(--r-pill);
}

.hero__note-copy i.ph {
    font-size: 12px;
}

.hero__arrow {
    position: absolute;
    top: 60px;
    left: 30px;
    width: 120px;
    height: 90px;
    color: var(--accent);
    z-index: 3;
}


/* ========== TICKER ========== */

.ticker {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding-block: 18px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.ticker__track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
}

.ticker__track span {
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 500;
    white-space: nowrap;
}

.ticker__star {
    color: var(--accent-bright);
    font-style: normal !important;
    font-size: 1rem !important;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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


/* ========== SECTION HEAD ========== */

.seg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
}

.seg-head__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seg-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}


/* ========== COLLECTIONS ========== */

.collections {
    background: var(--paper);
}

.coll-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 22px;
    transition: box-shadow .3s, transform .3s;
}

.coll-feature:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.coll-feature__media {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    background: var(--paper-2);
}

.coll-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .5s var(--ease);
}

.coll-feature:hover .coll-feature__media img {
    transform: scale(1.05);
}

.coll-feature__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    transform: rotate(-2deg);
}

.coll-feature__body {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.coll-feature__count {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
}

.coll-feature__body h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
}

.coll-feature__body p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
}

.coll-feature__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-top: 6px;
    transition: gap .2s;
}

.coll-feature:hover .coll-feature__go {
    gap: 12px;
    color: var(--accent);
}

.coll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.coll-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .3s, transform .3s;
}

.coll-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.coll-card__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--paper-2);
}

.coll-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.coll-card:hover .coll-card__media img {
    transform: scale(1.05);
}

.coll-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coll-card__body h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.coll-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
}

.coll-card__meta i.ph {
    color: var(--accent);
    font-size: 15px;
    transition: transform .2s;
}

.coll-card:hover .coll-card__meta i.ph {
    transform: translateX(3px);
}


/* ========== HOW (DARK · split with numbered flow) ========== */

.how {
    background: var(--dark);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
    padding-block: clamp(72px, 9vw, 120px);
}

.how::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 104, 164, .18), transparent 70%);
    pointer-events: none;
}

.how__layout {
    position: relative;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.how__intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: calc(var(--nav-space) + 32px);
}

.how__intro .t-section {
    color: var(--paper);
    line-height: 1.06;
}

.how__intro-text {
    color: var(--on-dark-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 34ch;
}

.how__intro .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.how__flow {
    display: flex;
    flex-direction: column;
}

.how__step {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--on-dark-border);
    transition: padding-left .25s var(--ease);
}

.how__step:last-child {
    border-bottom: 1px solid var(--on-dark-border);
}

.how__step:hover {
    padding-left: 12px;
}

.how__step-num {
    font-family: var(--f-display);
    font-size: clamp(52px, 6vw, 76px);
    font-weight: 600;
    font-style: italic;
    color: var(--accent-bright);
    line-height: 1;
}

.how__step-body h3 {
    color: var(--paper);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--f-body);
}

.how__step-body p {
    color: var(--on-dark-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 48ch;
}


/* ========== RECENT (paper cards, carousel) ========== */

.recent {
    background: var(--paper);
}

.recent .seg-head {
    margin-bottom: 32px;
}

.recent__nav {
    display: flex;
    gap: 8px;
}

.recent__arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--ink);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 18px;
    background: transparent;
    transition: all .15s;
}

.recent__arrow:hover {
    background: var(--ink);
    color: var(--paper);
}

.recent__scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px max(28px, calc((100vw - var(--container)) / 2 + 28px)) 24px;
    scrollbar-width: none;
}

.recent__scroller::-webkit-scrollbar {
    display: none;
}

.pcard {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.pcard:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pcard__media {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--paper-2);
}

.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcard__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    margin-bottom: 10px;
}

.pcard__tab i.ph {
    font-size: 14px;
}

.pcard__title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pcard__prompt {
    flex: 1;
    max-height: 96px;
}


/* prompt box + copy (shared) */
.prompt-box {
    font-family: var(--f-mono);
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--ink-muted);
    background: var(--paper);
    border: 1px dashed var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
    max-height: 96px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    margin-bottom: 14px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--paper);
    background: var(--ink);
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all .15s;
    align-self: flex-start;
}

.copy-btn i.ph {
    font-size: 15px;
}

.copy-btn:hover {
    background: var(--accent);
}

.copy-btn.copied {
    background: var(--emerald);
    color: #fff;
}


/* ========== MANIFESTO (ACCENT BAND · split with stat grid) ========== */

.manifesto {
    position: relative;
    background: var(--accent);
    color: var(--white);
    padding-block: clamp(60px, 8vw, 104px);
    overflow: hidden;
}

.manifesto__glyph {
    position: absolute;
    bottom: -60px;
    right: 3%;
    font-size: 320px;
    line-height: 1;
    color: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.manifesto__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.manifesto__lead {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manifesto__label {
    color: rgba(255, 255, 255, .78);
}

.manifesto__text {
    font-size: clamp(1.65rem, 3.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: -.02em;
    color: var(--white);
}

.manifesto__text em {
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.manifesto__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.manifesto__stat {
    padding: clamp(20px, 3vw, 32px);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    border-right: 1px solid rgba(255, 255, 255, .28);
}

.manifesto__stat b {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--white);
}

.manifesto__stat span {
    font-family: var(--f-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .85);
    margin-top: 10px;
    display: block;
}


/* ========== WHY (feature trio) ========== */

.why {
    background: var(--paper);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 34px 30px;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.why__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.why__icon {
    width: 54px;
    height: 54px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.why__card h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.why__card p {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.65;
}


/* ========== THEMES ========== */

.themes {
    background: var(--paper-2);
}

.themes__inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.themes__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.themes__head p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
}

.themes__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    transition: all .18s var(--ease);
}

.theme-chip:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: translateY(-2px) rotate(-1.5deg);
}

.theme-chip--all {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.theme-chip--all:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.theme-chip--all i.ph {
    font-size: 15px;
}


/* ========== FINAL CTA ========== */

.finalcta {
    background: var(--paper);
}

.finalcta__card {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-2xl);
    padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 60px);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.finalcta__star {
    position: absolute;
    top: 24px;
    right: 8%;
    font-size: 60px;
    color: var(--accent-bright);
    opacity: .6;
}

.finalcta__card h2 {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--paper);
    max-width: 18ch;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.finalcta__card p {
    color: var(--on-dark-muted);
    font-size: 16px;
    max-width: 44ch;
}

.finalcta__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.finalcta__card .btn--outline {
    color: var(--paper);
    border-color: rgba(255, 255, 255, .4);
}

.finalcta__card .btn--outline:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}


/* ========== FOOTER (DARK + signature wordmark) ========== */

.ftr {
    background: var(--dark);
    color: var(--on-dark);
    padding-top: clamp(48px, 6vw, 76px);
    overflow: hidden;
}

.ftr__news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: clamp(36px, 5vw, 52px);
    margin-bottom: clamp(36px, 5vw, 52px);
    border-bottom: 1px solid var(--on-dark-border);
}

.ftr__news-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ftr__news-text h3 {
    color: var(--paper);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -.02em;
}

.ftr__news-form {
    display: flex;
    gap: 8px;
    background: var(--dark-2);
    border: 1px solid var(--on-dark-border);
    border-radius: var(--r-pill);
    padding: 6px 6px 6px 8px;
    min-width: 340px;
}

.ftr__news-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--paper);
    font-size: 14px;
    padding: 0 12px;
}

.ftr__news-form input::placeholder {
    color: var(--on-dark-muted);
}

.ftr__news-form .btn {
    flex-shrink: 0;
}

.ftr__grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: clamp(32px, 5vw, 48px);
}

.ftr__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ftr__brand-name {
    color: var(--paper);
}

.ftr__brand p {
    color: var(--on-dark-muted);
    font-size: 14px;
    line-height: 1.65;
    max-width: 280px;
}

.ftr__social {
    display: flex;
    gap: 8px;
}

.ftr__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    font-size: 17px;
    color: var(--on-dark-muted);
    background: var(--dark-2);
    border: 1px solid var(--on-dark-border);
    transition: color .15s, background .15s, border-color .15s;
}

.ftr__social a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.ftr__col h4 {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin-bottom: 16px;
}

.ftr__col a {
    display: block;
    font-size: 14px;
    color: var(--on-dark);
    padding: 5px 0;
    transition: color .12s;
}

.ftr__col a:hover {
    color: var(--accent-bright);
}

.ftr__more {
    color: var(--accent-bright) !important;
    font-weight: 600;
}

.ftr__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--on-dark-border);
    font-size: 13px;
    color: var(--on-dark-muted);
}

.ftr__bottom-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ftr__bottom-tag i.ph {
    color: var(--accent-bright);
}

.ftr__wordmark {
    overflow: hidden;
    user-select: none;
    line-height: 0;
    margin: 16px 0 6px;
}

.ftr__wordmark img {
    display: block;
    width: 100%;
    height: auto;
    opacity: .14;
    pointer-events: none;
}


/* ========== REVEAL ========== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}


/* ========== TOAST ========== */

.toast-wrap {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-pill);
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i.ph {
    font-size: 18px;
    color: var(--accent);
}


/* ========== SHARED: page-header, prompt grid, boards, blog, auth, dash, article, prose, search, contact, faq, error, about, author, pagination ========== */

.page-header {
    padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 68px);
    text-align: center;
    background: var(--dark);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    height: 380px;
    background: radial-gradient(circle, rgba(179, 104, 164, .16), transparent 70%);
    pointer-events: none;
}

.page-header>.wrap {
    position: relative;
}

.page-header .label {
    margin: 0 auto;
    color: var(--on-dark-muted);
}

.page-header .label__idx {
    color: var(--paper);
    border-color: var(--on-dark-border);
}

.page-header h1 {
    margin-top: 14px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.02em;
    color: var(--paper);
}

.page-header p {
    color: var(--on-dark-muted);
    font-size: 15px;
    max-width: 520px;
    margin: 12px auto 0;
}

/* breadcrumb */
.crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.crumb a {
    color: var(--ink-muted);
    transition: color .12s;
}

.crumb a:hover {
    color: var(--accent);
}

.crumb__sep {
    opacity: .5;
}

.crumb>span:last-child {
    color: var(--ink);
}

/* on dark heroes the current-page span must be light, not ink */
.prose-hero .crumb>span:last-child,
.author-head .crumb>span:last-child,
.article-header .crumb>span:last-child {
    color: var(--paper);
}

/* collection hero (single collection · centered dark masthead) */
.collection-hero {
    padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 68px);
    background: var(--dark);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.collection-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 104, 164, .16), transparent 70%);
    pointer-events: none;
}

.collection-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collection-hero .crumb {
    color: var(--on-dark-muted);
    justify-content: center;
}

.collection-hero .crumb a {
    color: var(--on-dark-muted);
}

.collection-hero .crumb a:hover {
    color: var(--accent-bright);
}

.collection-hero .crumb>span:last-child {
    color: var(--paper);
}

.collection-hero h1 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--paper);
    max-width: 22ch;
}

.collection-hero__desc {
    color: var(--on-dark-muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 16px auto 0;
    max-width: 62ch;
}

.collection-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.collection-hero__hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--on-dark-muted);
}

.collection-hero__hint i.ph {
    font-size: 15px;
    color: var(--accent-bright);
}

/* empty state */
.empty-state {
    text-align: center;
    padding: clamp(48px, 8vw, 88px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--paper-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
}

.empty-state p {
    color: var(--ink-2);
    font-size: 15px;
    margin-bottom: 12px;
    max-width: 40ch;
}

/* 4-up collections */
.coll-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* "more" / secondary zone — deeper tone for section contrast */
.more-collections {
    background: var(--paper-2);
    border-top: 1px solid var(--border);
}

.prompt-grid {
    columns: 4 250px;
    column-gap: 20px;
}

.prompt-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.prompt-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.prompt-card__img {
    overflow: hidden;
    background: var(--paper-2);
}

.prompt-card__img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s var(--ease);
}

.prompt-card:hover .prompt-card__img img {
    transform: scale(1.04);
}

.prompt-card__body {
    padding: 16px 18px;
}

.prompt-card__title {
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.prompt-card__from {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
}

.prompt-card__from i.ph {
    color: var(--accent);
    font-size: 15px;
    transition: transform .2s;
}

.prompt-card:hover .prompt-card__from i.ph {
    transform: translateX(3px);
}

a.prompt-card:hover .prompt-card__title {
    color: var(--accent);
}

.prompt-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: 16px;
    transition: all .15s;
}

.expand-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.prompt-box.expanded {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.board-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.board-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.board-card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--paper-2);
}

.board-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}

.board-card:hover .board-card__img img {
    transform: scale(1.05);
}

.board-card__count {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
}

.board-card__body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.board-card__body h3 {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.board-card__body p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
    flex: 1;
}

.board-card__foot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 14px;
    transition: gap .2s;
}

.board-card:hover .board-card__foot {
    gap: 10px;
}

/* auth — centered form card */
.auth-page {
    min-height: calc(100vh - var(--nav-space));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--paper);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: clamp(32px, 5vw, 44px) clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-md);
}

.auth-card__head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-card__head .chip {
    margin: 0 auto 16px;
}

.auth-card__head h1 {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.auth-card__head p {
    font-size: 14px;
    color: var(--ink-2);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(122, 46, 109, .12);
}

.form-input::placeholder {
    color: var(--ink-faint);
}

.auth-card .btn--primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 6px;
}

.auth-card__foot {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--ink-2);
}

.auth-card__foot a {
    color: var(--accent);
    font-weight: 600;
}

.auth-card__foot a:hover {
    text-decoration: underline;
}

.auth-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.form-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.form-forgot a {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.form-forgot a:hover {
    text-decoration: underline;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 6px;
}

.form-divider {
    height: 1px;
    background: var(--border-light);
    margin: 22px 0;
}

.auth-terms {
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.55;
}

.auth-terms a {
    color: var(--accent);
}

.alert ul {
    margin: 0;
    padding-left: 2px;
    list-style: none;
}

.alert ul li+li {
    margin-top: 3px;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert--success {
    background: var(--emerald-light);
    color: #047857;
    border: 1px solid #A7F3D0;
}

.alert--error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.alert--warn {
    background: var(--warm-light);
    color: #B45309;
    border: 1px solid #FDE68A;
}

/* user dashboard */
.dash-head__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent), var(--accent-bright));
    border: 2px solid var(--on-dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.dash-col__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--r-pill);
}

.dash-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s, transform .2s;
}

.dash-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dash-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dash-item__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.dash-item__source i.ph {
    color: var(--accent);
    font-size: 15px;
}

.dash-item__source:hover {
    color: var(--accent);
}

.dash-item__date {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-muted);
    white-space: nowrap;
}

.dash-item__thread {
    display: flex;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--paper-2);
    border-radius: var(--r-xs);
    border-left: 2px solid var(--border);
}

.dash-item__thread-label {
    color: var(--ink-muted);
    flex-shrink: 0;
}

.dash-item__thread-quote {
    color: var(--ink-2);
    font-style: italic;
}

.dash-item__body {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

.dash-item__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 12px;
    transition: gap .2s;
}

.dash-item__link i.ph {
    font-size: 13px;
}

.dash-item:hover .dash-item__link {
    gap: 9px;
}

.dash-empty {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dash-empty i.ph {
    font-size: 32px;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

.dash-empty p {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

/* category filter chips */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    transition: all .15s;
}

.cat-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.cat-chip.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-card__img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--paper-2);
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.blog-card__cat {
    color: var(--accent);
    font-weight: 700;
}

.blog-card__cat:hover {
    text-decoration: underline;
}

.blog-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ink-faint);
}

.blog-card__body h3 {
    font-family: var(--f-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.24;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.blog-card__body h3 a:hover {
    color: var(--accent);
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
    flex: 1;
}

.blog-card__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 18px;
    transition: gap .2s, color .15s;
}

.blog-card__read i.ph {
    color: var(--accent);
    transition: transform .2s;
}

.blog-card:hover .blog-card__read {
    color: var(--accent);
}

.blog-card:hover .blog-card__read i.ph {
    transform: translateX(3px);
}

/* article header (dark masthead) */
.article-header {
    background: var(--dark);
    color: var(--on-dark);
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 60px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.article-header::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 104, 164, .16), transparent 70%);
    pointer-events: none;
}

.article-header__inner {
    position: relative;
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-header .crumb {
    justify-content: center;
    color: var(--on-dark-muted);
}

.article-header .crumb a {
    color: var(--on-dark-muted);
}

.article-header .crumb a:hover {
    color: var(--accent-bright);
}

.article-header__cat {
    display: inline-flex;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent-bright);
    background: rgba(179, 104, 164, .16);
    padding: 6px 13px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
}

.article-header h1 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--paper);
}

.article-header__desc {
    color: var(--on-dark-muted);
    font-size: 17px;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 62ch;
}

.article-header__byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.article-header__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--on-dark-border);
}

.article-header__byline-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-header__author {
    color: var(--paper);
    font-weight: 600;
    font-size: 14px;
}

.article-header__author:hover {
    color: var(--accent-bright);
}

.article-header__role {
    color: var(--on-dark-muted);
    font-size: 12px;
}

.article-header__sep {
    width: 1px;
    height: 26px;
    background: var(--on-dark-border);
}

.article-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--on-dark-muted);
}

.article-header__meta i.ph {
    color: var(--accent-bright);
    font-size: 15px;
}

/* article body + toc */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
    align-items: start;
    padding-inline: 28px;
}

.article-layout>aside {
    align-self: stretch;
}

/* full-height rail so the sticky TOC tracks the whole article */
.article-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.article-layout--full .article-body {
    max-width: var(--container);
    margin-inline: auto;
}

.article-body {
    max-width: var(--container);
    font-size: 16.5px;
    color: var(--ink-2);
}

/* fills its column — matches the section width */
.article-body>*:first-child {
    margin-top: 0;
}

.article-body>*:last-child {
    margin-bottom: 0;
}

/* --- headings --- */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.22;
    color: var(--ink);
    margin: 1.9em 0 .55em;
    scroll-margin-top: 96px;
    letter-spacing: -.015em;
}

.article-body h1 {
    font-size: clamp(1.7rem, 2.8vw, 2.1rem);
}

.article-body h2 {
    font-size: clamp(1.4rem, 2.3vw, 1.75rem);
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body h4 {
    font-size: 1.12rem;
}

.article-body h5 {
    font-size: 1rem;
}

.article-body h6 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-muted);
    font-family: var(--f-mono);
    font-weight: 700;
}

/* --- text & inline --- */
.article-body p {
    margin: 0 0 18px;
    line-height: 1.85;
}

.article-body strong,
.article-body b {
    color: var(--ink);
    font-weight: 700;
}

.article-body em,
.article-body i {
    font-style: italic;
}

.article-body u {
    text-underline-offset: 2px;
}

.article-body s,
.article-body del {
    color: var(--ink-muted);
}

.article-body sub,
.article-body sup {
    font-size: .72em;
    line-height: 0;
}

.article-body small {
    font-size: .85em;
    color: var(--ink-muted);
}

.article-body mark {
    background: var(--accent-soft);
    color: var(--ink);
    padding: .05em .28em;
    border-radius: 4px;
}

.article-body abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

.article-body kbd {
    font-family: var(--f-mono);
    font-size: .82em;
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: .12em .45em;
    color: var(--ink);
}

/* --- links --- */
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color .15s;
}

.article-body a:hover {
    color: var(--accent-hover);
}

/* --- lists --- */
.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-body ul>li {
    list-style: disc;
}

.article-body ol>li {
    list-style: decimal;
}

.article-body li::marker {
    color: var(--accent);
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin: 8px 0 0;
}

.article-body ul ul>li {
    list-style: circle;
}

.article-body li>p {
    margin-bottom: 8px;
}

.article-body ul.todo-list {
    list-style: none;
    padding-left: 2px;
}

.article-body ul.todo-list li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-body ul.todo-list li input[type="checkbox"] {
    margin-top: .4em;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* --- definition lists --- */
.article-body dl {
    margin: 0 0 18px;
}

.article-body dt {
    font-weight: 700;
    color: var(--ink);
    margin-top: 12px;
}

.article-body dd {
    margin: 4px 0 0;
    padding-left: 16px;
}

/* --- blockquote --- */
.article-body blockquote {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 16px 22px;
    margin: 26px 0;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink);
}

.article-body blockquote p {
    margin-bottom: 10px;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: .8rem;
    font-style: normal;
    font-family: var(--f-mono);
    color: var(--ink-muted);
}

/* --- horizontal rule --- */
.article-body hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* --- images (CKEditor figure.image + bare img) --- */
.article-body figure {
    margin: 28px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 26px auto;
    border-radius: var(--r-md);
}

.article-body figure.image {
    text-align: center;
}

.article-body figure.image img {
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.article-body figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--ink-muted);
    text-align: center;
    line-height: 1.5;
}

.article-body .image-style-align-center {
    margin-inline: auto;
}

.article-body .image-style-align-left,
.article-body .image-style-side {
    float: left;
    margin: 6px 28px 20px 0;
    max-width: 48%;
}

.article-body .image-style-align-right {
    float: right;
    margin: 6px 0 20px 28px;
    max-width: 48%;
}

.article-body .image_resized {
    max-width: 100%;
}

.article-body .image_resized img {
    width: 100%;
}

/* --- tables (CKEditor figure.table) --- */
.article-body figure.table {
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.article-body table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    background: var(--white);
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
    transition: background .12s;
}

.article-body td+td,
.article-body th+th {
    border-left: 1px solid var(--border-light);
}

/* first row acts as the header — CKEditor tables here carry no <th>/<thead> */
.article-body table tr:first-child>td,
.article-body thead td,
.article-body th {
    background: var(--paper-2);
    color: var(--ink);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

/* zebra striping + hover on body rows (leave the header row alone) */
.article-body tbody tr:not(:first-child):nth-child(even)>td {
    background: var(--paper);
}

.article-body tbody tr:not(:first-child):hover>td {
    background: var(--accent-soft);
}

.article-body table tr:last-child>td {
    border-bottom: 0;
}

.article-body table caption,
.article-body figure.table figcaption {
    caption-side: bottom;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    text-align: left;
}

/* --- code --- */
.article-body code {
    font-family: var(--f-mono);
    font-size: .88em;
    background: var(--paper-2);
    padding: .12em .42em;
    border-radius: 5px;
    color: var(--accent-hover);
}

.article-body pre {
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--r-md);
    padding: 18px 20px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: var(--f-mono);
    font-size: 14px;
    line-height: 1.7;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* --- media embeds (CKEditor figure.media) --- */
.article-body figure.media {
    margin: 28px 0;
}

.article-body iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--r-md);
}

.article-body figure.media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* --- text alignment (CKEditor) --- */
.article-body .text-center {
    text-align: center;
}

.article-body .text-right {
    text-align: right;
}

.article-body .text-justify {
    text-align: justify;
}

.article-toc {
    position: sticky;
    top: calc(var(--nav-space) + 20px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    max-height: calc(100vh - var(--nav-space) - 40px);
    box-shadow: var(--shadow-card);
}

.article-toc h4 {
    flex-shrink: 0;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.article-toc ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 6px;
    /* custom scrollbar — Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* custom scrollbar — WebKit/Chromium */
.article-toc ul::-webkit-scrollbar {
    width: 6px;
}

.article-toc ul::-webkit-scrollbar-track {
    background: transparent;
    margin: 2px 0;
}

.article-toc ul::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

.article-toc ul::-webkit-scrollbar-thumb:hover {
    background: var(--ink-faint);
}

.article-toc a {
    display: block;
    font-size: 13px;
    color: var(--ink-2);
    padding: 5px 0 5px 14px;
    border-left: 2px solid var(--border-light);
    line-height: 1.4;
    transition: color .12s, border-color .12s;
}

.article-toc a:hover,
.article-toc a.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* comments */
.comments-section {
    max-width: 820px;
    margin-inline: auto;
}

.comments-head {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments-head h2 {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
}

.comment-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}

.comment-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: none;
    outline: none;
    background: none;
    font-size: 14.5px;
    color: var(--ink);
    line-height: 1.6;
}

.comment-form textarea::placeholder {
    color: var(--ink-faint);
}

.comment-form textarea:disabled {
    color: var(--ink-muted);
    cursor: not-allowed;
}

.comment-form__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper-2);
}

.comment__name {
    font-weight: 600;
    font-size: 14px;
}

.comment__date {
    font-size: 12px;
    color: var(--ink-muted);
}

.comment__body {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.7;
}

.comment__actions {
    margin-top: 10px;
}

.comment__reply-btn {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
}

.comment__login-note {
    font-size: 13px;
    color: var(--ink-muted);
}

.comment__reply-form {
    display: none;
    margin-top: 12px;
}

.comment__reply-form.open {
    display: block;
}

.comment__reply-form textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    transition: border-color .15s;
}

.comment__reply-form textarea:focus {
    border-color: var(--accent);
}

.comment__reply-form .copy-btn,
.comment__reply-form button {
    margin-top: 10px;
}

.comment__replies {
    margin-left: 52px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reply {
    display: flex;
    gap: 12px;
}

.reply__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper-2);
}

.reply__name {
    font-weight: 600;
    font-size: 13px;
}

.reply__date {
    font-size: 11px;
    color: var(--ink-muted);
    margin-left: 8px;
}

.reply__text {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-top: 4px;
}

.comments-empty {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
    color: var(--ink-muted);
}

.comments-empty__icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.prose-page {
    padding: clamp(36px, 5vw, 72px) 0;
}

.prose-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
}

.prose-toc {
    position: sticky;
    top: calc(var(--nav-space) + 12px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    height: fit-content;
    max-height: calc(100vh - var(--nav-space) - 30px);
    overflow-y: auto;
    box-shadow: var(--shadow-card);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.prose-toc::-webkit-scrollbar {
    width: 6px;
}

.prose-toc::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.prose-toc::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

.prose-toc::-webkit-scrollbar-thumb:hover {
    background: var(--ink-faint);
}

.prose-toc h4 {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.prose-toc a {
    display: block;
    font-size: 13px;
    color: var(--ink-2);
    padding: 5px 0 5px 14px;
    border-left: 2px solid var(--border-light);
    transition: color .12s, border-color .12s;
}

.prose-toc a:hover,
.prose-toc a.active {
    color: var(--accent);
    border-color: var(--accent);
}

.prose-content h2 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    scroll-margin-top: 100px;
}

.prose-content h3 {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.prose-content p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 16px;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--ink-2);
}

.prose-content li {
    list-style: disc;
    margin-bottom: 6px;
    line-height: 1.7;
    font-size: 15px;
}

.prose-content ol li {
    list-style: decimal;
}

.prose-content a {
    color: var(--accent);
}

.prose-table {
    overflow-x: auto;
    margin: 20px 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.prose-table table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.prose-table th {
    font-family: var(--f-display);
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    background: var(--paper-2);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.prose-table td {
    padding: 12px 16px;
    color: var(--ink-2);
    line-height: 1.6;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.prose-table tbody tr:last-child td {
    border-bottom: 0;
}

.search-hero {
    padding: clamp(36px, 5vw, 64px) 0;
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 480px;
    width: 100%;
    height: 50px;
    margin: 22px auto 0;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: var(--r-pill);
    padding: 0 20px;
}

.search-box i.ph {
    color: var(--ink-muted);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    color: var(--ink);
}

.search-results__section {
    margin-bottom: 44px;
}

.search-results__section h2 {
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

.contact-info h2 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.contact-method__icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 14px;
    font-weight: 600;
}

.contact-method p {
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 2px;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.contact-form h2 {
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
}

/* contact — methods inline in dark masthead */
.contact-methods-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.contact-method-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--on-dark);
}

.contact-method-inline i.ph {
    color: var(--accent-bright);
    font-size: 17px;
}

/* contact — centered single-column form */
.contact-form-wrap {
    max-width: 620px;
    margin-inline: auto;
}

.contact-form-wrap .contact-form {
    padding: clamp(24px, 4vw, 40px);
}

/* contact — FAQ as its own 2-col band */
.faq-band {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    max-width: 940px;
    margin: 34px auto 0;
}

.faq-grid .faq-item {
    align-self: start;
}

.faq-list {
    margin-top: 28px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.faq-q i.ph {
    font-size: 15px;
    color: var(--ink-muted);
    transition: transform .2s;
}

.faq-item.open .faq-q i.ph {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding-bottom: 16px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}

.faq-item.open .faq-a {
    display: block;
}

.error-page {
    min-height: calc(100vh - var(--nav-space));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.error-page__inner {
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-page__badge {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.error-page__code {
    font-family: var(--f-display);
    font-size: clamp(72px, 12vw, 108px);
    font-weight: 600;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h1 {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.error-page p {
    font-size: 15px;
    color: var(--ink-2);
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.65;
}

.error-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-hero {
    padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
    text-align: center;
}

.about-hero p {
    max-width: 560px;
    margin: 14px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.about-card__icon {
    width: 46px;
    height: 46px;
    background: var(--accent-soft);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-card h3 {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}

/* author profile masthead (dark) */
.author-head {
    background: var(--dark);
    color: var(--on-dark);
    padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 6vw, 64px);
    position: relative;
    overflow: hidden;
}

.author-head::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 104, 164, .16), transparent 70%);
    pointer-events: none;
}

.author-head__inner {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-head .crumb {
    justify-content: center;
    color: var(--on-dark-muted);
}

.author-head .crumb a {
    color: var(--on-dark-muted);
}

.author-head .crumb a:hover {
    color: var(--accent-bright);
}

.author-head__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--on-dark-border);
    margin-bottom: 18px;
    background: var(--dark-2);
}

.author-head__name {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 600;
    color: var(--paper);
    letter-spacing: -.02em;
}

.author-head__role {
    font-size: 14px;
    color: var(--accent-bright);
    font-weight: 600;
    margin-top: 6px;
}

.author-head__bio {
    font-size: 15px;
    color: var(--on-dark-muted);
    line-height: 1.65;
    margin-top: 14px;
    max-width: 56ch;
}

.author-head__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    font-size: 13px;
    color: var(--on-dark-muted);
}

.author-head__stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.author-head__stat i.ph {
    color: var(--accent-bright);
    font-size: 15px;
}

.author-head__stat b {
    color: var(--paper);
}

.author-head__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--on-dark-border);
}

.author-head__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-bright);
    font-weight: 600;
}

.author-head__linkedin:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 44px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    color: var(--ink-2);
    background: var(--white);
    transition: all .15s;
}

.pagination a:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.pagination .active span {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.pagination .disabled span {
    opacity: .35;
    cursor: default;
}


/* ========== PHASE 2D — about / contact / legal / search ========== */

/* about page */
.about-card__tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 12px;
}

.about-card__num {
    display: block;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 40px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

.about-lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 62ch;
}

/* about — story two-column */
.about-story {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.about-story__aside {
    position: sticky;
    top: calc(var(--nav-space) + 28px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-story__aside h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.14;
    letter-spacing: -.02em;
}

.about-story__body p {
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-story__body p:last-child {
    margin-bottom: 0;
}

.about-story__body strong {
    color: var(--ink);
    font-weight: 600;
}

.about-story__lead {
    font-family: var(--f-display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
    font-weight: 500;
    color: var(--ink) !important;
    line-height: 1.45 !important;
}

/* about — personas */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.persona-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
}

.persona-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.persona-card__icon {
    width: 46px;
    height: 46px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.persona-card h3 {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.persona-card p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
}

/* about — craft (image collage + text) */
.craft {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.craft__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 14px;
}

.craft__media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    background: var(--paper-2);
}

.craft__media img:nth-child(1) {
    transform: rotate(-2deg);
}

.craft__media img:nth-child(2) {
    transform: rotate(2deg);
    margin-top: 20px;
}

.craft__media img:nth-child(3) {
    transform: rotate(2deg);
}

.craft__media img:nth-child(4) {
    transform: rotate(-2deg);
    margin-top: 20px;
}

.craft__body h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.14;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.craft__body p {
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.craft__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.craft__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--ink-2);
}

.craft__list i.ph {
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* rules yes/no */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rules-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.rules-col--yes {
    border-top: 3px solid var(--emerald);
}

.rules-col--no {
    border-top: 3px solid var(--ink-faint);
}

.rules-col__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.rules-col__head i.ph {
    font-size: 22px;
}

.rules-col--yes .rules-col__head i.ph {
    color: var(--emerald);
}

.rules-col--no .rules-col__head i.ph {
    color: var(--ink-muted);
}

.rules-col__head h3 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.rules-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.55;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
    flex-shrink: 0;
}

.rules-col--no .rules-list li::before {
    background: var(--ink-faint);
}

/* about stats strip */
.about-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-fact {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.about-fact b {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--accent);
}

.about-fact span {
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 4px;
    display: block;
}

/* contact form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238A7D6C' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(122, 46, 109, .12);
}

.form-error {
    display: none;
    font-size: 12px;
    color: #DC2626;
    margin-top: 5px;
}

.form-group.invalid .form-error {
    display: block;
}

.form-group.invalid .form-input,
.form-group.invalid .form-textarea,
.form-group.invalid select.form-input {
    border-color: #DC2626;
}

.contact-form .btn {
    width: 100%;
    margin-top: 6px;
}

.contact-form__note {
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 14px;
}

.contact-form__note a {
    color: var(--accent);
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px 8px;
}

.form-success.show {
    display: block;
}

.form-success__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--emerald-light);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.form-success h2 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--ink-2);
    font-size: 14px;
    max-width: 36ch;
    margin: 0 auto 18px;
}

.faq-a p {
    margin: 0;
}

/* legal / prose hero */
.prose-hero {
    background: var(--dark);
    color: var(--on-dark);
    padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 52px);
    position: relative;
    overflow: hidden;
}

.prose-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 104, 164, .16), transparent 70%);
    pointer-events: none;
}

.prose-hero__inner {
    position: relative;
}

.prose-hero .crumb {
    color: var(--on-dark-muted);
}

.prose-hero .crumb a {
    color: var(--on-dark-muted);
}

.prose-hero .crumb a:hover {
    color: var(--accent-bright);
}

.prose-hero h1 {
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--paper);
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -.02em;
    margin-top: 12px;
}

.prose-hero__lead {
    color: var(--on-dark-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 60ch;
}

.prose-meta {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-muted);
    padding: 12px 14px;
    background: var(--paper-2);
    border-radius: var(--r-sm);
    margin-bottom: 28px;
    line-height: 1.5;
}

.callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--accent-soft);
    border: 1px solid rgba(122, 46, 109, .18);
    border-radius: var(--r-md);
    padding: 16px 18px;
    margin: 24px 0;
}

.callout i.ph {
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.callout p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
}

.callout--warn {
    background: var(--warm-light);
    border-color: #FDE0B0;
}

.callout--warn i.ph {
    color: #C2410C;
}

.prose-content .inline-link {
    color: var(--accent);
}

/* search */
.search-box-lg {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 24px auto 0;
}

.search-box-lg__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: var(--r-pill);
    padding: 0 20px;
    height: 52px;
    box-shadow: var(--shadow-md);
}

.search-box-lg__field i.ph {
    color: var(--ink-muted);
    font-size: 18px;
}

.search-box-lg__field input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    color: var(--ink);
}

.search-box-lg .btn {
    height: 52px;
    border-radius: var(--r-pill);
    padding-inline: 26px;
}

.search-results__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.search-results__head h2 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.search-results__head .dash-badge {
    font-family: var(--f-body);
}

.search-results__head .btn--text {
    margin-left: auto;
}

.coll-card--tall .coll-card__media {
    aspect-ratio: 4 / 5;
}


/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__stage {
        min-height: 400px;
        max-width: 460px;
        margin-inline: auto;
        width: 100%;
    }

    .hero__lead {
        max-width: 46ch;
    }

    .coll-feature {
        grid-template-columns: 1fr;
    }

    .coll-feature__media {
        min-height: 260px;
        aspect-ratio: 16/10;
    }

    .coll-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .how__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .how__intro {
        position: static;
    }

    .manifesto__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why__grid {
        grid-template-columns: 1fr;
    }

    .themes__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .article-layout,
    .prose-layout {
        grid-template-columns: 1fr;
    }

    .article-toc,
    .prose-toc {
        display: none;
    }

    /* full-width images on mobile — floats/side placement don't fit a narrow column */
    .article-body .image-style-align-left,
    .article-body .image-style-align-right,
    .article-body .image-style-side {
        float: none;
        max-width: 100%;
        margin: 26px auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .about-story {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-story__aside {
        position: static;
    }

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

    .craft {
        grid-template-columns: 1fr;
    }

    .craft__media {
        max-width: 460px;
    }

    .ftr__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding-inline: 18px;
    }

    .nav__inner {
        padding: 0 18px;
    }

    .nav__links,
    .nav__actions {
        display: none;
    }

    .nav__toggle-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: var(--r-pill);
        color: var(--ink);
        font-size: 21px;
        flex-shrink: 0;
        margin-left: auto;
        transition: background .15s;
    }

    .nav__toggle-search:hover {
        background: var(--paper-2);
    }

    .nav__toggle {
        display: flex;
        margin-left: -12px;
    }

    .nav__panel.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: var(--nav-space);
        left: 12px;
        right: 12px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-xl);
        padding: 16px;
        gap: 4px;
        z-index: 199;
        max-height: calc(100vh - var(--nav-space) - 24px);
        overflow-y: auto;
        animation: drawerIn .2s var(--ease);
    }

    @keyframes drawerIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__panel.open .nav__links {
        display: flex;
        flex-direction: column;
        margin: 0;
        width: 100%;
    }

    .nav__panel.open .nav__links>li {
        width: 100%;
    }

    .nav__panel.open .nav__links>li>a,
    .nav__panel.open .nav__links .nav__dd-toggle {
        padding: 13px 12px;
        font-size: 15px;
        border-radius: var(--r-sm);
        width: 100%;
        justify-content: space-between;
    }

    .nav__panel.open .nav__dd {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: auto;
        padding: 4px 0 4px 12px;
    }

    /* mobile accordion: override the desktop popover animation (its translateX(-50%) causes a sideways jump) */
    .nav__panel.open .has-dd.open .nav__dd {
        animation: ddInMobile .2s var(--ease);
    }

    @keyframes ddInMobile {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__panel.open .nav__dd-eyebrow {
        padding-left: 0;
    }

    .nav__panel.open .nav__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid var(--border-light);
    }

    .nav__panel.open .nav__search-link {
        display: none;
    }

    .nav__panel.open .nav__signin {
        text-align: center;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--r-pill);
    }

    .nav__panel.open .nav__cta {
        justify-content: center;
        padding: 12px;
    }

    .nav__panel.open .nav__user {
        width: 100%;
    }

    .nav__panel.open .nav__user-btn {
        width: 100%;
        justify-content: center;
    }

    .nav__panel.open .nav__dd--user {
        position: static;
        transform: none;
        min-width: auto;
    }

    .hero__title {
        font-size: clamp(2.6rem, 12vw, 3.6rem);
    }

    .hero__stage {
        min-height: 360px;
    }

    .hero__photo--main {
        width: 240px;
        right: 20px;
    }

    .hero__photo--back {
        width: 150px;
    }

    .hero__note {
        width: 190px;
    }

    .coll-grid {
        grid-template-columns: 1fr;
    }

    .coll-grid--4 {
        grid-template-columns: 1fr;
    }

    .how__step {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .why__grid {
        grid-template-columns: 1fr;
    }

    .boards-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .prompt-grid {
        columns: 2 150px;
        column-gap: 12px;
    }

    .prompt-card {
        margin-bottom: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .about-facts {
        grid-template-columns: 1fr 1fr;
    }

    .persona-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-box-lg {
        flex-direction: column;
        max-width: none;
    }

    .search-box-lg__field {
        flex: none;
        min-width: 0;
    }

    /* column: flex:1 basis 0% was collapsing the 52px height */
    .search-box-lg__field input {
        font-size: 16px;
    }

    /* 16px stops iOS zoom-on-focus */
    .search-box-lg .btn {
        width: 100%;
    }

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

    .recent .seg-head {
        flex-direction: row;
        align-items: flex-end;
    }

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

    .ftr__news-form {
        min-width: 0;
        width: 100%;
    }

    .ftr__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .ftr__brand {
        grid-column: span 2;
    }

    .ftr__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .prompt-grid {
        columns: 1;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .hero__cta .btn--text {
        border-bottom: none;
    }

    .finalcta__actions {
        flex-direction: column;
        width: 100%;
    }

    .finalcta__actions .btn {
        width: 100%;
    }

    .manifesto__stats {
        grid-template-columns: 1fr 1fr;
    }

    .ftr__grid {
        grid-template-columns: 1fr;
    }

    .ftr__brand {
        grid-column: span 1;
    }

    .pcard {
        flex-basis: 270px;
    }
}