/* Watermark Marine Construction: the lake from the drone, in the logo's own blue.
   Lake night grounds for the white crane-barge logo, logo blue #003896, the tan of pressure-treated
   dock lumber, on granite paper. Big Shoulders Display (display) + Public Sans (text).
   Signature: "the 250-foot line", a lakefront in section whose permit lines draw themselves. */

@font-face {
    font-family: 'Big Shoulders Display';
    src: url('/fonts/big-shoulders-display.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --night: #06182f;
    --lake: #0b2a4f;
    --lake-2: #123a68;
    --blue: #003896;
    --blue-2: #1f5fa8;
    --blue-light: #a9c6ff;
    --lumber: #dcbc7e;
    --lumber-2: #e8cf9c;
    --lumber-ink: #7a5520;
    --lumber-pale: #f4ead3;
    --granite: #f2f1ec;
    --granite-2: #e7e4db;
    --sheet: #ffffff;
    --ink: #0d1828;
    --muted: #4a5466;
    --line: #d8d4c8;
    --on-dark: #eef3fa;
    --on-dark-muted: #bccadf;
    --radius: 20px;
    --radius-s: 10px;
    --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1200px;
    --lb-bg: rgba(4, 14, 28, 0.96);
    --lb-accent: #dcbc7e;
    --lb-accent-soft: rgba(220, 188, 126, 0.2);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--granite);
    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(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.005em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
}

h4 {
    font-size: 1.3rem;
}

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: 12px;
    top: -60px;
    z-index: 100;
    background: var(--lumber);
    color: var(--night);
    padding: 10px 16px;
    border-radius: var(--radius-s);
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

.center {
    text-align: center;
}

.fine {
    font-size: 0.9rem;
    color: var(--muted);
}

.eyebrow {
    font: 700 0.8rem/1.2 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    flex: none;
}

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

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

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

.btn-lumber {
    background: var(--lumber);
    color: var(--night);
}

.btn-lumber:hover {
    background: var(--lumber-2);
}

.btn-ghost {
    border-color: rgba(238, 243, 250, 0.7);
    color: var(--on-dark);
}

.btn-ghost:hover {
    background: rgba(238, 243, 250, 0.12);
    border-color: var(--on-dark);
}

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

.btn-navy:hover {
    background: var(--lake-2);
}

button.btn {
    cursor: pointer;
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.2s;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

.link-out::after {
    content: ' ↗';
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 24, 47, 0.9);
    color: var(--on-dark);
    border-bottom: 1px solid rgba(169, 198, 255, 0.14);
}

@supports (backdrop-filter: blur(10px)) {
    .top {
        background: rgba(6, 24, 47, 0.86);
        backdrop-filter: blur(14px) saturate(1.3);
    }
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding-block: 10px;
}

.brand img {
    width: 120px;
    height: auto;
}

.top-calls {
    margin-left: auto;
    display: flex;
    gap: 6px 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-call {
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 6px 0;
}

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

.top-call-label {
    color: var(--on-dark-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

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

.nav {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    padding-bottom: 4px;
}

.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.2s, color 0.2s;
}

.nav a:hover {
    background: rgba(238, 243, 250, 0.1);
}

.nav a[aria-current] {
    background: #22344b;
    color: var(--lumber);
}

.nav a[aria-current='page'] {
    box-shadow: inset 0 -2px 0 var(--lumber);
}

.nav .nav-crew {
    margin-left: auto;
    border: 2px solid var(--lumber);
    color: var(--lumber);
}

.nav .nav-crew:hover {
    background: var(--lumber);
    color: var(--night);
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid rgba(238, 243, 250, 0.5);
    background: transparent;
    color: var(--on-dark);
    font: 700 1rem var(--text);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s;
}

.menu-bars {
    position: relative;
}

.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: 1099px) {
    .has-menu .nav {
        display: none;
    }

    .has-menu.menu-open .nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 0 14px;
    }

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

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

@media (max-width: 640px) {
    .top-row {
        gap: 8px 10px;
    }

    .menu-btn {
        padding: 8px 12px;
        gap: 8px;
    }

    .top-call-2 {
        display: none;
    }

    .top-call-label {
        display: none;
    }

    .brand img {
        width: 86px;
    }
}

@media (min-width: 1100px) {
    .menu-btn {
        display: none !important;
    }

    .top-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .brand {
        grid-row: span 2;
    }

    .brand img {
        width: 150px;
    }

    .top-calls {
        grid-column: 2 / 4;
    }

    .nav {
        grid-column: 2 / 4;
        justify-content: flex-end;
        padding-bottom: 0;
    }

    .nav .nav-crew {
        margin-left: 8px;
    }
}

/* ---- home hero: the original's own drone film ---- */

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(92svh, 820px);
    display: flex;
    align-items: flex-end;
    background: var(--night) url('/img/hero-poster.webp') center / cover no-repeat;
    color: var(--on-dark);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 24, 47, 0.55) 0%, rgba(6, 24, 47, 0.1) 30%, rgba(6, 24, 47, 0.55) 62%, rgba(6, 24, 47, 0.96) 100%),
        linear-gradient(90deg, rgba(6, 24, 47, 0.7) 0%, rgba(6, 24, 47, 0) 70%);
}

