:root {
  color-scheme: light;
  --page: #f0f0f0;
  --ink: #191919;
  --muted: rgba(25, 25, 25, 0.52);
  --hairline: rgba(25, 25, 25, 0.12);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  font-family: system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@property --rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.masthead {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 520px;
  margin: 0 auto;
  padding: 84px 0 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-link {
  display: block;
  margin: 0 0 30px;
  border-radius: 20px;
}

.brand-link:focus-visible {
  outline: 2px solid rgba(25, 25, 25, 0.42);
  outline-offset: 5px;
}

.brand-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 20px;
  filter: grayscale(1) contrast(0.72);
  opacity: 0.42;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.92;
}

.intro {
  max-width: 720px;
  margin-bottom: 20px;
  color: rgba(25, 25, 25, 0.68);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.collection-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.gallery-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 110px;
}

.section-heading {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-heading h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.motion-control {
  appearance: none;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease;
}

.motion-control:hover {
  border-color: currentColor;
  color: var(--ink);
}

.motion-control:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(25, 25, 25, 0.24);
  outline-offset: 4px;
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--hairline);
}

.specimen {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 218px;
  padding: 38px 20px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.button-tilt {
  display: flex;
  width: 150px;
  height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease-out-quart);
}

.button-tilt:active,
.button-tilt.is-replaying {
  transform: rotateX(25deg);
}

.loader-button {
  position: relative;
  z-index: 0;
  display: flex;
  width: 150px;
  height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  background:
    linear-gradient(-75deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 4px rgba(255, 255, 255, 0.667) inset,
    0 -4px 4px rgba(255, 255, 255, 0.85) inset,
    0 0 14px rgba(229, 229, 229, 0.55) inset,
    0 11px 28px rgba(0, 0, 0, 0.07),
    0 23px 31px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0) scale(1);
  transition: transform 0.4s var(--ease-out-quart);
  -webkit-tap-highlight-color: transparent;
}

.loader-button:hover {
  transform: translateZ(0) scale(0.975);
}

.loader-button:active,
.loader-button.is-replaying {
  transform: translateZ(0) scale(0.975);
  transition-duration: 110ms;
}

.loader-button:focus {
  outline: none;
}

.loader-button:focus-visible {
  outline: 2px solid rgba(25, 25, 25, 0.58);
  outline-offset: 3px;
}

.button-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0 13.3px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: inherit;
}

.loader-slot {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  contain: strict;
  color: var(--ink);
}

.loader-label {
  position: relative;
  min-width: 0;
  white-space: nowrap;
  color: #363636;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.19px;
  line-height: 28.5px;
}

.button-sheen,
.button-rim {
  position: absolute;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}

.button-sheen {
  z-index: 3;
  inset: 0.6px;
  overflow: clip;
  background: linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 40%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 55%
    )
    no-repeat 0% 50% / 200% 200%;
  mix-blend-mode: soft-light;
  transition: background-position 0.5s var(--ease-out-quart);
}

.loader-button:hover .button-sheen {
  background-position: 25% 50%;
}

.button-rim {
  --rim-angle: -75deg;
  z-index: 1;
  inset: -0.5px;
  padding: 1px;
  background:
    conic-gradient(
      from var(--rim-angle),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0) 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    );
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.35) inset;
  opacity: 1;
  transition: --rim-angle 0.5s var(--ease-out-quart);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.loader-button:hover .button-rim {
  --rim-angle: -125deg;
}

.visual-canvas,
.visual-svg,
.visual-dom {
  display: block;
  width: 100%;
  height: 100%;
}

.specimen-meta {
  display: grid;
  width: 100%;
  margin-top: 36px;
  grid-template-columns: auto 1fr;
  gap: 6px 11px;
  align-items: baseline;
}

.specimen-index {
  grid-row: 1 / span 2;
  color: rgba(25, 25, 25, 0.31);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.specimen-name {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.specimen-technique {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specimen.has-error .loader-slot::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(25, 25, 25, 0.35);
  border-radius: 50%;
  content: "";
}

.footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 11px;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: white;
  text-align: center;
}

@media (max-width: 1050px) {
  .loader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 690px) {
  .button-tilt,
  .loader-button {
    width: 114px;
    height: 42px;
  }

  .button-content {
    padding-inline: 8.45px;
    gap: 5px;
  }

  .loader-slot {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .loader-label {
    font-size: 13px;
    letter-spacing: -0.14px;
    line-height: 19.5px;
  }

  .masthead {
    width: min(100% - 32px, 560px);
    min-height: 440px;
    padding: 64px 0 70px;
  }

  .brand-link {
    margin-bottom: 26px;
    border-radius: 17px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 17px;
  }

  h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .gallery-shell,
  .footer {
    width: calc(100% - 32px);
  }

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

  .specimen {
    min-height: 205px;
    padding-inline: 12px;
  }

  .footer {
    min-height: 120px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
  }
}

@media (max-width: 410px) {
  .collection-meta {
    flex-direction: column;
    gap: 3px;
  }

  .collection-meta span[aria-hidden="true"] {
    display: none;
  }

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

  .specimen {
    min-height: 190px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
