:root {
    color: #fff;
    background: #162d27;
    font: 100%/1.5 system-ui, sans-serif;
    --muted: #4a6064;
    --accent: #205446;
    --heading: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body, h1, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #126f86; outline-offset: 4px; }
.shell { width: min(74rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; inset: .5rem auto auto .5rem; padding: .65rem; color: #172f37; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.scene { position: relative; }
.header { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 5rem; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.6rem/1 var(--heading); letter-spacing: -.055em; text-decoration: none; }
.brand img { padding: .12rem; border-radius: .4rem; background: #f0f5eb; }
.header nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.65rem); font-weight: 600; }
.header .sign-in { display: inline-block; padding: .55rem .85rem; border: 1px solid #ffffff85; border-radius: .35rem; text-decoration: none; }
.header .sign-in:hover { background: #ffffff24; }
.header > .brand:focus-visible, .header .sign-in:focus-visible, .services-menu summary:focus-visible { outline-color: #fff; }

.services-menu { position: relative; }
.services-menu summary { display: flex; align-items: center; gap: .55rem; padding: .55rem .35rem; cursor: pointer; list-style: none; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after { content: ''; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg); }
.services-menu[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.service-list { position: absolute; top: calc(100% + .55rem); inset-inline-end: 0; width: min(21rem, calc(100vw - 2rem)); max-height: calc(100svh - 5.5rem); overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: .45rem; border: 1px solid #d5e0dc; border-radius: .5rem; background: #f7faf6; color: #172f37; box-shadow: 0 .75rem 2rem #04130c55; }
.service + .service { border-top: 1px solid #d5e0dc; }
.service-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .22rem .65rem; padding: .7rem .75rem; border-radius: .25rem; text-decoration: none; overflow-wrap: anywhere; }
a.service-row:hover { background: #e4eee6; }
a.service-row:focus-visible { outline-offset: -2px; }
.service-name { font-weight: 650; }
.service-app { margin-inline-start: auto; }
.service-app, .service-description, .availability { font-size: .9rem; font-weight: 400; color: var(--muted); }
.service-description { flex-basis: 100%; }
.availability { flex-basis: 100%; color: var(--accent); }

.hero { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100dvh; isolation: isolate; overflow: hidden; overflow: clip; background: #162d27; }
.hero-copy { padding-block: 7rem 3.5rem; min-width: 0; }
h1 { max-width: min(13ch, 50%); font: 400 clamp(2.75rem, 5.8vw, 5.35rem)/1 var(--heading); letter-spacing: -.062em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-copy p { margin-top: 1.35rem; max-width: min(31ch, 44%); font-size: 1.07rem; color: #f0f5ee; }
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 56%; transform-origin: 55% 56%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d211ee8, #0d211ebd 29%, #0d211e30 56%, transparent 76%), linear-gradient(180deg, #071816d9, transparent 26%); }

@supports (animation-timeline: scroll(root block)) {
    @media (prefers-reduced-motion: no-preference) and (min-height: 34rem) {
        /* Reserve scroll distance for the image while the scene stays in view. */
        .scene-scroll::after { content: ''; display: block; height: 48svh; }
        .scene { position: sticky; top: 0; }
        .hero-art img {
            animation: woodland-approach 1ms linear both;
            animation-timeline: scroll(root block);
        }
    }
}

@keyframes woodland-approach {
    from { transform: scale(1); }
    to { transform: scale(2.25); }
}

@media (max-width: 45rem) {
    .shell { width: calc(100% - 2rem); }
    .services-menu { position: static; }
    .service-list { top: calc(100% - .2rem); }
    .hero { align-items: end; }
    .hero-copy { padding-block: max(7rem, 43svh) max(2.5rem, env(safe-area-inset-bottom)); }
    .hero-copy h1 { max-width: 13ch; }
    .hero-copy p { max-width: 31ch; }
    .hero-art::after { background: linear-gradient(0deg, #0d211efa, #0d211ec9 26%, transparent 63%), linear-gradient(180deg, #071816d9, transparent 25%); }
}

@media (max-width: 24rem) {
    .brand { gap: .25rem; font-size: 1.35rem; }
    .brand img { width: 2rem; height: auto; }
    .header .sign-in { padding-inline: .5rem; }
}