.hero-inner {
    position: relative;
    padding-block: 140px 56px;
}

.hero-title {
    font-size: clamp(3.6rem, 13vw, 9.6rem);
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 0.3em;
    display: flex;
    flex-direction: column;
    text-shadow: 0 4px 30px rgba(6, 24, 47, 0.5);
}

.hero-title > span:not(.visually-hidden) {
    display: block;
}

.hero-title > span:nth-child(3) {
    color: var(--blue-light);
    padding-left: 0.45em;
}

.hero-title > span:nth-child(4) {
    color: var(--lumber);
    padding-left: 0.9em;
}

.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 34ch;
    color: var(--on-dark);
    margin-bottom: 1.4em;
}

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

.video-toggle {
    position: absolute;
    right: 0;
    bottom: 56px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(238, 243, 250, 0.45);
    background: rgba(6, 24, 47, 0.5);
    color: var(--on-dark);
    font: 600 0.85rem var(--text);
    cursor: pointer;
}

.video-toggle[hidden] {
    display: none;
}

.video-toggle-icon {
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.video-toggle[aria-pressed='true'] .video-toggle-icon {
    border-right: 0;
    border-left: 10px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    width: 0;
    height: 0;
}

@media (max-width: 720px) {
    .hero-inner {
        padding-bottom: 84px;
    }

    .video-toggle {
        right: auto;
        left: 0;
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-title > span:not(.visually-hidden),
    .hero-lead,
    .hero-actions,
    .hero-eyebrow {
        animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-title > span:nth-child(3) {
        animation-delay: 0.12s;
    }

    .hero-title > span:nth-child(4) {
        animation-delay: 0.24s;
    }

    .hero-lead {
        animation-delay: 0.4s;
    }

    .hero-actions {
        animation-delay: 0.52s;
    }
}

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

/* ---- figures row ---- */

.figures {
    background: var(--night);
    color: var(--on-dark);
    padding-block: 8px 56px;
}

.figures-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border-top: 1px solid rgba(169, 198, 255, 0.2);
    padding-top: 32px;
}

.figures p {
    margin: 0;
}

.figures strong {
    display: block;
    font: 800 clamp(2.4rem, 5vw, 3.8rem)/0.95 var(--display);
    color: var(--lumber);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.figures span {
    color: var(--on-dark-muted);
    font-size: 0.96rem;
}

@media (max-width: 860px) {
    .figures-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
    }
}

/* ---- bands ---- */

.band {
    padding-block: clamp(56px, 8vw, 104px);
}

.band-tint {
    background: var(--granite-2);
}

.section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-head > p:not(.eyebrow) {
    font-size: 1.12rem;
    color: var(--muted);
}

.section-head-light > p:not(.eyebrow) {
    color: var(--on-dark-muted);
}

/* ---- bento of services ---- */

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

.tile a {
    position: relative;
    display: block;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--lake);
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 47, 0) 30%, rgba(6, 24, 47, 0.92) 100%);
}

.tile a:hover img {
    transform: scale(1.05);
}

.tile-text {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
    bottom: 20px;
}

.tile-name {
    display: block;
    font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display);
    margin-bottom: 6px;
}

