/* ============================================================================
   THA — design system
   Layered after mobius.css (a light reset + utility framework). Everything
   here is namespaced .bf-* so the two never collide.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
    /* Surface */
    --ink: #0E100F;
    --ink-2: #141715;
    --graphite: #232824;
    --graphite-2: #2E342F;
    --paper: #F2EFE8;
    --paper-2: #E6E1D6;
    --stone: #A9A296;

    /* Accent */
    --verdigris: #6C8A76;
    --verdigris-d: #4E6A59;
    --clay: #B26845;

    /* Type on dark / light */
    --on-dark: rgba(242, 239, 232, .94);
    --on-dark-mid: rgba(242, 239, 232, .62);
    --on-dark-dim: rgba(242, 239, 232, .38);
    --on-light: rgba(14, 16, 15, .92);
    --on-light-mid: rgba(14, 16, 15, .62);
    --on-light-dim: rgba(14, 16, 15, .38);

    --line: rgba(242, 239, 232, .16);
    --line-strong: rgba(242, 239, 232, .28);
    --line-light: rgba(14, 16, 15, .14);

    /* Type */
    --display: "Cormorant Garamond", "Iowan Old Style", Georgia, ui-serif, serif;
    --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --fs-hero: clamp(2.7rem, 7.4vw, 7.2rem);
    --fs-h1: clamp(2.1rem, 5vw, 4.4rem);
    --fs-h2: clamp(1.6rem, 3.2vw, 2.9rem);
    --fs-h3: clamp(1.2rem, 1.9vw, 1.7rem);
    --fs-lead: clamp(1.05rem, 1.5vw, 1.42rem);
    --fs-body: clamp(.98rem, 1.02vw, 1.09rem);
    --fs-small: .875rem;
    --fs-label: .7rem;

    /* Space */
    --gutter: clamp(20px, 5vw, 76px);
    --maxw: 1560px;
    --sec: clamp(72px, 11vw, 170px);
    --radius: 2px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --slow: 900ms;
    --med: 520ms;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* mobius.css defaults html/body to #fff and text-align:center — reset both
       so the framework's centring default does not leak into the layout. */
    background: var(--ink);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--on-dark);
    font-family: var(--sans);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: .005em;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* Reset rules Mobius CSS used to provide. Kept explicit so dropping that
   stylesheet does not change how links, images or the html box behave. */
a {
    color: inherit;
    text-decoration: none;
    line-height: inherit;
    position: static;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--verdigris); color: #fff; }

/* Keyboard focus — visible, on-brand, never on mouse clicks. */
:focus-visible {
    outline: 1px solid var(--verdigris);
    outline-offset: 3px;
}

.bf-sec--paper :focus-visible { outline-color: var(--verdigris-d); }

/* Keep anchored sections clear of the fixed header. */
[id] { scroll-margin-top: 110px; }

/* Skip link */
.bf-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--paper);
    color: var(--ink);
    padding: 12px 20px;
    font-size: var(--fs-label);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.bf-skip:focus { left: 12px; top: 12px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--graphite-2); }
::-webkit-scrollbar-thumb:hover { background: var(--verdigris-d); }

/* --------------------------------------------------------------- layout -- */
.bf-wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.bf-sec { padding-block: var(--sec); }
.bf-sec--tight { padding-block: clamp(48px, 7vw, 104px); }

.bf-sec--paper {
    background: var(--paper);
    color: var(--on-light);
}

.bf-sec--graphite { background: var(--ink-2); }

.bf-rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

.bf-sec--paper .bf-rule { background: var(--line-light); }

/* ------------------------------------------------------------ typography -- */
.bf-label {
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 400;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.45;
}

.bf-label--dim { color: var(--on-dark-dim); }

/* Technical metadata shares the monospace face — numbers, spec keys, dates and
   widget labels read as annotations on a drawing rather than as prose. */
.bf-card__meta,
.bf-card__index,
.bf-spec__k,
.bf-fact__k,
.bf-post__meta,
.bf-timeline__year,
.bf-award__year,
.bf-person__role,
.bf-stat__label,
.bf-principle__n,
.bf-field__label,
.bf-footer__bottom,
.bf-chip,
.bf-scrollcue .bf-label,
.bf-quote__by {
    font-family: var(--mono);
    letter-spacing: .1em;
}
.bf-sec--paper .bf-label { color: var(--on-light-mid); }

.bf-display {
    font-family: var(--display);
    font-weight: 300;
    font-size: var(--fs-hero);
    line-height: .98;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.bf-h1 {
    font-family: var(--display);
    font-weight: 300;
    font-size: var(--fs-h1);
    line-height: 1.03;
    letter-spacing: -.012em;
    text-wrap: balance;
}

.bf-h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: var(--fs-h2);
    line-height: 1.08;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.bf-h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: var(--fs-h3);
    line-height: 1.18;
}

.bf-lead {
    font-size: var(--fs-lead);
    font-weight: 300;
    line-height: 1.5;
    color: var(--on-dark-mid);
    max-width: 46ch;
}

.bf-sec--paper .bf-lead { color: var(--on-light-mid); }

.bf-prose { max-width: 62ch; }
.bf-prose p { margin-bottom: 1.35em; color: var(--on-dark-mid); }
.bf-prose p:last-child { margin-bottom: 0; }
.bf-prose p:first-child { color: var(--on-dark); }
.bf-sec--paper .bf-prose p { color: var(--on-light-mid); }
.bf-sec--paper .bf-prose p:first-child { color: var(--on-light); }

