/*
 * SEQUEL - DESIGN SYSTEM & SHARED STYLES
 * Light-only identity: warm cream surfaces, deep navy bands, honey-gold ribbons.
 */

:root {
    /* Palette */
    --navy: #1F2E4D;
    --navy-deep: #16223A;
    --navy-soft: #2C3D61;
    --cream: #FBF5EC;
    --parchment: #F2E5D2;
    --parchment-deep: #EAD9BF;
    --tan: #D4AE78;
    --tan-line: #B98F58;
    --gold: #B98A4E;
    --gold-button: #C99B5C;
    --gold-button-hover: #D6AB6F;
    --gold-light: #E6CFA6;
    --bronze: #85602F;
    --ink: #1E2433;
    --ink-soft: #464D5F;
    --on-navy: #F4EADB;
    --white: #FFFFFF;
    --hairline: #DECBB0;
    --hairline-strong: #C9B08C;
    --focus: #8A622E;
    --focus-on-dark: #E6CFA6;

    /* Typography */
    --font-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-body: 1.125rem;
    --fs-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
    --fs-small: 1rem;
    --fs-caption: 0.9375rem;
    --fs-h1: clamp(2.25rem, 1.55rem + 3.2vw, 4.125rem);
    --fs-h2: clamp(2rem, 1.55rem + 1.9vw, 3.125rem);
    --fs-h3: clamp(1.3125rem, 1.2rem + 0.45vw, 1.5rem);
    --lh-body: 1.65;
    --lh-tight: 1.15;

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;
    --gutter: clamp(1.25rem, 4.5vw, 3rem);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
    --radius-media: 14px;
    --radius-pill: 999px;

    /* Runtime-measured header geometry (updated by script.js) */
    --header-h: 68px;
    --header-bottom: 68px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 0.2s;

    /* Paper grain textures (SVG feTurbulence) */
    --grain: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27240%27%20height=%27240%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.85%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%200.42%200%200%200%200%200.3%200%200%200%200%200.15%200%200%200%200.16%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
    --grain-light: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27240%27%20height=%27240%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.85%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%201%200%200%200%200%200.95%200%200%200%200%200.86%200%200%200%200.09%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

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

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]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

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

section {
    overflow: clip;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink);
    background-color: var(--navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

.site-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1760px;
    margin-inline: auto;
    background-color: var(--cream);
}

main {
    flex: 1 0 auto;
    display: block;
}

main:focus {
    outline: none;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    color: var(--navy);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

img {
    display: block;
}

a {
    color: var(--navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

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

.surface-navy :focus-visible,
.section--navy :focus-visible {
    outline-color: var(--focus-on-dark);
}

::selection {
    background-color: var(--gold-light);
    color: var(--navy-deep);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background-color: var(--navy);
    color: var(--cream);
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--dur) var(--ease);
}

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

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

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

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

/* Sections hosting an edge ornament keep horizontal clipping but let it overlap neighbours. */
.section--ornamented {
    overflow-x: clip;
    overflow-y: visible;
}

.section--parchment {
    background-color: var(--parchment);
    background-image: var(--grain);
}

.section--navy {
    background-color: var(--navy);
    background-image: var(--grain-light);
    color: var(--on-navy);
}

.section--navy h2,
.section--navy h3 {
    color: var(--white);
}

.section-head {
    position: relative;
    z-index: 1;
    max-width: 46rem;
    margin: 0 auto clamp(2.5rem, 4vw, 4rem);
    text-align: center;
}

.section-head p {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
}

.section--navy .section-head p {
    color: var(--on-navy);
}

.section-title {
    margin-bottom: 0.4em;
}

.section-title--rule::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 3px;
    margin: 1.1rem auto 0;
    border-radius: 2px;
    background-color: var(--gold);
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
}

.framed-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-media);
    background-color: var(--parchment-deep);
}

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

