/*
 * Canine Equation — shared public-site stylesheet.
 * Matches the supplied blue/orange identity, serif titles, and photographic strips.
 * Contents: fonts, tokens, base, navigation, banners, sections, methods,
 * registration, footer, mobile layouts, motion preferences, and printing.
 */

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/playfair-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/playfair-italic.ttf") format("truetype");
}

:root {
    --blue: #8fd3e8;
    --blue-pale: #d4ecf4;
    --blue-wash: #f3f9fb;
    --orange: #ed7112;
    --orange-ink: #ac4c06;
    --ink: #293b43;
    --muted: #56646b;
    --line: #dce6e9;
    --white: #ffffff;
    --body-font: Arial, Helvetica, sans-serif;
    --title-font: "Playfair Display", Georgia, "Times New Roman", serif;
    --container: 1160px;
    --gutter: clamp(22px, 5vw, 72px);
    --header-offset: 167px;
}

/* ---------- Base and reusable elements. ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset) + 20px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--title-font);
    font-weight: 400;
    line-height: 1.25;
}

h2 {
    font-size: clamp(30px, 3.4vw, 42px);
    font-style: italic;
    font-weight: 600;
}

h3 {
    font-size: 26px;
}

em {
    font-style: italic;
    font-weight: 600;
}

p {
    color: var(--muted);
}

p + p {
    margin-top: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
summary,
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

button,
summary {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--orange-ink);
    outline-offset: 5px;
}

::selection {
    color: var(--ink);
    background: var(--blue-pale);
}

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

.reading-width {
    max-width: 840px;
}

.centered {
    text-align: center;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--orange-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.section {
    padding-block: 86px;
}

.compact-section {
    padding-block: 60px;
}

.section-title {
    margin-bottom: 28px;
}

.section-divider {
    width: 48px;
    height: 3px;
    margin: 43px auto 0;
    background: var(--ink);
}

.soft-background {
    background: var(--blue-wash);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    transition: background 180ms ease, transform 180ms ease;
}

.button span {
    font-size: 18px;
    font-weight: 400;
}

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

.button-blue {
    color: #1d3943;
    background: var(--blue);
}

.button-blue:hover {
    background: #b5e1ee;
}

.button-orange {
    color: #29180a;
    background: var(--orange);
}

.button-orange:hover {
    background: #f79c56;
}

.button-white {
    border-color: var(--white);
    color: var(--ink);
    background: var(--white);
}

.button-white:hover {
    background: #f4fafc;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    margin-top: 22px;
    padding-block: 4px;
    border-bottom: 1px solid var(--orange);
    color: var(--orange-ink);
    font-size: 14px;
    font-weight: 600;
}

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

.small-copy {
    font-size: 12px;
    line-height: 1.8;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 12px 22px;
    background: var(--blue);
    transform: translateY(-170%);
}

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

/* ---------- Shared logo, sticky header, and accessible native dropdown. ---------- */
.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 108px;
    padding-block: 17px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    width: 400px;
    min-width: 0;
}

.brand-mark {
    width: 112px;
    flex: 0 0 auto;
}

.brand-wordmark {
    width: calc(100% - 120px);
}

.brand-tagline {
    color: var(--orange-ink);
    font-family: var(--title-font);
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
}

.site-navigation {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    min-height: 58px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-current {
    border-bottom-color: var(--orange);
    color: var(--orange-ink);
    background: #fbfcfc;
}

.services-dropdown {
    position: relative;
}

.services-dropdown > summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.dropdown-panel {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 50%;
    width: 225px;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 15px 32px rgba(41, 59, 67, 0.1);
    transform: translateX(-50%);
}

.dropdown-panel a {
    display: block;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--muted);
    font-size: 13px;
}

.dropdown-panel a:hover,
.dropdown-panel a[aria-current="page"] {
    color: var(--orange-ink);
    background: var(--blue-wash);
}

.menu-toggle {
    display: none;
}

/* ---------- Full-width photographic banners. ---------- */
.photo-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    isolation: isolate;
    text-align: center;
}

.banner-image,
.banner-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-image {
    object-fit: cover;
    object-position: center 48%;
}