.bf-italic {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
}

/* --------------------------------------------------------------- buttons -- */
.bf-btn {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    padding: 1.05em 1.9em;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--on-dark);
    background: transparent;
    transition: background var(--med) var(--ease), color var(--med) var(--ease),
                border-color var(--med) var(--ease);
}

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

.bf-btn--solid {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.bf-btn--solid:hover {
    background: var(--verdigris);
    border-color: var(--verdigris);
    color: #fff;
}

.bf-sec--paper .bf-btn { border-color: var(--line-light); color: var(--on-light); }
.bf-sec--paper .bf-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.bf-btn__arrow { transition: transform var(--med) var(--ease); }
.bf-btn:hover .bf-btn__arrow { transform: translateX(4px); }

/* Text link with an animated rule */
.bf-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.bf-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--med) var(--ease);
}

.bf-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------------------------------------------- header -- */
.bf-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    padding-block: clamp(14px, 1.7vw, 24px);
    transition: background var(--med) var(--ease), backdrop-filter var(--med) var(--ease),
                border-color var(--med) var(--ease), padding var(--med) var(--ease);
    border-bottom: 1px solid transparent;
}

.bf-header.is-solid {
    background: rgba(14, 16, 15, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: var(--line);
    padding-block: 12px;
}

.bf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bf-brand {
    display: inline-flex;
    align-items: baseline;
    gap: .55em;
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    font-weight: 400;
    letter-spacing: .02em;
    white-space: nowrap;
}

.bf-brand__mark { color: var(--verdigris); }

/* The header lockup is the THA wordmark. */
.bf-brand__logo {
    display: block;
    /* THA is a wide wordmark (620x196), so size it by height */
    height: clamp(20px, 2.1vw, 27px);
    width: auto;
    /* the mark ships black on transparent; the site is near-black */
    transition: opacity var(--med) var(--ease);
}

.bf-brand:hover .bf-brand__logo { opacity: .72; }

.bf-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 44px);
}

.bf-nav__link {
    position: relative;
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--on-dark-mid);
    transition: color var(--med) var(--ease);
}

.bf-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--verdigris);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--med) var(--ease);
}

.bf-nav__link:hover,
.bf-nav__link.is-active { color: var(--on-dark); }
.bf-nav__link:hover::after,
.bf-nav__link.is-active::after { transform: scaleX(1); }

/* ------------------------------------------------- projects submenu (nav) --
   Opens on hover and on keyboard focus. The empty .bf-nav__menu that non-Projects
   items still carry never reveals anything, so no per-item branching is needed
   in the template. */
.bf-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.bf-nav__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 230px;
    padding: 14px 0;
    background: var(--ink);
    border: 1px solid var(--line-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility var(--med);
    z-index: 60;
}

.bf-nav__menu:empty { display: none; }

.bf-nav__item:hover .bf-nav__menu,
.bf-nav__item:focus-within .bf-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.bf-nav__menu-link {
    display: block;
    padding: 9px 22px;
    font-size: var(--fs-label);
    letter-spacing: .1em;
    color: var(--on-dark-mid);
    white-space: nowrap;
    transition: color var(--fast, .18s) var(--ease), background var(--fast, .18s) var(--ease);
}

.bf-nav__menu-link:hover,
.bf-nav__menu-link.is-active {
    color: var(--on-dark);
    background: rgba(255, 255, 255, .05);
}

/* ------------------------------------------------------------ motion toggle */
.bf-motion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--on-dark-mid);
    transition: color var(--med) var(--ease);
}

.bf-motion:hover { color: var(--on-dark); }

.bf-motion__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--verdigris);
    transition: background var(--med) var(--ease), transform var(--med) var(--ease);
}

.bf-motion[aria-pressed="false"] .bf-motion__dot {
    background: transparent;
    border: 1px solid var(--on-dark-mid);
    transform: scale(.8);
}

.bf-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    position: relative;
}

.bf-burger span {
    position: absolute;
    left: 9px;
    width: 22px;
    height: 1px;
    background: var(--on-dark);
    transition: transform var(--med) var(--ease), opacity var(--med) var(--ease);
}

.bf-burger span:nth-child(1) { top: 16px; }
.bf-burger span:nth-child(2) { top: 23px; }

.bf-menu-open .bf-burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.bf-menu-open .bf-burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Full-screen mobile menu */
.bf-drawer {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--med) var(--ease), visibility var(--med);
}

.bf-drawer.is-open { opacity: 1; visibility: visible; }

.bf-drawer__link {
    font-family: var(--display);
    font-size: clamp(2.2rem, 12vw, 4rem);
    font-weight: 300;
    line-height: 1.25;
    color: var(--on-dark-mid);
    transition: color var(--med) var(--ease), transform var(--med) var(--ease);
    display: block;
}

.bf-drawer__link:hover { color: var(--on-dark); transform: translateX(10px); }

/* The typology submenu inside the mobile drawer: the same destinations as the
   desktop dropdown, but indented and in the label face so the display-size
   entries stay the top level of the menu. */
.bf-drawer__sublink {
    display: block;
    margin-left: 20px;
    padding: 7px 0;
    font-size: var(--fs-label);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--on-dark-mid);
    transition: color var(--med) var(--ease), transform var(--med) var(--ease);
}

