/* ==========================================================================
   Casey & Meaney Construction — brand system
   ==========================================================================
   Authentic Casey & Meaney identity: clean white, strong charcoal type and
   the logo's own teal. Editorial, architectural, confident — and readable.
   Type: Archivo (display) · Inter (body) · IBM Plex Mono (labels/numbers).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */

:root {
    --paper: #F8F7F2;        /* clean warm off-white — bright, not beige */
    --paper-2: #F1EFE9;      /* light warm grey for alternating sections */
    --white: #FFFFFF;
    --ink: #12181D;          /* strong blue-black charcoal — matches the logo navy */
    --ink-2: #26323A;
    --slate: #58646D;        /* cool blue-grey, from the logo's slate */
    --line: rgba(18, 24, 29, 0.14);
    --line-strong: rgba(18, 24, 29, 0.3);
    --line-ink: rgba(248, 247, 242, 0.18);
    --brand: #083C50;        /* THE logo colour — deep teal-navy (41% of logo) */
    --brand-deep: #043850;   /* logo's darkest shade */
    --brand-light: #487080;  /* logo's mid steel-blue, for detail on dark fields */
    --brand-mist: #D8E0E0;   /* logo's pale highlight, for subtle fills */
    --sage: #083C50;         /* legacy aliases → logo teal */
    --sage-deep: #043850;
    --on-ink: #F8F7F2;
    --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
    --wrap: 1320px;
    --gutter: clamp(20px, 4vw, 48px);
    --sec: clamp(78px, 12vw, 138px);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------ base */

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

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

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.68;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

p {
    margin: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.012em;
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

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

/* ------------------------------------------------------------- utilities */

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.mono {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.label-rule {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: var(--slate);
}

.label-rule::after {
    content: "";
    height: 1px;
    flex: 0 1 64px;
    background: var(--line-strong);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 1.1rem 1.75rem;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn .arrow {
    transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn--outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.btn--outline:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
}

.btn--sage {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
}

.btn--sage:hover {
    background: transparent;
    color: var(--sage-deep);
    border-color: var(--sage-deep);
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 300;
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: top 0.2s ease;
    visibility: hidden;
}

.skip-link:focus {
    top: 12px;
    visibility: visible;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: 78px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    /* Default ivory bar: on inner pages the header sits over dark hero
       bands, so it must be visible immediately — never transparent there. */
    background: rgba(248, 247, 242, 0.96);
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
        height 0.4s var(--ease);
    --hd-ink: var(--ink);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.site-header.is-scrolled {
    height: 66px;
    background: rgba(248, 247, 242, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
    transition: filter 0.4s ease;
}

/* Over the hero on the home page the header sits on photography:
   everything — logo included — renders in ivory. */
.page-home .site-header:not(.is-scrolled) {
    --hd-ink: var(--on-ink);
    background: transparent; /* only transparent over the home hero photo */
    border-bottom-color: rgba(243, 239, 230, 0.2);
}

.page-home .site-header:not(.is-scrolled) .main-nav a {
    text-shadow: 0 1px 10px rgba(14, 17, 16, 0.55);
}

/* Over the hero the brand logo sits on a soft ivory chip so it never
   washes out against the photography — always the real logo, always legible. */
.page-home .site-header:not(.is-scrolled) .logo {
    background: rgba(248, 247, 242, 0.94);
    border-radius: 4px;
    padding: 6px 10px;
    box-shadow: 0 2px 14px rgba(14, 17, 16, 0.25);
}

.page-home .site-header:not(.is-scrolled) .logo img {
    filter: none;
    opacity: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.6vw, 2.6rem);
}

.main-nav a {
    position: relative;
    z-index: 0;
    font-family: var(--display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hd-ink);
    padding: 0.55rem 0.9rem;
    margin: -0.55rem -0.9rem; /* larger hit area, same visual spacing */
    border-radius: 999px;
    opacity: 0.9;
    transition: opacity 0.25s ease, color 0.25s ease,
        transform 0.3s var(--ease);
}

/* Soft brand pill that fills behind the link on hover — distinct and clear. */
.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    background: var(--brand-mist);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--brand);
    opacity: 1;
}

.main-nav a:hover {
    transform: translateY(-1px);
}

.main-nav a:hover::before,
.main-nav a.is-active::before {
    opacity: 1;
    transform: none;
}

/* The thin underline marks the current page only. */
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.main-nav .btn {
    position: relative;
    border-color: var(--hd-ink);
    color: var(--hd-ink);
    background: transparent;
    margin: 0;
    padding: 0.72rem 1.6rem 0.72rem 1.25rem;
}

/* Revealed arrow keeps the button width stable. */
.main-nav .btn::after {
    content: "→";
    display: inline-block;
    margin-left: 0.55rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
    font-family: var(--display);
}

.main-nav .btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(8, 60, 80, 0.28);
}

.main-nav .btn:hover::after {
    opacity: 1;
    transform: none;
}

/* Over the hero the header CTA keeps its light-on-photo treatment. */
.page-home .site-header:not(.is-scrolled) .main-nav .btn:hover {
    background: var(--hd-ink);
    border-color: var(--hd-ink);
    color: var(--ink);
    box-shadow: 0 12px 26px rgba(14, 17, 16, 0.3);
}

/* On the transparent hero, links keep the quiet underline — no pill. */
.page-home .site-header:not(.is-scrolled) .main-nav a::before {
    display: none;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--hd-ink);
}

.nav-toggle .bars {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

.nav-toggle .bars span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

body.menu-open .nav-toggle .bars span:first-child {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .nav-toggle .bars span:nth-child(2) {
    opacity: 0;
}

body.menu-open .nav-toggle .bars span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------- mobile menu */

.m-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--ink);
    color: var(--on-ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(78px + 5vh) var(--gutter) 5vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition: opacity 0.45s var(--ease), visibility 0.45s, transform 0.45s var(--ease);
    overflow-y: auto;
}

body.menu-open .m-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.m-menu nav {
    display: flex;
    flex-direction: column;
}

.m-menu nav a {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.55rem 0;
    font-family: var(--display);
    font-size: clamp(2rem, 9vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--on-ink);
    border-bottom: 1px solid var(--line-ink);
    transition: color 0.25s ease, padding-left 0.3s var(--ease);
}

.m-menu nav a .n {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--brand-light);
}

.m-menu nav a:hover {
    color: var(--brand-light);
    padding-left: 0.6rem;
}

.m-menu .m-foot {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line-ink);
}

