/* =============================================================
   True Blue Architecture — fluid/modern design system
   Inspired by fluid.glass: full-bleed video, centered nav,
   glassmorphic dock UI, neutral monochrome, scroll-driven motion.
   ============================================================= */

:root {
    /* Surface */
    --bg:         #F5F4F0;   /* warm off-white (matches print-stock paper) */
    --fg:         #181818;   /* near-black, very slight warm */
    --mid:        #5E5B55;   /* muted text / labels — was #7A7771 (failed WCAG AA at 11–12px); darkened to ~6:1 against --bg */
    --line:       #E5E2DA;   /* hairline / dividers */
    --accent:     #C4A882;   /* warm sand, used very sparingly */

    /* The studio's True Blue: deep navy #0A172C (RGB 10, 23, 44), from their
       Implementation Brief. It replaced the near-black #0E0E0C everywhere a
       surface was dark: banners, dark sections, footer, buttons, veils. Body
       text stays --fg. Any translucent dark tint is rgba(10,23,44,…). */
    --navy:       #0A172C;

    /* Dark surface */
    --dark-bg:    var(--navy);
    --dark-fg:    #F2F0EA;
    --dark-mid:   rgba(242,240,234,0.55);
    --dark-line:  rgba(255,255,255,0.08);

    /* Glass */
    --glass-bg-light:  rgba(245,244,240,0.62);
    --glass-bg-dark:   rgba(10,23,44,0.62);
    --glass-border:    rgba(255,255,255,0.16);

    --dock-bg:    rgba(10,23,44,0.78);

    --nav-h: 72px;
    --gutter: clamp(20px, 4vw, 56px);
    --section-y: clamp(80px, 11vw, 160px);

    --font-sans: "General Sans", "Aeonik", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { overflow-x: hidden; }
body  { overflow-x: hidden; min-height: 100vh; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease), color .25s var(--ease); }
a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.02;
}

button {
    font-family: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

::selection { background: var(--navy); color: var(--bg); }

/* ---------- Type primitives ---------- */
.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid);
    font-weight: 400;
}
.section--dark .mono { color: rgba(242,240,234,0.5); }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: "✦";
    font-family: var(--font-sans);
    color: currentColor;
    font-size: 10px;
}
.section--dark .eyebrow { color: rgba(242,240,234,0.65); }

.display {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(32px, 5vw, 76px);
    line-height: 1.0;
    letter-spacing: -0.025em;
}
.display--lg {
    font-size: clamp(48px, 8.5vw, 132px);
    letter-spacing: -0.035em;
}
/* Matches the markup, which writes "display-md". This was ".display--md" and
   so never applied — which is why several headings carry an inline font-size
   working around it. */
.display-md {
    font-size: clamp(32px, 4.6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.lead {
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.4;
    color: var(--mid);
    max-width: 44ch;
    font-weight: 400;
}
.section--dark .lead { color: rgba(242,240,234,0.65); }

.muted { color: var(--mid); }
.section--dark .muted { color: rgba(242,240,234,0.55); }

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-y) var(--gutter); position: relative; }
.section--tight { padding: clamp(60px, 8vw, 100px) var(--gutter); }
.section--dark { background: var(--dark-bg); color: var(--dark-fg); }

.container { max-width: 1440px; margin: 0 auto; }
.container--narrow { max-width: 920px; margin: 0 auto; }
.container--centered { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Top nav (logo · links · CTA, full width) ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: transparent;
    color: var(--dark-fg);
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), color .35s var(--ease),
                backdrop-filter .35s var(--ease), border-color .35s var(--ease);
}
.site-nav__brand {
    display: block;
    color: inherit;
    line-height: 0;
}
.site-nav__logo {
    display: block;
    height: 44px;
    width: auto;
    /* Over the hero video the logo is thin white line work, and a bright frame
       can wash it out; a soft shadow keeps it legible. Not needed once the bar
       turns light. */
    filter: drop-shadow(0 1px 6px rgba(10, 23, 44, 0.45));
    transition: filter .35s var(--ease);
}
.site-nav.is-light .site-nav__logo { filter: none; }
@media (max-width: 900px) { .site-nav__logo { height: 36px; } }

.site-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 32px);
}
.site-nav__links a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}
.site-nav__links a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    border-bottom: 1px solid currentColor;
}

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--navy);
    color: var(--bg);
    border: 1px solid var(--navy);
    border-radius: 0;
    line-height: 1;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.site-nav__cta:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    opacity: 1;
}

.site-nav__menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.site-nav__menu-toggle .bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.site-nav__menu-toggle .bars::before,
.site-nav__menu-toggle .bars::after {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    display: block;
}

/* When scrolled past hero (or over a light section), frosted backdrop + dark text */
.site-nav.is-light {
    color: var(--fg);
    background: rgba(245, 244, 240, 0.95);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom-color: var(--line);
}

/* Mobile (per spec: hamburger → full-screen overlay) */
@media (max-width: 900px) {
    .site-nav__links,
    .site-nav__cta { display: none; }
    .site-nav__menu-toggle { display: inline-flex; }
    .site-nav { padding: 0 20px; }
    .site-nav__brand { font-size: 16px; }
}

