/* Self-hosted fonts (latin subset) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/playfair-display-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/playfair-display-latin-500-italic.woff2') format('woff2'); }

/* bfsilva.com — colour tokens: "Ink & Clay" (chosen Nov 2026; replaces the original navy/peach).
   Warm near-black ground, warm off-white text, clay accent. Single dark theme. All text passes WCAG AA (scripted audit). */
:root {
  --paper: #0F0F10;        /* page background */
  --surface: #1D1D1F;      /* cards, secondary buttons */
  --tint: #161617;         /* alternate section background */
  --ink: #FFFFFF;
  --muted: #FFFFFF;          /* all text is pure white (hierarchy comes from size and weight) */
  --line: rgba(242, 238, 232, .12);
  --shadow-1: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -6px rgba(0, 0, 0, .45);
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(0, 0, 0, .35), 0 20px 44px -10px rgba(0, 0, 0, .6);
  --accent: #E07A52;       /* clay */
  --accent-ink: #0F0F10;
  --accent-soft: rgba(224, 122, 82, .14);
  --band: #1D1D1F;
  --band-ink: #FFFFFF;
  --band-muted: #FFFFFF;
  --raised: #222225;       /* menus, popovers */
  --surface-hover: #29292C;
  --shape-2: #3A3A3E;      /* triangle */
  --shape-4: #CFC6B8;      /* half circle */
  color-scheme: dark;
}
:root {

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-read: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --s-xs: .875rem; --s-sm: 1rem; --s-md: 1.0625rem; --s-lg: 1.3125rem;
  --s-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --s-2xl: clamp(2.1rem, 1.2rem + 3.4vw, 4.4rem);
  --s-3xl: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  --r: 10px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s-md)/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-variant-numeric: lining-nums; /* Playfair defaults to old-style figures, which wobble in metrics */
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Type rule: the serif (Playfair) is a display face — only at ~24px and up. Smaller headings and running text use the sans. */
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
h3 { font-family: var(--f-body); font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.card h3, .pillar h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label {
  font: 600 .875rem/1.4 var(--f-body); letter-spacing: .01em; color: var(--accent);
}
.muted { color: var(--muted); }
.ico { width: 1em; height: 1em; flex: none; transition: transform .2s ease; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.35em; border-radius: var(--r);
  font: 600 1rem/1 var(--f-body); letter-spacing: .005em; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover .ico, .link-more:hover .ico, .card__link:hover .card__cta .ico, .next a:hover .ico { transform: translateX(3px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--surface); color: var(--accent); }
.btn--ghost { color: var(--accent); background: var(--surface); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn--sm { padding: .7em 1.1em; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark { font: 700 1.35rem/1 var(--f-body); letter-spacing: .02em; color: var(--ink); }
.brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: var(--s-sm); position: relative; }
.nav ul a[aria-current="page"] { color: var(--accent); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; }
.menu-btn__bars { position: relative; width: 22px; height: 14px; display: block; }
.menu-btn__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-mid) var(--ease); }
.menu-btn__bars i:nth-child(1) { top: 0; } .menu-btn__bars i:nth-child(2) { top: 6px; } .menu-btn__bars i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .brand__name { font-size: var(--s-sm); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - 68px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 68px - env(safe-area-inset-top, 0px));
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 0; font-size: var(--s-xl, 1.5rem); border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: auto; width: 100%; justify-content: center; text-align: center; min-height: 54px; font-size: var(--s-md, 1rem); }
  body.menu-open { overflow: hidden; }
  body.menu-open .top { background: var(--paper); backdrop-filter: none; }
}