.banner-shade {
    background: rgba(13, 31, 34, 0.42);
}

.banner-content {
    padding-block: 64px;
}

.photo-banner .eyebrow {
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.photo-banner h1 {
    color: var(--blue-pale);
    font-size: clamp(38px, 4.4vw, 62px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.banner-subtitle {
    margin-top: 20px;
    color: var(--white);
    font-size: 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.home-banner {
    min-height: 550px;
}

.home-banner .banner-shade {
    background: linear-gradient(0deg, rgba(12, 27, 30, 0.44), rgba(12, 27, 30, 0.2));
}

.home-banner h1 {
    color: var(--white);
    font-size: clamp(42px, 5.4vw, 76px);
}

.home-banner h1 em {
    color: var(--blue);
}

.home-banner .banner-subtitle {
    color: #ffbe8c;
    font-family: var(--title-font);
    font-size: 25px;
    font-style: italic;
    font-weight: 600;
}

.home-banner .button {
    margin-top: 30px;
}

.about-banner h1,
.contact-banner h1 {
    font-size: clamp(34px, 3.7vw, 53px);
}

/* ---------- Home introduction, equation motif, feature strip, and pillars. ---------- */
.intro-section .reading-width p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.9;
}

.equation-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 30px;
    margin-top: 43px;
    color: var(--muted);
    font-family: var(--title-font);
    font-size: 21px;
}

.equation-line b {
    color: var(--orange);
    font-family: var(--body-font);
    font-size: 22px;
    font-weight: 400;
}

.equation-answer {
    padding-bottom: 5px;
    border-bottom: 2px solid var(--orange);
    color: var(--ink);
    font-style: italic;
    font-weight: 600;
}

.feature-band {
    padding-block: 60px;
    background: var(--blue-pale);
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;
}

.framed-photo {
    padding: 10px;
    border: 2px solid var(--white);
}

.framed-photo img {
    width: 100%;
    height: 370px;
    object-fit: cover;
}

.feature-copy h2 {
    margin-bottom: 24px;
    font-style: normal;
    font-weight: 400;
}

.feature-copy .button {
    margin-top: 25px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.pillars article + article {
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.pillar-number {
    display: block;
    margin-bottom: 16px;
    color: #367f96;
    font-family: var(--title-font);
    font-size: 30px;
    font-style: italic;
    font-weight: 600;
}

.pillars h3 {
    margin-bottom: 18px;
    font-style: italic;
    font-weight: 600;
}

.pillars p {
    font-size: 14px;
}

/* ---------- Alternating photo/text rows used throughout the references. ---------- */
.split-section {
    padding-block: 40px;
}

.split-section:last-of-type {
    padding-bottom: 80px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 85px);
}

.split-photo {
    align-self: stretch;
}

.split-photo img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    max-height: 710px;
    object-fit: cover;
    object-position: center;
}

.split-copy {
    padding-block: 36px;
}

.split-copy h2 {
    margin-bottom: 30px;
}

.split-copy p {
    font-size: 15px;
    line-height: 1.85;
}

.split-copy .button {
    margin-top: 28px;
}

.split-reverse .split-photo {
    grid-column: 2;
    grid-row: 1;
}

.split-reverse .split-copy {
    grid-column: 1;
    grid-row: 1;
}

.photo-callout {
    padding-block: 90px;
    color: var(--white);
    background: linear-gradient(rgba(22, 37, 40, 0.64), rgba(22, 37, 40, 0.64)), url("../images/shepherd.jpg") center 43% / cover no-repeat;
}

.photo-callout .eyebrow {
    color: var(--blue-pale);
}

.photo-callout h2 {
    margin-bottom: 20px;
    color: var(--blue-pale);
    font-size: clamp(32px, 4vw, 48px);
}

.photo-callout p:not(.eyebrow) {
    color: var(--white);
}

.photo-callout .button {
    margin-top: 28px;
}

.closing-section {
    margin-top: 55px;
    padding-block: 62px;
    background: var(--blue-pale);
}

.closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.closing-inner h2 {
    max-width: 770px;
    font-size: clamp(28px, 3vw, 37px);
}

.closing-inner p:not(.eyebrow) {
    margin-top: 15px;
    font-size: 14px;
}

.closing-inner .button {
    flex: 0 0 auto;
}

/* ---------- Service information and the prices shown in the supplied recordings. ---------- */
.evaluation-section {
    margin-bottom: 50px;
    padding-block: 58px;
    background: var(--blue-wash);
}

.evaluation-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 75px;
    align-items: center;
}

.evaluation-layout h2 {
    margin-bottom: 25px;
}

.price-panel {
    padding: 30px 34px;
    border: 1px solid var(--line);
    background: var(--white);
}

.price-panel h3 {
    font-size: 25px;
}

.price-panel .button {
    margin-top: 20px;
}

.price-list {
    margin-block: 26px;
    font-size: 14px;
}

.price-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    padding-block: 11px;
    border-bottom: 1px solid var(--line);
}

