:root {
  color-scheme: dark;
  --ink: #090a08;
  --ink-2: #11130f;
  --paper: #f3f0e8;
  --muted: #a6aaa0;
  --line: rgba(243, 240, 232, 0.2);
  --line-strong: rgba(243, 240, 232, 0.42);
  --acid: #d7ff38;
  --wine: #9f3442;
  --green: #67735a;
  --blue: #485c83;
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1440px;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-x: hidden;
  animation: pageFade 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--acid);
  box-shadow: 0 0 18px rgba(215, 255, 56, 0.52);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  color: var(--paper);
  background: rgba(9, 10, 8, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  animation: headerDrop 650ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.brand-lockup {
  display: grid;
  gap: 0;
  font-size: 0.84rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lockup span:first-child {
  font-weight: 900;
}

.brand-lockup span:last-child {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--acid);
}

.hero {
  position: relative;
  display: grid;
  min-height: 90svh;
  padding: 116px 28px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  --mx: 0px;
  --my: 0px;
  --hero-scroll: 0px;
  --hero-fade: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(215, 255, 56, 0.16), transparent 19rem),
    linear-gradient(116deg, #020302 0%, #070806 44%, #12140f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(243, 240, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.035) 1px, transparent 1px);
  background-position: center;
  background-size: 96px 96px, 96px 96px;
  opacity: 0.34;
  transform: translate3d(0, calc(var(--hero-scroll) * -0.16), 0) scale(1.04);
  will-change: transform;
  animation: atmosphericDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 3, 2, 0.64), transparent 26%, rgba(2, 3, 2, 0.72)),
    linear-gradient(90deg, rgba(2, 3, 2, 0.72), transparent 22%, transparent 76%, rgba(2, 3, 2, 0.68));
}

.hero-media {
  position: absolute;
  inset: 16vh 5.8vw 10vh;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.22fr) minmax(0, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.14);
  background: #10110d;
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.58);
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-scroll) * 0.14), 0);
  will-change: transform;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 3, 2, 0.5), transparent 28%, transparent 72%, rgba(2, 3, 2, 0.5)),
    linear-gradient(180deg, rgba(2, 3, 2, 0.12), transparent 48%, rgba(2, 3, 2, 0.32));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-top: 3px solid var(--acid);
  box-shadow: inset 0 0 0 1px rgba(243, 240, 232, 0.06);
  opacity: 0.92;
  animation: heroFramePulse 7s ease-in-out infinite alternate;
}

.hero-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 520ms ease-out, opacity 420ms ease-out, filter 420ms ease-out;
}

.hero-image-left {
  object-position: center 42%;
  opacity: 0.76;
  filter: saturate(0.82) contrast(1.08) brightness(0.46);
  transform: translate3d(
      calc(var(--mx) * -0.3),
      calc(var(--my) * 0.18 + var(--hero-scroll) * -0.1),
      0
    )
    scale(1.04);
}

.hero-image-center {
  object-position: center 38%;
  opacity: 1;
  filter: saturate(1.08) contrast(1.1) brightness(1.02);
  border-left: 1px solid rgba(243, 240, 232, 0.12);
  border-right: 1px solid rgba(243, 240, 232, 0.12);
  z-index: 1;
  transform: translate3d(
      calc(var(--mx) * 0.14),
      calc(var(--my) * 0.12 + var(--hero-scroll) * -0.2),
      0
    )
    scale(1.02);
}

.hero-image-right {
  object-position: center 34%;
  opacity: 0.72;
  filter: saturate(0.8) contrast(1.08) brightness(0.42);
  transform: translate3d(
      calc(var(--mx) * 0.3),
      calc(var(--my) * -0.14 + var(--hero-scroll) * -0.04),
      0
    )
    scale(1.05);
}

.hero-photo-effect {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 76% 22%, rgba(215, 255, 56, 0.18), transparent 17rem),
    radial-gradient(circle at 18% 78%, rgba(72, 92, 131, 0.22), transparent 20rem),
    linear-gradient(112deg, transparent 0 34%, rgba(243, 240, 232, 0.2) 45%, rgba(215, 255, 56, 0.08) 50%, transparent 62%),
    linear-gradient(90deg, rgba(159, 52, 66, 0.12), transparent 32%, rgba(103, 115, 90, 0.1));
  transform: translate3d(calc(var(--mx) * 0.08), calc(var(--my) * 0.06), 0);
  will-change: transform, opacity;
  animation: photoPrism 8s ease-in-out infinite alternate;
}

