:root {
  --bg: #efeee8;
  --ink: #111;
  --muted: #686d67;
  --paper: #fff;
  --pill: rgba(246, 244, 236, .92);
  --active: #777b74;
  --line: rgba(185, 176, 158, .2);
  --panel: #ececea;
  --max: 1320px;
  --shadow: 0 18px 46px rgba(35, 34, 30, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(185, 176, 158, .14) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.experience-shell.is-projects) {
  --bg: #f7f7f3;
  --ink: #111;
  --muted: #8d8d8a;
  --line: #dfdfda;
  --panel: #ececea;
  --orange: #cc6b21;
  --max: 1320px;
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body:has(.experience-shell.is-offices) {
  --bg: #fff;
  --ink: #1a1a1a;
  --muted: #858585;
  --line: #d8d8d8;
  --panel: #ececea;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.site-frame {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 18px max(32px, calc((100vw - var(--max)) / 2 + 32px)) 16px;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(17, 17, 17, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-frame.is-projects-route .site-header {
  background: transparent;
  box-shadow: none;
}

.site-frame.is-projects-route .brand {
  animation: projectLogoIn .86s cubic-bezier(.22, .72, .18, 1) both;
}

.site-frame.is-offices-route .site-header {
  background: transparent;
  box-shadow: none;
}

.progressive-blur-container {
  display: none;
}

.site-frame.is-projects-route > .progressive-blur-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 29;
  display: block;
  width: 100%;
  height: 76px;
  pointer-events: none;
  transform: rotate(180deg);
}

.progressive-blur-container > .blur-filter {
  position: absolute;
  inset: 0;
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:first-child {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask: linear-gradient(transparent, #000 10%, #000 30%, transparent 40%);
  -webkit-mask: linear-gradient(transparent, #000 10%, #000 30%, transparent 40%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(2) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask: linear-gradient(transparent 10%, #000 20%, #000 40%, transparent 50%);
  -webkit-mask: linear-gradient(transparent 10%, #000 20%, #000 40%, transparent 50%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(3) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask: linear-gradient(transparent 15%, #000 30%, #000 50%, transparent 60%);
  -webkit-mask: linear-gradient(transparent 15%, #000 30%, #000 50%, transparent 60%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(4) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask: linear-gradient(transparent 20%, #000 40%, #000 60%, transparent 70%);
  -webkit-mask: linear-gradient(transparent 20%, #000 40%, #000 60%, transparent 70%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(5) {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask: linear-gradient(transparent 40%, #000 60%, #000 80%, transparent 90%);
  -webkit-mask: linear-gradient(transparent 40%, #000 60%, #000 80%, transparent 90%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(6) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(transparent 60%, #000 80%);
  -webkit-mask: linear-gradient(transparent 60%, #000 80%);
}

.site-frame.is-projects-route > .progressive-blur-container > .blur-filter:nth-child(7) {
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(transparent 70%, #000);
  -webkit-mask: linear-gradient(transparent 70%, #000);
}

.brand,
.nav a,
.nav button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .84;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-pill,
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--panel, var(--pill));
  color: #111;
  padding: 0 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  box-shadow: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-pill:focus,
.icon-pill:focus {
  outline: none;
}

.nav-pill:focus-visible,
.icon-pill:focus-visible {
  outline: 2px solid rgba(17, 17, 17, .72);
  outline-offset: 3px;
}

.nav-pill:hover,
.icon-pill:hover,
.nav-pill.is-active,
.icon-pill.is-active {
  background: #8d8d8d;
  color: #fff;
  transform: translateY(-1px);
}

.nav-pill.compact,
.icon-pill {
  width: 60px;
  padding: 0;
}

.nav-device-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 3px;
  border-radius: 10px;
  background: var(--panel, var(--pill));
}

.nav-device-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-device-button:hover,
.nav-device-button.is-active {
  background: #8d8d8d;
  color: #fff;
  transform: translateY(-1px);
}

.nav-device-button:focus {
  outline: none;
}

.nav-device-button:focus-visible {
  outline: 2px solid rgba(17, 17, 17, .72);
  outline-offset: 3px;
}

.icon-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.experience-shell {
  min-height: 100vh;
}

.site-frame.is-device-preview-route {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(17, 17, 17, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    #d8d8d3;
}

.device-preview-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 72px);
  padding: 28px 16px 40px;
  overflow: auto;
}

.device-preview-frame {
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.mobile-device-preview {
  width: min(390px, 100%);
  height: min(844px, calc(100vh - 140px));
  min-height: 620px;
  border: 10px solid #1b1b1b;
  border-radius: 34px;
}

.pc-device-preview {
  width: 1280px;
  height: min(900px, calc(100vh - 140px));
  min-height: 680px;
  border: 1px solid rgba(17, 17, 17, .22);
  border-radius: 12px;
}

.experience-shell.is-portfolio {
  min-height: calc(100vh - 72px);
}

.portfolio-view {
  min-height: 0;
}

.portfolio-view {
  height: calc(100vh - 72px);
  overflow: hidden;
}

.portfolio-shell {
  --portfolio-shell-width: min(1880px, calc(100vw - 32px));
  --portfolio-side-margin: calc((100vw - var(--portfolio-shell-width)) / 2);
  --portfolio-arrow-size: 16px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  gap: 8px;
  width: var(--portfolio-shell-width);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 30px 0 24px;
}

.portfolio-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(664px, calc((100vw - 32px) / 2.8302), calc(100vh - 210px));
  min-height: 0;
  overflow: visible;
  animation: portfolioStageIn .42s cubic-bezier(.2, .72, .18, 1) both;
}

.portfolio-stage.is-single-mode {
  height: min(664px, calc((100vw - 32px) / 1.414), calc(100vh - 210px));
}

.portfolio-book-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  cursor: default;
  perspective: 1800px;
}

.portfolio-stage.is-zoomed .portfolio-book-viewport {
  cursor: grab;
}

.portfolio-stage.is-zoomed .portfolio-book-viewport:active,
.portfolio-book-viewport.is-panning {
  cursor: grabbing;
}

.portfolio-flip-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  transform-origin: center center;
  transition: opacity .2s ease, transform .34s cubic-bezier(.2, .72, .18, 1);
  will-change: transform;
}

.portfolio-flip-shell.is-spread-zoom {
  opacity: 0;
  pointer-events: none;
}

.portfolio-book-viewport.is-panning .portfolio-flip-shell.is-spread-zoom {
  transition: opacity .2s ease;
}

.portfolio-spread-zoom-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-origin: center center;
  transition: transform .34s cubic-bezier(.2, .72, .18, 1);
  will-change: transform;
}

.portfolio-book-viewport.is-panning .portfolio-spread-zoom-layer {
  transition: none;
}

.portfolio-spread-zoom-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1600px, 100%);
  height: 100%;
}

.portfolio-spread-zoom-sheet.is-single-page {
  grid-template-columns: minmax(0, 1fr);
  width: min(900px, 100%);
}

.portfolio-spread-zoom-page {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.portfolio-spread-zoom-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-spread-zoom-page.is-empty {
  background: rgba(255, 255, 255, .78);
}

.portfolio-spread-zoom-sheet.is-spread-page .portfolio-spread-zoom-page:first-child::after,
.portfolio-spread-zoom-sheet.is-spread-page .portfolio-spread-zoom-page:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.portfolio-spread-zoom-sheet.is-spread-page .portfolio-spread-zoom-page:first-child::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(22, 27, 30, .08) 42%, rgba(22, 27, 30, .2) 100%);
}

.portfolio-spread-zoom-sheet.is-spread-page .portfolio-spread-zoom-page:nth-child(2)::before {
  left: 0;
  background: linear-gradient(90deg, rgba(22, 27, 30, .16) 0%, rgba(255, 255, 255, .46) 22%, transparent 100%);
}

.portfolio-flip-book {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 22px 32px rgba(35, 34, 30, .16));
}

.portfolio-flip-page {
  overflow: hidden;
  background: #fff;
}

.portfolio-book-viewport.is-spread-page:not(.is-boundary-spread-transition) .portfolio-flip-page.--left::after,
.portfolio-book-viewport.is-spread-page:not(.is-boundary-spread-transition) .portfolio-flip-page.--right::before,
.portfolio-book-viewport.is-front-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after,
.portfolio-book-viewport.is-front-boundary-transition .portfolio-flip-page.--right.--soft:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-back-boundary-transition .portfolio-flip-page.--left.--soft::after,
.portfolio-book-viewport.is-back-boundary-transition .portfolio-flip-page.--right:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-to-front-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after,
.portfolio-book-viewport.is-to-front-boundary-transition .portfolio-flip-page.--right.--soft:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-to-back-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after,
.portfolio-book-viewport.is-to-back-boundary-transition .portfolio-flip-page.--right:not([data-page-number="1"])::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.portfolio-book-viewport.is-spread-page:not(.is-boundary-spread-transition) .portfolio-flip-page.--left::after,
.portfolio-book-viewport.is-front-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after,
.portfolio-book-viewport.is-back-boundary-transition .portfolio-flip-page.--left.--soft::after,
.portfolio-book-viewport.is-to-front-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after,
.portfolio-book-viewport.is-to-back-boundary-transition .portfolio-flip-page.--left:not([data-page-number="32"])::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(22, 27, 30, .08) 42%, rgba(22, 27, 30, .2) 100%);
}

