/*
 * Twitive shared visual foundation
 * Warm paper, deep navy, antique brass, cartographic linework.
 */

:root {
    --color-navy-950: #07172a;
    --color-navy-900: #10243f;
    --color-navy-800: #183451;
    --color-navy-700: #294866;
    --color-cream-50: #fffaf0;
    --color-cream-100: #f8f0df;
    --color-cream-200: #ecdfc7;
    --color-paper: #f4e7cd;
    --color-paper-deep: #dcc59f;
    --color-gold-300: #d7b675;
    --color-gold-400: #c69c55;
    --color-gold-500: #ad7d37;
    --color-gold-700: #75501f;
    --color-wax: #914936;
    --color-wax-dark: #6d3027;
    --color-ink: #142a44;
    --color-body: #2e3d4c;
    --color-muted: #5e625f;
    --color-line: #c4aa7a;
    --color-focus: #0c67a5;
    --color-white: #ffffff;

    --font-display: "Libre Baskerville", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;

    --container: 74rem;
    --container-wide: 90rem;
    --reading-width: 48rem;
    --header-bottom: 4.75rem;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 999px;

    --shadow-paper:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 24px rgba(39, 29, 17, 0.12),
        0 2px 5px rgba(39, 29, 17, 0.16);
    --shadow-recessed:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 5px rgba(16, 36, 63, 0.12) inset,
        0 -1px 1px rgba(255, 255, 255, 0.65) inset;
    --shadow-brass:
        0 2px 0 #75501f,
        0 5px 12px rgba(62, 42, 17, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.68) inset,
        0 -2px 3px rgba(91, 58, 20, 0.28) inset;

    --space-section: clamp(4.5rem, 9vw, 8rem);
    --transition-fast: 160ms ease;
    --transition-medium: 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================
   OVERFLOW PREVENTION
   ============================================ */

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

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-bottom) + 1rem);
    background: var(--color-cream-100);
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    color: var(--color-body);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.78), transparent 25rem),
        radial-gradient(circle at 88% 28%, rgba(198, 156, 85, 0.08), transparent 30rem),
        repeating-linear-gradient(
            90deg,
            rgba(91, 67, 35, 0.018) 0,
            rgba(91, 67, 35, 0.018) 1px,
            transparent 1px,
            transparent 7px
        ),
        var(--color-cream-50);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre,
code,
.code-block,
[class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p,
li,
td,
th {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]) {
    color: var(--color-navy-800);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-gold-500);
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.18em;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]):hover {
    color: var(--color-gold-700);
}

input,
textarea,
select {
    max-width: 100%;
}

section {
    overflow: clip;
}

/* ============================================
   BASE TYPE AND ACCESSIBILITY
   ============================================ */

h1,
h2,
h3 {
    margin: 0;
    color: var(--color-ink);
    font-family: var(--font-display);
    line-height: 1.18;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.15rem, 8vw, 4.6rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.8rem, 5.2vw, 3rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.55rem);
}

p,
ul,
ol,
blockquote {
    margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
blockquote:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
}

::selection {
    color: var(--color-cream-50);
    background: var(--color-navy-800);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-cream-50);
    background: var(--color-navy-950);
    border: 2px solid var(--color-gold-300);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

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

#main-content {
    min-height: 50vh;
}

.container,
.section-inner,
.content-shell {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(calc(100% - 2rem), var(--container-wide));
    margin-inline: auto;
}

.reading-column {
    width: min(100%, var(--reading-width));
    margin-inline: auto;
}

.content-section {
    position: relative;
    padding-block: var(--space-section);
}

.content-section--compact {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.content-section--navy {
    color: var(--color-cream-100);
    background:
        radial-gradient(circle at 50% 110%, rgba(198, 156, 85, 0.16), transparent 24rem),
        repeating-linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 8px
        ),
        var(--color-navy-950);
}