.hero-photo-effect::before,
.hero-photo-effect::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-photo-effect::before {
  inset: -18%;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(0deg, rgba(243, 240, 232, 0.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(243, 240, 232, 0.06) 0 1px, transparent 1px 11px);
  transform: translate3d(0, calc(var(--hero-scroll) * -0.18), 0);
  animation: photoTextureDrift 12s linear infinite;
}

.hero-photo-effect::after {
  inset: -10% -26%;
  opacity: 0.34;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(243, 240, 232, 0.28) 48%, transparent 61%);
  transform: translate3d(-72%, 0, 0) skewX(-12deg);
  animation: photoLightSweep 7.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  justify-self: center;
  width: min(1320px, 88vw);
  padding: 5vh 0 0;
  text-align: left;
  transform: translate3d(0, calc(var(--hero-scroll) * -0.24), 0);
  will-change: transform;
}

.kicker {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.72);
}

.hero .kicker,
.gallery-hero .kicker {
  animation: textRise 650ms cubic-bezier(0.2, 0.8, 0.2, 1) 160ms both;
}

.hero h1 {
  display: grid;
  justify-items: start;
  margin: 0;
  max-width: none;
  color: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4.8rem, 10.2vw, 12.8rem);
  line-height: 0.76;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.9);
  animation: titleRise 850ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms both;
}

.hero h1 span {
  display: block;
  animation: titleLineIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 span:last-child {
  transform: none;
  animation-delay: 90ms;
}

.hero-subtitle {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: var(--paper);
  font-size: 1.24rem;
  line-height: 1.22;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.82);
  animation: textRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
  animation: textRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 480ms both;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--paper);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.button-secondary {
  color: var(--paper);
  background: rgba(243, 240, 232, 0.04);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
}

.hero-meta {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  max-width: 50vw;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  transform: translate3d(0, calc(var(--hero-scroll) * 0.16), 0);
  animation: textRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 560ms both;
}

.hero-meta span {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  animation: textRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 640ms both;
}

