@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap");

:root {
  --cream: #ede8df;
  --home-bg: #eee9d5;
  --ink: #1c1817;
  --portfolio: #ebeae6;
  --philosophy: #3d3a39;
  --contact: #e086a1;
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --scene-scale: 1;
  --home-design-w: 1920px;
  --home-design-h: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "Satoshi", Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  scrollbar-width: none;
  scroll-behavior: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.case-overlay::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  scrollbar-width: none;
}

body[data-route="home"],
body[data-route="contact"],
body[data-route="contact-pink"] {
  overflow: hidden;
}

body[data-route="home"] {
  background: var(--home-bg);
}

body[data-route="philosophy"] {
  background: var(--philosophy);
}

body[data-route="portfolio"] {
  background: var(--portfolio);
}

body[data-route="contact"],
body[data-route="contact-pink"] {
  background: var(--contact);
}

body.case-is-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page {
  position: relative;
  min-height: 100svh;
  color: var(--cream);
  isolation: isolate;
}

.enter {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 900ms var(--ease-luxury),
    transform 900ms var(--ease-luxury),
    filter 900ms var(--ease-luxury);
  transition-delay: var(--delay, 0ms);
}

.page:not(.is-visible) .enter {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
}

/* Shared navigation */

.site-header {
  position: fixed;
  z-index: 70;
  top: 14px;
  left: 30px;
  right: 24px;
  height: 50px;
  color: var(--cream);
  pointer-events: none;
  text-transform: uppercase;
}

.site-header.enter,
.page:not(.is-visible) .site-header.enter {
  transform: none;
  filter: none;
}

.page:not(.is-visible) .site-header.enter {
  opacity: 0;
}

.site-header a {
  pointer-events: auto;
}

.brand {
  position: fixed;
  top: 14px;
  left: 30px;
  color: currentColor;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    opacity 260ms ease,
    color 260ms ease,
    transform 420ms var(--ease-luxury);
}

.main-nav {
  position: fixed;
  top: 23px;
  left: calc(50vw + 37px);
  display: flex;
  gap: 69px;
  color: currentColor;
  transition:
    opacity 260ms ease,
    color 260ms ease,
    transform 420ms var(--ease-luxury);
}

.nav-link,
.social-link,
.footer-clock {
  position: relative;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link::after,
.social-link::after,
.contact-hover-link::after,
.case-actions button::after,
.contact-clear::after {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-soft);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.social-link:hover::after,
.contact-hover-link:hover::after,
.case-actions button:hover::after,
.contact-clear:hover::after {
  transform: scaleX(1);
}

.brand:hover {
  opacity: 0.72;
}

.header-start {
  position: fixed;
  top: 14px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 37px;
  border-radius: 46px;
  background: var(--cream);
  color: #1c2022;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  transform-origin: center;
  transition:
    opacity 260ms ease,
    transform 440ms var(--ease-luxury),
    background-color 260ms ease,
    color 260ms ease;
}

.header-start span {
  margin-left: 6px;
}

.header-start:hover {
  transform: scale(1.022);
  opacity: 0.92;
}

body[data-route="portfolio"] .site-header,
.case-overlay .nav-link {
  color: var(--ink);
}

body[data-route="portfolio"] .header-start,
.case-overlay .header-start {
  background: var(--ink);
  color: #e2d6c2;
}

.case-overlay .brand {
  color: var(--ink);
}

body[data-route="portfolio"].portfolio-nav-over-media .portfolio-page > .site-header {
  color: var(--cream);
}

body[data-route="portfolio"].portfolio-nav-over-media .portfolio-page > .site-header .header-start {
  background: var(--cream);
  color: var(--ink);
}

@media (min-width: 981px) {
  body[data-route="philosophy"] .brand {
    top: 14px;
    font-size: 36px;
    line-height: 1;
  }

  .case-overlay .brand {
    color: var(--cream);
  }
}

.site-footer {
  z-index: 68;
  color: currentColor;
  pointer-events: none;
}

.site-footer a,
.site-footer .credit,
.site-footer .footer-clock {
  pointer-events: auto;
}

.site-footer.is-fixed {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: 24px;
  height: 26px;
}

.site-footer.is-flow {
  position: relative;
  height: 26px;
  margin: 152px 30px 30px;
}

.socials {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 75px;
  align-items: center;
}

.credit {
  position: absolute;
  left: calc(50vw + 37px);
  bottom: 0;
  color: rgba(238, 233, 213, 0.6);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.credit span {
  color: var(--cream);
  font-size: 16px;
  font-weight: 500;
}

.credit u {
  text-underline-offset: 3px;
}

.footer-clock {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 20px;
}

.is-home-footer .credit {
  display: none;
}

body[data-route="portfolio"] .site-footer,
body[data-route="portfolio"] .credit span {
  color: var(--ink);
}

body[data-route="portfolio"] .credit {
  color: rgba(28, 24, 23, 0.58);
}

body[data-route="home"] .header-start {
  background: var(--ink);
  color: var(--cream);
}

body[data-route="philosophy"] #app {
  background: var(--philosophy);
}

/* Home */

.home {
  height: 100svh;
  overflow: hidden;
  background: var(--home-bg);
}

.layered-home-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--home-design-w);
  height: var(--home-design-h);
  transform: translate(-50%, -50%) scale(var(--scene-scale));
  transform-origin: center;
}

