/* ==========================================================================
   Fieldwork Studio — contemporary architecture-studio editorial
   Palette: paper / graphite / grey + one signal (international orange)
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #EFEDE8;
  --graphite: #151515;
  --grey: #8B8B86;
  --accent: #FF4A1C;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --gut: clamp(16px, 3.2vw, 48px);
  --gap: clamp(12px, 1.7vw, 24px);
  --max: 1680px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* light theme (default) */
  --bg: var(--paper);
  --fg: var(--graphite);
  --mute: #5F5F5A;                       /* 5.5:1 on paper */
  --line: rgb(21 21 21 / .2);
  --gl: rgb(21 21 21 / .07);
  --surface: color-mix(in srgb, var(--fg) 6%, var(--bg));
  --accent-ink: #C23509;                 /* accent for small text on paper, 4.7:1 */
  --img-f: grayscale(1) contrast(1.12) brightness(1.03);
  --img-f-on: grayscale(0) contrast(1.04) brightness(1);
  --img-blend: multiply;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: var(--graphite);
  --fg: var(--paper);
  --mute: #A5A5A0;                       /* 7.3:1 on graphite */
  --line: rgb(239 237 232 / .2);
  --gl: rgb(239 237 232 / .07);
  --accent-ink: var(--accent);
  --img-f: grayscale(1) contrast(1.1) brightness(.88);
  --img-f-on: grayscale(0) contrast(1.02) brightness(.95);
  --img-blend: normal;
  color-scheme: dark;
}

/* inverted bands: opposite theme tokens */
:root .inv {
  --bg: var(--graphite);
  --fg: var(--paper);
  --mute: #A5A5A0;
  --line: rgb(239 237 232 / .2);
  --accent-ink: var(--accent);
  --img-blend: normal;
}
:root[data-theme="dark"] .inv {
  --bg: var(--paper);
  --fg: var(--graphite);
  --mute: #5F5F5A;
  --line: rgb(21 21 21 / .2);
  --accent-ink: #C23509;
}
.inv { background: var(--bg); color: var(--fg); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
kbd { font: inherit; font-size: .7em; letter-spacing: .06em; padding: 1px 5px; border: 1px solid currentColor; opacity: .7; }
::selection { background: var(--accent); color: var(--graphite); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--fg); color: var(--bg); padding: 12px 18px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.g12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
@media (min-width: 900px) { .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.c { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 900px) { .c { grid-column: var(--d, 1 / -1); } }

main, footer { position: relative; z-index: 1; }
.gridlines { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gridlines .g12 { height: 100%; }
.gridlines i { border-left: 1px solid var(--gl); height: 100%; transition: border-color .3s; }
.gridlines i:last-child { border-right: 1px solid var(--gl); }
@media (max-width: 899.98px) { .gridlines i:nth-child(n+5) { display: none; } }
body.show-grid .gridlines { --gl: rgb(255 74 28 / .55); z-index: 90; }

/* ---------- Type ---------- */
.eyebrow { font: 500 .75rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 82;
  font-size: clamp(2.6rem, 7.6vw, 7.75rem);
  line-height: .93;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2--md { font-size: clamp(2.4rem, 5.2vw, 5.25rem); margin-block: 1.1rem 1.5rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.42; letter-spacing: -.01em; max-width: 34em; }
.fine { font-size: .875rem; line-height: 1.5; color: var(--mute); max-width: 36em; }

.ul { position: relative; display: inline-block; white-space: nowrap; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.ul:hover::after, .ul:focus-visible::after, .ul[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.link { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.link svg { width: 12px; height: 12px; flex: none; }
.sec__aside .link { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--graphite);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid var(--accent);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), translate .3s var(--ease);
  position: relative;
}
.btn svg { transition: transform .4s var(--ease); flex: none; }
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .875rem; gap: 10px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 1rem; }
.btn--block { width: 100%; min-height: 60px; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn__spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__spin { display: block; }
.btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: transform .55s var(--ease), background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 24px; height: 24px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.035em; white-space: nowrap; font-variation-settings: "wdth" 88; display: inline-flex; gap: .3em; }
.brand__name span { font-weight: 300; color: var(--mute); }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav a { font-size: .9375rem; font-weight: 500; white-space: nowrap; padding-block: 8px; }
.hdr__actions { display: flex; align-items: center; gap: 12px; }
.hdr__actions .btn, .hdr__actions .theme { display: none; }

.theme { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); position: relative; transition: border-color .3s, background-color .3s; }
.theme:hover { border-color: var(--fg); }
.theme svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .3s, transform .5s var(--ease); }
.theme__moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(40deg) scale(.6); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
.theme--text { width: auto; height: 44px; padding: 0 14px 0 12px; gap: 10px; display: inline-flex; align-items: center; }
.theme--text svg { grid-area: auto; position: absolute; left: 12px; }
.theme--text { padding-left: 40px; }
.theme__lbl { font-size: .9rem; font-weight: 500; }

.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px 0 8px; font-weight: 600; font-size: .95rem; }
.menu-btn__i { position: relative; width: 22px; height: 12px; display: block; }
.menu-btn__i i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__i i:first-child { top: 1px; }
.menu-btn__i i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__i i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__i i:last-child { top: 5px; transform: rotate(-45deg); }

@media (min-width: 980px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .hdr__actions .btn, .hdr__actions .theme { display: inline-flex; }
  .hdr__actions .theme { display: inline-grid; }
  .menu-btn, .menu, .fab { display: none !important; }
  .hdr__actions { margin-left: 8px; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: calc(var(--header-h) + 16px) var(--gut) max(20px, env(safe-area-inset-bottom));
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  overflow-y: auto;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu__list li { border-top: 1px solid var(--line); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; min-height: 64px; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 80; font-size: clamp(2.6rem, 14vw, 4.5rem); line-height: 1; letter-spacing: -.045em; transform: translateY(100%); transition: transform .8s var(--ease); }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .2s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .3s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .35s; }
.menu__list a span { font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--mute); font-variation-settings: normal; }
.menu__foot { display: grid; gap: 14px; }
.menu__meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--mute); }
.menu__meta .theme { color: var(--fg); }

