@font-face {
  font-family: "Fraunces";
  src: url("./fraunces-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --foreground: #f5f4f0;
  --muted: #b8b6ae;
  --subtle: color-mix(in srgb, var(--foreground) 24%, transparent);
  --border: #1d1d1b;
  --accent: #e85e3d;
  --hover-bg: #151514;
  --menu-surface: #f5f4f0;
  --menu-ink: rgba(13, 13, 13, 0.92);
  --elevated-media-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.56), 0 8px 20px -6px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.28);
  --card-inner-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 0 rgba(255, 255, 255, 0.24);
  --cord-stroke: color-mix(in srgb, var(--foreground) 34%, transparent);
  --pendant-fill: color-mix(in srgb, var(--foreground) 72%, transparent);
  --pendant-fill-hover: var(--foreground);
  --radius-4xl: 32px;
  --radius-5xl: 48px;
  --menu-bar-height: 54px;
  --font-sans: "Geist Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Coconat", "Fraunces", Georgia, serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #fcfbf9;
  --foreground: #141413;
  --muted: #57554f;
  --subtle: color-mix(in srgb, var(--foreground) 24%, transparent);
  --border: #e8e6e1;
  --accent: #e85e3d;
  --hover-bg: #f3f1ed;
  --menu-surface: #141413;
  --menu-ink: rgba(252, 251, 249, 0.94);
  --elevated-media-shadow: 0 20px 44px -12px rgba(15, 17, 21, 0.16), 0 8px 20px -6px rgba(15, 17, 21, 0.10), 0 1px 3px rgba(15, 17, 21, 0.06);
  --card-inner-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(17, 17, 17, 0.08);
  --cord-stroke: color-mix(in srgb, var(--foreground) 28%, transparent);
  --pendant-fill: color-mix(in srgb, var(--foreground) 64%, transparent);
  --pendant-fill-hover: var(--foreground);
}

*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--foreground);
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, a, input, textarea {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Theme switch: circular reveal from top-left (View Transitions API, matching CE site). */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* Minimalist Bauhaus/Muji pull-cord on the far top-left */
.lamp-pull {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 96;
  width: 80px;
  height: 480px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.22s ease;
}

@media (max-width: 699px) {
  html.gallery-open .lamp-pull {
    opacity: 0;
    pointer-events: none;
  }

  html.gallery-open .lamp-handle {
    pointer-events: none;
  }
}

.lamp-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lamp-cord-line {
  stroke: var(--cord-stroke);
  stroke-width: 1.2;
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.lamp-pendant-pill {
  fill: var(--pendant-fill);
  transition: fill 0.25s ease;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pendant-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.38); }
  100% { transform: scale(1); }
}

.lamp-pendant.is-armed .lamp-pendant-pill {
  fill: var(--accent);
  animation: pendant-pulse 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lamp-pull:has(.lamp-handle:hover) .lamp-cord-line,
.lamp-pull:has(.lamp-handle:active) .lamp-cord-line {
  stroke: color-mix(in srgb, var(--foreground) 55%, transparent);
}

.lamp-pull:has(.lamp-handle:hover) .lamp-pendant-pill,
.lamp-pull:has(.lamp-handle:active) .lamp-pendant-pill {
  fill: var(--pendant-fill-hover);
}

.lamp-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 58px;
  margin-left: -20px;
  margin-top: -14px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.lamp-handle:active {
  cursor: grabbing;
}

.lamp-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Homepage cloud-sea inspired aura: subtle warm terracotta & deep ink-blue */
.safelight {
  position: fixed;
  inset: 0;
  z-index: 97;
  pointer-events: none;
  visibility: hidden;
  contain: strict;
  opacity: 0;
  will-change: opacity;
  background:
    radial-gradient(95% 80% at 8% 10%, rgba(232, 94, 61, 0.20) 0%, rgba(232, 94, 61, 0.06) 36%, transparent 68%),
    radial-gradient(110% 90% at 88% 86%, rgba(29, 52, 79, 0.38) 0%, rgba(20, 37, 58, 0.16) 46%, transparent 78%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(25, 44, 68, 0.24) 82%, rgba(232, 94, 61, 0.15) 100%);
}

.safelight.is-active {
  visibility: visible;
}

html[data-theme="light"] .safelight {
  background:
    radial-gradient(95% 80% at 8% 10%, rgba(232, 94, 61, 0.15) 0%, rgba(232, 94, 61, 0.05) 36%, transparent 68%),
    radial-gradient(110% 90% at 88% 86%, rgba(36, 62, 92, 0.20) 0%, rgba(36, 62, 92, 0.07) 46%, transparent 78%),
    radial-gradient(ellipse at 50% 50%, transparent 54%, rgba(34, 58, 86, 0.13) 82%, rgba(232, 94, 61, 0.11) 100%);
}

/* Centered two-paragraph editorial stage */
.frames-page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.intro {
  width: min(560px, 100%);
}

.editorial-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar-badge {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 34px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-badge:hover {
  transform: scale(1.06);
}

.avatar-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vh, 26px);
}