.m-menu .m-foot .btn {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.m-menu .m-foot .btn:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.m-menu .m-foot .mono,
.m-menu .m-foot a {
    color: var(--on-ink);
    opacity: 0.85;
}

.m-menu .m-foot .big-phone {
    font-family: var(--display);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    opacity: 1;
}

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

.section {
    padding-top: var(--sec);
    padding-bottom: var(--sec);
}

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

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

.section--ink {
    background: var(--ink);
    color: var(--on-ink);
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.6rem, 6vw, 5rem);
}

.sec-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    letter-spacing: -0.015em;
    max-width: 14ch;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
}

.hero-media {
    position: absolute;
    top: -8%;
    bottom: -8%;
    left: 0;
    right: 0;
    will-change: transform;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
    transform: scale(1.03);
    will-change: transform;
    transition: transform 12s var(--ease);
}

.hero.is-zoom .hero-media img {
    transform: scale(1.085);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(16, 19, 18, 0.5) 0%, rgba(16, 19, 18, 0.24) 46%, rgba(16, 19, 18, 0.05) 72%),
        linear-gradient(0deg, rgba(16, 19, 18, 0.62) 0%, rgba(16, 19, 18, 0.16) 44%, rgba(16, 19, 18, 0) 76%),
        linear-gradient(180deg, rgba(16, 19, 18, 0.4) 0%, rgba(16, 19, 18, 0) 22%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 140px;
    padding-bottom: clamp(64px, 10vh, 120px);
}

.hero-content .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    color: rgba(243, 239, 230, 0.78);
    margin-bottom: 1.6rem;
}

.hero-content .eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--sage);
}

.hero-content h1 {
    font-size: clamp(2.6rem, 7.2vw, 6.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 17ch;
    margin-bottom: 1.7rem;
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(14, 17, 16, 0.5), 0 1px 3px rgba(14, 17, 16, 0.4);
}

.hero-content h1 > span {
    display: block;
}

/* Editorial weight contrast on the headline's final line. */
.hero-content h1 .lt {
    font-weight: 500;
    color: rgba(243, 239, 230, 0.94);
}

/* Vertical coordinates note — a quiet editorial device on the right edge. */
.hero .hero-meta {
    position: absolute;
    top: 50%;
    right: clamp(20px, 4vw, 48px);
    transform: translateY(-50%);
    z-index: 2;
    writing-mode: vertical-rl;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.82);
    text-shadow: 0 1px 8px rgba(14, 17, 16, 0.6);
}

.hero .hero-meta::before {
    content: "";
    display: block;
    width: 1px;
    height: 52px;
    margin: 0 auto 1.1rem;
    background: rgba(243, 239, 230, 0.35);
}

.hero-content .lede {
    max-width: 46ch;
    font-size: clamp(1.02rem, 1.55vw, 1.16rem);
    line-height: 1.72;
    color: rgba(243, 239, 230, 0.95);
    text-shadow: 0 1px 3px rgba(14, 17, 16, 0.5);
    margin-bottom: 2.4rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-ctas .btn {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
    box-shadow: 0 2px 0 rgba(10, 66, 86, 0.35);
}

.hero-ctas .btn--ghost {
    background: rgba(16, 19, 18, 0.3);
    border-color: rgba(248, 247, 242, 0.95);
    color: var(--paper);
}

.hero-ctas .btn--ghost:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.hero .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 1px;
    height: 52px;
    background: rgba(243, 239, 230, 0.4);
    overflow: hidden;
}

.hero .scroll-cue::after {
    content: "";
    position: absolute;
    inset: -100% auto auto 0;
    width: 1px;
    height: 50%;
    background: var(--on-ink);
    animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
    from { top: -50%; }
    to { top: 110%; }
}

/* ------------------------------------------------------------ statement */

.statement {
    padding-top: var(--sec);
    padding-bottom: var(--sec);
    background: var(--paper);
}

.statement .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
}

.statement .stat-label {
    grid-column: 1 / 4;
}

.statement blockquote {
    grid-column: 1 / 13;
    margin: clamp(1.6rem, 3.5vw, 3rem) 0 clamp(2.6rem, 6vw, 4.4rem);
    font-family: var(--display);
    font-size: clamp(2.15rem, 5.6vw, 4.9rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.025em;
    max-width: 20ch;
}

.statement .stat-cols {
    grid-column: 3 / 13;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.6rem, 4vw, 4rem);
    border-top: 1px solid var(--line);
    padding-top: 2.2rem;
}

.statement .stat-cols p {
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 58ch;
}

/* ------------------------------------------------------------- what we do */

.what {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.what .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: clamp(3rem, 6vw, 5rem);
}

.tile-media {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.tile {
    display: block;
}

.tile:hover .tile-media img {
    transform: scale(1.045);
}

.tile--dominant {
    grid-column: 1 / 8;
}

.tile--dominant .tile-media {
    aspect-ratio: 4 / 5;
}

/* Retrofit & Renovation is the primary discipline — its caption carries
   more weight; the supporting fit-out and finishing tiles sit quieter. */
.tile--dominant .tile-cap {
    margin-top: 1.4rem;
}

.tile--dominant .tile-cap h3 {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    letter-spacing: 0.05em;
}

.tile--dominant .tile-cap p {
    font-size: 1rem;
    max-width: 46ch;
}

.tile--stack {
    grid-column: 8 / 13;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 5.4rem);
}

.tile--stack .tile .tile-media {
    aspect-ratio: 3 / 2;
}

.tile--stack .tile .tile-cap {
    margin-top: 0.95rem;
}

.tile--stack .tile .tile-cap .n {
    color: var(--slate);
}

.tile--stack .tile .tile-cap h3 {
    font-size: clamp(1rem, 1.55vw, 1.2rem);
    letter-spacing: 0.03em;
}

.tile--stack .tile .tile-cap p {
    font-size: 0.92rem;
    color: var(--slate);
}

.tile-cap {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: baseline;
    gap: 0.3rem 1rem;
    margin-top: 1.05rem;
}

.tile-cap .n {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
}

.tile-cap h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tile-cap p {
    grid-column: 2 / 4;
    color: var(--slate);
    font-size: 0.95rem;
    max-width: 52ch;
}

.tile-cap .go {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.2s ease;
}

.tile:hover .tile-cap .go {
    color: var(--sage-deep);
}

.tile:hover .tile-cap h3 {
    color: var(--sage-deep);
    transition: color 0.3s ease;
}

/* ------------------------------------------------------ featured project */