.fab { position: fixed; z-index: 40; left: var(--gut); right: var(--gut); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--accent); color: var(--graphite); font-weight: 600; transform: translateY(160%); transition: transform .6s var(--ease); box-shadow: 0 0 0 1px var(--bg); }
.fab.is-on { transform: none; }

/* ---------- Media frames (consistent commissioned-photo treatment) ---------- */
.frame { display: block; position: relative; overflow: hidden; background: var(--surface); isolation: isolate; }
.frame__in { display: block; width: 100%; height: 100%; }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  transform-origin: var(--x, 50%) var(--y, 50%);
  scale: var(--z, 1);
  filter: var(--img-f);
  mix-blend-mode: var(--img-blend);
  transition: filter .7s var(--ease), scale 1.4s var(--ease);
}
.hero__fig:hover img, .proj__btn:hover img, .proj__btn:focus-visible img, .modal__media:hover img { filter: var(--img-f-on); }
.proj__btn:hover img, .proj__btn:focus-visible img { scale: calc(var(--z, 1) * 1.04); }

/* drawing-label title block */
.tb { display: grid; grid-template-columns: 5rem 1.6fr 1.4fr 5.5rem 1fr; border: 1px solid var(--line); border-top: 0; }
.tb--4 { grid-template-columns: 4rem 1.6fr 1.4fr 5rem; }
.tb > div { padding: 9px 12px 10px; border-left: 1px solid var(--line); min-width: 0; }
.tb > div:first-child { border-left: 0; }
@media (max-width: 699.98px) {
  .tb, .tb--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb > div { border-left: 0; border-top: 1px solid var(--line); }
  .tb > div:nth-child(even) { border-left: 1px solid var(--line); }
  .tb > div:nth-child(-n+2) { border-top: 0; }
  .tb > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
}
.tb dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); line-height: 1.3; }
.tb dd { font-size: .875rem; font-weight: 500; line-height: 1.35; margin-top: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(20px, 4vw, 56px)); padding-bottom: clamp(48px, 7vw, 110px); }
.hero__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding-bottom: clamp(18px, 3vw, 44px); row-gap: 4px; }
.hero__meta-end { text-align: left; }
@media (min-width: 900px) { .hero__meta-end { text-align: right; } }
@media (max-width: 899.98px) { .hero__meta-mid { display: none; } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, min(13.4vw, 19vh + 6vw), 15.5rem);
  line-height: .88;
  letter-spacing: -.04em;
  font-weight: 700;
  margin-left: -.04em;
}
.ln { display: block; overflow: hidden; padding: .04em 0 .12em; margin-bottom: -.1em; }
.ln__in { display: inline-block; white-space: nowrap; }
.ln__in--a { font-variation-settings: "wdth" 75; font-weight: 750; }
.ln__in--b { font-variation-settings: "wdth" 100; font-weight: 300; letter-spacing: -.045em; }
.ln--2 { padding-left: 0; }
@media (min-width: 900px) {
  .ln--2 { padding-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
}
.dot { display: inline-block; width: .17em; height: .17em; margin-left: .05em; background: var(--accent); }

.hero__row { margin-top: clamp(28px, 4.5vw, 72px); row-gap: 32px; align-items: end; }
.hero__intro { display: grid; gap: 28px; align-content: end; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__cta .btn { flex: 0 0 auto; }
.hero__fig .frame { aspect-ratio: 16 / 9; }
.hero__fig figcaption { margin-top: 0; }
@media (max-width: 899.98px) {
  .hero__fig .frame { aspect-ratio: 4 / 5; }
  .hero__row { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero__fig { margin-inline: calc(var(--gut) * -1); }
  .hero__fig figcaption { padding-inline: var(--gut); }
  .hero__fig .tb { border-inline: 0; }
  .hero__intro { gap: 24px; }
}

/* ---------- Who we work with ---------- */
.who { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.who__list { row-gap: 0; }
.who__list li { padding-block: 26px 30px; }
.who__list li p { margin-top: 10px; font-size: .95rem; line-height: 1.45; max-width: 24em; }
@media (max-width: 899.98px) {
  .who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who__list li { grid-column: auto; padding-block: 20px 22px; }
  .who__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .who__list li p { font-size: .875rem; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(84px, 12vw, 200px); background: transparent; }
.sec.inv { background: var(--bg); }
.sec__head { row-gap: 20px; align-items: start; margin-bottom: clamp(36px, 5vw, 76px); }
.sec__head .eyebrow { padding-top: .5rem; }
.sec__head .h2 { margin-top: clamp(.2rem, 1vw, 1rem); }
.sec__aside { align-self: end; font-size: .95rem; color: var(--mute); max-width: 24em; }
@media (min-width: 900px) { .sec__aside { justify-self: end; } }

/* ---------- Work index ---------- */
.work { padding-top: clamp(84px, 11vw, 170px); }
.work__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding-block: 18px; border-top: 1px solid var(--fg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; display: inline-flex; align-items: center; gap: 6px; }
.chip sup { font-size: .68rem; line-height: 1; color: var(--mute); position: relative; top: -.15em; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-pressed="true"] sup { color: inherit; opacity: .75; }
.views { display: inline-flex; border: 1px solid var(--line); }
.views button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; transition: background-color .3s, color .3s; }
.views button svg { width: 16px; height: 16px; }
.views button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 699.98px) {
  .work__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .filters { min-width: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .views { align-self: flex-start; }
}

.index__head { padding-block: 14px 12px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.idx-r { text-align: right; }
@media (max-width: 899.98px) { .index__head { display: none; } }

.index { display: block; }
.proj { display: block; min-width: 0; }
.proj__btn { display: block; width: 100%; position: relative; }

/* list view */
.index[data-view="list"] { border-bottom: 1px solid var(--line); }
.index[data-view="list"] .proj { border-top: 1px solid var(--line); transition: opacity .4s var(--ease); }
.index[data-view="list"] .proj__btn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(16px, 2vw, 28px); }
.proj__no { grid-column: 1 / 2; font-size: .8125rem; font-weight: 500; color: var(--mute); position: relative; font-variant-numeric: tabular-nums; }
.proj__no::before { content: ""; position: absolute; left: -12px; top: .4em; width: 6px; height: 6px; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.proj__fig { display: none; }
.proj__title { grid-column: 2 / 8; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 84; font-size: clamp(1.9rem, 4.3vw, 4.4rem); line-height: 1; letter-spacing: -.045em; transition: transform .6s var(--ease); }
.proj__meta { display: contents; }
.proj__place { grid-column: 8 / 10; font-size: .95rem; }
.proj__type { grid-column: 10 / 12; font-size: .95rem; color: var(--mute); }
.proj__year { grid-column: 12 / 13; text-align: right; font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .index[data-view="list"] .proj__btn:hover .proj__title, .index[data-view="list"] .proj__btn:focus-visible .proj__title { transform: translateX(clamp(8px, 1.2vw, 20px)); }
  .index[data-view="list"] .proj__btn:hover .proj__no::before, .index[data-view="list"] .proj__btn:focus-visible .proj__no::before { transform: scale(1); }
  .index[data-view="list"]:has(.proj__btn:hover) .proj:not(:hover) { opacity: .32; }
}
.proj.is-entering { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; } }

/* grid view */
.index[data-view="grid"] { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px) var(--gap); padding-top: clamp(20px, 3vw, 40px); }
.index[data-view="grid"] .proj { grid-column: span 6; }
.index[data-view="grid"] .proj[data-pos="0"] { grid-column: span 7; }
.index[data-view="grid"] .proj[data-pos="1"] { grid-column: span 5; align-self: end; }
.index[data-view="grid"] .proj[data-pos="2"] { grid-column: span 5; }
.index[data-view="grid"] .proj[data-pos="3"] { grid-column: span 7; align-self: end; }
.index[data-view="grid"] .proj__btn { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "fig fig fig" "no title year" ". place type"; column-gap: 14px; align-items: baseline; }
.index[data-view="grid"] .proj__fig { display: block; grid-area: fig; position: relative; margin-bottom: 14px; }
.index[data-view="grid"] .proj__fig .frame { aspect-ratio: 3 / 2; }
.index[data-view="grid"] .proj[data-pos="1"] .proj__fig .frame, .index[data-view="grid"] .proj[data-pos="2"] .proj__fig .frame { aspect-ratio: 4 / 5; }
.index[data-view="grid"] .proj__no { grid-area: no; }
.index[data-view="grid"] .proj__no::before { display: none; }
.index[data-view="grid"] .proj__title { grid-area: title; font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.index[data-view="grid"] .proj__year { grid-area: year; color: var(--mute); }
.index[data-view="grid"] .proj__place { grid-area: place; font-size: .875rem; color: var(--mute); margin-top: 6px; }
.index[data-view="grid"] .proj__type { grid-area: type; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; justify-self: end; }
.index[data-view="grid"] .proj__btn:hover .proj__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

@media (max-width: 899.98px) {
  .index[data-view="grid"] .proj, .index[data-view="grid"] .proj[data-pos] { grid-column: span 6; align-self: start; }
}
@media (max-width: 699.98px) {
  .index[data-view="grid"] { grid-template-columns: 1fr; gap: 44px; }
  .index[data-view="grid"] .proj, .index[data-view="grid"] .proj[data-pos] { grid-column: 1 / -1; }
  .index[data-view="grid"] .proj .proj__fig .frame, .index[data-view="grid"] .proj[data-pos] .proj__fig .frame { aspect-ratio: 4 / 5; }
  .index[data-view="grid"] .proj__fig { margin-inline: calc(var(--gut) * -1); }

  /* designed mobile index: stacked, thumbnail right, big tap targets */
  .index[data-view="list"] .proj__btn { grid-template-columns: 30px minmax(0, 1fr) 84px; grid-template-areas: "no title fig" ". meta fig"; column-gap: 12px; row-gap: 8px; align-items: start; padding-block: 20px; min-height: 108px; }
  .index[data-view="list"] .proj__no { grid-area: no; padding-top: .55em; }
  .index[data-view="list"] .proj__no::before { display: none; }
  .index[data-view="list"] .proj__fig { display: block; grid-area: fig; align-self: center; }
  .index[data-view="list"] .proj__fig .frame { aspect-ratio: 1 / 1; }
  .index[data-view="list"] .proj__title { grid-area: title; font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.02; }
  .index[data-view="list"] .proj__meta { display: flex; flex-wrap: wrap; gap: 2px 0; grid-area: meta; font-size: .85rem; color: var(--mute); }
  .index[data-view="list"] .proj__meta > span { grid-column: auto; text-align: left; font-size: .85rem; color: var(--mute); }
  .index[data-view="list"] .proj__meta > .proj__place { flex-basis: 100%; }
  .index[data-view="list"] .proj__meta > .proj__year::before { content: "\00b7"; margin-inline: .5em; }
}

/* hover-follow preview */
.preview { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(240px, 22vw, 340px); pointer-events: none; opacity: 0; scale: .92; transition: opacity .3s var(--ease), scale .5s var(--ease); will-change: transform; display: none; }
.preview.is-on { opacity: 1; scale: 1; }
.preview .frame { aspect-ratio: 4 / 5; }
.preview .frame img { filter: var(--img-f-on); mix-blend-mode: normal; }
.preview__cap { display: block; margin-top: 8px; padding: 6px 10px; background: var(--bg); color: var(--fg); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .preview { display: block; } }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; background: var(--bg); color: var(--fg); width: min(1240px, calc(100vw - 2 * var(--gut))); max-width: none; max-height: calc(100dvh - 2 * var(--gut)); margin: auto; opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: 0 0 0 1px var(--line); overflow: auto; }
.modal.is-in { opacity: 1; transform: none; }
.modal::backdrop { background: rgb(21 21 21 / .72); opacity: 0; transition: opacity .4s var(--ease); }
.modal.is-in::backdrop { opacity: 1; }
.modal__inner { padding: clamp(16px, 2.4vw, 32px); }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.modal__nav { display: flex; align-items: center; gap: 8px; }
.modal__nav button { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); padding: 0 12px; transition: background-color .3s, color .3s, border-color .3s; }
.modal__nav button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.modal__close { display: inline-flex !important; gap: 10px; align-items: center; font-weight: 600; font-size: .9rem; }
.modal__close kbd { font-size: .65rem; }
.modal__grid { display: grid; gap: clamp(20px, 3vw, 48px); }
.modal__media .frame { aspect-ratio: 4 / 3; }
.modal__media .frame img { --z: 1.02; }
.modal__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.modal__body h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 82; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.modal__desc { max-width: 34em; font-size: 1.0625rem; line-height: 1.55; }
.facts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-block: 6px 8px; }
.facts > div { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 12px; }
.facts dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts dd { font-weight: 500; margin-top: 2px; }
@media (min-width: 900px) {
  .modal__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .modal__media .frame { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 699.98px) {
  .modal { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .modal__close kbd { display: none; }
  .modal__bar { position: sticky; top: 0; z-index: 2; background: var(--bg); margin: calc(clamp(16px, 2.4vw, 32px) * -1) calc(clamp(16px, 2.4vw, 32px) * -1) 0; padding: 12px 16px; }
  .modal__media .frame { aspect-ratio: 4 / 4.2; }
  .tb--4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Approach ---------- */
.approach { border-top: 1px solid var(--line); }
.approach .wrap { align-items: start; row-gap: 48px; }
.approach__side { position: static; }
@media (min-width: 900px) { .approach__side { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } }
.approach__side .lead { margin-bottom: 36px; }
.feebar { margin-bottom: 22px; }
.feebar__bar { display: flex; gap: 3px; margin-top: 12px; height: 62px; }
.feebar__bar li { flex: var(--w) 1 0; min-width: 0; background: color-mix(in srgb, var(--fg) 10%, var(--bg)); padding: 8px 8px; display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; transition: background-color .5s var(--ease), color .5s var(--ease); overflow: hidden; }
.feebar__bar li span { font-weight: 600; letter-spacing: .08em; }
.feebar__bar li b { font-weight: 500; }
.feebar__bar li.is-active { background: var(--accent); color: var(--graphite); }
.feebar__now { margin-top: 10px; font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.feebar__now b { color: var(--fg); font-weight: 600; }

.phases { border-top: 1px solid var(--fg); }
.phase { border-bottom: 1px solid var(--line); }
.phase summary { list-style: none; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto 14px; gap: 12px; align-items: baseline; padding-block: clamp(20px, 2.4vw, 32px); cursor: default; }
.phase summary::-webkit-details-marker { display: none; }
.phase__no { font-size: .8125rem; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; transition: color .3s; }
.phase__t { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 84; font-size: clamp(1.7rem, 3.2vw, 3.1rem); line-height: 1; letter-spacing: -.045em; }
.phase__fee { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.phase__chev { width: 12px; height: 12px; align-self: center; transition: transform .4s var(--ease); display: none; }
.phase[open] .phase__chev { transform: rotate(180deg); }
.phase__body { padding: 0 0 clamp(28px, 3.6vw, 48px) calc(3.2rem + 12px); display: grid; gap: 18px; max-width: 46rem; }
.phase__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.phase__facts dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.phase__facts dd { font-weight: 500; }
.ticks li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); font-size: .95rem; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--accent); }
.gate { font-size: .95rem; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); }
.gate b { font-weight: 600; }
.phase.is-active .phase__no { color: var(--accent-ink); }

@media (max-width: 899.98px) {
  .phase summary { cursor: pointer; grid-template-columns: 2.4rem minmax(0, 1fr) 14px; min-height: 64px; }
  .phase__fee { grid-column: 2; grid-row: 2; }
  .phase__chev { display: block; grid-column: 3; grid-row: 1; }
  .phase__body { padding-left: calc(2.4rem + 12px); }
  .phase__t { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
}

/* ---------- Numbers ---------- */
.numbers { padding-block: clamp(72px, 10vw, 160px); }
.numbers__head { margin-bottom: clamp(40px, 7vw, 120px); row-gap: 16px; }
.numbers__lead { font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; max-width: 28em; }
.numbers__list { row-gap: 40px; }
.numbers__list li { border-top: 1px solid var(--line); padding-top: 18px; }
.num { display: block; font-family: var(--font-display); font-weight: 750; font-variation-settings: "wdth" 75; font-size: clamp(6rem, 17vw, 17rem); line-height: .8; letter-spacing: -.04em; color: var(--accent-ink); margin-block: .05em .12em; overflow: hidden; padding-bottom: .06em; }
.num__l { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.numbers__list p { color: var(--mute); font-size: .95rem; line-height: 1.45; max-width: 18em; }
@media (max-width: 899.98px) {
  .numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__list li { grid-column: auto; }
  .num { font-size: clamp(5.5rem, 26vw, 8.5rem); }
  .numbers__list p { font-size: .85rem; }
}

/* ---------- Studio ---------- */
.diffs { row-gap: 0; margin-bottom: clamp(56px, 8vw, 140px); }
.diffs li { border-top: 1px solid var(--fg); padding: 20px 0 30px; }
.diffs h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 12px; }
.diffs p { color: var(--mute); font-size: .975rem; line-height: 1.5; max-width: 22em; }
@media (min-width: 900px) { .diffs li { padding-right: 12px; } }
.people { row-gap: 56px; }
.tile { position: relative; aspect-ratio: 4 / 4.6; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; overflow: hidden; color: var(--fg); }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile svg path, .tile svg circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.tile svg .fill { fill: var(--accent); stroke: none; opacity: 1; }
.tile__ini { position: absolute; left: 14px; bottom: 6px; font-family: var(--font-display); font-weight: 750; font-variation-settings: "wdth" 75; font-size: clamp(5rem, 11vw, 10.5rem); line-height: .85; letter-spacing: -.03em; }
.tile__cap { position: absolute; right: 12px; top: 10px; font-size: .6875rem; letter-spacing: .12em; color: var(--mute); }
.person h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 86; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -.04em; line-height: 1; }
.person__role { margin-block: 8px 14px; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.person p:last-child { font-size: .975rem; line-height: 1.55; max-width: 27em; }
@media (max-width: 899.98px) {
  .diffs { grid-template-columns: 1fr; }
  .diffs li { padding-block: 18px 22px; }
  .people { row-gap: 48px; }
  .person { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .person .tile { grid-row: 1 / 4; aspect-ratio: 1 / 1.25; margin-bottom: 0; }
  .person .tile__ini { font-size: 4rem; left: 8px; bottom: 4px; }
  .person .tile__cap { display: none; }
  .person > p:last-child { grid-column: 1 / -1; margin-top: 8px; }
  .person__role { margin-block: 6px 0; }
}

/* ---------- Notes ---------- */
.notes { border-block: 0; }
.notes__list { row-gap: 0; }
.note { border-top: 1px solid var(--fg); }
.note a { display: grid; gap: 14px; padding: 20px 0 clamp(28px, 4vw, 44px); height: 100%; align-content: start; }
.note__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.note__meta span:first-child { color: var(--accent-ink); font-weight: 600; }
.note h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 84; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; transition: transform .6s var(--ease); }
.note:first-child h3 { font-size: clamp(2rem, 4.2vw, 4rem); max-width: 14em; }
.note p:not(.note__meta) { color: var(--mute); font-size: .975rem; line-height: 1.5; max-width: 28em; }
.note__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-top: 6px; }
.note__go svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.note a:hover .note__go svg { transform: translate(3px, -3px); }
@media (hover: hover) { .note a:hover h3 { transform: translateX(8px); } }

/* ---------- Contact ---------- */
.contact { border-top: 0; }
.contact .wrap { row-gap: 56px; align-items: start; }
.contact__side .lead { margin-bottom: 36px; }
.steps { border-top: 1px solid var(--fg); margin-bottom: 32px; max-width: 30rem; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .975rem; }
.steps li span { font-size: .8125rem; font-weight: 500; color: var(--mute); padding-top: .15em; }
.direct { font-size: .95rem; color: var(--mute); }
.direct a { color: var(--fg); font-weight: 500; white-space: normal; word-break: break-word; }

.form { display: grid; grid-template-columns: 1fr; gap: 26px var(--gap); }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { min-width: 0; }
.field label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.field .opt { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--mute); font-size: .875rem; margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--mute); border-radius: 0;
  font-size: 1.0625rem; appearance: none; -webkit-appearance: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder { color: var(--mute); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--fg); box-shadow: 0 2px 0 0 var(--fg); }
