:root {
    --teal: #0f4b43;
    --teal-deep: #07342f;
    --cyan: #a7ebe6;
    --lime: #c6ef9d;
    --violet: #6655c8;
    --ink: #102d2a;
    --paper: #f6f2e9;
    --white: #fffdf8;
    --line: rgba(198, 239, 157, .42);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
    --content-max: 1280px;
    --page-gutter: clamp(1rem, 4vw, 4rem);
    --content-width: min(var(--content-max), calc(100% - (2 * var(--page-gutter))));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    color: var(--white);
    background: var(--teal);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: clip;
}
@supports not (overflow: clip) {
    html, body { overflow-x: hidden; }
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: .75rem 1rem;
    color: var(--ink);
    background: var(--lime);
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: relative;
    z-index: 3;
    border-bottom: 1px solid var(--line);
}
.site-header__inner,
.site-footer__inner,
.page-shell,
.gallery-section__inner,
.project-detail__inner,
.hero-section,
.page-intro {
    width: var(--content-width);
    margin-inline: auto;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 92px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: .03em;
}
.brand__mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    color: var(--teal);
    background: var(--lime);
    border: 1px solid var(--white);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.brand__text { overflow-wrap: anywhere; }
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem .9rem;
}
.site-nav a,
.menu-toggle {
    padding: .55rem .75rem;
    border: 1px solid transparent;
    color: var(--white);
    background: transparent;
    font: inherit;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: var(--lime);
    outline: none;
}
.site-nav a.is-active { color: var(--lime); }
.menu-toggle { display: none; cursor: pointer; }

.site-decor {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.thread-line {
    position: absolute;
    width: 42vw;
    border-top: 1px solid var(--line);
    transform: rotate(-32deg);
    transform-origin: left center;
}
.thread-line--one { top: 13rem; left: -2rem; }
.thread-line--two { top: 20rem; right: -10rem; transform: rotate(28deg); }
.site-main { position: relative; z-index: 1; min-height: 70vh; }
.page-shell { padding: 5rem 0 7rem; }
.page-shell--full { width: 100%; padding-top: 0; }

.ccm-page h1,
.ccm-page h2,
.ccm-page h3,
.page-shell h1,
.page-shell h2,
.page-shell h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}
.page-shell h1 { font-size: clamp(3rem, 7vw, 6.5rem); margin: 0 0 1.5rem; }
.page-shell h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.page-shell h3 { font-size: 1.5rem; }
.page-shell p { max-width: 62ch; }

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
    min-height: 0;
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
}
.hero-section > * { min-width: 0; }
.hero-section__eyebrow,
.eyebrow {
    margin: 0 0 1rem;
    color: var(--lime);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}
.hero-section__intro { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.hero-section__image,
.gallery-card__frame,
.project-detail__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: .75rem;
    overflow: hidden;
    background: var(--cyan);
    border: 1px solid var(--white);
}
.hero-section__image { aspect-ratio: 4 / 5; }
.hero-section__image img,
.gallery-card__frame img,
.project-detail__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--teal-deep);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .8rem 1.15rem;
    color: var(--teal);
    background: var(--lime);
    border: 1px solid var(--lime);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.button:hover,
.button:focus-visible { color: var(--white); background: var(--violet); border-color: var(--violet); outline: none; transform: translateY(-2px); }

.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    padding: 0 0 clamp(5rem, 9vw, 8rem);
}
.page-intro > * { min-width: 0; }
.page-intro h2 { max-width: 12ch; margin: 0; }
.page-intro__copy { font-size: 1.2rem; }

