/* ==========================================================================
   Cloughjordan Building & Renovation — "Blue Hour"
   Dusk-slate grounds, dressed-limestone reading surfaces, one lamplight
   accent reserved for light itself: the primary action and live states.
   ========================================================================== */

:root {
    /* Navy: drawn from the logo lettering (#00306C), deepened for grounds */
    --night: #07122a;
    --dusk: #0c1d3b;
    --dusk-2: #15294b;
    --brand-navy: #00306c;
    --dusk-line: rgba(235, 233, 228, 0.14);
    --dusk-line-strong: rgba(235, 233, 228, 0.28);

    /* Limestone: the reading surfaces */
    --stone: #ebe9e4;
    --stone-2: #f4f3ef;
    --stone-3: #dedbd4;
    --stone-line: rgba(16, 26, 44, 0.14);
    --stone-line-strong: rgba(16, 26, 44, 0.32);

    /* Ink */
    --ink: #101a2c;
    --ink-2: #4a5263;
    --mist: #a9b5c8;
    --pale: #ebe9e4;

    /* Copper: the logo's tower mark — reserved for the primary action and live states */
    --lamp: #c99468;
    --lamp-hover: #d8aa80;
    --lamp-ink: #1b1007;

    --ok: #2f6b4f;
    --err: #9b3b2e;

    --font-display: 'Marcellus', 'Times New Roman', serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Rounded corners for framed photographs (full-bleed images stay square) */
    --radius-media: clamp(10px, 1.1vw, 18px);
    --radius-thumb: 8px;
    /* Buttons and form fields */
    --radius-control: 10px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --max: 88rem;
    --header-h: 5.25rem;
    --header-h-top: 7rem; /* resting height over the first photograph (desktop) */

    --space-section: clamp(5.5rem, 11vw, 10rem);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
    scrollbar-color: #3a4552 var(--night);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    caret-color: var(--lamp);
}

main { flex: 1 0 auto; }

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

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

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

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

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--lamp);
    outline-offset: 4px;
    border-radius: 1px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #3a4552; border: 3px solid var(--night); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #56626f; }

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

.skip-link {
    position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
    background: var(--lamp); color: var(--lamp-ink);
    padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.875rem;
    transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0;
    text-wrap: balance;
}

.display {
    font-size: clamp(2.5rem, 5.2vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.h1 {
    font-size: clamp(2.125rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.016em;
}

.h2 {
    font-size: clamp(1.625rem, 2.6vw, 2.375rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.625rem);
    line-height: 1.15;
    letter-spacing: -0.006em;
}

.h4 {
    font-size: 1.375rem;
    line-height: 1.25;
}

.lede {
    font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
    line-height: 1.6;
    font-weight: 300;
    max-width: 38em;
    margin: 0;
    text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }
.measure { max-width: 64ch; }
.copy > * + * { margin-top: 1.15em; }

/* Small caps label for metadata — sits beside or below content, never above a heading */
.meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Slogan: a short serif line under every heading, led by a copper rule.
   Wrap the heading and its slogan in .heading so they travel together. */
.heading { display: grid; gap: 0; align-content: start; }
.slogan {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.25vw, 1.1875rem);
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--ink-2);
    text-wrap: balance;
}
.on-dusk .slogan, .on-night .slogan, .page-head .slogan, .closing .slogan, .contact-v2 .slogan { color: var(--mist); }
.h1 + .slogan, .display + .slogan { margin-top: 1.1rem; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); }
.slogan--center { justify-content: center; text-align: center; }

.num { font-variant-numeric: tabular-nums lining-nums; }

.muted { color: var(--ink-2); }
.on-dusk .muted, .muted-dark { color: var(--mist); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap-narrow {
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(4rem, 8vw, 7rem); }

.on-dusk { background: var(--dusk); color: var(--pale); }
.on-night { background: var(--night); color: var(--pale); }
.on-stone { background: var(--stone); color: var(--ink); }
.on-stone-2 { background: var(--stone-2); color: var(--ink); }

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.4vw, 2.5rem);
}

.rule { border: 0; border-top: 1px solid var(--stone-line); margin: 0; }
.on-dusk .rule, .on-night .rule { border-top-color: var(--dusk-line); }

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.btn {
    --btn-pad-y: 1.05rem;
    --btn-pad-x: 1.75rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 14px;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
                border-color 0.35s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.45s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

/* The lit window: copper glass (always sits on navy or photography) */
.btn--lamp {
    background: linear-gradient(135deg, rgba(201, 148, 104, 0.42), rgba(201, 148, 104, 0.18));
    border-color: rgba(222, 178, 140, 0.45);
    color: var(--pale);
    box-shadow: inset 0 1px 0 rgba(255, 228, 200, 0.25), 0 14px 34px -16px rgba(201, 148, 104, 0.7);
}
.btn--lamp:hover {
    background: linear-gradient(135deg, rgba(201, 148, 104, 0.55), rgba(201, 148, 104, 0.26));
    border-color: rgba(222, 178, 140, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 228, 200, 0.3), 0 16px 44px -14px rgba(201, 148, 104, 0.8);
}

/* Smoked glass for light (stone) backgrounds */
.btn--line {
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.08), rgba(20, 30, 45, 0.02));
    border-color: var(--stone-line-strong);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -20px rgba(20, 30, 45, 0.45);
}
.btn--line:hover { background: linear-gradient(135deg, rgba(20, 30, 45, 0.14), rgba(20, 30, 45, 0.05)); border-color: var(--ink-2); }

/* Clear glass for dark backgrounds */
.btn--line-light {
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    border-color: rgba(235, 233, 228, 0.16);
    color: var(--pale);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.btn--line-light:hover { background: linear-gradient(135deg, rgba(235, 233, 228, 0.14), rgba(235, 233, 228, 0.05)); border-color: rgba(235, 233, 228, 0.32); }

.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* Underlined text link with travelling arrow */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 500;
    padding-block: 0.35rem;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link .icon { width: 1rem; height: 1rem; transition: transform 0.45s var(--ease-out); }
.link:hover .icon { transform: translateX(4px); }

.on-dusk .link:hover, .on-night .link:hover { color: var(--lamp); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    color: var(--pale);
    transition: background-color 0.5s var(--ease-out), height 0.5s var(--ease-out),
                box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.site-header::before {
    /* soft top scrim so the nav reads over bright skies */
    content: "";
    position: absolute;
    inset: 0 0 -3.5rem 0;
    background: linear-gradient(to bottom, rgba(7, 18, 42, 0.72) 0%, rgba(7, 18, 42, 0.4) 55%, rgba(7, 18, 42, 0));
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.site-header:not(.is-solid) .nav__link,
.site-header:not(.is-solid) .wordmark { text-shadow: 0 1px 2px rgba(7, 18, 42, 0.55), 0 0 18px rgba(7, 18, 42, 0.65); }
.site-header:not(.is-solid) .nav__link { color: rgba(235, 233, 228, 0.94); }

@media (min-width: 64rem) {
    .site-header:not(.is-solid) { height: var(--header-h-top); }
    .site-header:not(.is-solid) .site-header__inner { padding-top: 0.75rem; }
    .site-header__inner { transition: padding 0.5s var(--ease-out); }
    .hero__body, .page-head { --header-h: var(--header-h-top); }
}

/* Frosted glass once scrolled. It lives on ::after, not the header itself, so the
   services dropdown (also glass) still blurs the page rather than the header. */
.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(235, 233, 228, 0.06), rgba(235, 233, 228, 0.01)), rgba(7, 18, 42, 0.78);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(235, 233, 228, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -24px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header::after { background: rgba(7, 18, 42, 0.94); }
}

.site-header.is-solid {
    --header-h: 4.5rem;
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid::after { opacity: 1; }

.site-header__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.01em;
}
.wordmark__sub {
    margin-top: 0.4rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--mist);
}

.nav { display: none; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.75rem); }

.nav__link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(235, 233, 228, 0.82);
    padding-block: 0.5rem;
    transition: color 0.3s;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.1rem;
    height: 1px;
    background: var(--lamp);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}
.nav__link:hover { color: var(--pale); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--pale); }

.header-cta { display: none; }
.header-cta .btn { --btn-pad-y: 0.8rem; --btn-pad-x: 1.35rem; font-size: 0.8125rem; }

/* A glass capsule, so the button reads as a button over any photograph */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem 0.7rem 1.1rem;
    border: 1px solid rgba(235, 233, 228, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.14), rgba(235, 233, 228, 0.04)), rgba(7, 18, 42, 0.25);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    color: var(--pale);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.35s, border-color 0.35s;
}
.menu-toggle[aria-expanded="true"] { border-color: rgba(222, 178, 140, 0.5); background: linear-gradient(135deg, rgba(201, 148, 104, 0.32), rgba(201, 148, 104, 0.12)); }
.menu-toggle__bars { position: relative; width: 18px; height: 9px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
    transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

@media (min-width: 64rem) {
    .nav { display: flex; }
    .header-cta { display: block; }
    .menu-toggle { display: none; }
    /* Three columns so the nav stays dead centre even on pages without the CTA (contact) */
    .site-header__inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
    .site-header__inner > .brand { justify-self: start; }
    .header-cta { grid-column: 3; justify-self: end; }
}

/* Mobile menu: a night panel lit by one copper glow, the pages set as a
   numbered register, services as photo cards, and the ways to call below. */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background:
        radial-gradient(ellipse 80% 45% at 100% 0%, rgba(201, 148, 104, 0.16), rgba(201, 148, 104, 0) 70%),
        radial-gradient(ellipse 70% 40% at 0% 100%, rgba(0, 48, 108, 0.45), rgba(0, 48, 108, 0) 70%),
        var(--night);
    color: var(--pale);
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.45s var(--ease-out); }