.signal-strip a {
  min-height: 84px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.signal-strip a:hover,
.signal-strip a:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.signal-strip a:nth-child(2) {
  color: var(--acid);
}

.signal-strip a:nth-child(3) {
  color: #c7cde0;
}

.signal-strip a:last-child {
  border-right: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 28px;
}

.section-label {
  width: fit-content;
  margin-bottom: 34px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

.intro-copy p {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  line-height: 1.02;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.42fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2,
.digital-header h2,
.contact-copy h2 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading p,
.digital-header p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.direction-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1fr;
  gap: 18px;
}

.direction-tile {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.direction-tile:hover,
.direction-tile:focus-within {
  border-color: rgba(215, 255, 56, 0.66);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.tile-link {
  display: grid;
  height: 100%;
}

.tile-figure {
  margin: 0;
  padding: 14px;
  background: #161712;
  overflow: hidden;
}

.tile-figure.tall {
  aspect-ratio: 4 / 5;
}

.tile-figure.wide {
  aspect-ratio: 4 / 3;
}

.tile-figure img,
.tile-figure video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 700ms ease, filter 700ms ease;
}

.direction-tile:hover img,
.direction-tile:hover video {
  transform: scale(1.015);
  filter: saturate(1.08);
}

.tile-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.tile-index {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
}

.tile-copy h3 {
  margin: 0;
  font-size: 1.38rem;
  text-transform: uppercase;
}

.tile-copy p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.archive-section {
  border-top: 1px solid var(--line);
}

.archive-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
  max-width: 860px;
}

.section-heading.compact p {
  width: min(640px, 100%);
  margin-top: 18px;
}

.filter-tabs {
  display: flex;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.tab {
  min-width: 86px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tab:last-child {
  border-right: 0;
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  color: var(--ink);
  background: var(--acid);
}

.case-list {
  border-top: 1px solid var(--line-strong);
}

.case-row {
  display: grid;
  grid-template-columns: 160px minmax(250px, 0.8fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.case-row:hover {
  border-color: var(--line-strong);
}

.case-row.is-hidden {
  display: none;
}

.case-row:not(.is-hidden).is-visible {
  animation: caseReturn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.case-year {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-copy h3 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.case-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.case-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-link:hover,
.case-link:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.case-media {
  display: grid;
  gap: 10px;
}

.case-media:not(.case-carousel).duo {
  grid-template-columns: 0.9fr 1.1fr;
}

.case-media:not(.case-carousel) img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  transition: transform 450ms ease, filter 450ms ease;
}

.case-media:not(.case-carousel) img:nth-child(2) {
  aspect-ratio: 3 / 4;
}

.case-row:hover .case-media:not(.case-carousel) img {
  filter: saturate(1.08) contrast(1.02);
  transform: translateY(-3px);
}

.case-carousel {
  position: relative;
  display: block;
  min-height: clamp(320px, 35vw, 520px);
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  touch-action: pan-y;
}

.case-carousel:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.case-carousel-track {
  position: absolute;
  inset: 0;
  perspective: 1200px;
}

.case-carousel .case-slide {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: var(--slide-center, 50%);
  width: min(52%, 420px);
  height: calc(100% - 36px);
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.34);
  transition:
    left 860ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 720ms ease,
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 860ms ease;
  will-change: left, opacity, transform;
}

.case-carousel .case-slide.is-active {
  z-index: 5;
  opacity: 1;
  filter: saturate(1.06) contrast(1.02);
  transform: translateX(-50%) scale(1);
}

.case-carousel .case-slide.is-near {
  z-index: 4;
  opacity: 1;
  filter: saturate(0.86) contrast(0.94) brightness(0.72);
  transform: translateX(-50%) scale(0.74);
}

.case-carousel .case-slide.is-far {
  z-index: 3;
  opacity: 1;
  filter: saturate(0.62) contrast(0.86) brightness(0.48);
  transform: translateX(-50%) scale(0.54);
}

.case-carousel .case-slide.is-gone {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(0.34);
}

.case-carousel-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  min-height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.46fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 104px;
  display: block;
  margin: 0;
  padding-top: 8px;
  border-top: 3px solid var(--wine);
}

.sticky-note h2 {
  font-size: 3.7rem;
}

.sticky-note p {
  margin-top: 20px;
}

.print-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.board-item {
  margin: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
  transition: transform 260ms ease;
}

.board-item:hover {
  transform: translateY(-4px);
}

.board-large {
  grid-column: span 2;
  aspect-ratio: 1680 / 1187;
}

.board-item:not(.board-large) {
  aspect-ratio: 1 / 1;
}

.board-item img {
  object-fit: cover;
  padding: 0;
}

.digital-section {
  padding-top: 96px;
}

.digital-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.36fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}

.digital-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 300px;
  gap: clamp(14px, 1.6vw, 24px);
}

.digital-panel {
  margin: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  transition: transform 300ms ease, filter 300ms ease;
}

.digital-panel:hover {
  filter: saturate(1.08);
  transform: translateY(-4px);
}

.panel-main {
  grid-row: span 2;
}

.digital-gallery .panel-main img {
  object-position: center 14%;
}

.digital-panel:nth-child(2) img {
  object-fit: cover;
  padding: 0;
}

.digital-panel:nth-child(3) {
  filter: saturate(1.02);
}

.digital-panel:nth-child(4) {
  grid-column: span 2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 64px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 28px 60px;
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  max-width: 980px;
}

.contact-links {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  transition: color 180ms ease, padding 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--acid);
  padding-left: 10px;
}

.gallery-page {
  background:
    linear-gradient(180deg, rgba(103, 115, 90, 0.15), transparent 34rem),
    var(--ink);
}

.gallery-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 28px 54px;
  border-bottom: 1px solid var(--line);
}

.gallery-hero h1 {
  width: min(1080px, 100%);
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 7rem;
  line-height: 0.86;
  text-transform: uppercase;
  animation: titleRise 850ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.gallery-hero > p:not(.kicker) {
  width: min(760px, 100%);
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  animation: textRise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 320ms both;
}

.gallery-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  animation: textRise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 430ms both;
}

.gallery-stats span,
.gallery-stats a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-stats a {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.gallery-index {
  position: sticky;
  top: 68px;
  z-index: 10;
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  overflow-x: auto;
  background: rgba(9, 10, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  animation: textRise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 520ms both;
}

.gallery-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
  color: var(--paper);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-index a:last-child {
  border-right: 1px solid var(--line);
}

.gallery-index span {
  color: var(--acid);
}

.gallery-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 96px;
}

.gallery-group {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.gallery-group + .gallery-group {
  margin-top: 70px;
}

.gallery-group-head {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(260px, 0.38fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 26px;
}

.gallery-group-head h2 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.gallery-group-head p {
  margin: 0;
  color: var(--muted);
}

.gallery-count {
  margin: 0 0 12px !important;
  color: var(--acid) !important;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-masonry {
  column-count: 4;
  column-gap: clamp(14px, 1.25vw, 20px);
}

.gallery-card {
  position: relative;
  display: block;
  margin: 0 0 clamp(14px, 1.25vw, 20px);
  break-inside: avoid;
  background: transparent;
  border: 0;
  overflow: hidden;
  transform-origin: center top;
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 42%, rgba(215, 255, 56, 0.24) 50%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-100%);
}

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 500ms ease, filter 500ms ease;
}

#nakd .gallery-masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(88px, 7vw, 128px);
  gap: clamp(10px, 1.1vw, 16px);
  column-count: initial;
  column-gap: 0;
}

#nakd .gallery-card {
  height: 100%;
  margin: 0;
}

#nakd .gallery-card img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#nakd .gallery-card:nth-child(1) {
  grid-column: span 5;
  grid-row: span 6;
}