.gallery-section {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
    color: var(--ink);
    background: var(--paper);
}
.gallery-section__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .6fr);
    align-items: end;
    gap: clamp(2rem, 7vw, 8rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.gallery-section__intro > * { min-width: 0; }
.gallery-section__intro h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--teal);
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}
.gallery-section__intro > p { max-width: 34ch; margin: 0; font-size: 1.05rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem) 1.5rem;
}
.gallery-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}
.gallery-card__link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.gallery-card__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-color: var(--cyan);
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card__frame--portrait { aspect-ratio: 3 / 4; }
.gallery-card__frame--square { aspect-ratio: 1; }
.gallery-card__link:hover .gallery-card__frame,
.gallery-card__link:focus-visible .gallery-card__frame {
    transform: translateY(-.35rem);
    box-shadow: .55rem .55rem 0 var(--violet);
}
.gallery-card__caption {
    margin: 0;
    color: var(--teal);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}
.gallery-card__meta {
    margin: -.4rem 0 0;
    color: #42645f;
    font-size: .9rem;
    letter-spacing: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.project-detail {
    min-height: 70vh;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 9rem);
    color: var(--ink);
    background: var(--paper);
}
.project-detail__back {
    display: inline-flex;
    margin-bottom: clamp(3rem, 7vw, 6rem);
    color: #42645f;
    font-size: .85rem;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}
.project-detail__back:hover,
.project-detail__back:focus-visible { color: var(--violet); outline: none; }
.project-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}
.project-detail__grid > * { min-width: 0; }
.project-detail__copy h1 {
    max-width: 14ch;
    margin: 0 0 1.5rem;
    color: var(--teal);
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}
.project-detail__copy p { max-width: 48ch; font-size: 1.15rem; }
.project-detail__image {
    min-height: min(540px, 68vh);
    padding: 1rem;
    border-color: var(--teal);
}
.project-detail__image img { height: auto; max-height: min(68vh, 760px); }
.project-sequence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 75, 67, .25);
}
.project-sequence a { color: var(--teal); text-decoration: none; }
.project-sequence a:hover,
.project-sequence a:focus-visible { color: var(--violet); outline: none; }
.project-sequence__link--next { text-align: right; }
.project-sequence__label { display: block; margin-bottom: .35rem; color: #42645f; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.project-sequence__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0 2.5rem;
    color: var(--lime);
    font-size: .85rem;
}
.site-footer__meta { margin: 0; }

@media (max-width: 900px) {
    .site-header__inner,
    .site-footer__inner,
    .page-shell,
    .gallery-section__inner,
    .project-detail__inner,
    .hero-section,
    .page-intro { width: min(100% - 3rem, 680px); }
    .site-header__inner { flex-wrap: wrap; min-height: 76px; padding: .75rem 0; }
    .menu-toggle { display: block; }
    .site-nav { display: none; width: 100%; padding-bottom: .5rem; }
    .site-nav.is-open { display: grid; }
    .site-nav a { width: 100%; }
    .hero-section,
    .page-intro,
    .project-detail__grid,
    .gallery-section__intro { grid-template-columns: 1fr; gap: 3rem; }
    .hero-section { padding: 4rem 0 6rem; }
    .hero-section__image { max-width: 520px; }
    .page-intro { align-items: start; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-detail__image { min-height: 0; }
    .project-detail__image img { max-height: none; }
}
@media (max-width: 560px) {
    .site-header__inner,
    .site-footer__inner,
    .page-shell,
    .gallery-section__inner,
    .project-detail__inner,
    .hero-section,
    .page-intro { width: calc(100% - 2rem); }
    .brand { font-size: 1.3rem; }
    .brand__mark { width: 2.25rem; height: 2.25rem; }
    .hero-section { padding: 3.5rem 0 5rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 3rem; }
    .gallery-card__caption { font-size: 1.35rem; }
    .project-sequence { grid-template-columns: 1fr; }
    .project-sequence__link--next { text-align: left; }
    .site-footer__inner { display: block; }
    .site-footer__meta { margin-top: .75rem; }
}
@media (max-width: 340px) {
    .site-header__inner,
    .site-footer__inner,
    .page-shell,
    .gallery-section__inner,
    .project-detail__inner,
    .hero-section,
    .page-intro { width: calc(100% - 1.5rem); }
    .brand { font-size: 1.15rem; }
    .hero-section__intro,
    .project-detail__copy p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