.portfolio-book-viewport.is-spread-page:not(.is-boundary-spread-transition) .portfolio-flip-page.--right::before,
.portfolio-book-viewport.is-front-boundary-transition .portfolio-flip-page.--right.--soft:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-back-boundary-transition .portfolio-flip-page.--right:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-to-front-boundary-transition .portfolio-flip-page.--right.--soft:not([data-page-number="1"])::before,
.portfolio-book-viewport.is-to-back-boundary-transition .portfolio-flip-page.--right:not([data-page-number="1"])::before {
  left: 0;
  background: linear-gradient(90deg, rgba(22, 27, 30, .16) 0%, rgba(255, 255, 255, .46) 22%, transparent 100%);
}

.portfolio-book-viewport.is-single-page .stf__outerShadow,
.portfolio-book-viewport.is-single-page .stf__innerShadow,
.portfolio-book-viewport.is-single-page .stf__hardShadow,
.portfolio-book-viewport.is-single-page .stf__hardInnerShadow,
.portfolio-book-viewport.is-boundary-spread-transition .stf__outerShadow,
.portfolio-book-viewport.is-boundary-spread-transition .stf__innerShadow,
.portfolio-book-viewport.is-boundary-spread-transition .stf__hardShadow,
.portfolio-book-viewport.is-boundary-spread-transition .stf__hardInnerShadow {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.portfolio-flip-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-flip-book canvas {
  border-radius: 4px;
}

.page-corner-drag-zone {
  --page-corner-enter-size: clamp(54px, 5vw, 76px);
  position: absolute;
  z-index: 6;
  width: var(--page-corner-enter-size);
  height: var(--page-corner-enter-size);
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.page-corner-drag-zone.is-left {
  left: 0;
}

.page-corner-drag-zone.is-right {
  right: 0;
}

.page-corner-drag-zone.is-top {
  top: 0;
}

.page-corner-drag-zone.is-bottom {
  bottom: 0;
}

.book-step {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: var(--portfolio-arrow-size);
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(35, 34, 30, .24);
  transform: translateY(-50%);
  transition: color .2s ease, transform .2s ease;
}

.book-step:hover {
  color: #555;
  transform: translateY(-50%) scale(1.08);
}

.book-step:focus-visible {
  outline: 2px solid rgba(17, 17, 17, .72);
  outline-offset: 4px;
}

.book-step.prev {
  left: calc(-1 * ((var(--portfolio-side-margin) + var(--portfolio-arrow-size)) / 2));
  padding-right: 10px;
}

.book-step.next {
  right: calc(-1 * ((var(--portfolio-side-margin) + var(--portfolio-arrow-size)) / 2));
}

.portfolio-controls {
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  animation: portfolioControlsIn .38s cubic-bezier(.2, .72, .18, 1) .08s both;
}

.portfolio-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portfolio-page-indicator {
  min-height: 18px;
}

.portfolio-page-controls,
.portfolio-zoom-controls {
  gap: 8px;
}

.portfolio-controls .portfolio-page-controls button {
  width: 60px;
  padding-right: 0;
  padding-left: 0;
}

.portfolio-controls .portfolio-zoom-controls button {
  width: 88px;
  padding-right: 0;
  padding-left: 0;
}

.portfolio-controls .portfolio-zoom-controls button:nth-child(2) {
  width: 72px;
}

.portfolio-controls button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(246, 244, 236, .88);
  color: #111;
  cursor: pointer;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(35, 34, 30, .1);
  transition: background .2s ease, transform .2s ease;
}

.portfolio-controls .portfolio-symbol-button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  letter-spacing: 0;
}