.featured {
    position: relative;
    min-height: min(88vh, 900px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
}

.featured-media {
    position: absolute;
    inset: 0;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    filter: saturate(0.96) contrast(1.06) brightness(1.05);
}

.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(16, 19, 18, 0.76) 0%,
        rgba(16, 19, 18, 0.18) 42%,
        rgba(16, 19, 18, 0.32) 100%
    );
}

.featured .featured-in {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    padding-bottom: clamp(56px, 8vh, 96px);
}

.featured .featured-in .eyebrow {
    color: rgba(243, 239, 230, 0.78);
    margin-bottom: 1.3rem;
}

.featured .featured-in h2 {
    font-size: clamp(2.2rem, 5.4vw, 4.6rem);
    max-width: 16ch;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 24px rgba(16, 19, 18, 0.55), 0 1px 3px rgba(16, 19, 18, 0.4);
}

.featured .featured-in .short {
    max-width: 52ch;
    color: rgba(243, 239, 230, 0.88);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    text-shadow: 0 1px 10px rgba(16, 19, 18, 0.55);
}

/* --------------------------------------------------------- project index */

.pindex .row {
    display: grid;
    grid-template-columns: minmax(3.5rem, 1fr) minmax(0, 6fr) minmax(8rem, 2fr) minmax(280px, 3.2fr);
    align-items: center;
    gap: clamp(1rem, 2.6vw, 2.6rem);
    padding: clamp(1.7rem, 3.2vw, 2.6rem) 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    transition: background-color 0.3s ease, padding-left 0.4s var(--ease);
}

.pindex .row:last-child {
    border-bottom: 1px solid var(--line);
}

.pindex .row:hover {
    background: var(--paper-2);
    padding-left: 1rem;
}

.pindex .row .n {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
}

.pindex .row .t {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.8vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.45s var(--ease), color 0.3s ease;
}

.pindex .row .t::after {
    content: "→";
    display: inline-block;
    margin-left: 0.9rem;
    opacity: 0;
    transform: translateX(-0.6rem);
    color: var(--sage-deep);
    font-weight: 400;
    transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.pindex .row:hover .t {
    transform: translateX(0.6rem);
    color: var(--sage-deep);
}

.pindex .row:hover .t::after {
    opacity: 1;
    transform: none;
}

.pindex .row .c {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
}

.pindex .row .th {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--paper-2);
}

.pindex .row .th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.pindex .row:hover .th img {
    transform: scale(1.07);
}

.pindex-foot {
    margin-top: 2.8rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

.pindex-foot .svc-cta {
    margin-top: 0;
}

/* ---------------------------------------------------------- quote band */

.quote {
    position: relative;
    overflow: hidden;
    background: var(--brand-deep);
    color: var(--on-ink);
}

/* Ghost opening quote — quiet editorial texture behind the testimonial. */
.quote::before {
    content: "“";
    position: absolute;
    top: clamp(1.4rem, 4vw, 3.2rem);
    left: calc(var(--gutter) - 0.06em);
    font-family: var(--display);
    font-size: clamp(10rem, 22vw, 17rem);
    line-height: 1;
    color: rgba(243, 239, 230, 0.05);
    pointer-events: none;
    user-select: none;
}

.quote .q-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
}

.quote blockquote {
    grid-column: 1 / 10;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.6vw, 2.9rem);
    font-weight: 500;
    line-height: 1.26;
    letter-spacing: -0.015em;
    color: var(--on-ink);
}

.quote figcaption {
    grid-column: 1 / 10;
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line-ink);
    color: var(--brand-light);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.quote .q-cta {
    grid-column: 10 / 13;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
}

.quote .q-cta .phone {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-ink);
    border-bottom: 1px solid var(--line-ink);
    padding-bottom: 0.3rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.quote .q-cta .phone:hover {
    color: var(--brand-light);
    border-color: var(--brand-light);
}

/* On the teal band the quote CTA becomes a crisp white button. */
.quote .q-cta .btn {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.quote .q-cta .btn:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* -------------------------------------------------------- projects page */

.archive {
    padding-top: calc(78px + var(--sec));
    padding-bottom: var(--sec);
    background: var(--paper);
}

.archive-head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.archive-head h1 {
    grid-column: 1 / 9;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    letter-spacing: -0.02em;
}

.archive-head .lede {
    grid-column: 9 / 13;
    align-self: end;
    color: var(--slate);
    line-height: 1.7;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: clamp(3.4rem, 8vw, 7rem);
}

.arch-item {
    display: block;
}

.arch-item .a-media {
    overflow: hidden;
    background: var(--paper-2);
}

.arch-item .a-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.arch-item:hover .a-media img {
    transform: scale(1.05);
}

.arch-item--wide {
    grid-column: 1 / 8;
}

.arch-item--narrow {
    grid-column: 8 / 13;
    margin-top: clamp(4rem, 12vw, 9rem);
}

.arch-item--narrow2 {
    grid-column: 1 / 6;
}

.arch-item--wide2 {
    grid-column: 6 / 13;
    margin-top: clamp(4rem, 12vw, 9rem);
}

.arch-item--w {
    grid-column: 1 / 13;
}

.arch-item--w .a-media {
    aspect-ratio: 21 / 9;
}

.arch-item--wide .a-media {
    aspect-ratio: 3 / 2;
}

.arch-item--narrow .a-media {
    aspect-ratio: 4 / 5;
}

.arch-item--narrow2 .a-media {
    aspect-ratio: 4 / 5;
}

.arch-item .a-cap {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: baseline;
    gap: 0.3rem 1rem;
    margin-top: 1.1rem;
}

.arch-item .a-cap .n {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
}

.arch-item .a-cap h2 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.arch-item .a-cap .c {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
}

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

.page-hero {
    background: var(--ink);
    color: var(--on-ink);
    padding-top: calc(78px + clamp(56px, 10vw, 110px));
    padding-bottom: clamp(48px, 8vw, 88px);
    border-bottom: 1px solid rgba(243, 239, 230, 0.14);
}

.page-hero .eyebrow {
    color: rgba(243, 239, 230, 0.72);
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 5.2rem);
    letter-spacing: -0.02em;
    max-width: 16ch;
}

.page-hero .lede {
    margin-top: 1.6rem;
    max-width: 52ch;
    color: rgba(243, 239, 230, 0.82);
    line-height: 1.7;
}

/* ------------------------------------------------------- project detail */

.detail-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
}

.detail-hero .dh-media {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    right: 0;
    will-change: transform;
}

