/* SARL FCA — logo blue and logo yellow on Ré lime-wash, slate of the dark cladding.
   Fonts: Zilla Slab (display, SIL OFL), Reddit Sans (text, SIL OFL), self-hosted.
   One theme. Motion: the house rises on load, sections reveal on scroll; all still under reduced motion. */

@font-face {
    font-family: "Zilla Slab";
    src: url("/fonts/zilla-slab-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Zilla Slab";
    src: url("/fonts/zilla-slab-semibold-italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Reddit Sans";
    src: url("/fonts/reddit-sans.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #2b78b8;          /* the logo plate */
    --blue-deep: #1f5f96;
    --blue-night: #184c79;
    --yellow: #efc400;        /* the logo's lettering */
    --slate: #1f262e;         /* the dark cladding of the pool houses */
    --slate-2: #283039;
    --lime: #f5f2ea;          /* lime-washed walls */
    --sheet: #fffdf8;
    --ink: #1f262e;
    --muted: #4a545e;
    --on-dark: #c9d0d6;
    --tile: #9a4325;          /* old Gironde tiles */
    --sage: #e4e8dc;          /* the shutters, as a pale wash */
    --line: #ddd5c3;
    --radius: 18px;
    --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
    --text: "Reddit Sans", "Segoe UI", system-ui, sans-serif;
    --lb-bg: rgba(20, 25, 31, 0.96);
    --lb-accent: #efc400;
    --lb-accent-soft: rgba(239, 196, 0, 0.18);
}

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

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

body {
    margin: 0;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
}

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

a {
    color: var(--blue-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

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

.top :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
    outline-color: #fff;
}

.materials :focus-visible,
.quote-band :focus-visible,
.foot :focus-visible,
.tile-main:focus-visible {
    outline-color: var(--yellow);
}

.cta :focus-visible {
    outline-color: var(--slate);
}

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

h2 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
}

h3 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 1em;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--yellow);
}

.lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    max-width: 38em;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-yellow {
    background: var(--yellow);
    color: var(--slate);
}

.btn-yellow:hover {
    background: #fff;
    color: var(--slate);
}

.btn-ghost {
    border-color: #fff;
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--blue-deep);
}

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

.btn-ink:hover {
    background: var(--blue-night);
    color: #fff;
}

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

.btn-line:hover {
    background: var(--slate);
    color: var(--yellow);
}

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

.btn-blue:hover {
    background: var(--slate);
    color: var(--yellow);
}

/* ---- header: the blue of the logo plate, so the plate melts into it ---- */

.top {
    position: relative;
    z-index: 20;
    background: var(--blue);
    color: #fff;
}

.top-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "brand call call"
        "nav nav lang";
    align-items: center;
    gap: 6px 10px;
    padding: 6px 0 4px;
}

.top-tools {
    display: contents;
}

.brand {
    grid-area: brand;
    display: block;
    line-height: 0;
    border-radius: 4px;
}

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

.call {
    grid-area: call;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--slate);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.call:hover {
    background: #fff;
}

.nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-left: -6px;
}

