/* ============================================================
   DOMAIN - Art-Deco Immersive Design
   Colors: #0A3A2A (Emerald Deep), #0A1A3A (Sapphire Night),
           #D4A830 (Gold Deco), #6A2C8A (Amethyst),
           #8A2A3A (Ruby), #F0E8D0 (Ivory)
   Fonts:  Abril Fatface (display), Josefin Sans (body),
           EB Garamond (scholarly)
   Interaction details:** card-flip on hover, line-illustration
   draw-in, gold border proximity glow, sunburst rotation.
   ============================================================ */

:root {
    --emerald: #0A3A2A;
    --sapphire: #0A1A3A;
    --gold: #D4A830;
    --gold-soft: rgba(212, 168, 48, 0.55);
    --gold-faint: rgba(212, 168, 48, 0.15);
    --amethyst: #6A2C8A;
    --ruby: #8A2A3A;
    --ivory: #F0E8D0;
    --ivory-soft: rgba(240, 232, 208, 0.85);
    --ivory-dim: rgba(240, 232, 208, 0.6);
    --space-section: 64px;
    --font-display: 'Abril Fatface', Georgia, serif;
    --font-body: 'Josefin Sans', 'Helvetica Neue', sans-serif;
    --font-scholar: 'EB Garamond', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--emerald);
    color: var(--ivory);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Persistent rotating sunburst (page background heartbeat)
   ============================================================ */
.page-sunburst {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 220vmax;
    height: 220vmax;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        rgba(212, 168, 48, 0.05) 0deg,
        transparent 7.5deg,
        rgba(212, 168, 48, 0.05) 15deg,
        transparent 22.5deg,
        rgba(212, 168, 48, 0.05) 30deg,
        transparent 37.5deg,
        rgba(212, 168, 48, 0.05) 45deg,
        transparent 52.5deg,
        rgba(212, 168, 48, 0.05) 60deg,
        transparent 67.5deg,
        rgba(212, 168, 48, 0.05) 75deg,
        transparent 82.5deg,
        rgba(212, 168, 48, 0.05) 90deg,
        transparent 97.5deg,
        rgba(212, 168, 48, 0.05) 105deg,
        transparent 112.5deg,
        rgba(212, 168, 48, 0.05) 120deg,
        transparent 127.5deg,
        rgba(212, 168, 48, 0.05) 135deg,
        transparent 142.5deg,
        rgba(212, 168, 48, 0.05) 150deg,
        transparent 157.5deg,
        rgba(212, 168, 48, 0.05) 165deg,
        transparent 172.5deg,
        rgba(212, 168, 48, 0.05) 180deg,
        transparent 187.5deg,
        rgba(212, 168, 48, 0.05) 195deg,
        transparent 202.5deg,
        rgba(212, 168, 48, 0.05) 210deg,
        transparent 217.5deg,
        rgba(212, 168, 48, 0.05) 225deg,
        transparent 232.5deg,
        rgba(212, 168, 48, 0.05) 240deg,
        transparent 247.5deg,
        rgba(212, 168, 48, 0.05) 255deg,
        transparent 262.5deg,
        rgba(212, 168, 48, 0.05) 270deg,
        transparent 277.5deg,
        rgba(212, 168, 48, 0.05) 285deg,
        transparent 292.5deg,
        rgba(212, 168, 48, 0.05) 300deg,
        transparent 307.5deg,
        rgba(212, 168, 48, 0.05) 315deg,
        transparent 322.5deg,
        rgba(212, 168, 48, 0.05) 330deg,
        transparent 337.5deg,
        rgba(212, 168, 48, 0.05) 345deg,
        transparent 352.5deg
    );
    will-change: transform;
}

/* ============================================================
   Frame edges and corner ornaments (used by hero & footer)
   ============================================================ */
