:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #272624;
  background: #f8f8f5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  min-width: 280px;
  margin: 0;
  background: #f8f8f5 url('/assets/paper.jpg') center top / 828px 1380px repeat;
}
.site-shell {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  padding-bottom: 42px;
}
.mark {
  width: min(620px, 96vw, 76svh);
  aspect-ratio: 1;
  position: relative;
  display: block;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mark:focus-visible { outline: 2px solid #171513; outline-offset: -3px; }
.mark-video, .mark-still {
  width: 148%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.mark-still { display: none; }
.footer {
  position: absolute;
  right: 20px;
  bottom: clamp(86px, 7.5vw, 104px);
  left: 20px;
  color: #a3a59f;
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
}
.utility-nav {
  position: absolute;
  bottom: clamp(22px, 2.8vw, 38px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 36px);
  transform: translateX(-50%);
}
.utility-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  color: #a3a59f;
}
.utility-icon img,
.utility-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.utility-icon img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.utility-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.utility-link {
  transition: color 160ms ease, transform 160ms ease;
}
.instagram-link .instagram-dot { fill: currentColor; stroke: none; }
.utility-link:hover, .utility-link:focus-visible { color: #424040; transform: translateY(-1px); }
.utility-link:focus-visible { outline: 1px solid #424040; outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .footer { font-size: clamp(0.75rem, 2.4vw, 0.875rem); letter-spacing: 0.3em; bottom: 84px; }
  .utility-nav { bottom: 24px; gap: clamp(20px, 7vw, 30px); }
}

/* Hold the exact decoded animation frame at the video's existing size and position. */
.mark.fallback .mark-video { visibility: hidden; }
.mark.fallback .mark-still { display: block; }
.final-credit {
  position: absolute;
  right: -2%;
  /* Match visible letter bottoms to the bowl baseline, including image padding. */
  top: 89.286%;
  width: 36%;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
}
.mark.credit-visible .final-credit { opacity: 1; transition: opacity 2400ms cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  .mark.credit-visible .final-credit { transition: none; }
}

/* Landscape tablets: leave a generous gap above the location line. */
@media (orientation: landscape) and (min-width: 701px) {
  .site-shell { /* Center the logo between the top edge and the location line. */
    padding-bottom: calc(clamp(86px, 7.5vw, 104px) + 21px); }
  .mark { width: min(600px, 93vw, 71svh); top: 16px; }
}
/* Portrait: keep the location and links together just below the artwork. */
@media (orientation: portrait) {
  .site-shell {
    padding-bottom: 42px;
    --artwork-bottom: calc(50% - 21px + min(266.104px, 41.2032vw, 32.6192svh));
  }
  .footer { top: calc(var(--artwork-bottom) + 44px); bottom: auto; }
  .utility-nav { top: calc(var(--artwork-bottom) + 108px); bottom: auto; }
}

/* Restore the credit's pre-resize dimensions independently of the landscape logo. */
@media (orientation: landscape) and (min-width: 701px) {
  .final-credit {
    width: min(223.2px, 34.56vw, 27.36svh);
    left: 66%;
    right: auto;
    top: calc(92.92% - min(22.531px, 3.4889vw, 2.7621svh));
  }
}

/* Optical balance for the logo and its right-hand credit; preserve backdrop blending. */
.mark { left: clamp(-30px, -3vw, -16px); }