.tile-name::after {
    content: ' →';
    color: var(--lumber);
}

.tile-sum {
    display: block;
    font-size: 0.95rem;
    color: #e4ebf5;
}

.tile-xl {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-xl .tile-name {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.tile-tall {
    grid-row: span 2;
}

.tile-plain a {
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.06) 46px 48px),
        linear-gradient(135deg, var(--blue) 0%, var(--lake) 100%);
}

.tile-plain a::after {
    display: none;
}

.bento .tile-plain {
    grid-column: span 2;
}

.tile-permits a {
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(6, 24, 47, 0.08) 46px 48px),
        linear-gradient(135deg, var(--lumber) 0%, var(--lumber-2) 100%);
    color: var(--night);
}

.tile-permits .tile-sum {
    color: var(--night);
}

.tile-permits .tile-name::after {
    color: var(--blue);
}

@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .tile-tall {
        grid-row: span 1;
    }

    .bento .tile-plain {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .tile-xl {
        grid-column: auto;
        grid-row: span 1;
        min-height: 260px;
    }

    .bento .tile-plain {
        grid-column: auto;
        grid-row: auto;
    }

    .bento .tile-plain a {
        min-height: 150px;
    }
}

/* ---- signature: the 250-foot line ---- */

.shore-band {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(31, 95, 168, 0.35), transparent 60%),
        linear-gradient(180deg, var(--night) 0%, var(--lake) 100%);
    color: var(--on-dark);
    padding-block: clamp(64px, 9vw, 120px);
}

.shore-band a:not(.btn) {
    color: var(--lumber);
}

.shore {
    margin: 0 0 28px;
    view-timeline-name: --shore;
}

.shore-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.sv-line {
    fill: none;
    stroke: var(--on-dark);
    stroke-width: 3;
    stroke-linecap: round;
}

.sv-surface {
    stroke: var(--blue-light);
    stroke-width: 2.5;
}

.sv-ripple {
    fill: none;
    stroke: rgba(169, 198, 255, 0.5);
    stroke-width: 2;
}

.sv-house path,
.sv-trees path {
    fill: none;
    stroke: var(--on-dark-muted);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.sv-deck {
    fill: var(--lumber);
}

.sv-posts {
    stroke: var(--lumber);
    stroke-width: 4;
    stroke-linecap: round;
}

.sv-boat path {
    fill: none;
    stroke: var(--on-dark);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.sv-boat path:first-child {
    fill: var(--on-dark);
}

.sv-dim {
    stroke: var(--lumber);
    stroke-width: 2.5;
    fill: none;
}

.sv-dim-3 .sv-bar,
.sv-dim-3 .sv-tick {
    stroke: var(--blue-light);
    stroke-dasharray: 8 6;
}

.sv-dim-3 .sv-drop,
.sv-ref {
    stroke: var(--blue-light);
    stroke-width: 2;
    stroke-dasharray: 4 5;
    fill: none;
}

.sv-dim text {
    fill: var(--lumber);
    stroke: none;
    font: 800 30px var(--display);
    letter-spacing: 0.02em;
}

.sv-num circle {
    fill: var(--lumber);
}

.sv-num-3 circle {
    fill: var(--blue-light);
}

.sv-num text {
    fill: var(--night);
    font: 800 22px var(--text);
}

@media (max-width: 640px) {
    .sv-num circle {
        r: 30px;
    }

    .sv-num text {
        font-size: 36px;
    }

    .sv-dim text {
        font-size: 40px;
    }
}

.shore-note {
    margin-top: 12px;
    color: var(--on-dark-muted);
    font-size: 0.9rem;
}

.shore-legend {
    list-style: none;
    counter-reset: shore;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px 22px;
}

.shore-legend li {
    counter-increment: shore;
    position: relative;
    padding-top: 46px;
    color: var(--on-dark-muted);
    font-size: 0.96rem;
}

.shore-legend li::before {
    content: counter(shore);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lumber);
    color: var(--night);
    font: 800 1rem/34px var(--text);
    text-align: center;
}

.shore-legend li:nth-child(3)::before {
    background: var(--blue-light);
}

.shore-legend strong {
    display: block;
    color: var(--on-dark);
    margin-bottom: 4px;
}

.shore-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Scroll-driven: the profile draws, the permit lines extend, the markers come up one by one. Without
   support for view timelines, and under reduced motion, the drawing simply stands finished. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .sv-profile,
        .sv-surface {
            stroke-dasharray: 1;
            animation: sv-draw linear both;
            animation-timeline: --shore;
            animation-range: entry 0% cover 35%;
        }

        .sv-dim {
            transform-box: fill-box;
            transform-origin: left center;
            animation: sv-grow linear both;
            animation-timeline: --shore;
        }

        .sv-dim-1 { animation-range: entry 30% cover 38%; }
        .sv-dim-2 { animation-range: entry 50% cover 42%; transform-origin: right center; }
        .sv-dim-3 { animation-range: entry 70% cover 46%; }
        .sv-dim-4 { animation-range: entry 85% cover 50%; }
        .sv-dim-5 { animation-range: cover 30% cover 52%; transform-origin: center top; animation-name: sv-drop; }

        .sv-dock,
        .sv-boat,
        .sv-house,
        .sv-trees {
            animation: sv-rise linear both;
            animation-timeline: --shore;
            animation-range: entry 20% cover 40%;
        }

        .sv-boat {
            animation-range: cover 25% cover 48%;
        }

        .sv-num {
            transform-box: fill-box;
            transform-origin: center;
            animation: sv-pop linear both;
            animation-timeline: --shore;
        }

        .sv-num-1 { animation-range: cover 22% cover 36%; }
        .sv-num-2 { animation-range: cover 26% cover 40%; }
        .sv-num-3 { animation-range: cover 30% cover 44%; }
        .sv-num-4 { animation-range: cover 34% cover 48%; }
        .sv-num-5 { animation-range: cover 38% cover 52%; }
    }
}