.content-section--navy h2,
.content-section--navy h3 {
    color: var(--color-cream-50);
}

.split-layout {
    display: grid;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.split-layout__content {
    min-width: 0;
}

.prose {
    font-size: clamp(1rem, 1.6vw, 1.075rem);
}

.prose > * + * {
    margin-top: 1.25rem;
}

.prose ul,
.prose ol {
    padding-left: 1.35rem;
}

.prose li + li {
    margin-top: 0.6rem;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--color-gold-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ============================================
   HEADER AND MOBILE NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-width: 20rem;
    color: var(--color-navy-900);
    background: var(--color-cream-50);
    border-bottom: 1px solid rgba(117, 80, 31, 0.22);
    box-shadow: 0 4px 14px rgba(16, 36, 63, 0.1);
}

.site-header::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 72%),
        repeating-linear-gradient(
            90deg,
            rgba(117, 80, 31, 0.018) 0,
            rgba(117, 80, 31, 0.018) 1px,
            transparent 1px,
            transparent 6px
        );
}

.site-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(calc(100% - 1.5rem), var(--container));
    min-height: 4.5rem;
    margin-inline: auto;
    align-items: center;
    gap: 0.65rem;
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-navy-900);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.site-brand__text {
    white-space: nowrap;
}

.site-brand__compass {
    width: 1.85rem;
    flex: 0 0 auto;
    color: var(--color-gold-500);
}

.site-header__actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0.45rem;
}

.primary-nav {
    position: fixed;
    z-index: 90;
    top: var(--header-bottom);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: auto;
    padding: 1.25rem 1rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--color-navy-900);
    background:
        radial-gradient(circle at 90% 10%, rgba(198, 156, 85, 0.12), transparent 16rem),
        var(--color-cream-50);
    border-top: 1px solid var(--color-paper-deep);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast);
}

.primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.primary-nav__link {
    display: flex;
    min-height: 48px;
    padding: 0.75rem 1rem;
    align-items: center;
    color: var(--color-navy-900);
    background: rgba(244, 231, 205, 0.7);
    border: 1px solid rgba(173, 125, 55, 0.3);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 1px 0 var(--color-white) inset;
}

.primary-nav__link:hover,
.primary-nav__link[aria-current="page"] {
    color: var(--color-gold-700);
    background: var(--color-paper);
    border-color: var(--color-gold-400);
}

.menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-navy-900);
    background: var(--color-cream-100);
    border: 1px solid var(--color-paper-deep);
    border-radius: 50%;
    box-shadow:
        0 1px 0 var(--color-white) inset,
        0 2px 4px rgba(16, 36, 63, 0.12);
    cursor: pointer;
}

.menu-toggle__line {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-pill);
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   BRASS CONTROLS
   ============================================ */