.bf-drawer__sublink:hover { color: var(--on-dark); transform: translateX(6px); }

.bf-drawer__meta {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

/* ------------------------------------------------------------------ hero -- */
.bf-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.bf-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.bf-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bf-crossfade 32s infinite;
    transform: scale(1.06);
}

.bf-hero__slide:nth-child(1) { animation-delay: 0s; }
.bf-hero__slide:nth-child(2) { animation-delay: 8s; }
.bf-hero__slide:nth-child(3) { animation-delay: 16s; }
.bf-hero__slide:nth-child(4) { animation-delay: 24s; }

@keyframes bf-crossfade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    25%  { opacity: 1; }
    31%  { opacity: 0; }
    100% { opacity: 0; }
}

.bf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 16, 15, .72) 0%, rgba(14, 16, 15, .18) 34%,
                        rgba(14, 16, 15, .58) 72%, rgba(14, 16, 15, .94) 100%);
}

.bf-hero__inner {
    width: 100%;
    padding-bottom: clamp(48px, 7vw, 96px);
    padding-top: 140px;
}

.bf-hero__eyebrow { color: var(--on-dark-mid); margin-bottom: clamp(20px, 2.5vw, 34px); }
.bf-hero__title { max-width: 22ch; }

.bf-hero__foot {
    margin-top: clamp(34px, 4.5vw, 64px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.bf-hero__rotate { min-height: 5.4em; max-width: 40ch; }

.bf-scrollcue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--on-dark-dim);
}

.bf-scrollcue__line {
    width: 54px;
    height: 1px;
    background: var(--on-dark-dim);
    position: relative;
    overflow: hidden;
}

.bf-scrollcue__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--on-dark);
    transform: translateX(-100%);
    animation: bf-sweep 2.6s var(--ease) infinite;
}

@keyframes bf-sweep {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ---------------------------------------------------------------- section -- */
.bf-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 80px);
    align-items: end;
    margin-bottom: clamp(38px, 5vw, 72px);
}

.bf-head--stack { grid-template-columns: minmax(0, 1fr); }
.bf-head__aside { justify-self: end; text-align: right; }

.bf-eyebrow-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.bf-eyebrow-row__num { color: var(--verdigris); }

/* ------------------------------------------------------------- work grid -- */
.bf-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(24px, 3.4vw, 64px) clamp(20px, 2.6vw, 48px);
}

.bf-card { display: block; grid-column: span 12; }

.bf-card--wide { grid-column: span 8; }
.bf-card--narrow { grid-column: span 4; }
.bf-card--half { grid-column: span 6; }
.bf-card--full { grid-column: span 12; }
.bf-card--offset { margin-top: clamp(0px, 6vw, 96px); }

.bf-card__media {
    position: relative;
    overflow: hidden;
    background: var(--graphite);
    aspect-ratio: 4 / 3;
}

.bf-card__media--tall { aspect-ratio: 3 / 4; }
.bf-card__media--wide { aspect-ratio: 16 / 9; }
.bf-card__media--square { aspect-ratio: 1 / 1; }

.bf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.04) brightness(.96);
    transition: transform 1.1s var(--ease-out), filter var(--slow) var(--ease);
}

.bf-card:hover .bf-card__img {
    transform: scale(1.045);
    filter: saturate(1) contrast(1.02) brightness(1);
}

.bf-card__index {
    position: absolute;
    top: 14px;
    left: 16px;
    color: rgba(255, 255, 255, .72);
    mix-blend-mode: difference;
}

.bf-card__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
}

.bf-card__title {
    font-family: var(--display);
    font-size: clamp(1.15rem, 1.75vw, 1.7rem);
    font-weight: 400;
    line-height: 1.15;
    transition: color var(--med) var(--ease);
}

.bf-card:hover .bf-card__title { color: var(--verdigris); }

.bf-card__meta {
    font-size: var(--fs-label);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
    text-align: right;
    white-space: nowrap;
}

/* --------------------------------------------------------------- filters -- */
.bf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(30px, 3.4vw, 52px);
}

/* The index has two facet rows. The typology row carries the weight; the region
   row sits directly beneath it, smaller and quieter, so the eye reads typology
   first and region as the refinement. */
.bf-filters[data-facet="type"] {
    margin-bottom: 10px;
}

.bf-filters--sub {
    margin-bottom: clamp(30px, 3.4vw, 52px);
    opacity: .72;
}

.bf-filters--sub .bf-chip {
    padding: .55em 1em;
    font-size: calc(var(--fs-label) * .92);
}

.bf-chip {
    padding: .72em 1.25em;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark-mid);
    transition: all var(--med) var(--ease);
}

.bf-chip:hover { border-color: var(--line-strong); color: var(--on-dark); }

.bf-chip.is-on {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.bf-chip__count { opacity: .5; margin-left: .5em; }

/* ------------------------------------------------------------ page intro -- */
.bf-pagehead {
    padding-top: clamp(132px, 16vw, 220px);
    padding-bottom: clamp(40px, 5vw, 84px);
}

.bf-pagehead__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 88px);
    align-items: end;
    padding-bottom: clamp(26px, 3.2vw, 46px);
    border-bottom: 1px solid var(--line);
}

.bf-pagehead__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 34px;
    justify-content: flex-end;
}

/* ------------------------------------------------------------ split block -- */
.bf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 110px);
    align-items: start;
}