.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--dusk-line); }
.mobile-menu__list a {
    display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: 0.5rem;
    padding-block: 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6.6vw, 2rem);
    line-height: 1.1;
    transition: color 0.3s, padding 0.45s var(--ease-out);
}
.mobile-menu__num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--mist); align-self: center; }
.mobile-menu__list .icon { width: 1.15rem; height: 1.15rem; color: var(--mist); transition: transform 0.45s var(--ease-out), color 0.3s; }
.mobile-menu__list a:active { padding-left: 0.4rem; }
.mobile-menu__list a[aria-current="page"] { color: var(--lamp); }
.mobile-menu__list a[aria-current="page"] .mobile-menu__num,
.mobile-menu__list a[aria-current="page"] .icon { color: var(--lamp); }

.mobile-menu__services { margin-top: 1.5rem; }
.mobile-menu__label { color: var(--mist); display: block; margin-bottom: 0.85rem; }
.mobile-menu__rail {
    list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.25rem;
    display: flex; gap: 0.65rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.mobile-menu__rail::-webkit-scrollbar { display: none; }
.mobile-menu__rail li { flex: 0 0 auto; scroll-snap-align: start; }
.mobile-menu__card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end;
    width: 9.25rem; aspect-ratio: 4 / 5;
    padding: 0.75rem;
    border-radius: 14px;
    background: var(--dusk-2);
    box-shadow: inset 0 0 0 1px rgba(235, 233, 228, 0.12);
    font-family: var(--font-display); font-size: 1rem; line-height: 1.2;
}
.mobile-menu__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mobile-menu__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 18, 42, 0.92) 0%, rgba(7, 18, 42, 0.3) 60%, rgba(7, 18, 42, 0.1) 100%); }
.mobile-menu__card[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--lamp); color: var(--lamp); }

.mobile-menu__foot { display: grid; gap: 1.25rem; }
.mobile-menu__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.mobile-menu__action {
    display: grid; justify-items: center; gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    border: 1px solid rgba(235, 233, 228, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.mobile-menu__action .icon { width: 1.3rem; height: 1.3rem; }
.mobile-menu__action--lamp {
    background: linear-gradient(135deg, rgba(201, 148, 104, 0.42), rgba(201, 148, 104, 0.18));
    border-color: rgba(222, 178, 140, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 228, 200, 0.25), 0 14px 30px -18px rgba(201, 148, 104, 0.7);
}
.mobile-menu__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--dusk-line); }
.mobile-menu__loc { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--mist); font-size: 0.875rem; }
.mobile-menu__loc .icon { width: 1rem; height: 1rem; }

/* Round glass buttons for the social links (menu and footer) */
.social { display: flex; gap: 0.5rem; }
.social__btn {
    width: 2.6rem; height: 2.6rem; flex-shrink: 0;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(235, 233, 228, 0.16);
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    color: var(--pale);
    transition: border-color 0.3s, color 0.3s;
}
.social__btn .icon { width: 1.1rem; height: 1.1rem; }
.social__btn:hover { border-color: var(--lamp); color: var(--lamp); }

/* As the panel opens, its rows rise in one after another */
@media (prefers-reduced-motion: no-preference) {
    .mobile-menu__list li, .mobile-menu__services, .mobile-menu__foot {
        opacity: 0; transform: translateY(14px);
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }
    .mobile-menu.is-open .mobile-menu__list li,
    .mobile-menu.is-open .mobile-menu__services,
    .mobile-menu.is-open .mobile-menu__foot {
        opacity: 1; transform: none;
        transition-duration: 0.7s;
        transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
    }
}

body.menu-open { overflow: hidden; }
@media (min-width: 64rem) { .mobile-menu { display: none; } }

/* --------------------------------------------------------------------------
   Home hero — "lights on"
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100svh;
    min-height: max(40rem, 100svh);
    display: flex;
    align-items: flex-end;
    background: var(--night);
    color: var(--pale);
    overflow: hidden;
    isolation: isolate;
    /* The photograph is a framed panel resting on the limestone: a thin stone
       margin at the sides, deep rounded corners at the foot, and a soft shadow
       so it sits on the page rather than being cut off by it. */
    --hero-inset: clamp(0.5rem, 1.1vw, 1rem);
    --hero-radius: clamp(24px, 3.2vw, 48px);
    margin-inline: var(--hero-inset);
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
    box-shadow: 0 36px 64px -42px rgba(7, 18, 42, 0.5), 0 14px 28px -22px rgba(7, 18, 42, 0.3);
    transform-origin: 50% 0;
}
/* hairline of light along the curved foot, like the edge of a glass plate */
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    box-shadow: inset 0 -1px 0 rgba(235, 233, 228, 0.16);
}

/* Where scroll-driven animation exists: full-bleed at the top, and as the page
   scrolls the photograph draws in to a rounded panel resting on the stone. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        .hero {
            margin-inline: 0;
            border-radius: 0;
            animation: hero-settle linear both;
            animation-timeline: scroll(root);
            animation-range: 0 75vh;
        }
        @keyframes hero-settle {
            from { transform: none; border-radius: 0; }
            to   { transform: scale(0.93); border-radius: 0 0 calc(var(--hero-radius) * 1.5) calc(var(--hero-radius) * 1.5); }
        }
    }
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 58% 50%;
}

.hero__veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to top, rgba(7, 18, 42, 0.92) 0%, rgba(7, 18, 42, 0.55) 34%, rgba(7, 18, 42, 0.05) 62%),
        linear-gradient(to right, rgba(7, 18, 42, 0.55) 0%, rgba(7, 18, 42, 0) 55%);
}

@media (max-width: 47.99rem) {
    .hero__veil {
        background: linear-gradient(to top, rgba(7, 18, 42, 0.96) 0%, rgba(7, 18, 42, 0.78) 48%, rgba(7, 18, 42, 0.2) 78%, rgba(7, 18, 42, 0.35) 100%);
    }
}

.hero__body {
    width: 100%;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero__grid { display: grid; gap: 2.5rem; align-items: end; }

.hero__title { max-width: 13ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }

.hero__lede { margin-top: 1.75rem; color: rgba(235, 233, 228, 0.86); max-width: 34em; }

.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* Gallery-wall caption for the photographed house */
.plaque {
    justify-self: start;
    border-top: 1px solid var(--dusk-line-strong);
    padding-top: 1rem;
    min-width: 16rem;
    max-width: 22rem;
}
.plaque__title { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.3; }
.plaque__meta { margin-top: 0.4rem; color: var(--mist); font-size: 0.875rem; }
.plaque__link { margin-top: 0.75rem; color: var(--pale); }
.hero__plaque { margin-top: 2.5rem; max-width: none; }
/* keep the full company name on one line wherever it fits; phones may still wrap */
@media (min-width: 40rem) { .hero__plaque .plaque__title { white-space: nowrap; } }

@media (min-width: 64rem) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
    .plaque { justify-self: end; }
    .hero__plaque { justify-self: start; }
}

/* Signature moment: the house starts at blue hour and the lamps come on. */
@media (prefers-reduced-motion: no-preference) {
    .js .hero__media img {
        filter: brightness(0.42) saturate(0.35) hue-rotate(-8deg);
        transform: scale(1.06);
        transition: filter 2.8s var(--ease-in-out) 0.25s, transform 6s var(--ease-out);
    }
    .js .hero.is-lit .hero__media img { filter: none; transform: scale(1); }

    .js .hero__title .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
    .js .hero.is-lit .hero__title .line > span { transform: none; }
    .js .hero.is-lit .hero__title .line:nth-child(2) > span { transition-delay: 0.12s; }
    .js .hero.is-lit .hero__title .line:nth-child(3) > span { transition-delay: 0.24s; }

    .js .hero__fade { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
    .js .hero.is-lit .hero__fade { opacity: 1; transform: none; transition-delay: 0.9s; }
    .js .hero.is-lit .hero__fade--late { transition-delay: 1.6s; }
}

/* --------------------------------------------------------------------------
   Inner page head
   -------------------------------------------------------------------------- */

.page-head {
    position: relative;
    background: var(--dusk);
    color: var(--pale);
    padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 7.5rem));
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
}

/* Title on one line, the lede beneath it */
.page-head__grid { display: grid; gap: 1.75rem; }
.page-head__title { max-width: none; }
.page-head__lede { color: rgba(235, 233, 228, 0.8); max-width: 40em; }
.page-head__trail { margin-bottom: 2.25rem; color: var(--mist); display: flex; flex-wrap: wrap; gap: 0.6rem; }
.page-head__trail a:hover { color: var(--pale); }

@media (min-width: 64rem) {
    .page-head__title { white-space: nowrap; }
}

/* Limestone version of the page header (Gallery) */
.page-head--stone { background: var(--stone); color: var(--ink); }
.page-head--stone .slogan { color: var(--ink-2); }
.page-head--stone .page-head__lede { color: var(--ink-2); }
.page-head--stone .page-head__trail { color: var(--ink-2); }
.page-head--stone .page-head__trail a:hover { color: var(--ink); }
/* light menu text can't sit on limestone, so the header shows its navy glass from the start */
body:has(.page-head--stone) .site-header::before { opacity: 0; }
body:has(.page-head--stone) .site-header::after { opacity: 1; }

/* Photograph that bleeds out of the dusk band into the stone below */
.bleed {
    position: relative;
    background: linear-gradient(to bottom, var(--dusk) 0, var(--dusk) 45%, var(--stone) 45%);
}
.bleed__frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--dusk-2); }
.bleed__frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .bleed__frame { aspect-ratio: 4 / 3; } }

