:root {
    --paper: #f3efe4;
    --ink: #1c2416;
    --leaf: #234232;
    --water: #1f6f6a;
    --stone: #c4b49a;
    --line: rgba(28, 36, 22, 0.14);
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --header: 4.5rem;
    --space: clamp(1.25rem, 2vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 380;
    line-height: 1.55;
}

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

a {
    color: var(--water);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--leaf);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem 1rem;
    z-index: 50;
}

.skip-link:focus {
    top: 1rem;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 460;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 0.6rem;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

p {
    margin: 0 0 1rem;
}

.wrap {
    width: min(1120px, calc(100% - 2.4rem));
    margin-inline: auto;
}

.narrow {
    width: min(720px, calc(100% - 2.4rem));
}

.eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--water);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(243, 239, 228, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header);
    width: min(1120px, calc(100% - 2.4rem));
    margin-inline: auto;
}

.site-logo {
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

.site-logo__word {
    font-family: var(--serif);
    font-size: 1.25rem;
}

.site-logo__img {
    width: auto;
    height: 46px;
}

.site-nav .menu,
.menu--footer {
    display: flex;
    gap: 0.4rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a,
.lang-switch a,
.nav-toggle {
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    gap: 0.6rem;
    margin: 0;
}

.lang-switch a[aria-current="true"] {
    border-bottom: 1px solid var(--ink);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font: inherit;
    padding: 0 0.2rem;
    cursor: pointer;
}

.nav-toggle__close {
    display: none;
}

.section {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    overflow: hidden;
}

.hero:not(:has(.hero__stage)) .hero__copy {
    width: min(920px, calc(100% - 8vw));
}

.hero__copy {
    position: relative;
    z-index: 1;
    width: min(58%, 760px);
    padding: calc(var(--header) + 8vh) 6vw 4rem;
    color: var(--ink);
}

.hero__copy h1,
.hero__kicker,
.hero__lede,
.path__title,
.path__text,
.path__index {
    color: var(--ink);
}

.hero__kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}

.hero__lede {
    max-width: 36rem;
    font-size: 1.15rem;
}

.hero__paths {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.path {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.8rem;
    text-decoration: none;
    border-top: 1px solid var(--line);
    padding: 0.85rem 0;
    min-height: 44px;
}

.path__index {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding-top: 0.35rem;
}

.path__title {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
}

.path__text {
    display: block;
    max-width: 34rem;
    opacity: 0.86;
}

.hero__stage {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
}

.hero__media--wash {
    background:
        radial-gradient(circle at 30% 40%, rgba(243, 239, 228, 0.35), transparent 42%),
        linear-gradient(160deg, #7eb8b0 0%, #234232 58%, #1c2416 100%);
}

body.has-hero .site-header {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    color: var(--paper);
}

body.has-hero .site-logo,
body.has-hero .site-nav a,
body.has-hero .lang-switch a,
body.has-hero .nav-toggle {
    color: var(--paper);
    text-shadow: 0 1px 12px rgba(28, 36, 22, 0.45);
}

@media (min-width: 1100px) {
    body.has-hero.is-hero-open .site-logo,
    body.has-hero.is-hero-open .site-nav a,
    body.has-hero.is-hero-open .lang-switch a,
    body.has-hero.is-hero-open .nav-toggle {
        color: var(--ink);
        text-shadow: none;
    }
}

.lightbox[hidden] {
    display: none;
}

@media (min-width: 1100px) {
    .hero__stage {
        animation: rbpt-hero-clip 0.65s cubic-bezier(0.77, 0, 0.18, 1) 0.08s forwards;
    }

    .hero__media {
        animation: rbpt-hero-slide 0.65s cubic-bezier(0.77, 0, 0.18, 1) 0.08s forwards;
    }
}

@keyframes rbpt-hero-clip {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 0 0 58%); }
}

@keyframes rbpt-hero-slide {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(58%, 0, 0); }
}

@media (min-width: 1100px) and (prefers-reduced-motion: reduce) {
    .hero__stage,
    .hero__media {
        animation: none;
    }

    .hero__stage {
        clip-path: inset(0 0 0 58%);
    }

    .hero__media {
        transform: translate3d(58%, 0, 0);
    }
}

