/* Lighthouse Chiropractic · "October at the lamp room"
   The wine of Dr. Windy's scrubs, the maple gold and the slate blue of Dr. Brent's polo, all measured
   on the practice's own photo, on a warm paper. Epilogue (display) + Radio Canada (text).
   Signature: the lantern room with its Fresnel lens, its beam swinging across the hero. */

@font-face {
    font-family: "Epilogue";
    src: url("/fonts/epilogue.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Radio Canada";
    src: url("/fonts/radio-canada.woff2") format("woff2");
    font-weight: 300 700;
    font-stretch: 75% 100%;
    font-display: swap;
}

:root {
    --paper: #fbf7f0;
    --paper-2: #f4ece0;
    --sheet: #ffffff;
    --ink: #251620;
    --muted: #5b4852;
    --line: #e6d9c9;
    --wine: #5a1e44;
    --wine-deep: #3e1330;
    --night: #2a0b22;
    --night-2: #1d0717;
    --maple: #f2b01e;
    --maple-soft: #ffd76a;
    --maple-ink: #7f4d00;
    --polo: #445781;
    --polo-deep: #2c3a5e;
    --polo-night: #1f2a47;
    --polo-pale: #e4e8f1;
    --on-dark: #fbf3ea;
    --on-dark-soft: #e6d3dd;
    --radius: 22px;
    --radius-s: 12px;
    --wrap: 1180px;
    --display: "Epilogue", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --text: "Radio Canada", "Segoe UI", system-ui, sans-serif;
    --shadow: 0 18px 50px -24px rgba(42, 11, 34, .45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--maple); outline-offset: 3px; border-radius: 4px; }
.band-paper :focus-visible, .contact-card :focus-visible, .office :focus-visible { outline-color: var(--polo); }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--maple); color: var(--night); padding: .6em 1em; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.break { overflow-wrap: anywhere; }

