/* Woodstock Chiropractic: Mount Tom at dusk in the logo's own inks.
   Spruce night grounds for the white logo, logo teal, ridge sage and gear copper on snow.
   Cinzel (display) + Hanken Grotesk (text). Signature: the plumb-line spine of the home hero. */

@font-face {
    font-family: 'Cinzel';
    src: url('/fonts/cinzel.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('/fonts/hanken-grotesk.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('/fonts/hanken-grotesk-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --night: #122b2c;
    --night-2: #183a3b;
    --night-3: #21494a;
    --teal: #44848e;
    --teal-ink: #2b6570;
    --teal-light: #8fc3ca;
    --sage: #8d996e;
    --sage-pale: #e6e8dc;
    --sage-line: #c9cfb4;
    --copper: #cf7a5a;
    --copper-ink: #9a4526;
    --copper-light: #eaa88c;
    --rust: #8f3f22;
    --snow: #f5f3ee;
    --sheet: #ffffff;
    --ink: #172221;
    --muted: #4c5a58;
    --on-dark: #eef2ef;
    --on-dark-muted: #bfcdca;
    --radius: 22px;
    --radius-s: 12px;
    --display: 'Cinzel', 'Times New Roman', serif;
    --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1180px;
    --lb-bg: rgba(10, 26, 27, 0.96);
    --lb-accent: #eaa88c;
    --lb-accent-soft: rgba(234, 168, 140, 0.18);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--snow);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--copper-ink);
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.45rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin: 0 0 1em;
}

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

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

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--copper);
    color: var(--ink);
    border-radius: 8px;
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    font: 700 0.78rem/1.3 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper-ink);
    margin: 0 0 0.9rem;
}

/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1rem/1.2 var(--text);
    font-variant-numeric: lining-nums;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-copper {
    background: var(--copper);
    color: var(--ink);
    box-shadow: 0 10px 24px -12px rgba(143, 63, 34, 0.7);
}

.btn-copper:hover {
    background: var(--copper-light);
    color: var(--ink);
}

.btn-ghost {
    border-color: rgba(238, 242, 239, 0.55);
    color: var(--on-dark);
}

.btn-ghost:hover {
    border-color: var(--copper-light);
    color: var(--copper-light);
}

.btn-line {
    border-color: var(--teal-ink);
    color: var(--teal-ink);
}

.btn-line:hover {
    background: var(--teal-ink);
    color: var(--sheet);
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.link-arrow::after {
    content: ' →';
}

/* ---- header ---- */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 43, 44, 0.94);
    backdrop-filter: saturate(1.3) blur(12px);
    -webkit-backdrop-filter: saturate(1.3) blur(12px);
    color: var(--on-dark);
    border-bottom: 1px solid rgba(201, 207, 180, 0.18);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    min-height: 72px;
    padding-block: 10px;
}

.brand {
    flex: 0 0 auto;
    margin-right: auto;
}

.brand img {
    width: clamp(170px, 14vw + 60px, 230px);
}

.top-call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--on-dark);
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}

.top-call svg {
    color: var(--copper-light);
}

.top-call:hover {
    color: var(--copper-light);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

/* eight items, as the original's menu names the main services: a row of its own under the logo */
@media (min-width: 1080px) {
    .top-row {
        padding-bottom: 0;
    }

    .nav {
        flex-basis: 100%;
        padding: 6px 0 8px;
        border-top: 1px solid rgba(201, 207, 180, 0.18);
    }

    .nav .nav-book {
        margin-left: auto;
    }
}

.nav a {
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
    background: rgba(238, 242, 239, 0.1);
    color: var(--on-dark);
}

.nav a[aria-current] {
    background: var(--night-3);
    color: var(--sheet);
    box-shadow: inset 0 -2px 0 var(--teal-light);
}

.nav .nav-book {
    background: var(--copper);
    color: var(--ink);
    margin-left: 6px;
    padding-inline: 16px;
}

.nav .nav-book:hover {
    background: var(--copper-light);
    color: var(--ink);
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid rgba(238, 242, 239, 0.4);
    border-radius: 999px;
    background: transparent;
    color: var(--on-dark);
    font: 700 0.95rem/1 var(--text);
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease, background-color 0.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);
}