.nav a {
    padding: 8px 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

.lang {
    grid-area: lang;
    justify-self: end;
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang a,
.lang span {
    padding: 6px 7px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
}

.lang span {
    background: var(--blue-night);
}

/* on a phone only the other language is shown, so the links keep one row */
@media (max-width: 559px) {
    .lang span[aria-current] {
        display: none;
    }
}

.lang a:hover {
    background: var(--blue-deep);
}

@media (min-width: 420px) {
    .nav a {
        padding: 8px 8px;
        font-size: 0.98rem;
    }

    .nav a::after {
        left: 8px;
        right: 8px;
    }

    .brand img {
        height: 46px;
    }

    .call {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (min-width: 960px) {
    .top {
        position: sticky;
        top: 0;
    }

    .top-row {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "brand nav lang call";
        gap: 18px;
        padding: 8px 0;
    }

    .brand img {
        height: 58px;
    }

    .nav {
        justify-content: center;
        margin-left: 0;
    }

    .nav a {
        padding: 10px 12px;
        font-size: 1.02rem;
    }

    .nav a::after {
        left: 12px;
        right: 12px;
    }
}

/* ---- hero: the plate continues ---- */

.hero {
    background:
        radial-gradient(1200px 500px at 85% 100%, rgba(24, 76, 121, 0.55), transparent 70%),
        var(--blue);
    color: #fff;
    padding: clamp(28px, 6vw, 72px) 0 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 24px;
    align-items: end;
}

.hero-text {
    padding-bottom: clamp(8px, 4vw, 64px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    line-height: 0.98;
    margin-bottom: 18px;
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .lead {
    color: #fff;
}

.slogan {
    margin: 0 0 22px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.2;
}

/* the painted band of the logo, laid under the slogan */
.slogan span {
    display: inline-block;
    padding: 6px 26px 8px 18px;
    background: var(--yellow);
    color: var(--slate);
    transform: rotate(-1.5deg);
    clip-path: polygon(0 14%, 6% 2%, 28% 8%, 52% 0, 77% 6%, 97% 1%, 100% 34%, 98% 74%, 100% 96%, 74% 100%, 49% 93%, 24% 100%, 3% 95%, 1% 58%);
    animation: paint 0.9s 0.35s cubic-bezier(0.6, 0, 0.2, 1) both;
}

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

.hero-art {
    position: relative;
    max-width: 620px;
    width: 100%;
    justify-self: center;
}

.house {
    width: 100%;
}

.house .layer {
    animation: course 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(0.35s + var(--i) * 0.32s);
}

.house .mark {
    animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
    animation-delay: calc(0.75s + var(--i) * 0.32s);
    transform-box: fill-box;
    transform-origin: center;
}

.house text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    fill: var(--slate);
}

@keyframes course {
    from {
        opacity: 0;
        transform: translateY(-46px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

@keyframes paint {
    from {
        clip-path: polygon(0 14%, 0 2%, 0 8%, 0 0, 0 6%, 0 1%, 0 34%, 0 74%, 0 96%, 0 100%, 0 93%, 0 100%, 0 95%, 0 58%);
    }
    to {
        clip-path: polygon(0 14%, 6% 2%, 28% 8%, 52% 0, 77% 6%, 97% 1%, 100% 34%, 98% 74%, 100% 96%, 74% 100%, 49% 93%, 24% 100%, 3% 95%, 1% 58%);
    }
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

.page-hero {
    position: relative;
    background: var(--blue);
    color: #fff;
    padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 92px);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.4rem);
    max-width: 16em;
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-hero .lead {
    color: #fff;
    margin: 0;
}

/* the logo's yellow band, running out of the page */
.page-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 22px;
    width: min(46%, 560px);
    height: 16px;
    background: var(--yellow);
    clip-path: polygon(0 30%, 8% 0, 40% 18%, 70% 4%, 100% 10%, 100% 90%, 72% 100%, 38% 84%, 6% 100%, 2% 70%);
    animation: band 0.9s 0.3s cubic-bezier(0.6, 0, 0.2, 1) both;
}

@keyframes band {
    from {
        transform: translateX(100%);
    }
    to {
        transform: none;
    }
}

/* ---- sections ---- */

.band {
    padding: clamp(40px, 7vw, 88px) 0;
}

.section-head {
    max-width: 46em;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.section-head p:not(.eyebrow) {
    font-size: 1.1rem;
}

/* materials: the legend of the house, on slate */
.materials {
    background: var(--slate);
    color: var(--lime);
    padding: clamp(44px, 7vw, 90px) 0;
}

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

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

.legend li {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--slate-2);
    border: 1px solid rgba(245, 242, 234, 0.08);
}

.legend .num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--slate);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
}

.legend strong {
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.2;
    color: #fff;
}

.legend span:not(.num) {
    color: var(--on-dark);
}

@media (min-width: 640px) {
    .legend {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .legend {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* a sideways strip of the slider photos */
.strip-section {
    padding: clamp(44px, 7vw, 90px) 0 clamp(20px, 4vw, 40px);
}

.strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 18px;
}

.strip-head h2 {
    margin: 0;
}

.more {
    font-weight: 700;
}

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

.strip li {
    flex: 0 0 min(86%, 720px);
    scroll-snap-align: start;
}

.strip a,
.photo,
.tile-photo,
.gallery a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--slate);
}

.strip img,
.photo img,
.tile-photo img,
.gallery img {
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.strip a:hover img,
.photo:hover img,
.tile-photo:hover img,
.gallery a:hover img {
    transform: scale(1.04);
}

/* the trade: a bento */
.trade {
    padding: clamp(40px, 6vw, 80px) 0;
}

.bento {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.tile {
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.tile p {
    margin: 0;
}

.tile-main {
    background: var(--slate);
    border-color: var(--slate);
    color: var(--lime);
}

.tile-main h3 {
    color: var(--yellow);
    font-size: clamp(2rem, 4vw, 3rem);
}

.tile-main p {
    font-size: 1.15rem;
}

.tile-blue {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    color: #fff;
}

.tile-sage {
    background: var(--sage);
    border-color: #cfd6c3;
}

.tile-photo {
    padding: 0;
    border: 0;
    min-height: 240px;
}

.tile-photo img {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 700px) {
    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "main main"
            "blue photo"
            "team photo"
            "sage sage";
    }
}

@media (min-width: 1000px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
            "main main blue photo"
            "team sage sage photo";
    }
}

@media (min-width: 700px) {
    .tile-main { grid-area: main; }
    .tile-blue { grid-area: blue; }
    .tile-photo { grid-area: photo; }
    .tile-sage { grid-area: sage; }
    .bento > .tile:not(.tile-main):not(.tile-blue):not(.tile-sage):not(.tile-photo) { grid-area: team; }
}

/* a numbered trail */
.trail-section {
    padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 90px);
}

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    counter-reset: none;
}

.trail li {
    position: relative;
    padding: 0 0 26px 64px;
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.25;
}

.trail li::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    border-left: 2px dashed var(--blue);
}

.trail li:last-child::before {
    display: none;
}

.trail .step {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--blue-deep);
    color: var(--blue-deep);
    font-size: 1rem;
    background: var(--lime);
}

.trail li:last-child .step {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--slate);
}

@media (min-width: 860px) {
    .trail {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .trail li {
        padding: 64px 0 0;
    }

    .trail li::before {
        left: 52px;
        right: -24px;
        top: 21px;
        bottom: auto;
        border-left: 0;
        border-top: 2px dashed var(--blue);
    }
}

/* the owner's words */
.quote-band {
    background: var(--slate);
    color: var(--lime);
    padding: clamp(48px, 8vw, 100px) 0;
}

.quote {
    margin: 0;
    max-width: 30em;
}

.quote blockquote {
    margin: 0 0 18px;
}

.quote blockquote p {
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.8rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    margin: 0;
}

.quote blockquote p::before {
    content: "«\00a0";
    color: var(--yellow);
}

.quote blockquote p::after {
    content: "\00a0»";
    color: var(--yellow);
}

:lang(en) .quote blockquote p::before {
    content: "“";
}

:lang(en) .quote blockquote p::after {
    content: "”";
}

.quote figcaption {
    color: var(--on-dark);
    font-weight: 700;
}

.quote figcaption a {
    color: var(--yellow);
}

/* the call band: the yellow of the logo */
.cta {
    background: var(--yellow);
    color: var(--slate);
    padding: clamp(36px, 6vw, 64px) 0;
}

.cta-row {
    display: grid;
    gap: 20px;
    align-items: center;
}

.cta h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    margin-bottom: 8px;
}

.cta p {
    margin: 0;
    font-size: 1.1rem;
}

.cta a:not(.btn) {
    color: var(--slate);
}

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

@media (min-width: 900px) {
    .cta-row {
        grid-template-columns: 1fr auto;
        gap: 40px;
    }
}

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

.about-grid {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
}

.prose {
    max-width: 40em;
    font-size: 1.1rem;
}

.pull {
    margin: 0 0 28px;
    padding: 4px 0 4px 22px;
    border-left: 6px solid var(--yellow);
}

.pull blockquote {
    margin: 0;
}

.pull p {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    line-height: 1.3;
    color: var(--slate);
}

.pull p::before {
    content: "«\00a0";
    color: var(--tile);
}

.pull p::after {
    content: "\00a0»";
    color: var(--tile);
}

:lang(en) .pull p::before {
    content: "“";
}

:lang(en) .pull p::after {
    content: "”";
}

.about-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.facts {
    margin: 0;
    display: grid;
    gap: 0;
    border-top: 2px solid var(--slate);
}

.facts div {
    display: grid;
    grid-template-columns: 8.5em 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    font-weight: 700;
    color: var(--tile);
}

.facts dd {
    margin: 0;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.25fr 0.9fr;
    }
}