/* Page-header photographs: a window with depth. While the frame crosses the
   screen the picture inside drifts slower than the page and eases out of a zoom.
   (Scale always covers the drift, so no edge ever shows.) */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .bleed__frame { view-timeline: --bleed block; }
        .bleed__frame img {
            animation: bleed-drift linear both;
            animation-timeline: --bleed;
            animation-range: cover 0% cover 100%;
            will-change: transform;
        }
        @keyframes bleed-drift {
            from { transform: translateY(-5%) scale(1.16); }
            to   { transform: translateY(2.5%) scale(1.06); }
        }
    }
}

/* --------------------------------------------------------------------------
   Statement & register
   -------------------------------------------------------------------------- */

.statement { display: grid; gap: 3rem; }
.statement__text {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.3vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.008em;
    text-wrap: pretty;
}
.statement__text em { font-style: normal; color: var(--ink-2); }

@media (min-width: 64rem) {
    .statement { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; }
}

/* A ledger of plain facts, set like a title block — replaces stat tiles */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-line-strong); }
.ledger li, .ledger > div {
    display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--stone-line);
}
.ledger dt, .ledger .ledger__k { color: var(--ink-2); font-size: 0.875rem; }
.ledger dd, .ledger .ledger__v { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.on-dusk .ledger { border-top-color: var(--dusk-line-strong); }
.on-dusk .ledger li { border-bottom-color: var(--dusk-line); }
.on-dusk .ledger .ledger__k { color: var(--mist); }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head__aside { color: var(--ink-2); max-width: 30em; }
.on-dusk .section-head__aside, .on-night .section-head__aside { color: var(--mist); }

@media (min-width: 64rem) {
    .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; }
    .section-head__aside { justify-self: end; }
}

/* --------------------------------------------------------------------------
   Work: featured piece + index
   -------------------------------------------------------------------------- */

.feature { display: grid; gap: 2rem; align-items: end; }
.feature__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-3); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: 1.25rem; }
.feature__meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

@media (min-width: 64rem) {
    .feature { grid-template-columns: 8fr 4fr; gap: 3.5rem; }
    .feature__media { aspect-ratio: 16 / 11; }
    .feature__body { padding-bottom: 0.5rem; }
}

/* Index of works — rows like a drawing register, with a floating preview */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-line-strong); }
.index__row { border-bottom: 1px solid var(--stone-line); }
.index__link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1.5rem;
    align-items: baseline;
    padding-block: 1.6rem;
    transition: padding 0.5s var(--ease-out), color 0.3s;
}
.index__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; }
.index__place { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.9375rem; }
.index__year { color: var(--ink-2); }
.index__thumb { display: none; }

@media (max-width: 47.99rem) {
    .index__link { grid-template-columns: 88px 1fr; align-items: start; column-gap: 1.25rem; }
    .index__title { font-size: 1.375rem; }
    .index__thumb { display: block; grid-row: 1 / span 3; aspect-ratio: 1; overflow: hidden; background: var(--stone-3); }
    .index__thumb img { width: 100%; height: 100%; object-fit: cover; }
    .index__year, .index__place { grid-column: 2; }
}

@media (min-width: 48rem) {
    .index__link { grid-template-columns: minmax(0, 1fr) 16rem 10rem 4.5rem; }
    .index__place { grid-column: auto; }
    .index__rating { color: var(--ink-2); }
    .index__year { text-align: right; }
    .index__link:hover { padding-left: 1.25rem; }
}
@media (max-width: 47.99rem) { .index__rating { display: none; } }

.index-preview {
    position: fixed;
    top: 0; left: 0;
    z-index: 30;
    width: 22rem;
    aspect-ratio: 4 / 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.92);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
    box-shadow: 0 30px 60px -20px rgba(7, 18, 42, 0.45);
    background: var(--stone-3);
}
.index-preview.is-visible { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease-out); }
.index-preview img.is-active { opacity: 1; }
@media (hover: none), (max-width: 63.99rem) { .index-preview { display: none; } }

/* --------------------------------------------------------------------------
   Capabilities switcher (home)
   -------------------------------------------------------------------------- */

.caps { display: grid; gap: 3rem; }
.caps__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dusk-2); display: none; }
.caps__stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity 0.9s var(--ease-out), transform 2.4s var(--ease-out);
}
.caps__stage img.is-active { opacity: 1; transform: scale(1); }

.caps__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dusk-line-strong); }
.caps__item { border-bottom: 1px solid var(--dusk-line); }
.caps__link { display: grid; gap: 0.85rem; padding-block: 2rem; }
.caps__title { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; transition: color 0.4s; }
.caps__title .icon { width: 1.4rem; height: 1.4rem; color: var(--mist); transition: transform 0.5s var(--ease-out), color 0.4s; }
.caps__text { color: var(--mist); max-width: 34em; }
.caps__item.is-active .caps__title, .caps__link:hover .caps__title { color: var(--lamp); }
.caps__item.is-active .caps__title .icon, .caps__link:hover .caps__title .icon { color: var(--lamp); transform: translateX(6px); }

@media (min-width: 64rem) {
    .caps { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
    .caps__stage { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
    .caps__text { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.7s var(--ease-out), opacity 0.6s var(--ease-out); }
    .caps__item.is-active .caps__text, .caps__link:focus-visible .caps__text { max-height: 12rem; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Material specification rows
   -------------------------------------------------------------------------- */

.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-line-strong); }
.spec__row { display: grid; gap: 0.75rem; padding-block: 2rem; border-bottom: 1px solid var(--stone-line); }
.spec__label { color: var(--ink-2); }
.spec__text { color: var(--ink-2); max-width: 46ch; }

@media (min-width: 48rem) {
    .spec__row { grid-template-columns: 3fr 4fr 5fr; gap: 2.5rem; align-items: baseline; }
}

.on-dusk .spec { border-top-color: var(--dusk-line-strong); }
.on-dusk .spec__row { border-bottom-color: var(--dusk-line); }
.on-dusk .spec__label, .on-dusk .spec__text { color: var(--mist); }

/* Full-bleed photograph band */
.band { position: relative; height: clamp(22rem, 62vw, 46rem); overflow: hidden; background: var(--dusk-2); }
.band img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* --------------------------------------------------------------------------
   Stages (process)
   -------------------------------------------------------------------------- */

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: stage; }
.stage { position: relative; padding-block: 2rem; border-top: 1px solid var(--stone-line-strong); }
.stage__n { font-family: var(--font-display); font-size: 1rem; color: var(--ink-2); display: block; margin-bottom: 1.5rem; }
.stage__title { margin-bottom: 0.85rem; }
.stage__text { color: var(--ink-2); font-size: 0.9875rem; }

@media (min-width: 48rem) { .stages { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 72rem) { .stages { grid-template-columns: repeat(4, 1fr); } }

/* Long-form stage (process page) */
.stage-long { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--stone-line-strong); }
.stage-long__n {
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px var(--ink-2);
}
.stage-long__body { display: grid; gap: 1.5rem; }
.deliverables { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.deliverables li { display: flex; gap: 0.85rem; align-items: baseline; color: var(--ink); }

@media (min-width: 64rem) {
    .stage-long { grid-template-columns: 3fr 9fr; gap: 4rem; }
    .stage-long__body { grid-template-columns: 6fr 4fr; gap: 3.5rem; align-items: start; }
    .stage-long__body .h3 { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Testimony
   -------------------------------------------------------------------------- */

.testimony { display: grid; gap: 2.5rem; }
.testimony__quote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.75rem);
    line-height: 1.25;
    text-wrap: pretty;
}
.testimony__quote::before { content: "\201C"; display: block; font-size: 3em; line-height: 0.6; height: 0.5em; color: var(--lamp); }
.testimony__by { display: grid; gap: 0.25rem; }
.testimony__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone-3); }
.testimony__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 64rem) {
    .testimony { grid-template-columns: 4fr 8fr; gap: 5rem; align-items: center; }
}

/* --------------------------------------------------------------------------
   Closing invitation
   -------------------------------------------------------------------------- */

.closing {
    /* limestone, like the Reviews section above it, so the photo opens out of the stone */
    position: relative; overflow: hidden; color: var(--pale); background: var(--stone); isolation: isolate;
    /* how far in the photo starts before it opens out (see the scroll animation below) */
    --open-x: clamp(1rem, 7vw, 7rem);
    --open-y: clamp(1rem, 3vw, 2.5rem);
    --open-r: clamp(20px, 3vw, 44px);
}
.closing__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.closing__media img, .closing__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* the veil lives on the media layer so it opens with the photo */
.closing__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(7, 18, 42, 0.92) 0%, rgba(7, 18, 42, 0.7) 45%, rgba(7, 18, 42, 0.25) 100%);
}

