/*
 * JMatchmaking - shared design system
 * Warm ivory column, navy serif type, copper braided-rope motif.
 */

:root {
    /* Palette */
    --ivory: #FBF4E8;
    --ivory-light: #FFF9EF;
    --parchment: #EFE2CA;
    --cream: #F6EBD6;
    --oatmeal: #EADFCB;
    --navy: #23406B;
    --navy-light: #2B4C7C;
    --navy-deep: #1A3154;
    --tan: #D8B48A;
    --tan-light: #E6C79C;
    --tan-pill: #EBD6B8;
    --copper: #B4693E;
    --copper-dark: #8A4A26;
    --burgundy: #8E2F2F;
    --text: #2B2A33;
    --text-muted: #574D44;
    --on-navy: #F6EBD6;
    --on-navy-muted: #DCCFBA;
    --amber: #D49A55;
    --terracotta: #B85F45;

    /* Type */
    --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Shape & depth */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-soft: 0 12px 28px -14px rgba(110, 62, 30, 0.45);
    --shadow-lift: 0 20px 36px -16px rgba(110, 62, 30, 0.55);

    /* Rope motif */
    --rope-texture: repeating-linear-gradient(-52deg,
        #6F3A1C 0 1.3px,
        #A65E34 1.3px 3.3px,
        #D9A774 3.3px 5px,
        #F0D5AE 5px 5.8px,
        #B4693E 5.8px 8px);
    --rope-strip-img: url("./assets/6cb8f9ed168986c844c5d8c393019de9.webp");

    /* Paper grain (inline SVG feTurbulence) */
    --grain: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27220%27%20height=%27220%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.85%27%20numOctaves=%273%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%200.45%200%200%200%200%200.31%200%200%200%200%200.17%200%200%200%200.11%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23n%29%27/%3E%3C/svg%3E");

    --header-bottom: 84px;
    --container: 1120px;
}

/* ============================================
   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
   ============================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-bottom) + 12px);
    -webkit-text-size-adjust: 100%;
}

html.nav-locked,
html.nav-locked body {
    overflow: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--terracotta);
    background-image: linear-gradient(125deg, var(--amber) 0%, #C77D4C 50%, var(--terracotta) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page-shell {
    max-width: 1280px;
    margin-inline: auto;
    background: var(--ivory);
    overflow-x: clip;
    box-shadow: 0 0 60px rgba(90, 45, 20, 0.28);
}

main {
    display: block;
}

main:focus {
    outline: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

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

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

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

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--tan);
}

ul, ol {
    padding-left: 1.25rem;
}

.sr-only {
    position: absolute;
    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;
    left: 1rem;
    top: -120px;
    z-index: 300;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: var(--on-navy);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    color: var(--on-navy);
}

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

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

.container--narrow {
    max-width: 800px;
}

.section {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-dark);
}

.section-heading {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading--center {
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading__bar {
    display: block;
    width: clamp(96px, 18vw, 170px);
    height: 7px;
    margin: 0.9rem auto 0;
    border-radius: 4px;
    background: var(--tan);
}

.section-heading--left .section-heading__bar {
    margin-left: 0;
}

.section-heading__intro {
    max-width: 640px;
    margin: 1.25rem auto 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.section-heading--left .section-heading__intro {
    margin-left: 0;
}

.section-heading--light h2 {
    color: var(--on-navy);
}

.section-heading--light .section-heading__intro {
    color: var(--on-navy);
}

/* ============================================
   SURFACES: parchment, linen, torn edges, rope strip
   ============================================ */

.parchment {
    position: relative;
    background-color: var(--parchment);
    background-image:
        var(--grain),
        radial-gradient(ellipse at 18% 12%, rgba(255, 250, 238, 0.75), transparent 60%),
        radial-gradient(ellipse at 85% 88%, rgba(196, 150, 96, 0.2), transparent 55%);
}

.linen {
    position: relative;
    background-color: var(--oatmeal);
    background-image:
        var(--grain),
        repeating-linear-gradient(0deg, rgba(120, 90, 55, 0.07) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(120, 90, 55, 0.06) 0 1px, transparent 1px 3px);
}

.torn-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 96% calc(100% - 2px), 92% calc(100% - 12px), 87% calc(100% - 4px), 83% calc(100% - 14px), 78% calc(100% - 6px), 73% calc(100% - 11px), 68% 100%, 63% calc(100% - 9px), 58% calc(100% - 3px), 53% calc(100% - 13px), 48% calc(100% - 5px), 43% calc(100% - 10px), 38% calc(100% - 1px), 33% calc(100% - 12px), 28% calc(100% - 6px), 23% calc(100% - 14px), 18% calc(100% - 4px), 13% calc(100% - 9px), 8% calc(100% - 2px), 4% calc(100% - 11px), 0 calc(100% - 5px));
}