.bf-split--media { align-items: center; }
.bf-split__media { overflow: hidden; }
.bf-split__media img { width: 100%; filter: saturate(.9) contrast(1.04); }

/* ---------------------------------------------------------------- stats -- */
.bf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
}

.bf-stat { border-top: 1px solid var(--line-light); padding-top: 22px; }
.bf-stat__value {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.02em;
}
.bf-stat__label { margin-top: 12px; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--on-light-mid); }

/* ------------------------------------------------------------ principles -- */
.bf-principles { border-top: 1px solid var(--line); }

.bf-principle {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(18px, 3vw, 56px);
    padding-block: clamp(28px, 3.6vw, 54px);
    border-bottom: 1px solid var(--line);
    align-items: start;
    transition: background var(--med) var(--ease);
}

.bf-principle:hover { background: rgba(242, 239, 232, .025); }
.bf-principle__n { color: var(--verdigris); font-size: var(--fs-label); letter-spacing: .2em; padding-top: .5em; }
.bf-principle__body { color: var(--on-dark-mid); }

/* ------------------------------------------------------------ services -- */
.bf-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 44px);
}

.bf-service { border-top: 1px solid var(--line); padding-top: 22px; }
.bf-service__n { color: var(--verdigris); }
.bf-service__title {
    font-family: var(--display);
    font-size: clamp(1.2rem, 1.75vw, 1.62rem);
    font-weight: 400;
    line-height: 1.15;
    margin-top: 16px;
}
.bf-service__body { color: var(--on-dark-mid); margin-top: 12px; }
.bf-service__list { margin-top: 16px; }
.bf-service__list li {
    color: var(--on-dark-dim);
    font-size: var(--fs-small);
    padding-block: 4px;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ team -- */
.bf-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 40px);
}

.bf-person { border-top: 1px solid var(--line); padding-top: 20px; }

.bf-person__mono {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--graphite) 0%, var(--ink-2) 100%);
    border: 1px solid var(--line);
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 300;
    color: var(--verdigris);
    letter-spacing: .04em;
    margin-bottom: 18px;
    transition: border-color var(--med) var(--ease), color var(--med) var(--ease);
}

.bf-person:hover .bf-person__mono { border-color: var(--verdigris); color: var(--paper); }

.bf-person__name { font-size: 1rem; font-weight: 400; }
.bf-person__role { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); margin-top: 6px; }

/* ---------------------------------------------------------------- awards -- */
.bf-award {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 48px);
    padding-block: clamp(16px, 1.8vw, 24px);
    border-bottom: 1px solid var(--line-light);
    align-items: baseline;
}

.bf-award__year { font-size: var(--fs-label); letter-spacing: .18em; color: var(--on-light-dim); }
.bf-award__title { font-size: 1.02rem; }
.bf-award__body { color: var(--on-light-mid); font-size: var(--fs-small); }

/* --------------------------------------------------------------- journal -- */
.bf-post {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 130px;
    gap: clamp(18px, 3vw, 52px);
    padding-block: clamp(24px, 3vw, 40px);
    border-bottom: 1px solid var(--line);
    align-items: center;
    transition: background var(--med) var(--ease);
}

.bf-post:hover { background: rgba(242, 239, 232, .03); }

.bf-post__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--graphite); }
.bf-post__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04);
    transition: transform 1.1s var(--ease-out); }
.bf-post:hover .bf-post__media img { transform: scale(1.05); }

.bf-post__title { font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 2.1rem); font-weight: 400; line-height: 1.12; }
.bf-post__excerpt { color: var(--on-dark-mid); margin-top: 12px; max-width: 68ch; }
.bf-post__meta { text-align: right; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); }
.bf-post__meta span { display: block; margin-bottom: 8px; }

/* ------------------------------------------------------- project detail -- */
.bf-project-hero {
    position: relative;
    min-height: 78svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.bf-project-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.05);
    transform: scale(1.12);
    will-change: transform;
}

.bf-project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(14, 16, 15, .74) 0%, rgba(14, 16, 15, .1) 40%,
                rgba(14, 16, 15, .88) 100%);
}

.bf-project-hero__inner { width: 100%; padding-bottom: clamp(40px, 5vw, 78px); padding-top: 150px; }

.bf-spec {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 44px);
    padding-block: clamp(30px, 3.6vw, 56px);
    border-bottom: 1px solid var(--line);
}

.bf-spec__k { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 10px; }
.bf-spec__v { font-size: 1rem; }

.bf-facts { border-top: 1px solid var(--line); }
.bf-fact {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: 18px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.bf-fact__k { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); }
.bf-fact__v { color: var(--on-dark); }

.bf-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.bf-gallery figure { grid-column: span 12; overflow: hidden; }
.bf-gallery figure.span-6 { grid-column: span 6; }
.bf-gallery figure.span-7 { grid-column: span 7; }
.bf-gallery figure.span-5 { grid-column: span 5; }
.bf-gallery img { width: 100%; filter: saturate(.9) contrast(1.04); }
.bf-gallery figcaption { margin-top: 12px; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); }

/* Next project */
.bf-next {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(64px, 9vw, 140px);
    text-align: center;
}

.bf-next__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: grayscale(.3) brightness(.42) saturate(.8);
    transform: scale(1.02);
    transition: transform 1.4s var(--ease-out), filter var(--slow) var(--ease);
}

