/**
 * Oranda Brand Guidelines - Main Stylesheet
 * Premium left-sidebar document browser with Oranda styling
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Oranda brand colours */
    --color-cream: #fbfbf4;
    --color-dark: #0a0a0a;
    --color-dark-secondary: #111111;
    --color-dark-tertiary: #1a1a1a;
    --color-orange: #e07850;
    --color-orange-brand: #F8981D;
    --color-orange-light: #f4a261;
    --color-red: #E31B23;
    --color-purple: #542988;
    --color-text-light: rgba(251, 251, 244, 0.9);
    --color-text-muted: rgba(251, 251, 244, 0.6);
    --color-text-faint: rgba(251, 251, 244, 0.35);
    --color-border: rgba(251, 251, 244, 0.08);
    --color-border-hover: rgba(251, 251, 244, 0.15);
    --color-glow: rgba(224, 120, 80, 0.4);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --sidebar-width: 300px;
    --content-max: 960px;
    --content-padding: clamp(32px, 5vw, 80px);
    --section-gap: clamp(80px, 10vw, 140px);
    --mobile-header-height: 56px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(251,251,244,0.15) transparent;
    height: 100%;
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(251,251,244,0.15);
    border-radius: 3px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    background: var(--color-dark);
    color: var(--color-text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    overflow-x: clip;
}

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

a:hover {
    color: var(--color-orange);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
    font-size: 0.8rem;
    background: rgba(251,251,244,0.06);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-orange);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text-light);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

p {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--color-text-muted);
    max-width: 72ch;
    line-height: 1.7;
}

.bg-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-orange);
    display: block;
    margin-bottom: 0.75rem;
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.bg-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.bg-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bg-loader__logo img {
    height: 40px;
    width: auto;
    opacity: 0;
}

.bg-loader__bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: 1px;
    overflow: hidden;
}

.bg-loader__progress {
    height: 100%;
    width: 0%;
    background: var(--color-orange);
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* ============================================================
   LAYOUT - SIDEBAR + CONTENT
   ============================================================ */
.bg-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.bg-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-dark-secondary);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}

.bg-sidebar__header {
    padding: 32px 28px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.bg-sidebar__logo {
    display: block;
    margin-bottom: 8px;
}

.bg-sidebar__logo-img {
    height: 36px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.bg-sidebar__logo:hover .bg-sidebar__logo-img {
    opacity: 1;
}

.bg-sidebar__label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

/* Sidebar Nav */
.bg-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(251,251,244,0.08) transparent;
}

.bg-sidebar__nav::-webkit-scrollbar {
    width: 3px;
}
.bg-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(251,251,244,0.08);
    border-radius: 2px;
}

/* Nav Groups */
.bg-nav-group {
    margin-bottom: 2px;
}

.bg-nav-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.bg-nav-group__title:hover {
    color: var(--color-text-light);
    background: rgba(251,251,244,0.03);
}

.bg-nav-group__title svg {
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.bg-nav-group.is-open > .bg-nav-group__title svg {
    transform: rotate(180deg);
    opacity: 0.7;
}

.bg-nav-group.is-active > .bg-nav-group__title {
    color: var(--color-orange);
}

/* Nav Items */
.bg-nav-group__items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-nav-group.is-open > .bg-nav-group__items {
    max-height: 400px;
}

.bg-nav-group__items li a {
    display: block;
    padding: 7px 28px 7px 40px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-faint);
    transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
    position: relative;
}

.bg-nav-group__items li a::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.bg-nav-group__items li a:hover {
    color: var(--color-text-light);
    background: rgba(251,251,244,0.02);
}

.bg-nav-group__items li a.is-active {
    color: var(--color-orange);
    padding-left: 44px;
}

.bg-nav-group__items li a.is-active::before {
    background: var(--color-orange);
}

/* Sidebar Footer */
.bg-sidebar__footer {
    padding: 20px 28px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.bg-sidebar__back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    transition: color 0.2s ease;
}