/* Counterpart to the home hero: as the section scrolls in, the photograph opens
   from a rounded window in the navy out to the full width. Text stays still. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        /* named on the section itself: its overflow:hidden would otherwise make it
           the scroller that view() measures against, and nothing would move */
        .closing { view-timeline: --closing block; }
        .closing__media {
            animation: closing-open linear both;
            animation-timeline: --closing;
            animation-range: entry 10% cover 50%;
        }
        .closing__media img, .closing__media video {
            animation: closing-zoom linear both;
            animation-timeline: --closing;
            animation-range: entry 10% cover 50%;
        }
        @keyframes closing-open {
            from { clip-path: inset(var(--open-y) var(--open-x) round var(--open-r)); }
            to   { clip-path: inset(0 0 round 0px); }
        }
        @keyframes closing-zoom {
            from { transform: scale(1.14); }
            to   { transform: scale(1); }
        }
    }
}
.closing__body { padding-block: clamp(7rem, 14vw, 12rem); max-width: 40rem; }
.closing__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.contact-line { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1rem; transition: color 0.3s; }
.contact-line .icon { width: 1.15rem; height: 1.15rem; }
a.contact-line:hover { color: var(--lamp); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { position: relative; isolation: isolate; background: var(--night); color: var(--pale); padding-top: clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.site-footer__top { position: relative; display: grid; gap: 3rem; padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.site-footer__cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer h2 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer li a, .site-footer address a { color: rgba(235, 233, 228, 0.86); transition: color 0.3s; }
.site-footer li a:hover, .site-footer address a:hover { color: var(--lamp); }
.site-footer address { font-style: normal; display: grid; gap: 0.55rem; color: rgba(235, 233, 228, 0.86); }

/* Watermark: the name set huge and faint behind the footer content,
   dissolving downward into the base row. */
.site-footer__mark {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 5.25rem;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: min(16vw, 15.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: rgba(235, 233, 228, 0.045);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
    pointer-events: none;
    user-select: none;
}
@media (max-width: 47.99rem) {
    /* On phones the columns stack tall, so give the mark its own band above the base row */
    .site-footer__top { padding-bottom: calc(17vw + 3rem); }
    .site-footer__mark { bottom: 5.25rem; font-size: 17vw; color: rgba(235, 233, 228, 0.06); }
}
.site-footer__base {
    position: relative;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
    padding-block: 1.75rem 2rem;
    font-size: 0.8125rem;
    color: var(--mist);
    border-top: 1px solid var(--dusk-line);
}
.site-footer__base nav { display: flex; gap: 1.75rem; }
.site-footer__base a:hover { color: var(--pale); }

@media (min-width: 64rem) {
    .site-footer__top { grid-template-columns: 5fr 7fr; gap: 5rem; }
    .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--stone-line); }
.filters a {
    position: relative; padding-block: 1rem; color: var(--ink-2); font-size: 0.9375rem; transition: color 0.3s;
}
.filters a:hover { color: var(--ink); }
.filters a[aria-current="true"] { color: var(--ink); }
.filters a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.filters__count { margin-left: auto; color: var(--ink-2); }

.works { display: grid; gap: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 3vw, 3rem); }
.work { display: grid; gap: 1.25rem; align-content: start; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.work:hover .work__media img { transform: scale(1.035); }
.work__cap { display: grid; gap: 0.4rem; }
.work__line { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--ink-2); font-size: 0.9375rem; }
.work__title { transition: color 0.3s; }
.work:hover .work__title { color: var(--ink-2); }

@media (min-width: 48rem) {
    .works { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .work { grid-column: span 6; }
    .work:nth-child(4n + 1) { grid-column: 1 / -1; }
    .work:nth-child(4n + 1) .work__media { aspect-ratio: 21 / 9; }
    .work:nth-child(4n + 2) { grid-column: 1 / span 7; }
    .work:nth-child(4n + 3) { grid-column: 9 / span 4; margin-top: clamp(4rem, 12vw, 10rem); }
    .work:nth-child(4n + 3) .work__media { aspect-ratio: 3 / 4; }
    .work:nth-child(4n) { grid-column: 3 / span 8; }
}

@media (min-width: 48rem) {
    .works--pair .work, .works--pair .work:nth-child(n) { grid-column: span 6; margin-top: 0; }
    .works--pair .work .work__media, .works--pair .work:nth-child(n) .work__media { aspect-ratio: 4 / 3; }
}

.empty { padding: 4rem 0; display: grid; gap: 1.5rem; justify-items: start; }

/* --------------------------------------------------------------------------
   Project case study
   -------------------------------------------------------------------------- */

.case-hero { position: relative; min-height: max(36rem, 92svh); display: flex; align-items: flex-end; color: var(--pale); background: var(--night); isolation: isolate; overflow: hidden; }
.case-hero__media { position: absolute; inset: 0; z-index: -2; }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 18, 42, 0.94) 0%, rgba(7, 18, 42, 0.6) 42%, rgba(7, 18, 42, 0.18) 75%, rgba(7, 18, 42, 0.35) 100%); }
.case-hero .page-head__trail { color: rgba(235, 233, 228, 0.82); }
.case-hero__body { width: 100%; padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 5vw, 4rem); }
.case-hero__lede { margin-top: 1.5rem; color: rgba(235, 233, 228, 0.86); }

/* Architect's drawing title block */
.titleblock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--stone-line-strong);
    background: var(--stone-2);
}
.titleblock > div { padding: 1.1rem 1.25rem; border-right: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); display: grid; gap: 0.35rem; align-content: start; }
.titleblock dt { color: var(--ink-2); }
.titleblock dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.titleblock .titleblock__wide { grid-column: 1 / -1; }

@media (min-width: 48rem) { .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .titleblock { grid-template-columns: repeat(6, minmax(0, 1fr)); } .titleblock .titleblock__wide { grid-column: span 2; } }

.case-body { display: grid; gap: 3.5rem; }
.case-body__intro { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.3; }
.case-pair { display: grid; gap: 2.5rem; }
.case-pair > div { border-top: 1px solid var(--stone-line-strong); padding-top: 1.5rem; display: grid; gap: 1rem; align-content: start; }

@media (min-width: 64rem) {
    .case-body { grid-template-columns: 4fr 8fr; gap: 5rem; }
    .case-pair { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.plates { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.plates figure { margin: 0; overflow: hidden; background: var(--stone-3); }
.plates img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 48rem) {
    .plates { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .plates figure { grid-column: span 6; }
    .plates figure:first-child { grid-column: 1 / -1; }
    .plates figure:first-child img { aspect-ratio: 21 / 9; }
}

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.service { display: grid; gap: 2.5rem; padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--stone-line-strong); }
.service:first-child { border-top: 0; padding-top: 0; }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-3); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { display: grid; gap: 1.5rem; align-content: start; }
.service__index { color: var(--ink-2); }
.service__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 0.75rem; }

.scope { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid var(--stone-line); }
.scope li { display: flex; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--stone-line); font-size: 0.9875rem; }
.scope li .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; color: var(--ink-2); }

@media (min-width: 64rem) {
    .service { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: start; }
    .service:nth-child(even) .service__media { order: 2; }
    .service__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.archive { display: grid; gap: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 2.4vw, 2rem); }
.archive__item { margin: 0; display: grid; gap: 0.9rem; align-content: start; }
.archive__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--stone-3); cursor: zoom-in; overflow: hidden; }
.archive__btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.4s var(--ease-out); }
.archive__btn:hover img { transform: scale(1.035); }
.archive__cap { display: grid; gap: 0.2rem; }
.archive__cap .muted { font-size: 0.9375rem; }

@media (min-width: 48rem) {
    .archive { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .archive__item { grid-column: span 6; }
    .archive__item:nth-child(6n + 1) { grid-column: 1 / span 8; }
    .archive__item:nth-child(6n + 1) img { aspect-ratio: 3 / 2; }
    .archive__item:nth-child(6n + 2) { grid-column: 9 / span 4; align-self: end; }
    .archive__item:nth-child(6n + 2) img { aspect-ratio: 3 / 4; }
    .archive__item:nth-child(6n + 3) { grid-column: 1 / span 5; }
    .archive__item:nth-child(6n + 3) img { aspect-ratio: 4 / 5; }
    .archive__item:nth-child(6n + 4) { grid-column: 6 / span 7; margin-top: clamp(3rem, 8vw, 7rem); }
    .archive__item:nth-child(6n + 5) { grid-column: 2 / span 6; }
    .archive__item:nth-child(6n + 6) { grid-column: 8 / span 5; margin-top: clamp(2rem, 6vw, 5rem); }
}

.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(7, 18, 42, 0.97);
    color: var(--pale);
}
.lightbox::backdrop { background: rgba(7, 18, 42, 0.97); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lightbox-in 0.45s var(--ease-out); }
.lightbox__bar { display: flex; justify-content: flex-end; padding: 1rem var(--gutter); }
.lightbox__close { display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: 0; color: var(--pale); cursor: pointer; padding: 0.75rem 0; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lightbox__close:hover { color: var(--lamp); }
.lightbox__img { min-height: 0; display: grid; place-items: center; padding-inline: var(--gutter); }
.lightbox__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__cap { padding: 1.25rem var(--gutter) 1.75rem; display: grid; gap: 0.2rem; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { display: grid; gap: 4rem; }
.contact__direct { display: grid; gap: 2.5rem; align-content: start; }
.direct-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dusk-line-strong); }
.direct-lines li { border-bottom: 1px solid var(--dusk-line); }
.direct-lines a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
    padding-block: 1.35rem;
    transition: color 0.3s, padding 0.5s var(--ease-out);
}
.direct-lines a:hover { color: var(--lamp); padding-left: 0.5rem; }
.direct-lines .icon { width: 1.35rem; height: 1.35rem; }
.direct-lines__k { display: block; color: var(--mist); }
.direct-lines__v { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; word-break: break-word; }
.direct-lines .icon:last-child { color: var(--mist); }

.portrait { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: center; }
.portrait img { width: 6.5rem; height: 6.5rem; object-fit: cover; object-position: 40% 30%; filter: saturate(0.85); }
.portrait p { color: var(--mist); font-size: 0.9375rem; }