.bf-next:hover .bf-next__bg { transform: scale(1.07); filter: grayscale(0) brightness(.52) saturate(.95); }

.bf-next__title { transition: color var(--med) var(--ease); }
.bf-next:hover .bf-next__title { color: var(--verdigris); }

/* ---------------------------------------------------------------- contact -- */
.bf-field { margin-bottom: 26px; }

.bf-field__label {
    display: block;
    font-size: var(--fs-label);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
    margin-bottom: 10px;
}

.bf-input,
.bf-textarea,
.bf-select {
    width: 100%;
    padding: 14px 2px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    outline: none;
    transition: border-color var(--med) var(--ease);
}

.bf-input:focus,
.bf-textarea:focus,
.bf-select:focus { border-bottom-color: var(--verdigris); }

.bf-textarea { min-height: 130px; resize: vertical; }

.bf-select { appearance: none; cursor: pointer; }
.bf-select option { background: var(--ink-2); color: var(--on-dark); }

.bf-notice {
    border: 1px solid var(--verdigris);
    padding: 18px 22px;
    color: var(--on-dark);
    margin-bottom: 26px;
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.bf-studio-card { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 38px; }
.bf-studio-card__city { font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.bf-studio-card__addr { color: var(--on-dark-mid); white-space: pre-line; margin-top: 10px; }
.bf-studio-card__phone { margin-top: 10px; color: var(--on-dark-dim); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- footer -- */
.bf-footer {
    border-top: 1px solid var(--line);
    padding-top: clamp(52px, 7vw, 104px);
    padding-bottom: 34px;
    background: var(--ink);
}

.bf-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 72px);
    padding-bottom: clamp(44px, 6vw, 88px);
}

.bf-footer__word {
    font-family: var(--display);
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 300;
    line-height: .9;
    letter-spacing: -.02em;
    color: var(--on-dark);
}

.bf-footer__logo {
    display: block;
    width: clamp(105px, 13vw, 190px);
    height: auto;
}

.bf-footer__col .bf-label { margin-bottom: 18px; }
.bf-footer__col a,
.bf-footer__col span { display: block; color: var(--on-dark-mid); padding-block: 5px; transition: color var(--med) var(--ease); }
.bf-footer__col a:hover { color: var(--verdigris); }

.bf-footer__bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    color: var(--on-dark-dim);
    font-size: var(--fs-label);
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- reveal -- */
/* The hidden state applies only once the app has booted — `.bf-ready` is set by
   Reactor.init before the first render. If the runtime never loads, content
   renders normally instead of being trapped at opacity:0. */
.bf-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    will-change: opacity, transform;
}

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

.bf-ready [data-reveal][data-delay="1"] { transition-delay: 90ms; }
.bf-ready [data-reveal][data-delay="2"] { transition-delay: 180ms; }
.bf-ready [data-reveal][data-delay="3"] { transition-delay: 270ms; }
.bf-ready [data-reveal][data-delay="4"] { transition-delay: 360ms; }

[app] { animation: bf-app-in 700ms var(--ease-out) both; }

@keyframes bf-app-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ------------------------------------------------------------- utilities -- */
.bf-mt-s { margin-top: 18px; }
.bf-mt-m { margin-top: clamp(26px, 3vw, 46px); }
.bf-mt-l { margin-top: clamp(42px, 5vw, 78px); }
.bf-center { text-align: center; }
.bf-maxw-60 { max-width: 60ch; }
.bf-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------- light-section variants -- */
.bf-sec--paper .bf-principles { border-top-color: var(--line-light); }
.bf-sec--paper .bf-principle { border-bottom-color: var(--line-light); }
.bf-sec--paper .bf-principle:hover { background: rgba(14, 16, 15, .022); }
.bf-sec--paper .bf-principle__body { color: var(--on-light-mid); }

.bf-sec--paper .bf-post { border-bottom-color: var(--line-light); }
.bf-sec--paper .bf-post:hover { background: rgba(14, 16, 15, .022); }
.bf-sec--paper .bf-post__excerpt { color: var(--on-light-mid); }
.bf-sec--paper .bf-post__meta { color: var(--on-light-dim); }
.bf-sec--paper .bf-post__media { background: var(--paper-2); }

.bf-sec--paper .bf-card__body { border-top-color: var(--line-light); }
.bf-sec--paper .bf-card__meta { color: var(--on-light-dim); }
.bf-sec--paper .bf-card__media { background: var(--paper-2); }
.bf-sec--paper .bf-person { border-top-color: var(--line-light); }
.bf-sec--paper .bf-person__mono {
    background: linear-gradient(150deg, var(--paper-2) 0%, #DCD6C9 100%);
    border-color: var(--line-light);
    color: var(--verdigris-d);
}
.bf-sec--paper .bf-person:hover .bf-person__mono { border-color: var(--verdigris-d); color: var(--ink); }
.bf-sec--paper .bf-person__role { color: var(--on-light-dim); }
.bf-sec--paper .bf-facts,
.bf-sec--paper .bf-fact { border-color: var(--line-light); }
.bf-sec--paper .bf-fact__k { color: var(--on-light-dim); }
.bf-sec--paper .bf-fact__v { color: var(--on-light); }

/* -------------------------------------------------------------------- CTA -- */
.bf-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    padding-block: clamp(90px, 13vw, 200px);
    text-align: center;
}