.intro-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.75vw, 35px);
  line-height: 1.24;
  letter-spacing: -0.024em;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  color: color-mix(in srgb, var(--foreground) 88%, transparent);
  max-width: 19.5em;
  text-wrap: pretty;
}

.intro-line + .intro-line {
  color: color-mix(in srgb, var(--foreground) 64%, transparent);
}

/* Wavy inline trigger */
.photo-stack-gallery {
  display: inline;
  color: inherit;
}

.photo-stack-gallery__trigger {
  appearance: none;
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: color-mix(in srgb, currentColor 58%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.photo-stack-gallery__trigger::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.photo-stack-gallery__trigger:hover,
.photo-stack-gallery__trigger:focus-visible,
.photo-stack-gallery__trigger[aria-expanded="true"] {
  text-decoration-color: currentColor;
}

.photo-stack-gallery__trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--foreground) 38%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.egg-dot {
  all: unset;
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  cursor: text;
  color: inherit;
  transition: color 0.5s ease;
}

.egg-dot.is-tapped {
  color: var(--accent);
  transition-duration: 0.08s;
}

/* Entrance stagger animation */
@keyframes aboutTextIn {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.about-reveal {
  animation: aboutTextIn 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* 3-Photo Stack Preview above trigger */
.photo-stack-gallery__stack-position {
  position: fixed;
  z-index: 85;
  left: var(--photo-stack-gallery-stack-left, 0px);
  top: var(--photo-stack-gallery-stack-top, 0px);
  display: block;
  width: 150px;
  height: 142px;
  transform-origin: center bottom;
  opacity: 0;
  transform: scale(0.96);
  will-change: transform, opacity;
  transition:
    opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-stack-gallery__stack-position.no-transition {
  transition: none !important;
}

.photo-stack-gallery__stack-position.is-visible {
  opacity: 1;
  transform: scale(1);
}

.photo-stack-gallery__stack-position[data-returning="true"] {
  z-index: 94;
  pointer-events: none;
}

.photo-stack-gallery__stack-position[data-parked="true"] {
  opacity: 0;
  pointer-events: none;
}

.photo-stack-gallery__stack {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-stack-gallery__stack:active {
  transform: scale(0.97);
}

.photo-stack-gallery__stack::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 14px;
}

.photo-stack-gallery__stack:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--foreground) 32%, transparent);
  outline-offset: 6px;
  border-radius: 24px;
}

.photo-stack-gallery__stack__slot {
  position: absolute;
  inset: 28px auto auto 38px;
  display: block;
  width: 74px;
  height: 99px;
  aspect-ratio: 3 / 4;
}

.photo-stack-gallery__stack__slot[data-concealed="true"] {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.photo-stack-gallery__stack__card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--hover-bg);
  box-shadow: var(--elevated-media-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.photo-stack-gallery__stack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: var(--card-inner-ring);
  border-radius: inherit;
  pointer-events: none;
}

.photo-stack-gallery__stack__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
}

.photo-stack-gallery__stack__slot:nth-child(1) { z-index: 1; }
.photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translate(-19px, 1px) rotate(-9deg);
}

.photo-stack-gallery__stack__slot:nth-child(2) { z-index: 3; }
.photo-stack-gallery__stack__slot:nth-child(2) .photo-stack-gallery__stack__card {
  transform: translateY(8px) rotate(1deg);
}

.photo-stack-gallery__stack__slot:nth-child(3) { z-index: 2; }
.photo-stack-gallery__stack__slot:nth-child(3) .photo-stack-gallery__stack__card {
  transform: translate(20px, 2px) rotate(9deg);
}

.photo-stack-gallery__stack[data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translate(-29px, -4px) rotate(-12deg);
}