.hero-frame,
.keystone-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.frame-edge {
    position: absolute;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame-top {
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
}

.frame-bottom {
    bottom: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right center;
}

.frame-left {
    top: 24px;
    bottom: 24px;
    left: 24px;
    width: 2px;
    transform: scaleY(0);
    transform-origin: top center;
}

.frame-right {
    top: 24px;
    bottom: 24px;
    right: 24px;
    width: 2px;
    transform: scaleY(0);
    transform-origin: bottom center;
}

.frame-active .frame-edge {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
}

.corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 2px solid var(--gold);
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

.corner-tl {
    top: 24px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 24px;
    right: 24px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 24px;
    left: 24px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 24px;
    right: 24px;
    border-left: none;
    border-top: none;
}

.frame-active .corner {
    opacity: 1;
}

/* Decorative inner corner triangles */
.corner::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-tl::before { top: 4px; left: 4px; }
.corner-tr::before { top: 4px; right: 4px; transform: scaleX(-1); }
.corner-bl::before { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corner-br::before { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* ============================================================
   HERO (Grand entrance)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--emerald) 0%, var(--sapphire) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vmax;
    height: 140vmax;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        rgba(212, 168, 48, 0.18) 0deg,
        transparent 7.5deg,
        rgba(212, 168, 48, 0.18) 15deg,
        transparent 22.5deg,
        rgba(212, 168, 48, 0.18) 30deg,
        transparent 37.5deg,
        rgba(212, 168, 48, 0.18) 45deg,
        transparent 52.5deg,
        rgba(212, 168, 48, 0.18) 60deg,
        transparent 67.5deg,
        rgba(212, 168, 48, 0.18) 75deg,
        transparent 82.5deg,
        rgba(212, 168, 48, 0.18) 90deg,
        transparent 97.5deg,
        rgba(212, 168, 48, 0.18) 105deg,
        transparent 112.5deg,
        rgba(212, 168, 48, 0.18) 120deg,
        transparent 127.5deg,
        rgba(212, 168, 48, 0.18) 135deg,
        transparent 142.5deg,
        rgba(212, 168, 48, 0.18) 150deg,
        transparent 157.5deg,
        rgba(212, 168, 48, 0.18) 165deg,
        transparent 172.5deg,
        rgba(212, 168, 48, 0.18) 180deg,
        transparent 187.5deg,
        rgba(212, 168, 48, 0.18) 195deg,
        transparent 202.5deg,
        rgba(212, 168, 48, 0.18) 210deg,
        transparent 217.5deg,
        rgba(212, 168, 48, 0.18) 225deg,
        transparent 232.5deg,
        rgba(212, 168, 48, 0.18) 240deg,
        transparent 247.5deg,
        rgba(212, 168, 48, 0.18) 255deg,
        transparent 262.5deg,
        rgba(212, 168, 48, 0.18) 270deg,
        transparent 277.5deg,
        rgba(212, 168, 48, 0.18) 285deg,
        transparent 292.5deg,
        rgba(212, 168, 48, 0.18) 300deg,
        transparent 307.5deg,
        rgba(212, 168, 48, 0.18) 315deg,
        transparent 322.5deg,
        rgba(212, 168, 48, 0.18) 330deg,
        transparent 337.5deg,
        rgba(212, 168, 48, 0.18) 345deg,
        transparent 352.5deg
    );
    will-change: transform;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-sunburst.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 32px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-section);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 1.8s, transform 0.8s ease 1.8s;
}

.hero-eyebrow.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 14vw, 200px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--ivory);
    margin: 0;
    text-shadow: 0 4px 30px rgba(212, 168, 48, 0.25);
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: transform, opacity;
}

.hero-letter.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-rule {
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 36px auto;
    transition: width 0.9s ease 1.6s;
}

.hero-rule.visible {
    width: 240px;
}

.hero-subtitle {
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 19px);
    letter-spacing: 0.12em;
    color: var(--ivory-soft);
    margin-bottom: var(--space-section);
    opacity: 0;
    transition: opacity 0.8s ease 2s;
}

.hero-subtitle.visible {
    opacity: 1;
}

.hero-hint {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.8s ease 2.4s;
}

.hero-hint.visible {
    opacity: 1;
}

.hint-arrow {
    display: inline-block;
    font-size: 18px;
    animation: bobDown 2.4s ease-in-out infinite;
}

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

/* ============================================================
   CHEVRON BORDERS
   ============================================================ */
.chevron-border {
    position: relative;
    height: 18px;
    width: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            var(--gold-soft) 10px,
            var(--gold-soft) 12px,
            transparent 12px,
            transparent 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 10px,
            var(--gold-soft) 10px,
            var(--gold-soft) 12px,
            transparent 12px,
            transparent 22px
        );
    background-size: 22px 22px;
    opacity: 0.65;
    transition: opacity 0.4s ease;
}

.chevron-border:hover {
    opacity: 1;
}