/* ---------- Full-screen mobile menu (glass overlay) ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(40px) saturate(140%);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    color: var(--dark-fg);
    display: none;
    flex-direction: column;
    padding: var(--gutter);
}
.menu-overlay.is-open { display: flex; }
.menu-overlay__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
}
.menu-overlay__close {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.menu-overlay__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 clamp(0px, 4vw, 56px);
    gap: clamp(12px, 1.8vw, 24px);
}
.menu-overlay__list a {
    font-size: clamp(40px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--dark-fg);
    opacity: 0.7;
    transition: opacity .25s var(--ease);
}
.menu-overlay__list a:hover,
.menu-overlay__list a.is-active { opacity: 1; }
.menu-overlay__list a.is-active::after {
    content: " ✦";
    color: var(--accent);
    font-size: 0.4em;
    vertical-align: super;
    margin-left: 8px;
}
.menu-overlay__foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--dark-mid);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--navy);
    color: var(--bg);
    border: 1px solid var(--navy);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background .25s var(--ease), color .25s var(--ease);
    cursor: pointer;
    line-height: 1;
}
.btn .glyph { font-family: var(--font-sans); font-size: 13px; opacity: 0.7; }
.btn:hover { background: transparent; color: var(--navy); opacity: 1; }
.section--dark .btn { background: var(--dark-fg); color: var(--dark-bg); border-color: var(--dark-fg); }
.section--dark .btn:hover { background: transparent; color: var(--dark-fg); }

.btn--ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.section--dark .btn--ghost:hover { background: var(--dark-fg); color: var(--dark-bg); }
/* An outline button on a dark surface (the CTA strip at the foot of most
   pages). Its hover fills with the light colour: the plain ghost hover is
   navy, which on a navy strip changes nothing you can see. */
.btn--light { color: var(--dark-fg); border-color: var(--dark-fg); }
.btn--light:hover { background: var(--dark-fg); color: var(--navy); border-color: var(--dark-fg); }
/* The solid button over the home video. The default hover (transparent,
   navy text) is for light pages — over dark footage it vanished. Invert to
   light instead. */
.hero .btn:not(.btn--glass):hover { background: var(--dark-fg); color: var(--navy); border-color: var(--dark-fg); }

.btn--glass {
    background: var(--glass-bg-dark);
    color: var(--dark-fg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.btn--glass:hover { background: rgba(10,23,44,0.92); color: var(--dark-fg); }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
}
.btn-link .glyph { font-family: var(--font-sans); font-size: 14px; opacity: 0.7; }

/* ---------- Hero (video) ---------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    color: var(--dark-fg);
    background: var(--dark-bg);
}
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, filter;
    transform-origin: center 60%;
    background: var(--dark-bg);
}
.hero__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 90%, rgba(10,23,44,0.5) 0%, transparent 55%),
        linear-gradient(180deg, rgba(10,23,44,0.45) 0%, rgba(10,23,44,0.22) 35%, rgba(10,23,44,0.68) 100%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 var(--gutter) clamp(80px, 13vh, 160px);
    gap: 22px;
}
.hero__eyebrow {
    color: rgba(242,240,234,0.75);
}
.hero__title {
    font-size: clamp(40px, 6.2vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 500;
    max-width: 18ch;
}
.hero__title em { font-style: normal; color: var(--accent); }
/* The guide's secondary brand line: distinct, but well below the heading's
   size and weight so "Architecture with a development mindset." still leads. */
.hero__strapline {
    margin: -6px 0 4px;
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 400;
    letter-spacing: 0.01em;
    /* A lighter tint of --accent, lifted off the video by a soft shadow: the
       plain accent disappears wherever the footage is bright concrete. */
    color: #E6D6BC;
    text-shadow: 0 1px 14px rgba(10,23,44,0.55), 0 0 2px rgba(10,23,44,0.35);
}
.hero__sub {
    color: rgba(242,240,234,0.7);
    max-width: 46ch;
    font-size: clamp(15px, 1.2vw, 18px);
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) {
    .hero__ctas .btn { padding: 11px 14px; font-size: 10px; letter-spacing: 0.12em; }
    .hero__inner { padding-bottom: 100px; gap: 18px; }
    .hero__title { font-size: clamp(32px, 9vw, 48px); }
}

/* Page hero mobile tightening */
@media (max-width: 480px) {
    .page-hero { padding: calc(var(--nav-h) + 56px) var(--gutter) clamp(48px, 9vw, 80px); }
    .page-hero__title { font-size: clamp(32px, 9vw, 56px); }
    .page-hero__title--long { font-size: clamp(28px, 7.5vw, 44px); }
}

/* Marquee — slightly thicker padding on mobile */
@media (max-width: 480px) {
    .marquee__track { font-size: 11px; gap: 32px; }
    .marquee__item::after { margin-left: 32px; }
}

/* Project filters wrap nicer on mobile */
@media (max-width: 480px) {
    .proj-filters { gap: 10px; padding: 16px var(--gutter); }
    .proj-filters button { padding: 8px 12px; font-size: 10px; letter-spacing: 0.12em; }
}

/* Section vertical rhythm shrinks on small screens */
@media (max-width: 480px) {
    :root { --section-y: clamp(56px, 14vw, 100px); }
    .featured-card__title { font-size: 20px; }
    .timeline__step { padding: 36px 0; }
    .timeline__title { font-size: 28px; }
}

/* ---------- Page hero (non-video) ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 80px) var(--gutter) clamp(60px, 9vw, 120px);
    background: var(--bg);
    color: var(--fg);
    text-align: center;
    overflow: hidden;
}
.page-hero--dark { background: var(--dark-bg); color: var(--dark-fg); }
.page-hero__inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.page-hero__title {
    font-size: clamp(40px, 6vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 500;
    max-width: 22ch;
}
.page-hero__title em { font-style: normal; color: var(--accent); }
/* A heading written as a full sentence (the Content Guide's About and Projects
   heroes) at the three-word size fills the whole first screen. */
.page-hero__title--long { font-size: clamp(34px, 4.4vw, 68px); max-width: 26ch; }
.page-hero__sub {
    color: var(--mid);
    max-width: 52ch;
    font-size: clamp(15px, 1.2vw, 18px);
}
.page-hero--dark .page-hero__sub { color: rgba(242,240,234,0.85); }
.page-hero__sub p + p { margin-top: 0.9em; }
.page-hero--dark .eyebrow { color: rgba(242,240,234,0.7); }

/* ---------- Page banner with a video or photographs ----------
   partials/_banner_media.blade.php. A large banner, not full screen (the
   brief: about 75–90% of the viewport, then on to the light content), with
   the picture behind a navy veil so the white heading and the menu stay
   legible whatever the footage does. --banner-veil sets the veil's
   strength; raise it on a page whose footage is bright. */
.page-hero--media {
    --banner-veil: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82svh;
    isolation: isolate;
}
.page-hero--media .page-hero__inner { position: relative; z-index: 1; }
.page-hero--media .page-hero__title,
.page-hero--media .page-hero__sub,
.page-hero--media .eyebrow { text-shadow: 0 1px 18px rgba(10,23,44,0.55); }
.page-hero--media .page-hero__sub { color: rgba(242,240,234,0.92); }
.banner-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--dark-bg); }
.banner-media__slides { position: absolute; inset: 0; }
.banner-media__item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-media__slides .banner-media__item { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.banner-media__slides .banner-media__item.is-active { opacity: 1; }
.banner-media__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(10,23,44, calc(var(--banner-veil) + 0.15)) 0%,
        rgba(10,23,44, var(--banner-veil)) 45%,
        rgba(10,23,44, calc(var(--banner-veil) + 0.2)) 100%);
}
@media (max-width: 480px) {
    .page-hero--media { min-height: 78svh; }
}