.form-card { background: var(--stone-2); color: var(--ink); padding: clamp(1.75rem, 4vw, 3.5rem); }
.form-card .muted { color: var(--ink-2); }
.form-card .link:hover { color: var(--ink-2); }
.form-grid { display: grid; gap: 1.75rem 2rem; }
@media (min-width: 48rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); }
.field label .req { color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%;
    appearance: none;
    background: transparent;
    border: 1px solid var(--stone-line-strong);
    border-radius: var(--radius-control);
    padding: 0.75rem 1rem;
    font-size: 1.0625rem;
    color: var(--ink);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a525c' stroke-width='1.25'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
    cursor: pointer;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #737a83; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field__error { font-size: 0.8125rem; color: var(--err); }

.form-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.form-foot p { color: var(--ink-2); font-size: 0.875rem; max-width: 30em; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; border: 1px solid; }
.notice .icon { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }
.notice--ok { border-color: rgba(47, 107, 79, 0.4); background: rgba(47, 107, 79, 0.07); color: #1f4a36; }
.notice--err { border-color: rgba(155, 59, 46, 0.4); background: rgba(155, 59, 46, 0.06); color: #6e271d; }
.notice strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }

@media (min-width: 64rem) { .contact { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; } }

/* --------------------------------------------------------------------------
   Terms (reading layout)
   -------------------------------------------------------------------------- */

.doc { display: grid; gap: 3rem; }
.doc__toc { display: none; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; border-left: 1px solid var(--stone-line); }
.doc__toc a { display: block; padding-left: 1.25rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); font-size: 0.9375rem; transition: color 0.3s, border-color 0.3s; }
.doc__toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc__section { padding-block: 2.5rem; border-top: 1px solid var(--stone-line-strong); display: grid; gap: 1rem; }
.doc__section:first-child { border-top: 0; padding-top: 0; }
.doc__section p { color: var(--ink-2); max-width: 66ch; }
@media (min-width: 64rem) {
    .doc { grid-template-columns: 3fr 8fr; gap: 5rem; }
    .doc__toc { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.story { display: grid; gap: 3rem; }
.story__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-3); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { display: grid; gap: 2.5rem; align-content: start; }
@media (min-width: 64rem) {
    .story { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
    .story__body { padding-top: 4rem; }
}

/* --------------------------------------------------------------------------
   Reveal motion — content is visible without JS; images unveil once.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
        transition-delay: var(--d, 0s);
    }
    .js [data-reveal].is-in { opacity: 1; transform: none; }

    .js [data-unveil] {
        clip-path: inset(0 0 100% 0 round var(--radius-media));
        transition: clip-path 1.5s var(--ease-in-out);
        transition-delay: var(--d, 0s);
    }
    .js [data-unveil] img { transform: scale(1.12); transition: transform 2.2s var(--ease-out); transition-delay: var(--d, 0s); }
    .js [data-unveil].is-in { clip-path: inset(0 0 0 0 round var(--radius-media)); }
    .js [data-unveil].is-in img { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Brand lock-up & services dropdown
   -------------------------------------------------------------------------- */

.brand { display: flex; align-items: center; gap: 0.85rem; }
@media (max-width: 30rem) { .wordmark__sub { letter-spacing: 0.14em; white-space: nowrap; } }
.brand__mark { width: auto; height: 2.6rem; transition: height 0.5s var(--ease-out); }
.site-header.is-solid .brand__mark { height: 2.2rem; }

.nav__group { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9375rem; }
.nav__chev { width: 0.95rem; height: 0.95rem; transition: transform 0.4s var(--ease-out); }
.nav__group.is-open .nav__chev { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 1.1rem);
    left: 50%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 25rem;
    user-select: none;
    /* Frosted glass: the photograph shows through, blurred and tinted navy */
    background: linear-gradient(155deg, rgba(235, 233, 228, 0.14) 0%, rgba(235, 233, 228, 0.04) 45%, rgba(7, 18, 42, 0.18) 100%), rgba(7, 18, 42, 0.42);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(235, 233, 228, 0.18);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 60px -24px rgba(0, 0, 0, 0.65);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.35s;
}
@media (min-width: 72rem) {
    .dropdown { width: 41rem; grid-template-columns: 1fr 14rem; }
}
/* Hover bridge across the gap between trigger and panel */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -1.2rem; height: 1.2rem; }
.nav__group.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .dropdown { background: rgba(7, 18, 42, 0.94); }
}

.dropdown__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dropdown__item {
    position: relative;
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    color: var(--pale);
    text-shadow: 0 1px 2px rgba(7, 18, 42, 0.4);
    transition: background-color 0.35s var(--ease-out);
}
.dropdown__num { font-family: var(--font-display); font-size: 0.95rem; color: var(--pale); opacity: 0.6; transition: opacity 0.35s var(--ease-out); }
.dropdown__text { display: grid; gap: 0.2rem; min-width: 0; }
.dropdown__label { font-size: 0.975rem; font-weight: 500; letter-spacing: 0.005em; transition: transform 0.45s var(--ease-out); }
.dropdown__blurb { font-size: 0.8rem; color: rgba(235, 233, 228, 0.6); transition: color 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.dropdown__item .icon { width: 1rem; height: 1rem; color: var(--pale); opacity: 0; transform: translateX(-8px); transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }

.dropdown__item:hover, .dropdown__item:focus-visible { background: rgba(235, 233, 228, 0.09); }
.dropdown__item:hover .dropdown__num, .dropdown__item:focus-visible .dropdown__num { opacity: 1; }
.dropdown__item:hover .dropdown__label, .dropdown__item:focus-visible .dropdown__label,
.dropdown__item:hover .dropdown__blurb, .dropdown__item:focus-visible .dropdown__blurb { transform: translateX(3px); }
.dropdown__item:hover .dropdown__blurb, .dropdown__item:focus-visible .dropdown__blurb { color: rgba(235, 233, 228, 0.8); }
.dropdown__item:hover .icon, .dropdown__item:focus-visible .icon { opacity: 1; transform: none; }
.dropdown__item[aria-current="page"] .dropdown__label { color: var(--lamp); }
.dropdown__item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 2px; border-radius: 2px; background: var(--lamp); }

/* Photograph of the hovered service, cross-fading */
.dropdown__preview { display: none; position: relative; border-radius: 10px; overflow: hidden; background: var(--dusk-2); box-shadow: inset 0 0 0 1px rgba(235, 233, 228, 0.1); }
.dropdown__preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 18, 42, 0.45), transparent 45%); pointer-events: none; }
.dropdown__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out); }
.dropdown__preview img.is-active { opacity: 1; transform: scale(1); }
@media (min-width: 72rem) { .dropdown__preview { display: block; } }

/* Items rise in one after another as the panel opens */
@media (prefers-reduced-motion: no-preference) {
    .dropdown__list li { opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
    .nav__group.is-open .dropdown__list li { opacity: 1; transform: none; transition-duration: 0.55s; }
    .nav__group.is-open .dropdown__list li:nth-child(2) { transition-delay: 0.04s; }
    .nav__group.is-open .dropdown__list li:nth-child(3) { transition-delay: 0.08s; }
    .nav__group.is-open .dropdown__list li:nth-child(4) { transition-delay: 0.12s; }
    .nav__group.is-open .dropdown__list li:nth-child(5) { transition-delay: 0.16s; }
    .nav__group.is-open .dropdown__list li:nth-child(6) { transition-delay: 0.2s; }
}

.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.brand--footer { gap: 1.1rem; }
.brand--footer .brand__mark { height: 4.25rem; }
.brand--footer .wordmark__name { font-size: 2.5rem; }
.brand--footer .wordmark__sub { margin-top: 0.6rem; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Content pages
   -------------------------------------------------------------------------- */

/* Heading beside its text */
.article { display: grid; gap: 1.5rem 4rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--stone-line-strong); }
.article:first-child { border-top: 0; padding-top: 0; }
.article__body { display: grid; gap: 1.25rem; align-content: start; }
.article__body p { color: var(--ink-2); max-width: 66ch; }
.article__body .lead { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.35; max-width: 34em; }
.on-dusk .article { border-top-color: var(--dusk-line-strong); }
.on-dusk .article__body p { color: var(--mist); }
@media (min-width: 64rem) { .article { grid-template-columns: 4fr 8fr; } }

/* Centred heading and paragraph introducing a page section */
.intro-center { max-width: 46rem; margin-inline: auto; text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.intro-center .lede { color: var(--ink-2); }
.on-dusk .intro-center .lede { color: var(--mist); }

/* Three short statements side by side */
.trio { display: grid; gap: 3rem; }
.trio__item { display: grid; gap: 1.25rem; align-content: start; padding-top: 1.75rem; border-top: 1px solid var(--stone-line-strong); }
.trio__item p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.trio__item .link { justify-self: start; }
@media (min-width: 56rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); } }

.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--stone-line); }
.dash-list li { display: flex; gap: 1rem; align-items: baseline; padding-block: 0.85rem; border-bottom: 1px solid var(--stone-line); color: var(--ink); }
.dash-list strong { font-weight: 600; }

/* Image + text split */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media { overflow: hidden; background: var(--stone-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__body { display: grid; gap: 1.25rem; align-content: start; }
.split__body p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 64rem) {
    .split { grid-template-columns: 6fr 5fr; gap: 5rem; }
    .split--flip .split__media { order: 2; }
    .split--flip { grid-template-columns: 5fr 6fr; }
}
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--stone-line-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--stone-line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--lamp); }
.steps p { color: var(--ink-2); }
.steps strong { color: var(--ink); font-weight: 600; }
.on-dusk .steps { border-top-color: var(--dusk-line-strong); }
.on-dusk .steps li { border-bottom-color: var(--dusk-line); }
.on-dusk .steps p { color: var(--mist); }
.on-dusk .steps strong { color: var(--pale); }

/* Tiles linking to each service */
.tiles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.tile { position: relative; display: block; overflow: hidden; background: var(--dusk-2); color: var(--pale); aspect-ratio: 4 / 3; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 18, 42, 0.88) 0%, rgba(7, 18, 42, 0.25) 55%, rgba(7, 18, 42, 0.05) 100%); transition: background-color 0.5s; }
.tile:hover img { transform: scale(1.05); }
.tile__label { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.35rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.tile__label .icon { width: 1.35rem; height: 1.35rem; flex-shrink: 0; transition: transform 0.5s var(--ease-out), color 0.3s; }
.tile:hover .tile__label .icon { transform: translateX(5px); color: var(--lamp); }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) {
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .tile { aspect-ratio: auto; height: clamp(14rem, 18vw, 17.5rem); }
}
.tile__label .h3 { font-size: clamp(1.125rem, 1.4vw, 1.375rem); }

