:root {
    --paper: #f7f6f1;
    --white: #fff;
    --ink: #1d211e;
    --ink-soft: #444942;
    --sage: #6f796c;
    --sage-dark: #3d463d;
    --sand: #d8cfc1;
    --line: rgba(29, 33, 30, 0.17);
    --serif: "Iowan Old Style", "Baskerville", "Noto Serif TC", "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
    --page: clamp(22px, 4.4vw, 76px);
    --section: clamp(90px, 11vw, 180px);
    --header-height: 90px;
    --header-scrolled-height: 72px;
    --menu-background-opacity: 0.92;
    --menu-shrink-scale: 0.8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    color: var(--white);
    background: var(--sage);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    color: var(--ink);
    background: var(--white);
}

.section-pad {
    padding: var(--section) var(--page);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sage-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: gap 0.25s ease, color 0.25s ease;
}

.text-link:hover,
.text-link:focus-visible {
    gap: 42px;
    color: var(--sage);
}

.button-link {
    display: inline-flex;
    padding: 14px 22px;
    color: var(--white);
    background: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 11px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.menu-not-sticky .site-header {
    position: absolute;
}

.site-header.is-scrolled {
    height: var(--header-scrolled-height);
}

.site-header.is-scrolled,
body:not(.is-starlight-front) .site-header {
    border-color: var(--line);
    background: rgba(247, 246, 241, var(--menu-background-opacity));
    backdrop-filter: blur(16px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 var(--page);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 11px;
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.site-header.is-scrolled .site-brand {
    transform: scale(var(--menu-shrink-scale));
}

.site-brand__mark {
    width: 31px;
    height: 31px;
}

.site-brand__mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-brand__text strong {
    overflow: hidden;
    max-width: 240px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand__text small {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 0.22em;
}

.site-nav {
    justify-self: center;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: clamp(26px, 3vw, 52px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-menu a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.site-menu a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.site-menu a:hover::after,
.site-menu a:focus-visible::after,
.site-menu .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-menu > .menu-item-has-children {
    position: relative;
}

.site-menu > .menu-item-has-children > a {
    padding-right: 15px;
}

.site-menu > .menu-item-has-children > a::before {
    position: absolute;
    top: 50%;
    right: 1px;
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}

.site-menu > .menu-item-has-children:hover > a::before,
.site-menu > .menu-item-has-children:focus-within > a::before {
    transform: translateY(-20%) rotate(225deg);
}

.site-menu .sub-menu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 50%;
    display: flex;
    min-width: 168px;
    flex-direction: column;
    gap: 0;
    padding: 13px 18px 10px;
    margin: 0;
    border: 1px solid var(--line);
    background: rgba(247, 246, 241, 0.98);
    box-shadow: 0 18px 45px rgba(29, 33, 30, 0.11);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.site-menu .sub-menu a {
    padding: 7px 5px;
    white-space: nowrap;
    text-align: center;
}

.site-menu .menu-item-has-children:hover > .sub-menu,
.site-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.header-inquiry {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.header-inquiry--image {
    padding-bottom: 0;
    border-bottom: 0;
}

.header-inquiry__image {
    width: auto;
    max-width: min(180px, 18vw);
    max-height: calc(var(--header-height) - 24px);
    object-fit: contain;
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 100svh;
    padding-top: var(--header-height);
    background: var(--paper);
}

.hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(70px, 10vh, 130px) clamp(30px, 5vw, 88px) 32px var(--page);
}

.hero__copy-inner {
    max-width: 600px;
}

.hero__copy h1 {
    margin: 36px 0 30px;
    font-size: clamp(52px, 6.4vw, 108px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero__copy h1 em {
    color: var(--sage);
    font-weight: 400;
}

.hero__copy p {
    max-width: 440px;
    margin-bottom: 36px;
    color: var(--ink-soft);
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 2;
}

.hero__note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    font-size: 9px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.hero__visual {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-height));
}

.hero__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 40%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    animation: hero-enter 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Reusable sliders */
.starlight-slider {
    position: relative;
    touch-action: pan-y;
}

.starlight-slider__viewport,
.starlight-slider__track {
    width: 100%;
    height: 100%;
}

.starlight-slider__track {
    position: relative;
    display: grid;
    overflow: hidden;
}

.starlight-slider__slide {
    position: relative;
    z-index: 0;
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.starlight-slider__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.starlight-slider__controls {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 22px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.starlight-slider__button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    color: var(--white);
    background: rgba(29, 33, 30, 0.22);
    backdrop-filter: blur(8px);
    cursor: pointer;
    place-items: center;
    pointer-events: auto;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.starlight-slider__button:hover,
.starlight-slider__button:focus-visible {
    color: var(--ink);
    background: var(--white);
    transform: scale(1.06);
}

.starlight-slider__button span {
    font-size: 18px;
    line-height: 1;
}

.starlight-slider__dots {
    position: absolute;
    z-index: 4;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.starlight-slider__dots button {
    width: 22px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.starlight-slider__dots button::after {
    display: block;
    width: 100%;
    height: 2px;
    content: "";
    background: rgba(255, 255, 255, 0.45);
    transform: scaleX(0.55);
    transition: background 0.25s ease, transform 0.25s ease;
}

.starlight-slider__dots button:hover::after,
.starlight-slider__dots button:focus-visible::after,
.starlight-slider__dots button.is-active::after {
    background: var(--white);
    transform: scaleX(1);
}

.hero__visual .starlight-slider__slide,
.hero__visual .starlight-slider__slide > a {
    width: 100%;
    height: 100%;
}

.hero__visual .starlight-slider__viewport {
    position: absolute;
    inset: 0;
}

.hero__visual .starlight-slider__slide > a {
    display: block;
}

.hero__slide-title {
    position: absolute;
    z-index: 2;
    bottom: 72px;
    left: 30px;
    display: flex;
    max-width: min(60%, 540px);
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(19px, 2vw, 31px);
    line-height: 1.2;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.hero__slide-title i {
    font-family: var(--sans);
    font-size: 13px;
    font-style: normal;
}

.hero__visual .demo-badge {
    z-index: 5;
    bottom: 64px;
}

/* A Gallery block becomes a slider when the editor selects this style. */
.wp-block-gallery.is-style-starlight-slider.starlight-content-slider {
    display: block !important;
    overflow: visible;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: var(--sans);
}

.starlight-content-slider .starlight-slider__viewport {
    overflow: hidden;
    background: #e8e5de;
}

.starlight-content-slider .starlight-slider__track {
    aspect-ratio: 16 / 9;
}

.starlight-content-slider .starlight-slider__slide {
    width: 100% !important;
    height: 100%;
}

.starlight-content-slider .starlight-slider__slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.starlight-content-slider .starlight-slider__slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 46px 24px 18px;
    margin: 0;
    color: var(--white);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.starlight-content-slider > .blocks-gallery-caption,
.starlight-content-slider > figcaption {
    display: block;
    width: 100%;
    margin-top: 12px;
    color: var(--sage);
    font-family: var(--sans);
    font-size: 12px;
    text-align: left;
}

.starlight-content-slider .starlight-slider__dots {
    bottom: 18px;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: scale(1.09);
    }
}

.hero__index {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.hero__index i {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.65);
}

.hero__scroll {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 42%;
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--white);
    transform: translateX(-50%);
}

.hero__scroll span {
    font-size: 9px;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
}

.hero__scroll i {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 27px;
    overflow: hidden;
    background: var(--line);
}

.hero__scroll i::after {
    position: absolute;
    top: -100%;
    width: 1px;
    height: 100%;
    content: "";
    background: var(--ink);
    animation: scroll-line 1.8s infinite;
}

@keyframes scroll-line {
    to { top: 100%; }
}

/* Manifesto */
.manifesto {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 8vw;
}

.manifesto__label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.manifesto__count {
    color: var(--sage);
    font-family: var(--serif);
    font-size: 14px;
}

.manifesto__copy h2 {
    max-width: 880px;
    margin-bottom: 42px;
    font-size: clamp(43px, 6.1vw, 92px);
    line-height: 1.17;
    letter-spacing: -0.035em;
}

.manifesto__copy p {
    max-width: 520px;
    margin: 0 0 0 auto;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 2.1;
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(48px, 7vw, 100px);
}

.section-heading h2 {
    margin: 16px 0 0;
    font-size: clamp(45px, 5.2vw, 76px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 2;
}

/* Selected work */
.selected-work {
    padding-top: 20px;
    background: var(--paper);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(40px, 8vw, 130px) clamp(18px, 3vw, 48px);
}

.editorial-project {
    grid-column: span 6;
}

.editorial-project--1 {
    grid-column: 1 / span 7;
}

.editorial-project--2 {
    grid-column: 9 / span 4;
    padding-top: clamp(80px, 12vw, 190px);
}

.editorial-project--3 {
    grid-column: 2 / span 4;
}

.editorial-project--4 {
    grid-column: 7 / span 6;
    padding-top: clamp(70px, 9vw, 140px);
}

.editorial-project--5 {
    grid-column: 1 / span 7;
    padding-top: clamp(40px, 6vw, 100px);
}

.editorial-project--6 {
    grid-column: 9 / span 4;
}

.editorial-project__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e9e6df;
}

.editorial-project__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.editorial-project--2 .editorial-project__image img,
.editorial-project--3 .editorial-project__image img,
.editorial-project--6 .editorial-project__image img {
    aspect-ratio: 4 / 5;
}

.editorial-project__image > span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 11px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.editorial-project.is-demo .editorial-project__image > span {
    opacity: 1;
    transform: none;
}

.editorial-project__image:hover img {
    transform: scale(1.025);
}

.editorial-project__image:hover > span {
    opacity: 1;
    transform: translateY(0);
}

.editorial-project__meta {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 15px;
    padding-top: 17px;
}

.editorial-project__meta > span {
    padding-top: 5px;
    color: var(--sage);
    font-size: 9px;
}

.editorial-project__meta h3 {
    margin: 0 0 3px;
    font-size: clamp(22px, 2.2vw, 35px);
    line-height: 1.2;
}

.editorial-project__meta p {
    margin: 0;
    color: var(--sage);
    font-size: 9px;
    letter-spacing: 0.12em;
}

/* Services */
.services {
    color: var(--white);
    background: var(--sage-dark);
}

.services__inner {
    max-width: 1600px;
    margin-inline: auto;
}

.section-heading--light .eyebrow {
    color: var(--sand);
}

.services .section-heading > p {
    text-align: right;
}

.service-list {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.service-item {
    display: grid;
    grid-template-columns: 60px minmax(230px, 0.9fr) minmax(260px, 1fr) 30px;
    align-items: center;
    gap: 30px;
    min-height: 160px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: inherit;
    text-decoration: none;
    transition: padding 0.3s ease, background 0.3s ease;
}

.service-item:hover,
.service-item:focus-visible {
    padding-right: 20px;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.service-item:focus-visible {
    outline: 1px solid var(--sand);
    outline-offset: 4px;
}

.service-item > span:first-child {
    color: var(--sand);
    font-family: var(--serif);
    font-size: 13px;
}

.service-item h3 {
    margin: 0;
    font-size: clamp(27px, 3vw, 44px);
}

.service-item h3 small {
    display: block;
    margin-top: 7px;
    color: var(--sand);
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.15em;
}

.service-item p {
    justify-self: end;
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.9;
    text-align: left;
}

@media (min-width: 1081px) {
    .service-item {
        grid-template-columns: 60px minmax(230px, 1fr) minmax(0, 60%) 30px;
    }

    .service-item p {
        max-width: none;
    }
}

/* Process */
.process {
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.process-grid article {
    min-height: 320px;
    padding: 38px clamp(24px, 3vw, 50px) 30px;
    border-right: 1px solid var(--line);
}

.process-grid article:first-child {
    padding-left: 0;
}

.process-grid article:last-child {
    border-right: 0;
}

.process-grid span {
    color: var(--sage);
    font-family: var(--serif);
    font-size: 13px;
}

.process-grid h3 {
    margin: 90px 0 18px;
    font-size: clamp(26px, 2.7vw, 40px);
}

.process-grid p {
    max-width: 340px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

/* About */
.about-section {
    display: grid;
    grid-template-columns: 52% 48%;
    min-height: 760px;
    background: #e8e3da;
}

.about-section__image {
    position: relative;
    min-height: 700px;
}

.about-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) brightness(1.05);
}

.about-section__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(40px, 7vw, 120px);
}

.about-section__copy h2 {
    margin: 30px 0 38px;
    font-size: clamp(45px, 5.2vw, 79px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.about-section__copy p {
    max-width: 500px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 14px;
}

.about-section__copy .text-link {
    align-self: flex-start;
    margin-top: 24px;
}
/* User-created home sections */
.home-custom-section {
    overflow: clip;
    padding-right: var(--page);
    padding-left: var(--page);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.home-custom-section--compact {
    padding-top: clamp(48px, 6vw, 88px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.home-custom-section--normal {
    padding-top: var(--section);
    padding-bottom: var(--section);
}

.home-custom-section--spacious {
    padding-top: clamp(120px, 15vw, 220px);
    padding-bottom: clamp(120px, 15vw, 220px);
}

.home-custom-section--white {
    background: var(--white);
}

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

.home-custom-section--sage {
    color: var(--white);
    background: var(--sage-dark);
}

.home-custom-section--dark {
    color: var(--white);
    background: var(--ink);
}

.home-custom-section__inner {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.home-custom-section--contained .home-custom-section__inner {
    max-width: 820px;
}

.home-custom-section--wide .home-custom-section__inner {
    max-width: 1320px;
}

.home-custom-section--full .home-custom-section__inner {
    max-width: none;
}
.home-custom-section__heading {
    max-width: 1000px;
    margin-bottom: clamp(42px, 6vw, 82px);
}

.home-custom-section__heading h2 {
    margin: 16px 0 0;
    font-size: clamp(45px, 5.2vw, 76px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.home-custom-section--sage .eyebrow,
.home-custom-section--dark .eyebrow {
    color: var(--sand);
}

.home-custom-section__content.entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

.home-custom-section__content > *:first-child {
    margin-top: 0;
}

.home-custom-section__content > *:last-child {
    margin-bottom: 0;
}

.home-custom-section__content h2,
.home-custom-section__content h3,
.home-custom-section__content h4 {
    margin-top: 1.2em;
    margin-bottom: 0.55em;
}

.home-custom-section__content h2 {
    font-size: clamp(38px, 4.5vw, 68px);
}

.home-custom-section__content h3 {
    font-size: clamp(28px, 3vw, 44px);
}
.home-custom-section__content p,
.home-custom-section__content li {
    line-height: 1.9;
}

.home-custom-section__content .alignfull {
    width: 100vw;
    max-width: none;
    margin-right: 50%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.home-custom-section__content img,
.home-custom-section__content video {
    height: auto;
}

.home-custom-section--sage a,
.home-custom-section--dark a {
    color: inherit;
}

.home-custom-section__content .wp-block-button__link {
    text-decoration: none;
}

/* Contact */
.contact-section {
    min-height: 740px;
    color: var(--white);
    background: var(--ink);
}

.contact-section .eyebrow {
    color: var(--sand);
}

.contact-section__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: clamp(60px, 8vw, 120px);
}

.contact-section h2 {
    margin: 0;
    font-size: clamp(54px, 8vw, 125px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.circle-link {
    display: flex;
    width: clamp(150px, 15vw, 230px);
    aspect-ratio: 1;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.circle-link i {
    margin-left: 16px;
    font-style: normal;
}

.circle-link:hover {
    color: var(--ink);
    background: var(--white);
    transform: rotate(-5deg);
}

.contact-section__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 90px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-section__meta p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.contact-section__meta a {
    border-bottom: 1px solid;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 30px);
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 120px) var(--page) 30px;
    background: var(--paper);
    isolation: isolate;
}

.site-footer.has-background-image::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    pointer-events: none;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

.site-footer.has-background-image .site-footer__quote-card {
    background: var(--paper);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(460px, 1.28fr);
    gap: clamp(50px, 7vw, 120px);
    padding-bottom: 72px;
}

.site-footer h2 {
    margin: 25px 0 0;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.08;
}

.site-footer__aside {
    min-width: 0;
}

.site-footer__quote-card {
    position: relative;
    display: flex;
    min-height: clamp(290px, 26vw, 390px);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 3vw, 48px);
    border: 1px solid var(--ink);
    background: transparent;
    isolation: isolate;
    transition: color 520ms cubic-bezier(0.22, 1, 0.36, 1), background-color 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__quote-card::before {
    position: absolute;
    z-index: -1;
    right: clamp(-120px, -7vw, -70px);
    bottom: clamp(-150px, -9vw, -90px);
    width: clamp(220px, 22vw, 340px);
    height: clamp(220px, 22vw, 340px);
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.18;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms ease;
}

.site-footer__quote-topline,
.site-footer__quote-bottom {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.site-footer__quote-topline {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__quote-index {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0;
}

.site-footer__quote-title {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 620px;
    margin: clamp(42px, 5vw, 76px) 0;
    font-family: var(--serif);
    font-size: clamp(33px, 3.7vw, 60px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.08;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__quote-bottom {
    align-items: flex-end;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__quote-copy {
    max-width: 360px;
    color: var(--sage-dark);
    font-size: 12px;
    line-height: 1.7;
    transition: color 360ms ease;
}

.site-footer__quote-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.site-footer__quote-button i {
    display: inline-grid;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    font-family: var(--sans);
    font-size: 16px;
    font-style: normal;
    transition: color 520ms ease, background-color 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible {
    color: var(--paper);
    background: var(--ink);
    outline: 0;
    box-shadow: 0 24px 60px rgba(29, 33, 30, 0.16);
    transform: translateY(-6px);
}

.site-footer__quote-card:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 4px;
}

.site-footer.has-hover-animation .site-footer__quote-card:hover .site-footer__quote-topline,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible .site-footer__quote-topline {
    transform: translateX(6px);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover .site-footer__quote-title,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible .site-footer__quote-title {
    transform: translateX(10px);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover .site-footer__quote-bottom,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible .site-footer__quote-bottom {
    transform: translateY(-4px);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover::before,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible::before {
    opacity: 0.35;
    transform: scale(1.12);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover .site-footer__quote-copy,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible .site-footer__quote-copy {
    color: var(--sand);
}

.site-footer.has-hover-animation .site-footer__quote-card:hover .site-footer__quote-button i,
.site-footer.has-hover-animation .site-footer__quote-card:focus-visible .site-footer__quote-button i {
    color: var(--ink);
    background: var(--sand);
    transform: rotate(45deg);
}

.site-footer__contact {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    text-align: right;
}

.site-footer__contact a {
    border-bottom: 1px solid;
    font-family: var(--serif);
    font-size: clamp(17px, 1.8vw, 27px);
}

.site-footer__contact p {
    margin: 0 0 0 auto;
    color: var(--sage);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 28px;
}

/* Archive */
.portfolio-archive,
.standard-page {
    min-height: 80vh;
    padding: calc(var(--header-height) + 80px) var(--page) var(--section);
}

.archive-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 50px;
    align-items: start;
    padding: 80px 0 100px;
}

.archive-hero__title h1,
.page-intro h1 {
    margin: 0 0 25px;
    font-size: clamp(70px, 10vw, 158px);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.archive-hero__title p {
    max-width: 520px;
    margin: 0 0 0 auto;
    color: var(--ink-soft);
    font-size: 14px;
}

.archive-hero__background {
    position: absolute;
    z-index: 0;
    inset: 0 calc(var(--page) * -1);
    overflow: hidden;
}

.archive-hero__background .starlight-slider__viewport,
.archive-hero__background .starlight-slider__track,
.archive-hero__media,
.archive-hero__media img,
.archive-hero__media video {
    width: 100%;
    height: 100%;
}

.archive-hero__media {
    min-height: 0;
    overflow: hidden;
}

.archive-hero__media img,
.archive-hero__media video {
    object-fit: cover;
    object-position: var(--archive-focus-x, 50%) var(--archive-focus-y, 50%);
}

.archive-hero.has-background::after {
    position: absolute;
    z-index: 1;
    inset: 0 calc(var(--page) * -1);
    content: "";
    background: rgba(15, 18, 16, var(--archive-overlay-opacity, 0.3));
    pointer-events: none;
}

.archive-hero.has-background > .eyebrow,
.archive-hero.has-background > .archive-hero__title {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.archive-hero.has-background .archive-hero__title p {
    color: inherit;
}

.archive-hero__dots {
    bottom: 22px;
}

.work-filter-stack {
    margin-bottom: clamp(56px, 6vw, 88px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.work-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 14px;
    padding: 24px 0;
}

.work-filters + .work-filters {
    border-top: 1px solid var(--line);
}

.work-filters__label {
    min-width: 104px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.work-filters a {
    position: relative;
    display: inline-block;
    color: var(--sage);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.work-filters a.is-active,
.work-filters a:hover {
    color: var(--ink);
}

.work-filters a.is-active::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    left: -4px;
    height: 5px;
    border-radius: 45% 55% 48% 52%;
    content: "";
    background: rgba(218, 48, 39, 0.78);
    -webkit-clip-path: polygon(0 42%, 7% 20%, 18% 31%, 31% 12%, 45% 25%, 60% 8%, 75% 24%, 89% 15%, 100% 34%, 98% 82%, 84% 72%, 69% 91%, 54% 76%, 39% 94%, 23% 77%, 9% 90%, 1% 70%);
    clip-path: polygon(0 42%, 7% 20%, 18% 31%, 31% 12%, 45% 25%, 60% 8%, 75% 24%, 89% 15%, 100% 34%, 98% 82%, 84% 72%, 69% 91%, 54% 76%, 39% 94%, 23% 77%, 9% 90%, 1% 70%);
    pointer-events: none;
    transform: rotate(-1.4deg) scaleX(1.03);
    transform-origin: center;
}

.work-type-description {
    padding: clamp(24px, 3vw, 36px) 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.work-filter-stack.has-type-description {
    border-bottom: 0;
}

.work-type-description__label {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.6;
    text-transform: uppercase;
}

.work-type-description__content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(17px, 1.6vw, 21px);
    letter-spacing: 0.025em;
    line-height: 1.9;
}

.work-type-description__content p {
    margin: 0;
}

.work-type-description__content p + p {
    margin-top: 0.75em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(50px, 7vw, 100px) clamp(18px, 3vw, 44px);
}

.project-card:nth-child(3n + 2) {
    padding-top: 80px;
}

.project-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e8e5de;
}

.project-card__image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.single-project .entry-content img[data-lightbox-src] {
    cursor: zoom-in;
}

.project-card:nth-child(4n + 1) .project-card__image img {
    aspect-ratio: 5 / 4;
}

.project-card__image:hover img {
    transform: scale(1.025);
}

.project-card__view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card__image:hover .project-card__view {
    opacity: 1;
    transform: translateY(0);
}

.project-card__empty {
    display: grid;
    aspect-ratio: 4 / 5;
    place-items: center;
    color: var(--sage);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.project-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
}

.project-card__meta > span,
.project-card__meta div > span {
    color: var(--sage);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card__meta h3 {
    margin: 4px 0 0;
    font-size: clamp(21px, 2vw, 30px);
}

.archive-pagination {
    margin-top: 90px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.nav-links .page-numbers {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    font-size: 11px;
}

.nav-links .current {
    color: var(--white);
    background: var(--ink);
}

.empty-portfolio {
    max-width: 750px;
    margin: 40px auto;
    padding: 90px 30px;
    text-align: center;
}

.empty-portfolio > span {
    color: var(--sage);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.empty-portfolio h2 {
    margin: 22px 0;
    font-size: clamp(42px, 6vw, 78px);
}

.empty-portfolio p {
    max-width: 520px;
    margin: 0 auto 30px;
    color: var(--ink-soft);
}

/* Single project */
.single-project {
    padding-top: calc(var(--header-height) + 80px);
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 70px;
    align-items: end;
    padding: 80px var(--page) 70px;
}

.project-hero__title h1 {
    max-width: 1000px;
    margin: 22px 0 18px;
    font-size: clamp(62px, 9vw, 145px);
    font-size: clamp(48px, 9vw, var(--project-title-size, 145px));
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.project-hero__title p {
    margin: 0;
    color: var(--sage);
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 28px);
    font-size: clamp(16px, 2vw, var(--project-subtitle-size, 28px));
    font-style: italic;
}

.project-hero__play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 13px 18px;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: color 0.25s ease, background 0.25s ease;
}

.project-hero__play:hover,
.project-hero__play:focus-visible {
    color: var(--white);
    background: var(--ink);
}

.project-hero__play i {
    font-size: 8px;
    font-style: normal;
}

.project-facts {
    margin: 0;
    border-top: 1px solid var(--line);
}

.project-facts > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.project-facts dt {
    color: var(--sage);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    font-size: 12px;
}

.project-cover {
    margin: 0;
    padding: 0 var(--page);
}

.project-cover img {
    max-height: 85vh;
    object-fit: cover;
}

.project-story {
    padding: var(--section) var(--page);
}

.project-story .entry-content {
    max-width: none;
    font-family: var(--serif);
    font-size: clamp(20px, 2.2vw, 32px);
    font-size: clamp(17px, 2.2vw, var(--project-intro-size, 32px));
    line-height: 1.75;
}

.project-story .entry-content > *:first-child {
    margin-top: 0;
}

.project-story .entry-content p {
    max-width: 850px;
    margin-right: auto;
    margin-bottom: 1.2em;
    margin-left: auto;
}

.project-story .entry-content .wp-block-gallery,
.project-story .entry-content .wp-block-jetpack-tiled-gallery,
.project-story .entry-content .tiled-gallery {
    position: relative;
    width: var(--project-gallery-width, 100%);
    max-width: 100%;
    margin: 50px auto;
    background: var(--project-gallery-background, transparent);
    box-shadow: 0 0 0 100vmax var(--project-gallery-background, transparent);
    clip-path: inset(0 -100vmax);
}

.project-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 30px);
    width: var(--project-gallery-width, 100%);
    margin: 0 auto var(--section);
    padding: 0;
    background: var(--project-gallery-background, transparent);
    box-shadow: 0 0 0 100vmax var(--project-gallery-background, transparent);
    clip-path: inset(0 -100vmax);
}

.project-embed {
    margin: 0 var(--page) var(--section);
}

.project-embed__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
}

.project-embed__header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 400;
}

.project-embed__header a,
.project-embed__fallback a {
    color: inherit;
    text-underline-offset: 4px;
}

.project-embed__frame {
    height: var(--project-embed-height, 800px);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.project-embed__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-embed__fallback {
    margin: 10px 0 0;
    color: var(--sage);
    font-size: 11px;
}

.project-gallery__item {
    grid-column: span 6;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-gallery__item:nth-child(5n + 1) {
    grid-column: 1 / -1;
}

.project-gallery__item:nth-child(5n + 2) {
    grid-column: 1 / span 5;
}

.project-gallery__item:nth-child(5n + 3) {
    grid-column: 7 / span 6;
    margin-top: 11vw;
}

.project-gallery__item:nth-child(5n + 4) {
    grid-column: 2 / span 7;
    margin-top: 8vw;
}

.project-gallery__item:nth-child(5n + 5) {
    grid-column: 9 / span 4;
    align-self: end;
}

.project-gallery__item img {
    max-height: 92vh;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-gallery__item.is-video {
    position: relative;
    min-height: min(68vw, 82vh);
    background: #111;
}

.project-video__poster {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-gallery__item.is-video video {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    background: #111;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-gallery__item.is-video.is-video-ready .project-video--ambient {
    opacity: 1;
}

.project-gallery__item.is-video.is-video-ready .project-video__poster {
    visibility: hidden;
    opacity: 0;
}

.project-gallery__item.is-video.is-video-unavailable .project-video--ambient {
    opacity: 0;
}

.project-video__label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.project-video__label i {
    font-size: 8px;
    font-style: normal;
}

.project-video-jump {
    position: fixed;
    z-index: 900;
    right: clamp(18px, 3vw, 48px);
    bottom: clamp(18px, 3vw, 42px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 14px 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--project-video-jump-radius, 0);
    color: var(--white);
    background: rgba(29, 33, 30, var(--project-video-jump-opacity, 0.92));
    box-shadow: var(--project-video-jump-shadow, 0 12px 35px rgba(0, 0, 0, 0.2));
    font-size: var(--project-video-jump-font-size, 11px);
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.project-video-jump i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: var(--sand);
    font-size: 14px;
    font-style: normal;
}

.project-video-jump:hover,
.project-video-jump:focus-visible {
    background: var(--ink);
}

.project-video-jump:focus-visible {
    outline: 2px solid var(--sand);
    outline-offset: 3px;
}

.project-video-jump.is-target-visible {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

#project-video {
    scroll-margin-top: 110px;
}

.project-gallery__item:hover img {
    transform: scale(1.012);
}

.project-end {
    display: grid;
    grid-template-columns: 28% 1fr;
    gap: 60px;
    align-items: center;
    margin: 0 var(--page);
    padding: 70px 0 var(--section);
    border-top: 1px solid var(--line);
}

.project-end > span {
    color: var(--sage);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-end a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 30px;
}

.project-end a small {
    grid-column: 1;
    color: var(--sage);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-end a strong {
    grid-column: 1;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 76px);
    font-weight: 400;
}

.project-end a > span {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 28px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    place-items: center;
    padding: 60px 20px 40px;
    color: var(--white);
    background: rgba(16, 18, 16, 0.96);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img,
.lightbox video,
.lightbox iframe {
    grid-column: 2;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
}

.lightbox video {
    width: min(100%, 1500px);
}

.lightbox iframe {
    width: min(100%, 1500px);
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.lightbox img[hidden],
.lightbox video[hidden],
.lightbox iframe[hidden] {
    display: none;
}

.lightbox button {
    padding: 10px;
    border: 0;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    font-size: 24px;
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 18px;
}

.lightbox__previous {
    grid-column: 1;
    grid-row: 1;
}

.lightbox__next {
    grid-column: 3;
    grid-row: 1;
}

.lightbox__count {
    position: absolute;
    bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
}

/* Generic content */
.page-intro {
    max-width: 1100px;
    padding: 50px 0 90px;
}

.entry-content {
    max-width: 820px;
    margin: 0 auto;
}

.entry-content > * {
    max-width: 100%;
}

.entry-content .alignwide {
    width: min(1200px, calc(100vw - var(--page) * 2));
    max-width: none;
    margin-right: 50%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-list {
    max-width: 980px;
    margin: 0 auto;
}

.post-summary {
    padding: 45px 0;
    border-top: 1px solid var(--line);
}

.post-summary > span {
    color: var(--sage);
    font-size: 10px;
}

.post-summary h2 {
    margin: 10px 0;
    font-size: clamp(34px, 4vw, 60px);
}

.not-found {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) var(--page);
    text-align: center;
}

.not-found h1 {
    margin: 30px 0 45px;
    font-size: clamp(55px, 9vw, 130px);
    line-height: 1;
}

.not-found p {
    max-width: 620px;
    margin: -20px 0 38px;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1080px) {
    :root {
        --header-height: 76px;
    }

    /* Disable the header blur while its fixed mobile overlay is open. */
    body.menu-open .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .header-inquiry {
        display: none;
    }

    .menu-toggle {
        z-index: 2;
        display: grid;
        grid-template-columns: auto 24px;
        gap: 0 12px;
        align-items: center;
        padding: 8px 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .menu-toggle span {
        grid-row: 1 / span 2;
    }

    .menu-toggle i {
        display: block;
        width: 24px;
        height: 1px;
        background: currentColor;
        transition: transform 0.25s ease;
    }

    .menu-toggle[aria-expanded="true"] i:first-of-type {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] i:last-of-type {
        transform: translateY(-3px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: grid;
        width: 100%;
        height: 100%;
        padding-top: var(--header-height);
        justify-self: stretch;
        place-items: start center;
        background: var(--paper);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .site-menu {
        flex-direction: column;
        gap: 12px;
    }

    .site-menu a {
        font-family: var(--serif);
        font-size: clamp(32px, 7vw, 56px);
        font-weight: 400;
        letter-spacing: 0;
    }

    .site-menu > .menu-item-has-children {
        text-align: center;
    }

    .site-menu > .menu-item-has-children > a {
        display: inline-block;
        padding-right: 19px;
    }

    .site-menu .sub-menu {
        position: static;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-menu .sub-menu a {
        padding: 1px 0;
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.08em;
    }

    .site-menu .menu-item-has-children:hover > .sub-menu,
    .site-menu .menu-item-has-children:focus-within > .sub-menu {
        transform: none;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 45px minmax(220px, 0.8fr) 1fr 20px;
        gap: 18px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card:nth-child(3n + 2) {
        padding-top: 0;
    }

    .project-card:nth-child(even) {
        padding-top: 70px;
    }
}

@media (max-width: 760px) {
    :root {
        --section: 88px;
    }

    .site-brand__text strong {
        max-width: 170px;
        font-size: 15px;
    }

    .hero {
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .hero__copy {
        min-height: 68svh;
        order: 2;
        padding: 65px var(--page) 25px;
    }

    .hero__copy h1 {
        margin-top: 28px;
        font-size: clamp(49px, 15vw, 72px);
    }

    .hero__visual {
        min-height: 62svh;
        order: 1;
    }

    .hero__scroll {
        display: none;
    }

    .hero__note {
        margin-top: 50px;
    }

    .hero__controls {
        right: 14px;
        left: 14px;
    }

    .starlight-slider__button {
        width: 42px;
        height: 42px;
    }

    .hero__dots {
        right: auto;
        bottom: 20px;
        left: 16px;
        max-width: calc(100% - 115px);
        gap: 4px;
        transform: none;
    }

    .hero__dots button {
        width: 17px;
    }

    .hero__slide-title {
        bottom: 54px;
        left: 16px;
        max-width: calc(100% - 32px);
        font-size: 21px;
    }

    .hero__visual .demo-badge {
        right: 16px;
        bottom: 54px;
    }

    .starlight-content-slider .starlight-slider__track {
        aspect-ratio: 4 / 3;
    }

    .starlight-content-slider .starlight-slider__controls {
        right: 12px;
        left: 12px;
    }

    .starlight-content-slider .starlight-slider__dots {
        bottom: 12px;
    }

    .manifesto {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .manifesto__label {
        min-height: 0;
        flex-direction: row;
    }

    .manifesto__copy h2 {
        font-size: clamp(39px, 12vw, 60px);
    }

    .manifesto__copy p {
        margin-left: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .editorial-grid {
        display: block;
    }

    .editorial-project {
        margin-bottom: 64px;
        padding-top: 0;
    }

    .editorial-project:nth-child(even) {
        width: 83%;
        margin-left: auto;
    }

    .editorial-project__meta h3 {
        font-size: 25px;
    }

    .service-item {
        grid-template-columns: 35px 1fr 20px;
        gap: 15px;
        padding: 30px 0;
    }

    .service-item > p {
        grid-column: 2 / -1;
    }

    .service-item:hover,
    .service-item:focus-visible {
        padding-right: 0;
        padding-left: 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid article,
    .process-grid article:first-child {
        min-height: auto;
        padding: 35px 0 45px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .process-grid h3 {
        margin-top: 35px;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-section__image {
        min-height: 65svh;
    }

    .about-section__copy {
        padding: 75px var(--page) 90px;
    }

    .contact-section {
        min-height: auto;
    }

    .contact-section__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .circle-link {
        align-self: flex-end;
    }

    .contact-section__meta {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 65px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        padding-bottom: 65px;
    }

    .site-footer__quote-card {
        min-height: 380px;
    }

    .site-footer__quote-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__quote-button {
        width: 100%;
        justify-content: space-between;
    }

    .site-footer__contact {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .site-footer__contact p {
        margin-left: 0;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .archive-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0 70px;
    }

    .archive-hero__title h1,
    .page-intro h1 {
        font-size: clamp(62px, 20vw, 95px);
    }

    .archive-hero__title p {
        margin-left: 0;
    }

    .work-filters {
        column-gap: 24px;
        row-gap: 12px;
        padding: 20px 0;
    }

    .work-filters__label {
        min-width: 0;
        flex-basis: 100%;
        margin-bottom: 2px;
        font-size: 10px;
    }

    .work-filters a {
        font-size: 15px;
    }

    .work-type-description {
        padding: 24px 0;
    }

    .work-type-description__label {
        font-size: 10px;
    }

    .work-type-description__content {
        font-size: 17px;
        line-height: 1.8;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-top: 0;
    }

    .project-card__image {
        aspect-ratio: var(--project-card-ratio, 4 / 5);
    }

    .project-card__image img,
    .project-card:nth-child(4n + 1) .project-card__image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        contain-intrinsic-size: none;
        object-fit: contain;
    }

    .project-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 40px;
    }

    .project-hero__title h1 {
        font-size: clamp(56px, 17vw, 90px);
        font-size: clamp(44px, 14vw, min(var(--project-title-size, 90px), 90px));
    }

    .project-cover {
        padding: 0;
    }

    .project-cover img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
    }

    .project-story {
        padding-right: var(--page);
        padding-left: var(--page);
    }

    .project-story .entry-content .wp-block-gallery,
    .project-story .entry-content .wp-block-jetpack-tiled-gallery,
    .project-story .entry-content .tiled-gallery {
        width: 100%;
    }

    .project-gallery {
        display: block;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .project-embed {
        margin-right: 0;
        margin-left: 0;
    }

    .project-embed__header,
    .project-embed__fallback {
        margin-right: var(--page);
        margin-left: var(--page);
    }

    .project-embed__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .project-embed__frame {
        height: min(var(--project-embed-height, 800px), 75vh);
        height: min(var(--project-embed-height, 800px), 75svh);
    }

    .project-gallery__item {
        display: block;
        width: 100%;
        margin: 0 0 14px !important;
    }

    .project-gallery__item:not(.is-video) img,
    .project-story .entry-content > .wp-block-image img,
    .project-story .entry-content > .wp-block-video video {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
    }

    .project-gallery__item.is-video {
        width: 100%;
        min-height: 0;
        aspect-ratio: var(--project-media-ratio, 16 / 9);
    }

    .project-gallery__item.is-video .project-video__poster,
    .project-gallery__item.is-video video {
        object-fit: contain;
    }

    .project-gallery__item:nth-child(3n + 2) {
        width: 100%;
    }

    .project-end {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding-right: 0;
        padding-left: 0;
    }
}

/* Short landscape phones use the original horizontal header navigation. */
@media (max-width: 1080px) and (max-height: 600px) and (orientation: landscape) {
    body.menu-open {
        overflow: auto;
    }

    .site-header__inner {
        grid-template-columns: minmax(210px, 1fr) auto minmax(100px, 1fr);
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: block;
        width: auto;
        height: auto;
        padding-top: 0;
        justify-self: center;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
    }

    .site-menu {
        flex-direction: row;
        gap: clamp(14px, 2.4vw, 30px);
    }

    .site-menu a {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.13em;
    }

    .site-menu > .menu-item-has-children {
        text-align: left;
    }

    .site-menu > .menu-item-has-children > a {
        display: block;
        padding: 8px 15px 8px 0;
    }

    .site-menu .sub-menu {
        position: absolute;
        min-width: 168px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 13px 18px 10px;
        border: 1px solid var(--line);
        background: rgba(247, 246, 241, 0.98);
        box-shadow: 0 18px 45px rgba(29, 33, 30, 0.11);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 8px);
    }

    .site-menu .sub-menu a {
        padding: 7px 5px;
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.13em;
    }

    .site-menu .menu-item-has-children:hover > .sub-menu,
    .site-menu .menu-item-has-children:focus-within > .sub-menu {
        transform: translate(-50%, 0);
    }

    .header-inquiry {
        display: flex;
        gap: 8px;
        font-size: 10px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