/* ---------- Marquee scroll text ---------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.section--dark .marquee { border-color: var(--dark-line); }
.marquee__track {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
    animation: marquee 36s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee__item::after {
    content: " ✦ ";
    color: var(--accent);
    margin-left: 56px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
    display: grid;
    /* As many equal columns as there are stats: a cleared one is left out. */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section--dark .stats-bar { border-color: var(--dark-line); }
.stats-bar__cell {
    padding: 60px var(--gutter);
    border-right: 1px solid var(--line);
    text-align: center;
}
.stats-bar__cell:last-child { border-right: 0; }
.section--dark .stats-bar__cell { border-color: var(--dark-line); }

.stats-bar__num {
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 500;
}
.stats-bar__label {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
}
.section--dark .stats-bar__label { color: rgba(242,240,234,0.5); }
@media (max-width: 720px) {
    .stats-bar { grid-auto-flow: row; grid-template-columns: 1fr; }
    .stats-bar__cell { border-right: 0; border-bottom: 1px solid var(--line); }
    .stats-bar__cell:last-child { border-bottom: 0; }
}

/* ---------- Featured grid (homepage) ---------- */
.featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(14px, 1.6vw, 22px);
    min-height: 720px;
}
.featured-card {
    position: relative;
    overflow: hidden;
    color: var(--dark-fg);
    background: var(--dark-bg);
    border-radius: 0;
}
.featured-card:first-child { grid-row: 1 / span 2; }
.featured-card__img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 1.2s var(--ease);
    will-change: transform;
}
.featured-card:hover .featured-card__img { transform: scale(1.05); }
.featured-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,23,44,0.0) 30%, rgba(10,23,44,0.7) 100%);
}
.featured-card__meta {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.featured-card__chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(10,23,44,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-fg);
    margin-bottom: 14px;
}
.featured-card__title {
    font-size: clamp(22px, 2.6vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.featured-card__location {
    color: rgba(242,240,234,0.65);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
@media (max-width: 800px) {
    .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
    .featured-card:first-child { grid-row: auto; }
    .featured-card { aspect-ratio: 4/3; }
}

/* ---------- Home: audience pathways ---------- */
.pathways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 28px);
}
.pathway {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(32px, 4vw, 56px);
    border: 1px solid var(--line);
    background: var(--bg);
    min-height: 100%;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pathway:hover { opacity: 1; border-color: var(--fg); }
.pathway--dark { background: var(--dark-bg); color: var(--dark-fg); border-color: var(--dark-bg); }
.pathway--dark:hover { border-color: var(--accent); }
.pathway__title {
    margin-top: 22px;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.022em;
    line-height: 1.05;
}
.pathway__copy { margin-top: 16px; color: var(--mid); font-size: 16px; line-height: 1.6; max-width: 46ch; flex: 1; }
.pathway--dark .pathway__copy { color: rgba(242,240,234,0.72); }
.pathway__cta { margin-top: 32px; }
@media (max-width: 800px) { .pathways { grid-template-columns: 1fr; } }

/* ---------- Services list (dark) ---------- */
.svc-list {
    border-top: 1px solid var(--dark-line);
}
.svc-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 32px var(--gutter);
    border-bottom: 1px solid var(--dark-line);
    transition: background .3s var(--ease), padding .3s var(--ease);
    color: var(--dark-fg);
}
.svc-row:hover {
    background: rgba(255,255,255,0.02);
    padding-left: calc(var(--gutter) + 12px);
}
.svc-row__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(242,240,234,0.72);
}
.svc-row__title {
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.svc-row__arrow { font-size: 18px; opacity: 0.6; }
@media (max-width: 600px) {
    .svc-row { grid-template-columns: 60px 1fr; }
    .svc-row__arrow { display: none; }
}
/* Early-stage services: a separate, un-numbered group under the main four. */
.svc-early {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 40px var(--gutter) 0;
    color: var(--dark-fg);
}
.svc-early__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(242,240,234,0.72);
    padding-top: 10px;
}
.svc-early__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-early__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border: 1px dashed rgba(242,240,234,0.22);
    color: var(--dark-fg);
}
.svc-early__item:hover { opacity: 1; border-color: var(--accent); }
.svc-early__title { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.015em; }
@media (max-width: 800px) {
    .svc-early { grid-template-columns: 1fr; gap: 16px; }
    .svc-early__list { grid-template-columns: 1fr; }
}

