:root {
    /* Burgundy aligned with hero glass (125,31,39 / 87,18,25) — not traffic red */
    --claret: #7d1f27;
    --claret-deep: #571219;
    --claret-soft: #c49a9f;
    --gold: #bb9457;
    --gold-soft: #ead7b0;
    --ink: #1f1713;
    --muted: #665952;
    --paper: #f7f0e7;
    --paper-strong: #fffaf3;
    --line: rgba(87, 18, 25, 0.14);
    --glass-line: rgba(255, 255, 255, 0.34);
    --glass-fill: rgba(255, 248, 240, 0.14);
    --glass-fill-strong: rgba(255, 248, 240, 0.2);
    --shadow: 0 24px 60px rgba(51, 28, 18, 0.14);
    --shadow-soft: 0 14px 32px rgba(51, 28, 18, 0.09);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --page-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(234, 215, 176, 0.78), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(199, 102, 88, 0.2), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.32), transparent 42%),
        linear-gradient(180deg, #f1e6d7 0%, #efe4d8 38%, #e9ddd0 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(125, 31, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 31, 39, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 14%),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14), transparent 16%),
        radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.12), transparent 18%);
    z-index: 0;
}

.site {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(calc(100% - 28px), var(--page-width));
    margin: 14px auto 0;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(87, 18, 25, 0.82) 0%, rgba(125, 31, 39, 0.76) 48%, rgba(187, 148, 87, 0.54) 120%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    color: #fff8f0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(118deg, rgba(255, 255, 255, 0.16), transparent 40%),
        linear-gradient(180deg, transparent 0%, rgba(17, 8, 6, 0.18) 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 62%);
}

.hero-grid {
    position: relative;
    padding: 36px;
}

.hero-left {
    position: relative;
    padding: 8px 6px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
}

.brand-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    width: fit-content;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.18), rgba(255, 248, 240, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.header-logo {
    display: block;
    height: 42px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-text span {
    font-size: 0.88rem;
    color: rgba(255, 248, 240, 0.74);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    color: rgba(255, 248, 240, 0.84);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle button:hover,
.theme-toggle button:focus-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
    color: #fff8f0;
    outline: none;
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .icon-sun {
    display: none;
}

.hero-copy {
    max-width: 840px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 248, 240, 0.84);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 30px;
    height: 1px;
    background: rgba(255, 248, 240, 0.65);
}

h1 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(3.2rem, 6.4vw, 5.8rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.hero-copy p {
    margin: 0;
    max-width: 54ch;
    color: rgba(255, 248, 240, 0.82);
    font-size: 1.05rem;
    white-space: normal;
}

.main {
    position: relative;
    flex: 1;
    margin-top: -24px;
    padding: 0 16px 72px;
}

.panel {
    position: relative;
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.56), rgba(251, 244, 236, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 28px 70px rgba(74, 46, 25, 0.1);
    backdrop-filter: blur(26px) saturate(130%);
    -webkit-backdrop-filter: blur(26px) saturate(130%);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 34px;
    width: 140px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--claret), var(--gold));
}

.panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 70%);
}

.section-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.section-top h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.section-top p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 18px 36px rgba(51, 28, 18, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.4), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%);
}

.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 72%);
}

.card:hover,
.card:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(51, 28, 18, 0.16);
}

.card:focus-visible {
    outline: 2px solid rgba(87, 18, 25, 0.5);
    outline-offset: 4px;
}

.card-wide {
    grid-column: span 6;
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.58) 0%, rgba(247, 236, 226, 0.34) 100%);
}

.card-tall {
    grid-column: span 3;
    background: linear-gradient(180deg, rgba(248, 240, 234, 0.56) 0%, rgba(242, 229, 218, 0.32) 100%);
}