.media-note {
    margin-top: 1rem;
    font-size: var(--fs-caption);
    color: var(--ink-soft);
    text-align: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
    transition: text-decoration-color var(--dur) var(--ease);
}

.text-link:hover {
    color: var(--navy);
    text-decoration-color: var(--navy);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--navy);
    border-radius: var(--radius-pill);
}

.btn--gold {
    background-color: var(--gold-button);
    color: var(--navy-deep);
}

.btn--gold:hover {
    background-color: var(--gold-button-hover);
    color: var(--navy-deep);
}

.btn--outline {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline:hover {
    background-color: var(--navy);
    color: var(--cream);
}

.btn--light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--on-navy);
}

.btn--light:hover {
    background-color: var(--on-navy);
    color: var(--navy-deep);
}

.btn--text {
    padding-inline: 0.875rem;
    background-color: transparent;
    color: var(--navy);
}

.btn--text:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.btn--lg {
    min-height: 56px;
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
}

.btn__short {
    display: none;
}

/* ============================================
   SITE HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--cream);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--hairline);
    transition: border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--hairline-strong);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 1.625rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--navy);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-actions .header-login {
    display: none;
}

.header-actions .header-cta {
    min-height: 44px;
    padding: 0.5rem 1.125rem;
    font-size: 1rem;
}

.header-actions .header-cta .btn__full {
    display: none;
}

.header-actions .header-cta .btn__short {
    display: inline;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    background-color: transparent;
    color: var(--navy);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

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

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

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 1rem var(--gutter) 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--cream);
    border-top: 1px solid var(--hairline);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
}

.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list li {
    border-bottom: 1px solid var(--hairline);
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    text-decoration: none;
}

.site-nav__link:hover {
    color: var(--bronze);
}

.site-nav__drawer-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 560px) {
    .header-actions .header-cta .btn__full {
        display: inline;
    }

    .header-actions .header-cta .btn__short {
        display: none;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 80px;
        gap: 2rem;
    }

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

    .site-nav {
        position: static;
        z-index: auto;
        flex: 1 1 auto;
        flex-direction: row;
        justify-content: center;
        padding: 0;
        overflow: visible;
        border-top: 0;
        background: none;
        visibility: visible;
        opacity: 1;
        transition: none;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: clamp(1.25rem, 2.2vw, 2.25rem);
    }

    .site-nav__list li {
        border-bottom: 0;
    }

    .site-nav__link {
        position: relative;
        min-height: 44px;
        font-family: var(--font-sans);
        font-size: 1.0625rem;
        font-weight: 600;
        color: var(--ink-soft);
    }

    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 6px;
        height: 2px;
        background-color: var(--gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--dur) var(--ease);
    }

    .site-nav__link:hover {
        color: var(--navy);
    }

    .site-nav__link:hover::after {
        transform: scaleX(1);
    }

    .site-nav__drawer-actions {
        display: none;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .header-actions .header-login {
        display: inline-flex;
    }

    .header-actions .header-cta {
        min-height: 46px;
        padding: 0.625rem 1.5rem;
    }

    .nav-toggle {
        display: none;
    }
}

/* ============================================
   ORNAMENTS: S-SCROLL, RIBBON SWIRL, WAVE EDGE
   ============================================ */

.scroll-ornament {
    position: absolute;
    left: 50%;
    z-index: 3;
    display: block;
    width: clamp(84px, 9vw, 120px);
    line-height: 0;
    pointer-events: none;
}

.scroll-ornament svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.scroll-ornament--top {
    top: 0;
    transform: translate(-50%, -55%);
}

.scroll-ornament--bottom {
    bottom: 0;
    transform: translate(-50%, 55%);
}

.scroll-ornament--inline {
    position: relative;
    left: auto;
    margin: 0 auto;
    transform: none;
}