/* ---------- Services page (edited in the admin as one page) ---------- */
#homeowners, #investors, #support, #faq, .svc-item { scroll-margin-top: var(--nav-h); }

/* An audience: its intro on the left, its typical projects on the right. */
.svc-audience__inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}
.svc-audience__heading { margin-top: 18px; font-size: clamp(32px, 4.4vw, 60px); }
.svc-audience__sub {
    margin-top: 14px;
    font-size: clamp(18px, 1.6vw, 22px);
    letter-spacing: -0.01em;
}
.svc-audience__copy { margin-top: 18px; color: var(--mid); max-width: 48ch; font-size: 16px; line-height: 1.65; }
.section--dark .svc-audience__copy { color: rgba(242,240,234,0.72); }
/* Under the list, in the list's column. */
.svc-audience__button { grid-column: 2; margin-top: -8px; }
@media (max-width: 800px) { .svc-audience__button { grid-column: auto; margin-top: 0; } }

.svc-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.section--dark .svc-items { border-top-color: var(--dark-line); }
.svc-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.section--dark .svc-item { border-bottom-color: var(--dark-line); }
.svc-item__title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.15; }
.svc-item__copy { margin-top: 8px; color: var(--mid); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.section--dark .svc-item__copy { color: rgba(242,240,234,0.72); }
/* An item with an image: the image on the left, the text beside it. */
.svc-item--with-image {
    display: grid;
    grid-template-columns: clamp(120px, 13vw, 190px) 1fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: center;
}
.svc-item__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (max-width: 480px) {
    .svc-item--with-image { grid-template-columns: 1fr; gap: 14px; }
}

/* The shared support sequence. */
.svc-support__copy { margin-top: 18px; color: var(--mid); font-size: 16px; line-height: 1.65; max-width: 60ch; }
.svc-steps {
    list-style: none;
    padding: 0;
    margin: 56px 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.svc-step { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.svc-step + .svc-step { padding-left: 24px; }
.svc-step:last-child { border-right: 0; }
.svc-step__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    /* --accent is 2.05:1 against --bg at this size; --fg passes AA. */
    color: var(--fg);
}
.svc-step__title { margin-top: 14px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.15; }
.svc-step__copy { margin-top: 10px; color: var(--mid); font-size: 14px; line-height: 1.6; }
/* Tender and construction support: offered, not assumed. */
.svc-step--optional { border-top: 1px dashed var(--line); margin-top: -1px; }
.svc-step--optional .svc-step__title { color: var(--mid); }
.svc-step__tag {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
    border: 1px solid var(--line);
    padding: 5px 8px 4px;
    line-height: 1;
}
@media (max-width: 1000px) {
    .svc-steps { grid-template-columns: 1fr 1fr; }
    .svc-step, .svc-step + .svc-step { padding: 24px 20px 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 800px) {
    .svc-audience__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .svc-steps { grid-template-columns: 1fr; }
}

/* FAQ: the Process accordion without the step-number column. */
.timeline--faq .timeline__head { grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; }
.timeline--faq .timeline__title { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; }
.timeline--faq .timeline__body-inner { padding-left: 0; }

/* ---------- Development & JV ---------- */
.dev-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}
.dev-intro__sub { margin-top: 16px; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
.dev-intro .prose p { color: var(--mid); }
.dev-lead { margin-top: 18px; color: var(--mid); font-size: 16px; line-height: 1.65; }
.section--dark .dev-lead { color: rgba(242,240,234,0.72); }

.dev-routes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
    margin-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--dark-line);
    padding-top: 40px;
}
.dev-route__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.dev-route__title { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.dev-route__copy { margin-top: 14px; color: rgba(242,240,234,0.72); font-size: 15px; line-height: 1.65; }

/* The completed-development component: image and copy with room to breathe,
   then the figures in their own grid — 4 + 3 on desktop, two columns on a
   phone, never all seven in one row. */
.dev-card {
    padding: clamp(32px, 4vw, 56px) 0;
    border-top: 1px solid var(--line);
}
.dev-card + .dev-card { margin-top: clamp(24px, 3vw, 40px); }
.dev-card__top {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}
.dev-card--no-image .dev-card__top { grid-template-columns: 1fr; }
.dev-card__media { display: block; overflow: hidden; }
.dev-card__media:hover { opacity: 1; }
/* One ratio for every card, whatever shape the photograph was supplied in. */
.dev-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.dev-card__media:hover .dev-card__img { transform: scale(1.03); }
.dev-card__title { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.025em; line-height: 1.02; }
.dev-card__meta { display: flex; margin-top: 16px; }
.dev-card__summary { margin-top: 18px; color: var(--mid); font-size: 17px; line-height: 1.6; max-width: 44ch; }

.dev-figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(32px, 4vw, 48px) 0 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.dev-figures__cell { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dev-figures dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* --accent is 2.05:1 on --bg at this size; --mid passes AA. */
    color: var(--mid);
}
.dev-figures dd { margin: 10px 0 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1; }
.dev-figures__cell[data-figure="value_created"] dd { color: var(--fg); font-weight: 500; }
@media (max-width: 700px) { .dev-figures { grid-template-columns: 1fr 1fr; } }

.dev-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.dev-card__agreed { color: var(--fg); }
.dev-note { margin-top: clamp(40px, 5vw, 64px); color: var(--mid); font-size: 13px; line-height: 1.6; max-width: 72ch; }

@media (max-width: 900px) {
    .dev-intro, .dev-card__top { grid-template-columns: 1fr; }
    .dev-routes { grid-template-columns: 1fr; }
}

/* Case study. */
.dev-case__hero { padding: 0 var(--gutter); background: var(--dark-bg); }
.dev-case__hero-img { width: 100%; max-height: 88vh; object-fit: contain; margin: 0 auto; }
.dev-case__facts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; }
.dev-case__facts span { color: var(--mid); }
.dev-figures--full { margin-top: 24px; }
.dev-figures--full + .dev-card__agreed { margin-top: 20px; }
.dev-case__part + .dev-case__part { margin-top: clamp(48px, 6vw, 72px); }
.dev-case__heading { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.022em; margin-bottom: 20px; }
.dev-case__story p { color: var(--mid); font-size: 17px; line-height: 1.7; margin-top: 14px; }
.dev-case__story .dev-note { font-size: 13px; line-height: 1.6; margin-top: clamp(40px, 5vw, 64px); }
.dev-case__list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.dev-case__list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.dev-case__list li::before { content: "✦"; color: var(--accent); font-size: 10px; padding-top: 5px; }
/* Plans and before/after: side by side on desktop, stacked on a phone. */
.dev-plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.dev-plans figure { margin: 0; }
.dev-plans img { width: 100%; background: var(--line); }
.dev-plans figcaption { margin-top: 10px; }
.dev-pair + .dev-pair { margin-top: clamp(40px, 5vw, 64px); }
.dev-pair__label { margin-bottom: 14px; }
@media (max-width: 700px) { .dev-plans { grid-template-columns: 1fr; } }

.cta-strip__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Testimonial + carousel ---------- */
.testimonial {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}
.testimonial__quote {
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.022em;
    font-weight: 500;
}
.testimonial__attrib {
    margin-top: 36px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
}

.testimonial-carousel {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}
.testimonial-carousel__track {
    position: relative;
    min-height: 220px;
}
.testimonial-carousel__slide {
    position: absolute;
    inset: 0;
    text-align: center;
    margin: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.testimonial-carousel__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.testimonial-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}
.testimonial-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .25s var(--ease), transform .25s var(--ease);
}
.testimonial-carousel__dot:hover { background: var(--mid); }
.testimonial-carousel__dot.is-active {
    background: var(--accent);
    transform: scale(1.4);
}