.portfolio-controls .portfolio-zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  letter-spacing: 0;
}

.portfolio-controls button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.portfolio-controls button:disabled {
  background: rgba(246, 244, 236, .52);
  color: rgba(17, 17, 17, .32);
  cursor: default;
  box-shadow: none;
  transform: none;
}

.portfolio-controls button:disabled:hover {
  background: rgba(246, 244, 236, .52);
  transform: none;
}

.portfolio-page-indicator span {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.project-browser {
  width: min(var(--max), calc(100vw - 64px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.project-browser .category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
  margin: 16px 0 20px;
  animation: officeTextClipIn .86s cubic-bezier(.22, .72, .18, 1) both;
}

.project-browser .category-tab {
  border: 0;
  background: transparent;
  color: #9a9a96;
  cursor: pointer;
  padding: 0;
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.04em;
  transition: color .25s ease, transform .25s ease;
}

.project-browser .category-tab.is-active,
.project-browser .category-tab:hover {
  color: var(--ink);
}

.project-browser .category-tab:hover {
  transform: translateY(-2px);
}

.filter-bar {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 34px;
  background: var(--bg);
}

.site-frame.is-projects-route .filter-group,
.site-frame.is-projects-route .filter-bar > .view-toggle {
  opacity: 0;
  transform: translateY(22px);
  animation: projectControlIn .72s cubic-bezier(.22, .72, .18, 1) forwards;
}

.site-frame.is-projects-route .filter-group:first-child {
  animation-delay: .14s;
}

.site-frame.is-projects-route .filter-group:nth-child(2) {
  animation-delay: .2s;
}

.site-frame.is-projects-route .filter-group:nth-child(3) {
  animation-delay: .26s;
}

.site-frame.is-projects-route .filter-bar > .view-toggle {
  animation-delay: .32s;
}

.filter-group {
  position: relative;
  z-index: 10;
}

.filter-trigger {
  min-width: 116px;
  height: 33px;
  border: 0;
  border-radius: 8px;
  background: #e6e6e6;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color .3s cubic-bezier(.4, 0, .2, 1),
    color .3s cubic-bezier(.4, 0, .2, 1),
    transform .3s cubic-bezier(.4, 0, .2, 1);
}

.filter-trigger-label {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(.5px);
}

.filter-trigger-label-primary,
.filter-trigger-label-copy {
  display: block;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.filter-trigger-label-copy {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(120%);
}

.filter-trigger:hover .filter-trigger-label-primary,
.filter-trigger:focus-visible .filter-trigger-label-primary {
  transform: translateY(-120%);
}

.filter-trigger:hover .filter-trigger-label-copy,
.filter-trigger:focus-visible .filter-trigger-label-copy {
  transform: translateY(0);
}

.filter-trigger-mark {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 1.1em;
  overflow: hidden;
  pointer-events: none;
}

.filter-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.filter-mark-open {
  transform: translateY(120%);
}

.filter-trigger.is-active .filter-mark-closed {
  transform: translateY(-120%);
}

.filter-trigger.is-active .filter-mark-open {
  transform: translateY(0);
}

.filter-trigger:hover,
.filter-trigger:focus-visible {
  background: #cfcfcf;
}

.filter-trigger.has-value {
  background: #d4d4d0;
}

.filter-trigger.is-active {
  background: #989898;
  color: #fff;
}

.filter-trigger.is-active:hover,
.filter-trigger.is-active:focus-visible {
  background: #989898;
}

.view-toggle {
  min-width: 48px;
  padding-inline: 0;
  text-align: center;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 100;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  grid-template-rows: repeat(var(--filter-rows), minmax(0, auto));
  align-items: center;
  gap: 0 12px;
  width: max-content;
  min-width: 228px;
  max-width: min(calc(100vw - 64px), 390px);
  overflow: hidden;
  padding: 24px;
  border-radius: 12px;
  background: rgba(1, 1, 1, .4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(17, 17, 17, .18);
  clip-path: inset(0 0 100% 0 round 12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity .3s cubic-bezier(.4, 0, .2, 1),
    transform .3s cubic-bezier(.4, 0, .2, 1),
    clip-path .3s cubic-bezier(.4, 0, .2, 1);
}

.filter-group.is-open .filter-panel {
  clip-path: inset(0 round 12px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-panel button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .52);
  cursor: pointer;
  opacity: 0;
  padding: 6px 0;
  position: relative;
  text-align: left;
  transform: translateY(12px);
  transition:
    color .15s cubic-bezier(.4, 0, .2, 1),
    opacity .24s cubic-bezier(.4, 0, .2, 1),
    transform .24s cubic-bezier(.4, 0, .2, 1);
  transition-delay: 0ms;
  white-space: nowrap;
}

.filter-group.is-open .filter-panel button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--option-delay);
}

.filter-panel button span {
  display: block;
  transition: transform .15s cubic-bezier(.4, 0, .2, 1);
}

.filter-panel button:hover,
.filter-panel button.is-active {
  color: #fff;
}

.filter-panel button:hover span,
.filter-panel button:focus-visible span {
  transform: translateX(5px);
}

.search-row {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(22px);
  transition: grid-template-rows .28s ease, opacity .28s ease;
}

.search-row.is-open {
  grid-template-rows: 1fr;
  margin-bottom: 28px;
  animation: projectControlIn .72s cubic-bezier(.22, .72, .18, 1) .38s forwards;
}

.search-row label {
  min-height: 0;
  overflow: hidden;
}

.search-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-row input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  font-size: 28px;
  outline: none;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.project-meta-row p {
  margin: 0;
}

.project-meta-row button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.project-meta-row button:disabled {
  cursor: default;
  opacity: .45;
}

.project-grid {
  position: relative;
  display: block;
  height: var(--masonry-height, auto);
  min-height: 320px;
}

.project-grid.is-measuring .project-card {
  visibility: hidden;
}

.project-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--tile-width, 100%);
  height: var(--tile-height, auto);
  min-height: 280px;
  border: 0;
  border-radius: 10px;
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  opacity: 1;
  transform: translate(var(--tile-left, 0px), var(--tile-top, 0px));
}

.project-grid.is-animating .project-card {
  opacity: 0;
  transform: translate(var(--tile-left, 0px), calc(var(--tile-top, 0px) + 18px));
  animation: cardIn .58s cubic-bezier(.2, .72, .18, 1) forwards;
  animation-delay: var(--delay);
}

.project-card.span-1,
.project-card.span-4 {
  aspect-ratio: 1.28;
}

.project-card.span-2 {
  aspect-ratio: 1.42;
}

.project-card.span-3,
.project-card.span-5 {
  aspect-ratio: .98;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .55s ease, filter .55s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .72));
  opacity: .4;
  transition: opacity .35s ease;
}

