@font-face {
    font-family: 'Gelasio';
    src: url('fonts/gelasio.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gelasio';
    src: url('fonts/gelasio-italic.woff2') format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* palette pulled from his own a-frame sign and the photos:
   sign board white, the teal of the painted trees, the gold
   certification box, lake slate, bark */
:root {
    --ground: #e7ece6;
    --board: #fbfcf9;
    --ink: #1f2620;
    --ink-soft: #4a554c;
    --teal: #2c6656;
    --teal-deep: #1f4d41;
    --gold: #e2a42c;
    --gold-soft: #f2d48f;
    --lake: #34484f;
    --lake-deep: #26363c;
    --rule: #c8d1c9;
    --wrap: 1180px;
    --gutter: clamp(20px, 4vw, 44px);
    --font: 'Gelasio', Georgia, 'Times New Roman', serif;
}

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

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

html.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--teal);
    text-underline-offset: 3px;
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h3 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--board);
    color: var(--ink);
    border: 2px solid var(--ink);
}

.skip-link:focus {
    top: 12px;
}

/* --- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-teal {
    background: var(--teal);
    color: #fff;
}

.btn-teal:hover {
    background: var(--teal-deep);
}

.btn-plain {
    background: transparent;
    border-color: var(--rule);
    color: var(--ink);
}

.btn-plain:hover {
    border-color: var(--ink);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: var(--gold-soft);
}

/* --- header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ground);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--rule);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    font-size: clamp(17px, 4.6vw, 21px);
    white-space: nowrap;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.site-nav .nav-call {
    color: var(--ink);
    font-weight: 700;
    border: 2px solid var(--ink);
    padding: 6px 14px;
    border-radius: 3px;
}

.site-nav .nav-call:hover {
    background: var(--ink);
    color: var(--board);
}

.nav-toggle {
    display: none;
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--ink);
    border-radius: 3px;
    font-weight: 700;
    background: transparent;
}

@media (max-width: 940px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--ground);
        border-bottom: 1px solid var(--rule);
        display: none;
    }

    .nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--rule);
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        border-bottom-color: var(--rule);
    }

    .site-nav .nav-call {
        margin-top: 16px;
        text-align: center;
        padding: 12px;
    }
}

/* --- hero: his sandwich board beside the view from the climb --- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(16px, 2.4vw, 28px) 0 clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    align-items: stretch;
}

.hero-board {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.board {
    position: relative;
    background: var(--board);
    border: 1px solid var(--rule);
    border-radius: 6px 6px 0 0;
    padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px) clamp(54px, 5vw, 64px);
    /* the arched cutout between the legs of the a-frame */
    -webkit-mask: radial-gradient(ellipse 34% 34px at 50% 100%, transparent 97%, #000 100%);
    mask: radial-gradient(ellipse 34% 34px at 50% 100%, transparent 97%, #000 100%);
    max-width: 520px;
}

.board-phone {
    display: inline-block;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.board-phone:hover {
    color: var(--teal);
}

.board-name {
    margin-top: 14px;
    font-size: clamp(2.6rem, 4.6vw, 3.9rem);
    line-height: 0.98;
    color: var(--teal-deep);
}

.board-name span {
    display: block;
    margin-top: 18px;
    padding: 10px 0;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: 0;
}

.board-certs {
    margin-top: 22px;
    background: var(--gold);
    border: 2px solid #b97f13;
    padding: 14px 18px;
    max-width: 380px;
}

.board-certs p {
    margin: 0 0 4px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.board-certs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.5;
}

.board-certs li {
    display: inline;
}

.board-certs li:nth-child(-n + 2)::after {
    content: ', ';
}

.board-certs li:last-child {
    display: block;
}

.board-line {
    margin: 22px 0 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.hero-copy {
    max-width: 520px;
}

.hero-copy p {
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-photo {
    margin: 0;
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 6px 0 0 6px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 50%;
    border-radius: 6px 0 0 6px;
}

.hero-photo figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 4px 10px;
    background: rgba(251, 252, 249, 0.92);
    font-size: 14px;
    font-style: italic;
    color: var(--ink);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    .hero-photo {
        order: -1;
        min-height: 0;
        border-radius: 0;
        margin-right: calc(var(--gutter) * -1);
        margin-left: calc(var(--gutter) * -1);
    }

    .hero-photo img {
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }

    .board {
        margin-top: -56px;
        max-width: none;
        z-index: 1;
    }

    .hero-photo figcaption {
        top: 14px;
        bottom: auto;
    }
}

/* --- sections --- */
.services,
.slab,
.about,
.area,
.faq {
    padding: clamp(72px, 9vw, 128px) 0;
}

.section-intro {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-intro p {
    margin-top: 18px;
    color: var(--ink-soft);
}

.services {
    border-top: 1px solid var(--rule);
}

.service-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 44px);
}

.service img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 22px;
}

.service h3 {
    margin-bottom: 10px;
}

.service > p {
    color: var(--ink-soft);
}

.service ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.service li {
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
}

.steps {
    margin-top: clamp(56px, 7vw, 88px);
    background: var(--board);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: clamp(24px, 3vw, 36px);
}

.steps h3 {
    margin-bottom: 18px;
}

.steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.steps li {
    counter-increment: step;
    font-size: 17px;
    color: var(--ink-soft);
    position: relative;
    padding-top: 46px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.steps strong {
    display: block;
    color: var(--ink);
}

@media (max-width: 900px) {
    .service-cols {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .service img {
        aspect-ratio: 3 / 2;
    }

    .steps ol {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .steps ol {
        grid-template-columns: 1fr;
    }
}

/* --- what's in your tree --- */
.slab {
    background: var(--board);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.slab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.slab-lede {
    margin-top: 16px;
    color: var(--ink-soft);
    max-width: 52ch;
}

.slab-controls {
    margin-top: 32px;
    display: grid;
    gap: 22px;
}

.field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-weight: 700;
}

.field output {
    font-size: 1.6rem;
    color: var(--teal-deep);
    white-space: nowrap;
}

.field-note {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.field input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    margin: 4px 0 0;
    background: transparent;
    cursor: pointer;
}

.field input[type='range']::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--teal) var(--fill, 50%), var(--rule) var(--fill, 50%));
}

.field input[type='range']::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--rule);
}