/* ---------- Leave a review form ---------- */
.review-form { text-align: left; }
.review-rating { align-items: center; }
.review-rating label {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}
.review-rating .stars {
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
}
.review-rating .star {
    font-size: 30px;
    color: var(--line);
    cursor: pointer;
    line-height: 1;
    transition: color .2s var(--ease), transform .2s var(--ease);
    padding: 4px;
}
.review-rating .star:hover,
.review-rating .star.is-on { color: var(--accent); }
.review-rating .star.is-on { transform: scale(1.06); }

/* ---------- CTA strip ---------- */
.cta-strip {
    padding: clamp(80px, 12vw, 160px) var(--gutter);
    background: var(--dark-bg);
    color: var(--dark-fg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-strip__title {
    font-size: clamp(36px, 5.4vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 22ch;
    margin: 0 auto 36px;
    font-weight: 500;
}
.cta-strip__title em { font-style: normal; color: var(--accent); }
.cta-strip__text {
    max-width: 56ch;
    margin: -12px auto 36px;
    color: rgba(242,240,234,0.72);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
}

/* ---------- Project filters ---------- */
.proj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 22px var(--gutter);
    border-bottom: 1px solid var(--line);
    justify-content: center;
}
.proj-filters button {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 16px;
    color: var(--mid);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
    background: transparent;
}
.proj-filters button:hover { color: var(--fg); border-color: var(--fg); }
.proj-filters button.is-active { color: var(--bg); background: var(--navy); border-color: var(--navy); }

/* ---------- Project grid ---------- */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(18px, 2.4vw, 36px);
}
@media (max-width: 800px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dark-bg);
    color: var(--dark-fg);
    border-radius: 0;
    aspect-ratio: 4/3;
}
.proj-card__img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 1.2s var(--ease);
    will-change: transform;
}
.proj-card:hover .proj-card__img { transform: scale(1.05); }
.proj-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,23,44,0) 35%, rgba(10,23,44,0.72) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}
.proj-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(8px);
    transition: transform .4s var(--ease);
}
.proj-card:hover .proj-card__meta { transform: translateY(0); }
.proj-card__type {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    background: rgba(10,23,44,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.proj-card__title {
    font-size: clamp(20px, 2.4vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.proj-card__location {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(242,240,234,0.65);
}

/* ---------- Project page ---------- */
.project-hero {
    height: 100svh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.project-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform-origin: center 60%;
}
.project-hero__veil {
    position: absolute;
    inset: 0;
    /* Decorative gradient only. Without this it covers the hero and swallows
       the click that opens the lightbox. */
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10,23,44,0.2) 0%, transparent 30%, transparent 50%, rgba(10,23,44,0.5) 100%);
}
.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.project-meta__cell {
    padding: 40px var(--gutter);
    border-right: 1px solid var(--line);
    text-align: center;
}
.project-meta__cell:last-child { border-right: 0; }
.project-meta__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
}
.project-meta__value {
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -0.015em;
    margin-top: 14px;
    font-weight: 500;
}
@media (max-width: 720px) {
    .project-meta { grid-template-columns: 1fr; }
    .project-meta__cell { border-right: 0; border-bottom: 1px solid var(--line); }
    .project-meta__cell:last-child { border-bottom: 0; }
}

.prose {
    max-width: 64ch;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg);
}
.prose p { margin: 0 0 1.2em; }
.prose--center { text-align: center; }
/* Photographer / copyright credit under a project's images. Not a section of
   its own: it is drawn up into the bottom padding of the gallery above, so it
   reads as a caption to the photographs rather than a block between sections. */