.brass-button {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    overflow: hidden;
    color: var(--color-navy-950);
    background:
        linear-gradient(180deg, #e1c585 0%, #c99f58 52%, #b6853e 100%);
    border: 1px solid #805a25;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-brass);
    cursor: pointer;
    transition:
        filter var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.brass-button::before {
    position: absolute;
    inset: 3px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 250, 222, 0.52);
    border-radius: inherit;
}

.brass-button__label {
    position: relative;
    z-index: 1;
}

.brass-button__glint {
    display: block;
    width: 1.8rem;
    height: 0.42rem;
    flex: 0 0 auto;
    background: rgba(255, 250, 222, 0.88);
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 2px rgba(97, 61, 19, 0.18) inset;
}

.brass-button:hover {
    filter: saturate(1.08) brightness(1.04);
}

.brass-button:active {
    transform: translateY(2px);
    box-shadow:
        0 0 0 #75501f,
        0 2px 5px rgba(62, 42, 17, 0.2),
        0 2px 5px rgba(91, 58, 20, 0.28) inset;
}

.header-cta {
    min-width: 5.2rem;
    min-height: 42px;
    padding: 0.62rem 0.85rem;
    font-size: 0.82rem;
}

.header-cta .brass-button__glint {
    display: none;
}

/* ============================================
   COMPASS AND ORNAMENTS
   ============================================ */

.compass-mark {
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compass-mark__outer {
    stroke-width: 3;
}

.compass-mark__inner {
    stroke-width: 1.5;
    stroke-dasharray: 2 5;
}

.compass-mark__ticks {
    stroke-width: 2;
}

.compass-mark__star {
    fill: currentColor;
    fill-opacity: 0.13;
    stroke-width: 1.5;
}

.compass-mark__needle {
    transform-origin: 50px 50px;
}

.compass-mark__needle-north {
    fill: currentColor;
    stroke-width: 1.5;
}

.compass-mark__needle-south {
    fill: var(--color-cream-50);
    stroke-width: 1.5;
}

.compass-mark__pin {
    fill: currentColor;
    stroke: var(--color-cream-50);
    stroke-width: 1.5;
}

.compass-needle-settle .compass-mark__needle,
.compass-mark.compass-needle-settle .compass-mark__needle {
    animation: compass-settle 1.15s cubic-bezier(0.25, 0.8, 0.2, 1) both;
}

.ornamental-rule {
    display: block;
    width: 100%;
    color: var(--color-gold-500);
    fill: none;
    stroke: currentColor;
}

.ornamental-rule__line {
    stroke-width: 1.5;
}

.ornamental-rule__arrow,
.ornamental-rule__center {
    fill: var(--color-cream-50);
    stroke-width: 1.5;
}

.ornamental-rule__pin {
    fill: currentColor;
    stroke: none;
}

.wax-seal {
    display: block;
    width: 4.5rem;
    color: var(--color-wax);
    filter: drop-shadow(0 3px 3px rgba(57, 28, 22, 0.22));
}

.wax-seal__edge {
    fill: currentColor;
    stroke: var(--color-wax-dark);
    stroke-width: 2;
}

.wax-seal__face {
    fill: none;
    stroke: rgba(255, 224, 203, 0.32);
    stroke-width: 2;
}

.wax-seal__imprint {
    fill: rgba(80, 29, 24, 0.2);
    stroke: rgba(80, 29, 24, 0.38);
    stroke-width: 1.5;
}

.wax-seal__ring {
    fill: none;
    stroke: rgba(80, 29, 24, 0.28);
    stroke-width: 1.5;
}

.section-heading {
    width: min(100%, var(--container));
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.section-heading__eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-gold-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading__row {
    display: grid;
    grid-template-columns: minmax(1.5rem, 1fr) minmax(0, auto) minmax(1.5rem, 1fr);
    align-items: center;
    gap: clamp(0.55rem, 3vw, 1.5rem);
}

.section-heading__rule {
    min-width: 0;
}

.section-heading__rule--left {
    transform: scaleX(-1);
}

.section-heading__row h2 {
    max-width: 42rem;
}

/* ============================================
   PAPER AND MAP SURFACES
   ============================================ */

.paper-surface,
.parchment-panel,
.legal-document {
    position: relative;
    color: var(--color-body);
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.62), transparent 13rem),
        radial-gradient(circle at 90% 85%, rgba(143, 91, 35, 0.08), transparent 18rem),
        repeating-linear-gradient(
            6deg,
            rgba(100, 69, 34, 0.022) 0,
            rgba(100, 69, 34, 0.022) 1px,
            transparent 1px,
            transparent 5px
        ),
        var(--color-paper);
}

.parchment-panel {
    padding: clamp(1.5rem, 5vw, 3.25rem);
    border: 1px solid var(--color-line);
    clip-path: polygon(
        0.6% 2%,
        8% 0.6%,
        17% 1.4%,
        29% 0.5%,
        43% 1.2%,
        57% 0.5%,
        72% 1.2%,
        88% 0.4%,
        99.4% 2%,
        98.7% 17%,
        99.5% 34%,
        98.8% 50%,
        99.5% 68%,
        98.8% 84%,
        99.3% 98%,
        86% 99.4%,
        71% 98.8%,
        55% 99.5%,
        39% 98.8%,
        23% 99.5%,
        8% 98.7%,
        0.7% 97.5%,
        1.4% 82%,
        0.5% 65%,
        1.3% 48%,
        0.5% 30%
    );
    box-shadow: var(--shadow-paper);
}

.parchment-panel::after {
    position: absolute;
    inset: 0.75rem;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(173, 125, 55, 0.58);
    clip-path: inherit;
}

.map-paper {
    position: relative;
    background-color: var(--color-cream-100);
    background-image:
        radial-gradient(
            ellipse at 8% 30%,
            transparent 0 2.7rem,
            rgba(173, 125, 55, 0.11) 2.75rem 2.82rem,
            transparent 2.87rem 4rem,
            rgba(173, 125, 55, 0.08) 4.05rem 4.12rem,
            transparent 4.17rem
        ),
        radial-gradient(
            ellipse at 92% 74%,
            transparent 0 3.5rem,
            rgba(173, 125, 55, 0.1) 3.55rem 3.62rem,
            transparent 3.67rem 5rem,
            rgba(173, 125, 55, 0.07) 5.05rem 5.12rem,
            transparent 5.17rem
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 48%, rgba(198, 156, 85, 0.05));
}

.media-frame {
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    background: var(--color-navy-900);
    border: 1px solid var(--color-navy-700);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65),
        0 8px 20px rgba(16, 36, 63, 0.16),
        0 0 0 5px rgba(16, 36, 63, 0.06);
}