.orn-base,
.orn-shine {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orn-base {
    stroke: var(--gold);
    stroke-width: 6;
}

.orn-shine {
    stroke: var(--gold-light);
    stroke-width: 1.75;
}

.ribbon-swirl {
    position: absolute;
    z-index: 0;
    display: block;
    width: clamp(180px, 28vw, 420px);
    line-height: 0;
    opacity: 0.45;
    pointer-events: none;
}

.ribbon-swirl svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ribbon-swirl__edge,
.ribbon-swirl__body,
.ribbon-swirl__line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ribbon-swirl__edge {
    stroke: var(--gold-light);
    stroke-width: 30;
}

.ribbon-swirl__body {
    stroke: var(--cream);
    stroke-width: 22;
}

.ribbon-swirl__line {
    stroke: var(--gold);
    stroke-width: 1.5;
}

.wave-edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: clamp(64px, 10vw, 160px);
    color: var(--cream);
    pointer-events: none;
}

.wave-edge__wave {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
}

.wave-edge__fill {
    fill: currentColor;
}

.wave-edge__ribbon {
    fill: var(--gold);
}

.wave-edge__shine {
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.wave-edge__curl {
    position: absolute;
    right: 1.5%;
    bottom: 64%;
    display: block;
    width: clamp(54px, 7.5vw, 116px);
    height: auto;
    overflow: visible;
}

.wave-edge__curl-base,
.wave-edge__curl-shine {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-edge__curl-base {
    stroke: var(--gold);
    stroke-width: 14;
}

.wave-edge__curl-shine {
    stroke: var(--gold-light);
    stroke-width: 3;
}

.wave-edge--shallow {
    height: clamp(36px, 5vw, 72px);
}

.wave-edge--shallow .wave-edge__curl {
    width: clamp(30px, 3.6vw, 56px);
    bottom: 58%;
}

.wave-edge--shallow .wave-edge__curl-base {
    stroke-width: 12;
}

/* ============================================
   FAQ ACCORDION (native details/summary)
   ============================================ */

.faq-list {
    max-width: 52rem;
    margin-inline: auto;
    border-top: 1px solid var(--hairline-strong);
}

.faq-item {
    border-bottom: 1px solid var(--hairline-strong);
    transition: background-color var(--dur) var(--ease);
}

.faq-item[open] {
    background-color: var(--parchment);
}

.faq-item__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.875rem;
    min-height: 64px;
    padding: 1rem clamp(0.5rem, 2vw, 1.25rem);
    list-style: none;
    cursor: pointer;
}

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

.faq-item__summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
    border-radius: 2px;
}

.faq-item__glyph {
    display: block;
    width: 28px;
    line-height: 0;
}

.faq-item__glyph svg {
    display: block;
    width: 28px;
    height: 28px;
}

.faq-glyph__sheet {
    fill: var(--parchment-deep);
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.faq-glyph__curl,
.faq-glyph__line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-item__question {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
    line-height: 1.35;
    color: var(--navy);
}

.faq-item__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--navy);
    transition: transform var(--dur) var(--ease);
}

.faq-item__chevron svg {
    width: 22px;
    height: 22px;
}

.faq-item__chevron path,
.doc-toc__chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.faq-item__answer {
    padding: 0 clamp(0.5rem, 2vw, 1.25rem) 1.5rem calc(clamp(0.5rem, 2vw, 1.25rem) + 28px + 0.875rem);
    color: var(--ink);
}

.faq-item__answer p {
    max-width: 40rem;
}

@media (max-width: 479px) {
    .faq-item__answer {
        padding-left: clamp(0.5rem, 2vw, 1.25rem);
    }
}

/* ============================================
   LEGAL DOCUMENT LAYOUT
   ============================================ */

.doc-header {
    position: relative;
    overflow: clip;
    padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
    padding-bottom: calc(clamp(36px, 5vw, 72px) + clamp(2rem, 1.5rem + 2vw, 3.5rem));
    background-color: var(--parchment);
    background-image: var(--grain);
    text-align: center;
}