.project-credits {
    max-width: 720px;
    margin: calc(clamp(60px, 8vw, 100px) * -0.6) auto 0;
    padding: 0 var(--gutter);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--mid);
}

.gallery { display: grid; gap: clamp(14px, 2vw, 28px); }
.gallery--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .gallery--two { grid-template-columns: 1fr; } }

/* Grid items stretch to the tallest in the row by default, and .parallax-img is
   height:100%, so a portrait image beside a landscape one would drag its
   neighbour to full height and crop it hard. Sizing each item to its own
   content keeps both intact; the short one simply sits at the top of the row.
   No visual change to an all-landscape gallery, where every item is the same
   height anyway. */
.gallery--two { align-items: start; }

/* An odd number of images would otherwise leave an empty half-width hole in the
   last row — read by clients as a broken/missing image. Let the trailing image
   span both columns instead, and widen its crop so a full-width band doesn't
   become a 4:3 slab (1440px wide at 4:3 is over 1000px tall). Project galleries
   run on whatever the studio supplies, so odd counts are the norm, not an edge
   case. Below 800px the grid is already single-column and this is a no-op.

   Both gallery shapes need covering: the photo galleries wrap each image in a
   figure, while the renders/drawings galleries put bare img children straight
   into the grid — a descendant selector alone would miss the latter. */
.gallery--two > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.gallery--two > :last-child:nth-child(odd) img,
.gallery--two > img:last-child:nth-child(odd) { aspect-ratio: 16 / 9; }

.gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0;
    will-change: transform;
}

/* A portrait image carries its true ratio inline, from the dimensions recorded
   on the record (ProjectImage::galleryAspectRatio). Inline beats both the 4:3
   default and the 16/9 trailing-odd rule above, which would otherwise crop a
   tall shot flat — the case this exists for is the Harrow staircase, shot
   straight down the stairwell, where the vertical drop is the whole subject.
   Landscape images keep the uniform crop that gives the grid its rhythm. */

/* ---------- Project gallery lightbox ---------- */
/* is-zoomable is added by nav.js, not by the Blade. Without JavaScript the
   images stay plain images rather than advertising a control that cannot
   open.
   
   Deliberately no cursor change. A zoom-in cursor would sit alongside the
   site's own .cursor-dot, and the studio did not want the magnifier. Only the
   focus ring is kept: that is how a keyboard user sees where they are, and
   losing it would make the galleries unusable without a mouse. */