/* ---------- hero (home) */
/* Fills the screen below the header on any device; content sits in the vertical centre, stacked. */
.hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: calc(100vh - 69px - env(safe-area-inset-top, 0px));
  min-height: calc(100svh - 69px - env(safe-area-inset-top, 0px));
  padding-block: clamp(40px, 6vh, 96px);
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vh, 40px); }
.hero__title { color: var(--accent); font-size: var(--s-3xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; max-width: 22ch; }
.rotator { display: inline-grid; position: relative; padding-bottom: .22em; vertical-align: top; }
/* Every phrase sits invisibly in the same cell, so the box always has the height of the longest one: nothing below moves. */
.rotator__size, .rotator em { grid-area: 1 / 1; }
.rotator__size { visibility: hidden; }
.rotator em { font: inherit; font-style: normal; color: var(--accent); }
.rotator em::after { content: ""; display: inline-block; width: .06em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__side { display: grid; gap: 28px; max-width: 40rem; }
.hero__lead { font-size: var(--s-lg); line-height: 1.5; color: var(--muted); }

/* ---------- sections */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec--tight { padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.sec--tint { background: var(--tint); }
.sec--line { border-block: 1px solid var(--line); }
/* No hairline where the background already changes (tint / band neighbours) */
:is(.sec--tint, .band) + :is(.sec--line, .statement) { border-top: 0; }
:is(.sec--line, .statement):has(+ :is(.sec--tint, .band)) { border-bottom: 0; }
.sec-head { display: grid; gap: 14px; max-width: 46rem; }
.sec-head h2 { color: var(--accent); font-size: var(--s-2xl); }
.sec-head__sub { color: var(--muted); font-size: var(--s-md); line-height: 1.7; max-width: 60ch; }
.sec-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec > .wrap > .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.link-more { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; white-space: nowrap; }
.split { display: grid; gap: 40px; }
.split > * { min-width: 0; }
.split > .sec-head { margin-bottom: 0 !important; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }

.page-hero { padding-block: clamp(56px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-hero .wrap { display: grid; gap: 20px; }
.page-hero h1 { color: var(--accent); font-size: var(--s-3xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; max-width: 16ch; }
.page-hero__lead { font-size: var(--s-lg); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.page-hero--contact .email { margin-top: 16px; }

/* ---------- image frames (with a graceful placeholder if an image is missing) */
.shot__frame {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--tint);
  box-shadow: var(--shadow-1); aspect-ratio: 16 / 10; max-width: 100%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.shot__frame img, .shot__frame video { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; background: var(--surface); }
.shot__frame::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font: 500 var(--s-xs)/1.3 var(--f-mono); color: var(--muted); letter-spacing: .06em;
}
.shot { margin: 0; }
.shot--wide .shot__frame { aspect-ratio: auto; min-height: 180px; }
.shot--wide .shot__frame img { height: auto; object-fit: contain; }
.shot--hero .shot__frame { aspect-ratio: 21 / 9; }
.shot--portrait .shot__frame { aspect-ratio: 4 / 5; }
.shot--locked .shot__frame { display: grid; place-items: center; background-color: var(--accent-soft); }
.lock { font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .08em; color: var(--accent);
  border: 1px dashed var(--accent); padding: 10px 14px; border-radius: 999px; position: relative; z-index: 1; background: var(--surface); }

/* ---------- project cards */
.cards { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 820px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card { min-width: 0; }
.card__link { height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.card__link:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); background: var(--surface-hover); }
/* image and text are one object: the frame bleeds to the card edges, text sits inside */
.card .shot { margin: 0; }
.card .shot__frame { border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .card__link:hover { transform: none; } }
.card__link:hover { color: inherit; }
.card__link:hover .shot__frame img { transform: scale(1.025); }
.card .shot__frame img { transition: transform .5s ease; }
.card__body { display: grid; gap: 10px; align-content: start; flex: 1; padding: clamp(20px, 2.4vw, 32px); }
.card__meta { font: 500 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); letter-spacing: .06em; display: flex; gap: 12px; }
.idx { color: var(--accent); }
.card h3 { font-size: var(--s-xl); }
.card__sum { color: var(--muted); }
.card__cta { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; margin-top: 8px; }

/* ---------- about intro */
.intro { display: grid; gap: 48px; }
.intro__text { display: grid; gap: 18px; align-content: start; max-width: 40rem; }
.intro__text h2 { color: var(--accent); font-size: var(--s-2xl); margin-bottom: 4px; }
.intro__text > p:not(.label) { color: var(--muted); }
.intro__text .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font: 500 var(--s-2xl)/1 var(--f-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stats dt { font: 500 var(--s-xs)/1.35 var(--f-mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- approach pillars: no boxes; staggered blocks, one figure each */
.pillars { display: grid; gap: 64px; }
.pillar { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.pillar__art { width: 100%; height: auto; overflow: visible; }
.pillar__art .shape { fill: var(--shape); }
.pillar--1 { --shape: color-mix(in srgb, var(--accent) 16%, transparent); }   /* peach, very soft */
.pillar--2 { --shape: var(--surface); }                    /* secondary navy */
.pillar--3 { --shape: rgba(255, 255, 255, .07); }   /* white haze */
.pillar--4 { --shape: color-mix(in srgb, var(--shape-4) 12%, transparent); }   /* cream from the original palette */
.pillar__body { display: grid; gap: 10px; max-width: 34ch; }
.pillar h3 { font-size: var(--s-xl); }
.pillar__body > p:last-child { color: var(--muted); }
@media (min-width: 760px) {
  .pillars { grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 8vw, 120px); row-gap: 96px; }
  .pillar { grid-template-columns: 1fr; gap: 28px; }
  .pillar__art { width: 128px; }
  .pillar:nth-child(even) { margin-top: 120px; }           /* staggered rhythm, not a grid of equals */
  .pillar:nth-child(3) { margin-top: -40px; }
  .pillar--2 .pillar__art, .pillar--4 .pillar__art { width: 112px; }
}
@media (min-width: 1100px) {
  .pillars { grid-template-columns: 1fr 1fr 1fr 1fr; column-gap: 48px; row-gap: 0; }
  .pillar:nth-child(n) { margin-top: 0; }
  .pillar--2 { margin-top: 96px !important; } .pillar--3 { margin-top: 32px !important; } .pillar--4 { margin-top: 128px !important; }
  .pillar__art { width: 140px; }
  .pillar--2 .pillar__art, .pillar--4 .pillar__art { width: 120px; }
}

/* ---------- clients */
/* Logo wall: 3×3 hairline grid, every cell the same size, each logo sized optically (--h from content.mjs) */
.logos { --k: .72; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.logos li { background: transparent; }
.logos a { display: grid; place-items: center; height: clamp(72px, 8vw, 104px); padding: 0 16%; }
.logos img { height: calc(var(--h) * var(--k)); width: auto; max-width: 100%; object-fit: contain; opacity: .82; }
@media (max-width: 900px) { .logos { --k: .62; } }
@media (max-width: 560px) { .logos { --k: .5; } .logos a { padding: 0 10%; height: 64px; } }

/* ---------- testimonials */
/* Testimonials slider: native scroll-snap (swipe, trackpad), arrows, dots, keyboard */
.slider { display: grid; gap: 24px; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-block: 4px 36px; margin-block: -4px -36px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slider .slide blockquote, .slider .slide figcaption { align-content: start; }
/* .slider prefix: must beat the later .quote rules */
.slider .slide { scroll-snap-align: start; min-width: 0; border: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
@media (min-width: 900px) {
  .slider .slide { display: grid; grid-template-columns: minmax(0, 62ch) minmax(200px, 1fr); justify-content: space-between; align-items: end; gap: clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 72px); }
  .slider .slide blockquote { align-self: start; }
  .slider .slide figcaption { border-top: 0; padding-top: 0; border-left: 2px solid var(--accent); padding-left: 16px; }
}
.slider__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slider__count { font: 500 var(--s-sm)/1 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.slider__count span { color: var(--ink); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: pointer;
  transition: width var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.slider__dots button[aria-current="true"] { width: 28px; background: var(--accent); }
.slider__nav { display: flex; gap: 8px; }
.slider__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--accent); transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease); }
.slider__btn:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.slider__btn:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .slider__track { scroll-behavior: auto; } }
.quote { margin: 0; background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; }
.quote blockquote { margin: 0; display: grid; gap: 16px; font: 400 clamp(1.1875rem, 1.12rem + .3vw, 1.3125rem)/1.7 var(--f-body); color: var(--ink); }
.quote blockquote p:first-child { font: 400 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.4 var(--f-read); color: var(--ink); letter-spacing: -.005em; }
.quote blockquote p:first-child::before { content: "“"; color: var(--accent); }
.quote figcaption { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 16px; }
.quote figcaption span { color: var(--muted); font-size: var(--s-sm); }

/* ---------- schools */
.schools { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.schools a, .schools .school { display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; align-content: center; gap: 14px; height: 100%; padding: 20px 8px; text-decoration: none; text-align: center; }
.schools img { width: auto; max-width: 80%; object-fit: contain; }
.schools span { font-weight: 700; font-size: var(--s-md); letter-spacing: -.01em; }
.schools small { font-size: var(--s-sm); font-weight: 500; color: var(--muted); }

/* ---------- dark band / contact */
.band { background: var(--band); color: var(--band-ink); }
.band__inner { padding-block: clamp(72px, 10vw, 140px); display: grid; gap: 20px; }
.band .label { color: var(--band-muted); }
.band__title { color: var(--accent); font-size: var(--s-3xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; max-width: 16ch; }
.band__lead { color: var(--band-muted); font-size: var(--s-lg); max-width: 42rem; line-height: 1.55; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
.email__addr { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; overflow-wrap: anywhere; transition: color var(--t-mid) var(--ease); }
.email__addr:hover { color: var(--accent); }
.email--big .email__addr { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); letter-spacing: 0; line-height: 1.4; }
.email__copy { font: 600 var(--s-xs)/1 var(--f-mono); letter-spacing: .08em; color: inherit;
  background: transparent; border: 1px solid currentColor; opacity: .75; padding: 9px 12px; border-radius: var(--r); cursor: pointer; }
.email__copy:hover { opacity: 1; }
.band .email__addr:hover { color: var(--band-ink); }

/* ---------- statement */
.statement { padding-block: clamp(64px, 9vw, 128px); border-block: 1px solid var(--line); }
.statement p { font: 400 var(--s-2xl)/1.18 var(--f-read); letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
.statement em { color: var(--accent); }

/* ---------- services */
.grid3 { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r); padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.tile h3 { font-size: var(--s-lg); }
.tile p { color: var(--muted); font-size: clamp(1.125rem, 1.08rem + .2vw, 1.1875rem); line-height: 1.7; }
.tile--line { background: transparent; }
.fine { margin-top: 24px; color: var(--muted); font-style: italic; font-family: var(--f-read); font-size: 1.375rem; line-height: 1.45; }
.expect { display: grid; border-top: 1px solid var(--line); }
.expect div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .expect div { grid-template-columns: 14rem 1fr; gap: 24px; } }
.expect dt { font-weight: 700; }
.expect dd { color: var(--muted); }
.process { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(5, 1fr); } }
.process li { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 24px 20px 28px; display: grid; gap: 10px; align-content: start; position: relative; }
.process__n { font: 500 var(--s-xs)/1 var(--f-mono); color: var(--accent); }
.process h3 { font-size: var(--s-lg); }
.process p { color: var(--muted); font-size: var(--s-sm); }

/* ---------- about */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } .about .shot { position: sticky; top: 100px; } }
.prose--plain h2 { font-size: var(--s-xl); margin-bottom: 20px; }
.lede { font: 400 clamp(1.3125rem, 1.2rem + .4vw, 1.5rem)/1.55 var(--f-body); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1.5px; background: var(--accent); }
.ticks--lg { margin-top: 16px; border-top: 1px solid var(--line); gap: 0; }
.ticks--lg li { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: var(--s-lg); line-height: 1.35; padding-left: 32px; }
.ticks--lg li::before { top: 1.45em; }

/* ---------- case study */
.case-hero { padding-block: clamp(32px, 5vw, 64px) 0; display: grid; gap: 40px; }
.case-hero .wrap:first-child { display: grid; gap: 20px; }
.case-hero h1 { color: var(--accent); font-size: var(--s-3xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; max-width: 18ch; }
.back { font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .08em; text-decoration: none; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .02em; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chips li:first-child { border-color: var(--accent); color: var(--accent); }
.case-body { display: grid; gap: 48px; padding-block: clamp(48px, 6vw, 88px); }
.case-body > * { min-width: 0; }

.case-facts { padding-top: clamp(28px, 3.5vw, 44px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 20px 32px; }
.facts div { display: grid; gap: 6px; align-content: start; }
.facts dd { font-size: var(--s-sm); line-height: 1.5; }
.tags { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--s-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.prose { display: grid; gap: 56px; max-width: 46rem; }
.case .prose { gap: clamp(72px, 9vw, 128px); }
.case .prose { margin-inline: auto; width: 100%; }
/* Case images follow the text column width; only images marked `full: true` (or a step `showcase`) go edge to edge */
.prose > section { display: grid; gap: 16px; }
.prose h2 { font-size: var(--s-xl); }
.prose p, .prose li { font-size: clamp(1.1875rem, 1.12rem + .3vw, 1.3125rem); line-height: 1.7; }
.prose strong, .tile p strong, .lede strong { font-weight: 700; color: var(--ink); }
.prose--plain { gap: 18px; }
.prose--plain > p:not(.lede) { color: var(--muted); }
.case .prose > section > p, .case .prose .step > p { color: var(--ink); }
.kicker { font: italic 400 clamp(1.5rem, 1.35rem + .5vw, 1.75rem)/1.4 var(--f-read); opacity: 1 !important; }
.tldr { border-left: 2px solid var(--accent); padding-left: clamp(16px, 3vw, 28px); }
.tldr__text { font: 500 clamp(1.125rem, 1.05rem + .3vw, 1.25rem)/1.65 var(--f-body); color: var(--ink); }
.steps { gap: 28px !important; }
.case .steps { gap: clamp(40px, 5vw, 64px) !important; }
.case .step { padding-top: clamp(32px, 4vw, 48px); }
.step { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.step h3 { font-size: var(--s-lg); display: flex; gap: 14px; align-items: baseline; }
.step__n { font: 500 var(--s-xs)/1 var(--f-mono); color: var(--accent); }
.rao { display: grid; gap: 14px; }
.rao div { display: grid; gap: 6px; }
@media (min-width: 640px) { .rao div { grid-template-columns: 7.5rem 1fr; gap: 16px; } .rao dt { padding-top: .3em; } }
.result { display: grid; gap: 6px; background: var(--accent-soft); border-radius: 8px; padding: 14px 16px; opacity: 1 !important; }
.result .label { color: var(--accent); }
.pull { display: grid; gap: 8px; }
.pull li { font: italic 400 1.5rem/1.45 var(--f-read); color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.metrics div { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 22px 20px; display: grid; gap: 6px; align-content: start; }
.metrics__v { white-space: nowrap; font: 500 clamp(2rem, 1.3rem + 2.2vw, 3.4rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.metrics dt { font-weight: 700; }
.metrics__d { font-size: var(--s-sm); color: var(--muted); }
.note { font: 400 var(--s-sm)/1.5 var(--f-mono); color: var(--muted) !important; opacity: 1 !important; }
.callout { font: italic 400 1.5rem/1.45 var(--f-read); opacity: 1 !important; }
.live { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r); padding: 28px; display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.live > div { display: grid; gap: 10px; max-width: 30rem; }
.live p { color: var(--muted); }
.next { padding-bottom: clamp(56px, 7vw, 96px); }
.next a { display: grid; gap: 10px; padding-top: 32px; border-top: 1px solid var(--line); text-decoration: none; }
.next__title { font-size: var(--s-2xl); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; display: inline-flex; align-items: center; gap: .3em; flex-wrap: wrap; }

.legal { gap: 40px; }
.legal > p { color: var(--muted); }

/* ---------- case-study diagrams */
.prose > *, .steps > *, .case-body > * { min-width: 0; }
.diagram { margin: 0; }
.diagram__scroll { overflow-x: auto; background: var(--tint); border-radius: var(--r); padding: clamp(16px, 3vw, 28px); }
.diagram svg { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--f-body); }
.diagram text { font-size: 13px; fill: var(--ink); }
.dg-label { font-size: 13px; font-weight: 600; fill: var(--muted) !important; }
.dg-label--ac, .dg-note--ac { fill: var(--accent) !important; }
.dg-note { font-size: 12px; fill: var(--muted) !important; }
.dg-box rect { fill: rgba(255, 255, 255, .06); }
.dg-box--sb rect { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.dg-box--live rect { fill: var(--accent); }
.dg-box--live text { fill: var(--accent-ink); font-weight: 600; }
.dg-arrow, .dg-loop { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.25; }
.dg-loop { stroke-dasharray: 4 4; }
.dg-loop--ac, .dg-patch { stroke: var(--accent); stroke-dasharray: none; fill: none; stroke-width: 1.25; }
.dg-head { fill: rgba(255, 255, 255, .5); }
.dg-head-ac { fill: var(--accent); }
.dg-plane--live { fill: var(--surface); }
.dg-plane--sb { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.dg-page rect:first-child { fill: rgba(255, 255, 255, .06); }
.dg-slot { fill: var(--accent); opacity: .75; }

/* ---------- footer */
.foot { padding-block: 56px 32px; font-size: var(--s-sm); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot__grid > * { display: grid; gap: 10px; align-content: start; min-width: 0; }
.foot__grid ul { display: grid; gap: 6px; }
.foot__grid a { text-decoration: none; overflow-wrap: anywhere; }
.foot__grid a:hover { text-decoration: underline; }
.foot__name { font-weight: 700; font-size: var(--s-md); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }


/* ---------- career timeline (About): one line, one dot per year */
.btn__meta { font: 700 .75rem/1 var(--f-body); letter-spacing: .04em; }
/* Career: company-first list, years secondary */
.xp { display: grid; gap: 56px; }
@media (min-width: 900px) { .xp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; } }
.xp__list { list-style: none; display: grid; gap: 22px; padding: 0; }
.xp__row { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.xp__mark { object-fit: cover; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--raised); box-shadow: var(--shadow-1); font: 700 .6875rem/1 var(--f-body); letter-spacing: .02em; color: var(--ink); }
.xp__line { font-size: var(--s-md); line-height: 1.35; }
.xp__co { font-weight: 600; color: var(--ink); }
.xp__role { color: var(--muted); }
.xp__years { font-size: var(--s-xs); color: var(--muted); margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.xp__label { margin: 0 0 20px; font-size: var(--s-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xp__side .xp__label:not(:first-child), .xp__label--sub { margin-top: 48px; }
.edu .xp__row { align-items: start; }
.edu__t { font-weight: 600; color: var(--ink); line-height: 1.4; }
.edu__s { font-size: var(--s-sm); color: var(--muted); }
.xp__earlier { color: var(--muted); font-size: var(--s-sm); line-height: 1.6; }


/* =====================================================================
   MOTION — one curve, three durations. Quiet by default, never blocking.
   ===================================================================== */
:root {
  --ease: cubic-bezier(.2, .7, .2, 1);      /* soft decelerate, used everywhere */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms; --t-mid: 420ms; --t-slow: 700ms;
}

/* Page-to-page: cross-fade, header stays put (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* First paint: hero and page titles settle in, staggered */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero__eyebrow, .hero__title, .hero__side,
.page-hero .wrap > *, .case-hero .wrap:first-child > * {
  animation: rise var(--t-slow) var(--ease) both;
}
.hero__title { animation-delay: 80ms; }
.hero__side { animation-delay: 220ms; }
.page-hero .wrap > :nth-child(2), .case-hero .wrap:first-child > :nth-child(2) { animation-delay: 70ms; }
.page-hero .wrap > :nth-child(3), .case-hero .wrap:first-child > :nth-child(3) { animation-delay: 140ms; }
.page-hero .wrap > :nth-child(n+4), .case-hero .wrap:first-child > :nth-child(n+4) { animation-delay: 210ms; }
.case-hero .shot--hero { animation: rise var(--t-slow) var(--ease) 260ms both; }
.hero__side { border-top-color: transparent; position: relative; }
.hero__side::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform-origin: left; animation: draw 900ms var(--ease) 380ms both; }
@keyframes draw { from { transform: scaleX(0); } }

/* Blueprint circles: a slow drift tied to scroll (set by JS) */
.hero__art { transform: translate3d(0, calc(var(--py, 0px) * -.6), 0); }

/* Scroll reveals: only elements below the fold at load get .rv (see main.js) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0ms); }

/* Header: always fixed; a soft shadow (no hairline) separates it once content scrolls under it */
.top { transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.top.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 30px -12px rgba(0, 0, 0, .6); }

/* Back to top */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px) + 16px); bottom: max(16px, env(safe-area-inset-bottom, 0px) + 16px); z-index: 19;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; text-decoration: none;
  background: var(--raised); color: var(--accent); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--accent-ink); }
.totop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 900px) { .totop { right: 32px; bottom: 32px; } }

/* Reading progress (case studies) */
.progress { position: fixed; z-index: 40; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 2px; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity var(--t-mid) var(--ease); pointer-events: none; }
.case-page .progress { opacity: 1; }

/* Nav: underline grows from the left */
.nav ul a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-mid) var(--ease); }
.nav ul a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav ul a { transition: color var(--t-fast) var(--ease); }
@media (max-width: 760px) {
  .nav.is-open { animation: menu-in var(--t-mid) var(--ease) both; }
  .nav.is-open li { animation: rise var(--t-mid) var(--ease) both; }
  .nav.is-open li:nth-child(2) { animation-delay: 40ms; } .nav.is-open li:nth-child(3) { animation-delay: 80ms; } .nav.is-open li:nth-child(4) { animation-delay: 120ms; }
  .nav ul a::before { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Buttons and links: small, physical responses */
.btn { transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(.97); }
.ico { transition: transform var(--t-mid) var(--ease); }
a { transition: color var(--t-fast) var(--ease); }

/* Project cards: image eases in, title warms to peach */
.card .shot__frame img { transition: transform 900ms var(--ease); }
.card h3 { transition: color var(--t-mid) var(--ease); }
.card__link:hover h3 { color: var(--accent); }

/* Lists: rows nudge right on hover */
.schools a, .next__title { transition: transform var(--t-mid) var(--ease), color var(--t-fast) var(--ease); }
.schools a:hover { transform: translateY(-3px); }

/* Logos: lift to full white, cell warms slightly */
.logos img { transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.logos a:hover img, .logos a:focus-visible img { opacity: 1; transform: scale(1.04); }

/* Tiles: border warms on hover, no jump */
.tile, .process li, .metrics > div, .quote { transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.tile:hover { background-color: var(--surface-hover); box-shadow: var(--shadow-2); }
.process li:hover { background-color: var(--surface-hover); box-shadow: var(--shadow-2); }

/* Timeline: the line draws, then the dots arrive in order */

/* Approach shapes: settle in when revealed; turn slightly on hover */
.pillar__art .shape { transform-box: fill-box; transform-origin: center; transition: transform 900ms var(--ease); }
.pillar.rv .pillar__art .shape { transform: scale(.82); opacity: 0; }
.pillar.rv.in .pillar__art .shape { transform: none; opacity: 1; transition: transform 1000ms var(--ease) calc(var(--d, 0ms) + 120ms), opacity 700ms var(--ease) calc(var(--d, 0ms) + 120ms); }
.pillar:hover .pillar__art .shape { transform: rotate(-8deg); }
.pillar--1:hover .pillar__art .shape { transform: scale(1.05); }

/* Email copy feedback */
.email__copy { transition: opacity var(--t-fast) var(--ease), background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.email__copy.is-done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); opacity: 1; }


/* =====================================================================
   BFS_D SHAPES — one shape and tone per principle / project
   ===================================================================== */
.shp { display: inline-block; flex: none; overflow: visible; }
.shp > * { fill: var(--shp); }
.shp--circle { --shp: var(--accent); }
.shp--triangle { --shp: var(--shape-2); }
.shp--square { --shp: rgba(255, 255, 255, .16); }
.shp--half { --shp: var(--shape-4); }
.shp--diamond { --shp: color-mix(in srgb, var(--accent) 55%, var(--paper)); }
.shp--hex { --shp: color-mix(in srgb, var(--shape-4) 60%, var(--paper)); }
.shp--glyph { width: 12px; height: 12px; margin-right: 2px; }
.shp--lg { width: .7em; height: .7em; margin-right: .35em; }

/* Hero: text left, composition right */
.hero__text { display: grid; gap: clamp(24px, 4vh, 40px); min-width: 0; }
.hero__art { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 300px; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); }
  .hero__art { aspect-ratio: 1; max-height: none; max-width: 560px; justify-self: end; }
}
.hart { position: absolute; left: 0; top: 0; width: calc(var(--s, 30) * 1%); aspect-ratio: 1;
  transform: translate(calc(var(--x, 0) * 1cqw), calc(var(--y, 0) * 1cqh)) rotate(calc(var(--r, 0) * 1deg));
  transition: transform 1400ms var(--ease), width 1400ms var(--ease); }
.hero__art { container-type: size; }
.hart__p { width: 100%; height: 100%; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform 600ms var(--ease); }
.hart .shp { width: 100%; height: 100%; display: block; }
.hart--circle .shp > * { fill: var(--accent); }
.hart--triangle .shp > * { fill: var(--shape-2); }
.hart--square .shp > * { fill: rgba(255, 255, 255, .1); }
.hart--half .shp > * { fill: var(--shape-4); opacity: .92; }
.hart--square { z-index: 0; } .hart--triangle { z-index: 1; } .hart--circle { z-index: 2; } .hart--half { z-index: 3; }
@keyframes hart-in { from { opacity: 0; transform: translate(calc(var(--x, 0) * 1cqw), calc(var(--y, 0) * 1cqh + 24px)) rotate(calc(var(--r, 0) * 1deg)) scale(.8); } }
.hart { animation: hart-in 1100ms var(--ease) both; animation-delay: calc(300ms + var(--k, 0) * 90ms); }
/* headline word swap */

/* Cards: shape glyph + impact line */
.card__meta { align-items: center; }
.card__impact { font: 400 var(--s-sm)/1.5 var(--f-body); color: var(--muted); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.card__impact strong { font-family: var(--f-display); }
.card__impact strong { font-weight: 500; color: var(--accent); font-size: 1.35rem; margin-right: .25em; }

/* Case hero: the project's shape, large and quiet */
.case-hero .wrap:first-child { position: relative; }
.case-shape { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 8px; width: clamp(96px, 16vw, 220px); height: auto; opacity: .9; pointer-events: none; }
.case-shape.shp--square > * { fill: rgba(255, 255, 255, .08); }
@media (max-width: 760px) { .case-shape { width: 72px; opacity: .6; } }
.case-hero h1, .case-hero .page-hero__lead { position: relative; }

/* =====================================================================
   WORK INDEX — impact first
   ===================================================================== */
.windex { border-top: 1px solid var(--line); }
.wrow { border-bottom: 1px solid var(--line); }
.wrow__link { display: grid; grid-template-columns: 1fr; gap: 14px; padding-block: 28px; text-decoration: none; color: inherit; position: relative; }
.wrow__link:hover { color: inherit; }
.wrow__impact { display: grid; gap: 4px; }
.wrow__v { font: 500 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.wrow__l { color: var(--muted); font-size: var(--s-sm); max-width: 26ch; }
.wrow__main { display: grid; gap: 8px; min-width: 0; }
.wrow__meta { display: flex; align-items: center; gap: 10px; font-size: var(--s-xs); color: var(--muted); }
.wrow__title { font: 500 var(--s-xl)/1.2 var(--f-display); letter-spacing: -.01em; transition: color var(--t-mid) var(--ease); }
.wrow__sum { color: var(--muted); }
.wrow__go { display: none; }
.wrow--private .wrow__v { color: var(--muted); }
@media (min-width: 900px) {
  .wrow__link { grid-template-columns: minmax(220px, 4fr) 7fr; gap: 48px; align-items: center; padding-block: 40px; }
  .wrow__main { max-width: 27rem; }
  .wrow__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--accent);
    transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
  .wrow__link:hover .wrow__go { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
}
.wrow__link:hover .wrow__title { color: var(--accent); }
.wrow__link::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--tint); opacity: 0; z-index: -1; transition: opacity var(--t-mid) var(--ease); }
.wrow__link:hover::before { opacity: 1; }
.windex { position: relative; z-index: 0; }
.wpreview { position: fixed; left: 0; top: 0; z-index: 15; width: 240px; aspect-ratio: 16 / 10; margin: 0; border-radius: var(--r); overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity 260ms var(--ease), transform 260ms var(--ease); background: var(--surface); }
.wpreview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wpreview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .wpreview { display: none; } }

/* =====================================================================
   HEADER TOOLS, AVAILABILITY, COMMAND MENU
   ===================================================================== */
.avail { display: none; align-items: center; gap: 8px; font-size: var(--s-xs); color: var(--muted); margin-right: auto; margin-left: 24px; white-space: nowrap; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (min-width: 1180px) { .top .avail { display: inline-flex; } }
.avail--lg { display: inline-flex; margin: 4px 0 0; font-size: var(--s-sm); }

/* =====================================================================
   CONTACT BRIEF
   ===================================================================== */
.brief { display: grid; gap: 40px; }
.brief__form { display: grid; gap: 28px; }
@media (min-width: 1000px) { .brief__form { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; } .brief__out { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 100px; } }
.brief fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 10px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #FFFFFF; font-weight: 500; cursor: pointer; font-size: var(--s-sm);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.opt span:hover { color: var(--ink); }
.opt input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fld { display: grid; gap: 10px; }
.fld input, .fld textarea { width: 100%; font: 400 var(--s-md)/1.5 var(--f-body); color: var(--ink); background: rgba(255, 255, 255, .06); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); border-radius: var(--r); padding: 14px 16px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(255, 255, 255, .62); }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.brief__out { display: grid; gap: 14px; background: var(--tint); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.brief__preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--s-sm)/1.65 var(--f-body); color: var(--ink); }
.brief__fine { margin-top: 0; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .hart, .hart__p { transition: none !important; animation: none !important; }
  .avail i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv,   .pillar__art .shape { transform: none !important; opacity: 1 !important; }
    .top.is-hidden { transform: none; }
  @view-transition { navigation: none; }
}

.hero__side { border-top: 1px solid var(--line); padding-top: 24px; }

/* =====================================================================
   WORK GRID — bento, filterable, recomposes on filter
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.wfilters { display: flex; flex-wrap: wrap; gap: 8px; }
.wfilter { font: 500 var(--s-sm)/1 var(--f-body); color: var(--muted); background: var(--surface); border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.wfilter span { font: 500 .8125rem/1 var(--f-mono); }
.wfilter:hover { color: var(--ink); background: var(--surface-hover); }
.wfilter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.wfilter[aria-pressed="true"] span { opacity: 1; }
.wfilter:focus-visible, .wview button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wview { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.wview button { width: 40px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.wview button[aria-pressed="true"] { background: var(--raised); color: var(--accent); box-shadow: var(--shadow-1); }
@media (max-width: 899px) { .wview { display: none; } }

.wgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) {
  .wgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
  .gtile--full { grid-column: span 6; }
  .gtile--half { grid-column: span 3; }
  .gtile--m { grid-column: span 2; }
  .gtile--xl { grid-column: span 4; grid-row: span 2; }
}
@media (min-width: 700px) and (max-width: 1099px) { .gtile--m, .gtile--xl { grid-column: span 3; grid-row: auto; } }

.gtile { min-width: 0; }
.gtile[hidden] { display: none; }
.gtile__link { position: relative; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.gtile__link:hover { color: inherit; box-shadow: var(--shadow-2); transform: translateY(-3px); background: var(--surface-hover); }
.gtile__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gtile__media { display: block; flex: 1 1 auto; min-height: 220px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.gtile--xl .gtile__media { aspect-ratio: auto; min-height: 340px; }
.gtile--full .gtile__media { aspect-ratio: 21 / 9; }
.gtile__media img, .gtile__media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 700ms var(--ease); }
.gtile__link:hover .gtile__media img, .gtile__link:hover .gtile__media video { transform: scale(1.04); }
.gtile__body { display: grid; gap: 8px; justify-items: start; padding: 20px 22px 22px; }
.gtile__meta { display: flex; align-items: center; gap: 10px; font-size: var(--s-xs); color: var(--muted); }
.gtile__title { font: 500 clamp(1.5rem, 1.3rem + .5vw, 1.75rem)/1.2 var(--f-display); letter-spacing: -.01em; transition: color var(--t-mid) var(--ease); }
.gtile--xl .gtile__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.gtile__link:hover .gtile__title { color: var(--accent); }
.gtile__impact { color: var(--muted); font-size: var(--s-sm); }
.gtile__impact strong { font: 500 1.4rem/1 var(--f-display); color: var(--accent); margin-right: .2em; white-space: nowrap; }
.gtile__go { position: absolute; right: 18px; bottom: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--raised); color: var(--accent); transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.gtile__link:hover .gtile__go { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .gtile__link, .gtile__media img { transition: none; } .gtile__link:hover { transform: none; } .gtile__link:hover .gtile__media img { transform: none; } }
@media (min-width: 1100px) { .gtile--m .gtile__media { aspect-ratio: 16 / 9; min-height: 0; } .gtile--xl .gtile__media { min-height: 0; } }
@media (max-width: 699px) {
  .wfilters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .wfilters::-webkit-scrollbar { display: none; }
  .wfilter { flex: none; }
}

/* Lining figures everywhere the serif shows numbers (the `font` shorthand resets font-variant, so this sits last) */
h1, h2, h3, .lede, .kicker, .pull li, .callout, .statement p, .quote blockquote p, .next__title, .fine { font-variant-numeric: lining-nums; }
.card__impact strong, .gtile__impact strong, .metrics__v, .wrow__v, .stats dd, .slider__count { font-variant-numeric: lining-nums tabular-nums; }

/* Image lightbox */
.shot__frame.is-zoomable { cursor: zoom-in; }
.shot__frame.is-zoomable::before { content: ""; position: absolute; z-index: 2; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  backdrop-filter: blur(6px); opacity: 0; transform: scale(.9); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.shot__frame.is-zoomable:hover::before, .shot__frame.is-zoomable:focus-visible::before { opacity: 1; transform: none; }
@media (hover: none) { .shot__frame.is-zoomable::before { opacity: 1; transform: none; } }
.shot__frame.is-zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #08080A; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(0, 0, 0, .6); }
.lb__fig { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 12px;
  padding: max(72px, env(safe-area-inset-top)) clamp(16px, 7vw, 96px) max(24px, env(safe-area-inset-bottom)); cursor: zoom-out; }
.lb__img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; background: #fff; }
.lb__cap { font-size: var(--s-sm); color: #FFFFFF; text-align: center; max-width: 70ch; }
.lb__close, .lb__nav { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color var(--t-mid) var(--ease); }
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .24); }
.lb__close:focus-visible, .lb__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb__close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: max(12px, env(safe-area-inset-left)); }
.lb__nav--next { right: max(12px, env(safe-area-inset-right)); }
.lb--single .lb__nav { display: none; }
.lb__count { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; font: 500 var(--s-sm)/1 var(--f-body); color: #FFFFFF; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .lb__nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; } .lb__fig { padding-bottom: 84px; } }
/* Zoom inside the viewer: click / tap the image to see it at 2x and pan */
.lb__img { cursor: zoom-in; touch-action: pinch-zoom; }
.lb--zoom .lb__fig { display: block; overflow: auto; cursor: auto; text-align: center; }
.lb--zoom .lb__img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; border-radius: 0; }
@media (max-width: 699px) { .lb--zoom .lb__img { width: 300%; } }
.lb--zoom .lb__cap { display: none; }

/* Full-bleed UI showcase (opt-in per image with `full: true` or a step `showcase`) */
.showcase { width: 100vw; max-width: none; margin: clamp(24px, 4vw, 56px) calc((100% - 100vw) / 2); }
.showcase__frame { position: relative; border-radius: 0; box-shadow: none; background: #0B0B0C; background-image: none; aspect-ratio: auto; max-width: none; }
.showcase__frame img { display: block; width: 100%; height: auto; object-fit: cover; }
.showcase figcaption { margin: 14px auto 0; font-size: var(--s-sm); color: var(--muted); max-width: calc(46rem + 2 * var(--gutter)); padding-inline: var(--gutter); box-sizing: border-box; }

/* Testimonial photo (small, reference only) + name linking to LinkedIn */
.quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.quote__name { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.quote__name .ico { width: 12px; height: 12px; color: var(--accent); }
.quote__name:hover { color: var(--accent); border-bottom-color: currentColor; }
.quote__name:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* Phones: each card keeps its own height (no empty gap above the name); the track keeps the tallest height, so nothing below jumps */
@media (max-width: 899px) { .slider .slide { align-self: start; justify-content: flex-start; } }

/* Staged UI (opt-in per image with stage: true): wide, tinted backdrop, screen bleeding off the bottom */
.stage { --stage-w: min(76rem, 100vw - 2 * var(--gutter)); width: var(--stage-w); max-width: none; margin: clamp(32px, 5vw, 64px) calc((100% - var(--stage-w)) / 2); }
.stage__frame {
  position: relative; overflow: hidden; border-radius: 14px;
  max-height: calc(var(--stage-w) * .5625); padding: 6% 7% 0;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(224, 122, 82, .34), transparent 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(207, 198, 184, .10), transparent 60%),
    linear-gradient(180deg, #2B2421 0%, #19191B 100%);
  cursor: zoom-in;
}
.stage__frame img { display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.stage figcaption { margin-top: 14px; font-size: .875rem; color: var(--muted); }
@media (max-width: 640px) { .stage__frame { max-height: none; padding: 20px 16px 0; border-radius: 10px; } .stage__frame img { border-radius: 6px 6px 0 0; } }

img.xp__mark { background: none; box-shadow: none; border-radius: 0; object-fit: contain; }

/* Composed images (layered screens on their own backdrop): same width as staged UI, no extra frame */
.stage--bare .stage__frame { padding: 0; max-height: none; background: none; }
.stage--bare .stage__frame img { border-radius: 14px; box-shadow: none; }
@media (max-width: 640px) { .stage--bare .stage__frame { padding: 0; } .stage--bare .stage__frame img { border-radius: 10px; } }