/* ---- gallery ---- */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 10px;
}

.gallery li.square {
    aspect-ratio: 1 / 1;
}

.gallery li.wide {
    grid-column: span 2;
}

.gallery a {
    height: 100%;
}

.gallery img {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 760px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

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

.contact-grid {
    display: grid;
    gap: 20px;
}

.contact-card,
.form-card {
    padding: clamp(20px, 3.5vw, 36px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.big-phone-line {
    margin: 0 0 18px;
}

.big-phone {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    color: var(--blue-deep);
    text-decoration: none;
    white-space: nowrap;
}

.big-phone:hover {
    text-decoration: underline;
}

.contact-list {
    margin: 0 0 22px;
}

.contact-list div {
    display: grid;
    grid-template-columns: 6em 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    font-weight: 700;
    color: var(--tile);
}

.contact-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.form-card h2 {
    font-size: 1.9rem;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 28px;
        align-items: start;
    }
}

/* the platform form */
.contact-form > div {
    margin-bottom: 16px;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #b9b2a2;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue-deep);
    outline: 3px solid rgba(31, 95, 150, 0.25);
    outline-offset: 0;
}

.contact-form ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #a12a17;
    font-weight: 700;
}

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

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--sage);
    border-left: 6px solid var(--blue-deep);
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--slate);
    color: var(--on-dark);
    padding: clamp(40px, 6vw, 72px) 0 0;
    font-size: 1rem;
}

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

.foot h2 {
    font-family: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 12px;
}

.foot address {
    font-style: normal;
}

.foot strong {
    color: #fff;
}

.foot-grid {
    display: grid;
    gap: 28px;
}

.foot-brand img {
    width: 260px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.foot-phone {
    font-weight: 700;
    white-space: nowrap;
}

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

.foot-nav li {
    padding: 2px 0;
}

.foot-bottom {
    margin-top: 36px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(245, 242, 234, 0.14);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

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

@media (min-width: 1000px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: var(--blue);
    color: #fff;
}

.not-found > div {
    max-width: 36em;
}

.not-found img {
    width: 300px;
    margin-bottom: 28px;
}

.not-found h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.not-found h2 {
    font-size: 1.6rem;
    margin-top: 32px;
}

.not-found a:not(.btn) {
    color: #fff;
}

.not-found [lang="en"] {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- scroll reveal, where the browser can tie it to the scroll ---- */

@supports (animation-timeline: view()) {
    .legend li,
    .tile,
    .trail li,
    .gallery li,
    .quote {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

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

    .strip a:hover img,
    .photo:hover img,
    .tile-photo:hover img,
    .gallery a:hover img,
    .btn:hover {
        transform: none;
    }
}


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