@keyframes sv-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes sv-grow {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

@keyframes sv-drop {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes sv-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes sv-pop {
    from { opacity: 0; transform: scale(0.2); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- portfolio strip ---- */

.strip {
    list-style: none;
    margin: 0 0 28px;
    padding: 4px max(16px, (100% - var(--wrap)) / 2) 18px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, (100% - var(--wrap)) / 2);
    scrollbar-color: var(--lumber-ink) transparent;
}

.strip li {
    flex: 0 0 min(80vw, 380px);
    scroll-snap-align: start;
}

.strip a {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 14px;
    transition: transform 0.4s;
}

.strip a:hover img {
    transform: translateY(-4px);
}

.strip-tag,
.card-tag,
.spec-tag {
    display: block;
    font: 700 0.76rem/1.3 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lumber-ink);
    margin-bottom: 6px;
}

.strip-name {
    display: block;
    font: 800 1.5rem/1.05 var(--display);
}

.strip a:hover .strip-name {
    color: var(--blue);
}

/* ---- split (about teaser) ---- */

.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.split-photo img {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

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

/* ---- crew band: decking boards ---- */

.crew-band {
    background:
        repeating-linear-gradient(90deg, transparent 0 118px, rgba(122, 85, 32, 0.12) 118px 121px),
        var(--lumber-pale);
    padding-block: clamp(48px, 7vw, 88px);
}

.crew-band .eyebrow {
    color: var(--lumber-ink);
}

.crew-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
}

.crew-grid > div {
    max-width: 720px;
}

.crew-grid h2 {
    margin-bottom: 0.3em;
}

.crew-grid p {
    margin-bottom: 0;
}

.crew-grid > div p + p,
.crew-grid > div h2 + p {
    margin-top: 0.4em;
}

/* ---- call band ---- */

.call-band {
    background:
        radial-gradient(ellipse at 10% 100%, rgba(220, 188, 126, 0.18), transparent 55%),
        linear-gradient(120deg, var(--blue) 0%, var(--lake) 100%);
    color: var(--on-dark);
    padding-block: clamp(52px, 7vw, 88px);
}

.call-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px 56px;
    align-items: center;
}

.call-grid h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.call-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.call-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(238, 243, 250, 0.22);
}

.call-list span {
    color: var(--on-dark-muted);
    font-size: 0.92rem;
}