/* ---------- buttons, labels ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .7em 1.35em; border-radius: 999px;
    font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
    text-decoration: none; border: 2px solid transparent; text-align: center;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-big { font-size: 1.1rem; min-height: 56px; padding-inline: 1.6em; }
.btn-maple { background: var(--maple); color: var(--night); box-shadow: 0 10px 30px -12px rgba(242, 176, 30, .8); }
.btn-maple:hover { background: var(--maple-soft); }
.btn-ghost { color: var(--on-dark); border-color: rgba(251, 243, 234, .55); }
.btn-ghost:hover { background: rgba(251, 243, 234, .12); border-color: var(--on-dark); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); }

.kicker {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--display); font-weight: 700; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--polo); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker-light { color: var(--maple); }

.h-display { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; }
.h-section { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 60ch; }

.link-arrow { font-family: var(--display); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: baseline; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }
.link-light { color: var(--maple-soft); }

/* ---------- header ---------- */
.top {
    position: sticky; top: 0; z-index: 40;
    background: rgba(29, 7, 23, .93);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid rgba(242, 176, 30, .28);
}
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 10px; }
.brand {
    display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--night);
    margin-right: auto;
}
.brand img { width: clamp(176px, 46vw, 280px); height: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.035em; }
.brand-sub {
    font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .32em;
    text-transform: uppercase; color: var(--wine); margin-top: 4px;
}
.top-call {
    display: inline-flex; align-items: center; gap: .45em; order: 2;
    min-height: 44px; padding: .45em 1em; border-radius: 999px;
    background: var(--maple); color: var(--night); text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: .98rem; white-space: nowrap;
}
.top-call:hover { background: var(--maple-soft); }
.menu-btn {
    order: 3; display: inline-flex; align-items: center; gap: .55em;
    min-height: 44px; padding: .45em .9em; border-radius: 999px;
    background: transparent; color: #fff; border: 2px solid rgba(251, 243, 234, .4);
    font: 700 .95rem var(--display); cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .2s ease, background-color .2s ease;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav { order: 4; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
    color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .98rem;
    padding: .45em .75em; border-radius: 999px;
}
.nav a:hover { background: rgba(251, 243, 234, .12); color: #fff; }
.nav a[aria-current] { background: var(--on-dark); color: var(--night); }

.has-menu .nav { display: none; }
.has-menu.menu-open .nav {
    display: flex; flex-direction: column; gap: 2px; padding: 8px 0 14px;
}
.has-menu.menu-open .nav a { padding: .7em .9em; font-size: 1.08rem; }

@media (min-width: 1080px) {
    .top-row { flex-wrap: nowrap; }
    .nav, .has-menu .nav { display: flex; order: 2; flex-basis: auto; flex-wrap: nowrap; gap: 2px; }
    .nav a { font-size: .93rem; padding: .45em .7em; white-space: nowrap; }
    .top-call { order: 3; }
    .menu-btn, .has-menu .menu-btn { display: none; }
}
@media (max-width: 560px) {
    .top-row { flex-wrap: nowrap; gap: 8px; }
    .has-menu.menu-open .top-row { flex-wrap: wrap; }
    .menu-btn { padding: 0; width: 44px; justify-content: center; }
    .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 420px) {
    .brand img { width: 150px; }
    .brand-name { font-size: 1.22rem; }
    .brand-sub { font-size: .6rem; letter-spacing: .26em; }
    .top-call { font-size: .9rem; padding-inline: .8em; }
    .top-call svg { display: none; }
}

/* ---------- hero, with the lantern ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(242, 176, 30, .2), transparent 60%),
        radial-gradient(80% 90% at 10% 100%, rgba(68, 87, 129, .45), transparent 60%),
        linear-gradient(160deg, var(--wine) 0%, var(--night) 55%, var(--night-2) 100%);
    color: var(--on-dark);
    padding: clamp(28px, 5vw, 72px) 0 0;
}
.hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(242, 176, 30, .35);
}
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero-art { position: relative; z-index: 0; justify-self: end; width: min(40vw, 170px); margin-right: 4px; margin-bottom: -56px; }
@media (max-width: 899px) { .hero-label { max-width: calc(100% - min(40vw, 170px)); } }
.hero-text { position: relative; z-index: 1; }
.hero-label {
    font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    font-size: .8rem; color: var(--maple-soft); margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2.7rem, 1.3rem + 7vw, 6.4rem); font-weight: 800; line-height: .92;
    letter-spacing: -.045em; margin: 0 0 .35em; color: #fff;
}
.hero-title span { display: block; color: var(--maple); }
.hero-lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.45; max-width: 30ch; color: var(--on-dark); }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
    padding: .4em .9em; border-radius: 999px; font-size: .95rem;
    background: rgba(251, 243, 234, .1); border: 1px solid rgba(251, 243, 234, .25); color: var(--on-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-lights {
    list-style: none; padding: 0; margin-top: clamp(28px, 4vw, 56px); margin-bottom: 0;
    display: grid; gap: 1px; grid-template-columns: 1fr;
    border-top: 1px solid rgba(251, 243, 234, .18);
}
.hero-lights li a {
    display: flex; align-items: center; gap: .7em; flex-wrap: wrap;
    padding: 16px 0; color: var(--on-dark-soft); text-decoration: none; font-size: 1rem;
}
.hero-lights li + li a { border-top: 1px solid rgba(251, 243, 234, .12); }
.hero-lights strong { color: #fff; font-family: var(--display); font-size: 1.1rem; }
.hero-lights a:hover strong { color: var(--maple-soft); }
.light-dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--maple);
    box-shadow: 0 0 0 4px rgba(242, 176, 30, .2), 0 0 18px 4px rgba(242, 176, 30, .6);
}
@media (min-width: 760px) {
    .hero-lights { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-lights li + li a { border-top: 0; }
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.25fr .75fr; }
    .hero-art { order: 2; width: min(100%, 400px); justify-self: center; margin: 0; }
    .hero-text { order: 1; padding-bottom: 12px; }
}

.lantern { width: 100%; height: auto; overflow: visible; color: #f3e2c8; }
.lantern-beam { transform-origin: 200px 300px; transform-box: view-box; }
.lantern-glow { opacity: .55; transform-origin: 200px 300px; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
    .lantern-beam { animation: beam-swing 9s ease-in-out infinite; }
    .lantern-glow { animation: lamp-flash 9s ease-in-out infinite; }
    .lantern-lens { animation: lamp-on 1.4s ease-out both; }
    .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-text > :nth-child(2) { animation-delay: .08s; }
    .hero-text > :nth-child(3) { animation-delay: .16s; }
    .hero-text > :nth-child(4) { animation-delay: .24s; }
    .hero-text > :nth-child(5) { animation-delay: .32s; }
    .light-dot { animation: blink 3s ease-in-out infinite; }
    .hero-lights li + li .light-dot { animation-delay: 1.5s; }
}
@keyframes beam-swing {
    0%, 100% { transform: scaleX(1); opacity: .95; }
    22% { transform: scaleX(.03); opacity: .7; }
    28% { transform: scaleX(.03); opacity: .7; }
    50% { transform: scaleX(-1); opacity: .95; }
    72% { transform: scaleX(.03); opacity: .7; }
    78% { transform: scaleX(.03); opacity: .7; }
}
@keyframes lamp-flash {
    0%, 15%, 35%, 65%, 85%, 100% { opacity: .45; transform: scale(1); }
    25%, 75% { opacity: 1; transform: scale(1.35); }
}
@keyframes lamp-on { from { opacity: 0; filter: brightness(.4); } to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(242, 176, 30, .22), transparent 60%),
        linear-gradient(150deg, var(--wine) 0%, var(--night) 70%);
    color: var(--on-dark);
    padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 6vw, 72px);
}
.page-hero::before {
    /* a beam across the page head, from the corner where the lamp would be */
    content: ""; position: absolute; right: -10%; top: -40%; width: 120%; height: 160%;
    background: conic-gradient(from 238deg at 100% 0%, transparent 0deg, rgba(255, 215, 106, .16) 8deg, transparent 20deg);
    pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; color: #fff; max-width: 16ch; }
.page-hero .lead { color: var(--on-dark); margin-bottom: 0; }
.page-hero a { color: var(--maple-soft); font-weight: 600; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band-paper { background: var(--paper); }
.band-wine {
    background:
        radial-gradient(70% 80% at 0% 0%, rgba(242, 176, 30, .14), transparent 60%),
        linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
    color: var(--on-dark);
}
.band-wine a { color: var(--maple-soft); }
.band-polo {
    background: linear-gradient(170deg, var(--polo-deep) 0%, var(--polo-night) 100%);
    color: #eef1f8;
}
.band-polo .lead a { color: var(--maple-soft); font-weight: 700; }
.note { margin-top: 32px; }
.note p {
    margin: 0; padding: 18px 22px; border-left: 4px solid var(--maple); background: var(--sheet);
    border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: 70ch;
}

/* intro + bento */
.intro-grid, .prose-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .intro-grid, .prose-grid { grid-template-columns: 1fr 1fr; } }
.intro-text p:not(.lead):not(.kicker) { color: var(--muted); max-width: 58ch; }
.bento { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.bento li {
    position: relative; padding: 26px 24px 22px; border-radius: var(--radius);
    background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bento h3 { font-size: 1.3rem; margin-bottom: .35em; }
.bento p { margin: 0; color: var(--muted); }
.bento-no {
    display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1;
    letter-spacing: -.05em; color: var(--maple-ink); margin-bottom: 12px;
}
.bento .bento-a { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.bento .bento-a p { color: var(--on-dark-soft); }
.bento .bento-a .bento-no { color: var(--maple); }
.bento .bento-d { background: var(--polo-pale); border-color: #cfd6e6; }
@media (min-width: 600px) {
    .bento .bento-d { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; }
    .bento .bento-d .bento-no { grid-row: span 2; margin: 0; }
}
.bento .bento-d .bento-no { color: var(--polo); }
@media (min-width: 600px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .bento .bento-a { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
    .bento .bento-a .bento-no { font-size: 4.4rem; margin-bottom: auto; padding-bottom: 32px; }
}

/* doctors */
.doctors-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .doctors-grid { grid-template-columns: .8fr 1.2fr; } }
.doctors-photo { margin: 0; position: relative; max-width: 460px; }
.doctors-photo a { display: block; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.doctors-photo img { width: 100%; transition: transform .6s ease; }
.doctors-photo a:hover img { transform: scale(1.03); }
.doctors-photo figcaption { margin-top: 12px; font-size: .95rem; color: var(--on-dark-soft); }
.doctors-text h2 { color: #fff; }
.doctors-text p { max-width: 58ch; }
.big-figure { display: flex; align-items: center; gap: 18px; margin: 8px 0 24px; }
.big-figure-no {
    font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 2.5rem + 6vw, 7rem);
    line-height: .85; letter-spacing: -.06em; color: var(--maple);
}
.big-figure-label { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; max-width: 22ch; color: var(--on-dark); }
.tags { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: .35em .85em; border-radius: 999px; border: 1px solid rgba(255, 215, 106, .45); color: var(--on-dark); font-size: .95rem; }

/* reviews: a sideways strip on phones, three columns on a desktop */
.reviews .h-section { max-width: 26ch; }
.review-strip {
    list-style: none; margin: 32px 0 0; padding: 0 0 12px;
    display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.review {
    scroll-snap-align: start; display: flex; flex-direction: column;
    background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow);
}
.review:nth-child(2) { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.review:nth-child(2) .review-name { color: var(--maple-soft); }
.review:nth-child(2) .review-stars { color: var(--maple); }
.review-stars { color: var(--maple-ink); margin-bottom: 14px; }
.review-stars svg { display: block; }
.review blockquote { margin: 0 0 18px; flex: 1; }
.review blockquote p { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.review-name { margin: 0; font-family: var(--display); font-weight: 700; color: var(--wine); }
@media (min-width: 960px) {
    .review-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
    .review:nth-child(2) { margin-top: 24px; margin-bottom: -24px; }
}

/* offices with hours */
.offices-band .h-section { color: #fff; }
.office-pair { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 820px) { .office-pair { grid-template-columns: 1fr 1fr; gap: 24px; } }
.office {
    background: var(--sheet); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55); position: relative; overflow: hidden;
}
.office::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 176, 30, .35), transparent 65%);
}
.office-pair-light .office { border: 1px solid var(--line); box-shadow: var(--shadow); }
.office-kicker { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--polo); margin: 0 0 .2rem; }
.office-name { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin: 0 0 .3em; color: var(--night); }
.office-address { font-style: normal; font-size: 1.1rem; margin-bottom: 12px; }
.office-lines { list-style: none; padding: 0; margin: 0 0 18px; }
.office-lines li span { display: inline-block; min-width: 3.6em; color: var(--muted); }
.office-lines a { font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 16px; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: .95rem; padding-bottom: 8px; color: var(--wine); }
.hours th, .hours td { padding: 9px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours th { font-weight: 700; width: 5.6em; white-space: nowrap; }
.hours abbr { text-decoration: none; }
.hours .is-closed td, .hours .is-closed th { color: var(--muted); }
.hours .is-today th, .hours .is-today td { background: #fff3d1; }
.hours .is-today th { border-radius: 8px 0 0 8px; }
.hours .is-today td { border-radius: 0 8px 8px 0; font-weight: 700; }
.today-tag {
    display: inline-block; margin-left: 6px; padding: 0 .45em; border-radius: 6px; font-size: .72rem;
    background: var(--wine); color: #fff; vertical-align: 2px;
}
.office-map { margin: 0; }
.office-map a { font-family: var(--display); font-weight: 700; }

/* next steps */
.step-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 820px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-grid li {
    counter-increment: step; position: relative; padding: 70px 24px 24px;
    border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.step-grid li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 20px;
    font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--maple-ink);
}
.step-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-grid h3 { font-size: 1.35rem; }
.step-grid h3 a { color: var(--night); text-decoration: none; }
.step-grid h3 a::after { content: " →"; color: var(--wine); }
.step-grid h3 a:hover { text-decoration: underline; }
.step-grid p { margin: 0; color: var(--muted); }

/* call band */
.callband {
    background:
        radial-gradient(40% 140% at 100% 50%, rgba(255, 215, 106, .35), transparent 70%),
        var(--maple);
    color: var(--night); padding: clamp(40px, 6vw, 72px) 0;
}
.callband-row { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .callband-row { grid-template-columns: 1.2fr 1fr; } .callband-actions { justify-content: flex-end; } }
.callband h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; margin-bottom: .3em; }
.callband p { margin: 0; max-width: 52ch; font-size: 1.08rem; }
.callband-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.callband .btn-maple { background: var(--night); color: #fff; box-shadow: none; }
.callband .btn-maple:hover { background: var(--wine); }
.callband .btn-ghost { color: var(--night); border-color: var(--night); }
.callband .btn-ghost:hover { background: rgba(42, 11, 34, .08); }
.callband :focus-visible { outline-color: var(--night); }

/* payment */
.pay-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
    .pay-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
    .pay-insurance { grid-row: span 2; }
}
.pay {
    background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
}
.pay h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; color: var(--night); }
.pay-no { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: var(--maple-ink); margin-bottom: .6rem; }
.pay-insurance { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.pay-insurance h2 { color: #fff; }
.pay-insurance .pay-no { color: var(--maple); }
.insurers { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 10px; }
.insurers li {
    font-family: var(--display); font-weight: 700; padding: .55em 1em; border-radius: 12px;
    background: rgba(251, 243, 234, .1); border: 1px solid rgba(255, 215, 106, .45); color: #fff;
}
.pay-note { color: var(--on-dark-soft); margin: 0; }

/* forms */
.forms-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .forms-grid { grid-template-columns: 1fr 1fr; } }
.form-card {
    display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 20px; align-items: start;
    background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow);
}
.form-preview { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transform: rotate(-2deg); transition: transform .25s ease; }
.form-preview:hover { transform: rotate(0) scale(1.03); }
.form-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--night); }
.form-body p { color: var(--muted); }
.form-body .btn { white-space: normal; }
@media (max-width: 520px) { .form-card { grid-template-columns: 1fr; } .form-preview { max-width: 180px; } }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s); }
.faq[open] { border-color: var(--wine); box-shadow: var(--shadow); }
.faq summary {
    list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
    padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-no { color: var(--maple-ink); font-weight: 800; }
.faq-sign { width: 22px; height: 22px; position: relative; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: var(--wine); transition: transform .2s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq[open] .faq-sign::after { transform: rotate(0); }
.faq-a { padding: 0 22px 20px 22px; }
.faq-a p { margin: 0; max-width: 64ch; color: var(--ink); }

/* contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.contact-label { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--polo); margin-bottom: .2rem; }
.contact-phone { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -.03em; margin-bottom: 18px; }
.contact-phone a { color: var(--wine); text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--muted); }
.contact-list dd { margin: 0; min-width: 0; }
@media (max-width: 460px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }
.contact-more { margin: 16px 0 0; }
.contact-form-wrap .h-section { margin-bottom: .8em; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-s); border: 2px solid var(--line);
    background: var(--sheet); color: var(--ink); font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px rgba(90, 30, 68, .2); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form ::placeholder { color: #7a6871; }
.contact-form .btn { justify-self: start; }
.form-hint { font-size: .92rem; color: var(--muted); margin: 0; }
.contact-sent { padding: 16px 20px; border-radius: var(--radius-s); background: #e9f4e6; border: 1px solid #b8d6af; margin-bottom: 18px; }
.contact-sent strong { display: block; }

/* ---------- footer ---------- */
.foot { background: var(--night-2); color: var(--on-dark-soft); padding: clamp(48px, 7vw, 88px) 0 0; font-size: .98rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--maple-soft); }
.foot h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--maple); font-weight: 700; margin-bottom: 1em; }
.foot address { font-style: normal; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.foot-logo { width: min(100%, 300px); height: auto; margin-bottom: 18px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; color: #fff; margin-bottom: .5em; }
.foot-name span { color: var(--maple); display: block; }
.foot-docs { font-family: var(--display); font-weight: 600; color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(251, 243, 234, .14); }
.foot-nav a { text-decoration: none; font-weight: 600; }
.foot-nav a:hover { text-decoration: underline; }
.foot-bottom { padding: 20px 0 28px; font-size: .9rem; }
.foot-bottom p { margin: 0; }

/* the phone dock: call and email always at hand, as on the original */
.dock { display: none; }
@media (max-width: 759px) {
    body { padding-bottom: 76px; }
    .dock {
        display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(29, 7, 23, .94);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid rgba(242, 176, 30, .35);
    }
    .dock a {
        display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
        font-family: var(--display); font-weight: 700; text-decoration: none; font-size: .98rem; white-space: nowrap;
    }
    .dock-call { background: var(--maple); color: var(--night); }
    .dock-mail { color: #fff; border: 2px solid rgba(251, 243, 234, .5); }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; text-align: center;
    background: linear-gradient(160deg, var(--wine) 0%, var(--night) 60%); color: var(--on-dark); }
.not-found .brand { align-items: center; color: #fff; margin: 0 0 28px; }
.not-found .brand img { width: min(100%, 360px); }
.not-found .brand-sub { color: var(--maple); }
.not-found h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); font-weight: 800; color: #fff; }
.not-found p { max-width: 46ch; margin-inline: auto; }
.not-found a:not(.btn) { color: var(--maple-soft); }

/* ---------- scroll reveals ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .bento li, .review, .office, .step-grid li, .pay, .form-card, .faq {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- lightbox (from the website-build skill) ---------- */
:root { --lb-bg: rgba(29, 7, 23, .94); --lb-text: #fbf3ea; --lb-accent: #f2b01e; --lb-accent-soft: rgba(242, 176, 30, .25); }
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