.project-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: #fff;
  text-align: left;
  transform: translateY(8px);
  transition: transform .35s ease;
}

.project-info strong {
  font-size: clamp(24px, 3.5vw, 52px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .98;
}

.project-info small {
  font-size: 13px;
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: brightness(.82);
  transform: scale(1.06);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: .78;
}

.project-card:hover .project-info,
.project-card:focus-visible .project-info {
  transform: translateY(0);
}

.project-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  height: auto;
  min-height: 0;
}

.project-grid.is-list .project-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 150px;
  display: grid;
  grid-template-columns: 240px 1fr;
  transform: translateY(18px);
}

.project-grid.is-list .project-card img {
  height: 150px;
}

.project-grid.is-list .project-info strong {
  font-size: 38px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.project-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  pointer-events: none;
  visibility: hidden;
}

.project-detail.is-open {
  pointer-events: auto;
  visibility: visible;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(1, 1, 1, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  padding: 0;
  will-change: background-color, backdrop-filter;
}

.project-detail.is-open .detail-backdrop {
  animation: detailBackdropIn .46s cubic-bezier(.2, .72, .18, 1) both;
}

.detail-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  width: min(1120px, calc(100vw - 32px));
  height: min(90dvh, 820px);
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  clip-path: inset(9% 0 9% 0 round 12px);
  filter: blur(14px);
  opacity: 0;
  transform: translateY(20px);
  will-change: clip-path, filter, opacity, transform;
}