.doc-header__inner {
    position: relative;
    z-index: 1;
    max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.doc-header__title {
    font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
}

.doc-header__intro {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
}

.doc-header__updated {
    margin-top: 1rem;
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--bronze);
}

.doc-toc {
    width: 100%;
    max-width: calc(var(--container-narrow) + var(--gutter) * 2);
    margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
    padding-inline: var(--gutter);
}

.doc-toc__details {
    border-block: 1px solid var(--hairline-strong);
}

.doc-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
}

.doc-toc__summary::-webkit-details-marker {
    display: none;
}

.doc-toc__chevron {
    display: inline-flex;
    color: var(--navy);
    transition: transform var(--dur) var(--ease);
}

.doc-toc__details[open] .doc-toc__chevron {
    transform: rotate(180deg);
}

.doc-toc__list {
    margin: 0;
    padding: 0 0 1.25rem 1.25rem;
    font-size: var(--fs-small);
}

.doc-toc__list li {
    padding-block: 0.125rem;
}

.doc-toc__list li::marker {
    color: var(--bronze);
}

.doc-toc__list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 0.25em;
}

.doc-toc__list a:hover {
    text-decoration-color: var(--gold);
}

@media (min-width: 768px) {
    .doc-toc__list {
        columns: 2;
        column-gap: 2.5rem;
    }

    .doc-toc__list li {
        break-inside: avoid;
    }
}

.doc {
    width: 100%;
    max-width: calc(var(--container-narrow) + var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter) var(--space-section);
}

.doc > section + section {
    margin-top: clamp(2.5rem, 4vw, 3.25rem);
    padding-top: clamp(2.5rem, 4vw, 3.25rem);
    border-top: 1px solid var(--hairline);
}

.doc h2 {
    font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
    margin-bottom: 0.75em;
}

.doc h3 {
    font-size: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
    margin-top: 1.75em;
}

.doc ul,
.doc ol {
    margin: 0 0 1.25em;
    padding-left: 1.35rem;
}

.doc li {
    margin-bottom: 0.5em;
}

.doc li::marker {
    color: var(--bronze);
}

.doc a:not([class]) {
    color: var(--navy);
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

.doc-summary {
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    border-block: 1px solid var(--hairline-strong);
}

.doc-summary p {
    font-size: var(--fs-lead);
}

.doc-summary + section {
    margin-top: clamp(2.5rem, 4vw, 3.25rem);
}

.doc-notice {
    margin: 1.5rem 0;
    padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem);
    border-left: 3px solid var(--gold);
    background-color: var(--parchment);
}

.doc-notice > :last-child {
    margin-bottom: 0;
}

.doc-placeholder {
    font-weight: 600;
    color: var(--bronze);
}

.doc-cta {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding-top: clamp(2.5rem, 4vw, 3rem);
    border-top: 1px solid var(--hairline-strong);
    text-align: center;
}

.doc-cta p {
    margin-bottom: 1.25rem;
    color: var(--ink-soft);
}

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

.site-footer {
    position: relative;
    overflow: clip;
    padding: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 0 2rem;
    background-color: var(--tan);
    background-image: var(--grain);
    color: var(--navy-deep);
}

.site-footer :focus-visible {
    outline-color: var(--navy-deep);
}

.site-footer__inner {
    position: relative;
    z-index: 1;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.footer-col__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-deep);
}

.footer-col__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy-deep);
    text-decoration: none;
}

.footer-col__list a:hover {
    color: var(--navy-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.footer-col__text {
    max-width: 24rem;
    margin-bottom: 1.25rem;
}

.site-footer .btn--outline {
    border-color: var(--navy-deep);
    color: var(--navy-deep);
}

.site-footer .btn--outline:hover {
    background-color: var(--navy-deep);
    color: var(--cream);
}

.site-footer__base {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--tan-line);
    text-align: center;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--navy-deep);
    text-decoration: none;
}

.site-footer__brand:hover {
    color: var(--navy-deep);
}

.site-footer__copy {
    margin-top: 0.5rem;
    font-size: var(--fs-caption);
}