@media (max-width: 1079px) {
    .nav {
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .has-menu .menu-btn {
        display: inline-flex;
    }

    .has-menu .nav {
        display: none;
    }

    .has-menu.menu-open .nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 14px;
    }

    .has-menu.menu-open .nav a {
        padding: 12px 14px;
        font-size: 1.05rem;
    }

    .has-menu.menu-open .nav .nav-book {
        margin: 8px 0 0;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .top-call {
        order: 3;
        flex-basis: auto;
    }

    .brand img {
        width: 160px;
    }

    .top-row {
        gap: 8px 14px;
    }
}

/* ---- home hero: the plumb line ---- */
.hero {
    position: relative;
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(68, 132, 142, 0.38), transparent 70%),
        radial-gradient(45% 60% at 10% 100%, rgba(207, 122, 90, 0.2), transparent 70%),
        linear-gradient(170deg, var(--night-2), var(--night) 60%, #0d2122);
    color: var(--on-dark);
    overflow: clip;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 24px 40px;
    padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 56px);
}

.hero .eyebrow {
    color: var(--copper-light);
}

.hero-text {
    container-type: inline-size;
}

.hero h1 {
    font-size: min(4.4rem, 11.2cqi);
    font-weight: 700;
    line-height: 1.02;
    margin-bottom: 0.4em;
    color: var(--sheet);
}

.hero-quote {
    font: italic 500 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.35 var(--text);
    color: var(--copper-light);
    margin-bottom: 0.8em;
    max-width: 30ch;
}

.hero-lead {
    color: var(--on-dark-muted);
    max-width: 52ch;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}

.hero-where {
    font-size: 0.95rem;
    color: var(--on-dark-muted);
    letter-spacing: 0.02em;
}

.hero-art {
    margin: 0;
    justify-self: center;
    width: min(100%, 420px);
}

.hero-art figcaption {
    font-size: 0.92rem;
    color: var(--on-dark-muted);
    text-align: center;
    font-style: italic;
    margin-top: 6px;
}

.plumb {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.plumb .ridge {
    fill: none;
    stroke: var(--sage);
    stroke-width: 10;
    stroke-linecap: round;
    opacity: 0.75;
}

.plumb .head circle {
    fill: rgba(143, 195, 202, 0.08);
    stroke: var(--teal-light);
    stroke-width: 3;
}

.plumb .line line {
    stroke: var(--copper-light);
    stroke-width: 1.6;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
}

.plumb .line circle,
.plumb .bob {
    fill: var(--copper-light);
}

.plumb .line {
    transform-box: view-box;
    transform-origin: 200px 18px;
    animation: swing 2.6s cubic-bezier(0.3, 0.6, 0.3, 1) 0.1s both;
}

.plumb .v {
    transform: translate(var(--x), var(--y));
    animation: align 1.7s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d) both;
}

.plumb .g {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(var(--s));
    animation: turn 1.7s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d) both;
}

@keyframes align {
    from {
        transform: translate(calc(var(--x) + var(--dx)), var(--y));
    }
}

@keyframes turn {
    from {
        transform: rotate(-200deg) scale(var(--s));
    }
}

@keyframes swing {
    0% {
        transform: rotate(7deg);
    }
    35% {
        transform: rotate(-3.5deg);
    }
    65% {
        transform: rotate(1.4deg);
    }
    100% {
        transform: rotate(0);
    }
}

@media (max-width: 799px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-art {
        width: min(56%, 220px);
        order: -1;
        margin-bottom: -16px;
    }

    .hero-art figcaption {
        display: none;
    }
}

/* ---- welcome ---- */
.welcome {
    padding-block: clamp(56px, 8vw, 110px);
    background: var(--sheet);
}

.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.welcome-photo {
    margin: 0;
    position: sticky;
    top: 100px;
}

.welcome-photo img {
    border-radius: var(--radius) var(--radius) 120px var(--radius);
    box-shadow: 18px 18px 0 var(--sage-pale);
}

.welcome-photo figcaption {
    margin-top: 22px;
    font-family: var(--display);
    font-weight: 600;
    color: var(--teal-ink);
}

.welcome h2 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}

.hww {
    margin: 0 0 1.5em;
}

.hww > div {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--sage-line);
}

.hww dt {
    font: 700 1.5rem/1.3 var(--display);
    color: var(--copper-ink);
}

.hww dd {
    margin: 0;
}

.welcome-close {
    font-size: 1.15rem;
    font-weight: 500;
}

.signature {
    width: 260px;
    mix-blend-mode: multiply;
}