.project-detail.is-open .detail-card {
  animation: detailModalIn .46s cubic-bezier(.2, .72, .18, 1) both;
}

.detail-card > * {
  min-width: 0;
  min-height: 0;
}

.detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.close-detail {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 38px;
  font-weight: 300;
}

.detail-copy {
  display: grid;
  min-height: 0;
  align-content: center;
  padding: clamp(40px, 6vh, 72px) clamp(28px, 3.4vw, 44px) clamp(28px, 4vh, 44px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-copy h2 {
  margin: 0 0 clamp(16px, 2vh, 24px);
  font-size: clamp(48px, 5.6vw, 86px);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.06em;
}

.detail-copy > p:not(.eyebrow) {
  color: #555;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: clamp(22px, 4vh, 36px) 0 0;
}

.detail-copy dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.detail-copy dd {
  margin: 6px 0 0;
  font-size: 13px;
}

.offices-page {
  min-height: 100vh;
  background: #fff;
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.offices-hero {
  width: min(var(--max), calc(100vw - 64px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.offices-hero h1 {
  margin: 0 0 51px;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: .95;
  text-align: center;
  animation: officeTextClipIn .86s cubic-bezier(.22, .72, .18, 1) both;
}

.office-grid,
.office-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.office-card {
  min-width: 0;
  opacity: 0;
  transform: translateY(26px);
  animation: officeCardIn .76s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-delay: var(--office-delay);
}

.office-image-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}

.office-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .72;
  pointer-events: none;
  animation: officeImageWash .82s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-delay: calc(var(--office-delay) + 50ms);
}

.office-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transform-origin: center;
  animation: officeImageScale .9s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-delay: var(--office-delay);
}

.office-card h2,
.office-info-card h2 {
  margin: 24px 0 24px;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.06;
}

.office-card a:not(.office-image-link),
.office-info-card p,
.office-info-card a {
  color: #858585;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.office-card a:not(.office-image-link) {
  display: table;
  margin: 0 0 23px;
}

.office-address {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-address span {
  display: block;
}

.office-info-grid {
  width: min(var(--max), calc(100vw - 64px));
  margin: 51px auto 0;
  padding-top: 56px;
  border-top: 1px solid #d8d8d8;
}

.office-info-card {
  min-width: 0;
  opacity: 0;
  transform: translateY(22px);
  animation: officeCardIn .72s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-delay: var(--office-delay);
}

.office-info-card h2 {
  margin-top: 0;
}

.office-info-card p {
  max-width: 320px;
  margin: 0 0 26px;
}

.office-info-card a {
  display: inline-flex;
}

.office-job-link {
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  background: #f0f0f0;
  color: #1a1a1a !important;
  padding: 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  transition: background .3s ease;
}

.office-job-link:hover,
.office-job-link:focus-visible {
  background: #cfcfcf;
}

.office-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 80px;
  padding: 32px max(32px, calc((100vw - var(--max)) / 2 + 32px)) 40px;
  background: #ededed;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.25;
}

.office-legal {
  grid-column: 1 / span 4;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #8c8c8c;
  font-size: 12px;
}

.office-footer-main {
  grid-column: 5 / -1;
  display: grid;
  gap: 48px;
}

.office-footer-nav {
  display: grid;
  gap: 48px;
}

.office-footer-nav p,
.office-newsletter p {
  margin: 0 0 8px;
}

.office-footer-nav div div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-footer-pill,
.office-newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #d5d5d5;
  color: #1a1a1a;
  padding: 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: background .3s ease;
}

.office-footer-pill:hover,
.office-footer-pill:focus-visible,
.office-newsletter button:hover,
.office-newsletter button:focus-visible {
  background: #cfcfcf;
}

.office-newsletter {
  display: grid;
  justify-items: start;
  gap: 0;
}

.office-newsletter label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 308px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e1e1e1;
}

.office-newsletter input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  padding: 0;
  font-size: 16px;
  outline: none;
}