.detail-hero .dh-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: saturate(0.96) contrast(1.06) brightness(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(16, 19, 18, 0.78) 0%,
        rgba(16, 19, 18, 0.12) 52%,
        rgba(16, 19, 18, 0.32) 100%
    );
}

.detail-hero .dh-in {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 150px;
    padding-bottom: clamp(48px, 8vh, 84px);
}

.detail-hero .dh-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.2rem;
    color: rgba(243, 239, 230, 0.78);
    margin-bottom: 1.5rem;
    letter-spacing: 0.22em;
}

.detail-hero h1 {
    font-size: clamp(2.2rem, 5.6vw, 4.8rem);
    letter-spacing: -0.02em;
    max-width: 18ch;
    text-shadow: 0 2px 24px rgba(16, 19, 18, 0.55), 0 1px 3px rgba(16, 19, 18, 0.4);
}

.detail-intro {
    background: var(--paper);
    padding-top: var(--sec);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.detail-intro .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: 2.4rem;
}

.detail-intro .di-label {
    grid-column: 1 / 4;
}

.detail-intro .di-body {
    grid-column: 4 / 12;
}

.detail-intro .di-body p {
    font-size: clamp(1.1rem, 1.75vw, 1.3rem);
    line-height: 1.78;
    color: var(--ink-2);
    margin-bottom: 1.5rem;
}

.detail-intro .di-body p:last-child {
    margin-bottom: 0;
}

.detail-facts {
    border-top: 1px solid var(--line-strong);
    margin-top: clamp(2.6rem, 5vw, 4.2rem);
    padding-top: 2rem;
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem 3.4rem;
}

.detail-facts .f {
    min-width: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.4rem;
}

.detail-facts .f:first-child {
    border-left: none;
    padding-left: 0;
}

.detail-facts .f .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.4rem;
}

.detail-facts .f .v {
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 600;
}

.detail-gallery {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: 0;
}

.detail-gallery .g-item {
    position: relative;
}

.detail-gallery .g-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.2rem, 2.6vw, 2.6rem);
    row-gap: clamp(1.6rem, 4vw, 3.6rem);
}

.detail-gallery .g-item {
    overflow: hidden;
    background: var(--paper-2);
    margin: 0; /* figure default margins would inflate min-content and widen tracks */
}

.detail-gallery .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    filter: saturate(0.9) contrast(1.01);
    transition: transform 0.9s var(--ease);
}

.detail-gallery .g-item:hover img {
    transform: scale(1.035);
}

.g-item--full {
    grid-column: 1 / 13;
    aspect-ratio: 16 / 7;
}

/* Halves travel in pairs inside a full-width g-pair plate with the same
   16/7 shape as the opener/closer, so every gallery row shares one exact
   height at every viewport — no ratio drift from the column-gap. */
.g-pair {
    grid-column: 1 / 13;
    min-width: 0;
    aspect-ratio: 16 / 7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.2rem, 2.6vw, 2.6rem);
}

.g-item--half {
    grid-column: auto;
    min-width: 0;
    aspect-ratio: auto;
    height: 100%;
}

/* Editorial plate number on each gallery image, revealed on hover. */
.g-item .g-no {
    position: absolute;
    left: 1.15rem;
    bottom: 1.05rem;
    z-index: 1;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(243, 239, 230, 0.95);
    text-shadow: 0 1px 6px rgba(14, 17, 16, 0.6);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.g-item:hover .g-no {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------- cta band */

.cta-band {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-band .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    align-items: end;
}

.cta-band .grid .mono {
    grid-column: 1 / 13;
    margin-bottom: 1.9rem;
}

.cta-band h2 {
    grid-column: 1 / 9;
    font-size: clamp(2.1rem, 5.2vw, 4.5rem);
    letter-spacing: -0.02em;
    max-width: 15ch;
}

.cta-band .cta-act {
    grid-column: 9 / 13;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

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

.svc {
    padding-top: var(--sec);
    padding-bottom: var(--sec);
    border-top: 1px solid var(--line);
    scroll-margin-top: 96px;
}

.svc:first-of-type {
    border-top: 0;
}

.svc:nth-of-type(even) {
    background: var(--white);
}

.svc .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: clamp(2.4rem, 5vw, 4rem);
    align-items: center;
}

.svc .svc-img {
    grid-column: 1 / 7;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-2);
}

.svc:nth-of-type(even) .svc-img {
    grid-column: 7 / 13;
    grid-row: 1;
}

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

.svc .svc-txt {
    grid-column: 7 / 13;
}

.svc:nth-of-type(even) .svc-txt {
    grid-column: 1 / 7;
    grid-row: 1;
}

.svc .svc-txt .n {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--sage-deep);
}

.svc .svc-txt h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    letter-spacing: -0.015em;
    margin: 1.2rem 0 1.4rem;
}

.svc .svc-txt .lead {
    color: var(--ink-2);
    line-height: 1.72;
    max-width: 56ch;
    margin-bottom: 2.2rem;
}

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

.svc-list li {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    gap: 0.8rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.svc-list li .n {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
    padding-top: 0.2rem;
}

.svc .svc-cta {
    margin-top: 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 0.7rem 0 0.45rem;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.svc .svc-cta:hover {
    color: var(--sage-deep);
    border-color: var(--sage-deep);
    gap: 0.9rem;
}

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

.about-story {
    background: var(--paper);
    padding-top: calc(78px + var(--sec));
    padding-bottom: var(--sec);
}

.about-story .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: clamp(3rem, 7vw, 6rem);
}

.about-story .as-img {
    grid-column: 1 / 6;
    position: sticky;
    top: 120px;
    align-self: start;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-2);
}

.about-story .as-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-story .as-txt {
    grid-column: 7 / 13;
}

.about-story .as-txt blockquote {
    margin: 0 0 2.6rem;
    font-family: var(--display);
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 16ch;
}

.about-story .as-txt .prose p {
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 1.4rem;
    max-width: 60ch;
}

.values {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.values .v-row {
    display: grid;
    grid-template-columns: minmax(3.4rem, 1fr) minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(1rem, 3vw, 3rem);
    padding: clamp(1.6rem, 3.4vw, 2.8rem) 0;
    border-bottom: 1px solid var(--line);
}

.values .v-row .n {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
}

.values .v-row h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    align-self: baseline;
}

.values .v-row p {
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 62ch;
}

.capability {
    background: var(--ink);
    color: var(--on-ink);
}

.capability .cap-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: 3rem;
}

.capability .cap-head {
    grid-column: 1 / 13;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 1rem;
}

.capability .cap-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    max-width: 14ch;
}