@media (max-width: 799px) {
    .welcome-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-photo {
        position: static;
        max-width: 420px;
    }

    .hww > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

/* ---- 3 big ways ---- */
.three {
    padding-block: clamp(56px, 8vw, 100px);
    background: var(--night);
    color: var(--on-dark);
}

.three h2 {
    color: var(--sheet);
    max-width: 22ch;
}

.small-cap {
    display: block;
    font: 600 0.95rem/1.4 var(--text);
    letter-spacing: 0.04em;
    color: var(--teal-light);
    margin-bottom: 0.7rem;
}

.three-list {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: way;
}

.three-list li {
    counter-increment: way;
    position: relative;
    padding: 96px 26px 24px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--night-3), var(--night-2));
    border: 1px solid rgba(143, 195, 202, 0.18);
}

.three-list li::before {
    content: counter(way);
    position: absolute;
    top: 6px;
    left: 22px;
    font: 700 5.6rem/1 var(--display);
    color: var(--copper-light);
}

.three-list h3 {
    color: var(--sheet);
    font-size: 1.4rem;
}

.three-list p {
    color: var(--on-dark-muted);
    margin: 0;
}

@media (max-width: 859px) {
    .three-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- specialties: bento ---- */
.specialties {
    padding-block: clamp(56px, 8vw, 110px);
}

.section-head {
    max-width: 640px;
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
}

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
}

.bento li {
    grid-column: span 2;
    display: flex;
}

.bento .bento-posture-correction {
    grid-column: span 4;
}

.bento a {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--sage-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento a:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -24px rgba(18, 43, 44, 0.55);
    color: var(--ink);
}

.bento-posture-correction a {
    background: linear-gradient(150deg, var(--night-3), var(--night));
    color: var(--on-dark);
    border-color: transparent;
}

.bento-posture-correction a:hover {
    color: var(--on-dark);
}

.bento-sports-injury a {
    background: #1d2a29;
    color: var(--sheet);
    border-color: transparent;
    min-height: 300px;
}

.bento-sports-injury a:hover {
    color: var(--sheet);
}

.bento-sports-injury img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bento-sports-injury a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 43, 44, 0.1) 20%, rgba(18, 43, 44, 0.92) 78%);
}

.bento-scoliosis a {
    background: var(--sage-pale);
}

.bento-laser-therapy a {
    background: var(--sheet);
}

.bento-lyme-treatment a {
    background: #f6e7df;
}

.bento-tag {
    align-self: flex-start;
    font: 700 0.72rem/1 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(23, 34, 33, 0.08);
    color: var(--ink);
}

.bento-posture-correction .bento-tag,
.bento-sports-injury .bento-tag {
    background: rgba(238, 242, 239, 0.16);
    color: var(--sheet);
}

.bento-name {
    font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--display);
}

.bento-sum {
    max-width: 44ch;
    font-size: 0.98rem;
}

.bento-posture-correction .bento-sum,
.bento-sports-injury .bento-sum {
    color: var(--on-dark);
}

.bento-arrow {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.bento a:hover .bento-arrow {
    transform: translateX(5px);
}

@media (max-width: 899px) {
    .bento {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .bento li {
        grid-column: span 1;
    }

    .bento .bento-posture-correction,
    .bento .bento-lyme-treatment {
        grid-column: span 2;
    }
}

@media (max-width: 599px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    .bento li,
    .bento .bento-posture-correction,
    .bento .bento-lyme-treatment {
        grid-column: span 1;
    }

    .bento a {
        min-height: 200px;
    }
}

/* ---- what to expect: a numbered trail on the ridge ---- */
.expect {
    padding-block: clamp(56px, 8vw, 100px);
    background: var(--sage-pale);
    position: relative;
}

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
    position: relative;
}

.trail::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    top: 27px;
    height: 4px;
    border-radius: 4px;
    background: var(--sage);
}

.trail li {
    counter-increment: step;
    position: relative;
    padding-top: 74px;
}

.trail li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--night);
    color: var(--copper-light);
    font: 700 1.5rem/1 var(--display);
    box-shadow: 0 0 0 6px var(--sage-pale);
}

.trail li:nth-child(odd)::before {
    background: var(--teal-ink);
    color: var(--sheet);
}

.trail h3 {
    font-size: 1.12rem;
}

.trail p {
    font-size: 0.96rem;
    margin: 0;
}

.expect-root {
    margin: 44px 0 0;
    max-width: 760px;
    font-size: 1.12rem;
    padding-left: 20px;
    border-left: 4px solid var(--copper);
}