.office-newsletter input::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

.office-newsletter small {
  display: block;
  max-width: 225px;
  margin-top: 8px;
  color: #8c8c8c;
  font-size: 10px;
  line-height: 1;
}

.office-footer-bottom {
  display: grid;
  gap: 32px;
}

.office-socials,
.office-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.office-text-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  font: inherit;
  line-height: 1.25;
  text-align: left;
}

.office-hover-mask {
  position: relative;
  display: block;
  overflow: hidden;
}

.office-hover-mask span {
  display: inline-block;
  transition: transform .5s ease-in-out;
}

.office-hover-mask span + span {
  position: absolute;
  left: 0;
  top: 100%;
}

.office-text-link:hover .office-hover-mask span:first-child,
.office-text-link:focus-visible .office-hover-mask span:first-child {
  transform: translateY(-105%);
}

.office-text-link:hover .office-hover-mask span + span,
.office-text-link:focus-visible .office-hover-mask span + span {
  transform: translateY(-100%);
}

.office-mobile-text {
  display: none;
}

.summary-reveal {
  --summary-button-shift: 0px;
  position: relative;
  z-index: 299;
  height: 700px;
  margin-top: 0;
  overflow: visible;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
}

.summary-reveal-track {
  position: relative;
  top: -100vh;
  height: calc(100vh + 700px);
}