.torn-top {
    clip-path: polygon(0 6px, 4% 13px, 8% 3px, 13% 10px, 18% 2px, 23% 12px, 28% 5px, 33% 14px, 38% 4px, 43% 11px, 48% 1px, 53% 9px, 58% 3px, 63% 12px, 68% 5px, 73% 13px, 78% 2px, 83% 10px, 87% 4px, 92% 12px, 96% 3px, 100% 9px, 100% 100%, 0 100%);
}

.torn-both {
    clip-path: polygon(0 6px, 4% 13px, 8% 3px, 13% 10px, 18% 2px, 23% 12px, 28% 5px, 33% 14px, 38% 4px, 43% 11px, 48% 1px, 53% 9px, 58% 3px, 63% 12px, 68% 5px, 73% 13px, 78% 2px, 83% 10px, 87% 4px, 92% 12px, 96% 3px, 100% 9px, 100% calc(100% - 10px), 96% calc(100% - 2px), 92% calc(100% - 12px), 87% calc(100% - 4px), 83% calc(100% - 14px), 78% calc(100% - 6px), 73% calc(100% - 11px), 68% 100%, 63% calc(100% - 9px), 58% calc(100% - 3px), 53% calc(100% - 13px), 48% calc(100% - 5px), 43% calc(100% - 10px), 38% calc(100% - 1px), 33% calc(100% - 12px), 28% calc(100% - 6px), 23% calc(100% - 14px), 18% calc(100% - 4px), 13% calc(100% - 9px), 8% calc(100% - 2px), 4% calc(100% - 11px), 0 calc(100% - 5px));
}

.rope-strip {
    display: block;
    height: 16px;
    background-image: var(--rope-strip-img);
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}

/* Braided rope outline primitive: masked diagonal-stripe ring that follows border-radius */
.rope {
    --rope-w: 5px;
    --rope-shadow: var(--shadow-soft);
    position: relative;
    box-shadow: inset 0 0 0 calc(var(--rope-w) + 2px) var(--tan), var(--rope-shadow);
}

.rope::after,
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: var(--rope-w);
    border-radius: inherit;
    background: var(--rope-texture);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

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

.btn {
    --rope-w: 3px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.7rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--navy-light), #1F3A62);
    color: var(--tan-light);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 calc(var(--rope-w) + 2px) var(--tan), 0 8px 18px -8px rgba(60, 32, 14, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    color: #F3DDBA;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 calc(var(--rope-w) + 2px) var(--tan), 0 14px 24px -10px rgba(60, 32, 14, 0.7);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid var(--copper-dark);
    outline-offset: 4px;
    transform: translateY(-2px);
}

.site-header .btn:focus-visible,
.site-footer .btn:focus-visible {
    outline-color: var(--tan);
}

.btn--lg {
    --rope-w: 5px;
    min-height: 60px;
    padding: 1rem 2.75rem;
    font-size: 1.15rem;
}

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

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 55%, #1F3A62 100%);
}

.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background-image: var(--rope-strip-img);
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    pointer-events: none;
}

.site-header::before {
    top: 0;
}