.photo-stack-gallery__stack[data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(2) .photo-stack-gallery__stack__card {
  transform: translateY(2px) rotate(0deg);
}

.photo-stack-gallery__stack[data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(3) .photo-stack-gallery__stack__card {
  transform: translate(30px, -3px) rotate(12deg);
}

.photo-stack-gallery__stack[data-count="1"] .photo-stack-gallery__stack__slot:nth-child(1) { z-index: 2; }
.photo-stack-gallery__stack[data-count="1"] .photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translateY(4px) rotate(-2deg);
}
.photo-stack-gallery__stack[data-count="1"][data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translateY(-3px) rotate(0deg);
}

.photo-stack-gallery__stack[data-count="2"] .photo-stack-gallery__stack__slot:nth-child(1) { z-index: 1; }
.photo-stack-gallery__stack[data-count="2"] .photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translate(-13px, 4px) rotate(-6deg);
}
.photo-stack-gallery__stack[data-count="2"] .photo-stack-gallery__stack__slot:nth-child(2) { z-index: 2; }
.photo-stack-gallery__stack[data-count="2"] .photo-stack-gallery__stack__slot:nth-child(2) .photo-stack-gallery__stack__card {
  transform: translate(13px, 2px) rotate(6deg);
}
.photo-stack-gallery__stack[data-count="2"][data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(1) .photo-stack-gallery__stack__card {
  transform: translate(-22px, -2px) rotate(-9deg);
}
.photo-stack-gallery__stack[data-count="2"][data-fanned="true"] .photo-stack-gallery__stack__slot:nth-child(2) .photo-stack-gallery__stack__card {
  transform: translate(22px, -3px) rotate(9deg);
}

/* Scattered 6-Card Gallery Dialog */
.photo-stack-gallery__dialog {
  position: fixed;
  z-index: 90;
  inset: 0;
}

.photo-stack-gallery__gallery__surface {
  position: fixed;
  z-index: 89;
  inset: 0;
  background: var(--background);
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.photo-stack-gallery__dialog.is-open .photo-stack-gallery__gallery__surface {
  opacity: 1;
}

.photo-stack-gallery__gallery {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--foreground) 18%, transparent) transparent;
  background: transparent;
  color: var(--foreground);
  isolation: isolate;
}

.photo-stack-gallery__gallery__stage {
  --gallery-stage-top: max(28px, calc(env(safe-area-inset-top) + 18px));
  --gallery-stage-bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--menu-bar-height) + 40px);
  --gallery-cell-max-h: clamp(190px, 34dvh, 270px);
  position: relative;
  min-height: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: clamp(20px, 4vw, 32px);
  padding:
    var(--gallery-stage-top)
    max(20px, env(safe-area-inset-right))
    var(--gallery-stage-bottom)
    max(20px, env(safe-area-inset-left));
}

.photo-stack-gallery__gallery__stage[data-overflow="true"] {
  align-content: start;
}

.photo-stack-gallery__gallery__stage[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.photo-stack-gallery__empty {
  position: absolute;
  inset: 0 24px calc(var(--menu-bar-height) + 40px);
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 340;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--foreground) 52%, transparent);
  opacity: 0;
  transition: opacity 0.24s ease-out 0.08s;
}

.photo-stack-gallery__dialog.is-open .photo-stack-gallery__empty {
  opacity: 1;
}

.photo-stack-gallery__gallery__slot {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, calc(var(--gallery-cell-max-h) * var(--photo-aspect, 1)));
  aspect-ratio: var(--photo-aspect, 4 / 3);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: opacity 0.2s ease-out;
}

.photo-stack-gallery__gallery__slot:active:not(:disabled) .photo-stack-gallery__gallery__card {
  transform: scale(0.985);
}

.photo-stack-gallery__gallery__slot[data-dimmed="true"] {
  opacity: 0.14;
  filter: blur(5px);
  pointer-events: none;
}

.photo-stack-gallery__gallery__slot[data-selected="true"] {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.photo-stack-gallery__gallery__card,
.photo-stack-gallery__detail__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--hover-bg);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.32), 0 2px 8px -2px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .photo-stack-gallery__gallery__card,
html[data-theme="light"] .photo-stack-gallery__detail__media {
  box-shadow: 0 12px 30px -12px rgba(15, 17, 21, 0.16), 0 2px 8px -2px rgba(15, 17, 21, 0.08);
}

.photo-stack-gallery__gallery__card {
  backface-visibility: hidden;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.photo-stack-gallery__gallery__card img,
.photo-stack-gallery__detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
}