.card-rich {
    grid-column: span 3;
    background:
        linear-gradient(180deg, rgba(87, 18, 25, 0.7), rgba(125, 31, 39, 0.62)),
        linear-gradient(180deg, rgba(125, 31, 39, 0.36) 0%, rgba(87, 18, 25, 0.42) 100%);
    color: #fff8f0;
    border-color: rgba(255, 255, 255, 0.26);
}

.card-rich .card-text,
.card-rich .card-link,
.card-rich .card-number {
    color: #fff8f0;
}

.card-rich .card-link::after {
    background: rgba(255, 248, 240, 0.14);
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--claret);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.card-rich .card-tag {
    background: rgba(255, 248, 240, 0.12);
    color: #fff8f0;
}

.card-number {
    color: rgba(87, 18, 25, 0.34);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.1rem;
    line-height: 1;
}

.card h3 {
    margin: 18px 0 12px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.card-text {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 0.98rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--claret);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.card-link::after {
    content: "\2192";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(125, 31, 39, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.card:hover .card-link::after,
.card:focus-visible .card-link::after {
    transform: translateX(4px);
}

.panel-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(87, 18, 25, 0.12);
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.panel-footer p {
    margin: 0;
}

.fj-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
}

.fj-mark .fj-f {
    position: relative;
    top: -3px;
}

.fj-mark .fj-j {
    margin-left: -0.16em;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

@media (max-width: 980px) {
    .section-top {
        grid-template-columns: 1fr;
    }

    .hero-left {
        min-height: 0;
    }

    .main {
        margin-top: -12px;
        padding-left: 8px;
        padding-right: 8px;
    }

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

    .card-wide,
    .card-tall,
    .card-rich {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .site {
        width: min(calc(100% - 18px), var(--page-width));
        margin-top: 9px;
    }

    .hero-grid {
        padding: 22px;
    }

    .brand-row {
        width: 100%;
        border-radius: 22px;
    }

    .header-logo {
        height: 36px;
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
        white-space: normal;
    }

    .panel {
        padding: 22px;
        border-radius: 24px;
    }

    .card {
        min-height: 0;
        padding: 22px;
    }

    footer {
        width: min(calc(100% - 18px), var(--page-width));
        padding-bottom: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme]),
    html[data-theme="dark"] {
        color-scheme: dark;
    }

    html:not([data-theme]):root {
        --ink: #f6ede5;
        --muted: #d7c5bb;
        --paper: #160d0d;
        --paper-strong: #211414;
        --line: rgba(255, 255, 255, 0.12);
        --glass-line: rgba(255, 255, 255, 0.16);
        --glass-fill: rgba(255, 255, 255, 0.08);
        --glass-fill-strong: rgba(255, 255, 255, 0.12);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
        --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.28);
        /* Lighter claret for contrast on dark panels (burgundy #7d1f27 disappears here) */
        --claret: #e8aeb4;
        --claret-deep: #c97a82;
        --claret-soft: #f0c8cc;
    }

    html:not([data-theme]) body {
        background:
            radial-gradient(circle at 12% 10%, rgba(125, 31, 39, 0.26), transparent 24%),
            radial-gradient(circle at 88% 18%, rgba(187, 148, 87, 0.14), transparent 26%),
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 42%),
            linear-gradient(180deg, #140d0d 0%, #110b0b 42%, #0d0909 100%);
    }

    html:not([data-theme]) body::before {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    }

    html:not([data-theme]) body::after {
        background:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 14%),
            radial-gradient(circle at 78% 22%, rgba(125, 31, 39, 0.12), transparent 16%),
            radial-gradient(circle at 72% 76%, rgba(187, 148, 87, 0.08), transparent 18%);
    }

    html:not([data-theme]) .hero {
        background:
            linear-gradient(135deg, rgba(36, 12, 12, 0.78) 0%, rgba(75, 12, 12, 0.72) 48%, rgba(95, 60, 24, 0.5) 120%);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    }

    html:not([data-theme]) .hero::before {
        background:
            radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.1), transparent 28%),
            linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 40%),
            linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
    }

    html:not([data-theme]) .hero::after {
        border-color: rgba(255, 255, 255, 0.08);
    }

    html:not([data-theme]) .brand-row,
    html:not([data-theme]) .theme-toggle {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    html:not([data-theme]) .theme-toggle button {
        color: rgba(246, 237, 229, 0.82);
    }

    html:not([data-theme]) .theme-toggle button:hover,
    html:not([data-theme]) .theme-toggle button:focus-visible,
    html:not([data-theme]) .theme-toggle button[aria-pressed="true"] {
        background: rgba(255, 255, 255, 0.1);
        color: #fff4ec;
    }

    html:not([data-theme]) .panel {
        background:
            linear-gradient(180deg, rgba(30, 18, 18, 0.62), rgba(18, 12, 12, 0.5));
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    }

    html:not([data-theme]) .panel::after {
        border-color: rgba(255, 255, 255, 0.08);
    }

    html:not([data-theme]) .card {
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    html:not([data-theme]) .card::before {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 34%),
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
    }

    html:not([data-theme]) .card::after {
        border-color: rgba(255, 255, 255, 0.08);
    }

    html:not([data-theme]) .card:hover,
    html:not([data-theme]) .card:focus-visible {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
    }

    html:not([data-theme]) .card-wide {
        background: linear-gradient(180deg, rgba(34, 22, 22, 0.62) 0%, rgba(26, 18, 18, 0.46) 100%);
    }

    html:not([data-theme]) .card-tall {
        background: linear-gradient(180deg, rgba(31, 20, 20, 0.62) 0%, rgba(24, 17, 17, 0.44) 100%);
    }

    html:not([data-theme]) .card-rich {
        background:
            linear-gradient(180deg, rgba(125, 31, 39, 0.36), rgba(87, 18, 25, 0.42)),
            linear-gradient(180deg, rgba(27, 14, 14, 0.66) 0%, rgba(19, 11, 11, 0.72) 100%);
        border-color: rgba(255, 255, 255, 0.16);
    }

    html:not([data-theme]) .card-tag {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
        color: #ffd7d7;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    html:not([data-theme]) .card-rich .card-tag {
        background: rgba(255, 255, 255, 0.12);
        color: #fff4f4;
    }

    html:not([data-theme]) .card-number {
        color: rgba(255, 255, 255, 0.24);
    }

    html:not([data-theme]) .card-link::after {
        background: rgba(255, 255, 255, 0.1);
    }

    html:not([data-theme]) .panel-footer {
        color: rgba(246, 237, 229, 0.72);
    }
}