/* Tighter container for the home Services and Photo Gallery sections */
.wrap--compact { max-width: 74rem; }

/* Horizontal photograph reel with arrows */
.reel { position: relative; }
.reel__track {
    display: flex;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__item { flex: 0 0 auto; height: clamp(16rem, 42vw, 34rem); scroll-snap-align: start; margin: 0; padding: 0; border: 0; background: var(--stone-3); cursor: zoom-in; overflow: hidden; }
.reel__item img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.reel__item:hover img { transform: scale(1.03); }
.reel__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.reel__count { color: var(--ink-2); }
.on-dusk .reel__count { color: var(--mist); }
.reel__nav { display: flex; gap: 0.5rem; }
.reel__btn {
    width: 3.25rem; height: 3.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--stone-line-strong); border-radius: 14px; color: var(--ink); cursor: pointer;
    /* smoked glass, matching .btn--line */
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.08), rgba(20, 30, 45, 0.02));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -20px rgba(20, 30, 45, 0.45);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.reel__btn:hover { background: linear-gradient(135deg, rgba(20, 30, 45, 0.14), rgba(20, 30, 45, 0.05)); border-color: var(--ink-2); }
.reel__btn[disabled] { opacity: 0.35; cursor: default; }
.reel__btn .icon { width: 1.2rem; height: 1.2rem; }
.reel__btn--prev .icon { transform: rotate(180deg); }
/* clear glass on navy, matching .btn--line-light */
.on-dusk .reel__btn {
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    border-color: rgba(235, 233, 228, 0.16); color: var(--pale);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.on-dusk .reel__btn:hover { background: linear-gradient(135deg, rgba(235, 233, 228, 0.14), rgba(235, 233, 228, 0.05)); border-color: rgba(235, 233, 228, 0.32); }
.on-dusk .reel__item { background: var(--dusk-2); }

/* Auto-advancing photograph stage: each slide wipes in over the last
   while it settles from a slow push-in. The progress line drives the timing. */
.showcase { --wipe: cubic-bezier(0.77, 0, 0.175, 1); }
.showcase__stage { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--dusk-2); isolation: isolate; }
@media (max-width: 48rem) { .showcase__stage { aspect-ratio: 4 / 3; } }
.showcase__slide { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; visibility: hidden; z-index: 0; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; }
.showcase__slide.is-active { visibility: visible; z-index: 2; }
.showcase__slide.is-leaving { visibility: visible; z-index: 1; }
.showcase__veil {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(to top, rgba(7, 18, 42, 0.72) 0%, rgba(7, 18, 42, 0.12) 32%, transparent 55%);
}
.showcase__index {
    position: absolute; z-index: 4; left: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1rem, 2.6vw, 2.25rem); margin: 0;
    display: flex; align-items: baseline; gap: 0.6rem; pointer-events: none;
    font-family: var(--font-display); color: var(--pale); line-height: 1;
}
.showcase__index [data-showcase-current] { font-size: clamp(2.5rem, 5vw, 4.25rem); display: inline-block; }
.showcase__total { font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: var(--mist); letter-spacing: 0.08em; }

.showcase__bar { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.5rem; }
/* The progress line is invisible — it only keeps time for the auto-advance */
.showcase__progress { flex: 1; height: 1px; overflow: hidden; }
.showcase__progress span { display: block; height: 100%; opacity: 0; transform-origin: left; transform: scaleX(0); }
.showcase.is-running .showcase__progress span { animation: showcase-progress var(--showcase-interval, 5s) linear forwards; }
.showcase.is-paused .showcase__progress span { animation-play-state: paused; }
.showcase__nav { display: flex; gap: 0.5rem; }

.showcase__thumbs { display: flex; gap: 0.6rem; margin-top: 1.25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.showcase__thumbs::-webkit-scrollbar { display: none; }
.showcase__thumb {
    flex: 0 0 auto; width: clamp(4.5rem, 8vw, 6.5rem); aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
    background: var(--dusk-2); overflow: hidden; position: relative;
    opacity: 0.42; filter: saturate(0.4); transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.showcase__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.showcase__thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--lamp); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.showcase__thumb:hover { opacity: 0.8; }
.showcase__thumb:hover img { transform: scale(1.06); }
.showcase__thumb.is-active { opacity: 1; filter: none; }
.showcase__thumb.is-active::after { transform: scaleX(1); }

@keyframes showcase-progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
    .showcase__slide.is-active { animation: showcase-wipe 1.5s var(--wipe) both; }
    .showcase[data-dir="prev"] .showcase__slide.is-active { animation-name: showcase-wipe-back; }
    .showcase__slide.is-active img { animation: showcase-push 7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .showcase__slide.is-leaving img { animation: showcase-recede 1.5s var(--wipe) both; }
    .showcase.is-turning [data-showcase-current] { animation: showcase-digit 0.9s var(--ease-out) both; }
    /* The very first slide simply settles in, without a wipe. */
    .showcase:not(.has-turned) .showcase__slide.is-active { animation: none; }
}

@keyframes showcase-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes showcase-wipe-back { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes showcase-push { from { transform: scale(1.14) translateX(1.5%); } to { transform: scale(1.02); } }
@keyframes showcase-recede { from { transform: scale(1.02); filter: brightness(1); } to { transform: scale(1.08) translateX(-3%); filter: brightness(0.45); } }
@keyframes showcase-digit { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* Masonry archive */
.masonry { columns: 1; column-gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.masonry__item { display: block; width: 100%; margin: 0 0 clamp(0.75rem, 1.6vw, 1.25rem); padding: 0; border: 0; background: var(--stone-3); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.masonry__item img { width: 100%; height: auto; transition: transform 1.4s var(--ease-out), filter 0.6s; }
.masonry__item:hover img { transform: scale(1.03); }
@media (min-width: 40rem) { .masonry { columns: 2; } }
@media (min-width: 64rem) { .masonry { columns: 3; } }
@media (min-width: 90rem) { .masonry { columns: 4; } }

/* Lightbox navigation */
.lightbox__step { position: absolute; top: 50%; transform: translateY(-50%); width: 3.5rem; height: 3.5rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(7, 18, 42, 0.6); border: 1px solid var(--dusk-line-strong); color: var(--pale); cursor: pointer; }
.lightbox__step:hover { background: var(--pale); color: var(--ink); }
.lightbox__step--prev { left: var(--gutter); }
.lightbox__step--prev .icon { transform: rotate(180deg); }
.lightbox__step--next { right: var(--gutter); }
.lightbox__img { position: relative; }
@media (max-width: 47.99rem) { .lightbox__step { width: 2.75rem; height: 2.75rem; } }

.heritage__figure { margin: 0; background: transparent; }
.heritage__figure img { aspect-ratio: 4 / 3; }
.heritage__cap { padding: 0.85rem 0 0; color: var(--ink-2); border-bottom: 1px solid var(--stone-line); padding-bottom: 0.85rem; }

/* --------------------------------------------------------------------------
   Client reviews (home) — frosted cards on limestone
   -------------------------------------------------------------------------- */

.stars { display: inline-flex; gap: 0.18rem; }
.stars .icon { width: 1.05rem; height: 1.05rem; color: var(--stone-line-strong); stroke-linejoin: round; }
.stars .icon.is-on { color: var(--lamp); fill: currentColor; }

.reviews__score { display: flex; align-items: center; gap: 1rem; }
.reviews__avg { font-family: var(--font-display); font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1; color: var(--ink); }
.reviews__score > span:last-child { display: grid; gap: 0.35rem; }
.reviews__score .stars .icon { width: 1.2rem; height: 1.2rem; }
.reviews__count { font-size: 0.875rem; color: var(--ink-2); }

/* One row of wide, short cards inside the content width: exactly two in view
   (one on phones), drifting past with the ends fading into the stone. */
.reviews__marquee { container-type: inline-size; --card-gap: 1.25rem; --card-w: calc((100cqi - var(--card-gap)) / 2); overflow: hidden; }
.reviews__track { list-style: none; margin: 0; padding: 0.75rem 0 1.75rem; display: flex; align-items: stretch; width: max-content; }
/* spacing as margin (not gap) so half the track is exactly one set: the loop never jumps */
.reviews__track .review { flex: 0 0 var(--card-w); margin-right: var(--card-gap); }

.reviews__marquee.is-moving {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
/* compact rectangle: tighter padding, smaller type, text capped at four lines */
.reviews__marquee .review figure {
    gap: 0.9rem; padding: 1.4rem 1.6rem;
    /* light shadow that fits inside the row, so it is never cut off */
    box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px -12px rgba(16, 26, 44, 0.18);
}
@media (hover: hover) {
    .reviews__marquee .review figure:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px -12px rgba(16, 26, 44, 0.24); }
}
.reviews__marquee .review figure::before { font-size: 5rem; right: 1rem; top: -0.5rem; }
.reviews__marquee .review__body { align-self: start; font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.reviews__marquee .review__by { padding-top: 0.85rem; }
.reviews__marquee .review__initial { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
.reviews__marquee.is-moving .reviews__track { animation: reviews-drift calc(var(--count) * 8s) linear infinite; }
.reviews__marquee.is-moving:hover .reviews__track,
.reviews__marquee.is-moving:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-drift { to { transform: translateX(-50%); } }

/* One or two reviews: they simply sit side by side */
.reviews__marquee.is-still .reviews__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--card-gap); }
.reviews__marquee.is-still .review { flex-basis: min(100%, var(--card-w)); }
.reviews__marquee.is-still .review:last-child { margin-right: 0; }

/* Reduced motion: no drift, just a row to swipe through (repeats hidden) */
@media (prefers-reduced-motion: reduce) {
    .reviews__marquee.is-moving { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
    .reviews__marquee.is-moving::-webkit-scrollbar { display: none; }
    .reviews__marquee.is-moving .reviews__track { animation: none; }
    .reviews__marquee.is-moving .review { scroll-snap-align: start; }
    .reviews__marquee.is-moving .review[aria-hidden="true"] { display: none; }
}

@media (max-width: 47.99rem) {
    .reviews__marquee { --card-gap: 1rem; --card-w: 88cqi; }
}

.review figure {
    position: relative; height: 100%; margin: 0;
    display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 44px -28px rgba(16, 26, 44, 0.35);
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
/* oversized copper quote mark, set like a watermark */
.review figure::before {
    content: "\201C"; position: absolute; right: 1.1rem; top: -0.6rem;
    font-family: var(--font-display); font-size: 7rem; line-height: 1;
    color: var(--lamp); opacity: 0.22; pointer-events: none;
}
@media (hover: hover) {
    .review figure:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 56px -28px rgba(16, 26, 44, 0.45); }
}
.review__body {
    margin: 0;
    font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
    white-space: pre-line; overflow-wrap: anywhere;
}
/* moving cards over plain stone: the blur adds nothing visible, so skip its cost */
.reviews__marquee .review figure { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)); }
.review__by { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.1rem; border-top: 1px solid var(--stone-line); min-width: 0; }
.review__by > span:last-child { min-width: 0; }
.review__initial {
    flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--dusk-2), var(--night));
    color: var(--lamp); font-family: var(--font-display); font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.review__name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.review__meta { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }


/* --------------------------------------------------------------------------
   Contact — split screen: the engineer holds the left half while the
   conversation scrolls on the right.
   -------------------------------------------------------------------------- */

.contact-v2 { display: grid; background: var(--dusk); color: var(--pale); }

/* The photograph dissolves into the panel's navy instead of meeting it at a hard edge.
   Phones: it melts downward into the text. Desktop: it melts sideways into the panel. */
.contact-v2__photo {
    position: relative; margin: 0; height: min(64svh, 32rem); overflow: hidden; isolation: isolate;
    /* the mask is on the frame, so photo and every overlay fade out together onto the section's navy */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.55) 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.55) 74%, transparent 100%);
}
.contact-v2__photo > img {
    width: 100%; height: 100%; object-fit: cover; object-position: 26% 42%;
    /* gentle grade toward the site's palette: a touch cooler and deeper */
    filter: saturate(0.88) contrast(1.04) brightness(0.94);
}
.contact-v2__photo::before {
    /* navy wash over the shadows so photo and panel share one colour */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(160deg, rgba(12, 27, 60, 0) 30%, rgba(12, 27, 60, 0.55) 100%);
    mix-blend-mode: multiply;
}
.contact-v2__photo::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        /* header scrim */
        linear-gradient(to bottom, rgba(7, 18, 42, 0.6) 0%, rgba(7, 18, 42, 0) 22%),
        /* low copper glow, like late sun on site */
        radial-gradient(ellipse 70% 45% at 15% 100%, rgba(201, 148, 104, 0.22), rgba(201, 148, 104, 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
    .contact-v2__photo > img { animation: contact-photo-settle 2.8s var(--ease-out) both; }
}
@keyframes contact-photo-settle {
    from { transform: scale(1.08); filter: saturate(0.6) contrast(1.04) brightness(0.7); }
    to   { transform: scale(1);    filter: saturate(0.88) contrast(1.04) brightness(0.94); }
}

.contact-v2__plaque {
    position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 3vw, 2.5rem);
    display: flex; align-items: center; gap: 1rem;
    padding-top: 1.1rem; border-top: 1px solid var(--dusk-line-strong);
}
.contact-v2__plaque > img { height: 2.75rem; width: auto; flex-shrink: 0; }
.contact-v2__plaque-name { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.contact-v2__plaque-loc { display: block; color: var(--mist); margin-top: 0.3rem; }

.contact-v2__panel { padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem); display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-content: start; }