.field select { padding-right: 28px; cursor: pointer; }
.field select:invalid { color: var(--mute); }
.field select option { color: #151515; background: #EFEDE8; }
.select { position: relative; }
.select svg { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 12px; height: 12px; pointer-events: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--accent-ink); box-shadow: 0 2px 0 0 var(--accent-ink); }
.err { margin-top: 8px; font-size: .875rem; font-weight: 500; color: var(--accent-ink); display: flex; gap: 8px; align-items: baseline; }
.err::before { content: "!"; flex: none; width: 16px; height: 16px; display: inline-grid; place-items: center; background: var(--accent-ink); color: var(--bg); font-size: .7rem; font-weight: 700; line-height: 1; border-radius: 50%; transform: translateY(-1px); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.success { border: 1px solid var(--fg); padding: clamp(24px, 4vw, 56px); display: grid; gap: 18px; justify-items: start; }
.success:focus { outline: none; }
.success h3 { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.045em; line-height: .95; }
.success .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.foot { padding-top: clamp(60px, 8vw, 120px); padding-bottom: 20px; overflow: hidden; }
.foot__grid { row-gap: 40px; }
.foot__grid address p:not(.eyebrow), .foot__links { margin-top: 12px; font-size: .975rem; line-height: 1.55; }
.foot__grid address p + p { margin-top: 10px; }
.foot__links li { padding-block: 2px; }
@media (max-width: 899.98px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__grid > .c { grid-column: auto; } }
.foot__mark { font-family: var(--font-display); font-weight: 750; font-variation-settings: "wdth" 75; font-size: min(calc((100vw - 2 * var(--gut)) / 3.02), 34rem); line-height: .8; letter-spacing: -.04em; margin: clamp(56px, 9vw, 140px) 0 clamp(14px, 2vw, 28px) -.04em; white-space: nowrap; user-select: none; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mute); }
.foot__base ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__base a, .foot__base button { color: var(--fg); padding-block: 6px; display: inline-block; }
.foot__base kbd { margin-left: 6px; }
@media (max-width: 899.98px) { .foot { padding-bottom: 92px; } }