@media (max-width: 999px) {
    .trail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }

    .trail::before {
        display: none;
    }
}

@media (max-width: 599px) {
    .trail {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 22px;
    }

    .trail::before {
        display: block;
        left: 27px;
        right: auto;
        top: 10px;
        bottom: 10px;
        width: 4px;
        height: auto;
    }

    .trail li {
        padding: 6px 0 0 80px;
        min-height: 58px;
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .trail li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        .three-list li,
        .bento li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
}

/* ---- fees band ---- */
.fees-band {
    padding-block: clamp(56px, 8vw, 100px);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(207, 122, 90, 0.35), transparent 60%),
        linear-gradient(150deg, var(--rust), #6d2e17);
    color: var(--sheet);
}

.fees-band .eyebrow {
    color: #f6d3c4;
}

.fees-band h2 {
    color: var(--sheet);
    font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem);
}

.fees-band a:not(.btn) {
    color: var(--sheet);
}

.fees-band a:not(.btn):hover {
    color: #f6d3c4;
}

.fees-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.fee-list {
    margin: 0 0 24px;
    padding: 10px 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.45);
}

.fee-list > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--sage-line);
}

.fee-list > div:last-child {
    border-bottom: 0;
}

.fee-list dt {
    flex: 1;
    min-width: 0;
}

.fee-list dd {
    margin: 0;
    font: 700 1.45rem/1 var(--display);
    color: var(--copper-ink);
    white-space: nowrap;
    font-variant-numeric: lining-nums;
}

.fee-list small {
    font: 600 0.8rem/1 var(--text);
    color: var(--muted);
}

@media (max-width: 799px) {
    .fees-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- visit ---- */
.visit {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    background: var(--night);
    color: var(--on-dark);
}

.visit-photo {
    min-height: 360px;
    position: relative;
}

.visit-photo a,
.visit-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.visit-photo img {
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.visit-card {
    padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px);
}

.visit-card h2 {
    color: var(--sheet);
}

.visit-card address {
    font-style: normal;
    margin-bottom: 1em;
    font-size: 1.1rem;
}

.visit-card a:not(.btn) {
    color: var(--teal-light);
}

.visit-card a:not(.btn):hover {
    color: var(--copper-light);
}

.visit-phone a {
    font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.4rem)/1.1 var(--display);
    text-decoration: none;
    font-variant-numeric: lining-nums;
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.visit .btn-line {
    border-color: var(--teal-light);
    color: var(--teal-light);
}

.visit .btn-line:hover {
    background: var(--teal-light);
    color: var(--night);
}

@media (max-width: 799px) {
    .visit {
        grid-template-columns: minmax(0, 1fr);
    }

    .visit-photo {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
}

/* ---- inner pages ---- */
.page-hero {
    position: relative;
    background:
        radial-gradient(50% 80% at 90% 10%, rgba(68, 132, 142, 0.4), transparent 70%),
        linear-gradient(170deg, var(--night-2), var(--night));
    color: var(--on-dark);
    padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 8vw, 110px);
    overflow: clip;
}

.page-hero h1 {
    color: var(--sheet);
    font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
    max-width: 18ch;
}

.page-hero .eyebrow {
    color: var(--copper-light);
}

.page-hero .lead {
    font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
    color: var(--on-dark-muted);
    max-width: 60ch;
    margin: 0;
}

.page-hero a {
    color: var(--teal-light);
}

.hero-ridge {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 60px;
}

.hero-ridge path {
    fill: none;
    stroke: var(--sage);
    stroke-width: 6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.crumbs {
    font-size: 0.92rem;
    margin-bottom: 22px;
    color: var(--on-dark-muted);
}

.crumbs a {
    color: var(--teal-light);
}

.crumbs a:hover {
    color: var(--copper-light);
}

.band {
    padding-block: clamp(48px, 7vw, 90px);
}

.band-sage {
    background: var(--sage-pale);
}

.band-dark {
    background: var(--night);
    color: var(--on-dark);
}

.band-dark h2,
.band-dark h3 {
    color: var(--sheet);
}

.band-dark a:not(.btn) {
    color: var(--teal-light);
}

.band-dark a:not(.btn):hover {
    color: var(--copper-light);
}

.band-dark .eyebrow {
    color: var(--copper-light);
}

.prose {
    max-width: 68ch;
}

.prose h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    margin-top: 1.2em;
}

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

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

.big-line {
    font: 600 clamp(1.3rem, 1rem + 1.3vw, 1.85rem)/1.3 var(--display);
    color: var(--copper-ink);
}

.band-dark .big-line {
    color: var(--copper-light);
}

.prose-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px clamp(28px, 5vw, 64px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 32px clamp(28px, 5vw, 64px);
    align-items: start;
}

.split-photo {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

@media (max-width: 799px) {
    .prose-cols,
    .split,
    .split-photo {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tick-grid {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.tick-grid li {
    position: relative;
    padding: 12px 14px 12px 44px;
    border-radius: var(--radius-s);
    background: var(--sheet);
    border: 1px solid var(--sage-line);
    font-weight: 600;
    line-height: 1.35;
}

.tick-grid li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sheet) 0 3px, var(--copper) 3.5px 9px);
}

.tick-grid-tight {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    margin: 14px 0 18px;
}

.dash {
    padding-left: 1.1em;
    margin: 0 0 1em;
}

.dash li {
    margin-bottom: 0.55em;
}

.dash li::marker {
    color: var(--copper-ink);
}

.badge-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--sage-pale);
    text-align: center;
    font-weight: 600;
}