.photo-stack-gallery__gallery__slot:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--foreground) 56%, transparent);
  outline-offset: 6px;
  border-radius: 8px;
}

@media (hover: hover) {
  .photo-stack-gallery__gallery__slot:hover:not(:disabled) .photo-stack-gallery__gallery__card {
    transform: translateY(-3px);
  }
}

/* Single-photo detail view (strict original aspect ratio) */
.photo-stack-gallery__detail {
  position: fixed;
  z-index: 91;
  inset: 0;
  overflow: clip;
  color: var(--foreground);
  pointer-events: none;
}

.photo-stack-gallery__detail__content {
  --detail-max-w: min(92vw, 560px);
  --detail-max-h: calc(100dvh - 216px);
  position: absolute;
  inset: max(20px, env(safe-area-inset-top)) 20px calc(28px + var(--menu-bar-height) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.photo-stack-gallery__detail__media {
  width: min(var(--detail-max-w), calc(var(--detail-max-h) * var(--photo-aspect, 1)));
  height: auto;
  aspect-ratio: var(--photo-aspect, 4 / 3);
  border-radius: 6px;
  pointer-events: auto;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.photo-stack-gallery__detail__preview-image,
.photo-stack-gallery__detail__full-image {
  position: absolute;
  inset: 0;
}

.photo-stack-gallery__detail__full-image {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.photo-stack-gallery__detail__full-image.is-loaded {
  opacity: 1;
}

.photo-stack-gallery__detail__meta {
  display: flex;
  width: min(92vw, 620px);
  padding-inline: 16px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease-out 0.1s, transform 0.22s ease-out 0.1s;
}

.photo-stack-gallery__detail.is-active .photo-stack-gallery__detail__meta {
  opacity: 1;
  transform: translateY(0);
}

.photo-stack-gallery__detail__meta:has(> .photo-stack-gallery__detail__caption[hidden] + .photo-stack-gallery__detail__nav[hidden]) {
  display: none;
}

.photo-stack-gallery__detail__caption {
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 66%, transparent);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.photo-stack-gallery__detail__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.photo-stack-gallery__detail__nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--foreground) 64%, transparent);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.photo-stack-gallery__detail__nav-btn:hover {
  color: var(--foreground);
}

.photo-stack-gallery__detail__nav-btn:active {
  transform: scale(0.96);
}

.photo-stack-gallery__detail__nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.photo-stack-gallery__detail__nav-btn svg {
  display: block;
}

.photo-stack-gallery__detail__nav-btn path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-stack-gallery__detail__counter {
  min-width: 3.5em;
  text-align: center;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--foreground) 44%, transparent);
}