.site-footer__swirl {
    right: -60px;
    bottom: -50px;
    width: clamp(200px, 26vw, 360px);
    opacity: 0.4;
    transform: rotate(-12deg);
}

.site-footer__swirl .ribbon-swirl__body {
    stroke: var(--parchment);
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-col--join {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
        gap: 3rem;
    }

    .footer-col--join {
        grid-column: auto;
    }
}

/* ============================================
   HOME: SHARED LINE ICONS
   ============================================ */

.ico-line {
    fill: none;
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ico-fill {
    fill: var(--gold-light);
}

.ico-gold-fill {
    fill: var(--gold);
}

.ico-cream {
    fill: var(--cream);
}

.ico-accent {
    fill: var(--gold);
}

.ico-navy-fill {
    fill: var(--navy);
}

.ico-ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 4;
}

.ico-handle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 8;
    stroke-linecap: round;
}

.ico-flourish path,
.ico-curl {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   HOME: HERO
   ============================================ */

.hero {
    position: relative;
    overflow: clip;
    background-color: var(--cream);
}

.hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 74vh;
    background-color: var(--parchment-deep);
    background-image: url("/assets/fbfc0a20d74aeb0262a120e126e27280.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 94% 32%;
}

.hero__swirl {
    top: -30px;
    left: -70px;
    z-index: 1;
    width: clamp(200px, 32vw, 460px);
    opacity: 0.35;
    transform: rotate(8deg);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 1.25rem;
    padding-bottom: clamp(3.5rem, 8vw, 5rem);
}

.hero__title {
    font-size: clamp(2.125rem, 1.55rem + 2.6vw, 3.5rem);
    margin-bottom: 0.55em;
}

.hero__lead {
    max-width: 36rem;
    font-size: var(--fs-lead);
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero__media {
        aspect-ratio: 16 / 10;
        max-height: 70vh;
        background-position: 76% 32%;
    }
}

@media (min-width: 1024px) {
    .hero {
        display: flex;
        align-items: center;
        min-height: clamp(620px, 48vw, 820px);
    }

    .hero__media {
        position: absolute;
        inset: 0;
        aspect-ratio: auto;
        max-height: none;
        background-position: 72% 30%;
    }

    .hero__media::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(251, 245, 236, 0.94) 0%, rgba(251, 245, 236, 0.84) 30%, rgba(251, 245, 236, 0.45) 46%, rgba(251, 245, 236, 0) 58%);
    }

    .hero__content {
        padding-top: clamp(4rem, 6vw, 6rem);
        padding-bottom: calc(clamp(64px, 10vw, 160px) + 2.5rem);
    }

    .hero__copy {
        max-width: min(36rem, 46%);
    }
}

/* ============================================
   HOME: ABOUT
   ============================================ */

.about__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.about__portrait {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
}

.about__subtitle {
    margin-bottom: 1rem;
}

.about__curl {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(100px, 15vw, 220px);
    line-height: 0;
    pointer-events: none;
}

.about__curl svg {
    display: block;
    width: 100%;
    height: auto;
}

.about__curl-under {
    fill: var(--parchment-deep);
}

.about__curl-edge {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
}

@media (min-width: 900px) {
    .about__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: clamp(3rem, 5vw, 5rem);
    }

    .about__portrait {
        max-width: none;
        aspect-ratio: 3 / 4;
    }

    .about__copy {
        padding-bottom: 3rem;
    }
}

/* ============================================
   HOME: NEXT CHAPTER
   ============================================ */

.chapter {
    padding-top: clamp(2rem, 3vw, 3rem);
}

.chapter__swirl {
    width: clamp(160px, 24vw, 360px);
    opacity: 0.3;
}

.chapter__swirl--left {
    top: -20px;
    left: -90px;
    transform: rotate(14deg);
}

.chapter__swirl--right {
    top: -10px;
    right: -100px;
    transform: scaleX(-1) rotate(10deg);
}