.badge-card a {
    display: inline-block;
    margin-bottom: 14px;
}

.badge-card img {
    margin-inline: auto;
}

.badge-card p {
    margin: 0;
}

.wide-figure {
    margin: 0;
}

.wide-figure img {
    width: 100%;
    border-radius: var(--radius-s);
    background: var(--sheet);
}

.wide-figure figcaption {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--on-dark-muted);
}

.wide-figure-photo {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.wide-figure-photo img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: var(--radius);
}

.device {
    margin: 0;
    justify-self: center;
    text-align: center;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--sage-pale), var(--sheet));
    border: 1px solid var(--sage-line);
}

.device img {
    width: min(200px, 100%);
    margin-inline: auto;
}

.device figcaption,
.photo-card figcaption {
    margin-top: 12px;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
}

.photo-card {
    margin: 0;
}

.photo-card img {
    border-radius: var(--radius);
    box-shadow: 14px 14px 0 var(--sage-pale);
}

.benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.benefits li {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    border-top: 5px solid var(--teal);
    box-shadow: 0 18px 36px -28px rgba(18, 43, 44, 0.5);
}

.benefits li:nth-child(even) {
    border-top-color: var(--copper);
}

.benefits p {
    margin: 0;
}

.benefits-dark li {
    background: var(--night-2);
    color: var(--on-dark);
    box-shadow: none;
}

/* ---- call band and other services ---- */
.call-band {
    background: linear-gradient(120deg, var(--teal-ink), var(--night-2));
    color: var(--sheet);
    padding-block: clamp(40px, 6vw, 64px);
}

.call-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
}

.call-band h2 {
    margin: 0;
    color: var(--sheet);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
    max-width: 24ch;
}

.call-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.others {
    padding-block: 44px 64px;
}

.others h2 {
    font-size: 1.4rem;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--sage);
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.chips a:hover {
    background: var(--night);
    color: var(--sheet);
    border-color: var(--night);
}

/* ---- services overview ---- */
.definition {
    margin: 0;
    max-width: 640px;
}

.definition dt {
    font: 600 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.3 var(--display);
    color: var(--copper-light);
}

.definition dt span {
    font: italic 400 1rem/1 var(--text);
    color: var(--on-dark-muted);
}

.definition dd {
    margin: 8px 0 0;
    font-size: 1.15rem;
    color: var(--on-dark-muted);
}

.principles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.principles li {
    padding: 22px 22px 22px 26px;
    border-left: 4px solid var(--sage);
    background: var(--sheet);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-weight: 500;
}

.svc-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