.bf-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(14, 16, 15, .82) 0%, rgba(14, 16, 15, .68) 50%,
                rgba(14, 16, 15, .9) 100%);
}

.bf-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: clamp(28px, 3.4vw, 46px);
}

/* ------------------------------------------------------------ facts block -- */
.bf-quote {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.2vw, 2.7rem);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -.01em;
    max-width: 30ch;
}

.bf-quote__by {
    margin-top: 26px;
    font-size: var(--fs-label);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
}

.bf-sec--paper .bf-quote__by { color: var(--on-light-dim); }

/* Timeline for the studio page */
.bf-timeline { border-top: 1px solid var(--line-light); }
.bf-timeline__row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: clamp(16px, 3vw, 48px);
    padding-block: clamp(16px, 2vw, 26px);
    border-bottom: 1px solid var(--line-light);
    align-items: baseline;
}
.bf-timeline__year { font-size: var(--fs-label); letter-spacing: .18em; color: var(--on-light-dim); }
.bf-timeline__what { color: var(--on-light-mid); }
.bf-timeline__what strong { color: var(--on-light); font-weight: 500; }

/* ------------------------------------------------------------- motion ---- */
/* Scroll progress rail */
.bf-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 80;
    pointer-events: none;
    background: linear-gradient(90deg, var(--verdigris), var(--paper));
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

/* Parallax. Elements are deliberately over-sized so translation never exposes
   an edge of the frame they sit in. */
[data-parallax] { will-change: transform; }

.bf-card__media[data-parallax-frame] { overflow: hidden; }
.bf-card__media[data-parallax-frame] .bf-card__img {
    height: 120%;
    margin-top: -10%;
}

.bf-gallery figure[data-parallax-frame] { overflow: hidden; }
.bf-gallery figure[data-parallax-frame] img {
    height: 118%;
    margin-top: -9%;
}

.bf-split__media[data-parallax-frame] { overflow: hidden; }
.bf-split__media[data-parallax-frame] img {
    height: 118%;
    margin-top: -9%;
}

/* The main view re-mounts on every navigation, so this doubles as a page
   transition between routes. */
[body] > * { animation: bf-view-in 620ms var(--ease-out) both; }

@keyframes bf-view-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Cursor affordance over work cards — desktop pointers only. */
.bf-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    pointer-events: none;
    padding: .78em 1.15em;
    border-radius: 100px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.78);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.bf-cursor.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (hover: none), (pointer: coarse) {
    .bf-cursor { display: none; }
}

/* Project pager — where you are in the index, and how to keep moving. */
.bf-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 60px);
    padding-block: clamp(26px, 3.4vw, 48px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.bf-pager__side {
    display: flex;
    flex-direction: column;
    gap: 9px;
    /* must be able to shrink, or a long project title overflows the row */
    flex: 1 1 0;
    min-width: 0;
}
.bf-pager__side--next { align-items: flex-end; text-align: right; }
.bf-pager__middle { flex: 0 0 auto; }

.bf-pager__title {
    /* block, so a long title wraps inside the column instead of sizing to
       max-content and spilling past the edge */
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: var(--display);
    font-size: clamp(1.15rem, 1.9vw, 1.75rem);
    font-weight: 400;
    line-height: 1.15;
    transition: color var(--med) var(--ease);
}

.bf-pager__side:hover .bf-pager__title { color: var(--verdigris); }
.bf-pager__count { color: var(--on-dark-dim); font-family: var(--mono); letter-spacing: .1em; }

.bf-pager__mid {
    font-family: var(--mono);
    letter-spacing: .1em;
    color: var(--on-dark-dim);
    white-space: nowrap;
}

@media (max-width: 620px) {
    .bf-pager { flex-direction: column; align-items: flex-start; }
    .bf-pager__side--next { align-items: flex-start; text-align: left; }
}

/* ======================================================== motion system === */
/* Preloader — the logotype on the ink ground while the first frame settles. */
.bf-preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--ink);
    transition: opacity 720ms var(--ease), visibility 720ms;
}

.bf-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.bf-preloader__inner { width: min(260px, 56vw); }
.bf-preloader__logo { width: 100%; height: auto; opacity: .92; }
.bf-preloader__bar { height: 1px; background: var(--line); margin-top: 30px; overflow: hidden; }

.bf-preloader__fill {
    height: 100%;
    background: var(--paper);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 480ms var(--ease-out);
}

/* Line-mask headline reveals — type rises out of its own baseline. */
.bf-ready [data-lines] .bf-line { display: block; overflow: hidden; }
.bf-ready [data-lines] .bf-line > span {
    display: block;
    transform: translateY(115%);
    transition: transform 1150ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 95ms);
}
.bf-ready [data-lines].is-in .bf-line > span { transform: none; }

/* Image reveals — the frame opens from the bottom while the image settles. */
[data-reveal-img] { overflow: hidden; }
.bf-ready [data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 1250ms var(--ease-out); }
.bf-ready [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }
.bf-ready [data-reveal-img] img { transform: scale(1.14); transition: transform 1500ms var(--ease-out); }
.bf-ready [data-reveal-img].is-in img { transform: none; }

/* Images fade in once decoded, so nothing pops mid-transition. */
.bf-ready img[data-fade] { opacity: 0; }
img[data-fade] { transition: opacity 700ms var(--ease); }
img[data-fade].is-loaded { opacity: 1; }