.contact-v2__intro { display: grid; gap: 1.25rem; }
.contact-v2__intro .display { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.contact-v2__kicker { color: var(--lamp); font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
.contact-v2__intro .lede { color: rgba(235, 233, 228, 0.8); max-width: 34em; font-size: clamp(1rem, 1.2vw, 1.0625rem); }
.contact-v2__intro .lede strong { color: var(--pale); font-weight: 500; }

.contact-v2__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.contact-v2__line {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    padding: 1.05rem 1.35rem;
    /* Glass: translucent fill, blurred backdrop, light top edge */
    background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    border: 1px solid rgba(235, 233, 228, 0.16);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    transition: background-color 0.35s var(--ease-out), border-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease-out);
}
.contact-v2__line .icon { width: 1.2rem; height: 1.2rem; }
.contact-v2__line .icon:last-child { color: var(--mist); transition: transform 0.45s var(--ease-out), color 0.3s; }
.contact-v2__line:hover { border-color: rgba(235, 233, 228, 0.32); background: linear-gradient(135deg, rgba(235, 233, 228, 0.14), rgba(235, 233, 228, 0.05)); }
.contact-v2__line:hover .icon:last-child { transform: translate(3px, -3px); color: var(--pale); }
.contact-v2__line--lamp {
    background: linear-gradient(135deg, rgba(201, 148, 104, 0.42), rgba(201, 148, 104, 0.18));
    border-color: rgba(222, 178, 140, 0.45);
    color: var(--pale); font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 228, 200, 0.25);
}
.contact-v2__line--lamp .icon:last-child { color: var(--pale); }
.contact-v2__line--lamp:hover { background: linear-gradient(135deg, rgba(201, 148, 104, 0.55), rgba(201, 148, 104, 0.26)); border-color: rgba(222, 178, 140, 0.65); }
.contact-v2__line--lamp:hover .icon:last-child { color: var(--pale); }

/* The form lives on the navy itself: framed fields, copper focus. */
.contact-v2__form { padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--dusk-line-strong); }
.contact-v2__form-head { margin-bottom: 2rem; }