.home-bg-frame {
  position: absolute;
  top: -57px;
  left: -90px;
  width: 2123px;
  height: 1194px;
  pointer-events: none;
}

.home-bg-frame img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  transform-origin: center;
  transition:
    opacity 1300ms var(--ease-luxury),
    transform 1500ms var(--ease-luxury),
    filter 1300ms var(--ease-luxury);
}

.home-bg-desktop {
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-bg-mobile {
  display: none;
}

.page:not(.is-visible) .home-bg-frame img {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(8px);
}

.scene-object {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.scene-object:active {
  cursor: grabbing;
}

.scene-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transform-origin: center;
  transition:
    opacity 1050ms var(--ease-luxury),
    transform 1050ms var(--ease-luxury),
    filter 1050ms var(--ease-luxury);
  transition-delay: var(--object-delay, 0ms);
}

.page:not(.is-visible) .scene-layer {
  opacity: 0;
  transform: translateY(38px) scale(0.955) rotate(-1.4deg);
  filter: blur(7px);
}

.scene-object.has-action:hover .scene-layer {
  transform: scale(1.026);
  filter: saturate(1.03) contrast(1.02);
}

.layer-4 {
  z-index: 4;
  width: 292px;
  height: 414px;
}

.layer-1-5 {
  z-index: 5;
  width: 225px;
  height: 216px;
}

.layer-5 {
  z-index: 6;
  width: 369px;
  height: 296px;
}

.layer-3 {
  z-index: 7;
  width: 224px;
  height: 179px;
}

.layer-2 {
  z-index: 8;
  width: 272px;
  height: 274px;
}

.layer-1 {
  z-index: 9;
  width: 169px;
  height: 187px;
}

.selection-cut {
  position: absolute;
  z-index: 2;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
}

.scene-object.is-hovered .selection-cut {
  opacity: 1;
}

.selection-portfolio {
  top: -15.5px;
  left: 33.5px;
  width: 204px;
  height: 423.5px;
}

.selection-philosophy {
  top: 33.5px;
  left: 22px;
  width: 369.5px;
  height: 267px;
}

.selection-contact {
  top: 31px;
  left: -19px;
  width: 281px;
  height: 243px;
}

.object-button {
  position: absolute;
  z-index: 3;
  height: 37px;
  border-radius: 46px;
  background: var(--ink);
  color: var(--home-bg);
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  line-height: 37px;
  text-align: center;
  white-space: nowrap;
  transform-origin: center;
  transition:
    opacity 780ms var(--ease-luxury),
    transform 780ms var(--ease-luxury),
    background-color 240ms ease;
  transition-delay: calc(var(--object-delay, 0ms) + 120ms);
}

.page:not(.is-visible) .object-button {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}

.scene-object.has-action:hover .object-button {
  transform: scale(1.035);
  background: #27211e;
}

.object-button:focus-visible,
.header-start:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.contact-add:focus-visible,
.contact-clear:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.portfolio-button {
  top: 188px;
  left: 86px;
  width: 120px;
}

.philosophy-button {
  top: 53px;
  left: 185px;
  width: 191px;
}

.contact-button {
  top: 118px;
  left: 90px;
  width: 114px;
}

.home-welcome {
  position: fixed;
  z-index: 66;
  left: 50%;
  bottom: 29px;
  width: min(620px, calc(100vw - 80px));
  margin: 0;
  color: var(--cream);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.14;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
}

.page:not(.is-visible) .home-welcome.enter {
  transform: translateX(-50%) translateY(20px);
}

.page.is-visible .home-welcome.enter {
  transform: translateX(-50%) translateY(0);
}

/* Portfolio */

.portfolio-page {
  min-height: 100svh;
  padding: 179px 30px 96px;
  background: var(--portfolio);
  color: var(--ink);
  scroll-behavior: auto;
}

.portfolio-toolbar {
  position: relative;
  z-index: 4;
  height: 19px;
  margin-bottom: 35px;
}

.filter-tabs {
  display: flex;
  gap: 64px;
  align-items: center;
}

.filter-btn,
.location-trigger,
.location-option {
  cursor: pointer;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.filter-btn {
  opacity: 0.4;
  transition: opacity 220ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  opacity: 1;
}

.location-filter {
  position: absolute;
  top: 0;
  right: 0;
}

.location-trigger {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.location-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 12px);
  right: 0;
  min-width: 205px;
  padding: 10px;
  background: rgba(28, 24, 23, 0.94);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.location-filter.is-open .location-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.location-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: rgba(238, 233, 213, 0.74);
  text-align: left;
}

.location-option:hover,
.location-option.is-active {
  color: var(--cream);
}

.work-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 28px;
  width: 100%;
}