html[data-theme="light"] {
    color-scheme: light;
    /* Restore burgundy accents when user picks light (overrides dark-OS tokens) */
    --claret: #7d1f27;
    --claret-deep: #571219;
    --claret-soft: #c49a9f;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 10%, rgba(234, 215, 176, 0.78), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(199, 102, 88, 0.2), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.32), transparent 42%),
        linear-gradient(180deg, #f1e6d7 0%, #efe4d8 38%, #e9ddd0 100%);
}

html[data-theme="dark"] {
    --ink: #f6ede5;
    --muted: #d7c5bb;
    --paper: #160d0d;
    --paper-strong: #211414;
    --line: rgba(255, 255, 255, 0.12);
    --glass-line: rgba(255, 255, 255, 0.16);
    --glass-fill: rgba(255, 255, 255, 0.08);
    --glass-fill-strong: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.28);
    /* Lighter claret for contrast on dark panels */
    --claret: #e8aeb4;
    --claret-deep: #c97a82;
    --claret-soft: #f0c8cc;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 12% 10%, rgba(125, 31, 39, 0.26), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(187, 148, 87, 0.14), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 42%),
        linear-gradient(180deg, #140d0d 0%, #110b0b 42%, #0d0909 100%);
}

html[data-theme="dark"] body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] body::after {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 14%),
        radial-gradient(circle at 78% 22%, rgba(125, 31, 39, 0.12), transparent 16%),
        radial-gradient(circle at 72% 76%, rgba(187, 148, 87, 0.08), transparent 18%);
}