@media (max-width: 699px) {
  .frames-page {
    padding:
      max(116px, calc(env(safe-area-inset-top) + 96px))
      max(24px, env(safe-area-inset-right))
      max(40px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
    overflow-y: auto;
  }

  .avatar-badge {
    margin-bottom: 24px;
  }

  .intro-line {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.38;
  }

  .photo-stack-gallery__trigger {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1.25px;
  }

  .photo-stack-gallery__gallery__card {
    border-radius: 5px;
  }

  .photo-stack-gallery__gallery__slot:focus-visible {
    border-radius: 7px;
  }

  .photo-stack-gallery__detail__content {
    --detail-max-w: min(92vw, 520px);
    --detail-max-h: calc(100dvh - 216px);
    inset:
      max(20px, calc(env(safe-area-inset-top) + 12px))
      max(16px, env(safe-area-inset-right))
      calc(max(24px, env(safe-area-inset-bottom)) + var(--menu-bar-height) + 20px)
      max(16px, env(safe-area-inset-left));
    gap: 14px;
  }

  .photo-stack-gallery__detail__media {
    border-radius: 5px;
  }

  .photo-stack-gallery__detail__meta {
    width: min(100%, 420px);
    padding-inline: 12px;
  }
}

@media (min-width: 700px) {
  .photo-stack-gallery__gallery__stage {
    --gallery-cell-max-h: clamp(230px, 34dvh, 330px);
    max-width: 1120px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4.4vw, 56px);
    padding: max(56px, env(safe-area-inset-top)) 48px calc(32px + var(--menu-bar-height) + 64px);
  }

  .photo-stack-gallery__gallery__stage[data-count="1"] {
    max-width: 680px;
    --gallery-cell-max-h: clamp(320px, 52dvh, 460px);
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-stack-gallery__gallery__stage[data-count="2"] {
    max-width: 860px;
    --gallery-cell-max-h: clamp(280px, 44dvh, 390px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-stack-gallery__detail__content {
    --detail-max-w: min(86vw, 1080px);
    --detail-max-h: calc(100dvh - 196px);
    inset-inline: 48px;
    gap: 18px;
  }
}

@media (max-height: 640px) {
  .photo-stack-gallery__detail__content {
    --detail-max-h: calc(100dvh - 180px);
    gap: 12px;
  }
  .photo-stack-gallery__detail__meta {
    width: min(100%, 480px);
    padding-inline: 16px;
  }
}

/* Standalone circular gallery close button */
.gallery-close-pos {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}

.photo-stack-gallery__gallery__close {
  appearance: none;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--menu-surface);
  color: var(--menu-ink);
  box-shadow: var(--elevated-media-shadow);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-close-pos.is-visible .photo-stack-gallery__gallery__close {
  opacity: 1;
  transform: scale(1);
}

.gallery-close-pos.is-visible .photo-stack-gallery__gallery__close:active {
  transform: scale(0.9);
}

.photo-stack-gallery__gallery__close svg {
  width: 20px;
  height: 20px;
}

.photo-stack-gallery__gallery__close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.photo-stack-gallery__gallery__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Studio workbench */
dialog.studio {
  --studio-paper: #191a1b;
  --studio-stage: #202429;
  --studio-work: #25231f;
  --studio-mat: #16191c;
  --studio-field: #302e29;
  --studio-hover: #403c35;
  --studio-ink: #f5f1e9;
  --studio-muted: #c1b9ad;
  --studio-quiet: #a49c90;
  --studio-line: #393631;
  --studio-edge: #94897a;
  --studio-accent: #efad91;
  --studio-selection: #61453a;
  --studio-error: #ffb6aa;
  --studio-success: #b2d0ae;
  --studio-danger: #9d4239;
  --studio-danger-ink: #fff8f3;
  --studio-gutter: clamp(16px, 2.5vw, 29px);
  --studio-radius: 6px;
  --studio-control-size: 36px;
  width: min(1120px, calc(100% - 72px));
  height: min(752px, calc(100dvh - 64px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--studio-paper);
  color: var(--studio-ink);
  font: 400 14px/1.45 var(--font-sans);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 24px 72px rgb(0 0 0 / 48%);
  color-scheme: dark;
}

html[data-theme="light"] dialog.studio {
  --studio-paper: #fcfbf9;
  --studio-stage: #e7e8e8;
  --studio-work: #fcfbf8;
  --studio-mat: #d9dbda;
  --studio-field: #f5f2ed;
  --studio-hover: #ece6de;
  --studio-ink: #211d19;
  --studio-muted: #514a40;
  --studio-quiet: #62594e;
  --studio-line: #dfd7cb;
  --studio-edge: #85796a;
  --studio-accent: #91442d;
  --studio-selection: #f0d2c4;
  --studio-error: #9a3025;
  --studio-success: #386344;
  --studio-danger: #8b3027;
  --studio-danger-ink: #fff8f3;
  box-shadow: 0 24px 64px rgb(40 27 13 / 20%);
  color-scheme: light;
}

dialog.studio:has(#sign-in:not([hidden])) {
  width: min(400px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100dvh - 40px);
}

dialog.studio::backdrop {
  background: rgb(0 0 0 / 68%);
}

html[data-theme="light"] dialog.studio::backdrop {
  background: rgb(38 28 18 / 34%);
}

.studio ::selection {
  background: var(--studio-selection);
  color: var(--studio-ink);
}

.studio-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  max-height: inherit;
  background: var(--studio-stage);
}

.studio:has(#sign-in:not([hidden])) .studio-shell {
  height: auto;
  background: var(--studio-paper);
}

.studio-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--studio-gutter) 0;
}

.studio-title {
  margin: 0;
  font: 620 22px/1.1 var(--font-sans);
  letter-spacing: -0.025em;
}

.studio-header form {
  margin: 0;
}

.studio button.studio-close {
  display: grid;
  place-items: center;
  min-width: var(--studio-control-size);
  padding: 0;
  font: 400 23px/1 var(--font-sans);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-tabs {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 6px 0 7px var(--studio-gutter);
}

.studio button,
.studio-details__summary {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.studio-tab {
  min-height: var(--studio-control-size);
  padding: 5px 12px;
  border: 0;
  border-radius: var(--studio-radius);
  background: transparent;
  color: var(--studio-muted);
  font-size: 13px;
}

.studio-tab:hover,
.studio-tab[aria-selected="true"] {
  color: var(--studio-ink);
}

.studio-tab[aria-selected="true"],
.studio-tab:hover {
  background: var(--studio-hover);
}

.studio-scroll {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--studio-edge) var(--studio-paper);
  padding: 0;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
}

.studio-layout--archive {
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
}

.studio-layout--archive:has(#studio-archive-selection[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.studio-archive-detail:has(#studio-archive-selection[hidden]) {
  display: none;
}

#studio-workspace,
#studio-workspace > [role="tabpanel"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.studio-stage,
.studio-work {
  min-width: 0;
  padding: var(--studio-gutter);
}

.studio-stage {
  background: var(--studio-stage);
}

.studio-work {
  align-content: start;
  background: var(--studio-work);
}

.studio [role="tabpanel"]:focus-visible {
  outline-offset: 4px;
}

.studio-footer {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 7px var(--studio-gutter);
}

.studio-footer:has(#studio-status:empty) {
  display: none;
}

.studio:has(#sign-in:not([hidden])) .studio-scroll {
  padding: 10px var(--studio-gutter) 12px;
}

.studio:has(#sign-in:not([hidden])) .studio-footer {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-bottom: 12px;
}

#studio-status {
  margin: 0;
  color: var(--studio-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

#studio-status[data-tone="error"],
.studio-hint[data-tone="error"] {
  color: var(--studio-error);
}

#studio-status[data-tone="ok"],
.studio-hint[data-tone="ok"] {
  color: var(--studio-success);
}

.studio-form,
.studio-details__body,
.studio-archive__editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.studio-field,
.studio-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.studio-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-field__head,
.studio-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}

.studio-field label {
  font-weight: 600;
}

.studio :is(input[type="text"], input[type="password"], textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
  background: var(--studio-field);
  color: var(--studio-ink);
  font: inherit;
}

.studio textarea {
  min-height: 124px;
  max-height: 360px;
  resize: vertical;
}

.studio textarea.studio-textarea--compact {
  min-height: 64px;
}

.studio input::placeholder,
.studio textarea::placeholder {
  color: var(--studio-quiet);
  opacity: 1;
}

.studio input[aria-invalid="true"] {
  border-color: var(--studio-error);
}

.studio input:disabled,
.studio textarea:disabled {
  -webkit-text-fill-color: var(--studio-quiet);
  opacity: 1;
}

.studio-hint,
.studio-list__detail {
  margin: 0;
  color: var(--studio-quiet);
  font-size: 13px;
}

.studio-hint {
  overflow-wrap: anywhere;
}

.studio-copy-preview {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: clamp(210px, 46vh, 500px);
  padding: clamp(15px, 3vw, 34px);
  border-radius: var(--studio-radius);
  background: var(--studio-mat);
}

.studio-copy-preview img {
  border-radius: 50%;
}

.studio-stage--words h3 {
  margin: 0 0 12px;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 600;
}

#copy-preview {
  margin: 0;
  max-width: 58ch;
  font: 400 clamp(18px, 2.4vw, 32px)/1.33 "Fraunces", Georgia, serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#copy-preview mark {
  padding: 0;
  color: var(--studio-ink);
  background: transparent;
  text-decoration: underline wavy var(--studio-accent);
  text-underline-offset: 3px;
}

.studio-photo-view {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--studio-mat);
  border-radius: var(--studio-radius);
}