.field input[type='range']::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--teal);
}

.field input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--board);
    border: 3px solid var(--teal);
}

.field input[type='range']::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--board);
    border: 3px solid var(--teal);
}

.slab-out {
    margin: 30px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--ink);
}

.slab-out > div {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--rule);
}

.slab-out > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--rule);
}

.slab-out dt {
    font-size: 15px;
    color: var(--ink-soft);
}

.slab-out dd {
    margin: 2px 0 0;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.slab-out dd span {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-right: 4px;
    font-variant-numeric: tabular-nums;
}

.slab-note {
    margin: 18px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 60ch;
}

.slab-visual {
    margin: 0;
}

.slab-visual svg {
    width: 100%;
    height: auto;
    max-width: 520px;
    margin: 0 auto;
    display: block;
    overflow: visible;
}

.slab-visual figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 15px;
    font-style: italic;
    color: var(--ink-soft);
}

.log-bark {
    fill: #4d3a2b;
}

.log-face {
    fill: #e4bd88;
}

.log-rings path {
    fill: none;
    stroke: #b98550;
    stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
}

.log-rings path:nth-child(5n) {
    stroke: #99673a;
    stroke-width: 2;
}

.log-rings .pith {
    fill: #7d5430;
    stroke: none;
}

.log-top {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-dasharray: 6 6;
}

.log-cuts line {
    stroke: var(--teal-deep);
    stroke-width: 1.6;
}

@media (max-width: 900px) {
    .slab-grid {
        grid-template-columns: 1fr;
    }

    .slab-visual {
        order: -1;
    }

    .slab-visual svg {
        max-width: 340px;
    }
}

@media (max-width: 440px) {
    .slab-out {
        grid-template-columns: 1fr;
    }

    .slab-out > div:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }
}

/* --- firesmart --- */
.firesmart {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--lake);
    color: #f1f4f1;
    padding: clamp(88px, 12vw, 160px) 0;
}

.firesmart-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.firesmart::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(38, 54, 60, 0.95) 0%, rgba(38, 54, 60, 0.82) 50%, rgba(38, 54, 60, 0.5) 100%);
}

.firesmart-inner h2 {
    max-width: 16ch;
}

.firesmart-inner p {
    margin: 20px 0 30px;
    max-width: 58ch;
    color: #dbe3df;
}

/* --- about --- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.about-photos {
    position: relative;
    padding-bottom: 22%;
}

.about-main {
    width: 86%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.about-second {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 6px solid var(--ground);
}

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

.about-copy p {
    color: var(--ink-soft);
    max-width: 58ch;
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* --- area --- */
.area {
    border-top: 1px solid var(--rule);
}

.area-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.area-lede {
    margin-top: 16px;
    color: var(--ink-soft);
    max-width: 52ch;
}

.area-lists {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.area-lists h3 {
    font-size: 1.05rem;
    color: var(--teal-deep);
    margin-bottom: 8px;
}

.area-lists ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.area-lists li {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.5;
}

.area-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 860px) {
    .area-grid {
        grid-template-columns: 1fr;
    }

    .area-photo {
        aspect-ratio: 4 / 3;
        object-position: 50% 30%;
    }
}

@media (max-width: 440px) {
    .area-lists {
        grid-template-columns: 1fr;
    }
}

/* --- faq --- */
.faq {
    border-top: 1px solid var(--rule);
}

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

.faq-grid h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.faq-list {
    border-top: 2px solid var(--ink);
}

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

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 48px 20px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
}

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

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 400;
    color: var(--teal);
    transition: transform 0.3s ease;
}

.faq-item.is-open summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    color: var(--teal-deep);
}

.faq-answer {
    margin: 0;
    padding: 0 40px 24px 0;
    overflow: hidden;
    color: var(--ink-soft);
}

@media (max-width: 860px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* --- footer --- */
.site-footer {
    background: var(--lake-deep);
    color: #dbe3df;
    padding: clamp(72px, 9vw, 120px) 0 0;
}

.site-footer a {
    color: #fff;
}

.footer-title {
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.footer-sub {
    margin-top: 10px;
    font-size: 1.15rem;
}

.site-footer .footer-phone {
    display: inline-block;
    margin-top: 8px;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--gold);
    text-decoration: none;
}

.site-footer .footer-phone:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.footer-cols {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    font-size: 16px;
}

.footer-cols address {
    font-style: normal;
}

.footer-cols p {
    max-width: 56ch;
}

.footer-bottom {
    margin-top: 56px;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(219, 227, 223, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 15px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 700px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

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