/* ---------- Motion (only when motion is welcome and JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.no-anim) .hero__title .ln__in { transform: translateY(108%); }
  html.js.is-ready:not(.no-anim) .hero__title .ln__in { transform: none; transition: transform 1.25s var(--ease); }
  html.js.is-ready:not(.no-anim) .ln:nth-child(2) .ln__in { transition-delay: .09s; }
  html.js.is-ready:not(.no-anim) .ln:nth-child(3) .ln__in { transition-delay: .18s; }

  html.js:not(.no-anim) .hero__meta, html.js:not(.no-anim) .hero__intro { opacity: 0; }
  html.js.is-ready:not(.no-anim) .hero__meta, html.js.is-ready:not(.no-anim) .hero__intro { opacity: 1; transition: opacity 1s .5s var(--ease); }

  html.js:not(.no-anim) [data-mask] { clip-path: inset(0 0 100% 0); }
  html.js:not(.no-anim) [data-mask] .frame__in { transform: scale(1.14); }
  html.js:not(.no-anim) [data-mask].in { clip-path: inset(0); transition: clip-path 1.2s var(--ease-io); }
  html.js:not(.no-anim) [data-mask].in .frame__in { transform: none; transition: transform 1.8s var(--ease); }
  html.js.is-ready:not(.no-anim) .hero__fig [data-mask].in { transition-delay: .25s; }
  html.js.is-ready:not(.no-anim) .hero__fig [data-mask].in .frame__in { transition-delay: .25s; }

  html.js:not(.no-anim) [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  html.js:not(.no-anim) [data-split] .w > span { display: inline-block; transform: translateY(112%); }
  html.js:not(.no-anim) [data-split].in .w > span { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 45ms); }

  html.js:not(.no-anim) [data-num] > span { display: block; transform: translateY(105%); }
  html.js:not(.no-anim) .numbers__list.in [data-num] > span { transform: none; transition: transform 1.1s var(--ease) calc(var(--n, 0) * 90ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .frame img { transition: filter .2s; }
}