.site-header::after {
    bottom: 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: calc(14px + 0.45rem) clamp(1rem, 3vw, 2.25rem);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.25rem, 4.4vw, 1.75rem);
    letter-spacing: 0.01em;
    color: var(--on-navy);
    text-decoration: none;
    white-space: nowrap;
}

.site-brand:hover {
    color: #FFFFFF;
}

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

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

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--on-navy);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 2rem;
    background: var(--navy-deep);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0s;
}

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

.site-nav__list li {
    border-bottom: 1px solid rgba(216, 180, 138, 0.35);
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.5rem 0.25rem;
    color: var(--on-navy);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

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

.site-nav__cta {
    display: grid;
    gap: 0.75rem;
}

.site-nav__note {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--on-navy-muted);
    text-align: center;
}

@media (max-width: 359.98px) {
    .header-actions .header-cta {
        display: none;
    }
}

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

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        margin-left: auto;
        padding: 0;
        background: transparent;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transition: none;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: clamp(0.75rem, 1.8vw, 1.75rem);
    }

    .site-nav__list li {
        border: 0;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0.25rem 0.1rem;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        text-decoration: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.4em;
        transition: text-decoration-color 0.2s ease, color 0.2s ease;
    }

    .site-nav__link:hover {
        text-decoration-color: var(--tan);
    }

    .site-nav__cta {
        display: none;
    }
}

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

.site-footer {
    padding: clamp(0.75rem, 2vw, 1.25rem);
    background: var(--ivory);
}

.site-footer__panel {
    --rope-w: 8px;
    --rope-shadow: 0 18px 40px -20px rgba(26, 49, 84, 0.6);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.25rem) 1.5rem;
    background: linear-gradient(180deg, #2C4E7E 0%, var(--navy) 45%, var(--navy-deep) 100%);
    color: var(--on-navy-muted);
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
}

.site-brand--footer {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 0.5rem;
}

.site-footer__brand p {
    max-width: 420px;
    font-size: 1rem;
    color: var(--on-navy-muted);
}

.site-footer__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tan-light);
}

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

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--on-navy);
    text-decoration: underline;
    text-decoration-color: rgba(216, 180, 138, 0.5);
    text-underline-offset: 0.25em;
}

.site-footer__links a:hover {
    color: #FFFFFF;
    text-decoration-color: var(--tan);
}

.site-footer__text {
    font-size: 1rem;
    color: var(--on-navy-muted);
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(216, 180, 138, 0.55);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    color: var(--on-navy-muted);
}

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

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

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

/* ============================================
   ICONS
   ============================================ */

.icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    flex: none;
}

/* ============================================
   PROFILE CARDS
   ============================================ */

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-card {
    --rope-w: 5px;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
    padding: 12px 1.5rem 1.75rem;
    border-radius: 50% 50% 26px 26px / 170px 170px 26px 26px;
    background: linear-gradient(180deg, var(--ivory-light), var(--cream));
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    --rope-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.profile-card__portrait {
    --rope-w: 5px;
    width: 86%;
    aspect-ratio: 1;
    margin: 0 auto 1.1rem;
    padding: 9px;
    border-radius: 50%;
    background: var(--cream);
}

.profile-card__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
}

.profile-card__name {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}

.profile-card__sep {
    color: var(--copper-dark);
    font-weight: 400;
    margin-inline: 0.15em;
}

.profile-card__age {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--navy);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.tag {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--tan-pill);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.profile-card__intro {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

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

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

/* ============================================
   STEPS (rope rings with connecting arrows)
   ============================================ */

.steps {
    --ring: 148px;
    --steps-gap: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--steps-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.step {
    position: relative;
    text-align: center;
}

.step__ring {
    --rope-w: 9px;
    --rope-shadow: 0 14px 26px -12px rgba(110, 62, 30, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: var(--ring);
    height: var(--ring);
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, var(--ivory-light), var(--cream));
    color: var(--navy);
}

.step__icon {
    width: 52px;
    height: 52px;
}

.step__num {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper-dark);
}

.step__title {
    margin-bottom: 0.4rem;
}

.step__text {
    max-width: 320px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-muted);
}