.capability .cap-col {
    grid-column: span 6;
    padding-top: 2rem;
    border-top: 1px solid var(--line-ink);
}

.capability .cap-col h3 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 1.2rem;
}

.capability .cap-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 2rem;
}

.capability .cap-col li {
    font-size: 1rem;
    color: rgba(243, 239, 230, 0.88);
    padding-left: 1rem;
    border-left: 1px solid var(--line-ink);
}

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

.contact-page {
    background: var(--paper);
    padding-top: calc(78px + var(--sec));
    padding-bottom: var(--sec);
}

.contact-page .c-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.6rem, 4vw, 4.4rem);
    row-gap: clamp(3rem, 7vw, 5.6rem);
}

.contact-form-wrap {
    grid-column: 1 / 8;
}

.contact-form-wrap h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

.contact-form-wrap .lede {
    color: var(--slate);
    max-width: 46ch;
    line-height: 1.7;
    margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.field {
    margin-bottom: 1.6rem;
}

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 0.6rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 0.95rem 1.05rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.field input,
.field select {
    min-height: 54px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(32, 36, 34, 0.08);
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
    border-color: #9E3B2F;
}

.field .err {
    display: none;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #9E3B2F;
    margin-top: 0.5rem;
}

.field.has-error .err {
    display: block;
}

.contact-status {
    display: none;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line-strong);
    margin-bottom: 1.6rem;
    font-size: 0.98rem;
    line-height: 1.6;
}

.contact-status.is-ok {
    display: block;
    border-color: var(--sage-deep);
    background: rgba(126, 141, 123, 0.12);
    color: var(--ink);
}

.contact-status.is-error {
    display: block;
    border-color: #9E3B2F;
    background: rgba(158, 59, 47, 0.08);
    color: #7E2E24;
}

.contact-side {
    grid-column: 8 / 13;
}

.contact-side .c-block {
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    margin-bottom: 2.4rem;
}

.contact-side .c-block .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.6rem;
}