@media (min-width: 1100px) {
    body.has-hero .site-header {
        width: 58%;
        right: auto;
    }
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
}

.steps li {
    border-top: 2px solid var(--ink);
    padding-top: 0.8rem;
}

.steps span {
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

.card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card img,
.card__wash {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    background: var(--leaf);
    margin-bottom: 0.8rem;
}

.card__wash {
    display: block;
    background: linear-gradient(160deg, #8ec8c3, #234232);
}

.card__meta {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--water);
}

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

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
}

.filters a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
}

.filters a[aria-current="true"] {
    background: var(--leaf);
    color: var(--paper);
    border-color: var(--leaf);
}

.section--refuge {
    background: var(--paper);
}

.section--refuge .narrow {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.hero h1 {
    font-size: clamp(3.4rem, 7.6vw, 7.4rem);
    line-height: 0.88;
    max-width: 9ch;
}

.plates {
    display: grid;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.section--refuge h2 {
    font-size: clamp(3rem, 7vw, 6.4rem);
    max-width: 11ch;
    line-height: 0.9;
}

.plate {
    position: relative;
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    background: var(--ink);
}

.plate img {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    clip-path: inset(11%);
}

.plate.is-in img {
    clip-path: inset(0);
    transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

.plate__tag,
.plate__title {
    position: absolute;
    z-index: 2;
    margin: 0;
    background: var(--paper);
}

.plate__tag {
    top: 0;
    right: 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.plate__title {
    left: 0;
    bottom: 0;
    max-width: 14ch;
    padding: 0.55rem 0.9rem 0.7rem;
    font-size: clamp(2.4rem, 5.4vw, 5rem);
    line-height: 0.9;
}

.plate:hover .plate__title,
.plate:focus-visible .plate__title {
    background: var(--ink);
    color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
    .plate img,
    .plate.is-in img {
        clip-path: none;
        transition: none;
    }
}

.visit {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.3rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border: 0;
    border-radius: 0;
    font: inherit;
}

.button:hover {
    background: var(--leaf);
    color: var(--paper);
}

.text-link {
    font-family: var(--serif);
}

.site-main {
    padding: calc(var(--header) + 2rem) 0 4rem;
}

body.has-hero .site-main {
    padding-top: 0;
}

.prose {
    max-width: 44rem;
}

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

.lede {
    font-size: 1.25rem;
    max-width: 40rem;
}

.project__cover img {
    width: 100%;
    max-height: 78vh;
    object-fit: cover;
}

.project__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    padding-top: 3rem;
}

.specs {
    margin: 0;
}

.specs div {
    border-top: 1px solid var(--line);
    padding: 0.8rem 0;
}

.specs dt {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--water);
}

.specs dd {
    margin: 0.2rem 0 0;
    font-family: var(--serif);
    font-size: 1.3rem;
}

.drawing img {
    background: #fff;
}

.mosaic {
    columns: 3;
    column-gap: 0.8rem;
    margin-top: 2rem;
}

.mosaic__item {
    display: block;
    width: 100%;
    margin: 0 0 0.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    break-inside: avoid;
}

.mosaic__item img,
.mosaic__item video {
    width: 100%;
    height: auto;
    display: block;
}

.mosaic__item--video {
    position: relative;
    cursor: pointer;
}

.mosaic__item video {
    background: var(--leaf);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.video-play {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.video-play::before {
    content: "";
    display: block;
    margin-left: 16px;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent var(--ink);
}

.mosaic__item.is-playing .video-play::before {
    margin-left: 15px;
    border-width: 0 4px;
    border-color: var(--ink);
    height: 14px;
    width: 12px;
    border-style: solid;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(28, 36, 22, 0.88);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 86vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 6rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.site-footer__name {
    font-family: var(--serif);
    font-size: 1.6rem;
}

.site-footer a {
    color: var(--ink);
}

.site-footer__legal {
    opacity: 0.7;
    margin-top: 2rem;
}

.search-list {
    padding-left: 1.1rem;
}

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