.step__link {
    display: none;
}

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

@media (min-width: 1024px) {
    .steps {
        --ring: 168px;
        --steps-gap: 1.5rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .step__icon {
        width: 58px;
        height: 58px;
    }

    .step:not(:last-child) .step__link {
        display: block;
        position: absolute;
        top: 0;
        left: calc(50% + var(--ring) / 2 + 8px);
        width: calc(100% - var(--ring) + var(--steps-gap) - 16px);
        height: var(--ring);
        color: var(--copper);
        pointer-events: none;
    }

    .step__link svg {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
    }
}

/* ============================================
   FEATURE ITEMS & INFO CARDS
   ============================================ */

.feature-list {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.feature-item__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--copper);
    border-radius: 50%;
    background: var(--ivory-light);
    color: var(--copper-dark);
}

.feature-item__icon .icon {
    width: 26px;
    height: 26px;
}

.feature-item h3 {
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.info-card {
    --rope-w: 4px;
    padding: 1.75rem 1.6rem 1.6rem;
    border-radius: var(--radius-md);
    background: var(--cream);
}

.info-card__icon {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--navy);
}

.info-card__icon .icon {
    width: 40px;
    height: 40px;
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

.info-card p {
    margin: 0;
    font-size: 1rem;
}

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

/* ============================================
   CALLOUT
   ============================================ */

.callout {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--cream);
    box-shadow: var(--shadow-soft);
}

.callout__icon {
    color: var(--burgundy);
}

.callout__icon .icon {
    width: 40px;
    height: 40px;
}

.callout h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.callout ul {
    margin: 0;
    padding-left: 1.1rem;
}

.callout li {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.callout li::marker {
    color: var(--burgundy);
}

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

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

.faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    max-width: 860px;
    margin-inline: auto;
}

.faq-item {
    --rope-w: 4px;
    --rope-shadow: 0 8px 18px -12px rgba(110, 62, 30, 0.45);
    align-self: start;
    padding: calc(var(--rope-w) + 2px);
    border-radius: var(--radius-md);
    background: var(--cream);
}

.faq-item details {
    border-radius: 14px;
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.85rem 1.1rem 0.85rem 1.25rem;
    list-style: none;
    cursor: pointer;
    border-radius: 14px;
}

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

.faq-item__summary:focus-visible {
    outline: 3px solid var(--copper-dark);
    outline-offset: -3px;
}

.faq-item__q {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
}

.faq-item__chev {
    flex: none;
    color: var(--navy);
}

.faq-item__chev .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

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

.faq-item__a {
    padding: 0 1.25rem 1.25rem;
}

.faq-item__a p {
    margin-bottom: 0.75rem;
}

.faq-item__a p:last-child {
    margin-bottom: 0;
}

@supports (interpolate-size: allow-keywords) {
    .faq-item details {
        interpolate-size: allow-keywords;
    }

    .faq-item details::details-content {
        height: 0;
        overflow: clip;
        transition: height 0.32s ease, content-visibility 0.32s allow-discrete;
    }

    .faq-item details[open]::details-content {
        height: auto;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
    padding: clamp(3rem, 7vw, 4.75rem) 0 clamp(3.75rem, 8vw, 5.5rem);
    text-align: center;
}

.legal-hero h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-hero .section-heading__bar {
    margin-bottom: 1.5rem;
}

.legal-hero__summary {
    max-width: 680px;
    margin: 0 auto 1rem;
    font-size: 1.125rem;
}

.legal-hero__updated {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.legal-body {
    padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 6vw, 4.5rem);
}

.toc {
    --rope-w: 4px;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: var(--cream);
}

.toc__title {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    margin-bottom: 0.75rem;
}

.toc__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--tan);
    text-underline-offset: 0.25em;
}

.toc__link:hover,
.toc__link:focus-visible {
    color: var(--navy);
    text-decoration-color: var(--copper);
    text-decoration-thickness: 2px;
}

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

.prose {
    max-width: 760px;
    margin-inline: auto;
}