.contact-side .c-block .v {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.contact-side .c-block .v a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-side .c-block .v a:hover {
    color: var(--sage-deep);
    border-color: var(--sage-deep);
}

.contact-side .c-quote {
    position: relative;
    overflow: hidden;
    background: var(--brand-deep);
    color: var(--on-ink);
    padding: 2.4rem 2rem 2.1rem;
    margin-top: 3rem;
    border-left: 2px solid rgba(248, 247, 242, 0.35);
}

/* Ghost quotation mark — same editorial device as the home testimonial. */
.contact-side .c-quote::before {
    content: "“";
    position: absolute;
    top: -0.9rem;
    right: 0.5rem;
    font-family: var(--display);
    font-size: 7.5rem;
    line-height: 1;
    color: rgba(243, 239, 230, 0.06);
    pointer-events: none;
}

.contact-side .c-quote .mono {
    color: var(--brand-light);
    margin-bottom: 0.9rem;
}

.contact-side .c-quote p {
    font-family: var(--display);
    font-size: 1.2rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

/* Crisp white CTA on the teal quote box. */
.contact-side .c-quote .btn {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.contact-side .c-quote .btn:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.contact-map {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: var(--sec);
}

.contact-map .map {
    width: 100%;
    height: 400px;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.contact-map .map .leaflet-container {
    font-family: var(--body);
}

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

.site-footer {
    background: var(--ink);
    color: var(--on-ink);
    padding-top: clamp(4rem, 8vw, 6.5rem);
    padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
    position: relative;
    overflow: hidden;
}

/* Ghost wordmark bleeding off the bottom edge — the studio signature. */
.site-footer::after {
    content: "Casey & Meaney";
    position: absolute;
    right: -0.03em;
    bottom: -0.28em;
    z-index: 0;
    font-family: var(--display);
    font-size: clamp(7rem, 16vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: rgba(243, 239, 230, 0.035);
    pointer-events: none;
    white-space: nowrap;
}

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

.site-footer .f-top {
    border-top: 2px solid var(--sage-deep);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.4rem, 3vw, 3rem);
    row-gap: 3rem;
    padding-top: 2.6rem;
}

.site-footer .f-brand {
    grid-column: 1 / 6;
}

.site-footer .f-brand .wordmark {
    font-family: var(--display);
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
}

.site-footer .f-brand .wordmark small {
    display: block;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-top: 0.7rem;
}

.site-footer .f-brand img {
    height: 34px;
    width: auto;
    margin-bottom: 1.8rem;
    filter: brightness(0) invert(1) opacity(0.92);
}

.site-footer .f-brand p {
    max-width: 40ch;
    color: rgba(243, 239, 230, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.4rem;
}

.site-footer .f-col {
    grid-column: span 2;
}

.site-footer .f-col h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 1.1rem;
}

.site-footer .f-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .f-col li {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(243, 239, 230, 0.85);
}

.site-footer .f-col a {
    color: rgba(243, 239, 230, 0.85);
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-bottom-color 0.25s ease;
}

.site-footer .f-col a:hover {
    color: var(--brand-light);
    border-bottom-color: rgba(127, 169, 185, 0.6);
}

.site-footer .f-col .f-phone a {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-ink);
}

.site-footer .f-bottom {
    margin-top: clamp(3.4rem, 7vw, 5.2rem);
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-ink);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.55);
}

.site-footer .f-bottom a {
    color: rgba(243, 239, 230, 0.8);
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer .f-bottom a:hover {
    color: var(--brand-light);
    border-color: var(--brand-light);
}

.top-link {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.8);
    border-bottom: 1px solid var(--line-ink);
    padding-bottom: 0.2rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.top-link:hover {
    color: var(--brand-light);
    border-color: var(--brand-light);
}

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

.page-404 {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ink);
    color: var(--on-ink);
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 60px;
}

.page-404 .mono {
    color: var(--sage);
    margin-bottom: 1.6rem;
}

.page-404 h1 {
    font-size: clamp(4rem, 16vw, 11rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.page-404 .f404-txt {
    max-width: 42ch;
    margin: 1.6rem 0 2.4rem;
    color: rgba(243, 239, 230, 0.8);
    line-height: 1.7;
}

/* ---------------------------------------------------------------- reveal */

/* Content only hides once the motion system is confirmed alive
   (html.anim-ready is the first thing main.js sets). If that class is ever
   missing — no JS, truncated script, anything — everything is visible. */
html.anim-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    transition-delay: var(--d, 0s);
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

/* After the page has loaded, no reveal state may ever hold content back —
   this hard-forces everything visible, whatever the observers are doing. */
html.reveal-done [data-reveal],
html.reveal-done .tl {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.reveal-done .logo,
html.reveal-done .nav-toggle,
html.reveal-done .main-nav a,
html.reveal-done .hero-content .eyebrow,
html.reveal-done .hero-content h1 > span,
html.reveal-done .hero-content .lede,
html.reveal-done .hero-ctas > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.reveal-done .label-rule::after {
    width: 64px !important;
}

html.reveal-done .tile .tile-media,
html.reveal-done .pindex .row .th,
html.reveal-done .g-item,
html.reveal-done .arch-item .a-media,
html.reveal-done .svc .svc-img,
html.reveal-done .about-story .as-img,
html.reveal-done .detail-hero .dh-media,
html.reveal-done .featured .featured-media {
    clip-path: none !important;
}

html.reveal-done .featured .featured-media img {
    transform: none !important;
}

html.reveal-done .quote::before {
    opacity: 1 !important;
    transform: none !important;
}

html:not(.anim-ready) [data-reveal],
html.no-js [data-reveal],
html.js-fallback [data-reveal] {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------- responsive */

@media screen and (max-width: 1100px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .quote .q-grid {
        row-gap: 2.6rem;
    }

    .quote blockquote,
    .quote figcaption {
        grid-column: 1 / 13;
    }

    .quote .q-cta {
        grid-column: 1 / 13;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .site-footer .f-col {
        grid-column: span 3;
    }
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
    .what .tile--dominant {
        grid-column: 1 / 8;
    }

    .what .tile--stack {
        grid-column: 8 / 13;
    }

    .archive-head h1 {
        grid-column: 1 / 12;
    }

    .archive-head .lede {
        grid-column: 1 / 9;
    }

    .arch-item--wide {
        grid-column: 1 / 13;
    }

    .arch-item--narrow {
        grid-column: 1 / 7;
        margin-top: 0;
    }

    .arch-item--narrow2 {
        grid-column: 7 / 13;
    }

    .arch-item--wide2 {
        grid-column: 1 / 13;
        margin-top: 0;
    }

    .contact-form-wrap {
        grid-column: 1 / 13;
    }

    .contact-side {
        grid-column: 1 / 13;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2.4rem;
    }

    .contact-side .c-quote {
        grid-column: 1 / 3;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --sec: clamp(72px, 18vw, 110px);
        --gutter: 22px;
    }

    .site-header {
        height: 68px;
    }

    .site-header.is-scrolled {
        height: 60px;
    }

    .logo img {
        height: 32px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-media img {
        object-position: 55% 40%;
    }

    .hero .hero-meta {
        display: none;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(16, 19, 18, 0.45) 0%, rgba(16, 19, 18, 0) 26%),
            linear-gradient(0deg, rgba(16, 19, 18, 0.68) 0%, rgba(16, 19, 18, 0.04) 60%);
    }

    .hero-content {
        padding-bottom: clamp(56px, 12vh, 96px);
    }

    .hero-content .eyebrow {
        font-size: 0.64rem;
    }

    .statement .stat-label {
        grid-column: 1 / 5;
    }

    .statement blockquote {
        grid-column: 1 / 13;
    }

    .statement .stat-cols {
        grid-column: 1 / 13;
    }

    .what .tile--dominant,
    .what .tile--stack {
        grid-column: 1 / 13;
    }

    .what .tile--stack {
        gap: clamp(2.4rem, 6vw, 3.4rem);
    }

    .what .tile--stack .tile .tile-media {
        aspect-ratio: 4 / 3;
    }

    .featured {
        min-height: 92vw;
    }

    .pindex .row {
        grid-template-columns: 3rem 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .pindex .row .c,
    .pindex .row .th {
        display: none;
    }

    .arch-item--w .a-media {
        aspect-ratio: 16 / 11;
    }

    .arch-item--wide,
    .arch-item--narrow,
    .arch-item--narrow2,
    .arch-item--wide2 {
        grid-column: 1 / 13;
        margin-top: 0;
    }

    .arch-item .a-media,
    .arch-item--wide .a-media,
    .arch-item--narrow .a-media,
    .arch-item--narrow2 .a-media {
        aspect-ratio: 4 / 3;
    }

    .detail-intro .di-body {
        grid-column: 1 / 13;
    }

    .detail-facts {
        grid-column: 1 / 13;
    }

    .g-item--half {
        grid-column: 1 / 13;
        aspect-ratio: 4 / 3;
    }

    .g-item--full {
        aspect-ratio: 4 / 3;
    }

    .cta-band .grid {
        row-gap: 2.4rem;
    }

    .cta-band h2 {
        grid-column: 1 / 13;
    }

    .cta-band .cta-act {
        grid-column: 1 / 13;
        justify-content: flex-start;
    }

    .svc .svc-img,
    .svc:nth-of-type(even) .svc-img {
        grid-column: 1 / 13;
        aspect-ratio: 4 / 3;
    }

    .svc .svc-txt,
    .svc:nth-of-type(even) .svc-txt {
        grid-column: 1 / 13;
        grid-row: auto;
    }

    .about-story .grid {
        padding-top: 0;
    }

    .about-story .as-img {
        grid-column: 1 / 13;
        position: static;
        aspect-ratio: 4 / 3;
    }

    .about-story .as-txt {
        grid-column: 1 / 13;
    }

    .values .v-row {
        grid-template-columns: 3rem 1fr;
        row-gap: 0.6rem;
    }

    .values .v-row p {
        grid-column: 2 / 3;
    }

    .capability .cap-col {
        grid-column: 1 / 13;
    }

    .capability .cap-col ul {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap,
    .contact-side {
        grid-column: 1 / 13;
    }

    .contact-side {
        display: block;
    }

    .contact-side .c-quote {
        margin-top: 2.6rem;
    }

    .contact-map .map {
        height: 320px;
    }

    .site-footer .f-brand {
        grid-column: 1 / 13;
    }

    .site-footer .f-col {
        grid-column: span 6;
    }
}

@media screen and (min-width: 769px) {
    .m-menu {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11.5vw, 3.2rem);
    }

    .hero .scroll-cue {
        display: none;
    }

    .statement .stat-cols {
        grid-template-columns: 1fr;
    }

    .tile-cap .go {
        display: none;
    }

    .pindex .row .t {
        font-size: 1.1rem;
    }

    .site-footer .f-col {
        grid-column: 1 / 13;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .cta-band .cta-act {
        flex-direction: column;
        width: 100%;
    }

    .svc-list li {
        grid-template-columns: 2.2rem 1fr;
    }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-media img {
        transition: transform 9s var(--ease), filter 1s ease;
    }
}

/* ==========================================================================
   Motion system — premium architectural choreography
   ==========================================================================
   Entrance sequences, masked text lines, clip-wipe imagery, scene reveals
   and page transitions. Everything is gated on `html.js` and on JS having
   run (no-JS and the reveal failsafe get static, fully visible content);
   prefers-reduced-motion disables all of it with the rules below ending in
   explicit resets.
   ========================================================================== */

/* ------------------------------------------------- page transitions

   IMPORTANT: these animate OPACITY ONLY. Any transform on <body> — even a
   fill-mode identity — turns body into a containing block and breaks
   position:fixed descendants (the header scrolls away with the page). */

html.js body {
    animation: pageIn 0.4s ease;
}

html.js body.page-leave {
    animation: pageOut 0.24s ease forwards;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pageOut {
    to { opacity: 0; }
}

/* -------------------------------- load entrance (nav + hero copy) */

html.anim-ready body:not(.is-loaded) .logo,
html.anim-ready body:not(.is-loaded) .nav-toggle,
html.anim-ready body:not(.is-loaded) .main-nav a,
html.anim-ready body:not(.is-loaded) .hero-content .eyebrow,
html.anim-ready body:not(.is-loaded) .hero-content h1 > span,
html.anim-ready body:not(.is-loaded) .hero-content .lede,
html.anim-ready body:not(.is-loaded) .hero-ctas > *,
html.anim-ready body:not(.is-loaded) .hero-meta,
html.anim-ready body:not(.is-loaded) .hero .scroll-cue {
    opacity: 0;
    transform: translateY(24px);
}

html:not(.anim-ready) .logo,
html:not(.anim-ready) .nav-toggle,
html:not(.anim-ready) .main-nav a,
html:not(.anim-ready) .hero-content .eyebrow,
html:not(.anim-ready) .hero-content h1 > span,
html:not(.anim-ready) .hero-content .lede,
html:not(.anim-ready) .hero-ctas > *,
html:not(.anim-ready) .hero-meta,
html:not(.anim-ready) .hero .scroll-cue {
    opacity: 1;
    transform: none;
}

body.is-loaded .logo {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s ease 0.1s, transform 0.75s var(--ease-editorial) 0.1s;
}

body.is-loaded .nav-toggle {
    opacity: 1;
    transform: none;
    transition: opacity 0.65s ease 0.16s, transform 0.65s var(--ease-editorial) 0.16s;
}

body.is-loaded .main-nav a:nth-child(1) { transition: opacity 0.7s ease 0.26s, transform 0.7s var(--ease-editorial) 0.26s; }
body.is-loaded .main-nav a:nth-child(2) { transition: opacity 0.7s ease 0.34s, transform 0.7s var(--ease-editorial) 0.34s; }
body.is-loaded .main-nav a:nth-child(3) { transition: opacity 0.7s ease 0.42s, transform 0.7s var(--ease-editorial) 0.42s; }
body.is-loaded .main-nav a:nth-child(4) { transition: opacity 0.7s ease 0.5s, transform 0.7s var(--ease-editorial) 0.5s; }
body.is-loaded .main-nav a:nth-child(5) { transition: opacity 0.7s ease 0.58s, transform 0.7s var(--ease-editorial) 0.58s; }
body.is-loaded .main-nav a,
body.is-loaded .hero-content .eyebrow,
body.is-loaded .hero-content h1 > span,
body.is-loaded .hero-content .lede,
body.is-loaded .hero-ctas > *,
body.is-loaded .hero-meta,
body.is-loaded .hero .scroll-cue {
    opacity: 1;
    transform: none;
}

body.is-loaded .hero-content .eyebrow { transition: opacity 0.65s ease 0.58s, transform 0.65s var(--ease-editorial) 0.58s; }
body.is-loaded .hero-content h1 > span:nth-child(1) { transition: opacity 0.95s ease 0.8s, transform 0.95s var(--ease-editorial) 0.8s; }
body.is-loaded .hero-content h1 > span:nth-child(2) { transition: opacity 0.95s ease 0.96s, transform 0.95s var(--ease-editorial) 0.96s; }
body.is-loaded .hero-content .lede { transition: opacity 0.85s ease 1.14s, transform 0.85s var(--ease-editorial) 1.14s; }
body.is-loaded .hero-ctas > *:nth-child(1) { transition: opacity 0.75s ease 1.32s, transform 0.75s var(--ease-editorial) 1.32s; }
body.is-loaded .hero-ctas > *:nth-child(2) { transition: opacity 0.75s ease 1.43s, transform 0.75s var(--ease-editorial) 1.43s; }
body.is-loaded .hero-meta { transition: opacity 0.95s ease 1.58s; }
body.is-loaded .hero .scroll-cue { transition: opacity 0.95s ease 1.58s; }

/* ----------------------------------------- masked line text reveals */

.tl-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em; /* keep descenders from clipping */
}

.tl {
    display: block;
    transform: translateY(115%);
    transition: transform 0.7s var(--ease);
}

.tl-mask:nth-child(2) .tl {
    transition-delay: 0.13s;
}

[data-lines].in .tl {
    transform: none;
}

/* ------------------------------------------- decorative rule draw */

.label-rule::after {
    width: 0;
    flex: 0 0 auto;
    transition: width 0.8s var(--ease) 0.3s;
}

.label-rule.in::after {
    width: 64px;
}

/* ------------------------------------------- clip-wipe image language */

html.anim-ready .tile .tile-media,
html.anim-ready .pindex .row .th,
html.anim-ready .g-item,
html.anim-ready .arch-item .a-media,
html.anim-ready .svc .svc-img,
html.anim-ready .about-story .as-img,
html.anim-ready .detail-hero .dh-media {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease) 0.05s;
}

html.anim-ready .tile.in .tile-media,
html.anim-ready .pindex .row.in .th,
html.anim-ready .g-item.in,
html.anim-ready .arch-item.in .a-media,
html.anim-ready .svc .svc-img.in,
html.anim-ready .about-story .as-img.in,
html.anim-ready .detail-hero.in .dh-media {
    clip-path: inset(0 0 0 0);
}

/* Featured project: the whole image wipes in and settles from a gentle zoom. */
html.anim-ready .featured .featured-media {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease) 0.05s;
}

html.anim-ready .featured.in .featured-media {
    clip-path: inset(0 0 0 0);
}

html.anim-ready .featured .featured-media img {
    transform: scale(1.05);
    transition: transform 2.2s var(--ease) 0.35s;
}

html.anim-ready .featured.in .featured-media img {
    transform: scale(1);
}

html.anim-ready .svc .svc-img {
    clip-path: inset(0 0 100% 0);
}

/* ------------------------------------------------ scene (quote) reveals */

html.js .quote::before {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.9s ease 0.3s, transform 1.1s var(--ease) 0.3s;
}

html.js .quote.in::before {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------- tease hover language */

.tile-cap .go {
    transition: color 0.25s ease, transform 0.35s var(--ease);
}

.tile:hover .tile-cap .go {
    transform: translateX(4px);
}

.svc .svc-cta {
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease,
        padding-left 0.35s var(--ease);
}

/* --------------------------------------------------- form feedback */

.contact-status.is-ok {
    animation: statusIn 0.5s var(--ease) both;
}

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

.contact-form input[type="submit"]:disabled {
    opacity: 0.75;
    transform: translateY(1px);
}

/* ------------------------------------- motion fallbacks (no JS / failsafe) */

html.no-js body,
html.js-fallback body {
    animation: none;
}

html.no-js .logo,
html.no-js .nav-toggle,
html.no-js .main-nav a,
html.no-js .hero-content .eyebrow,
html.no-js .hero-content h1 > span,
html.no-js .hero-content .lede,
html.no-js .hero-ctas > *,
html.no-js .hero-meta,
html.no-js .hero .scroll-cue,
html.js-fallback .logo,
html.js-fallback .nav-toggle,
html.js-fallback .main-nav a,
html.js-fallback .hero-content .eyebrow,
html.js-fallback .hero-content h1 > span,
html.js-fallback .hero-content .lede,
html.js-fallback .hero-ctas > *,
html.js-fallback .hero-meta,
html.js-fallback .hero .scroll-cue {
    opacity: 1 !important;
    transform: none !important;
}

html.no-js .tl,
html.js-fallback .tl {
    transform: none !important;
}

html.no-js .tile .tile-media,
html.no-js .pindex .row .th,
html.no-js .g-item,
html.no-js .arch-item .a-media,
html.no-js .svc .svc-img,
html.no-js .about-story .as-img,
html.no-js .detail-hero .dh-media,
html.no-js .featured .featured-media,
html.js-fallback .tile .tile-media,
html.js-fallback .pindex .row .th,
html.js-fallback .g-item,
html.js-fallback .arch-item .a-media,
html.js-fallback .svc .svc-img,
html.js-fallback .about-story .as-img,
html.js-fallback .detail-hero .dh-media,
html.js-fallback .featured .featured-media {
    clip-path: none !important;
}

html.no-js .quote::before,
html.js-fallback .quote::before {
    opacity: 1;
    transform: none;
}

html.no-js .label-rule::after,
html.js-fallback .label-rule::after {
    width: 64px !important;
}

/* --------------------------------------------- reduced motion resets */

@media (prefers-reduced-motion: reduce) {
    html.js body,
    html.js body.page-leave,
    .contact-status.is-ok {
        animation: none !important;
    }

    html.js .tile .tile-media,
    html.js .pindex .row .th,
    html.js .g-item,
    html.js .arch-item .a-media,
    html.js .svc .svc-img,
    html.js .about-story .as-img,
    html.js .detail-hero .dh-media,
    html.js .featured .featured-media {
        clip-path: none !important;
    }

    html.js .featured .featured-media img {
        transform: none;
    }

    html.js .quote::before {
        opacity: 1;
        transform: none;
    }

    .tl {
        transform: none;
    }

    .label-rule::after {
        width: 64px;
    }
}

/* --------------------------------------------------------- print-friendly */

@media print {
    .site-header,
    .m-menu,
    .site-footer,
    .cta-band,
    .hero .scroll-cue {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .hero,
    .detail-hero {
        min-height: auto;
        color: #111;
    }
}

/* ------------------------------------------------------------- lightbox */

/* Project-gallery lightbox: dark full-screen overlay, opened by JS on click.
   Hidden by default (visibility + opacity), shown via .is-open. */
.lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 13, 16, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.lb.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
}

body.has-lb {
    overflow: hidden;
}

.lb-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin: 0;
    padding: 0 clamp(4.5rem, 10vw, 8.5rem);
    max-width: 100%;
    max-height: 100vh;
    box-sizing: border-box;
}

.lb-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1380px, 100%);
    max-height: calc(100vh - 9.5rem);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    user-select: none;
}

.lb-cap {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    color: rgba(248, 247, 242, 0.72);
}

/* Controls. */
.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(248, 247, 242, 0.28);
    border-radius: 999px;
    background: rgba(248, 247, 242, 0.06);
    color: var(--paper);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease,
        transform 0.25s var(--ease);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: rgba(248, 247, 242, 0.16);
    border-color: rgba(248, 247, 242, 0.6);
}

.lb-close:active,
.lb-prev:active,
.lb-next:active {
    transform: scale(0.94);
}

.lb button:focus-visible {
    outline: 2px solid rgba(248, 247, 242, 0.85);
    outline-offset: 3px;
}

.lb-close {
    top: 1.4rem;
    right: 1.4rem;
}

.lb-close::before,
.lb-close::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: currentColor;
}

.lb-close::before {
    transform: rotate(45deg);
}

.lb-close::after {
    transform: rotate(-45deg);
}

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
}

.lb-prev:active,
.lb-next:active {
    transform: translateY(-50%) scale(0.94);
}

.lb-prev {
    left: 1.4rem;
}

.lb-next {
    right: 1.4rem;
}

.lb-prev::before {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 3px;
}

.lb-next::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Focus ring on the clickable gallery thumbnails (keyboard users). */
.detail-gallery .g-item img:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    cursor: zoom-in;
}

.detail-gallery .g-item img {
    cursor: zoom-in;
}

@media (max-width: 640px) {
    .lb-stage {
        padding: 0 1.2rem;
    }

    .lb-img {
        max-height: calc(100vh - 7.5rem);
    }

    .lb-close {
        top: 0.9rem;
        right: 0.9rem;
        width: 46px;
        height: 46px;
    }

    .lb-prev,
    .lb-next {
        width: 48px;
        height: 48px;
    }

    .lb-prev {
        left: 0.7rem;
    }

    .lb-next {
        right: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb,
    .lb.is-open,
    .lb-close,
    .lb-prev,
    .lb-next {
        transition: none;
    }
}