html:not([data-theme="light"]) .studio-photo-view:has(.studio-photo-view__image:not([hidden]))::after {
  position: absolute;
  z-index: -1;
  inset: auto 16% -10px;
  height: 24px;
  background: radial-gradient(ellipse, rgb(222 150 78 / 13%), transparent 72%);
  content: "";
}

.studio-photo-view__empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.studio-photo-view__image {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
}

.studio-photo-view__image img {
  width: 100%;
  height: 100%;
  border-radius: var(--studio-radius);
  object-fit: contain;
}

.studio-stage.is-dragover .studio-photo-view {
  outline: 2px solid var(--studio-accent);
  outline-offset: 4px;
}

.studio-preview-meta {
  display: flex;
  flex-wrap: wrap;
  min-height: 38px;
  justify-content: space-between;
  align-items: center;
  gap: 2px 10px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.studio-remove-action {
  position: relative;
  flex: none;
}

.studio .studio-secondary.studio-remove-icon {
  display: grid;
  width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--studio-error);
}

.studio .studio-secondary.studio-remove-icon:disabled {
  color: var(--studio-quiet);
  opacity: 0.58;
}

.studio .studio-secondary.studio-remove-icon:hover:not(:disabled) {
  color: var(--studio-error);
}

.studio .studio-remove-icon:active:not(:disabled) {
  background: var(--studio-field);
}