.contact-v2__form .form-grid { gap: 1.25rem; }
.contact-v2__form .field { gap: 0.55rem; }
.contact-v2__form .field label { color: var(--mist); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-v2__form .field .req { color: var(--lamp); margin-left: 0.15em; }
.contact-v2__form .field input,
.contact-v2__form .field textarea {
    background: rgba(235, 233, 228, 0.04);
    border: 1px solid var(--dusk-line-strong);
    padding: 0.95rem 1.1rem;
    color: var(--pale);
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.contact-v2__form .field textarea { min-height: 9.5rem; }
.contact-v2__form .field input:hover,
.contact-v2__form .field textarea:hover { border-color: rgba(235, 233, 228, 0.45); }
.contact-v2__form .field input:focus,
.contact-v2__form .field textarea:focus {
    border-color: var(--lamp);
    background: rgba(235, 233, 228, 0.06);
    box-shadow: 0 0 0 3px rgba(201, 148, 104, 0.18);
}
.contact-v2__form .field.has-error input { border-color: #e2907f; box-shadow: 0 0 0 3px rgba(226, 144, 127, 0.15); }
.contact-v2__form .field__error { color: #f0a593; }
.contact-v2__form .field input:-webkit-autofill,
.contact-v2__form .field textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--pale);
    -webkit-box-shadow: 0 0 0 100px #16264a inset;
    caret-color: var(--lamp);
}

.contact-v2__form .notice--ok { border-color: rgba(122, 196, 158, 0.45); background: rgba(122, 196, 158, 0.08); color: #bfe6d0; }
.contact-v2__form .notice--err { border-color: rgba(226, 144, 127, 0.45); background: rgba(226, 144, 127, 0.08); color: #f3c3b7; }

.contact-v2__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.contact-v2__actions .btn { min-width: 12rem; }
/* no copper glow under Send */
.contact-v2__actions .btn--lamp,
.contact-v2__actions .btn--lamp:hover { box-shadow: inset 0 1px 0 rgba(255, 228, 200, 0.25); }
.contact-v2__actions .link { color: var(--mist); }
.contact-v2__actions .link:hover { color: var(--pale); }

@media (min-width: 40rem) and (max-width: 63.99rem) {
    .contact-v2__lines { grid-template-columns: 1fr 1fr; }
    .contact-v2__lines li:first-child { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
    .contact-v2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .contact-v2__photo { position: sticky; top: 0; height: 100svh; }
    .contact-v2__photo {
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
    }
    .contact-v2__photo::before { background: linear-gradient(100deg, rgba(12, 27, 60, 0) 35%, rgba(12, 27, 60, 0.6) 100%); }
    .contact-v2__photo::after {
        background:
            linear-gradient(to bottom, rgba(7, 18, 42, 0.6) 0%, rgba(7, 18, 42, 0) 22%),
            linear-gradient(to top, rgba(7, 18, 42, 0.55) 0%, rgba(7, 18, 42, 0) 30%),
            radial-gradient(ellipse 60% 40% at 10% 100%, rgba(201, 148, 104, 0.24), rgba(201, 148, 104, 0) 70%);
    }
    .contact-v2__plaque { left: clamp(2rem, 4vw, 3.5rem); right: clamp(2rem, 4vw, 3.5rem); }
    .contact-v2__panel { padding: calc(var(--header-h-top) + clamp(2.5rem, 5vw, 4.5rem)) clamp(2.5rem, 5vw, 5.5rem) clamp(4rem, 7vw, 6rem); }
    .contact-v2__lines { grid-template-columns: 1fr; }
}
@media (min-width: 80rem) {
    .contact-v2__lines { grid-template-columns: 1fr 1fr; }
    .contact-v2__lines li:first-child { grid-column: 1 / -1; }
}
.contact-v2__line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 40%; }

/* Small preview under each item where the large stage is hidden */
.caps__thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 0.5rem; }
@media (min-width: 64rem) { .caps__thumb { display: none; } }

/* Before/after style poster shown whole, never cropped */
.poster { background: var(--stone-2); padding: clamp(0.5rem, 1.5vw, 1rem); }
.poster img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
.flow > * + * { margin-top: 1.5rem; }
.center { text-align: center; }
.lamp { color: var(--lamp); }

/* --------------------------------------------------------------------------
   Rounded photographs — every framed image gets soft corners.
   Full-bleed images (hero, band, closing, contact photo) stay square.
   -------------------------------------------------------------------------- */

.bleed__frame, .split__media, .poster, .poster img, .tile, .reel__item, .masonry__item,
.showcase__stage, .caps__stage, .feature__media, .work__media, .service__media,
.story__media, .testimony__media, .archive__btn, .plates img, .contact-photo img,
.heritage__figure img {
    border-radius: var(--radius-media);
}
.split__media, .tile, .reel__item, .masonry__item, .showcase__stage, .caps__stage, .poster { overflow: hidden; }
.heritage__figure { overflow: visible; }
.caps__thumb, .showcase__thumb { border-radius: var(--radius-thumb); }
/* Keep corners clipped while the photo scales on hover (Safari) */
.tile, .reel__item, .masonry__item, .split__media, .showcase__stage { isolation: isolate; }

/* --------------------------------------------------------------------------
   Phones — tighter rhythm, denser grids, nothing cut off at the edges.
   -------------------------------------------------------------------------- */

@media (max-width: 47.99rem) {
    :root { --space-section: 4.25rem; }
    .section--tight { padding-block: 3.5rem; }
    .section-head { gap: 1rem; margin-bottom: 2.25rem; }

    .page-head { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 2.75rem; }
    .page-head__grid { gap: 1.25rem; }

    .hero__body { padding-bottom: 2.75rem; }
    .hero__plaque { margin-top: 2rem; }

    /* the trio reads as one column of short notes, not three tall slabs */
    .trio { gap: 2.25rem; }
    .trio__item { gap: 0.85rem; padding-top: 1.35rem; }
    .trio__item p { font-size: 1rem; line-height: 1.7; }

    .split { gap: 1.75rem; }
    .split + .split { margin-top: 3.5rem; }
    .article { padding-block: 2.25rem; gap: 1.25rem; }
    .article__body .lead { font-size: 1.25rem; line-height: 1.4; }

    /* Services: two photo tiles per row instead of six full-width slabs */
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .tile { aspect-ratio: 4 / 5; }
    .tile::after { background: linear-gradient(to top, rgba(7, 18, 42, 0.9) 0%, rgba(7, 18, 42, 0.35) 55%, rgba(7, 18, 42, 0.05) 100%); }
    .tile__label { left: 0.9rem; right: 0.9rem; bottom: 0.85rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .tile__label .h3 { font-size: 1.0625rem; line-height: 1.2; }
    .tile__label .icon { width: 1.1rem; height: 1.1rem; color: var(--lamp); }

    /* Reviews: a row to swipe through, one card and a peek of the next */
    .reviews__score { gap: 0.85rem; }
    .reviews__marquee { --card-w: 84cqi; --card-gap: 0.75rem; }
    .reviews__marquee.is-moving {
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        -webkit-mask-image: none; mask-image: none;
        margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    }
    .reviews__marquee.is-moving::-webkit-scrollbar { display: none; }
    .reviews__marquee.is-moving .reviews__track { animation: none; }
    .reviews__marquee.is-moving .review { scroll-snap-align: start; }
    .reviews__marquee.is-moving .review[aria-hidden="true"] { display: none; }
    .reviews__marquee .review figure { padding: 1.25rem 1.35rem; }

    /* Closing: the photo window opens from inside the gutter so the text never
       sits on bare limestone, and the veil darkens from below, behind the text */
    .closing { --open-x: 0.5rem; --open-y: 0.75rem; --open-r: 22px; }
    .closing__media::after { background: linear-gradient(to top, rgba(7, 18, 42, 0.94) 0%, rgba(7, 18, 42, 0.78) 55%, rgba(7, 18, 42, 0.55) 100%); }
    .closing__body { padding-block: 4.75rem; }
    .closing__actions { margin-top: 2rem; gap: 1.25rem 1.75rem; }
    .closing__actions .btn { width: 100%; }

    /* Gallery page: two columns of photographs */
    .masonry { columns: 2; column-gap: 0.6rem; }
    .masonry__item { margin-bottom: 0.6rem; }

    .showcase__bar { margin-top: 1rem; }
    .showcase__thumbs { margin-top: 0.9rem; }

    .site-footer { padding-top: 3.5rem; }
    .site-footer__top { gap: 2.5rem; }
    .site-footer__cols { gap: 2rem 1.5rem; }
    .brand--footer .brand__mark { height: 3.25rem; }
    .brand--footer .wordmark__name { font-size: 2rem; }
    .brand--footer .wordmark__sub { font-size: 0.7rem; }

    .doc__section { padding-block: 2rem; }
    .contact-v2__panel { padding-top: 2.25rem; }
}

/* Pieces that only phones show: the hero's action row, footer icons, back-to-top */
.hero__cta, .to-top { display: none; }
.plaque__pin { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 0.15rem; }
.site-footer__loc { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--mist); font-size: 0.875rem; }
.site-footer__loc .icon { width: 1rem; height: 1rem; }
.site-footer__explore { margin-top: 0.55rem !important; }
@media (min-width: 48rem) {
    .footer-line .icon, .site-footer__social .icon { display: none; }
}

/* --------------------------------------------------------------------------
   Phones — hero, menu button and footer, composed for the small screen
   -------------------------------------------------------------------------- */

@media (max-width: 47.99rem) {
    /* Hero: a bigger title with the copper ampersand, then the plaque as a glass card */
    .hero__body { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
    .hero__title { font-size: clamp(2.5rem, 11.6vw, 3rem); line-height: 1.02; max-width: none !important; }
    .hero__amp { color: var(--lamp); }
    .hero__plaque {
        margin-top: 1.75rem;
        padding: 1.15rem;
        border: 1px solid rgba(235, 233, 228, 0.16);
        border-radius: 20px;
        background: linear-gradient(150deg, rgba(235, 233, 228, 0.12), rgba(235, 233, 228, 0.03)), rgba(7, 18, 42, 0.35);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        backdrop-filter: blur(16px) saturate(140%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 48px -28px rgba(0, 0, 0, 0.7);
        min-width: 0;
    }
    .hero__plaque .plaque__title { font-size: 1.0625rem; }
    .hero__plaque .plaque__link { display: none; }
    .hero__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; margin-top: 1rem; }
    .hero__cta .btn { --btn-pad-y: 0.95rem; --btn-pad-x: 1rem; }
    .hero__icon-btn {
        width: 3.1rem; display: grid; place-items: center;
        border-radius: 14px;
        border: 1px solid rgba(235, 233, 228, 0.16);
        background: linear-gradient(135deg, rgba(235, 233, 228, 0.1), rgba(235, 233, 228, 0.03));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
        color: var(--pale);
    }
    .hero__icon-btn .icon { width: 1.25rem; height: 1.25rem; }

    /* Footer: centred lock-up, contact as glass buttons, then two neat columns */
    .site-footer__top { gap: 2.25rem; }
    .site-footer__brand { align-items: center; text-align: center; gap: 0.85rem; padding-bottom: 2rem; border-bottom: 1px solid var(--dusk-line); }
    .brand--footer { flex-direction: column; gap: 0.85rem; }
    .brand--footer .wordmark { align-items: center; }
    .site-footer__cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.25rem 1.25rem; }
    .site-footer__contact { grid-column: 1 / -1; }
    .site-footer address { gap: 0.55rem; }
    .footer-line {
        display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem;
        padding: 0.9rem 1.05rem;
        border-radius: 14px;
        border: 1px solid rgba(235, 233, 228, 0.14);
        background: linear-gradient(135deg, rgba(235, 233, 228, 0.08), rgba(235, 233, 228, 0.02));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        font-size: 0.9375rem;
    }
    .footer-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .footer-line .icon { width: 1.15rem; height: 1.15rem; color: var(--lamp); }
    .footer-line .footer-line__go { width: 1rem; height: 1rem; color: var(--mist); }
    .site-footer ul { gap: 0.7rem; }
    .site-footer li a { font-size: 0.9375rem; }
    .site-footer__social { display: flex !important; gap: 0.5rem !important; }
    .site-footer__social a {
        width: 2.6rem; height: 2.6rem;
        display: grid; place-items: center;
        border-radius: 50%;
        border: 1px solid rgba(235, 233, 228, 0.16);
        background: linear-gradient(135deg, rgba(235, 233, 228, 0.09), rgba(235, 233, 228, 0.025));
    }
    .site-footer__social .icon { width: 1.1rem; height: 1.1rem; }
    .site-footer__social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .site-footer__explore { margin-top: 1.35rem !important; }
    .site-footer__base { align-items: center; padding-block: 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
    .site-footer__base p { flex: 1 1 100%; order: 2; }
    .site-footer__base nav { order: 1; flex: 1; }
    .to-top {
        order: 1; display: inline-grid; place-items: center;
        width: 2.6rem; height: 2.6rem; border-radius: 50%;
        border: 1px solid rgba(235, 233, 228, 0.16);
        color: var(--pale);
    }
    .to-top .icon { width: 1.1rem; height: 1.1rem; transform: rotate(180deg); }
}

/* Small phones: the header lock-up and the closing actions need the room */
@media (max-width: 23.5rem) {
    .wordmark__name { font-size: 1.3rem; }
    .wordmark__sub { font-size: 0.5625rem; letter-spacing: 0.1em; }
    .brand__mark { height: 2.25rem; }
    .menu-toggle { gap: 0.5rem; }
    .tile__label .h3 { font-size: 0.975rem; }
}