.work-card {
  display: block;
  flex: 0 0 calc((100vw - 144px) / 4);
  width: calc((100vw - 144px) / 4);
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition:
    opacity 820ms var(--ease-luxury),
    transform 820ms var(--ease-luxury);
  transition-delay: var(--delay, 0ms);
}

.page.is-visible .work-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-card:nth-child(4n + 1) {
  flex-basis: calc((100vw - 204px) / 4);
  width: calc((100vw - 204px) / 4);
  margin-right: 10px;
}

.work-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 446 / 558;
  overflow: hidden;
  background: rgba(28, 24, 23, 0.08);
}

.work-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 1000ms var(--ease-luxury),
    filter 1000ms var(--ease-luxury);
}

.work-card:hover .work-image-wrap img {
  transform: scale(1.065);
  filter: saturate(1.03) contrast(1.02);
}

.empty-state {
  width: 100%;
  padding: 80px 0;
  color: rgba(28, 24, 23, 0.58);
  font-size: 24px;
  font-weight: 400;
}

/* Case */

.case-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  background: var(--portfolio);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  scrollbar-width: none;
  transform: translateY(20px);
  transition:
    opacity 520ms var(--ease-luxury),
    transform 520ms var(--ease-luxury);
}

.case-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-overlay .site-header {
  z-index: 3;
}

.case-overlay.case-nav-hidden .site-header .brand,
.case-overlay.case-nav-hidden .site-header .main-nav,
.case-overlay.case-nav-hidden .site-header .header-start {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-72px);
}

.case-panel {
  height: 100svh;
  min-height: 100svh;
  transition:
    opacity 420ms var(--ease-luxury),
    filter 420ms var(--ease-luxury),
    transform 520ms var(--ease-luxury);
}

.case-panel.is-next-out {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-28px);
}

.case-panel.is-prev-out {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(28px);
}

.case-panel.is-next-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(28px);
}

.case-panel.is-prev-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-28px);
}

.case-gallery-column {
  display: grid;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 944px;
  max-width: 49.2vw;
  gap: 26px;
  margin: -5px 0 0 -1px;
  padding-bottom: 70px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
}

.case-gallery-column::-webkit-scrollbar {
  display: none;
}

.case-scroll-image {
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 900ms var(--ease-luxury),
    transform 900ms var(--ease-luxury);
  transition-delay: var(--delay, 0ms);
}