.price-list dt {
    color: var(--muted);
}

.price-list dd {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.service-price {
    margin-top: 28px;
}

.service-price > span {
    color: var(--orange-ink);
    font-family: var(--title-font);
    font-size: 31px;
}

.simple-list {
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.service-note {
    margin-block: 40px;
    padding: 22px 28px;
    border-left: 3px solid var(--orange);
    background: var(--blue-wash);
    font-size: 13px;
}

/* ---------- Long-form Our Methods page and sticky table of contents. ---------- */
.methods-introduction {
    padding-bottom: 62px;
}

.methods-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 80px;
    padding-bottom: 30px;
}

.methods-sidebar {
    position: sticky;
    top: calc(var(--header-offset) + 25px);
}

.contents-menu {
    padding: 21px 0;
    border-top: 2px solid var(--orange);
}

.contents-menu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    font-family: var(--title-font);
    font-size: 20px;
    list-style: none;
}

.contents-menu nav {
    display: grid;
    gap: 3px;
}

.contents-menu nav a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding-block: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.contents-menu nav a span {
    color: var(--orange-ink);
    font-size: 10px;
}

.contents-menu nav a:hover,
.contents-menu nav a[aria-current="location"] {
    color: var(--orange-ink);
}

.method-chapter {
    padding-block: 10px 47px;
}

.method-chapter + .method-chapter {
    padding-top: 43px;
    border-top: 1px solid var(--line);
}

.method-chapter h2 {
    margin-bottom: 21px;
    font-size: 34px;
}

.method-chapter .chapter-lead {
    margin-bottom: 23px;
    color: #357890;
    font-family: var(--title-font);
    font-size: 21px;
    line-height: 1.55;
}

.method-chapter p:not(.eyebrow, .chapter-lead) {
    font-size: 16px;
    line-height: 1.9;
}

.article-photo {
    margin-block: 5px 48px;
}

.article-photo img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-photo figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    font-style: italic;
}

.faq {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    position: relative;
    padding: 20px 35px 20px 0;
    font-family: var(--title-font);
    font-size: 20px;
    list-style: none;
}

.faq summary::after {
    position: absolute;
    top: 19px;
    right: 5px;
    color: var(--orange-ink);
    content: "+";
    font-family: var(--body-font);
    font-weight: 400;
}

.faq[open] summary::after {
    content: "−";
}

.faq p {
    padding: 0 0 23px;
}

/* ---------- Contact and optional owner-supplied registration forms. ---------- */
.contact-email {
    display: inline-block;
    margin-top: 27px;
    margin-bottom: 15px;
    color: var(--orange-ink);
    font-size: 21px;
    text-decoration: underline;
    text-underline-offset: 6px;
    overflow-wrap: anywhere;
}

.registration-layout {
    max-width: 940px;
}

.registration-intro {
    max-width: 750px;
    margin: 0 auto 40px;
}

.registration-option {
    margin-top: 17px;
    border: 1px solid var(--line);
    background: var(--white);
}

.registration-option > summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 23px 28px;
    list-style: none;
}

