@font-face {
  font-family: "Poppins Archive";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/poppins-semibold.woff2") format("woff2");
}
body[data-archive] {
  background: #fff;
}
[data-archive] main {
  padding: 0;
}
.archive-page {
  padding-top: 28px;
  position: relative;
  z-index: 2;
}
.archive-page > .gallery-nav {
  margin: 0 4.2vw;
  position: relative;
  z-index: 4;
}
.archive-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 56px 10vw 0;
  font-size: 13px;
  color: #777;
}
.archive-heading h1 {
  font: inherit;
  color: #222;
  font-weight: 500;
}
.visual-archive {
  position: relative;
  isolation: isolate;
}
@property --archive-wave-shift {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@keyframes archive-wave-flow {
  from {
    --archive-wave-shift: 0;
  }
  to {
    --archive-wave-shift: 1;
  }
}
.archive-backdrop {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  --archive-fill: 0;
  --archive-wave-fill: 0;
}
.archive-backdrop-title {
  display: inline-grid;
  place-items: center;
  position: relative;
  font-family: "Poppins Archive", "Mona Sans", sans-serif;
  font-size: 13.89vw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.archive-backdrop--project .archive-backdrop-title {
  font-size: 12.5vw;
}
.archive-backdrop-title > span {
  grid-area: 1 / 1;
}
.archive-backdrop-base {
  color: #eaeaea;
}
.archive-backdrop-wave,
.archive-backdrop-fill {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 24 C50 4 150 44 200 24 L200 260 L0 260 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 24 C50 4 150 44 200 24 L200 260 L0 260 Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  animation: archive-wave-flow var(--wave-dur, 3.6s) linear infinite;
  will-change: mask-position, -webkit-mask-position;
}
.archive-backdrop-wave {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 46%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.92;
  --wave-dur: 4.5s;
  animation-direction: reverse;
  -webkit-mask-size: 1.15em 2.5em;
  mask-size: 1.15em 2.5em;
  -webkit-mask-position: calc(var(--archive-wave-shift) * 1.15em)
    calc(1.06em - var(--archive-wave-fill, 0) * 1.38em);
  mask-position: calc(var(--archive-wave-shift) * 1.15em)
    calc(1.06em - var(--archive-wave-fill, 0) * 1.38em);
}
.archive-backdrop-fill {
  background: linear-gradient(180deg, #1b9cf0 0%, #1c1c1e 28%, #161618 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  --wave-dur: 3.3s;
  -webkit-mask-size: 0.92em 2.5em;
  mask-size: 0.92em 2.5em;
  -webkit-mask-position: calc(var(--archive-wave-shift) * 0.92em)
    calc(1.08em - var(--archive-fill, 0) * 1.42em);
  mask-position: calc(var(--archive-wave-shift) * 0.92em)
    calc(1.08em - var(--archive-fill, 0) * 1.42em);
}
.archive-backdrop[data-wave-state="idle"] .archive-backdrop-wave,
.archive-backdrop[data-wave-state="idle"] .archive-backdrop-fill {
  animation-play-state: paused;
  opacity: 0;
}
.archive-backdrop[data-wave-state="full"] .archive-backdrop-wave,
.archive-backdrop[data-wave-state="full"] .archive-backdrop-fill {
  animation-play-state: paused;
}
.archive-artworks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(12px, 1.4vw, 24px);
  width: min(90%, 1500px);
  margin: -64svh auto 0;
  padding-bottom: 12svh;
}
.archive-item {
  grid-column: var(--archive-start) / span var(--archive-span);
  grid-row: var(--archive-row);
  width: 100%;
  margin-top: clamp(0px, var(--archive-offset), 180px);
  position: relative;
  align-self: start;
  scroll-margin-top: 100px;
  z-index: 2;
}
.archive-surface {
  position: relative;
  transform: translate3d(0, var(--archive-drift, 0px), 0);
}
.archive-media {
  position: relative;
  isolation: isolate;
}
.archive-item--folder-front {
  z-index: 3;
}
.archive-item[data-motion-active] .archive-surface {
  will-change: transform;
}
.archive-trigger {
  z-index: 2;
  display: block;
  padding: 0;
  width: 100%;
  position: relative;
  text-align: left;
  border-radius: 7px;
}
.archive-trigger > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  background: #f2f2f2;
  filter: blur(var(--archive-blur, 0px));
  transition: filter 0.35s ease;
}
.archive-media[data-archive-slider] {
  --slide-index: 0;
}
.archive-trigger--slider {
  touch-action: pan-y;
}
.archive-slide-viewport {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #f2f2f2;
  filter: blur(var(--archive-blur, 0px));
  transition: filter 0.35s ease;
}
.archive-slide-track {
  display: flex;
  width: 100%;
  transform: translate3d(calc(var(--slide-index, 0) * -100%), 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.archive-media.is-dragging .archive-slide-track {
  transition: none;
}
.archive-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: block;
}
.archive-slide > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #f2f2f2;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.archive-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0.88;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}
.archive-slide-btn--prev {
  left: 10px;
}
.archive-slide-btn--next {
  right: 10px;
}
.archive-slide-btn:hover,
.archive-slide-btn:focus-visible {
  opacity: 1;
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.archive-slide-btn .icon {
  width: 15px;
  height: 15px;
}
.archive-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.archive-slide-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.26);
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease;
}
.archive-slide-dot.is-active {
  width: 18px;
  background: #1d1d1f;
}
.archive-slide-counter {
  font-size: 10px;
  font-weight: 600;
  color: #555;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.archive-open-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #222;
  background: #ffffffed;
}
.archive-open-icon .icon {
  width: 15px;
  height: 15px;
}
.archive-caption {
  margin-top: 15px;
  max-width: 48ch;
}
.archive-caption h2 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.archive-caption p {
  font-size: 13px;
  line-height: 1.65;
  color: #777;
  margin-top: 4px;
}
.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.archive-actions .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.archive-actions .text-link:hover {
  background: #f5f5f5;
  border-color: #aaa;
}
.archive-actions .icon {
  width: 15px;
  height: 15px;
}
/* Small blue folders echo the reference's floating archive objects. */
.archive-folder {
  --folder-size: clamp(54px, 7vw, 110px);
  position: absolute;
  top: calc(var(--folder-size) * -0.48);
  left: calc(var(--folder-size) * -0.24);
  width: var(--folder-size);
  aspect-ratio: 1.25;
  pointer-events: none;
  z-index: 1;
  transform: translateY(var(--folder-drift, 0px)) rotate(var(--folder-rotation));
}
.archive-folder--top-right {
  left: auto;
  right: calc(var(--folder-size) * -0.22);
}
.archive-folder--front {
  top: calc(var(--folder-size) * -0.25);
  z-index: 3;
}
.archive-folder--bottom-left {
  top: auto;
  bottom: -3px;
  left: calc(var(--folder-size) * -0.2);
}
.archive-folder::before {
  content: "";
  position: absolute;
  inset: 13% 3% 3%;
  border-radius: 14% 12% 16% 14%;
  background: linear-gradient(135deg, #72eaff, #1588f8 50%, #043bd3);
  box-shadow:
    inset 2px 3px 4px #b7fcff,
    0 8px 15px -9px #0046b577;
}
.archive-folder i {
  position: absolute;
  left: 3%;
  top: 3%;
  width: 48%;
  height: 40%;
  border-radius: 35% 30% 0 0;
  background: linear-gradient(140deg, #0a5dff, #52d9ff);
  transform: skewY(8deg);
}
.archive-folder::after {
  content: "";
  position: absolute;
  inset: 26% 0 0;
  border-radius: 12%;
  background: linear-gradient(140deg, #0546e0, #0789fb 55%, #b3f4ff);
  box-shadow: inset 1px 3px 4px #5ecfff;
  transform: skewY(-5deg);
}
.archive-ending {
  width: 100%;
  margin: 0;
  padding: 30px 0 0;
}

@media (max-width: 1000px) {
  .archive-artworks {
    width: 90%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .archive-item {
    grid-column: auto;
    grid-row: auto;
    width: var(--archive-tablet-width, 100%);
    margin-top: clamp(0px, var(--archive-offset), 90px);
  }
  .archive-item:nth-child(even) {
    justify-self: end;
  }
  .archive-heading {
    margin-top: 36px;
  }
}
@media (max-width: 600px) {
  .archive-page {
    padding-top: 18px;
  }
  .archive-page > .gallery-nav {
    margin: 0 20px;
    font-size: 11px;
    gap: 14px;
  }
  .archive-heading {
    margin: 32px 24px 0;
    font-size: 11px;
  }
  .archive-backdrop {
    height: 75svh;
    top: 12.5svh;
  }
  .archive-artworks {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px 6px;
    width: calc(100% - 28px);
    margin-top: -60svh;
    padding-bottom: 8svh;
  }
  .archive-item {
    grid-column: 1 / span 6;
    grid-row: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0;
  }
  .archive-item:nth-child(even) {
    grid-column: 8 / span 5;
    margin-top: 22vw;
  }
  .archive-item:nth-child(8n + 3) {
    grid-column: 2 / span 5;
    margin-top: 12vw;
  }
  .archive-item:nth-child(8n + 4) {
    grid-column: 7 / span 6;
    margin-top: 0;
  }
  .archive-item:nth-child(8n + 5) {
    margin-top: 3vw;
  }
  .archive-item:nth-child(8n + 6) {
    margin-top: 28vw;
  }
  .archive-item:nth-child(8n + 7) {
    grid-column: 2 / span 5;
    margin-top: 18vw;
  }
  .archive-item:nth-child(8n + 8) {
    grid-column: 7 / span 6;
    margin-top: 4vw;
  }
  .archive-surface {
    transform: none;
  }
  .archive-trigger > img,
  .archive-slide-viewport {
    filter: none;
  }
  .archive-slide-btn {
    width: 28px;
    height: 28px;
  }
  .archive-slide-btn--prev {
    left: 6px;
  }
  .archive-slide-btn--next {
    right: 6px;
  }
  .archive-slide-dots {
    bottom: 8px;
    padding: 4px 8px;
    gap: 5px;
  }
  .archive-slide-counter {
    display: none;
  }
  .archive-caption {
    margin-top: 9px;
    overflow-wrap: anywhere;
  }
  .archive-caption h2 {
    font-size: 12px;
  }
  .archive-caption p {
    font-size: 11px;
    line-height: 1.6;
  }
  .archive-actions {
    gap: 6px;
    margin-top: 10px;
  }
  .archive-actions .text-link {
    max-width: 100%;
    gap: 6px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .archive-actions .text-link > .icon:last-child {
    display: none;
  }
  .archive-open-icon {
    width: 26px;
    height: 26px;
    bottom: 8px;
    right: 8px;
  }
  .archive-folder {
    --folder-size: 44px;
    left: -7px;
  }
  .archive-folder--top-right {
    left: auto;
    right: -7px;
  }
  .archive-folder--bottom-left {
    left: -7px;
  }
  .archive-ending {
    width: 100%;
    margin: 0;
    padding: 30px 0 0;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  .archive-page {
    padding-top: 22px;
  }
  .archive-page > .gallery-nav {
    margin: 0 max(28px, env(safe-area-inset-left));
    font-size: 12px;
  }
  .archive-heading {
    margin: 32px 8vw 0;
    font-size: 12px;
  }
  .archive-backdrop {
    height: 100svh;
    top: 0;
  }
  .archive-artworks {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    width: 88%;
    gap: 40px 12px;
    margin-top: -64svh;
    padding-bottom: 12svh;
  }
  .archive-artworks .archive-item:nth-child(n) {
    grid-column: var(--archive-start) / span var(--archive-span);
    grid-row: var(--archive-row);
    width: 100%;
    margin-top: clamp(0px, var(--archive-offset), 100px);
    justify-self: stretch;
  }
  .archive-surface {
    transform: translate3d(0, var(--archive-drift, 0px), 0);
  }
  .archive-trigger > img,
  .archive-slide-viewport {
    filter: blur(var(--archive-blur, 0px));
  }
  .archive-caption h2 {
    font-size: 13px;
  }
  .archive-caption p {
    font-size: 12px;
  }
  .archive-folder {
    --folder-size: clamp(44px, 7vw, 70px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-surface,
  .archive-folder {
    transform: none;
  }
  .archive-trigger > img,
  .archive-slide-viewport {
    filter: none;
  }
  .archive-slide-track {
    transition: none;
  }
  .archive-backdrop-wave,
  .archive-backdrop-fill {
    animation: none;
    -webkit-mask-image: linear-gradient(#fff 0 0);
    mask-image: linear-gradient(#fff 0 0);
    -webkit-mask-size: 100% 2.5em;
    mask-size: 100% 2.5em;
  }
  .archive-backdrop-wave {
    opacity: 0;
  }
}