.studio-remove-hint {
  position: absolute;
  z-index: 2;
  inset: auto 0 100% auto;
  padding: 5px 8px;
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
  background: var(--studio-paper);
  color: var(--studio-ink);
  font-size: 12px;
  visibility: hidden;
  white-space: nowrap;
}

.studio-remove-action:not([data-hint-dismissed]) button:not(:disabled):focus-visible + .studio-remove-hint {
  visibility: visible;
}

@media (hover: hover) {
  .studio-remove-action:not([data-hint-dismissed]):hover:has(button:not(:disabled)) .studio-remove-hint {
    visibility: visible;
  }
}

.studio-photo-formats {
  margin-top: 12px;
}

.studio-queue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.studio-queue-tools {
  margin-top: 13px;
}

.studio button.studio-thumb {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 63px;
  height: 49px;
  padding: 3px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--studio-field);
  color: var(--studio-ink);
  overflow: hidden;
}

.studio button.studio-thumb[aria-pressed="true"] {
  border-color: var(--studio-accent);
}

.studio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.studio-thumb__status {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--studio-ink);
  color: var(--studio-paper);
  font-size: 11px;
}

.studio-queue-issues > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 9px;
  padding-block: 5px;
  overflow-wrap: anywhere;
}

.studio-queue-issues .studio-hint {
  display: block;
}

.studio .studio-secondary.studio-add {
  background: var(--studio-field);
}

.studio-details {
  min-width: 0;
}

.studio-details__summary {
  min-height: 40px;
  padding-block: 9px;
  color: var(--studio-muted);
}

.studio-details__summary:hover {
  color: var(--studio-ink);
}

.studio-details__summary .studio-hint {
  margin-inline-start: 6px;
  font-weight: 400;
}

.studio-details__body {
  padding-block: 4px 16px;
}

.studio :is(.studio-submit, .studio-secondary) {
  min-height: var(--studio-control-size);
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: var(--studio-radius);
  font-size: 13px;
}

.studio .studio-submit {
  border-color: var(--studio-ink);
  background: var(--studio-ink);
  color: var(--studio-paper);
}

.studio .studio-submit:hover:not(:disabled) {
  border-color: var(--studio-accent);
  background: var(--studio-accent);
}

.studio .studio-secondary {
  background: transparent;
  color: var(--studio-muted);
}

.studio .studio-secondary:hover:not(:disabled) {
  background: var(--studio-hover);
  color: var(--studio-ink);
}

.studio .studio-submit:disabled,
.studio .studio-secondary:disabled {
  border-color: transparent;
  background: var(--studio-field);
  color: var(--studio-quiet);
  cursor: default;
}

.studio .studio-secondary:disabled {
  background: transparent;
}

.studio :focus-visible {
  outline: 2px solid var(--studio-accent);
  outline-offset: 2px;
}

.studio-submit:disabled {
  opacity: 0.78;
}

.studio-progress {
  color: var(--studio-muted);
  font-size: 13px;
}

.studio-progress progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--studio-line);
}

.studio-progress progress::-webkit-progress-bar {
  border-radius: 8px;
  background: var(--studio-line);
}

.studio-progress progress::-webkit-progress-value {
  border-radius: 8px;
  background: var(--studio-accent);
}

.studio-progress progress::-moz-progress-bar {
  border-radius: 8px;
  background: var(--studio-accent);
}

.studio-list-head {
  min-height: var(--studio-control-size);
}

.studio-list-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

#studio-archive-count {
  margin-inline-start: 5px;
  color: var(--studio-quiet);
  font-size: 13px;
  font-weight: 400;
}

.studio-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.studio-list > li + li {
  margin-top: 3px;
}

.studio .studio-list__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  text-align: start;
  color: var(--studio-ink);
  background: transparent;
  border: 0;
  border-radius: var(--studio-radius);
}

.studio .studio-list__row[aria-pressed="true"],
.studio .studio-list__row:hover:not(:disabled) {
  background: var(--studio-hover);
}

.studio-list__thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 48px;
  border-radius: 4px;
  background: var(--studio-field);
  overflow: hidden;
}