.prose h2 {
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    scroll-margin-top: calc(var(--header-bottom) + 16px);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.prose li {
    margin-bottom: 0.45rem;
}

.prose li::marker {
    color: var(--copper-dark);
}

.prose a:not([class]) {
    color: var(--copper-dark);
    font-weight: 600;
}

.prose strong {
    color: var(--navy);
}

/* CTA strip (legal page close) */
.cta-strip {
    padding: clamp(3rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.25rem);
}

.cta-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}

.cta-strip__text {
    max-width: 620px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    color: var(--navy);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--tan);
    text-underline-offset: 0.25em;
}

.back-link .icon {
    width: 20px;
    height: 20px;
}

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

/* Cookie policy: wider card grid between prose blocks */
.cookie-types {
    max-width: 980px;
    margin-block: 2.75rem;
}

.cookie-types .prose {
    margin-bottom: 1.75rem;
}

.cookie-types .info-grid {
    gap: 1.75rem;
}

/* ============================================
   HOME: SHARED
   ============================================ */

.section-cta {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

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

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(540px, 80vh, 700px);
    padding-block: clamp(3.5rem, 9vw, 6rem);
    isolation: isolate;
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/b1617c890b4240cfab22c734a42862f5.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 45%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 120% 62% at 50% 50%,
        rgba(251, 244, 232, 0.93) 0%,
        rgba(251, 244, 232, 0.86) 48%,
        rgba(251, 244, 232, 0.35) 80%,
        rgba(251, 244, 232, 0) 100%);
    pointer-events: none;
}

.hero__content {
    max-width: 780px;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero__lead {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text);
}

.hero__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.hero__note .icon {
    width: 20px;
    height: 20px;
    color: var(--copper-dark);
}

@media (min-width: 1024px) {
    .hero::before {
        background: radial-gradient(ellipse 58% 56% at 50% 50%,
            rgba(251, 244, 232, 0.92) 0%,
            rgba(251, 244, 232, 0.82) 50%,
            rgba(251, 244, 232, 0.3) 78%,
            rgba(251, 244, 232, 0) 100%);
    }
}

/* ============================================
   HOME: VALUE PROPOSITION
   ============================================ */

.value {
    padding: 0;
}

.value__panel {
    position: relative;
    z-index: 1;
    padding: clamp(3.5rem, 8vw, 5rem) 1.25rem 2.75rem;
}

.value__inner {
    max-width: 640px;
    margin-inline: auto;
}

.value__media {
    height: clamp(260px, 62vw, 400px);
    background-image: url("./assets/7a458dc32c5827c3e2a616d1a6ae49f4.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 65% 50%;
}

.benefit-list {
    display: grid;
    gap: 1.1rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

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

.benefit__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--tan-light);
}

.benefit__icon .icon {
    width: 22px;
    height: 22px;
}

.benefit h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

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

@media (min-width: 1024px) {
    .value {
        min-height: 600px;
    }

    .value__media {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        height: auto;
    }

    .value__panel {
        width: 58%;
        min-height: 600px;
        padding: 5rem 5rem 5.5rem 5rem;
        clip-path: polygon(0 0, calc(100% - 26px) 0, calc(100% - 8px) 7%, calc(100% - 30px) 13%, calc(100% - 4px) 20%, calc(100% - 22px) 27%, 100% 34%, calc(100% - 28px) 41%, calc(100% - 10px) 48%, calc(100% - 36px) 55%, calc(100% - 6px) 62%, calc(100% - 24px) 69%, calc(100% - 2px) 76%, calc(100% - 32px) 83%, calc(100% - 12px) 90%, calc(100% - 28px) 96%, calc(100% - 16px) 100%, 0 100%);
    }

    .value__inner {
        max-width: 560px;
        margin: 0;
    }
}

/* ============================================
   HOME: MATCHES
   ============================================ */

.matches {
    background: var(--ivory);
}

.matches__note {
    margin: 2rem auto 0;
    max-width: 620px;
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
}

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