.summary-reveal-sticky {
  position: sticky;
  top: calc(100vh - 700px);
  height: 700px;
}

.summary-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  padding: 32px 40px;
  background: #ededed;
  font-weight: 300;
}

.summary-brand {
  grid-column: 1 / span 3;
  align-self: start;
  width: 74px;
  color: #111;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .9;
}

.summary-content {
  grid-column: 5 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  height: 100%;
  transform: translateY(var(--summary-button-shift));
  will-change: transform;
}

.summary-nav-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.summary-nav-group {
  display: grid;
  gap: 8px;
}

.summary-nav-group p,
.summary-news p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.summary-nav-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-pill,
.summary-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #d5d5d5;
  color: #1a1a1a;
  padding: 10px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
}

.summary-pill:hover,
.summary-pill:focus-visible,
.summary-top-button:hover,
.summary-top-button:focus-visible {
  background: #cfcfcf;
  transform: translateY(-1px);
}

.summary-top-button {
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 2;
  width: 41px;
  height: 57px;
  min-height: 57px;
  padding: 20px 16px;
  transform: translateY(var(--summary-button-shift));
  will-change: transform;
}

.summary-top-button:hover,
.summary-top-button:focus-visible {
  transform: translateY(calc(var(--summary-button-shift) - 1px));
}

.summary-top-button span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: .85;
  transform: translateY(-1px);
}

.summary-news {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.summary-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 308px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e1e1e1;
}

.summary-signup input {
  width: min(178px, 100%);
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  padding: 0;
  font-size: 16px;
  outline: none;
}

.summary-signup input::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

.summary-signup .summary-pill {
  min-width: 90px;
  padding-inline: 20px;
}

.summary-news small {
  display: block;
  max-width: 225px;
  color: #8c8c8c;
  font-size: 10px;
  line-height: 1;
}

.summary-bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.summary-socials,
.summary-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.summary-text-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  font: inherit;
  line-height: 1.25;
  text-align: left;
}

.summary-text-link span {
  line-height: 1.25;
}

.summary-link-mask {
  position: relative;
  display: block;
  overflow: hidden;
}

.summary-link-mask span {
  display: inline-block;
  transition: transform .5s ease-in-out;
}

.summary-link-mask span + span {
  position: absolute;
  left: 0;
  top: 100%;
}

.summary-text-link:hover .summary-link-mask span:first-child,
.summary-text-link:focus-visible .summary-link-mask span:first-child {
  transform: translateY(-105%);
}

.summary-text-link:hover .summary-link-mask span + span,
.summary-text-link:focus-visible .summary-link-mask span + span {
  transform: translateY(-100%);
}

.summary-mobile-text {
  display: none;
}

.summary-legal {
  color: #8c8c8c;
}

.summary-legal-desktop {
  grid-column: 1 / span 4;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.25;
}

.summary-small-link {
  font-size: 12px;
}

.summary-legal-mobile {
  display: none;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translate(var(--tile-left, 0px), var(--tile-top, 0px));
  }
}

@keyframes detailModalIn {
  to {
    clip-path: inset(0 round 12px);
    filter: blur(0);
    opacity: 1;
    transform: none;
  }
}