#nakd .gallery-card:nth-child(2) {
  grid-column: span 4;
  grid-row: span 4;
}

#nakd .gallery-card:nth-child(3),
#nakd .gallery-card:nth-child(4) {
  grid-column: span 3;
  grid-row: span 3;
}

#nakd .gallery-card:nth-child(5) {
  grid-column: span 4;
  grid-row: span 3;
}

#nakd .gallery-card:nth-child(6) {
  grid-column: span 3;
  grid-row: span 4;
}

#nakd .gallery-card:nth-child(7) {
  grid-column: span 5;
  grid-row: span 4;
}

#nakd .gallery-card:nth-child(8) {
  grid-column: span 4;
  grid-row: span 5;
}

#nakd .gallery-card:nth-child(9),
#nakd .gallery-card:nth-child(10) {
  grid-column: span 3;
  grid-row: span 3;
}

#nakd .gallery-card:nth-child(11) {
  grid-column: span 6;
  grid-row: span 4;
}

#nakd .gallery-card:nth-child(12),
#nakd .gallery-card:nth-child(13) {
  grid-column: span 3;
  grid-row: span 4;
}

#nakd .gallery-card:nth-child(14) {
  grid-column: span 4;
  grid-row: span 3;
}

#nakd .gallery-card:nth-child(15) {
  grid-column: span 5;
  grid-row: span 3;
}

#garment-featured .gallery-card.is-featured-crop {
  aspect-ratio: 2 / 3;
}

#garment-featured .gallery-card.is-featured-crop img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#cad-print .gallery-card.is-print-tile {
  aspect-ratio: 1 / 1;
}

#cad-print .gallery-card.is-print-tile img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-card video {
  background: #050605;
}

.gallery-video {
  cursor: default;
}

.gallery-video video {
  object-fit: contain;
}

.gallery-card span {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--acid);
  font-size: 0.72rem;
  font-weight: 900;
}

