:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #eeeeeb;
  --ink: #171717;
  --muted: #72726d;
  --line: #deded8;
  --lime: #b7f34d;
  --rose: #ff6f91;
  --cyan: #64d8ff;
  --amber: #ffbd59;
  --shadow: 0 12px 32px rgba(23, 23, 23, 0.07);
  --sidebar: 216px;
  --cursor-glow: url("./assets/cursor-glow.svg") 3 2, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  cursor: var(--cursor-glow);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 28rem),
    var(--bg);
}

.click-spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  user-select: none;
}

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

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

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

body.detail-open {
  overflow: hidden;
}

body.detail-open .content {
  pointer-events: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.9);
  backdrop-filter: blur(18px);
  z-index: 3;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -2px;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.presence-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7ed321;
  box-shadow: 0 0 0 1px rgba(42, 94, 11, 0.16);
}

.presence-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(126, 211, 33, 0.5);
  border-radius: inherit;
  animation: presence-pulse 1.8s ease-out infinite;
}

@keyframes presence-pulse {
  0% {
    opacity: 0.56;
    transform: scale(0.42);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.section-nav {
  display: grid;
  gap: 3px;
  margin-top: 30px;
}

.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.section-link span {
  color: inherit;
  font-size: 13px;
  font-weight: 720;
}

.section-link small {
  color: inherit;
  font-size: 11px;
  font-weight: 620;
}

.section-link:hover,
.section-link.is-active {
  color: var(--ink);
  background: var(--surface-soft);
}

.section-link.is-active span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--ink);
  vertical-align: 1px;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.content {
  min-width: 0;
  padding: 34px 28px 44px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.page-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
  flex-wrap: wrap;
}

.eyebrow {
  order: 0;
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  order: 1;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
}

#page-description {
  order: 2;
  max-width: 560px;
  margin-bottom: 0;
  color: #30302d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 560;
}

.head-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
}

.head-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.toolbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 300px) minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px;
  margin: 0 -28px 22px;
  padding: 10px 28px;
  background: rgba(247, 247, 244, 0.86);
  backdrop-filter: blur(18px);
  z-index: 2;
}

.search-box {
  position: relative;
  display: block;
}

.search-box input,
.sort-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-box input {
  min-height: 36px;
  padding: 0 13px 0 36px;
  font-size: 13px;
}

.search-box input:focus,
.sort-box select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.08);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #74746f;
  border-radius: 999px;
  transform: translateY(-56%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #74746f;
  transform: rotate(45deg);
}

.filter-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-strip.is-placeholder {
  min-height: 36px;
  visibility: hidden;
  pointer-events: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #70706b;
  background: #ecece8;
  font-size: 13px;
  font-weight: 690;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: var(--ink);
}

.sort-box select {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.view-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.view-mode-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.view-mode-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-mode-button:hover,
.view-mode-button:focus-visible {
  outline: 0;
  background: rgba(238, 238, 235, 0.54);
}

.view-mode-button.is-active {
  background: #e7e8ec;
}

.view-mode-button:active {
  transform: scale(0.96);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  transition: max-width 180ms ease;
}

.gallery-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.gallery.is-uniform,
.gallery.is-single {
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
}

.gallery.is-uniform .work-card .media-frame::before {
  aspect-ratio: 4 / 3;
}

.gallery.is-single {
  margin-right: auto;
  margin-left: auto;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(222, 222, 216, 0.72);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.03);
}

.work-card:hover {
  border-color: rgba(23, 23, 23, 0.24);
  box-shadow:
    0 1px 0 rgba(23, 23, 23, 0.03),
    0 14px 34px rgba(23, 23, 23, 0.08);
}

.media-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #e8e8e2;
}

.media-frame::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
}

.work-card.is-wide .media-frame::before {
  aspect-ratio: 16 / 9;
}

.work-card.is-tall .media-frame::before {
  aspect-ratio: 4 / 5;
}

.work-card.is-portrait .media-frame::before {
  aspect-ratio: 9 / 14;
}