.bg-sidebar__back:hover {
    color: var(--color-orange);
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.bg-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

[data-theme="light"] .bg-mobile-header {
    background: rgba(251, 251, 244, 0.95);
}

.bg-mobile-header__toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.bg-mobile-header__toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bg-mobile-header__title {
    display: none;
}

.bg-mobile-header__logo {
    display: flex;
    align-items: center;
}

.bg-mobile-header__logo img {
    height: 24px;
    width: auto;
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.bg-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bg-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.bg-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.bg-mobile-nav__title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.bg-mobile-nav__close {
    padding: 4px;
    color: var(--color-text-muted);
}

.bg-mobile-nav__list {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.bg-mobile-nav__list .bg-nav-group__title {
    padding: 12px 24px;
    font-size: 0.85rem;
}

.bg-mobile-nav__list .bg-nav-group__items li a {
    padding: 10px 24px 10px 44px;
    font-size: 0.9rem;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.bg-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.bg-section {
    padding: var(--content-padding);
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

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

.bg-section__header {
    margin-bottom: clamp(40px, 5vw, 64px);
    max-width: var(--content-max);
}

.bg-section__title {
    margin-top: 4px;
}

.bg-section__body {
    max-width: var(--content-max);
}

.bg-section__body > p {
    margin-bottom: 48px;
}

.bg-section__body--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* ============================================================
   HERO
   ============================================================ */
.bg-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        var(--color-dark-secondary) 50%,
        rgba(224, 120, 80, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.bg-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(224, 120, 80, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.bg-hero__content {
    max-width: var(--content-max);
}

.bg-hero__title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 14ch;
}

.bg-hero__intro {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    max-width: 55ch;
    margin-bottom: 32px;
}

.bg-hero__meta {
    margin-bottom: 64px;
}

.bg-hero__version {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    letter-spacing: 0.05em;
}

.bg-hero__scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    letter-spacing: 0.05em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   VALUE CARDS (Introduction)
   ============================================================ */
.bg-mission {
    margin-bottom: 64px;
    padding: 48px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    position: relative;
}

.bg-mission::before {
    display: none;
}

.bg-mission__label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.bg-mission__text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.5;
    color: var(--color-text-light);
    max-width: 60ch;
}

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

.bg-value-card {
    padding: 36px;
    background: rgba(251,251,244,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bg-value-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.bg-value-card__number {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.bg-value-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.bg-value-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   THE ORANDA (Brand Story)
   ============================================================ */
.bg-oranda-story__hero {
    margin-bottom: 48px;
}

.bg-oranda-story__image {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-dark-tertiary);
}

.bg-oranda-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-oranda-story__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-faint);
    border: 2px dashed var(--color-border);
    border-radius: 20px;
}

.bg-oranda-story__placeholder span {
    font-size: 0.9rem;
}

.bg-oranda-story__placeholder small {
    font-size: 0.7rem;
    opacity: 0.6;
}

.bg-oranda-story__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bg-oranda-story__block {
    padding: 36px;
    background: rgba(251, 251, 244, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bg-oranda-story__block:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.bg-oranda-story__block h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.bg-oranda-story__block p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .bg-oranda-story__content {
        grid-template-columns: 1fr;
    }
    .bg-oranda-story__image {
        aspect-ratio: 16/9;
    }
}

/* ============================================================
   LOGO SECTION
   ============================================================ */
.bg-logo-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.bg-logo-showcase__main {
    position: relative;
}

.bg-logo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    border-radius: 16px;
    min-height: 280px;
}

.bg-logo-display--light {
    background: #ffffff;
}

.bg-logo-display--grey {
    background: #7a7a7a;
}

.bg-logo-display--dark {
    background: #2a2a2a;
    border: 1px solid var(--color-border);
}

.bg-logo-display img {
    max-width: 260px;
    max-height: 160px;
    object-fit: contain;
}

.bg-logo-placeholder {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    padding: 32px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    width: 100%;
}

.bg-logo-placeholder small {
    display: block;
    font-size: 0.7rem;
    margin-top: 8px;
    opacity: 0.6;
}

.bg-logo-placeholder--sm {
    padding: 16px;
    font-size: 0.75rem;
}

.bg-logo-showcase__text h3 {
    margin-bottom: 16px;
}

.bg-logo-showcase__text p {
    font-size: 0.95rem;
}

/* Logo Grid */
.bg-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bg-logo-variant {
    text-align: center;
}

.bg-logo-variant .bg-logo-display {
    margin-bottom: 12px;
    min-height: 180px;
    padding: 32px;
}

.bg-logo-variant .bg-logo-display img {
    max-width: 180px;
    max-height: 120px;
}

.bg-logo-variant__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.bg-logo-variant__note {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

/* Clear Space Layout */
.bg-clear-space-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 900px) {
    .bg-clear-space-layout {
        grid-template-columns: 1fr;
    }
}

.bg-clear-space-demo__box {
    padding: 48px;
    background: rgba(251,251,244,0.04);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.bg-clear-space-demo__clear {
    position: relative;
    padding: 48px;
    border: 2px dashed rgba(224, 120, 80, 0.3);
    border-radius: 8px;
    background: #ffffff;
}

.bg-clear-space-demo__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-clear-space-demo__logo img {
    max-width: 200px;
}

.bg-clear-space-demo__label {
    position: absolute;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-orange);
    letter-spacing: 0.1em;
}

.bg-clear-space-demo__label--top { top: 8px; left: 50%; transform: translateX(-50%); }
.bg-clear-space-demo__label--right { right: 8px; top: 50%; transform: translateY(-50%); }
.bg-clear-space-demo__label--bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.bg-clear-space-demo__label--left { left: 8px; top: 50%; transform: translateY(-50%); }

/* Spacing Notes */
.bg-spacing-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(224, 120, 80, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--color-orange);
}

.bg-spacing-note__x {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-orange);
}

.bg-spacing-note span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Min Sizes */
.bg-min-sizes {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.bg-min-size {
    padding: 20px 24px;
    background: rgba(251,251,244,0.04);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    flex: 1;
}

.bg-min-size__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-bottom: 8px;
}

.bg-min-size__value {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Logo Placement */
.bg-placement-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bg-placement-card {
    text-align: center;
}

.bg-placement-card__preview {
    aspect-ratio: 4/3;
    background: #f5f5f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.bg-placement-card__mockup {
    width: 50%;
}

.bg-placement-card__mockup--small {
    width: 30%;
    position: absolute;
    top: 16px;
    left: 16px;
}

.bg-placement-card__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
}

/* Logo Misuse */
.bg-misuse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bg-misuse-card {
    text-align: center;
}

.bg-misuse-card__preview {
    aspect-ratio: 1;
    background: rgba(227, 27, 35, 0.04);
    border: 1px solid rgba(227, 27, 35, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.bg-misuse-card__example {
    width: 60%;
    max-width: 120px;
}

.bg-misuse-card__example--stretch { transform: scaleX(1.5); }
.bg-misuse-card__example--recolour { filter: hue-rotate(120deg) saturate(1.5); }
.bg-misuse-card__example--rotate { transform: rotate(25deg); }
.bg-misuse-card__example--shadow { filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.5)); }
.bg-misuse-card__example--crop { clip-path: inset(20% 0 0 20%); transform: scale(1.3); }
.bg-misuse-card__example--busy {
    opacity: 0.4;
}

.bg-misuse-card__x {
    position: absolute;
    top: 12px;
    right: 12px;
}

.bg-misuse-card__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================================
   COLOUR SECTION
   ============================================================ */
.bg-colour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.bg-colour-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(251,251,244,0.04);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.bg-colour-card__info {
    flex: 1;
}

.bg-colour-card__swatch {
    height: 140px;
    width: 100%;
}

.bg-colour-card__info {
    padding: 20px 24px 16px;
}

.bg-colour-card__info h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bg-colour-card__specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bg-colour-card__specs span {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.bg-colour-card__specs strong {
    color: var(--color-text-muted);
    display: inline-block;
    width: 60px;
    font-weight: 500;
}

.bg-colour-card__tints {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 48px;
}

.bg-colour-card__tints div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-colour-card__tints span {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Compact colour grid (digital palette) */
.bg-colour-grid--compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bg-colour-chip {
    text-align: center;
}

.bg-colour-chip__swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 12px;
}

.bg-colour-chip__info {
    text-align: left;
}

.bg-colour-chip__info strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.bg-colour-chip__info code {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 4px;
    padding: 2px 0;
    background: none;
}

.bg-colour-chip__info span {
    font-size: 0.7rem;
    color: var(--color-text-faint);
}

/* Orange Ambient Gradient Feature */
.bg-gradient-feature {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
    background: rgba(251, 251, 244, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin-bottom: 48px;
}

.bg-gradient-feature__demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bg-gradient-feature__swatch {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
}

.bg-gradient-feature__swatch span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.bg-gradient-feature__swatch--light {
    background: #fbfbf4;
    border: 1px solid rgba(10, 10, 10, 0.08);
}

.bg-gradient-feature__swatch--light span {
    color: rgba(10, 10, 10, 0.4);
}

.bg-gradient-feature__swatch--dark {
    background: #0a0a0a;
    border: 1px solid rgba(251, 251, 244, 0.08);
}

.bg-gradient-feature__swatch--dark span {
    color: rgba(251, 251, 244, 0.4);
}

.bg-gradient-feature__glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(248, 152, 29, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.bg-gradient-feature__glow--dark {
    background: radial-gradient(ellipse, rgba(224, 120, 80, 0.06) 0%, transparent 70%);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.bg-gradient-feature__info h3 {
    margin-bottom: 12px;
}

.bg-gradient-feature__info p {
    margin-bottom: 16px;
}

.bg-gradient-feature__specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.bg-gradient-feature__spec {
    padding: 12px 16px;
    background: rgba(251, 251, 244, 0.04);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.bg-gradient-feature__spec strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.bg-gradient-feature__spec code {
    font-size: 0.7rem;
    word-break: break-all;
}

@media (max-width: 900px) {
    .bg-gradient-feature {
        grid-template-columns: 1fr;
    }
}

/* Colour Usage Rules */
.bg-usage-rules {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bg-usage-rule {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 24px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.bg-usage-rule:hover {
    border-color: var(--color-border-hover);
}

.bg-usage-rule p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bg-usage-rule__badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.bg-usage-rule__badge--do {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.bg-usage-rule__badge--dont {
    background: rgba(227, 27, 35, 0.1);
    color: #ef5350;
    border: 1px solid rgba(227, 27, 35, 0.25);
}

/* ============================================================
   TYPOGRAPHY SECTION
   ============================================================ */
.bg-type-showcase {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 48px;
}

.bg-type-specimen {
    padding: 36px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-type-specimen__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.bg-type-specimen__sample {
    color: var(--color-text-light) !important;
    max-width: none;
    margin-bottom: 16px;
}

.bg-type-specimen__usage {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-faint);
}

.bg-type-specimen__meta {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.bg-type-specimen__meta span {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

/* Typography Evolution */
.bg-type-evolution__intro {
    margin-bottom: 48px;
}

.bg-type-evolution__intro .large-text {
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 72ch;
}

.bg-type-evolution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.bg-type-evolution-card {
    padding: 32px;
    background: rgba(251, 251, 244, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-type-evolution-card__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.bg-type-evolution-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Type Systems (Print/Digital) */
.bg-type-system {
    margin-bottom: 48px;
    padding: 40px;
    background: rgba(251, 251, 244, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.bg-type-system__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.bg-type-system__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(251, 251, 244, 0.08);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.bg-type-system__badge--digital {
    background: rgba(224, 120, 80, 0.1);
    border-color: rgba(224, 120, 80, 0.2);
    color: var(--color-orange);
}

.bg-type-system__header p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.bg-type-system__specimens {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bg-type-system .bg-type-specimen {
    margin-bottom: 0;
}

/* Type Pairing Demo (Print) */
.bg-type-pairing-demo {
    margin-top: 24px;
}

.bg-type-pairing-demo__example {
    padding: 36px;
    background: rgba(251, 251, 244, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-type-pairing-demo__label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-top: 12px;
}

/* Cross-reference Table */
.bg-type-crossref {
    margin-top: 48px;
}

.bg-type-crossref h3 {
    margin-bottom: 8px;
}

.bg-type-crossref > p {
    margin-bottom: 24px;
}

.bg-type-crossref__table {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.bg-type-crossref__row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.bg-type-crossref__row:last-child {
    border-bottom: none;
}

.bg-type-crossref__row--header {
    background: rgba(251, 251, 244, 0.04);
}

.bg-type-crossref__row--header span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.bg-type-crossref__row span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.bg-type-crossref__row span:first-child {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .bg-type-evolution-grid {
        grid-template-columns: 1fr;
    }
}

/* Font Pairing */
.bg-font-pairing {
    margin-top: 48px;
}

.bg-font-pairing__example {
    padding: 48px;
    background: rgba(251,251,244,0.04);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-font-pairing__label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-top: 16px;
}

/* Type Scale */
.bg-type-scale {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
}

.bg-type-scale__item {
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-border);
}

.bg-type-scale__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bg-type-scale__label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    background: rgba(224, 120, 80, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
}

.bg-type-scale__size {
    font-family: 'SF Mono', monospace;
    font-size: 0.7rem;
    color: var(--color-text-faint);
}

.bg-type-scale__sample {
    max-width: none !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   PHOTOGRAPHY SECTION
   ============================================================ */
.bg-photo-principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 64px;
}

.bg-photo-principle {
    padding: 32px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: border-color 0.3s ease;
}

.bg-photo-principle:hover {
    border-color: var(--color-border-hover);
}

.bg-photo-principle__number {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.bg-photo-principle h4 {
    margin-bottom: 8px;
}

.bg-photo-principle p {
    font-size: 0.85rem;
}

/* Image Treatments */
.bg-photo-treatments h3 {
    margin-bottom: 12px;
}

.bg-photo-treatments > p {
    margin-bottom: 24px;
}

.bg-treatment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bg-treatment-card {
    text-align: center;
}

.bg-treatment-card__preview {
    aspect-ratio: 16/10;
    background: var(--color-dark-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.bg-treatment-card__placeholder {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    padding: 16px;
}

.bg-treatment-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-treatment-card__preview--clip img {
    animation: clipReveal 3s ease-in-out infinite;
}

@keyframes clipReveal {
    0%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; }
    30%, 70% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.bg-treatment-card__preview--blur img {
    animation: blurFocus 3s ease-in-out infinite;
}

@keyframes blurFocus {
    0%, 100% { filter: blur(8px); opacity: 0.5; }
    30%, 70% { filter: blur(0); opacity: 1; }
}

.bg-treatment-card__preview--parallax img {
    animation: parallaxDemo 3s ease-in-out infinite;
}

@keyframes parallaxDemo {
    0%, 100% { transform: translateY(10px) scale(1.1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.bg-treatment-card span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.bg-treatment-card small {
    font-size: 0.7rem;
    color: var(--color-text-faint);
}

/* Image Bank */
.bg-image-bank__filters {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.bg-image-bank__filter {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.bg-image-bank__filter:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-light);
}

.bg-image-bank__filter.is-active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-dark);
}

.bg-image-bank__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.bg-image-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bg-image-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.bg-image-card.is-hidden {
    display: none;
}

.bg-image-card__preview {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: var(--color-dark-tertiary);
}

.bg-image-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bg-image-card:hover .bg-image-card__preview img {
    transform: scale(1.05);
}

.bg-image-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 8px;
    color: var(--color-text-faint);
}

.bg-image-card__placeholder span {
    font-size: 0.7rem;
}

.bg-image-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg-image-card:hover .bg-image-card__overlay {
    opacity: 1;
}

.bg-image-card__download {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: transform 0.3s ease;
}

.bg-image-card__download:hover {
    transform: scale(1.1);
    color: var(--color-dark);
}

.bg-image-card__info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-image-card__title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.bg-image-card__theme {
    font-size: 0.65rem;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-image-bank__actions {
    text-align: center;
    padding-top: 16px;
}

/* ============================================================
   TONE OF VOICE
   ============================================================ */
.bg-voice-pillars {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.bg-voice-pillar {
    padding: 36px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-voice-pillar__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bg-voice-pillar__number {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-orange);
}

.bg-voice-pillar__header h4 {
    font-family: var(--font-sans);
    font-weight: 600;
}

.bg-voice-pillar > p {
    margin-bottom: 24px;
}

.bg-voice-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bg-voice-example__good,
.bg-voice-example__bad {
    padding: 20px;
    border-radius: 12px;
}

.bg-voice-example__good {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.bg-voice-example__bad {
    background: rgba(227, 27, 35, 0.04);
    border: 1px solid rgba(227, 27, 35, 0.12);
}

.bg-voice-example p {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Key Messages */
.bg-messages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bg-message-card {
    padding: 32px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: border-color 0.3s ease;
}

.bg-message-card:hover {
    border-color: var(--color-border-hover);
}

.bg-message-card__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.bg-message-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   DIGITAL SECTION
   ============================================================ */
.bg-component-block {
    margin-bottom: 64px;
}

.bg-component-block h3 {
    margin-bottom: 12px;
}

.bg-component-block > p {
    margin-bottom: 24px;
}

.bg-component-demo {
    padding: 36px;
    background: var(--color-dark-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-component-demo__row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.bg-component-demo__row--cards {
    align-items: stretch;
}

.bg-component-demo__code {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.bg-component-demo__code code {
    font-size: 0.75rem;
    display: block;
    word-break: break-all;
}

/* Demo Buttons */
.bg-demo-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bg-demo-btn--primary {
    background: var(--color-orange);
    color: var(--color-dark);
    border: 1px solid var(--color-orange);
}

.bg-demo-btn--primary:hover {
    background: transparent;
    color: var(--color-orange);
    transform: translateY(-2px);
}

.bg-demo-btn--secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border-hover);
}

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

.bg-demo-btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid transparent;
    padding: 14px 24px;
}

.bg-demo-btn--ghost:hover {
    color: var(--color-orange);
}

/* Demo Glass Cards */
.bg-demo-glass-card {
    flex: 1;
    padding: 32px;
    background: rgba(251,251,244,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(251,251,244,0.12);
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.bg-demo-glass-card:hover {
    border-color: rgba(251,251,244,0.2);
}

.bg-demo-glass-card h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bg-demo-glass-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Motion Principles */
.bg-motion-principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
}

.bg-motion-principle {
    padding: 32px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-motion-principle h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 8px;
}

.bg-motion-principle > p {
    margin-bottom: 16px;
}

.bg-motion-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.bg-motion-spec span {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    padding: 4px 12px;
    background: rgba(251,251,244,0.04);
    border-radius: 6px;
}

.bg-motion-spec strong {
    color: var(--color-text-muted);
}

/* Accessibility */
.bg-accessibility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bg-accessibility-card {
    padding: 32px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.bg-accessibility-card h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 8px;
}

.bg-accessibility-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.bg-download-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.bg-download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.bg-download-card:hover {
    border-color: var(--color-border-hover);
}

.bg-download-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 120, 80, 0.1);
    border-radius: 10px;
    color: var(--color-orange);
}

.bg-download-card__info {
    flex: 1;
}

.bg-download-card__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.bg-download-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.bg-download-card__btn {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--color-border-hover);
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.bg-download-card__btn:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-dark);
}

/* Download Feature (large) */
.bg-download-feature {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 48px;
    background: rgba(251,251,244,0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.bg-download-feature__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 120, 80, 0.1);
    border-radius: 16px;
    color: var(--color-orange);
}

.bg-download-feature__info {
    flex: 1;
}

.bg-download-feature__info h3 {
    margin-bottom: 8px;
}

.bg-download-feature__info p {
    margin-bottom: 16px;
}

.bg-download-feature__info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bg-download-feature__info li {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding-left: 16px;
    position: relative;
}

.bg-download-feature__info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-orange);
}

/* Buttons */
.bg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.bg-btn--primary {
    background: var(--color-orange);
    color: var(--color-dark);
    border: 1px solid var(--color-orange);
}

.bg-btn--primary:hover {
    background: transparent;
    color: var(--color-orange);
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.bg-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.bg-contact-card {
    padding: 40px;
    background: rgba(251, 251, 244, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.bg-contact-card:hover {
    border-color: var(--color-border-hover);
}

.bg-contact-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 120, 80, 0.1);
    border-radius: 14px;
    color: var(--color-orange);
    margin-bottom: 24px;
}

.bg-contact-card h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bg-contact-card > p {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.bg-contact-card__person {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bg-contact-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.bg-contact-card__title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.bg-contact-card__email {
    font-size: 0.9rem;
    color: var(--color-orange);
    margin-top: 4px;
    transition: opacity 0.3s ease;
}

.bg-contact-card__email:hover {
    opacity: 0.8;
    color: var(--color-orange);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.bg-footer {
    margin-left: var(--sidebar-width);
    padding: 32px var(--content-padding);
    border-top: 1px solid var(--color-border);
    background: var(--color-dark-secondary);
}

.bg-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-footer__inner p {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-bottom: 0;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .bg-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-colour-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }
    .bg-image-bank__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bg-misuse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* Show mobile header, hide sidebar */
    .bg-sidebar {
        display: none;
    }
    .bg-mobile-header {
        display: flex;
    }
    .bg-content {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
        max-width: 100vw;
        overflow-x: clip;
    }
    .bg-footer {
        margin-left: 0;
    }
    .bg-theme-toggle:not(.bg-theme-toggle--mobile) {
        display: none !important;
    }
    .bg-mobile-header .bg-theme-toggle--mobile {
        display: flex !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
    }

    /* Layout adjustments */
    .bg-section__body--split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bg-values-grid {
        grid-template-columns: 1fr;
    }
    .bg-logo-showcase {
        grid-template-columns: 1fr;
    }
    .bg-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-colour-grid {
        grid-template-columns: 1fr;
    }
    .bg-colour-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-placement-examples {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-misuse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-image-bank__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bg-photo-principles {
        grid-template-columns: 1fr;
    }
    .bg-treatment-grid {
        grid-template-columns: 1fr;
    }
    .bg-voice-example {
        grid-template-columns: 1fr;
    }
    .bg-messages-grid {
        grid-template-columns: 1fr;
    }
    .bg-accessibility-grid {
        grid-template-columns: 1fr;
    }
    .bg-download-feature {
        flex-direction: column;
    }
    .bg-footer__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .bg-min-sizes {
        flex-direction: column;
    }

    .bg-hero__title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

@media (max-width: 600px) {
    :root {
        --content-padding: 16px;
        --section-gap: 60px;
    }

    html, body {
        overflow-x: clip;
        max-width: 100vw;
    }

    .bg-section::after {
        display: none;
    }

    .bg-logo-grid {
        grid-template-columns: 1fr;
    }
    .bg-misuse-grid {
        grid-template-columns: 1fr;
    }
    .bg-placement-examples {
        grid-template-columns: 1fr;
    }
    .bg-image-bank__grid {
        grid-template-columns: 1fr;
    }
    .bg-colour-grid--compact {
        grid-template-columns: 1fr;
    }
    .bg-image-bank__filters {
        gap: 6px;
    }
    .bg-image-bank__filter {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
    .bg-component-demo__row {
        flex-direction: column;
    }
    .bg-download-card {
        flex-wrap: wrap;
    }
    .bg-download-card__btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
    --color-cream: #0a0a0a;
    --color-dark: #fbfbf4;
    --color-dark-secondary: #f0f0e8;
    --color-dark-tertiary: #e8e8e0;
    --color-text-light: rgba(10, 10, 10, 0.9);
    --color-text-muted: rgba(10, 10, 10, 0.6);
    --color-text-faint: rgba(10, 10, 10, 0.35);
    --color-border: rgba(10, 10, 10, 0.08);
    --color-border-hover: rgba(10, 10, 10, 0.15);
    --color-glow: rgba(224, 120, 80, 0.3);
}

[data-theme="light"] body {
    background: var(--color-dark);
    color: var(--color-text-light);
}

[data-theme="light"] .bg-sidebar {
    background: #f5f5ed;
    border-right-color: rgba(10, 10, 10, 0.08);
}

[data-theme="light"] .bg-sidebar__logo-img.logo-dark {
    display: none !important;
}

[data-theme="light"] .bg-sidebar__logo-img.logo-light {
    display: block !important;
}

[data-theme="light"] .bg-mobile-header {
    background: rgba(251, 251, 244, 0.95);
    border-bottom-color: rgba(10, 10, 10, 0.08);
}

[data-theme="light"] .bg-mobile-header__toggle span {
    background: var(--color-text-light);
}

[data-theme="light"] .bg-mobile-header__logo .logo-dark,
[data-theme="light"] .bg-mobile-nav .logo-dark {
    display: none !important;
}

[data-theme="light"] .bg-mobile-header__logo .logo-light,
[data-theme="light"] .bg-mobile-nav .logo-light {
    display: block !important;
}

[data-theme="light"] .bg-mobile-nav {
    background: rgba(251, 251, 244, 0.98);
}

[data-theme="light"] .bg-loader {
    background: #fbfbf4;
}

[data-theme="light"] .bg-loader__logo .logo-dark {
    display: none !important;
}

[data-theme="light"] .bg-loader__logo .logo-light {
    display: block !important;
}

[data-theme="light"] .bg-logo-display--dark {
    background: #2a2a2a;
}

[data-theme="light"] .bg-misuse-card__preview {
    background: rgba(227, 27, 35, 0.06);
}

[data-theme="light"] .bg-demo-glass-card {
    background: rgba(10, 10, 10, 0.04);
    border-color: rgba(10, 10, 10, 0.1);
}

[data-theme="light"] .bg-component-demo {
    background: #e8e8e0;
}

[data-theme="light"] code {
    background: rgba(10, 10, 10, 0.06);
}

/* Subtle orange ambient gradient on light mode backgrounds */
[data-theme="light"] .bg-section {
    position: relative;
}

[data-theme="light"] .bg-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(248, 152, 29, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .bg-section--dark::after {
    background: radial-gradient(ellipse at 70% 30%, rgba(248, 152, 29, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .bg-hero {
    background: linear-gradient(
        135deg,
        #fbfbf4 0%,
        #f0f0e8 40%,
        rgba(248, 152, 29, 0.06) 100%
    );
}

[data-theme="light"] .bg-hero::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(248, 152, 29, 0.08) 0%, rgba(227, 27, 35, 0.03) 40%, transparent 70%);
}

[data-theme="light"] .bg-sidebar {
    background: linear-gradient(
        180deg,
        #f5f5ed 0%,
        #f2f0e8 50%,
        rgba(248, 152, 29, 0.04) 100%
    );
}

[data-theme="light"] .bg-mission::before {
    background: linear-gradient(90deg, var(--color-orange), rgba(248, 152, 29, 0.2));
}

[data-theme="light"] .bg-value-card,
[data-theme="light"] .bg-oranda-story__block,
[data-theme="light"] .bg-voice-pillar,
[data-theme="light"] .bg-motion-principle,
[data-theme="light"] .bg-photo-principle,
[data-theme="light"] .bg-message-card,
[data-theme="light"] .bg-accessibility-card,
[data-theme="light"] .bg-type-specimen {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(10, 10, 10, 0.06);
    box-shadow: 0 1px 3px rgba(248, 152, 29, 0.04);
}

[data-theme="light"] .bg-value-card:hover,
[data-theme="light"] .bg-oranda-story__block:hover,
[data-theme="light"] .bg-message-card:hover {
    box-shadow: 0 4px 16px rgba(248, 152, 29, 0.08);
}

[data-theme="light"] .bg-download-feature,
[data-theme="light"] .bg-download-card,
[data-theme="light"] .bg-usage-rule {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(10, 10, 10, 0.06);
}

[data-theme="light"] .bg-colour-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(10, 10, 10, 0.06);
}

[data-theme="light"] .bg-image-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(10, 10, 10, 0.06);
}

[data-theme="light"] .bg-font-pairing__example {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(10, 10, 10, 0.06);
}

[data-theme="light"] .bg-clear-space-demo__box {
    background: repeating-linear-gradient(
        45deg,
        rgba(248, 152, 29, 0.02),
        rgba(248, 152, 29, 0.02) 5px,
        transparent 5px,
        transparent 10px
    );
    border-color: rgba(10, 10, 10, 0.06);
}

[data-theme="light"] .bg-clear-space-demo__clear {
    background: #fff;
    border-color: rgba(224, 120, 80, 0.25);
}

[data-theme="light"] .bg-btn--primary:hover {
    color: var(--color-orange);
}

[data-theme="light"] .bg-footer {
    background: linear-gradient(
        90deg,
        #f0f0e8 0%,
        rgba(248, 152, 29, 0.04) 100%
    );
}

/* Theme toggle */
.bg-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 250;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(251, 251, 244, 0.1);
    border: 1px solid rgba(251, 251, 244, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-theme-toggle:hover {
    background: rgba(251, 251, 244, 0.2);
}

/* Mobile toggle hidden on desktop, shown on mobile via media query */
.bg-mobile-header .bg-theme-toggle--mobile {
    display: none;
}


.bg-theme-toggle__sun { display: block; }
.bg-theme-toggle__moon { display: none; }

[data-theme="light"] .bg-theme-toggle__sun { display: none; }
[data-theme="light"] .bg-theme-toggle__moon { display: block; }

[data-theme="light"] .bg-theme-toggle {
    background: rgba(10, 10, 10, 0.08);
    border-color: rgba(10, 10, 10, 0.12);
    color: var(--color-cream);
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    .bg-hero__scroll {
        animation: none;
    }
    .bg-treatment-card__preview--clip .bg-treatment-card__placeholder,
    .bg-treatment-card__preview--blur .bg-treatment-card__placeholder,
    .bg-treatment-card__preview--parallax .bg-treatment-card__placeholder {
        animation: none;
        opacity: 1;
        filter: none;
        clip-path: none;
        transform: none;
    }
}