.call-list a {
    color: #fff;
    font: 800 clamp(1.5rem, 2.8vw, 2rem)/1.1 var(--display);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.call-list li:last-child a {
    font: 700 1.1rem var(--text);
}

.call-list a:hover {
    color: var(--lumber);
}

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

/* ---- page hero ---- */

.page-hero {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, var(--night) 0%, var(--lake) 70%, var(--lake-2) 100%);
    color: var(--on-dark);
    padding-block: clamp(64px, 10vw, 120px) clamp(44px, 6vw, 72px);
    overflow: hidden;
}

.page-hero-photo {
    min-height: min(62svh, 560px);
    display: flex;
    align-items: flex-end;
}

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

.page-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 24, 47, 0.35) 0%, rgba(6, 24, 47, 0.6) 50%, rgba(6, 24, 47, 0.95) 100%),
        linear-gradient(90deg, rgba(6, 24, 47, 0.75) 0%, rgba(6, 24, 47, 0.1) 75%);
}

.page-hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 900;
    max-width: 16ch;
    text-transform: uppercase;
    line-height: 0.92;
    text-shadow: 0 3px 24px rgba(6, 24, 47, 0.4);
}

.page-hero .lead {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    margin: 0;
    color: var(--on-dark);
}

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

.crumbs a {
    color: var(--on-dark);
}

.crumbs span[aria-hidden] {
    margin-inline: 4px;
    color: var(--lumber);
}

/* ---- prose with a side card ---- */

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

.prose {
    max-width: 70ch;
}

.prose h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin-top: 1.2em;
}

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

.note-card {
    background: var(--sheet);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    border-top: 6px solid var(--lumber);
    box-shadow: 0 18px 40px -24px rgba(6, 24, 47, 0.35);
}

.band-tint .note-card {
    background: var(--granite);
}

.note-card h2 {
    font-size: 1.7rem;
}

.note-card > :last-child {
    margin-bottom: 0;
}

.note-big {
    font: 900 clamp(3rem, 6vw, 4.6rem)/0.9 var(--display);
    color: var(--blue);
    margin-bottom: 0.25em;
    text-transform: uppercase;
}

.note-card-store img {
    width: 200px;
    margin-bottom: 14px;
    border-radius: var(--radius-s);
}

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

.steps-list {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

.steps-list li {
    margin-bottom: 0.55em;
}

.steps-list li::marker {
    color: var(--lumber-ink);
    font-weight: 700;
}

.facts {
    margin: 0 0 1em;
    display: grid;
    gap: 12px;
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

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

.facts dd {
    margin: 0;
    font: 800 1.5rem/1 var(--display);
    color: var(--blue);
    text-align: right;
}

/* ---- photos in a page ---- */

.photo-pair,
.photo-one {
    margin-top: clamp(32px, 5vw, 56px);
}

.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.photo-pair img,
.photo-one img,
.photo-side img,
.brand-photo img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.photo-pair img {
    aspect-ratio: 4 / 3;
}

.photo-one img {
    aspect-ratio: 16 / 9;
}

.photo-side img {
    aspect-ratio: 4 / 3;
}

@media (max-width: 640px) {
    .photo-pair {
        grid-template-columns: 1fr;
    }
}

/* ---- cards of a section ---- */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sheet);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.band-tint .card a {
    background: var(--granite);
}

.card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -26px rgba(6, 24, 47, 0.5);
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card-text {
    padding: 18px 20px 22px;
}

.card-name {
    display: block;
    font: 800 1.6rem/1.02 var(--display);
    margin-bottom: 8px;
    color: var(--ink);
}

.card a:hover .card-name {
    color: var(--blue);
}

.card-sum {
    display: block;
    color: var(--muted);
    font-size: 0.96rem;
}

.inline-cta {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--lumber-pale);
}

.inline-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2em;
}

.inline-cta p {
    margin: 0;
}

/* ---- services overview ---- */

.service-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(36px, 6vw, 64px);
}

.service-rows > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
}

.service-rows > li:nth-child(even) .service-photo {
    order: 2;
}

.service-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}

.service-rows h2 a {
    color: var(--ink);
    text-decoration: none;
}

.service-rows h2 a:hover {
    color: var(--blue);
}