.is-zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.lightbox {
    position: fixed;
    inset: 0;
    /* Above both .site-nav (100) and .menu-overlay (200) — the fixed nav would
       otherwise sit over the top of the image. */
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: var(--gutter);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(40px) saturate(140%);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    color: var(--dark-fg);
}
/* Beats display:flex above; without this the dialog stays visible while
   hidden. */
.lightbox[hidden] { display: none; }

.lightbox__bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.lightbox__count {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(242,240,234,0.65);
}
.lightbox__close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lightbox__stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
    /* A flex item will not shrink below its content by default, which would
       push the image past the bottom of the screen on a short viewport. */
    min-height: 0;
}
.lightbox__figure {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
}
.lightbox__img {
    flex: 0 1 auto;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 0;
}
.lightbox__caption {
    margin: 0;
    max-width: 70ch;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(242,240,234,0.65);
}
.lightbox__caption[hidden] { display: none; }

.lightbox__nav {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }
.lightbox__nav[hidden] { display: none; }

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 700px) {
    /* Either side of the image the arrows eat the width the photograph needs,
       so they move onto the bottom corners. Swiping is the gesture here
       anyway; the buttons stay for anyone not swiping. */
    .lightbox__stage { position: relative; }
    .lightbox__nav {
        position: absolute;
        bottom: 0;
        width: 44px;
        height: 44px;
        background: var(--dock-bg);
    }
    .lightbox__nav--prev { left: 0; }
    .lightbox__nav--next { right: 0; }
}

/* ---------- About: team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
/* The wider network: text under the profiles, heading beside its paragraphs. */
.team-network {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 4vw, 56px);
    margin-top: clamp(56px, 7vw, 96px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--line);
}
.team-network .team-card__name { margin-top: 0; }
.team-network__copy p { color: var(--mid); font-size: 16px; line-height: 1.7; max-width: 64ch; }
.team-network__copy p + p { margin-top: 1em; }
@media (max-width: 800px) { .team-network { grid-template-columns: 1fr; } }
.team-card__photo {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--line);
    object-fit: cover;
    border-radius: 0;
}
.team-card__photo--empty {
    display: block;
    background: linear-gradient(135deg, var(--line) 0%, #d4d0c5 100%);
}
.team-card__name {
    margin-top: 22px;
    line-height: 1.1;
    font-size: clamp(22px, 2.4vw, 30px);
    letter-spacing: -0.02em;
    font-weight: 500;
}
.team-card__role {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.team-card__bio { margin-top: 16px; color: var(--mid); font-size: 14px; line-height: 1.6; }
/* "View bio +": a native <details>, so it works by keyboard and without JS. */
.team-card__more summary {
    margin-top: 16px;
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.team-card__more summary::-webkit-details-marker { display: none; }
.team-card__more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.team-card__more-close,
.team-card__more[open] .team-card__more-open { display: none; }
.team-card__more[open] .team-card__more-close { display: inline; }

/* ---------- Values ---------- */
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 800px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.value__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
}
.value__title {
    margin-top: 14px;
    font-size: clamp(22px, 2.4vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-weight: 500;
}
.value__copy {
    margin-top: 14px;
    color: rgba(242,240,234,0.55);
    font-size: 14px;
    line-height: 1.6;
}
.section--light .value__copy { color: var(--mid); }

/* ---------- Process timeline (click-to-expand accordion) ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__step { border-top: 1px solid var(--line); }
.timeline__step:last-child { border-bottom: 1px solid var(--line); }

/* Optional stages (tender, construction, post-construction): set apart so the
   page doesn't read as if every appointment runs through them. */
.timeline__divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(40px, 5vw, 64px) 0 clamp(16px, 2vw, 24px);
    border-top: 1px solid var(--line);
}
.timeline__divider::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.timeline__divider-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid);
}
.timeline__step--optional { border-top-style: dashed; }
.timeline__step--optional .timeline__title { color: var(--mid); }
.timeline__tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
    border: 1px solid var(--line);
    padding: 5px 8px 4px;
    line-height: 1;
}

.timeline__head {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 60px;
    align-items: center;
    padding: clamp(28px, 4vw, 44px) 0;
    width: 100%;
    background: transparent;
    border: 0;
    font-family: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: padding-left .3s var(--ease);
}
.timeline__head:hover { padding-left: 8px; }

.timeline__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--accent);
    line-height: 1;
    align-self: start;
    padding-top: 8px;
}
.timeline__heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.timeline__title {
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.022em;
    font-weight: 500;
    display: block;
}
.timeline__summary {
    color: var(--mid);
    font-size: 15px;
    line-height: 1.5;
    max-width: 60ch;
    display: block;
}
.timeline__icon {
    position: relative;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    transition: transform .35s var(--ease);
}
.timeline__icon::before,
.timeline__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
}
.timeline__icon::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.timeline__head[aria-expanded="true"] .timeline__icon::after { transform: rotate(0); }
.timeline__head[aria-expanded="true"] .timeline__icon { transform: rotate(180deg); }

.timeline__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease);
}
.timeline__body-inner {
    overflow: hidden;
    min-height: 0;
    padding-left: 200px;
    padding-right: 60px;
}
/* Keyed on the panel's own state, not "the element after the head": a Process
   stage's opening paragraph sits between the two. */