.gallery-card:hover img,
.gallery-card:focus-visible img,
.gallery-card:hover video,
.gallery-card:focus-visible video {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.gallery-card:hover::before,
.gallery-card:focus-visible::before {
  animation: cardSheen 900ms ease both;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(34px) scale(0.982);
  transition: opacity 680ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.parallax-soft {
  --parallax-shift: 0px;
  will-change: transform;
}

.reveal.parallax-soft.is-visible {
  transform: translate3d(0, var(--parallax-shift), 0) scale(1);
}

.direction-tile.reveal.parallax-soft:hover,
.direction-tile.reveal.parallax-soft:focus-within,
.gallery-card.reveal.parallax-soft:hover,
.gallery-card.reveal.parallax-soft:focus-visible {
  transform: translate3d(0, calc(var(--parallax-shift) - 5px), 0) scale(1);
}

.case-carousel.parallax-soft,
.print-board.parallax-soft,
.digital-gallery.parallax-soft {
  transform: translate3d(0, var(--parallax-shift), 0);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFade {
  from {
    opacity: 0;
    background-color: #000;
  }
  to {
    opacity: 1;
    background-color: var(--ink);
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(28px) scaleY(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
  }
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleLineIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-2.4vw, 28px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroFramePulse {
  from {
    opacity: 0.74;
    box-shadow: inset 0 0 0 1px rgba(243, 240, 232, 0.04);
  }
  to {
    opacity: 0.98;
    box-shadow:
      inset 0 0 0 1px rgba(243, 240, 232, 0.08),
      inset 0 24px 90px rgba(215, 255, 56, 0.08);
  }
}

@keyframes photoPrism {
  from {
    opacity: 0.28;
    filter: hue-rotate(-4deg) saturate(0.9);
  }
  to {
    opacity: 0.48;
    filter: hue-rotate(6deg) saturate(1.16);
  }
}

@keyframes photoTextureDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 52px, 38px 0;
  }
}

@keyframes photoLightSweep {
  0%,
  22% {
    transform: translate3d(-76%, 0, 0) skewX(-12deg);
  }
  58%,
  100% {
    transform: translate3d(76%, 0, 0) skewX(-12deg);
  }
}

@keyframes imageEntrance {
  from {
    opacity: 0;
    transform: translate3d(42px, 24px, 0) rotate(8deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--mx), var(--my), 0) rotate(2deg) scale(1);
  }
}

@keyframes imageEntranceAlt {
  from {
    opacity: 0;
    transform: translate3d(-28px, 46px, 0) rotate(-15deg) scale(0.92);
  }
  to {
    opacity: 0.92;
    transform: translate3d(calc(var(--mx) * -0.7), calc(var(--my) * 0.85), 0) rotate(-7deg) scale(1);
  }
}

@keyframes atmosphericDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes cardSheen {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes caseReturn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .hero-photo-effect {
    opacity: 0.2;
  }
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(4.2rem, 10.5vw, 8.6rem);
  }

  .hero-copy {
    width: min(1040px, 90vw);
  }

  .hero-media {
    inset: 16vh 28px 10vh;
  }

  .intro-copy p {
    font-size: 2.45rem;
  }

  .section-heading h2,
  .digital-header h2,
  .contact-copy h2 {
    font-size: 3.8rem;
  }

  .case-row {
    grid-template-columns: 132px minmax(240px, 0.8fr) minmax(340px, 1fr);
  }
}

@media (max-width: 880px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 84svh;
    padding: 94px 16px 44px;
  }

  .hero-copy {
    width: min(760px, 94vw);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 14vw, 6.4rem);
  }

  .hero h1 span:last-child {
    transform: none;
  }

  .hero-subtitle {
    max-width: 520px;
    font-size: 1.18rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(2, 3, 2, 0.72), transparent 32%, rgba(2, 3, 2, 0.82)),
      linear-gradient(90deg, rgba(2, 3, 2, 0.7), transparent 50%, rgba(2, 3, 2, 0.68));
  }

  .hero-media {
    inset: 16vh 16px 15vh;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.38fr) minmax(0, 0.72fr);
  }

  .hero-meta {
    position: static;
    max-width: none;
    align-self: end;
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip a:nth-child(2) {
    border-right: 0;
  }

  .signal-strip a {
    min-height: 70px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 76px 16px;
  }

  .intro-section {
    display: block;
  }

  .intro-copy p {
    font-size: 2.1rem;
  }

  .section-heading,
  .digital-header,
  .archive-top,
  .split-layout,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading h2,
  .digital-header h2,
  .contact-copy h2 {
    font-size: 3rem;
  }

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

  .tile-link {
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr);
  }

  .tile-figure.tall,
  .tile-figure.wide {
    aspect-ratio: 4 / 5;
  }

  .tile-copy {
    align-content: end;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .archive-top {
    align-items: stretch;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .tab {
    flex: 1 0 auto;
  }

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

  .case-carousel {
    min-height: clamp(300px, 68vw, 460px);
  }

  .case-carousel .case-slide {
    width: min(58%, 360px);
  }

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

  .sticky-note {
    position: static;
  }

  .sticky-note h2 {
    font-size: 3rem;
  }

  .digital-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 250px;
  }

  .panel-main {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 8px 14px;
    justify-content: end;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .hero h1 span:last-child {
    transform: none;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-media {
    inset: 18vh 16px 24vh;
    grid-template-columns: 1fr;
  }

  .hero-image-left,
  .hero-image-right {
    display: none;
  }

  .hero-image-center {
    grid-column: 1;
    grid-row: 1;
    object-fit: cover;
    border-left: 0;
    border-right: 0;
    filter: saturate(1.06) contrast(1.08) brightness(0.82);
    transform: translate3d(calc(var(--mx) * 0.12), calc(var(--my) * 0.1), 0) scale(1.04);
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip a {
    border-right: 0;
  }

  .intro-copy p {
    font-size: 1.56rem;
  }

  .section-heading h2,
  .digital-header h2,
  .contact-copy h2,
  .sticky-note h2 {
    font-size: 2.25rem;
  }

  .tile-link {
    grid-template-columns: 1fr;
  }

  .tile-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-copy h3 {
    font-size: 1.9rem;
  }

  .case-carousel {
    min-height: clamp(300px, 88vw, 430px);
  }

  .case-carousel .case-slide {
    top: 14px;
    bottom: 14px;
    width: 64%;
    height: calc(100% - 28px);
  }

  .case-media.duo,
  .print-board,
  .digital-gallery {
    grid-template-columns: 1fr;
  }

  .board-large,
  .panel-main,
  .digital-panel:nth-child(4) {
    grid-column: auto;
  }

  .board-item {
    min-height: 0;
  }

  .board-large {
    aspect-ratio: 4 / 3;
  }

  .digital-gallery {
    grid-auto-rows: auto;
  }

  .digital-panel {
    aspect-ratio: 4 / 5;
  }

  .digital-panel:nth-child(4) {
    aspect-ratio: 4 / 3;
  }

  .contact-section {
    padding: 76px 16px 44px;
  }

  .gallery-hero {
    padding: 112px 16px 42px;
  }

  .gallery-hero h1 {
    font-size: 3rem;
  }

  .gallery-index {
    top: 68px;
    padding: 0 16px;
  }

  .gallery-index a {
    padding: 0 14px;
  }

  .gallery-wrap {
    padding: 38px 16px 70px;
  }

  .gallery-group-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-group-head h2 {
    font-size: 2.2rem;
  }

  .gallery-masonry {
    column-count: 1;
  }

  #nakd .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  #nakd .gallery-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (min-width: 561px) and (max-width: 880px) {
  .gallery-hero {
    padding: 116px 16px 46px;
  }

  .gallery-hero h1 {
    font-size: 4.4rem;
  }

  .gallery-wrap,
  .gallery-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gallery-group-head {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    column-count: 2;
  }

  #nakd .gallery-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(92px, 14vw, 130px);
  }

  #nakd .gallery-card:nth-child(n) {
    grid-column: span 2;
    grid-row: span 3;
  }

  #nakd .gallery-card:nth-child(1),
  #nakd .gallery-card:nth-child(8),
  #nakd .gallery-card:nth-child(11) {
    grid-column: span 4;
    grid-row: span 4;
  }
}

@media (min-width: 881px) and (max-width: 1120px) {
  .gallery-masonry {
    column-count: 3;
  }

  #nakd .gallery-masonry {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: clamp(80px, 8vw, 112px);
  }

  #nakd .gallery-card:nth-child(n) {
    grid-column: span 2;
    grid-row: span 3;
  }

  #nakd .gallery-card:nth-child(1),
  #nakd .gallery-card:nth-child(7),
  #nakd .gallery-card:nth-child(11) {
    grid-column: span 4;
    grid-row: span 4;
  }
}