.registration-option > summary > span:first-child {
    color: var(--orange-ink);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.registration-option > summary strong {
    font-family: var(--title-font);
    font-size: 25px;
    font-weight: 400;
}

.summary-arrow {
    margin-left: auto;
    color: #397f94;
    font-size: 24px;
    transition: transform 180ms ease;
}

.registration-option[open] .summary-arrow {
    transform: rotate(45deg);
}

.registration-content {
    padding: 0 28px 30px;
}

.registration-fallback {
    padding: 30px;
    background: var(--blue-wash);
}

.registration-fallback h3 {
    margin-bottom: 18px;
}

.registration-fallback p {
    max-width: 670px;
    font-size: 15px;
}

.registration-fallback .button {
    margin-top: 26px;
}

.registration-frame {
    display: block;
    width: 100%;
    height: 820px;
    border: 0;
    background: var(--blue-wash);
}

.form-external-link {
    display: inline-block;
    min-height: 44px;
    margin-top: 12px;
    padding-block: 10px;
    color: var(--orange-ink);
    font-size: 13px;
    text-decoration: underline;
}

.social-text-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 25px;
}

.social-text-links a {
    min-height: 44px;
    padding-block: 8px;
    border-bottom: 1px solid var(--orange);
    color: var(--orange-ink);
    font-size: 14px;
}

/* ---------- Footer and optional editor preview indicator. ---------- */
.site-footer {
    padding-top: 55px;
    padding-bottom: 25px;
    background: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: 55px;
    padding-bottom: 35px;
}

.footer-brand {
    color: #377a8f;
    font-family: var(--title-font);
    font-size: 26px;
}

.footer-main p {
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    min-height: 38px;
    padding-block: 6px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--orange-ink);
}

.footer-contact {
    text-align: right;
}

.footer-contact .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
}

.footer-contact a {
    display: inline-block;
    min-height: 38px;
    padding-block: 5px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.social-links img {
    width: 26px;
    height: 26px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    font-size: 10px;
}

.back-to-top {
    position: fixed;
    z-index: 15;
    right: 23px;
    bottom: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    font-size: 21px;
}

.preview-notice {
    padding: 11px 20px;
    color: #ffffff;
    background: #253847;
    font-size: 12px;
    text-align: center;
}

.preview-notice a {
    margin-left: 12px;
    color: #b7e6f4;
    text-decoration: underline;
}

/* ---------- Tablet adjustments. ---------- */
@media (max-width: 1000px) {
    .brand {
        width: 345px;
    }

    .brand-mark {
        width: 92px;
    }

    .brand-wordmark {
        width: calc(100% - 100px);
    }

    .brand-tagline {
        font-size: 14px;
    }

    .split-layout,
    .feature-layout {
        gap: 38px;
    }

    .split-copy {
        padding-block: 20px;
    }

    .split-copy h2 {
        font-size: 32px;
    }

    .evaluation-layout {
        gap: 35px;
    }

    .methods-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 42px;
    }

    .method-chapter h2 {
        font-size: 29px;
    }

    .footer-main {
        gap: 28px;
    }
}