html[data-theme="dark"] .hero {
    background:
        linear-gradient(135deg, rgba(36, 12, 12, 0.78) 0%, rgba(75, 12, 12, 0.72) 48%, rgba(95, 60, 24, 0.5) 120%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .hero::before {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

html[data-theme="dark"] .hero::after {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-row {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .theme-toggle button {
    color: rgba(246, 237, 229, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .theme-toggle button:hover,
html[data-theme="dark"] .theme-toggle button:focus-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    color: #fff4ec;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .panel {
    background:
        linear-gradient(180deg, rgba(30, 18, 18, 0.62), rgba(18, 12, 12, 0.5));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .panel::after {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .card::before {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
}

html[data-theme="dark"] .card::after {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .card:focus-visible {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .card-wide {
    background: linear-gradient(180deg, rgba(34, 22, 22, 0.62) 0%, rgba(26, 18, 18, 0.46) 100%);
}

html[data-theme="dark"] .card-tall {
    background: linear-gradient(180deg, rgba(31, 20, 20, 0.62) 0%, rgba(24, 17, 17, 0.44) 100%);
}

html[data-theme="dark"] .card-rich {
    background:
        linear-gradient(180deg, rgba(125, 31, 39, 0.36), rgba(87, 18, 25, 0.42)),
        linear-gradient(180deg, rgba(27, 14, 14, 0.66) 0%, rgba(19, 11, 11, 0.72) 100%);
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .card-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffd7d7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .card-rich .card-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #fff4f4;
}

html[data-theme="dark"] .card-number {
    color: rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .card-link::after {
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .panel-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(246, 237, 229, 0.72);
}

@media (max-width: 640px) {
    .hero-top {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-toggle {
        width: fit-content;
    }

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

/* Shared with QR builder: panel intro row */
.panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.panel-header h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

@media (max-width: 980px) {
    .panel-header {
        grid-template-columns: 1fr;
    }
}

/* Guide / article pages (hero title smaller than landing) */
.hero-copy--page {
    max-width: 900px;
}

.hero-copy--page h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    white-space: normal;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.guide-panel {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
    color: var(--claret);
    gap: 12px;
}

.step {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.step:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step h2 {
    margin: 0 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--claret);
    letter-spacing: -0.02em;
}

.step p,
.step ul {
    margin: 0 0 1em;
    font-size: 1.02rem;
}

.step ul {
    padding-left: 1.4em;
}

.step p:last-child,
.step ul:last-child {
    margin-bottom: 0;
}

/* B&B welcome letter (same panel as guides) */
.welcome-intro {
    margin-bottom: 28px;
}

.welcome-intro p {
    margin: 0 0 1em;
    font-size: 1.02rem;
}

.welcome-intro p:last-child {
    margin-bottom: 0;
}

.guide-panel .info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.guide-panel .info-row strong {
    min-width: 100px;
    color: var(--ink);
}

.welcome-closing {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.welcome-closing p {
    margin: 0 0 0.5em;
    font-size: 1.02rem;
}

.welcome-closing p:last-child {
    margin-bottom: 0;
}

.welcome-letter .step:has(+ .welcome-closing) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.welcome-letter a:not(.back-link) {
    color: var(--claret);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.welcome-letter a:not(.back-link):hover {
    color: var(--claret-deep);
}

.step-img {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 18px auto 0;
    border-radius: var(--radius-md);
    cursor: zoom-in;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    transition: box-shadow 0.2s ease;
}

.step-img:hover {
    box-shadow: var(--shadow);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    padding: 40px 24px;
    overflow: auto;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.modal-content {
    margin: 48px auto;
    display: block;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-md);
    cursor: default;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.modal-close:hover {
    opacity: 0.85;
}

@media (max-width: 640px) {
    .hero-copy--page h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}