.timeline__body[aria-hidden="false"] { grid-template-rows: 1fr; }
.timeline__body[aria-hidden="false"] .timeline__body-inner {
    padding-bottom: clamp(28px, 4vw, 44px);
}
.timeline__body-inner p {
    margin: 0 0 1.2em;
    color: var(--mid);
    max-width: 60ch;
    line-height: 1.7;
}
.timeline__body-inner p:last-child { margin-bottom: 0; }
/* A stage's opening paragraph: always visible, aligned with the title. */
.timeline__lead { padding: 0 60px clamp(28px, 4vw, 44px) 200px; margin-top: calc(-1 * clamp(14px, 2vw, 22px)); }
.timeline__lead p { margin: 0; color: var(--mid); max-width: 60ch; line-height: 1.7; }
.timeline__step--has-more .timeline__lead { padding-bottom: clamp(22px, 3vw, 32px); }
/* A stage whose opening paragraph is all there is: no toggle, no hover nudge. */
.timeline__head--static { cursor: default; }
.timeline__head--static:hover { padding-left: 0; }
@media (max-width: 720px) {
    .timeline__head { grid-template-columns: 80px 1fr auto; gap: 16px; }
    .timeline__body-inner { padding-left: 0; padding-right: 0; }
    .timeline__lead { padding-left: 0; padding-right: 0; }
    .timeline__num { padding-top: 0; }
}

/* ---------- Contact form ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info dl { margin: 32px 0 0; }
.contact-info dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    margin-top: 24px;
}
.contact-info dd {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.4;
    white-space: pre-line;
    color: var(--fg);
}
.contact-info dd a { color: inherit; text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: flex; flex-direction: column; gap: 22px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
}
.form input,
.form select,
.form textarea {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--fg);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 12px 0;
    border-radius: 0;
    outline: none;
    transition: border-color .25s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--fg); }
.form textarea { min-height: 140px; resize: vertical; }
.form .field-error { color: #b6452f; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
    padding: 18px 22px;
    border: 1px solid var(--accent);
    background: rgba(196, 168, 130, 0.08);
    color: var(--fg);
    font-size: 17px;
    border-radius: 0;
}
/* #leave-a-review is a shareable deep link; the site nav is position:fixed,
   so without this an anchor jump lands the section partly hidden under it. */
#leave-a-review { scroll-margin-top: var(--nav-h); }
.form-error {
    padding: 18px 22px;
    margin-bottom: 22px;
    border: 1px solid #b6452f;
    background: rgba(182, 69, 47, 0.08);
    color: #b6452f;
    font-size: 15px;
    border-radius: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-bg);
    color: var(--dark-mid);
    border-top: 1px solid var(--dark-line);
}
.footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(80px, 10vw, 140px) var(--gutter) 32px;
    display: grid;
    grid-template-columns: auto 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 1000px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
/* The square logo: first column on desktop; on narrower screens a row of its
   own, centred, above the rest. */
.footer__logo {
    display: block;
    color: var(--dark-fg);
    line-height: 0;
}
.footer__logo svg { display: block; width: clamp(120px, 11vw, 160px); height: auto; }
@media (max-width: 1000px) {
    .footer__logo { grid-column: 1 / -1; justify-self: center; margin-bottom: 16px; }
}
.footer__tag {
    margin-top: 0;
    max-width: 32ch;
    color: rgba(242,240,234,0.72);
    font-size: 14px;
    line-height: 1.6;
}
/* h3, matching the markup. This targeted h5 and so never applied: the column
   headings rendered as default 17.5px sentence case instead of the mono
   eyebrow they were designed as. */
.footer__col h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--accent);
    margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
    color: rgba(242,240,234,0.65);
    font-size: 14px;
}
.footer__col a:hover { color: var(--dark-fg); opacity: 1; }
.footer__address {
    white-space: pre-line;
    color: rgba(242,240,234,0.72);
    font-size: 14px;
    line-height: 1.6;
}
.footer__bar {
    border-top: 1px solid var(--dark-line);
    padding: 24px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242,240,234,0.72);
}
.footer__bar a { color: rgba(242,240,234,0.85); }
.footer__bar a:hover { color: var(--dark-fg); }
@media (max-width: 700px) { .footer__bar { flex-direction: column; gap: 10px; } }

/* ---------- Reveal & motion baselines ---------- */
.reveal,
.reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .9s var(--ease), transform .9s var(--ease); }

.parallax-frame { overflow: hidden; }
.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    will-change: transform;
}

/* word-by-word stagger handled by JS via .is-in toggles */

/* ---------- Custom cursor ---------- */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease);
}
.cursor-dot.is-hover { width: 36px; height: 36px; }
@media (hover: none), (max-width: 900px) { .cursor-dot { display: none; } }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--dark-bg);
    color: var(--dark-fg);
    font-size: 15px;
    text-decoration: none;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* .site-nav is position:fixed — without this, jumping to #main via the
   skip link lands content partly hidden underneath it. */
main#main { scroll-margin-top: var(--nav-h); }

/* ---------- Visually hidden (a11y + honeypot fields) ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
        .hero__media,
    .project-hero__img,
    .parallax-img { transform: none; }
}
