/* =========================================================
   Lovett Family Chiropractic — Homepage Design 1
   "Warm Clinical": deep navy, warm cream, coral accent
   ========================================================= */

:root {
    --ink: #0E2433;
    --ink-2: #16374B;
    --ink-3: #21485F;
    --accent: #E0533D;
    --accent-d: #C2412C;
    --accent-soft: #FBE3DD;
    --cream: #F8F3EC;
    --sand: #EEE5D8;
    --line: #E3D9CB;
    --text: #1B2A35;
    --muted: #5A6A74;
    --white: #FFFFFF;
    --gold: #F5B83D;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 50px -20px rgba(14, 36, 51, .35);
    --shadow-sm: 0 8px 24px -12px rgba(14, 36, 51, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main > section { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-d); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #FFB9AA; }
.eyebrow .dot { display: none; }
.h2 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.01em; color: var(--ink);
}
.h2 em, .hero__title em, .doctor h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.lead { font-size: 19px; color: var(--text); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head--light .h2 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none;
    transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 83, 61, .8); }
.btn--accent:hover { background: var(--accent-d); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--glass:hover .icon { transform: none; }
.play-dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; margin-left: -10px; }
.play-dot .icon { width: 14px; height: 14px; margin-left: 2px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-d);
    text-decoration: none; background: none; border: 0; padding: 0; font-size: 15px;
}
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow--light { color: #FFB9AA; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .8); font-size: 13.5px; position: relative; z-index: 60; }
.topbar__inner { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__item .icon { color: var(--accent); }
.topbar__phone { margin-left: auto; font-weight: 700; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: absolute; top: 40px; left: 0; right: 0; z-index: 50;
    transition: background .35s, box-shadow .35s, padding .35s;
    padding: 18px 0;
}
.site-header.is-stuck {
    position: fixed; top: 0; background: rgba(14, 36, 51, .94); backdrop-filter: blur(12px);
    padding: 10px 0; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
    animation: drop .4s var(--ease);
}
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
.site-header__inner { display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .3s var(--ease); }
.nav a:not(.btn):hover::after { right: 0; }
.nav__cta-mobile { display: none !important; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.header-phone .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: max(680px, 100svh); color: #fff;
    display: flex; align-items: center; overflow: hidden; background: var(--ink);
    padding: 160px 0 150px;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__poster { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;          /* 16:9 */
    min-height: 100%; min-width: 177.78vh;  /* cover the hero */
    transform: translate(-50%, -50%) scale(1.15);
    pointer-events: none; border: 0;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(14, 36, 51, .86) 0%, rgba(14, 36, 51, .6) 40%, rgba(14, 36, 51, .12) 78%, rgba(14, 36, 51, .2) 100%),
        linear-gradient(0deg, rgba(14, 36, 51, .8) 0%, transparent 32%);
}
.hero__playchip {
    display: inline-flex; align-items: center; gap: 12px; margin: -16px 0 30px; padding: 8px 18px 8px 8px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; backdrop-filter: blur(8px);
}
.hero__playchip .play-dot { margin-left: 0; }
.hero__playchip[hidden] { display: none; }
.hero__content { position: relative; z-index: 2; }
.hero__title {
    font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.6vw, 92px);
    letter-spacing: -.02em; max-width: 12ch; margin-bottom: 22px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero__title em { color: #FF8A72; }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); max-width: 560px; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__benefits li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .92); }
.hero__benefits .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.5; }
.hero__badge {
    position: absolute; right: max(20px, calc((100vw - 1200px) / 2)); bottom: 150px; z-index: 2;
    background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .22);
    padding: 18px 22px; border-radius: var(--radius); display: grid; gap: 2px; min-width: 230px;
}
.hero__badge strong { font-size: 17px; }
.hero__badge span:last-child { font-size: 13px; color: rgba(255, 255, 255, .75); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 5; margin-top: -86px; }
.stats__card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 34px 28px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.stat__num { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); color: var(--ink); line-height: 1; }
.stat__num > span { font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ---------- Frames ---------- */
.frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Empathy ---------- */
.empathy__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.empathy__media { position: relative; padding: 0 60px 70px 0; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--cream); }
.empathy__note {
    position: absolute; left: -16px; bottom: 110px; background: var(--ink); color: #fff;
    padding: 16px 18px; border-radius: 16px; display: flex; gap: 12px; align-items: center; max-width: 260px;
    font-size: 14px; line-height: 1.4; box-shadow: var(--shadow-sm);
}
.empathy__note .icon { width: 36px; height: 36px; padding: 8px; background: var(--accent); border-radius: 50%; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--accent); font-style: italic; font-weight: 400; }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .5s var(--ease); }
.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-40%); }
.questions { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 4px; }
.questions li {
    display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line);
    font-size: 16.5px; font-weight: 500;
}
.questions__n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; min-width: 26px; }
.ready {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    background: var(--sand); border-radius: var(--radius); padding: 20px 22px 20px 28px;
}
.ready p { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }

/* ---------- Difference ---------- */
.difference { background: var(--ink); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.difference::before {
    content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 83, 61, .22), transparent 65%);
}
.difference__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.diff-card { background: var(--ink-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); transition: transform .35s var(--ease); }
.diff-card:hover { transform: translateY(-6px); }
.diff-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.diff-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .8s var(--ease); }
.diff-card:hover .diff-card__img img { transform: scale(1.06); }
.diff-card__body { padding: 30px 30px 34px; position: relative; }
.diff-card__n {
    position: absolute; top: -28px; right: 26px; width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600;
    box-shadow: 0 8px 20px -6px rgba(224, 83, 61, .7);
}
.diff-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.diff-card h3 small { display: block; font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFB9AA; margin-bottom: 4px; }
.diff-card p { font-size: 15.5px; margin: 0; }

/* ---------- Offer ---------- */
.offer { padding-top: 0; background: linear-gradient(var(--ink) 0 90px, var(--cream) 90px); }
.offer__ticket {
    display: grid; grid-template-columns: 1.6fr 1fr; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.offer__left { padding: clamp(32px, 4vw, 54px); }
.offer__tag { display: inline-block; background: var(--accent-soft); color: var(--accent-d); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.offer__left .h2 { margin: 6px 0 18px; }
.offer__includes { color: var(--text); }
.offer__fine { font-size: 13.5px; color: var(--muted); margin: 0; }
.offer__right {
    background: var(--accent); color: #fff; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
    position: relative; border-left: 3px dashed rgba(255, 255, 255, .7);
}
.offer__right::before, .offer__right::after {
    content: ""; position: absolute; left: -20px; width: 38px; height: 38px; border-radius: 50%; background: var(--cream);
}
.offer__right::before { top: -19px; background: var(--ink); } .offer__right::after { bottom: -19px; }
.offer__small { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; opacity: .9; }
.offer__price { font-family: var(--serif); font-weight: 600; font-size: clamp(80px, 9vw, 120px); line-height: .95; margin-bottom: 14px; }
.offer__price sup { font-size: .4em; vertical-align: top; position: relative; top: .35em; margin-right: 2px; }
.offer__right .btn--accent { background: var(--ink); box-shadow: none; }
.offer__right .btn--accent:hover { background: var(--ink-3); }
.offer__call { color: #fff; font-size: 14px; font-weight: 600; margin-top: 6px; }

/* ---------- Doctor ---------- */
.doctor { padding-top: 40px; }
.doctor__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.doctor__portrait { position: relative; }
.doctor__shape {
    position: absolute; inset: 8% -6% -6% 8%; border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
    background: repeating-linear-gradient(135deg, var(--sand) 0 2px, transparent 2px 14px); z-index: 0;
}
.doctor__portrait img {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
    border-radius: 240px 240px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
}
.doctor__chip {
    position: absolute; z-index: 2; left: -18px; bottom: 40px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 290px; font-size: 14px; line-height: 1.35;
}
.doctor__chip .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-d); }
.doctor__chip strong { display: block; color: var(--accent-d); font-size: 16px; }
.doctor h2 { margin-bottom: 22px; }
.creds { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.creds strong { display: block; color: var(--ink); font-size: 14.5px; }
.creds .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--ink); color: #fff; }

/* ---------- Protocol ---------- */
.protocol { background: var(--sand); }
.steps { list-style: none; padding: 0; margin: 0 0 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
.step { background: #fff; border-radius: var(--radius); padding: 0 24px 28px; text-align: center; position: relative; margin-top: 34px; box-shadow: var(--shadow-sm); }
.step__n {
    width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: -34px auto 18px;
    background: var(--ink); color: #fff; font-family: var(--serif); font-size: 28px; font-weight: 600; border: 6px solid var(--sand);
}
.step h3 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.services__intro .h2 { margin-bottom: 30px; }
.frame--wide { aspect-ratio: 5 / 4; margin-bottom: 24px; }
.services__list { display: grid; gap: 12px; }
.service {
    display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; color: var(--ink);
    transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.service:hover { background: var(--ink); color: #fff; transform: translateX(6px); border-color: var(--ink); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--accent); color: #fff; }
.service__go { margin-left: auto; opacity: .35; transition: opacity .3s; }
.service:hover .service__go { opacity: 1; }

/* ---------- Conditions ---------- */
.conditions {
    background:
        linear-gradient(rgba(14, 36, 51, .9), rgba(14, 36, 51, .94)),
        url("../images/chiropractor-team.webp") center / cover fixed;
    color: #fff;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.chips__label { text-align: center; margin: 44px 0 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .6); }
.chips--quiet .chip { font-size: 14.5px; padding: 10px 20px; background: transparent; }
.chip--more { border-color: var(--accent) !important; color: #FFB9AA; }
.stay-well {
    margin: 60px auto 0; max-width: 980px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 26px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.stay-well h3 { font-family: var(--serif); font-size: 26px; }
.stay-well p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); }

/* ---------- Stories ---------- */
.video-stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 70px; }
.vstory { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.vstory__thumb { display: block; position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 0; border: 3px solid var(--accent-soft); background: none; margin-bottom: 18px; }
.vstory__thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.vstory__play {
    position: absolute; right: -6px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
    display: grid; place-items: center; border: 3px solid #fff; transition: transform .25s var(--ease);
}
.vstory__play .icon { width: 13px; height: 13px; margin-left: 2px; }
.vstory__thumb:hover .vstory__play { transform: scale(1.15); }
.vstory blockquote {
    margin: 0 0 18px; font-size: 15px; color: var(--text); flex: 1;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.vstory footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.vstory footer strong { color: var(--ink); }
.vstory footer span { color: var(--muted); font-size: 14px; }
.vstory__link { flex-basis: 100%; margin-top: 6px; background: none; border: 0; color: var(--accent-d); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.vstory__link .icon { width: 12px; height: 12px; }

.reviews { background: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 50px); color: #fff; overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.reviews__score { display: flex; align-items: center; gap: 14px; font-size: 16px; color: rgba(255, 255, 255, .8); }
.reviews__score strong { color: #fff; font-family: var(--serif); font-size: 26px; }
.reviews__nav { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center; transition: background .25s; }
.round-btn:hover { background: var(--accent); border-color: var(--accent); }
.reviews__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { margin: 0; scroll-snap-align: start; background: var(--ink-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .08); }
.review__q { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.review blockquote { margin: 0 0 14px; font-size: 15.5px; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-expanded blockquote { -webkit-line-clamp: unset; display: block; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 0; color: #FFB9AA; font-weight: 700; font-size: 14px; margin-bottom: 18px; text-decoration: underline; text-underline-offset: 3px; }
.review figcaption { margin-top: auto; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption strong { font-size: 16px; margin-top: 6px; }
.review figcaption span:last-child { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Why different ---------- */
.why { background: #fff; }
.why__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why .h2 { margin-bottom: 20px; }
.accordion { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn {
    width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 20px 0;
    font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink);
}
.acc__n { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.acc__icon { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s, color .3s; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > p { overflow: hidden; margin: 0; color: var(--muted); padding-left: 38px; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__panel > p { padding-bottom: 22px; }
.why__media { position: relative; }
.frame--arch { aspect-ratio: 4 / 5; border-radius: var(--radius-lg) var(--radius-lg) 240px 240px; }
.why__badge {
    position: absolute; top: 40px; left: -30px; background: var(--accent); color: #fff; border-radius: 50%;
    width: 160px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    font-size: 13px; line-height: 1.25; box-shadow: var(--shadow); padding: 18px; animation: spinIn 1s var(--ease);
}
.why__badge-big { font-family: var(--serif); font-size: 24px; font-style: italic; font-weight: 600; }

/* ---------- Cost ---------- */
.cost { background: var(--ink-2); color: rgba(255, 255, 255, .82); }
.cost__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.cost .h2 { color: #fff; margin-bottom: 26px; }
.cost__pull { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: #FFB9AA; border-left: 3px solid var(--accent); padding-left: 22px; margin: 0; }
.cost__body p { font-size: 16.5px; }
.cost__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.cost__more.is-open { grid-template-rows: 1fr; }
.cost__more-inner { min-height: 0; overflow: hidden; }

/* ---------- Insurance ---------- */
.insurance { padding: 80px 0; text-align: center; }
.insurance__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--ink); max-width: 820px; margin: 0 auto 36px; }
.insurance__logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto 26px; }
.ins { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; display: grid; place-items: center; aspect-ratio: 3 / 2; transition: transform .3s var(--ease), box-shadow .3s; }
.ins:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ins { overflow: hidden; }
.ins img { width: auto; height: auto; max-width: 80%; max-height: 60%; object-fit: contain; }
.insurance__note { color: var(--muted); margin: 0; }
.insurance__note a { color: var(--accent-d); font-weight: 700; }

/* ---------- Visit ---------- */
.visit { background: var(--sand); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "photo info" "map map"; gap: 30px; align-items: stretch; }
.visit__photo { grid-area: photo; }
.visit__info { grid-area: info; }
.visit__map { grid-area: map; }
.visit__photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 50% 32%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.visit__info { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.visit__info .h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 22px; }
.visit__addr { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; font-weight: 600; color: var(--ink); margin-bottom: 14px; line-height: 1.45; }
.visit__addr .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-d); }
.hours { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; }
.hours caption { text-align: left; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hours caption .icon { color: var(--accent); }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.hours th { font-weight: 600; color: var(--ink); width: 40%; }
.hours td { color: var(--muted); text-align: right; }
.hours td span { display: block; white-space: nowrap; }
.hours .is-closed td { color: var(--accent-d); font-weight: 600; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__actions .btn { padding: 12px 20px; font-size: 14px; }
.visit__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 300px; background: #dde3e6; }
.visit__map { position: relative; }
.visit__map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; min-height: 300px; }
.visit__map-fallback {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px;
    text-decoration: none; color: var(--ink);
    background: linear-gradient(0deg, rgba(238, 229, 216, .55), rgba(238, 229, 216, .55)), repeating-linear-gradient(0deg, #d9dfe2 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, #d9dfe2 0 1px, transparent 1px 48px), #e9edef;
}
.visit__map-fallback .icon { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.visit__map-fallback span { color: var(--muted); font-size: 14px; }
.visit__map-fallback em { font-style: normal; font-weight: 700; color: var(--accent-d); margin-top: 8px; font-size: 14px; }

/* ---------- Final CTA ---------- */
.final-cta {
    background:
        linear-gradient(105deg, rgba(14, 36, 51, .96) 30%, rgba(14, 36, 51, .7)),
        url("../images/chiro-patient-xray.webp") right center / cover;
    color: #fff; padding: 90px 0;
}
.final-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.final-cta .h2 { color: #fff; max-width: 680px; }
.final-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-cta__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0A1B27; color: rgba(255, 255, 255, .7); padding: 70px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.site-footer__brand img { height: 50px; width: auto; margin-bottom: 18px; }
.site-footer h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #FF8A72; }
.site-footer__phone { color: #fff; font-weight: 700; font-size: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 13.5px; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 29, .85); backdrop-filter: blur(6px); }
.modal__dialog { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .35s var(--ease); }
.modal__frame, .modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spinIn { from { transform: rotate(-20deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .nav { gap: 18px; }
    .nav a { font-size: 14px; }
    .header-phone span { display: none; }
    .video-stories { grid-template-columns: repeat(2, 1fr); }
    .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--ink); flex-direction: column; gap: 0;
        padding: 100px 28px 28px; transform: translateX(100%); transition: transform .4s var(--ease); z-index: -1;
        box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
    }
    .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .nav__cta-mobile { display: inline-flex !important; margin-top: 24px; border-bottom: 0 !important; }
    .nav-open .nav { transform: none; }
    .site-header__actions .btn { display: none; }
    .site-header__actions { margin-left: auto; }

    .hero { padding: 140px 0 140px; }
    .hero__badge { display: none; }
    .stats__card { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

    .empathy__grid, .doctor__grid, .services__grid, .why__grid, .cost__grid { grid-template-columns: 1fr; }
    .empathy__media { max-width: 560px; }
    .difference__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .offer__ticket { grid-template-columns: 1fr; }
    .offer__right { border-left: 0; border-top: 3px dashed rgba(255, 255, 255, .7); }
    .offer__right::before, .offer__right::after { top: -20px; left: auto; bottom: auto; }
    .offer__right::before { left: -19px; background: var(--cream); } .offer__right::after { right: -19px; }
    .site-header.is-stuck { backdrop-filter: none; background: var(--ink); }
    .doctor__portrait { max-width: 480px; }
    .doctor__shape { inset: 6% -3% -4% 6%; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps::before { display: none; }
    .why__media { max-width: 480px; order: -1; }
    .insurance__logos { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .conditions { background-attachment: scroll; }
}

@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 64px; }
    .container { width: calc(100% - 32px); }
    .topbar__hide-sm, .topbar__item:first-child { display: none; }
    .topbar__phone { margin: 0 auto; }
    .brand img { height: 38px; }
    .hero { min-height: 92svh; padding: 130px 0 130px; }
    .hero__shade { background: linear-gradient(180deg, rgba(14, 36, 51, .6) 0%, rgba(14, 36, 51, .45) 45%, rgba(14, 36, 51, .88) 100%); }
    .hero__actions .btn { width: 100%; }
    .hero__benefits { flex-direction: column; }
    .stats { margin-top: -70px; }
    .stat { padding: 24px 12px; }
    .stat__label { font-size: 12.5px; }
    .empathy__media { padding: 0 30px 50px 0; }
    .empathy__note { left: -6px; bottom: 70px; max-width: 210px; font-size: 13px; }
    .ready { padding: 18px; }
    .creds { grid-template-columns: 1fr; }
    .doctor__chip { left: 0; }
    .steps { grid-template-columns: 1fr; }
    .video-stories { grid-template-columns: 1fr; }
    .reviews__track { grid-auto-columns: 88%; }
    .why__badge { width: 120px; height: 120px; left: -6px; font-size: 11px; }
    .why__badge-big { font-size: 18px; }
    .insurance__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .ins { width: calc((100% - 20px) / 3); }
    .visit__grid { grid-template-columns: 1fr; grid-template-areas: "photo" "info" "map"; }
    .visit__photo img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
    .visit__info { padding: 26px; }
    .final-cta__actions { width: 100%; }
    .final-cta__actions .btn { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; }

    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: var(--ink); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; color: #fff; text-decoration: none; font-weight: 700; }
    .mobile-bar__book { background: var(--accent); }
}

/* ---------- Spine graphic (shared by the explorer and the scroll spine) ---------- */
.spine { display: block; overflow: visible; }
.spine .vt { transition: opacity .55s ease; transition-delay: calc(var(--i, 0) * 32ms); }
.spine.is-pre .vt, .spine.is-pre .spine__lab { opacity: 0; }
.spine__lab { transition: opacity .6s ease .5s; }
.vt__body { fill: var(--sp-fill); stroke: var(--sp-stroke); stroke-width: 1.4; transition: fill .4s ease, stroke .4s ease; transition-delay: calc(var(--i, 0) * 14ms); }
.vt__proc { fill: var(--sp-proc-fill); stroke: var(--sp-proc); stroke-width: 1.2; transition: fill .4s ease, stroke .4s ease; transition-delay: calc(var(--i, 0) * 14ms); }
.vt__disc { fill: var(--sp-disc); transition: fill .4s ease; transition-delay: calc(var(--i, 0) * 14ms); }
.vt__line { fill: none; stroke: var(--sp-proc); stroke-width: 1.2; transition: stroke .4s ease; }
.vt.is-on .vt__body { fill: var(--sp-on-fill); stroke: var(--sp-on); stroke-width: 2; }
.vt.is-on .vt__proc { fill: var(--sp-on-proc); stroke: var(--sp-on); }
.vt.is-on .vt__disc { fill: var(--sp-on); }
.vt.is-on .vt__line { stroke: var(--sp-on); }
.spine__lab text { font-family: var(--sp-font); font-size: 19px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--sp-label); transition: fill .35s ease; }
.spine__lab .spine__seg { font-size: 18px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.spine__brace { fill: none; stroke: var(--sp-proc); stroke-width: 1.4; transition: stroke .35s ease; }
.spine__lab.is-on text { fill: var(--sp-on); }
.spine__lab.is-on .spine__brace { stroke: var(--sp-on); }
.spine--big .vt { cursor: pointer; }
.spine--narrow { display: none; }

/* ---------- "Where does it hurt?" layout (shared) ---------- */
.sx__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "head fig" "list fig"; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.sx__head { grid-area: head; }
.sx__list { grid-area: list; list-style: none; margin: 0; padding: 0; }
.sx__figure { grid-area: fig; position: sticky; top: 110px; display: grid; justify-items: center; gap: 18px; }
.sx__art { display: flex; justify-content: center; width: 100%; }
.sx__art .spine { height: min(640px, 70vh); width: auto; max-width: 100%; }
.sx__btn { appearance: none; background: none; border: 0; margin: 0; font: inherit; color: inherit; text-align: left; width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 30px; align-items: center; gap: 14px; padding: 18px 4px; cursor: pointer; }
.sx__num { font-size: 13px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; transition: color .3s; }
.sx__name { transition: color .3s, transform .45s var(--ease); }
.sx__seg { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.sx__item:hover .sx__seg, .sx__item.is-active .sx__seg { opacity: 1; transform: none; }
.sx__item:hover .sx__name, .sx__item.is-active .sx__name { transform: translateX(10px); }
.sx__plus { width: 30px; height: 30px; position: relative; transition: background .3s, border-color .3s; }
.sx__plus::before, .sx__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.sx__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.sx__item.is-active .sx__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.sx__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.sx__item.is-active .sx__panel { grid-template-rows: 1fr; }
.sx__panel-in { overflow: hidden; min-height: 0; padding-left: 70px; visibility: hidden; transition: visibility 0s linear .5s; }
.sx__item.is-active .sx__panel-in { visibility: visible; transition-delay: 0s; }
.sx__panel p { margin: 0 0 16px; max-width: 540px; font-size: 16px; }
.sx__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 26px; }
.sx__tag { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; transition: background .25s, color .25s, border-color .25s; }
.sx__tag .icon { width: 15px; height: 15px; }
.sx__now { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sx__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-on) 22%, transparent); }

/* ---------- Scroll spine on the right (shared) ---------- */
.spine-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 45; padding: 12px 7px; border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity .5s ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spine-rail.is-ready { opacity: 1; }
.spine-rail .spine { height: min(48vh, 400px); width: auto; }
.spine-rail .vt, .spine-rail .vt__body, .spine-rail .vt__proc, .spine-rail .vt__disc { transition-delay: 0s; }
.spine-rail .vt__body { stroke-width: 2.4; }
.spine-rail .vt__proc { stroke-width: 2; }
.spine-rail .vt.is-lit .vt__body { fill: var(--sp-on-fill); stroke: var(--sp-on); }
.spine-rail .vt.is-lit .vt__proc { stroke: var(--sp-on); }
.spine-rail .vt.is-lit .vt__disc { fill: var(--sp-on); }
.spine-rail .vt.is-current .vt__body { fill: var(--sp-on); stroke: var(--sp-on); }
.spine-rail__tag { position: absolute; right: calc(100% + 10px); top: 14px; transform: translateY(-50%); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 5px 9px; transition: top .3s var(--ease), opacity .3s; pointer-events: none; }
.spine-rail__tag::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: inherit; }
.spine-rail.is-auto { opacity: 0; pointer-events: none; }
.spine-rail.is-auto.is-scrolling { opacity: 1; pointer-events: auto; }
.nav-open .spine-rail, .nav-open .spine-rail.is-scrolling { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .spine .vt, .vt__body, .vt__proc, .vt__disc, .spine-rail__tag { transition: none; }
}

/* ---------- Design 1 spine theme ---------- */
.sx, .spine-rail {
    --sp-font: var(--sans);
    --sp-fill: #FFFFFF; --sp-stroke: #B7AB9C; --sp-proc-fill: rgba(255, 255, 255, .7); --sp-proc: #D3C8BA; --sp-disc: #E6DCCF;
    --sp-on: var(--accent); --sp-on-fill: #FCE5DF; --sp-on-proc: #FEF3EF; --sp-label: var(--muted);
}
.sx { background: #fff; }
.sx__head { margin-bottom: 34px; }
.sx__head .h2 { margin-bottom: 14px; }
.sx__intro { color: var(--muted); max-width: 520px; margin: 0; }
.sx__list { border-top: 1px solid var(--line); }
.sx__item { border-bottom: 1px solid var(--line); }
.sx__num { color: var(--muted); }
.sx__name { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }
.sx__item:hover .sx__name, .sx__item.is-active .sx__name, .sx__item.is-active .sx__num { color: var(--accent); }
.sx__seg { color: var(--accent-d); }
.sx__plus { border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); }
.sx__item.is-active .sx__plus { background: var(--accent); border-color: var(--accent); color: #fff; }
.sx__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sx__panel p { color: var(--muted); }
.sx__tag { border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.sx__tag:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sx__tag--cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.sx__tag--cta:hover { background: var(--accent-d); border-color: var(--accent-d); }
.sx__figure {
    padding: 34px 24px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line);
    background-color: var(--cream);
    background-image: linear-gradient(rgba(14, 36, 51, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 36, 51, .05) 1px, transparent 1px);
    background-size: 28px 28px; background-position: center;
}
.sx__now { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }

.spine-rail { background: rgba(255, 255, 255, .78); border: 1px solid rgba(14, 36, 51, .08); box-shadow: 0 14px 34px -14px rgba(14, 36, 51, .4); }
.spine-rail .vt__body { fill: #fff; stroke: rgba(14, 36, 51, .32); }
.spine-rail .vt__proc { stroke: rgba(14, 36, 51, .18); }
.spine-rail .vt__disc { fill: rgba(14, 36, 51, .12); }
.spine-rail .vt.is-current .vt__body { fill: var(--ink); stroke: var(--ink); }
.spine-rail__tag { background: var(--ink); color: #fff; border-radius: 6px; border-color: var(--ink); }

@media (max-width: 960px) {
    .sx__grid { grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "head head" "list fig"; column-gap: 14px; }
    .sx__figure { top: 92px; padding: 14px 6px; border-radius: 18px; }
    .sx__art .spine { height: min(440px, 62vh); }
    .spine--wide { display: none; }
    .spine--narrow { display: block; }
    .sx__now { display: none; }
    .sx__btn { grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 10px; padding: 16px 0; }
    .sx__seg { display: none; }
    .sx__name { font-size: clamp(22px, 6vw, 30px); }
    .sx__item:hover .sx__name, .sx__item.is-active .sx__name { transform: none; }
    .sx__panel-in { padding-left: 0; }
    .sx__panel p { font-size: 15px; }
    .sx__plus { width: 28px; height: 28px; }
    .spine-rail { right: 4px; padding: 9px 4px; }
    .spine-rail .spine { height: min(36vh, 280px); }
    .spine-rail__tag { display: none; }
}