.media-frame::after {
    position: absolute;
    inset: 0.5rem;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(215, 182, 117, 0.35);
    border-radius: calc(var(--radius-lg) - 0.35rem);
}

.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

/* ============================================
   TABLE FOUNDATION
   ============================================ */

.table-scroll {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid rgba(173, 125, 55, 0.48);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-recessed);
    scrollbar-color: var(--color-gold-500) var(--color-paper);
}

.table-scroll::after {
    position: sticky;
    right: 0;
    display: block;
    width: 2rem;
    height: 0;
    margin-left: auto;
    content: "";
    pointer-events: none;
    box-shadow: -1rem 0 1.3rem 0.4rem rgba(244, 231, 205, 0.88);
}

.review-table {
    width: 100%;
    min-width: 62rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--color-body);
    background: rgba(255, 250, 240, 0.58);
    font-size: 0.94rem;
    line-height: 1.55;
}

.review-table th,
.review-table td {
    padding: 1rem;
    vertical-align: top;
    text-align: left;
    border-right: 1px solid rgba(173, 125, 55, 0.34);
    border-bottom: 1px solid rgba(173, 125, 55, 0.34);
}

.review-table th:last-child,
.review-table td:last-child {
    border-right: 0;
}

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

.review-table thead th {
    color: var(--color-cream-50);
    background: var(--color-navy-900);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.review-table tbody th,
.review-table tbody td:first-child {
    position: sticky;
    z-index: 2;
    left: 0;
    color: var(--color-navy-900);
    background: var(--color-paper);
    font-weight: 800;
    box-shadow: 1px 0 0 rgba(173, 125, 55, 0.4);
}

.review-table tbody tr:nth-child(even) td:not(:first-child) {
    background: rgba(236, 223, 199, 0.38);
}

/* ============================================
   FAQ DISCLOSURES
   ============================================ */

.faq-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.faq-item {
    align-self: start;
    overflow: hidden;
    color: var(--color-body);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 3rem),
        var(--color-cream-50);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow:
        0 1px 0 var(--color-white) inset,
        0 4px 10px rgba(70, 48, 23, 0.09);
}