.studio-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-list__title,
.studio-list__detail {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-list__title {
  font-weight: 600;
}

.studio-list__detail + .studio-list__detail {
  font-size: 12px;
}

.studio-list__detail[data-tone="error"] {
  color: var(--studio-error);
  white-space: normal;
  overflow-wrap: anywhere;
}

.studio-archive__editor {
  padding: 13px 12px;
  margin-block: 5px 7px;
  border-radius: var(--studio-radius);
  background: var(--studio-paper);
}

.studio-archive__editor .studio-remove-action {
  margin-inline-start: auto;
}

.studio-archive-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(180px, 37vh, 350px);
  margin: 0;
  border-radius: var(--studio-radius);
  background: var(--studio-mat);
  overflow: hidden;
}

#studio-archive-back {
  display: none;
}

.studio-archive-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-confirm {
  width: min(404px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid var(--studio-edge);
  border-radius: 10px;
  color: var(--studio-ink);
  background: var(--studio-paper);
  box-shadow: 0 16px 48px rgb(0 0 0 / 35%);
}

.studio-confirm::backdrop {
  background: rgb(0 0 0 / 45%);
}

.studio-confirm h3 {
  margin: 0;
  font-size: 18px;
}

.studio-confirm__description {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-confirm__description img {
  border-radius: 5px;
  object-fit: cover;
}

.studio-confirm p {
  margin: 8px 0 18px;
  color: var(--studio-muted);
  overflow-wrap: anywhere;
}

.studio-confirm .studio-actions {
  justify-content: flex-end;
}

.studio .studio-danger {
  border-color: var(--studio-danger);
  background: var(--studio-danger);
  color: var(--studio-danger-ink);
}

.studio .studio-danger:hover:not(:disabled) {
  border-color: var(--studio-ink);
  background: var(--studio-danger);
  box-shadow: inset 0 0 0 1px var(--studio-ink);
}

@media (max-width: 740px) {
  dialog.studio {
    --studio-control-size: 44px;
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
  }

  dialog.studio:has(#sign-in:not([hidden])) {
    max-height: calc(100dvh - 16px);
  }

  .studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-layout--archive:not([data-detail]) .studio-archive-detail,
  .studio-layout--archive[data-detail] .studio-archive {
    display: none;
  }

  #studio-archive-back {
    display: block;
    justify-self: start;
    padding-inline: 0;
  }

  .studio-header {
    gap: 4px;
    padding-top: 6px;
  }

  .studio-copy-preview {
    min-height: 192px;
  }

  .studio-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio :is(input[type="text"], input[type="password"], textarea) {
    font-size: 16px;
  }

  .studio .studio-list__row {
    gap: 8px;
  }

  .studio-list__thumb {
    width: 42px;
    height: 40px;
  }

}

@media (max-width: 440px) {
  .studio-shell {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .studio-tabs {
    grid-column: 1 / -1;
    padding-block: 3px;
  }

  .studio-footer {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog:is(.studio, .studio-confirm) {
    --studio-dialog-duration: 170ms;
    opacity: 0;
    transform: translateY(10px) scale(0.986);
    transition: opacity var(--studio-dialog-duration) ease-out,
      transform var(--studio-dialog-duration) cubic-bezier(0.22, 0.68, 0.25, 1),
      display var(--studio-dialog-duration) allow-discrete, overlay var(--studio-dialog-duration) allow-discrete;
  }

  dialog:is(.studio, .studio-confirm)[open] {
    --studio-dialog-duration: 220ms;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  dialog:is(.studio, .studio-confirm)::backdrop {
    opacity: 0;
    transition: opacity 170ms ease-out, display 170ms allow-discrete, overlay 170ms allow-discrete;
  }

  dialog:is(.studio, .studio-confirm)[open]::backdrop {
    opacity: 1;
    transition-duration: 220ms;
  }

  @starting-style {
    dialog:is(.studio, .studio-confirm)[open] {
      opacity: 0;
      transform: translateY(10px) scale(0.986);
    }

    dialog:is(.studio, .studio-confirm)[open]::backdrop {
      opacity: 0;
    }
  }

  .studio-tab,
  .studio-close {
    transition: color 110ms ease-out, background-color 110ms ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .photo-stack-gallery__stack__card,
  .photo-stack-gallery__gallery__card,
  .photo-stack-gallery__stack-position,
  .photo-stack-gallery__gallery__close {
    transition-duration: 0.01ms !important;
  }
}