@media (min-width: 1100px) {
    .svc-cards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.svc-cards a {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--sage-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-cards a:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -26px rgba(18, 43, 44, 0.55);
    color: var(--ink);
}

.svc-num {
    font: 700 2.6rem/1 var(--display);
    color: var(--copper-ink);
}

.svc-name {
    font: 700 1.45rem/1.15 var(--display);
}

/* ---- about ---- */
.about-hero {
    background: var(--night);
    color: var(--on-dark);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.about-photo {
    display: block;
}

.about-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: 50% 30%;
}

.about-head {
    position: relative;
    margin-top: clamp(-120px, -8vw, -40px);
    padding: clamp(24px, 4vw, 44px);
    background: var(--night-2);
    border-radius: var(--radius);
    max-width: 860px;
    margin-left: max(16px, (100% - var(--wrap)) / 2);
}

.about-head .eyebrow {
    color: var(--copper-light);
}

.about-head h1 {
    color: var(--sheet);
    font-size: clamp(2.2rem, 1.3rem + 4vw, 4.2rem);
}

.twain {
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid var(--copper-light);
}

.twain p {
    font: italic 500 clamp(1.1rem, 1rem + 0.6vw, 1.4rem)/1.4 var(--text);
    margin: 0 0 6px;
}

.twain footer {
    color: var(--on-dark-muted);
}

.twain footer::before {
    content: '– ';
}

.palmer {
    margin: 0 0 24px;
}

.palmer img {
    width: min(420px, 100%);
    border-radius: 8px;
}

.palmer figcaption {
    margin-top: 10px;
    font-weight: 700;
    color: var(--teal-ink);
}

.technique-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.technique-grid article {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--night-2);
    border: 1px solid rgba(143, 195, 202, 0.2);
}

@media (max-width: 699px) {
    .about-photo img {
        aspect-ratio: 4 / 3;
        object-position: 50% 20%;
    }

    .about-head {
        margin-top: -28px;
    }
}

@media (max-width: 799px) {
    .technique-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.contact-card,
.form-card {
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--sage-line);
}

.contact-card {
    background: var(--night);
    color: var(--on-dark);
    border-color: transparent;
}

.contact-card a {
    color: var(--teal-light);
}

.contact-card a:hover {
    color: var(--copper-light);
}

.big-phone-line {
    container-type: inline-size;
    margin-bottom: 22px;
}

.big-phone {
    font: 700 min(2.6rem, 12cqi)/1.1 var(--display);
    text-decoration: none;
    font-variant-numeric: lining-nums;
    white-space: nowrap;
}

.contact-card .big-phone {
    color: var(--copper-light);
}

.contact-list {
    margin: 0;
}

.contact-list > div {
    padding: 14px 0;
    border-top: 1px solid rgba(143, 195, 202, 0.2);
}

.contact-list dt {
    font: 700 0.78rem/1.3 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-light);
    margin-bottom: 4px;
}

.contact-list dd {
    margin: 0;
}

@media (max-width: 859px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-form > div {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #8d998f;
    border-radius: var(--radius-s);
    background: var(--snow);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal-ink);
    outline: 3px solid rgba(68, 132, 142, 0.3);
    outline-offset: 0;
}

.contact-form textarea::placeholder {
    color: #5f6b69;
}

.form-hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-form ul {
    color: #a3261b;
    padding-left: 1.1em;
    margin: 6px 0;
}

.contact-sent {
    padding: 16px 18px;
    border-radius: var(--radius-s);
    background: var(--sage-pale);
    border-left: 4px solid var(--teal);
    margin-bottom: 18px;
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */
.foot {
    position: relative;
    background: var(--night);
    color: var(--on-dark-muted);
    padding: 70px 0 28px;
    margin-top: 0;
}

.foot-ridge {
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    height: 44px;
}

.foot-ridge path {
    fill: none;
    stroke: var(--sage);
    stroke-width: 5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.7;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-top: 24px;
}

.foot-brand img {
    width: 260px;
    margin-bottom: 18px;
}

.foot h2 {
    font: 700 0.8rem/1.3 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-light);
    margin: 0 0 10px;
}

.foot h2 + * {
    margin-bottom: 22px;
}

.foot address {
    font-style: normal;
}

.foot a:not(.btn) {
    color: var(--on-dark);
}

.foot a:not(.btn):hover {
    color: var(--copper-light);
}

.foot-phone {
    font: 700 1.5rem/1.2 var(--display);
    text-decoration: none;
    font-variant-numeric: lining-nums;
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-links li {
    margin-bottom: 6px;
}

.foot-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(143, 195, 202, 0.18);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

@media (max-width: 859px) {
    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- 404 ---- */
.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: linear-gradient(170deg, var(--night-2), var(--night));
    color: var(--on-dark);
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    width: 280px;
    margin: 0 auto 28px;
}

.not-found h1 {
    color: var(--sheet);
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem);
}

.not-found a:not(.btn) {
    color: var(--copper-light);
    white-space: nowrap;
}

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

/* ---- 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;
    }
}