.chevron-top {
    border-bottom: 1px solid var(--gold-soft);
}

.chevron-bottom {
    border-top: 1px solid var(--gold-soft);
}

/* ============================================================
   CHAPTER (book chapter sections)
   ============================================================ */
.chapter {
    position: relative;
    min-height: 120vh;
    padding: var(--space-section) 0;
    z-index: 1;
    transition: background 0.8s ease;
}

.chapter-territory {
    background: linear-gradient(180deg, var(--emerald) 0%, #08321F 100%);
}

.chapter-expertise {
    background: linear-gradient(180deg, var(--sapphire) 0%, #061030 100%);
}

.chapter-network {
    background: linear-gradient(180deg, var(--emerald) 0%, var(--sapphire) 100%);
}

.chapter-mathematics {
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--amethyst) 100%);
}

.chapter-sovereignty {
    background: linear-gradient(180deg, var(--ruby) 0%, var(--emerald) 100%);
}

.chapter-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-section) 32px;
    position: relative;
    z-index: 2;
}

.chapter-header {
    text-align: center;
    margin-bottom: calc(var(--space-section) * 1.5);
}

.chapter-number {
    display: inline-block;
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.chapter-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 96px);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ivory);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.9s ease;
}

.chapter-tagline {
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px);
    color: var(--gold);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease 0.2s, transform 0.9s ease 0.2s;
}

.chapter-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
    align-items: center;
    margin-bottom: var(--space-section);
}

@media (max-width: 760px) {
    .chapter-body {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.text-block {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.8;
    color: var(--ivory-soft);
}

.text-block p + p {
    margin-top: 24px;
}

.text-block .dropcap::first-letter {
    font-family: var(--font-display);
    font-size: 4em;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--gold);
}

.illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

.line-art path,
.line-art circle {
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.illustration:hover .line-art path,
.illustration:hover .line-art circle {
    stroke: var(--ivory);
    stroke-width: 1.6;
}

/* Slide-in reveals (chapter content) */
.slide-left,
.slide-right,
.slide-up,
.reveal-from-left,
.reveal-from-right {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: transform, opacity;
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.slide-up {
    transform: translateY(40px);
}

.reveal-from-left {
    transform: translateX(-40px);
}

.reveal-from-right {
    transform: translateX(40px);
}

.in-view {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.chapter-quote {
    text-align: center;
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: clamp(18px, 1.8vw, 26px);
    color: var(--gold);
    letter-spacing: 0.05em;
    padding: 32px 24px;
    border-top: 1px solid var(--gold-faint);
    border-bottom: 1px solid var(--gold-faint);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   CARD-FLIP (definition cards in Expertise section)
   ============================================================ */
.card-row {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: calc(var(--space-section) * 1.2);
}

.flip-card {
    width: 200px;
    height: 280px;
    perspective: 800px;
    cursor: pointer;
    outline: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 2px solid var(--gold);
}

.flip-card-front {
    background: var(--sapphire);
    color: var(--ivory);
    text-align: left;
}

.flip-card-front[data-tone="emerald"] { background: var(--emerald); }
.flip-card-front[data-tone="ruby"] { background: var(--ruby); }
.flip-card-front[data-tone="amethyst"] { background: var(--amethyst); }

.flip-card-front::before,
.flip-card-front::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--gold);
}

.flip-card-front::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.flip-card-front::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.card-label {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--ivory);
    letter-spacing: 0.04em;
}

.card-mark {
    align-self: flex-end;
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: 32px;
    color: var(--gold);
}

.flip-card-back {
    background: var(--ivory);
    color: var(--emerald);
    transform: rotateY(180deg);
    text-align: left;
    gap: 12px;
}

.card-defword {
    font-family: var(--font-scholar);
    font-weight: 600;
    font-size: 24px;
    color: var(--emerald);
}

.card-defetym {
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: 14px;
    color: var(--ruby);
}

.card-defbody {
    font-family: var(--font-scholar);
    font-size: 15px;
    line-height: 1.6;
    color: var(--emerald);
}

/* ============================================================
   FORMULA ROW (Mathematics section)
   ============================================================ */
.formula-row {
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
    margin-top: calc(var(--space-section) * 1.2);
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 30px);
    color: var(--ivory);
    flex-wrap: wrap;
}

.formula-piece {
    padding: 12px 20px;
}

.formula-domain {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: rgba(212, 168, 48, 0.08);
}

.formula-codomain {
    border: 2px solid var(--ivory);
    color: var(--ivory);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
    position: relative;
    min-height: 100vh;
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--emerald) 0%, var(--sapphire) 100%);
    z-index: 1;
}

.gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-section) 32px;
    position: relative;
    z-index: 2;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    text-align: center;
    color: var(--ivory);
    letter-spacing: 0.02em;
    margin-bottom: calc(var(--space-section) * 1.2);
}

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

@media (max-width: 760px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.gallery-tile {
    border: 1.5px solid var(--gold-soft);
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(10, 26, 58, 0.3);
    transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.gallery-tile:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 48, 0.08);
    transform: translateY(-6px);
}

.gallery-tile svg {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.tile-caption {
    font-family: var(--font-scholar);
    font-variant: small-caps;
    letter-spacing: 0.15em;
    font-size: 14px;
    color: var(--gold);
}

/* ============================================================
   REFERENCE (Book-scholarly dictionary section)
   ============================================================ */
.reference {
    position: relative;
    min-height: 80vh;
    background: var(--ivory);
    color: var(--emerald);
    padding: var(--space-section) 0;
    z-index: 1;
}

.reference-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-section) 32px;
}

.reference-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    text-align: center;
    letter-spacing: 0.04em;
    color: var(--emerald);
    margin-bottom: 16px;
}

.reference-rule {
    width: 120px;
    height: 2px;
    background: var(--ruby);
    margin: 0 auto calc(var(--space-section) * 1) auto;
}

.reference-entries {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.ref-entry {
    font-family: var(--font-scholar);
    font-size: 16px;
    line-height: 1.85;
    color: var(--emerald);
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(10, 58, 42, 0.15);
    padding-left: 36px;
    text-indent: -36px;
}

.ref-entry:last-child {
    border-bottom: none;
}

.ref-headword {
    font-family: var(--font-scholar);
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    font-size: 22px;
    color: var(--ruby);
    margin-right: 8px;
}

.ref-pron {
    font-style: italic;
    color: rgba(10, 58, 42, 0.7);
    font-size: 15px;
    margin-right: 8px;
}

.ref-pos {
    font-style: italic;
    color: var(--amethyst);
    font-size: 14px;
    margin-right: 8px;
}

.ref-etym {
    font-size: 14px;
    color: rgba(10, 58, 42, 0.75);
    display: inline;
}

.ref-pilcrow {
    color: var(--ruby);
    margin: 0 6px;
    font-weight: 600;
}

.ref-defs {
    display: inline;
}

.ref-def {
    display: inline;
}

.ref-def + .ref-def {
    margin-left: 4px;
}

.ref-num {
    font-weight: 600;
    color: var(--ruby);
    margin-right: 4px;
}

/* ============================================================
   KEYSTONE FOOTER
   ============================================================ */
.keystone {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--emerald) 100%);
    padding: var(--space-section) 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.keystone-inner {
    text-align: center;
    padding: 0 32px;
    position: relative;
    z-index: 3;
}

.keystone-mark {
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 0.4em;
    margin: 12px 0;
}

.keystone-wordmark {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 96px);
    color: var(--ivory);
    letter-spacing: 0.08em;
    margin: 18px 0;
    text-shadow: 0 4px 24px rgba(212, 168, 48, 0.25);
}

.keystone-line {
    font-family: var(--font-scholar);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--ivory-soft);
    margin-bottom: 24px;
}

.keystone-credit {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
}

/* ============================================================
   Cursor proximity glow on borders (engaged via JS class)
   ============================================================ */
.glow-near {
    box-shadow: 0 0 24px rgba(212, 168, 48, 0.6);
}

/* Reduced-motion override */
@media (prefers-reduced-motion: reduce) {
    .page-sunburst,
    .hero-sunburst,
    .hint-arrow {
        animation: none !important;
    }
    .hero-letter,
    .hero-eyebrow,
    .hero-rule,
    .hero-subtitle,
    .hero-hint,
    .chapter-title,
    .chapter-tagline,
    .slide-left,
    .slide-right,
    .slide-up,
    .reveal-from-left,
    .reveal-from-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .frame-edge,
    .corner {
        opacity: 1 !important;
        transform: scaleX(1) scaleY(1) !important;
    }
}