@media (max-width: 760px) {
    .service-rows > li {
        grid-template-columns: 1fr;
    }

    .service-rows > li:nth-child(even) .service-photo {
        order: 0;
    }
}

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

.chips a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.chips a:hover {
    border-color: var(--blue);
}

/* ---- specs and brands ---- */

.spec-pair,
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.spec,
.brand-card {
    background: var(--sheet);
    border-radius: var(--radius);
    padding: 26px;
}

.band-tint .spec,
.band-tint .brand-card {
    background: var(--granite);
}

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

.spec-list li {
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.spec-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 18px;
    width: 12px;
    height: 4px;
    background: var(--lumber);
    border-radius: 2px;
}

.brand-card > :last-child {
    margin-bottom: 0;
}

.brand-photo {
    display: block;
    margin-top: 16px;
}

.brand-photo img {
    aspect-ratio: 4 / 3;
}

@media (max-width: 760px) {
    .spec-pair,
    .brand-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- check grid and trail (permits) ---- */

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

.check-grid li {
    background: var(--granite);
    border-radius: var(--radius);
    padding: 22px 22px 22px 60px;
    position: relative;
}

.check-grid li::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 24px;
    width: 22px;
    height: 12px;
    border-left: 4px solid var(--blue);
    border-bottom: 4px solid var(--blue);
    transform: rotate(-45deg);
}

.trail {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    position: relative;
}

.trail::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 38px;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--lumber) 0 22px, transparent 22px 30px);
}

.trail li {
    position: relative;
    padding-top: 92px;
}

.trail-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font: 900 2rem/80px var(--display);
    text-align: center;
    box-shadow: 0 0 0 8px var(--granite);
}

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

    .trail::before {
        left: 38px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--lumber) 0 22px, transparent 22px 30px);
    }

    .trail li {
        padding: 6px 0 22px 108px;
        min-height: 100px;
    }
}

/* ---- portfolio list ---- */

.projects {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(28px, 5vw, 48px);
}

.project {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
}

.project:nth-child(even) .project-photo {
    order: 2;
}

.project-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.4s;
}

.project-photo:hover img {
    transform: scale(1.02);
}

.project-num {
    font: 900 4.6rem/0.8 var(--display);
    color: var(--lumber);
    margin-bottom: 12px;
}

.project h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.project h2 a {
    color: var(--ink);
    text-decoration: none;
}

.project h2 a:hover {
    color: var(--blue);
}

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

    .project:nth-child(even) .project-photo {
        order: 0;
    }
}

/* ---- other items of a section ---- */

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

.others h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

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

.others-list a {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font: 800 1.3rem/1.05 var(--display);
}

.others-list img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-s);
    margin-bottom: 10px;
}

.others-list a:hover {
    color: var(--blue);
}

/* ---- FAQ ---- */

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

.faq-toc {
    position: sticky;
    top: 130px;
    background: var(--sheet);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.faq-toc ol {
    margin: 0;
    padding-left: 1.3em;
    font-size: 0.95rem;
}

.faq-toc li {
    margin-bottom: 6px;
}

.faq-toc li::marker {
    color: var(--lumber-ink);
    font-weight: 700;
}

.faq details {
    background: var(--sheet);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border-left: 6px solid transparent;
    transition: border-color 0.2s;
}

.faq details[open] {
    border-left-color: var(--lumber);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 60px 20px 24px;
    position: relative;
}

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

.faq summary h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    margin: 0;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--granite-2);
    color: var(--blue);
    font: 700 1.4rem/32px var(--text);
    text-align: center;
}

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

.faq summary:hover h2 {
    color: var(--blue);
}

.faq-a {
    padding: 0 24px 22px;
}

.faq-a h3 {
    font-size: 1.4rem;
    margin-top: 0.8em;
}

.formula span {
    display: block;
    font-weight: 700;
    color: var(--blue);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.2em;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 420px;
    font-size: 0.96rem;
}

caption {
    text-align: left;
    font: 800 1.25rem var(--display);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

th,
td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    background: var(--granite-2);
    font-weight: 700;
}

tbody th {
    font-weight: 600;
}

.permit-types {
    margin: 0;
    display: grid;
    gap: 12px;
}