.faq-item summary {
    display: flex;
    min-height: 58px;
    padding: 1rem 1.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-navy-900);
    font-weight: 800;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(236, 223, 199, 0.5);
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: -4px;
}

.faq-item__chevron {
    width: 1.35rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    transition: transform var(--transition-fast);
}

.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid rgba(173, 125, 55, 0.4);
    line-height: 1.7;
}

.faq-item__answer > *:last-child {
    margin-bottom: 0;
}

/* ============================================
   JOURNEY AND ROUTE PRIMITIVES
   ============================================ */

.journey-icon {
    display: block;
    width: 5.75rem;
    margin-inline: auto;
    fill: none;
    stroke: var(--color-navy-900);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.journey-icon__paper {
    fill: var(--color-cream-100);
}

.journey-icon__gold {
    fill: var(--color-gold-300);
}

.journey-icon__line {
    fill: none;
}

.journey-icon__fold,
.journey-icon__bubble {
    fill: var(--color-paper);
}

.route-layer {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.route-layer__tube {
    fill: none;
    stroke: rgba(244, 231, 205, 0.7);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 34;
}

.route-layer__edge {
    fill: none;
    stroke: rgba(173, 125, 55, 0.2);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 38;
}

.route-layer__center {
    fill: none;
    stroke: var(--color-gold-400);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.route-layer__arrow {
    fill: var(--color-gold-400);
}

/* ============================================
   LEGAL AND NOTICE PRIMITIVES
   ============================================ */

.legal-document {
    width: min(calc(100% - 2rem), 62rem);
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-paper);
}

.legal-document > section + section {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid rgba(173, 125, 55, 0.42);
}

.legal-subsection {
    padding: 1.25rem;
    background: rgba(255, 250, 240, 0.58);
    border-top: 2px solid var(--color-gold-400);
    box-shadow: var(--shadow-recessed);
}

.legal-subsection + .legal-subsection {
    margin-top: 1rem;
}

.notice-panel {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--color-cream-100);
    background:
        radial-gradient(circle at 100% 0, rgba(198, 156, 85, 0.13), transparent 16rem),
        var(--color-navy-900);
    border: 1px solid var(--color-gold-500);
    border-radius: var(--radius-md);
    box-shadow:
        0 0 0 5px var(--color-navy-900),
        0 0 0 6px rgba(173, 125, 55, 0.55),
        0 10px 22px rgba(16, 36, 63, 0.18);
}

.notice-panel h2,
.notice-panel h3,
.notice-panel a {
    color: var(--color-cream-50);
}

.adult-callout {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    background: var(--color-cream-100);
    border-left: 0.35rem solid var(--color-navy-800);
    box-shadow: var(--shadow-recessed);
}

.adult-callout__marker {
    display: inline-flex;
    min-width: 3rem;
    min-height: 2rem;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-950);
    background: var(--color-gold-300);
    border: 1px solid var(--color-gold-700);
    border-radius: var(--radius-pill);
    font-weight: 800;
}

/* ============================================
   REVEAL AND PARALLAX
   ============================================ */

html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition:
        opacity 600ms ease,
        transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

html.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-parallax] {
    --parallax-y: 0px;
    transform: translate3d(0, var(--parallax-y), 0);
    will-change: transform;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--color-cream-200);
    background:
        radial-gradient(circle at 50% 125%, rgba(198, 156, 85, 0.16), transparent 28rem),
        repeating-linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 8px
        ),
        var(--color-navy-950);
    border-top: 0.28rem solid var(--color-gold-400);
}