.case-lightbox-trigger {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.case-lightbox-trigger img {
  pointer-events: none;
}

.case-overlay.is-open .case-scroll-image {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-scroll-image img {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 1181px;
  object-fit: cover;
}

.case-info {
  position: fixed;
  top: 240px;
  left: calc(50vw + 37px);
  width: min(791px, calc(50vw - 67px));
  color: var(--ink);
}

.case-info h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.18;
}

.case-description {
  width: 100%;
  margin: 43px 0 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

.case-facts {
  display: grid;
  gap: 58px;
  margin: 209px 0 0;
  padding: 0;
}

.case-facts div,
.case-facts dt,
.case-facts dd {
  margin: 0;
}

.case-facts dt {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-facts dd {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

.case-actions {
  position: fixed;
  right: 30px;
  bottom: 30px;
  left: calc(50vw + 37px);
  display: flex;
  align-items: center;
  gap: 40px;
}

.case-actions button {
  position: relative;
  cursor: pointer;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-project-controls {
  display: flex;
  gap: 70px;
  margin-left: auto;
}

.case-lightbox {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 86px 30px 70px;
  background: rgba(235, 234, 230, 0.56);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms var(--ease-luxury),
    backdrop-filter 420ms var(--ease-luxury);
}

.case-lightbox img {
  max-width: min(1160px, 88vw);
  max-height: 86svh;
  object-fit: contain;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.975);
  transition:
    opacity 520ms var(--ease-luxury),
    transform 520ms var(--ease-luxury);
}

.case-lightbox img.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

.case-lightbox-controls {
  position: fixed;
  bottom: 24px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.case-lightbox-nav {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 300ms var(--ease-luxury);
}

.case-lightbox-nav:hover {
  transform: scale(1.12);
}

.case-lightbox-count {
  min-width: 38px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.case-lightbox-back {
  position: fixed;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-lightbox-back::after {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-soft);
}

.case-lightbox-back:hover::after {
  transform: scaleX(1);
}

.case-overlay.has-lightbox .case-panel {
  opacity: 0.18;
  filter: blur(12px);
  pointer-events: none;
}

.case-overlay.has-lightbox {
  overflow: hidden;
}

.case-overlay.has-lightbox .brand,
.case-overlay.has-lightbox .nav-link {
  color: var(--ink);
}

.case-overlay.has-lightbox .case-lightbox {
  opacity: 1;
  pointer-events: auto;
}

.case-overlay.has-lightbox .case-lightbox img {
  opacity: 1;
  transform: scale(1);
}

.case-overlay.has-lightbox .case-lightbox img.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

/* Philosophy */

.philosophy-page {
  height: 100svh;
  min-height: 100svh;
  padding-top: 0;
  overflow: hidden;
  background: var(--philosophy);
  color: var(--cream);
  scroll-behavior: auto;
}

.philosophy-page .site-footer.is-flow {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  height: 26px;
  margin: 0;
  padding: 0;
}

.philosophy-copy,
.philosophy-second {
  position: absolute;
  z-index: 4;
  top: 118px;
  width: min(820px, calc(50vw - 90px));
  margin: 0;
  color: var(--cream);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.08;
}

.philosophy-copy {
  left: 30px;
}

.philosophy-second {
  left: calc(50vw + 37px);
  width: calc(50vw - 67px);
}

.philosophy-image-field {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.philosophy-image {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: var(--h);
  max-width: none;
  cursor: grab;
  object-fit: cover;
  pointer-events: auto;
  touch-action: none;
  transform-origin: center;
  will-change: transform;
  transition:
    opacity 900ms var(--ease-luxury),
    filter 900ms var(--ease-luxury),
    transform 560ms var(--ease-luxury);
}

.philosophy-image:active {
  cursor: grabbing;
}

/* Contact */

.contact-page {
  height: 100svh;
  overflow: hidden;
  background: var(--contact);
  color: var(--cream);
}

.contact-float-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-float-item {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  cursor: grab;
  object-fit: contain;
  pointer-events: auto;
  touch-action: none;
  transform-origin: center;
  will-change: transform;
}

.contact-float-item:active {
  cursor: grabbing;
}

.contact-links {
  position: absolute;
  z-index: 55;
  top: 752px;
  left: calc(50vw + 37px);
  display: grid;
  gap: 24px;
  color: var(--cream);
}

.contact-page .credit {
  left: calc(50vw + 7px);
}

.contact-email,
.contact-socials a {
  position: relative;
  width: max-content;
  color: var(--cream);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.04;
  text-transform: none;
}

.contact-socials {
  display: grid;
  gap: 1px;
}

.contact-controls {
  position: absolute;
  z-index: 58;
  inset: 0;
  color: var(--cream);
  pointer-events: none;
}

.contact-controls button {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.contact-clear {
  top: 931px;
  left: 1640px;
}

.contact-add {
  top: 927px;
  left: 1733px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 163px;
  height: 37px;
  border: 2px solid currentColor;
  border-radius: 46px;
  transition:
    opacity 220ms ease,
    transform 420ms var(--ease-luxury);
}

.contact-add:hover {
  transform: scale(1.025);
}

/* Transition */

.page-transition {
  position: fixed;
  z-index: 200;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-transition.is-active {
  visibility: visible;
}

.transition-paper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: var(--ink);
  box-shadow: none;
  will-change: left, top, width, height, opacity;
}

.transition-paper::after {
  display: none;
}

@media (min-width: 981px) and (max-width: 1500px) {
  .brand {
    font-size: 28px;
  }

  .main-nav {
    left: calc(50vw + 37px);
    gap: 48px;
  }

  .nav-link,
  .social-link,
  .filter-btn,
  .location-trigger,
  .location-option,
  .case-actions button {
    font-size: 12.5px;
  }

  .header-start {
    width: 162px;
    height: 28px;
    font-size: 16px;
  }

  .site-footer.is-fixed {
    bottom: 18px;
  }

  .footer-clock {
    font-size: 16px;
  }

  .socials {
    gap: 52px;
  }

  .credit {
    font-size: 11px;
  }

  .credit span {
    font-size: 13px;
  }

  .home-welcome {
    left: 50%;
    bottom: 32px;
    width: min(560px, calc(50vw - 123px));
    font-size: 18px;
  }

  body[data-route="philosophy"] .brand {
    top: 14px;
    font-size: 28px;
  }

  .philosophy-page {
    height: 100svh;
    min-height: 100svh;
    padding-top: 0;
  }

  .philosophy-copy,
  .philosophy-second {
    top: 118px;
    width: calc(50vw - 67px);
    margin: 0;
    font-size: 18px;
    line-height: 1.08;
  }

  .philosophy-copy {
    left: 30px;
  }

  .philosophy-second {
    left: calc(50vw + 37px);
  }

  .philosophy-image-field {
    transform: scale(0.68);
    transform-origin: top left;
  }


  .portfolio-page {
    padding-top: 146px;
  }

  .portfolio-toolbar {
    margin-bottom: 34px;
  }

  .filter-tabs {
    gap: 46px;
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .work-card,
  .work-card:nth-child(4n + 1) {
    width: 100%;
    margin-right: 0;
  }

  .case-gallery-column {
    width: 49.2vw;
    gap: 18px;
    padding-bottom: 46px;
  }

  .case-scroll-image img {
    min-height: 0;
  }

  .case-info {
    top: 170px;
    width: calc(50vw - 67px);
  }

  .case-info h1 {
    font-size: 30px;
  }

  .case-description {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.22;
  }

  .case-facts {
    gap: 34px;
    margin-top: 98px;
  }

  .case-facts dt {
    font-size: 12.5px;
  }

  .case-facts dd {
    margin-top: 8px;
    font-size: 18px;
  }

  .case-actions {
    bottom: 22px;
    gap: 28px;
  }

  .case-project-controls {
    gap: 48px;
  }

  .contact-links {
    top: auto;
    bottom: 122px;
    left: calc(50vw + 37px);
  }

  .contact-email,
  .contact-socials a {
    font-size: 30px;
  }

  .contact-controls button {
    font-size: 16px;
  }

  .contact-clear {
    top: auto;
    right: 210px;
    bottom: 86px;
    left: auto;
  }

  .contact-add {
    top: auto;
    right: 24px;
    bottom: 80px;
    left: auto;
    width: 122px;
    height: 28px;
  }
}

@media (max-width: 980px) {
  .brand {
    top: 33px;
    left: 30px;
    max-width: calc(100vw - 210px);
    overflow: hidden;
    font-size: clamp(20px, 3.8vw, 28px);
    text-overflow: ellipsis;
  }

  .main-nav {
    top: 88px;
    left: 30px;
    width: calc(100vw - 60px);
    gap: 0;
  }

  .main-nav .nav-link:nth-child(2) {
    margin-left: 55px;
  }

  .main-nav .nav-link:nth-child(3) {
    margin-left: auto;
  }

  .nav-link,
  .social-link {
    font-size: 14px;
  }

  .header-start {
    top: 27px;
    right: 18px;
    width: clamp(146px, 30vw, 225px);
    height: 35px;
    font-size: clamp(16px, 2.9vw, 22px);
  }

  .site-footer.is-fixed {
    left: 30px;
    right: 18px;
    bottom: 30px;
  }

  .socials {
    gap: 58px;
  }

  .credit {
    display: none;
  }

  .home-welcome {
    left: 30px;
    bottom: 126px;
    width: 417px;
    font-size: 18px;
    line-height: 1.12;
    text-align: left;
    transform: translateY(0);
  }

  .page:not(.is-visible) .home-welcome.enter {
    transform: translateY(20px);
  }

  .page.is-visible .home-welcome.enter {
    transform: translateY(0);
  }

  .portfolio-page {
    padding: 188px 30px 72px;
  }

  .portfolio-toolbar {
    height: auto;
    margin-bottom: 42px;
  }

  .filter-btn,
  .location-trigger,
  .location-option {
    font-size: 14px;
  }

  .filter-tabs {
    gap: 36px;
    padding-right: 170px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .location-filter {
    top: 0;
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .work-card,
  .work-card:nth-child(4n + 1) {
    width: auto;
    margin-right: 0;
  }

  .philosophy-page {
    height: auto;
    min-height: 1220px;
    padding-top: 152px;
    overflow: visible;
  }

  .philosophy-page .site-footer.is-flow {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 152px 30px 30px;
  }

  .philosophy-copy,
  .philosophy-second {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-right: 30px;
    margin-left: 30px;
    font-size: clamp(20px, 4.6vw, 30px);
    line-height: 1.12;
  }

  .philosophy-image-field {
    position: relative;
    inset: auto;
    display: block;
    width: min(430px, 100vw);
    height: 802px;
    margin: 58px auto 0;
    pointer-events: none;
    transform: none;
  }

  .philosophy-image {
    position: absolute;
    width: var(--mw);
    height: var(--mh);
  }

  .philosophy-second {
    margin-top: 54px;
  }

  .contact-links {
    top: 932px;
    left: 30px;
    gap: 24px;
  }

  .contact-email,
  .contact-socials a {
    font-size: 36px;
  }

  .contact-clear {
    top: 1111px;
    left: 440px;
  }

  .contact-add {
    top: 1107px;
    left: 533px;
  }

  .case-info {
    position: relative;
    order: 1;
    top: auto;
    left: auto;
    width: auto;
    padding: 221px 30px 0;
  }

  .case-overlay {
    overflow-y: auto;
  }

  .case-overlay.is-open {
    transform: none;
  }

  .case-panel {
    height: auto;
    min-height: 100svh;
  }

  .case-info h1 {
    font-size: 34px;
    line-height: 1.18;
  }

  .case-description {
    margin-top: 43px;
    font-size: 20px;
    line-height: 1.2;
  }

  .case-facts dd {
    font-size: 20px;
  }

  .case-actions button {
    font-size: 13px;
  }

  .case-facts {
    gap: 58px;
    margin-top: 86px;
  }

  .case-actions {
    position: fixed;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 18px 30px calc(18px + env(safe-area-inset-bottom));
    gap: 0;
    background: rgba(235, 234, 230, 0.94);
    backdrop-filter: blur(12px);
    transition: opacity 260ms ease;
  }

  .case-project-controls {
    gap: 0;
    justify-content: space-between;
    width: min(377px, calc(100vw - 343px));
    margin-left: auto;
  }

  .case-gallery-column {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    order: 2;
    height: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 28px;
    margin: 47px 0 0;
    padding-bottom: 112px;
    overflow: visible;
  }

  .case-lightbox-trigger {
    aspect-ratio: 446 / 558;
    overflow: hidden;
  }

  .case-lightbox-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .case-scroll-image img {
    min-height: 0;
  }

  .case-panel {
    display: flex;
    flex-direction: column;
  }

  .case-lightbox {
    padding: 132px 18px 80px;
    touch-action: none;
  }

  .case-lightbox img {
    max-width: calc(100vw - 36px);
    max-height: 74svh;
  }

  .case-lightbox-back {
    right: 18px;
    bottom: 30px;
  }

  .case-lightbox-controls {
    bottom: 15px;
    left: 8px;
  }

  .case-overlay.has-lightbox .case-actions {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    right: 18px;
    left: 30px;
  }

  .home-bg-frame {
    top: 0;
    left: 0;
    width: 720px;
    height: 1265px;
  }

  .home-bg-desktop {
    display: none;
  }

  .home-bg-mobile {
    display: block;
    top: -5.54%;
    left: -35.28%;
    width: 170.56%;
    height: 143.34%;
  }

  .layer-4 {
    width: 189px;
    height: 268px;
  }

  .layer-1-5 {
    width: 140px;
    height: 134px;
  }

  .layer-5 {
    width: 253px;
    height: 203px;
  }

  .layer-3 {
    width: 134px;
    height: 108px;
  }

  .layer-2 {
    width: 170px;
    height: 170px;
  }

  .layer-1 {
    width: 118px;
    height: 131px;
  }

  .selection-cut {
    display: none;
  }

  .portfolio-button {
    top: 115px;
    left: 31px;
  }

  .philosophy-button {
    top: 65px;
    left: 31px;
  }

  .contact-button {
    top: 63px;
    left: 28px;
  }

  .contact-links {
    top: auto;
    bottom: 176px;
    left: 30px;
    gap: 18px;
  }

  .contact-email,
  .contact-socials a {
    font-size: 30px;
  }

  .contact-controls button {
    font-size: 20px;
  }

  .contact-clear {
    top: auto;
    bottom: 96px;
    left: 30px;
  }

  .contact-add {
    top: auto;
    right: auto;
    bottom: 90px;
    left: 123px;
  }

  .case-info {
    padding-top: 180px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 20px;
  }

  .nav-link,
  .social-link {
    font-size: 12px;
  }

  .filter-btn,
  .location-trigger,
  .location-option {
    font-size: 12px;
  }

  .header-start {
    width: 146px;
    height: 33px;
    font-size: 16px;
  }

  .footer-clock {
    font-size: 13px;
  }

  .socials {
    gap: 18px;
  }

  .main-nav .nav-link:nth-child(2) {
    margin-left: 32px;
  }

  .home-welcome {
    width: min(417px, calc(100vw - 60px));
    font-size: 17px;
  }

  .portfolio-page {
    padding-right: 0;
    padding-left: 0;
  }

  .portfolio-toolbar {
    margin-right: 30px;
    margin-left: 30px;
  }

  .filter-tabs {
    gap: 28px;
    padding-right: 0;
  }

  .location-filter {
    position: relative;
    margin-top: 18px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .philosophy-image-field {
    width: 100vw;
    height: 766px;
    margin-top: 48px;
  }

  .philosophy-image {
    width: calc(var(--mw) * 0.92);
    height: calc(var(--mh) * 0.92);
  }

  .case-info {
    padding-right: 30px;
    padding-left: 30px;
  }

  .case-info h1 {
    font-size: 30px;
  }

  .case-description {
    font-size: 17px;
  }

  .case-facts dd {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.12;
  }

  .case-facts {
    gap: 24px;
    margin-top: 40px;
  }

  .case-facts dt {
    font-size: 10.5px;
    line-height: 1.1;
  }

  .case-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .case-project-controls {
    width: auto;
    margin-left: 0;
    gap: 36px;
  }

  .case-gallery-column {
    width: 100%;
    margin: 47px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