/* Horizontal project index — a real, scrollable index of the whole portfolio,
   replacing an earlier auto-scrolling marquee that was unreadable (496 px/s),
   inert (nothing clickable) and hidden from screen readers. */
.bf-strip { padding-block: clamp(46px, 6vw, 92px); background: var(--ink-2); }
.bf-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 2.6vw, 38px); }

.bf-strip__scroller {
    display: flex;
    gap: clamp(12px, 1.4vw, 22px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0 var(--gutter) clamp(16px, 2vw, 26px);
    /* Without this the snapport is the scrollport, so `snap-align: start`
       drags the first card to x=0 — off the page grid and under the section
       rail, despite the container's own padding. */
    scroll-padding-left: var(--gutter);
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bf-strip__scroller::-webkit-scrollbar { display: none; }
.bf-strip__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.bf-strip__scroller.is-dragging .bf-strip__item { pointer-events: none; }

.bf-strip__item {
    flex: 0 0 clamp(168px, 19vw, 248px);
    scroll-snap-align: start;
    display: block;
}

.bf-strip__thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--graphite);
    margin-bottom: 14px;
}

.bf-strip__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) contrast(1.03) brightness(.9);
    transition: transform 1100ms var(--ease-out), filter 700ms var(--ease);
}

.bf-strip__item:hover .bf-strip__thumb img { transform: scale(1.07); filter: none; }

.bf-strip__no { color: var(--verdigris); display: block; margin-bottom: 10px; }
.bf-strip__title {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.02rem, 1.35vw, 1.3rem);
    font-weight: 400;
    line-height: 1.16;
    transition: color var(--med) var(--ease);
}
.bf-strip__item:hover .bf-strip__title { color: var(--verdigris); }
.bf-strip__loc { display: block; margin-top: 7px; color: var(--on-dark-dim); }

.bf-strip__item:focus-visible { outline: 1px solid var(--verdigris); outline-offset: 4px; }

@media (max-width: 620px) {
    .bf-strip__item { flex: 0 0 74vw; }
}

/* Pinned featured work — the home page's signature scroll moment. */
.bf-feature { position: relative; background: var(--ink); min-height: 100svh; }
.bf-feature__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.bf-feature__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms var(--ease);
}
.bf-feature__slide.is-active { opacity: 1; }

.bf-feature__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.05) brightness(.72);
}
.bf-feature__slide.is-active .bf-feature__img { animation: bf-slow-zoom 8s var(--ease-out) both; }
@keyframes bf-slow-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.bf-feature__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,16,15,.72) 0%, rgba(14,16,15,.12) 38%, rgba(14,16,15,.88) 100%);
}

.bf-feature__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(40px, 5vw, 76px);
}

.bf-feature__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding-bottom: clamp(112px, 12vw, 168px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease-out);
    z-index: 2;
}

.bf-feature__caption.is-active { opacity: 1; transform: none; }

.bf-feature__bar {
    position: absolute;
    inset: auto 0 0 0;
    padding-bottom: clamp(34px, 4vw, 56px);
    z-index: 3;
    border-top: 1px solid var(--line);
    padding-top: clamp(18px, 2vw, 26px);
    background: linear-gradient(180deg, rgba(14,16,15,0) 0%, rgba(14,16,15,.55) 100%);
}

.bf-feature__title {
    font-family: var(--display);
    font-size: clamp(2rem, 5.6vw, 5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.015em;
}

/* Vertical progress rail for the pinned section */
.bf-feature__rail {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.bf-feature__dot {
    width: 26px;
    height: 2px;
    background: rgba(242, 239, 232, .3);
    transition: background 500ms var(--ease), width 500ms var(--ease);
}
.bf-feature__dot.is-on { background: var(--paper); width: 42px; }

@media (max-width: 900px) {
    .bf-feature__rail { display: none; }
}

/* Section rail — the current page's chapters. Rendered inside the page view,
   not the persistent widget, so it cannot outlive the page it describes.
   Kept narrow enough to sit inside the content gutter without colliding. */
.bf-rail {
    position: fixed;
    left: clamp(12px, 1.1vw, 20px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 13px;
    pointer-events: none;
}

.bf-rail:empty { display: none; }

.bf-rail__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    color: var(--on-dark-dim);
    opacity: .4;
    transition: opacity 500ms var(--ease), color 500ms var(--ease);
}

.bf-rail__item.is-on { opacity: 1; color: var(--on-dark); }
.bf-rail__line { width: 13px; height: 1px; background: currentColor; transition: width 500ms var(--ease); }
.bf-rail__item.is-on .bf-rail__line { width: 22px; }

/* Below this width the gutter is too narrow to keep the rail off the content */
@media (max-width: 1280px) { .bf-rail { display: none; } }

/* Route change: sections lift in sequence */
[body] > * { animation: bf-view-in 700ms var(--ease-out) both; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
    .bf-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bf-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .bf-footer__top > :first-child { grid-column: span 2; }
}

@media (max-width: 980px) {
    .bf-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-nav { display: none; }
    .bf-burger { display: block; }

    .bf-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .bf-head__aside { justify-self: start; text-align: left; }

    .bf-card--wide,
    .bf-card--narrow,
    .bf-card--half { grid-column: span 12; }
    .bf-card--offset { margin-top: 0; }

    .bf-pagehead__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .bf-pagehead__meta { justify-content: flex-start; }

    .bf-split { grid-template-columns: minmax(0, 1fr); }

    .bf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .bf-principle { grid-template-columns: 60px minmax(0, 1fr); }
    .bf-principle__body { grid-column: 2; }

    .bf-award { grid-template-columns: 74px minmax(0, 1fr); }
    .bf-award__body { grid-column: 2; }

    .bf-post { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
    .bf-post__meta { grid-column: 2; text-align: left; margin-top: 12px; }

    .bf-gallery figure.span-6,
    .bf-gallery figure.span-7,
    .bf-gallery figure.span-5 { grid-column: span 12; }
}

@media (max-width: 620px) {
    .bf-services { grid-template-columns: minmax(0, 1fr); }
    .bf-stats { grid-template-columns: minmax(0, 1fr); }
    .bf-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-spec { grid-template-columns: minmax(0, 1fr); }
    .bf-post { grid-template-columns: minmax(0, 1fr); }
    .bf-post__media { aspect-ratio: 16 / 9; }
    .bf-post__meta { grid-column: 1; }
    .bf-fact { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .bf-footer__top { grid-template-columns: minmax(0, 1fr); }
    .bf-footer__top > :first-child { grid-column: span 1; }
}

/* ---------------------------------------------------- people / play / careers --
   These three pages render an empty state until their data slots are filled, so
   the layouts below only ever apply once real records exist. They are written
   now so the data drops straight in. */
.bf-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: clamp(26px, 3vw, 46px);
    margin-top: clamp(26px, 3vw, 42px);
}

.bf-person__media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--line);
    margin-bottom: 18px;
}

.bf-person__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bf-person__name {
    font-family: var(--display);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 400;
    line-height: 1.2;
}

.bf-person__bio {
    margin-top: 12px;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink-mid);
}