.how {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.how__support {
    max-width: 620px;
    margin: 2.5rem auto 0;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
}

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

.features {
    background: var(--ivory);
}

.features__grid {
    display: grid;
    gap: 2rem;
}

.features__art {
    width: min(100%, 380px);
    margin-inline: auto;
}

.features__art img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.features__lead {
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.features .feature-item__icon {
    color: var(--copper-dark);
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 3rem;
    }

    .features__art {
        width: auto;
        margin-left: clamp(-150px, -9vw, -70px);
        margin-right: 0;
    }
}

/* ============================================
   HOME: JEWISH VALUES
   ============================================ */

.values {
    position: relative;
    z-index: 2;
    overflow: visible;
    background: #5E3720;
}

.values__divider {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: min(92%, 980px);
    height: auto;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.values__divider--bottom {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 55%) scaleX(-1);
}

.values__stage {
    position: relative;
}

.values__photo {
    height: clamp(260px, 62vw, 420px);
    background-image: url("./assets/32368ab326df63c60d874b9eaa43e8e0.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 25%;
}

.values__panel-wrap {
    padding: 2rem 1.25rem 3rem;
}

.values__panel {
    --rope-w: 5px;
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    background: rgba(96, 56, 32, 0.9);
    color: var(--on-navy);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.values__panel .section-heading {
    margin-bottom: 1.5rem;
}

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

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

@media (min-width: 1024px) {
    .values__stage {
        display: flex;
        align-items: flex-end;
        min-height: 680px;
        padding: 290px 2.5rem 3.5rem;
    }

    .values__photo {
        position: absolute;
        inset: 0;
        height: auto;
        background-position: 50% 30%;
    }

    .values__panel-wrap {
        position: relative;
        width: 100%;
        padding: 0;
    }

    .values__panel {
        background: rgba(110, 66, 38, 0.86);
    }
}

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

.trust {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.trust__grid {
    display: grid;
    gap: 2rem;
}

.trust__art {
    width: min(70%, 300px);
    margin-inline: auto;
}

.trust__art img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.trust__lead {
    font-size: 1.0625rem;
}

.trust__points {
    display: grid;
    gap: 1.25rem;
    margin: 1.75rem 0 2rem;
}

.trust-point h3 {
    margin-bottom: 0.3rem;
}

.trust-point p {
    margin: 0;
    color: var(--text);
}

@media (min-width: 1024px) {
    .trust__grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 4rem;
    }

    .trust__art {
        width: 100%;
        max-width: 380px;
    }
}

/* ============================================
   HOME: WHY CONSIDER
   ============================================ */

.why {
    position: relative;
    background: var(--ivory);
}

.why__media {
    height: clamp(280px, 70vw, 440px);
    background-image: url("./assets/667cfdb361ad861a485958d97c76beea.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 72% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

.why__content {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0 clamp(3.5rem, 8vw, 5rem);
}

.why__closing {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--navy);
}

@media (min-width: 1024px) {
    .why {
        display: flex;
        align-items: center;
        min-height: 620px;
    }

    .why__media {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 58%;
        height: auto;
        background-position: 75% center;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to bottom, transparent 0, #000 22%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to bottom, transparent 0, #000 22%);
        mask-composite: intersect;
    }

    .why__content {
        padding-block: 5rem;
    }

    .why__text {
        max-width: 500px;
    }
}

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

.faq {
    background: var(--ivory);
}

.final-cta {
    padding-block: clamp(4rem, 8vw, 5.5rem) clamp(3.5rem, 7vw, 4.5rem);
}

.final-cta__inner {
    text-align: center;
}

.final-cta .section-heading {
    margin-bottom: 1.5rem;
}

.final-cta__text {
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

/* ============================================
   REVEAL (transform only; content always visible)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .js .reveal:not(.is-visible) {
        transform: translateY(18px);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

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

    .btn:hover,
    .btn:focus-visible,
    .profile-card:hover {
        transform: none;
    }

    .faq-item details::details-content {
        transition: none;
    }
}