.chapter__media {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--radius-media) var(--radius-media) 0 0;
    background-color: var(--parchment-deep);
}

.chapter__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 60% 50%;
}

.chapter__text {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 1.75rem auto 0;
    font-size: var(--fs-lead);
    text-align: center;
    color: var(--ink-soft);
}

/* ============================================
   HOME: WHY SEQUEL
   ============================================ */

.why {
    padding-top: clamp(2rem, 3vw, 3rem);
}

.benefits {
    display: grid;
    gap: 2.25rem;
    max-width: 1080px;
    margin-inline: auto;
}

.benefit {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.benefit__icon {
    display: block;
    width: 96px;
    line-height: 0;
}

.benefit__icon svg {
    width: 100%;
    height: auto;
}

.benefit h3 {
    margin-bottom: 0.5rem;
}

.benefit p {
    color: var(--ink-soft);
}

@media (min-width: 768px) {
    .benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .benefit {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .benefit__icon {
        width: clamp(140px, 15vw, 180px);
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   HOME: HOW IT WORKS
   ============================================ */

.how .section-head {
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.how__track {
    --medal: 76px;
    position: relative;
}

.how__line {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--medal) / 2 - 40px);
    display: none;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

.how__line-base,
.how__line-shine {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.how__line-base {
    stroke: var(--gold);
    stroke-width: 3;
}

.how__line-shine {
    stroke: var(--gold-light);
    stroke-width: 1;
}

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: var(--medal) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(var(--medal) / 2 - 10px);
    top: calc(var(--medal) / 2);
    width: 20px;
    height: calc(100% + 2.5rem);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2720%27%20height=%2780%27%20viewBox=%270%200%2020%2080%27%3E%3Cpath%20d=%27M10%200C2%2020%202%2020%2010%2040S18%2060%2010%2080%27%20fill=%27none%27%20stroke=%27%23B98A4E%27%20stroke-width=%272.5%27/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 20px 80px;
}

.step__medal {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--medal);
    height: var(--medal);
    border: 2px solid var(--gold);
    border-radius: 50%;
    background-color: var(--cream);
}

.step__scroll,
.step__num {
    grid-area: 1 / 1;
}

.step__scroll {
    width: 78%;
    height: auto;
}

.step__scroll-sheet {
    fill: var(--parchment);
    stroke: var(--gold);
    stroke-width: 2;
}

.step__scroll-roll {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.step__num {
    font-family: var(--font-serif);
    font-size: calc(var(--medal) * 0.34);
    line-height: 1;
    color: var(--navy);
}

.step__body {
    padding-top: 0.35rem;
}

.step h3 {
    margin-bottom: 0.4rem;
}

.step p {
    color: var(--on-navy);
}

@media (min-width: 768px) {
    .how__track {
        --medal: 112px;
    }

    .how__line {
        display: block;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.5rem, 4vw, 3.5rem);
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .step:not(:last-child)::before {
        display: none;
    }

    .step__body {
        max-width: 20rem;
        padding-top: 0.5rem;
    }
}

/* ============================================
   HOME: FEATURES
   ============================================ */

.features {
    background-color: var(--parchment-deep);
    background-image: var(--grain);
}

.features .section-head p {
    color: var(--ink);
}

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

.feature {
    padding: 2rem 0;
    text-align: center;
}

.feature + .feature {
    border-top: 1px solid var(--hairline-strong);
}

.feature__icon {
    display: block;
    width: 104px;
    margin: 0 auto 1rem;
    line-height: 0;
}

.feature__icon svg {
    width: 100%;
    height: auto;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    max-width: 22rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature {
        padding: 2rem clamp(1.25rem, 3vw, 2rem);
    }

    .feature + .feature {
        border-top: 0;
    }

    .feature:nth-child(even) {
        border-left: 1px solid var(--hairline-strong);
    }

    .feature:nth-child(n + 3) {
        border-top: 1px solid var(--hairline-strong);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature {
        padding-block: 0.5rem;
    }

    .feature:nth-child(n + 3) {
        border-top: 0;
    }

    .feature + .feature {
        border-left: 1px solid var(--hairline-strong);
    }
}

/* ============================================
   HOME: TRUST & SAFETY
   ============================================ */

.trust__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.trust__photo {
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}

.trust .lead {
    color: var(--ink);
}

.trust__list {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.trust__list li {
    margin-bottom: 0.5rem;
}

.trust__list li::marker {
    color: var(--bronze);
}

@media (min-width: 900px) {
    .trust__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: clamp(3rem, 5vw, 5rem);
    }

    .trust__photo {
        max-width: none;
    }
}

/* ============================================
   HOME: DATING EXPERIENCE COLLAGE
   ============================================ */

.collage-wrap {
    position: relative;
}

.collage-ribbon {
    position: absolute;
    inset: 5% -6% 0 -6%;
    z-index: 0;
    width: 112%;
    height: 90%;
    opacity: 0.4;
    pointer-events: none;
}

.collage-ribbon path {
    vector-effect: non-scaling-stroke;
}

.collage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    padding-bottom: 2.5rem;
}

.collage__item {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-media);
    background-color: var(--parchment-deep);
}

.collage__item:nth-child(even) {
    transform: translateY(2.5rem);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-ready .collage__item[data-reveal] {
        transition: opacity 1.1s var(--ease);
    }

    .reveal-ready .collage__item[data-reveal]:not(.is-visible) {
        transform: none;
    }

    .reveal-ready .collage__item:nth-child(even)[data-reveal],
    .reveal-ready .collage__item:nth-child(even)[data-reveal]:not(.is-visible) {
        transform: translateY(2.5rem);
    }
}

@media (min-width: 1024px) {
    .collage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(9, clamp(40px, 4.2vw, 60px));
        gap: 1rem 1.25rem;
        padding-bottom: 0;
    }

    .collage__item {
        aspect-ratio: auto;
    }

    .collage__item:nth-child(even),
    .reveal-ready .collage__item:nth-child(even)[data-reveal],
    .reveal-ready .collage__item:nth-child(even)[data-reveal]:not(.is-visible) {
        transform: none;
    }

    .collage__item--1 { grid-column: 1; grid-row: 3 / span 4; }
    .collage__item--2 { grid-column: 2; grid-row: 1 / span 4; }
    .collage__item--3 { grid-column: 2; grid-row: 5 / span 5; }
    .collage__item--4 { grid-column: 3; grid-row: 1 / span 5; }
    .collage__item--5 { grid-column: 3; grid-row: 6 / span 4; }
    .collage__item--6 { grid-column: 4; grid-row: 4 / span 4; }
}

/* ============================================
   HOME: FAQ & FINAL CTA
   ============================================ */

.faq {
    padding-top: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

.final-cta {
    position: relative;
    isolation: isolate;
    padding-block: clamp(6rem, 4rem + 8vw, 10rem);
    background-color: var(--navy-deep);
    color: var(--on-navy);
    text-align: center;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/5a5d91c45200736802e612ce376a17ec.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 42%;
}

.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 62% at 50% 52%, rgba(22, 34, 58, 0.78) 0%, rgba(22, 34, 58, 0.62) 55%, rgba(22, 34, 58, 0.35) 100%);
}

.final-cta__inner {
    position: relative;
    z-index: 1;
    max-width: calc(42rem + var(--gutter) * 2);
}

.final-cta__title {
    color: var(--white);
}

.final-cta__text {
    margin: 0 auto 2rem;
    max-width: 34rem;
    font-size: var(--fs-lead);
    color: var(--on-navy);
}

/* ============================================
   REVEAL MOTION (enabled by script.js only)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] {
        transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    }

    .reveal-ready [data-reveal]:not(.is-visible) {
        opacity: 0;
        transform: translateY(18px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}