.bf-play {
    display: grid;
    gap: clamp(30px, 4vw, 60px);
}

.bf-play__link {
    display: grid;
    gap: clamp(18px, 2.4vw, 34px);
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .bf-play__link { grid-template-columns: 1.15fr 1fr; align-items: center; }
    .bf-play__item:nth-child(even) .bf-play__link { direction: rtl; }
    .bf-play__item:nth-child(even) .bf-play__link > * { direction: ltr; }
}

.bf-play__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--line);
}

.bf-play__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bf-play__kind {
    position: absolute;
    left: 14px;
    bottom: 12px;
    color: var(--on-dark);
    background: rgba(0, 0, 0, .45);
    padding: 5px 10px;
}

.bf-play__title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 300;
    line-height: 1.2;
}

.bf-play__excerpt {
    margin-top: 12px;
    line-height: 1.65;
    color: var(--ink-mid);
}

.bf-openings {
    display: grid;
    gap: clamp(20px, 2.4vw, 34px);
}

.bf-opening {
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line);
}

.bf-opening__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 14px;
}

.bf-opening__title {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 400;
    line-height: 1.2;
}

.bf-opening__body { line-height: 1.65; color: var(--ink-mid); max-width: 70ch; }

/* -------------------------------------------------------------- manifesto --
   One statement at a time. The stack is a single-cell grid rather than absolute
   positioning, so the section sizes to the LONGEST statement instead of
   collapsing to whichever one is showing. Inactive items keep their place and
   fade; nothing is removed from the flow. */
.bf-manifesto {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(90px, 13vw, 190px) 0 clamp(70px, 9vw, 130px);
}

.bf-manifesto__stack {
    display: grid;
    min-height: clamp(190px, 24vw, 300px);
}

.bf-manifesto__item {
    grid-area: 1 / 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 2.6vw, 34px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease), visibility 700ms;
}

.bf-manifesto__item.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.bf-manifesto__text {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.5vw, 3.1rem);
    font-weight: 300;
    line-height: 1.24;
    letter-spacing: -0.01em;
    max-width: 30ch;
}

.bf-manifesto__text::before { content: "\201C"; }
.bf-manifesto__text::after { content: "\201D"; }

.bf-manifesto__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 26px;
}

/* Reserved whether or not a statement is attributed, so the link does not
   shuffle sideways between slides. An empty <cite> simply takes no space. */
.bf-manifesto__foot cite:empty { display: none; }

.bf-manifesto__link {
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--verdigris);
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: opacity var(--med) var(--ease);
}

.bf-manifesto__link:hover { opacity: .65; }

.bf-manifesto__dots {
    display: flex;
    gap: 10px;
    margin-top: clamp(34px, 4vw, 56px);
}

.bf-manifesto__dot {
    width: 34px;
    height: 2px;
    padding: 0;
    border: 0;
    background: var(--line);
    cursor: pointer;
    transition: background var(--med) var(--ease);
}

.bf-manifesto__dot.is-on { background: var(--verdigris); }

/* Motion off. Two ways in: the OS preference, or the nav's Motion toggle, which
   sets data-motion="off" on <html> and persists in localStorage. Both need the
   same rules, because collapsing a transition is not the same as removing the
   state change that depended on it — the hero crossfade ends on opacity:0, so
   without pinning the first frame every slide would end up invisible. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }

    .bf-hero__slide { animation: none !important; opacity: 0 !important; }
    .bf-hero__slide:first-child { opacity: 1 !important; }
}

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
}

html[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }

html[data-motion="off"] .bf-hero__slide { animation: none !important; opacity: 0 !important; }
html[data-motion="off"] .bf-hero__slide:first-child { opacity: 1 !important; }