.work-card.is-square .media-frame::before {
  aspect-ratio: 1 / 1;
}

.app-recap-card .media-frame {
  background: transparent;
}

.gallery.is-uniform .work-card.app-recap-card .media-frame::before,
.work-card.app-recap-card .media-frame::before {
  aspect-ratio: var(--card-aspect, 9 / 19.5);
}

.app-recap-card .media-link img {
  object-fit: cover;
  object-position: top center;
}

.app-recap-card:hover .media-link img {
  transform: none;
}

.app-recap-type,
.app-recap-count {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(58, 58, 56, 0.34);
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
  pointer-events: none;
}

.app-recap-type {
  top: 12px;
  left: 12px;
}

.app-recap-count {
  top: 12px;
  right: 12px;
}

.app-recap-icon {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(23, 23, 23, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

.app-recap-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.media-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.media-link img,
.media-link video,
.motion-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-link img,
.media-link video {
  object-fit: cover;
  transition: transform 220ms ease;
}

.work-card:hover .media-link img,
.work-card:hover .media-link video {
  transform: scale(1.025);
}

.motion-cover {
  overflow: hidden;
  background: #111111;
  isolation: isolate;
}

.motion-cover span {
  position: absolute;
  display: block;
}

.media-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 24px;
  color: #6f6f69;
  background:
    linear-gradient(135deg, rgba(247, 247, 244, 0.92), rgba(238, 238, 235, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(23, 23, 23, 0.04) 12px 13px);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.media-missing strong {
  color: #333330;
  font-size: 13px;
}

.media-missing small {
  max-width: 26ch;
  overflow-wrap: anywhere;
}

.motion-cover--hydrangea {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 20% 86%, rgba(183, 243, 77, 0.26), transparent 30%),
    linear-gradient(135deg, #10100f 0%, #1f2419 48%, #050505 100%);
}

.motion-orbit {
  inset: 17%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 46% 54% 58% 42%;
  animation: orbitSpin 9s linear infinite;
}

.orbit-b {
  inset: 25%;
  border-color: rgba(183, 243, 77, 0.35);
  animation-duration: 7s;
  animation-direction: reverse;
}

.orbit-c {
  inset: 10% 28%;
  border-color: rgba(255, 111, 145, 0.35);
  animation-duration: 11s;
}

.motion-petal {
  width: 32%;
  height: 26%;
  border-radius: 999px 999px 50% 50%;
  background: linear-gradient(135deg, #ff6f91, #ffd166 55%, #b7f34d);
  filter: saturate(1.12);
  transform-origin: 50% 72%;
  animation: petalPulse 3.6s ease-in-out infinite;
}

.petal-a {
  left: 24%;
  top: 23%;
  transform: rotate(-24deg);
}

.petal-b {
  right: 22%;
  top: 25%;
  background: linear-gradient(135deg, #64d8ff, #b8a7ff 54%, #ff6f91);
  transform: rotate(34deg);
  animation-delay: -0.7s;
}

.petal-c {
  left: 29%;
  bottom: 20%;
  background: linear-gradient(135deg, #b7f34d, #64d8ff);
  transform: rotate(155deg);
  animation-delay: -1.4s;
}

.petal-d {
  right: 28%;
  bottom: 22%;
  background: linear-gradient(135deg, #ffd166, #ff6f91);
  transform: rotate(205deg);
  animation-delay: -2.1s;
}

.motion-core {
  left: 50%;
  top: 50%;
  width: 22%;
  height: 22%;
  border-radius: 999px;
  background: #f7f7f4;
  box-shadow: 0 0 0 12px rgba(247, 247, 244, 0.1);
  transform: translate(-50%, -50%);
  animation: coreBeat 2.4s ease-in-out infinite;
}

.motion-line {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transform-origin: left center;
}

.line-a {
  left: 10%;
  top: 36%;
  width: 36%;
  transform: rotate(-18deg);
  animation: lineSweep 3.8s ease-in-out infinite;
}

.line-b {
  right: 9%;
  bottom: 31%;
  width: 40%;
  transform: rotate(152deg);
  animation: lineSweep 4.2s ease-in-out infinite reverse;
}

.motion-cover--ampersand {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f4efe5 0%, #f8f8f4 44%, #171717 44%, #171717 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}

.type-grid {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(183, 243, 77, 0.24), transparent 32%);
  animation: gridDrift 5.2s ease-in-out infinite alternate;
}

.amp {
  left: 50%;
  top: 50%;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 22vw, 240px);
  font-weight: 800;
  line-height: 0.8;
  transform: translate(-50%, -50%);
}

.amp-back {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.54);
  transform: translate(-45%, -52%) scale(1.12);
  animation: ampOut 5s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}

.amp-front {
  color: #171717;
  text-shadow: 42px 0 0 #b7f34d, -42px 0 0 #ff6f91;
  animation: ampIn 5s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}

.type-pill {
  min-width: 56px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #171717;
  background: #f7f7f4;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.12);
}

.pill-in {
  left: 12%;
  top: 18%;
  animation: pillIn 5s ease-in-out infinite;
}

.pill-out {
  right: 12%;
  bottom: 18%;
  color: #f7f7f4;
  background: #171717;
  animation: pillOut 5s ease-in-out infinite;
}

.type-line {
  width: 42%;
  height: 2px;
  background: #171717;
  transform-origin: left center;
  animation: typeLine 5s ease-in-out infinite;
}

.line-one {
  left: 8%;
  bottom: 28%;
}

.line-two {
  right: 8%;
  top: 26%;
  background: #f7f7f4;
  animation-delay: -1.2s;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes petalPulse {
  0%,
  100% {
    scale: 0.96;
    filter: saturate(1.05);
  }
  50% {
    scale: 1.08;
    filter: saturate(1.35);
  }
}

@keyframes coreBeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes lineSweep {
  0%,
  100% {
    scale: 0.3 1;
    opacity: 0.2;
  }
  45%,
  60% {
    scale: 1 1;
    opacity: 0.78;
  }
}

@keyframes gridDrift {
  from {
    transform: translate(-2%, -2%);
  }
  to {
    transform: translate(2%, 2%);
  }
}

@keyframes ampIn {
  0%,
  100% {
    transform: translate(-68%, -50%) scale(0.92);
    opacity: 0.38;
  }
  42%,
  64% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes ampOut {
  0%,
  100% {
    transform: translate(-38%, -52%) scale(1.12);
    opacity: 0.2;
  }
  42%,
  64% {
    transform: translate(-50%, -52%) scale(1.22);
    opacity: 0.88;
  }
}

@keyframes pillIn {
  0%,
  100% {
    transform: translateX(-34px);
    opacity: 0.1;
  }
  38%,
  70% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pillOut {
  0%,
  100% {
    transform: translateX(34px);
    opacity: 0.1;
  }
  38%,
  70% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes typeLine {
  0%,
  100% {
    scale: 0.18 1;
    opacity: 0.28;
  }
  50% {
    scale: 1 1;
    opacity: 0.9;
  }
}

.card-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 23, 23, 0.68);
  box-shadow: 0 1px 10px rgba(23, 23, 23, 0.22);
  z-index: 4;
}

.card-action::before {
  content: "↗";
  font-size: 17px;
  line-height: 1;
}

.card-action:hover,
.card-action:focus-visible {
  background: #171717;
  transform: translateY(-1px);
}

.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1.5px solid rgba(153, 75, 236, 0.82);
  border-radius: 8px;
  color: #8a46d8;
  background: rgba(153, 75, 236, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(42, 20, 62, 0.12);
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #555550;
  background: #f0f0ec;
  font-size: 11px;
  font-weight: 690;
}

.tag:nth-child(3n + 1) {
  background: rgba(183, 243, 77, 0.28);
}

.tag:nth-child(3n + 2) {
  background: rgba(100, 216, 255, 0.2);
}

.tag:nth-child(3n + 3) {
  background: rgba(255, 111, 145, 0.16);
}

.empty-state {
  max-width: 420px;
  margin: 96px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-viewer {
  position: fixed;
  inset: 0 0 0 var(--sidebar);
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  overflow: hidden;
  background: rgba(247, 247, 244, 0);
  opacity: 0;
  backdrop-filter: blur(0);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 20;
}

.detail-viewer.is-open {
  background: rgba(247, 247, 244, 0.34);
  opacity: 1;
  backdrop-filter: blur(6px);
}

.detail-viewer.is-closing {
  pointer-events: none;
}

.detail-panel {
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  padding: 28px 28px 24px;
  overflow-y: auto;
  border-right: 1px solid rgba(222, 222, 216, 0.72);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate3d(-36px, 0, 0);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.detail-viewer.is-open .detail-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.detail-viewer.is-closing .detail-panel {
  opacity: 0;
  transform: translate3d(-42px, 0, 0);
}

.detail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.detail-nav {
  display: flex;
  gap: 7px;
}

.detail-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #9a9a94;
  background: #eeeeeb;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.detail-icon-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.detail-icon-glyph--close::before,
.detail-icon-glyph--close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.detail-icon-glyph--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.detail-icon-glyph--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.detail-icon-glyph--arrow {
  transform: translateY(-1px);
}

.detail-icon-button:hover,
.detail-icon-button:focus-visible {
  color: var(--ink);
  outline: 0;
  background: #e0e0da;
}

.detail-icon-button:disabled {
  color: #c2c2bc;
  background: #f4f4f1;
  cursor: not-allowed;
  opacity: 0.62;
}

.detail-icon-button:disabled:hover,
.detail-icon-button:disabled:focus-visible {
  color: #c2c2bc;
  background: #f4f4f1;
}

.detail-section {
  margin: 0 0 2px;
  color: #9a9a94;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #333330;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 680;
}

.detail-avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.08);
}

.detail-avatar img,
.detail-avatar-dot {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.detail-avatar img {
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.detail-avatar-dot {
  background:
    radial-gradient(circle at 32% 30%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, var(--lime), var(--rose));
}

.detail-avatar.is-fallback img {
  display: none;
}

.detail-description {
  max-width: 28ch;
  margin: 0 0 28px;
  color: #9a9a94;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 520;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.detail-meta {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.detail-meta-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
}

.detail-meta dt {
  color: #9a9a94;
}

.detail-meta dd {
  margin: 0;
  color: #333330;
  text-align: right;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.detail-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #333330;
  background: #fff;
  font-size: 12px;
  font-weight: 740;
}

.detail-source-link:hover,
.detail-source-link:focus-visible {
  border-color: var(--ink);
  outline: 0;
}

.detail-source-link::after {
  content: "↗";
  margin-left: 7px;
  font-size: 13px;
}

.detail-stage {
  display: grid;
  min-width: 0;
  min-height: 100vh;
  place-items: center;
  padding: 0 clamp(28px, 5vw, 76px);
  cursor: var(--cursor-glow);
  opacity: 0;
  transform: translate3d(28px, 0, 0) scale(0.985);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1) 50ms,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1) 50ms;
  will-change: transform, opacity;
}

.detail-viewer.is-open .detail-stage {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.detail-viewer.is-closing .detail-stage {
  opacity: 0;
  transform: translate3d(32px, 0, 0) scale(0.985);
}

.detail-viewer.is-app-recap-detail .detail-stage {
  min-width: 0;
  overflow: hidden;
  place-items: center stretch;
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 56px);
}

.detail-preview {
  position: relative;
  width: min(100%, 1060px);
  max-width: 100%;
  max-height: calc(100vh - 112px);
  aspect-ratio: var(--detail-aspect, 16 / 9);
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  box-shadow: 0 28px 90px rgba(23, 23, 23, 0.24);
  cursor: default;
}

.detail-preview > img,
.detail-preview > video,
.detail-preview > .motion-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-preview > img,
.detail-preview > video {
  object-fit: contain;
}

.detail-preview.is-app-recap-preview {
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-recap-strip {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: clamp(18px, 4vh, 44px) clamp(24px, 5vw, 76px) clamp(22px, 5vh, 56px) 0;
  scroll-padding-inline: clamp(24px, 5vw, 76px);
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(23, 23, 23, 0.24) transparent;
  scrollbar-width: thin;
}

.app-recap-strip::-webkit-scrollbar {
  height: 8px;
}

.app-recap-strip::-webkit-scrollbar-track {
  background: transparent;
}

.app-recap-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.22);
}

.app-recap-shot {
  flex: 0 0 auto;
  aspect-ratio: var(--shot-aspect, 9 / 16);
  height: min(72vh, 760px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f1;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.12);
  scroll-snap-align: center;
}

.app-recap-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1480px) {
  .gallery {
    gap: 14px;
  }
}

@media (max-width: 1060px) {
  :root {
    --sidebar: 196px;
  }

  .detail-viewer {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .detail-panel {
    padding: 24px 24px 22px;
  }

  .detail-stage {
    padding: 0 24px;
  }

  .detail-viewer.is-app-recap-detail .detail-stage {
    padding-left: 24px;
  }

  .gallery {
    gap: 14px;
  }

  .toolbar {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) 132px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-name,
  .presence,
  .sidebar-footer {
    display: none;
  }

  .section-nav {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
  }

  .section-link {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
  }

  .section-link small {
    display: none;
  }

  .content {
    padding: 22px 16px 36px;
  }

  .page-head {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-head > div:first-child {
    display: grid;
    gap: 5px;
  }

  h1 {
    font-size: 20px;
  }

  #page-description {
    font-size: 13px;
  }

  .head-meta {
    justify-content: flex-start;
    min-width: 0;
  }

  .toolbar {
    margin: 0 -16px 16px;
    padding: 9px 16px;
    grid-template-columns: 1fr;
  }

  .filter-strip.is-placeholder {
    display: none;
  }

  .view-switcher {
    justify-content: flex-start;
  }

  .gallery {
    gap: 14px;
  }

  .detail-viewer {
    inset: 0;
    grid-template-columns: 1fr;
    overflow: auto;
    background: rgba(247, 247, 244, 0);
    backdrop-filter: blur(0);
  }

  .detail-viewer.is-open {
    background: rgba(247, 247, 244, 0.48);
    backdrop-filter: blur(4px);
  }

  .detail-panel {
    height: auto;
    min-height: 0;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(222, 222, 216, 0.72);
    background: rgba(255, 255, 255, 0.94);
  }

  .detail-controls {
    margin-bottom: 18px;
  }

  .detail-description {
    max-width: none;
  }

  .detail-stage {
    min-height: 62vh;
    padding: 18px;
  }

  .detail-preview {
    width: 100%;
  }

  .detail-viewer.is-app-recap-detail .detail-stage {
    padding: 18px 0 18px 18px;
  }

  .app-recap-strip {
    padding: 0 18px 22px 0;
    scroll-padding-inline: 18px;
  }

  .app-recap-shot {
    max-width: 76vw;
    height: min(68vh, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-viewer,
  .detail-panel,
  .detail-stage {
    transition: none;
  }

  .detail-panel,
  .detail-stage,
  .detail-viewer.is-closing .detail-panel,
  .detail-viewer.is-closing .detail-stage {
    transform: none;
  }
}

@media (pointer: fine) {
  body {
    cursor: var(--cursor-glow);
  }

  a,
  button,
  select,
  label,
  [role="button"],
  .media-link,
  .card-action,
  .filter-chip,
  .section-link,
  .view-mode-button,
  .detail-icon-button,
  .detail-source-link {
    cursor: pointer;
  }

  input,
  textarea {
    cursor: text;
  }

  button:disabled,
  .detail-icon-button:disabled {
    cursor: not-allowed;
  }
}