.permit-types div {
    background: var(--granite);
    border-radius: var(--radius-s);
    padding: 16px 18px;
}

.permit-types dt {
    font: 800 1.25rem/1.1 var(--display);
    color: var(--blue);
    margin-bottom: 6px;
}

.permit-types dd {
    margin: 0;
}

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

    .faq-toc {
        position: static;
    }
}

/* ---- about ---- */

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

.family li {
    background: var(--granite);
    border-radius: var(--radius);
    padding: 26px;
    border-bottom: 6px solid var(--blue);
}

.family li > :last-child {
    margin-bottom: 0;
}

/* ---- careers ---- */

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

.openings li {
    font: 800 1.4rem/1 var(--display);
    text-transform: uppercase;
    background: var(--blue);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-s);
}

.doc-link {
    text-align: left;
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 16px;
}

.office {
    background: var(--sheet);
    border-radius: var(--radius);
    padding: 24px 26px;
    border-left: 6px solid var(--lumber);
}

.office h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3em;
}

.office address {
    font-style: normal;
}

.office > :last-child {
    margin-bottom: 0;
}

.big-phone-line {
    margin-bottom: 0.4em;
}

.big-phone {
    font: 900 clamp(2rem, 5vw, 2.8rem)/1 var(--display);
    color: var(--blue);
    text-decoration: none;
}

.big-phone:hover {
    color: var(--lake-2);
}

.mail-big {
    font-weight: 700;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.form-card {
    background: var(--sheet);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 36px);
    box-shadow: 0 24px 50px -30px rgba(6, 24, 47, 0.4);
}

.form-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

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

.contact-form > div,
.form-group > 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: 2px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--granite);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
}

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

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

.form-hint-top {
    margin: 0 0 18px;
}

.form-group {
    border: 0;
    margin: 0 0 10px;
    padding: 0;
    min-width: 0;
}

.form-group > legend {
    float: left;
    width: 100%;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    padding: 0;
    margin-bottom: 12px;
}

.form-group > legend + * {
    clear: both;
}

.form-group + .form-group {
    border-top: 2px solid var(--line);
    padding-top: 18px;
}

.form-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-pair-zip {
    grid-template-columns: 2fr 1fr;
}

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

.form-group > .form-pair {
    margin-bottom: 0;
}

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

.choice-row {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-row > legend {
    font-weight: 700;
    padding: 0;
    margin-bottom: 8px;
}

.contact-form .choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 20px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--granite);
    font-weight: 700;
    cursor: pointer;
}

.contact-form .choice input {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--blue);
}

.contact-form .choice:has(input:checked) {
    border-color: var(--blue);
    background: #fff;
}

.contact-form .choice:has(input:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

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

.contact-sent {
    background: var(--lumber-pale);
    border-left: 6px solid var(--lumber);
    border-radius: var(--radius-s);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    position: relative;
    background: var(--night);
    color: var(--on-dark-muted);
    padding-top: 64px;
    font-size: 0.96rem;
}

.foot-wave {
    position: absolute;
    left: 0;
    top: -27px;
    width: 100%;
    height: 28px;
    fill: var(--night);
}

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

.foot a:hover {
    color: var(--lumber);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.foot h2 {
    font: 800 1.3rem var(--display);
    color: var(--on-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.7em;
}

.foot address {
    font-style: normal;
    margin-bottom: 1em;
}

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

.foot-motto {
    font: 800 1.2rem var(--display);
    letter-spacing: 0.1em;
    color: var(--lumber);
    text-transform: uppercase;
}

.foot-phone {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

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

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

.foot-bottom {
    border-top: 1px solid rgba(169, 198, 255, 0.16);
    padding-block: 20px 28px;
    font-size: 0.86rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

/* ---- 404 ---- */

.not-found {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(ellipse at 70% 10%, rgba(31, 95, 168, 0.4), transparent 60%),
        var(--night);
    color: var(--on-dark);
    text-align: center;
}

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

.not-found h1 {
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    text-transform: uppercase;
    font-weight: 900;
}

.not-found p {
    max-width: 46ch;
    margin-inline: auto;
}

.not-found a:not(.btn) {
    color: var(--lumber);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !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;
    }
}