@keyframes detailBackdropIn {
  to {
    background: rgba(1, 1, 1, .4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

@keyframes portfolioStageIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portfolioControlsIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectLogoIn {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes projectControlIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes officeTextClipIn {
  from {
    clip-path: inset(0 0 42% 0);
    opacity: .4;
    transform: translateY(10px);
  }

  to {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes officeCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes officeImageScale {
  to {
    transform: scale(1);
  }
}

@keyframes officeImageWash {
  to {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .portfolio-shell {
    width: calc(100vw - 24px);
  }

  .portfolio-control-row {
    flex-wrap: wrap;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-browser {
    width: calc(100vw - 32px);
  }

  .offices-hero {
    width: calc(100vw - 32px);
    padding-top: 28px;
  }

  .office-grid,
  .office-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .office-card h2,
  .office-info-card h2 {
    margin-bottom: 18px;
  }

  .office-info-grid {
    width: calc(100vw - 32px);
    padding-top: 40px;
  }

  .office-footer {
    grid-template-columns: 1fr;
    padding-right: 16px;
    padding-left: 16px;
  }

  .office-legal,
  .office-footer-main {
    grid-column: auto;
  }

  .office-legal {
    order: 2;
  }

  .summary-panel {
    grid-template-columns: 1fr;
    align-content: stretch;
    padding: 32px 16px;
  }

  .summary-brand {
    grid-column: auto;
  }

  .summary-content {
    grid-column: auto;
    padding-top: 48px;
  }

  .summary-legal-desktop {
    display: none;
  }

  .summary-legal-mobile {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 4px 48px;
    color: #8c8c8c;
    font-size: 12px;
  }

  .summary-nav-block {
    gap: 32px;
  }

  .summary-nav-group div {
    max-width: min(100%, 620px);
  }

  .summary-top-button {
    right: 16px;
  }

  .detail-card {
    grid-template-columns: 1fr;
    height: min(90dvh, 760px);
    overflow: auto;
  }

  .detail-card img {
    height: 48vh;
  }
}

@media (max-width: 620px) {
  .site-frame.is-portfolio-route {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
  }

  .site-frame.is-portfolio-route .experience-shell.is-portfolio {
    min-height: 0;
  }

  .site-frame.is-portfolio-route .portfolio-view {
    height: 100%;
  }

  .device-preview-shell.is-pc-preview {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .nav-pill,
  .icon-pill {
    min-height: 38px;
    padding: 0 13px;
  }

  .nav-pill.compact,
  .icon-pill {
    width: 46px;
  }

  .portfolio-shell {
    --portfolio-arrow-size: 12px;
    align-content: start;
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .portfolio-controls {
    justify-content: flex-start;
    gap: 4px;
    min-height: 92px;
  }

  .portfolio-control-row {
    gap: 6px;
  }

  .book-step {
    top: 50%;
    width: var(--portfolio-arrow-size);
    font-size: 30px;
    transform: translateY(-50%);
  }

  .book-step:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .book-step.prev {
    left: calc(-1 * ((var(--portfolio-side-margin) + var(--portfolio-arrow-size)) / 2));
    padding-right: 8px;
  }

  .book-step.next {
    right: calc(-1 * ((var(--portfolio-side-margin) + var(--portfolio-arrow-size)) / 2));
  }

  .portfolio-controls button {
    min-height: 34px;
    padding: 0 10px;
  }

  .portfolio-controls .portfolio-page-controls button {
    width: 52px;
    padding-right: 0;
    padding-left: 0;
  }

  .portfolio-controls .portfolio-zoom-controls button {
    width: 76px;
    padding-right: 0;
    padding-left: 0;
  }

  .portfolio-controls .portfolio-zoom-controls button:nth-child(2) {
    width: 66px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: relative;
    display: grid;
  }

  .offices-hero h1 {
    margin-bottom: 36px;
    font-size: 44px;
  }

  .office-card h2,
  .office-info-card h2 {
    font-size: 32px;
  }

  .office-newsletter label {
    width: 100%;
  }

  .filter-trigger {
    min-height: 36px;
    padding: 0 14px;
  }

  .project-browser .category-tabs {
    gap: 13px;
  }

  .project-browser .category-tab {
    font-size: 40px;
  }

  .filter-bar {
    position: relative;
  }

  .filter-panel {
    grid-auto-columns: minmax(128px, 1fr);
    min-width: min(288px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 20px;
  }

  .filter-group:nth-child(n + 2) .filter-panel {
    left: auto;
    right: 0;
  }

  .project-grid.is-list .project-card,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: auto !important;
    height: 280px;
  }

  .detail-card {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }

  .summary-reveal {
    height: 700px;
  }

  .summary-reveal-track {
    top: -100vh;
    height: calc(100vh + 700px);
  }

  .summary-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 700px;
  }

  .summary-content {
    flex: 1;
    gap: 32px;
    padding-top: 48px;
  }

  .summary-nav-group div {
    gap: 8px;
  }

  .summary-pill {
    padding-inline: 16px;
  }

  .summary-signup {
    width: 100%;
    max-width: 340px;
  }

  .summary-signup input {
    width: 100%;
  }

  .summary-socials,
  .summary-languages {
    gap: 8px 16px;
  }

  .summary-link-mask {
    display: none;
  }

  .summary-mobile-text {
    display: inline;
  }

  .summary-legal-mobile {
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 4px 18px;
  }

  .detail-copy dl {
    grid-template-columns: 1fr;
  }
}