.site-footer::before {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 2.2rem;
    height: 1.2rem;
    content: "";
    background: var(--color-gold-400);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.site-footer__inner {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
    padding-block: clamp(4rem, 9vw, 6.5rem) 2.5rem;
    gap: 2rem;
}

.site-footer__summary {
    max-width: 30rem;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: var(--color-cream-50);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__label {
    margin-bottom: 0.8rem;
    color: var(--color-gold-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.site-footer__nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
}

.site-footer__nav a {
    min-height: 44px;
    color: var(--color-cream-100);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.site-footer__nav a:hover {
    color: var(--color-gold-300);
}

.site-footer__compass {
    position: absolute;
    z-index: 0;
    bottom: -9rem;
    left: 50%;
    width: min(22rem, 80vw);
    color: rgba(198, 156, 85, 0.16);
    transform: translateX(-50%);
}

.site-footer__legal {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
    padding-block: 1.25rem 2rem;
    flex-direction: column;
    gap: 0.3rem;
    border-top: 1px solid rgba(236, 223, 199, 0.18);
}

.site-footer__legal p {
    margin: 0;
    color: var(--color-cream-200);
    font-size: 0.78rem;
}

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

@media (min-width: 48rem) {
    .container,
    .section-inner,
    .content-shell,
    .container-wide {
        width: min(calc(100% - 3rem), var(--container));
    }

    .container-wide {
        width: min(calc(100% - 3rem), var(--container-wide));
    }

    .site-header__inner {
        width: min(calc(100% - 3rem), var(--container));
        min-height: 5rem;
        gap: 1.25rem;
    }

    .primary-nav {
        position: static;
        z-index: auto;
        display: flex;
        height: auto;
        margin-left: auto;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        overflow: visible;
        color: inherit;
        background: transparent;
        border: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .primary-nav__link {
        min-height: 44px;
        padding: 0.65rem 0.85rem;
        background: transparent;
        border: 0;
        border-radius: var(--radius-pill);
        box-shadow: none;
        font-size: 0.88rem;
    }

    .primary-nav__link:hover,
    .primary-nav__link[aria-current="page"] {
        color: var(--color-navy-900);
        background: var(--color-paper);
    }

    .site-header__actions {
        margin-left: 0;
    }

    .menu-toggle {
        display: none;
    }

    .header-cta {
        min-width: 6.8rem;
        min-height: 46px;
        padding-inline: 1.15rem;
        font-size: 0.88rem;
    }

    .header-cta .brass-button__glint {
        display: block;
        width: 1.35rem;
    }

    .split-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .split-layout--media-wide {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .split-layout--content-wide {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1.45fr) minmax(10rem, 0.7fr) minmax(0, 1fr);
        gap: clamp(2rem, 6vw, 5rem);
    }

    .site-footer__legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 64rem) {
    body {
        font-size: 1.025rem;
    }

    .content-section {
        padding-block: clamp(6rem, 9vw, 9rem);
    }

    .site-header__inner {
        min-height: 5.5rem;
    }

    .site-brand {
        font-size: 1.65rem;
    }

    .site-brand__compass {
        width: 2.15rem;
    }

    .primary-nav {
        gap: 0.75rem;
    }

    .primary-nav__link {
        padding-inline: 1rem;
        font-size: 0.93rem;
    }

    .parchment-panel {
        padding: 3.5rem 4.5rem;
    }

    .media-frame {
        min-height: 25rem;
    }

    .faq-item summary {
        padding: 1.15rem 1.35rem;
    }

    .faq-item__answer {
        padding: 1.2rem 1.35rem 1.4rem;
    }
}

@media (min-width: 80rem) {
    .site-header__inner {
        width: min(calc(100% - 5rem), var(--container-wide));
    }

    .site-brand {
        margin-right: auto;
    }

    .primary-nav {
        margin-left: 0;
    }
}

/* ============================================
   MOTION PREFERENCES
   ============================================ */

@keyframes compass-settle {
    0% {
        transform: rotate(-28deg);
    }

    55% {
        transform: rotate(7deg);
    }

    78% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.reveal-ready [data-reveal],
    html.reveal-ready [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }

    [data-parallax] {
        transform: none;
        will-change: auto;
    }
}