/* ---------- Mobile: one column, reachable navigation, no fixed-width content. ---------- */
@media (max-width: 740px) {
    :root {
        --gutter: 22px;
        --header-offset: 92px;
    }

    /* Without scripting, leave the full navigation in normal document flow. */
    html:not(.js) {
        --header-offset: 0px;
    }

    html:not(.js) .site-header {
        position: static;
    }

    .brand-row {
        min-height: 90px;
        gap: 16px;
        padding-block: 15px;
    }

    .brand {
        width: min(290px, calc(100% - 60px));
        gap: 6px;
    }

    .brand-mark {
        width: 75px;
    }

    .brand-wordmark {
        width: calc(100% - 81px);
    }

    .brand-tagline {
        display: none;
    }

    .js .menu-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 3px;
        background: var(--white);
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        position: absolute;
        width: 18px;
        height: 2px;
        background: var(--ink);
        content: "";
    }

    .menu-icon::before {
        top: -6px;
        left: 0;
    }

    .menu-icon::after {
        top: 6px;
        left: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-navigation {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-bottom: 15px;
    }

    .js .site-navigation {
        display: none;
    }

    .js .site-navigation.is-open {
        display: grid;
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
    }

    .nav-link {
        justify-content: flex-start;
        min-height: 47px;
        padding: 12px 16px;
        text-align: left;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        border: 0;
        border-left: 2px solid var(--blue);
        box-shadow: none;
        transform: none;
    }

    .section {
        padding-block: 62px;
    }

    .compact-section {
        padding-block: 44px;
    }

    .photo-banner {
        min-height: 260px;
    }

    .photo-banner .eyebrow {
        font-size: 9px;
    }

    .photo-banner h1 {
        font-size: 40px;
    }

    .home-banner {
        min-height: 510px;
    }

    .home-banner h1 {
        max-width: 380px;
        margin-inline: auto;
        font-size: clamp(42px, 9vw, 62px);
        line-height: 1.3;
    }

    .home-banner .banner-image {
        object-position: 55% center;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .about-banner h1,
    .contact-banner h1 {
        font-size: 36px;
    }

    .intro-section .reading-width p:not(.eyebrow) {
        font-size: 15px;
    }

    .equation-line {
        gap: 12px 15px;
        font-size: 18px;
    }

    .feature-layout,
    .split-layout,
    .evaluation-layout,
    .pillars,
    .methods-layout,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .feature-band {
        padding-block: 42px;
    }

    .feature-layout {
        gap: 36px;
    }

    .framed-photo img {
        height: 300px;
    }

    .feature-copy {
        text-align: center;
    }

    .pillars {
        gap: 30px;
        margin-top: 34px;
    }

    .pillars article + article {
        padding-top: 27px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .pillars p {
        max-width: 400px;
        margin-inline: auto;
    }

    .split-section {
        padding-block: 25px;
    }

    .split-layout {
        gap: 12px;
    }

    .split-photo img {
        height: 390px;
        min-height: 0;
        max-height: none;
    }

    .split-copy {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .split-copy h2 {
        margin-bottom: 22px;
    }

    .split-reverse .split-photo,
    .split-reverse .split-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .closing-section {
        margin-top: 35px;
        padding-block: 45px;
    }

    .closing-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .price-panel {
        padding: 25px;
    }

    .methods-layout {
        gap: 25px;
    }

    .methods-sidebar {
        position: static;
    }

    .contents-menu {
        padding: 16px 20px;
        border: 1px solid var(--line);
        border-top: 2px solid var(--orange);
        background: var(--blue-wash);
    }

    .method-chapter {
        padding-bottom: 35px;
    }

    .method-chapter p:not(.eyebrow, .chapter-lead) {
        font-size: 15px;
    }

    .method-chapter h2 {
        font-size: 30px;
    }

    .article-photo {
        margin-bottom: 35px;
    }

    .article-photo img {
        min-height: 200px;
    }

    .registration-option > summary {
        gap: 13px;
        padding: 20px;
    }

    .registration-option > summary strong {
        font-size: 22px;
    }

    .registration-content {
        padding: 0 15px 18px;
    }

    .registration-fallback {
        padding: 23px;
    }

    .registration-frame {
        height: 1050px;
    }

    .footer-main {
        gap: 30px;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .back-to-top {
        right: 12px;
        bottom: 12px;
    }
}

/* A smaller logo and type keep the narrowest supported phones within the viewport. */
@media (max-width: 380px) {
    .brand-mark {
        width: 60px;
    }

    .brand-wordmark {
        width: calc(100% - 66px);
    }

    .home-banner h1 {
        font-size: 41px;
    }

    .photo-banner h1 {
        overflow-wrap: anywhere;
    }

    .price-list {
        font-size: 12px;
    }

    .registration-fallback {
        padding: 18px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {
    .site-header,
    .photo-banner,
    .methods-sidebar,
    .back-to-top,
    .closing-section,
    .site-footer {
        display: none;
    }

    .methods-layout,
    .split-layout,
    .evaluation-layout {
        display: block;
    }

    .container {
        width: 100%;
    }

    .section,
    .method-chapter {
        padding-block: 20px;
    }

    .method-chapter,
    .price-panel {
        break-inside: avoid;
    }
}
